1 2003-09-12 Christopher Faylor <cgf@redhat.com>
3 * win32-nat.c: Reorganize so that defines used by target headers are
4 actually defined by the system headers.
5 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
6 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
8 2003-09-12 Jim Blandy <jimb@redhat.com>
10 * dbxread.c (read_dbx_symtab): Don't report an internal error if
11 the file has no .data, .bss, or .rodata sections. Instead wait
12 until we see a variable alleged to live in one of those sections.
14 * dbxread.c (read_dbx_symtab): If we have no .data section and no
15 .bss section, presume that any variables we find live in the
18 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
19 offsets for global and static variables.
21 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
22 symbol types are, by definition, in the .data section, so it is
23 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
24 If there is no .data section, there should be no N_DATA or N_DATA
27 2003-09-12 Mark Kettenis <kettenis@gnu.org>
29 * amd64fbsd-tdep.c: Fix sigtramp recognition.
30 (amd64fbsd_sigcontext_addr): Rewrite.
31 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
33 (amd64fbsd_sc_reg_offset): Initialize with correct values.
34 (amd64fbsd_init_abi): Fix typo.
36 2003-09-12 Andrew Cagney <cagney@redhat.com>
38 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
39 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
41 2003-09-12 Andrew Cagney <cagney@redhat.com>
43 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
44 "entry_file_highpc". Update comments.
45 * defs.h (deprecated_inside_entry_file): Rename
47 * blockframe.c (deprecated_inside_entry_file): Rename
49 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
50 * vax-tdep.c (vax_frame_chain): Update.
51 * sh64-tdep.c (sh64_frame_chain): Update.
52 * sh-tdep.c (sh_frame_chain): Update.
53 * rs6000-tdep.c (rs6000_frame_chain): Update.
54 * ns32k-tdep.c (ns32k_frame_chain): Update.
55 * mips-tdep.c (mips_frame_chain): Update.
56 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
57 * m32r-tdep.c (m32r_frame_this_id): Update.
58 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
59 * frv-tdep.c (frv_frame_this_id): Update.
60 * d10v-tdep.c (d10v_frame_this_id): Update.
61 * cris-tdep.c (cris_frame_chain): Update.
62 * blockframe.c (legacy_frame_chain_valid): Update.
63 * avr-tdep.c (avr_frame_this_id): Update.
64 * arm-tdep.c (arm_prologue_this_id): Update.
65 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
66 * objfiles.c (objfile_relocate): Update.
67 * mipsread.c (mipscoff_symfile_read): Update.
68 (mipscoff_symfile_read): Update.
69 * mdebugread.c (parse_partial_symbols): Update.
70 * dwarfread.c (read_file_scope): Update.
71 * dwarf2read.c (read_file_scope): Update.
72 * dbxread.c (read_dbx_symtab): Update.
73 (read_dbx_symtab): Update.
74 * coffread.c (complete_symtab): Update.
76 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
78 * top.c (quit_target): New static helper function.
79 (quit_force): Moved code to quit_target(). Call quit_target()
80 via catch_errors() to catch errors during quit.
82 2003-09-11 David Carlton <carlton@kealia.com>
84 * buildsym.c (finish_block): Use allocate_block to allocate the
86 * mdebugread.c (new_block): Add FIXME.
88 2003-09-11 David Carlton <carlton@kealia.com>
90 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
91 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
92 (recursive_dump_type): Ditto.
93 * printcmd.c (print_formatted): Ditto.
94 * typeprint.c (print_type_scalar): Ditto.
95 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
96 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
97 * cp-support.h: Declare cp_check_possible_namespace_symbols,
99 * cp-support.c: Make maint_cplus_cmd_list extern.
100 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
102 (lookup_symbol_file): Look in possible namespace blocks when
104 (initialize_namespace_symtab): New.
105 (get_possible_namespace_block, free_namespace_block)
106 (check_possible_namespace_symbols)
107 (check_possible_namespace_symbols_loop)
108 (check_one_possible_namespace_symbol)
109 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
110 (_initialize_cp_namespace): Ditto.
111 * block.h: Declare allocate_block.
112 * block.c (allocate_block): New.
113 * jv-lang.c (get_java_class_symtab): Allocate blocks via
115 * symfile.h: Update declaration of add_psymbol_to_list.
116 * symfile.c (add_psymbol_to_list): Return the partial symbol in
118 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
119 scan_partial_symbols_call.
120 (scan_partial_symbols): Add NAMESPACE argument; update calls to
122 (add_partial_symbol): If necessary, scan mangled names for names
124 (add_partial_namespace): Add NAMESPACE argument; generate partial
125 symbols associated to namespaces.
126 (add_partial_enumeration): Add NAMESPACE argument.
127 (new_symbol): Allow namespace syms.
128 (read_namespace): Generate namespace syms.
129 * objfiles.h: Add opaque declaration of struct symtab.
130 (struct objfile): Add cp_namespace_symtab member.
131 * objfiles.c (allocate_objfile): Set
132 objfile->cp_namespace_symtab.
133 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
134 dictionary_h, command_h.
136 2003-09-11 Andrew Cagney <cagney@redhat.com>
138 * rs6000-tdep.c (rs6000_push_dummy_call): Use
139 regcache_raw_write_signed to set SP_REGNUM, move the operation to
140 near the function's end.
141 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
142 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
143 regcache_raw_write_signed to set SP_REGNUM.
145 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
147 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
148 orig_addrs is set up properly.
150 2003-09-11 Andrew Cagney <cagney@redhat.com>
152 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
153 * gdbarch.h, gdbarch.c: Re-generate.
154 * infcall.c (call_function_by_hand): Update.
155 * hppa-tdep.c (hppa_push_arguments): Update.
156 * ada-lang.c (place_on_stack): Update.
157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
158 * sparc-tdep.c (sparc_gdbarch_init): Update.
159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
160 * hppa-tdep.c (hppa_gdbarch_init): Update.
161 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
164 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
166 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
167 register do need a frame.
169 2003-09-11 Andrew Cagney <cagney@redhat.com>
171 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
172 buildable since GDB 5.0.
173 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
174 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
175 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
176 * irix4-nat.c: Delete file.
177 * config/mips/irix4.mh: Delete file.
178 * config/mips/irix3.mh: Delete file.
179 * config/mips/irix3.mt: Delete file.
180 * config/mips/tm-irix3.h: Delete file.
181 * config/mips/nm-irix3.h: Delete file.
182 * config/mips/xm-irix3.h: Delete file.
183 * config/mips/nm-irix4.h: Delete file.
184 * config/mips/xm-irix4.h: Delete file.
185 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
187 2003-09-10 J. Brobecker <brobecker@gnat.com>
189 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
190 * Makefile.in (hppa-tdep.o): Update dependencies.
192 2003-09-10 James E Wilson <wilson@specifixinc.com>
194 * MAINTAINERS: Change my e-mail address. Move to paper trail
197 2003-09-10 Kevin Buettner <kevinb@redhat.com>
199 * MAINTAINERS (frv): New ISA entry.
201 2003-09-10 Kevin Buettner <kevinb@redhat.com>
203 * frv-tdep.c (dis-asm.h): Include.
204 * Makefile.in (frv-tdep.o): Update dependencies.
206 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
208 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
209 Fix typo for high range of floating registers.
211 2003-09-09 David Carlton <carlton@kealia.com>
213 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
214 highpc initialization here out of scan_partial_symbols.
215 (scan_partial_symbols): Restructure into a recursive version,
216 calling add_partial_namespace and add_partial_enumeration when
218 (add_partial_namespace): New.
219 (add_partial_enumeration, locate_pdi_sibling): Ditto.
221 2003-09-09 Andrew Cagney <cagney@redhat.com>
223 * rs6000-tdep.c (ppc_push_return_address): Delete function.
224 (rs6000_push_dummy_call): Set LR to BP_ADDR.
225 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
226 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
228 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
229 (rs6000_push_dummy_call): Set the "TOC" register.
231 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
232 methods "max_register_raw_size", "max_register_virtual_size" or
233 "register_virtual_size".
235 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
237 * MAINTAINERS: Update my e-mail address.
239 2003-09-09 Andrew Cagney <cagney@redhat.com>
241 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
242 (rs6000_push_dummy_call): Store the struct return address.
243 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
245 2003-09-09 Andrew Cagney <cagney@redhat.com>
247 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
248 "ppc_sysv_abi_push_arguments".
249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
250 "ppc_sysv_abi_push_arguments".
251 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
252 instead of "push_arguments".
253 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
255 2003-09-09 Andrew Cagney <cagney@redhat.com>
257 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
258 instead of CALL_DUMMY_ADDRESS.
260 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
262 * p-lang.c: Eliminate "register".
271 * objc-lang.c: Ditto.
273 2003-09-09 Nick Clifton <nickc@redhat.com>
275 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
277 2003-09-04 Andrew Cagney <cagney@redhat.com>
279 * avr-tdep.c: Include "dis-asm.h".
280 * cris-tdep.c: Include "dis-asm.h".
281 (cris_delayed_get_disassembler): Use "struct disassemble_info"
282 instead of corresponding typedef.
283 * h8300-tdep.c: Include "dis-asm.h".
284 * ia64-tdep.c: Include "dis-asm.h".
285 * i386-tdep.c: Include "dis-asm.h".
286 (i386_print_insn): Use "struct disassemble_info" instead of
287 corresponding typedef.
288 * m68k-tdep.c: Include "dis-asm.h".
289 * mcore-tdep.c: Include "dis-asm.h".
290 * mips-tdep.c: Include "dis-asm.h".
291 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
292 instead of corresponding typedef.
293 * ns32k-tdep.c: Include "dis-asm.h".
294 * s390-tdep.c: Include "dis-asm.h".
295 * sparc-tdep.c: Include "dis-asm.h".
296 * vax-tdep.c: Include "dis-asm.h".
297 * v850-tdep.c: Include "dis-asm.h".
298 * mn10300-tdep.c: Include "dis-asm.h".
299 * rs6000-tdep.c: Include "dis-asm.h".
300 * xstormy16-tdep.c: Include "dis-asm.h".
301 (_initialize_xstormy16_tdep): Delete "extern" declaration of
302 print_insn_xstormy16.
303 * Makefile.in (v850-tdep.o): Update dependencies.
304 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
305 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
306 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
307 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
308 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
309 (gdbarch_h): Remove $(dis_asm_h).
310 * disasm.c: Include "dis-asm.h".
311 (dis_asm_read_memory): Use "struct disassemble_info" instead of
312 corresponding typedef.
313 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
314 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
315 * gdbarch.sh: Do not include "dis-asm.h".
316 (struct disassemble_info): Declare opaque.
317 (TARGET_PRINT_INSN): Update declaration.
318 * gdbarch.h, gdbarch.c: Re-generate.
320 2003-09-08 Andrew Cagney <cagney@redhat.com>
322 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
323 CALL_DUMMY_ADDRESS, change to a predicate.
324 * gdbarch.h, gdbarch.c: Re-generate.
325 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
326 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
327 * infcall.c (call_function_by_hand): Ditto.
328 * sparc-tdep.c (sparc_push_return_address): Ditto.
329 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
330 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
331 CALL_DUMMY_ADDRESS with entry_point_address.
332 * v850-tdep.c (v850_push_return_address): Ditto.
333 * s390-tdep.c (s390_push_return_address): Ditto.
334 * rs6000-tdep.c (ppc_push_return_address): Ditto.
335 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
336 * mcore-tdep.c (mcore_push_return_address): Ditto.
337 * cris-tdep.c (cris_push_return_address): Ditto.
338 * arm-tdep.c (arm_push_return_address): Ditto.
340 2003-09-08 Andrew Cagney <cagney@redhat.com>
342 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
343 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
344 and REG_UNMODIFIED to REG_SAME_VALUE.
345 (execute_cfa_program): Update.
346 (dwarf2_frame_cache): Update. Initialize table to
347 REG_UNSPECIFIED, complain if CFI fails to specify a register's
349 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
351 2003-09-08 Andrew Cagney <cagney@redhat.com>
353 * gnu-nat.c: Remove "inline" function attribute.
354 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
356 2003-09-08 Kevin Buettner <kevinb@redhat.com>
358 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
361 2003-09-08 Kevin Buettner <kevinb@redhat.com>
363 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
364 (frame_extra_info): Rename this struct to frv_unwind_cache.
365 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
366 Add fields ``prev_sp'' and ``base''.
367 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
368 (frv_saved_pc_after_call, frv_init_extra_frame_info)
369 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
371 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
372 Revise all callers. Fill in the unwind cache argument and make
373 other adjustments to account for new frame mechanisms.
374 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
375 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
376 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
377 (frv_frame_unwind, frv_frame_base): New structs.
378 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
379 additional arguments expected by this method and adjust function
381 (frv_gdbarch_init): Remove calls to the following functions:
382 set_gdbarch_deprecated_init_frame_pc(),
383 set_gdbarch_deprecated_saved_pc_after_call(),
384 set_gdbarch_deprecated_frame_chain(),
385 set_gdbarch_deprecated_frame_saved_pc(),
386 set_gdbarch_deprecated_frame_init_saved_regs(),
387 set_gdbarch_deprecated_push_arguments(),
388 set_gdbarch_deprecated_push_return_address(),
389 set_gdbarch_deprecated_pop_frame(),
390 set_gdbarch_deprecated_call_dummy_words(),
391 set_gdbarch_deprecated_sizeof_call_dummy_words(),
392 set_gdbarch_deprecated_init_extra_frame_info(),
393 set_gdbarch_deprecated_dummy_write_sp(), and
394 set_gdbarch_deprecated_pc_in_call_dummy().
395 Add calls to the following functions:
396 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
397 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
398 frame_base_set_default().
399 * Makefile.in (frv-tdep.o): Update dependencies.
401 2003-09-09 Mark Kettenis <kettenis@gnu.org>
403 * dwarf2-frame.c (read_encoded_value): Add support for
404 DW_EH_PE_aligned encoding.
406 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
408 * infrun.c (normal_stop): Don't print a message if the inferior
411 2003-09-08 Jim Blandy <jimb@redhat.com>
413 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
414 * dbxread.c: #include "gdb_assert.h".
415 (read_dbx_symtab): If the objfile has no .data section, use the
416 section index for the .bss section instead.
418 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
420 * frame.c (deprecated_safe_get_selected_frame): New function.
421 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
422 * findvar.c (read_var_value): Call it.
424 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
426 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
427 (sh64-tdep.o): Add dependencies.
428 * configure.tgt: Add FIXME to sh-*-linux*.
429 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
430 (sh_gdbarch_init): Always set correct sh_show_regs function
431 pointer. Call sh64_gdbarch_init() if machine type is sh5.
432 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
433 * sh64-tdep.c: New file, containing all sh64 related code from
435 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
436 * config/sh/linux.mt (TDEPFILES): Ditto.
437 * config/sh/nbsd.mt (TDEPFILES): Ditto.
438 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
439 * config/sh/wince.mt (TDEPFILES): Ditto.
441 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
443 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
444 (stop_wait_callback): Handle !lp->signalled also.
445 (lin_lwp_has_pending, flush_callback): New functions.
446 (lin_lwp_wait): Call flush_callback.
447 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
448 (linux_proc_pending_signals): New function.
449 * linux-nat.h (linux_proc_pending_signals): Add prototype.
451 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
453 From Nick Kelsey <nickk@ubicom.com>:
454 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
455 when the stop PC is at the beginning of a function also.
457 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
459 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
460 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
462 2003-09-06 Mark Kettenis <kettenis@gnu.org>
464 * sol-thread.c: Include "gdb_string.h".
466 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
468 * gcore.c: Reorder include files in alphabetical order. Include
469 "gdb_assert.h". Various coding style fixes.
470 (derive_stack_segment, derive_heap_segment): Replace check for
471 non-null BOTTOM and TOP with gdb_assert.
472 (derive_heap_segment): Replace check for successful creation of
473 ZERO with gdb_assert.
474 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
476 2003-09-04 Andrew Cagney <cagney@redhat.com>
478 * thread-db.c (verbose_dlsym): New function.
479 (thread_db_load): Use verbose_dlsym
480 (thread_db_new_objfile): Print that libthread_db was loaded, and
481 that thread debugging was enabled.
483 2003-09-04 Andrew Cagney <cagney@redhat.com>
485 * configure.tgt: Add "mips64*-*-*" target. Delete
486 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
487 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
488 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
489 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
490 mips*-sony-*, and mips64*-*-elf* targets.
491 * config/mips/embedl.mt: Delete file.
492 * config/mips/embedl64.mt: Delete file.
493 * config/mips/mips.mt: Delete file.
494 * config/mips/mips64.mt: Delete file.
495 * config/mips/tm-embed.h: Delete file.
496 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
497 * config/mips/embed64.mt: Delete out-of-date comment.
499 2003-09-04 Andrew Cagney <cagney@redhat.com>
501 * hppa-tdep.c (hppa_gdbarch_init): Set
502 "have_nonsteppable_watchpoint".
503 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
504 * mips-tdep.c (mips_dump_tdep): Do not print
505 HAVE_NONSTEPPABLE_WATCHPOINT.
506 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
507 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
508 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
509 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
511 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
513 * breakpoint.c (watchpoint_check): Remove accidentally checked in
514 unused code. Add comment.
516 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
518 * breakpoint.c (watchpoint_check): Check for pc being in an
519 epilogue if watchpoint frame couldn't be found.
521 2003-09-04 Andrew Cagney <cagney@redhat.com>
523 * Makefile.in: Re-generate all dependencies.
525 2003-09-03 Andrew Cagney <cagney@redhat.com>
527 * arch-utils.h (legacy_print_insn): Delete declaration.
528 * arch-utils.c (legacy_print_insn): Delete function.
529 * disasm.c (deprecated_tm_print_insn_info): Delete.
530 (_initialize_disasm): Delete function, contained code initializing
531 deprecated_tm_print_insn_info.
532 * gdbarch.sh (deprecated_tm_print_insn): Delete.
533 (deprecated_tm_print_insn_info): Delete.
534 (TARGET_PRINT_INSN): Do not provide a default.
535 * gdbarch.h, gdbarch.c: Re-generate.
537 2003-09-03 Andrew Cagney <cagney@redhat.com>
539 * disasm.c (fprintf_disasm): New function.
540 (gdb_disassemble_info): Call "init_disassemble_info", instead of
541 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
542 reverts 2003-08-14 change.
543 (_initialize_disasm): Call "init_disassemble_info", instead of
544 INIT_DISASSEMBLE_INFO_NO_ARCH.
546 2003-09-03 Michael Snyder <msnyder@redhat.com>
548 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
550 2003-09-03 Andrew Cagney <cagney@redhat.com>
552 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
553 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
554 * symfile.c (syms_from_objfile): Update.
555 (reread_symbols): `Update
556 * exec.c (exec_file_attach): Update.
557 (exec_file_attach): Update.
558 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
560 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
562 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
564 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
566 (arm_get_cache): Delete macro.
567 (struct arm_prologue_cache): Update comments. Make saved_regs into
568 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
570 (thumb_scan_prologue): Update for cache changes. Don't call
571 DEPRECATED_PC_IN_CALL_DUMMY.
572 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
573 argument and use it in desperation search for our prologue. Do not
574 search past the specified PC.
575 (arm_make_prologue_cache): Simplify.
577 (arm_prologue_this_id, arm_prologue_prev_register)
578 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
579 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
580 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
581 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
582 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
584 (arm_frame_chain_valid, arm_find_callers_reg)
585 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
586 (arm_pop_frame): Delete obsolete methods.
587 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
589 (arm_gdbarch_init): Update for new frame methods. Register prologue
590 and sigtramp unwinders. Set the default frame base method.
592 * Makefile.in (arm-tdep.o): Update dependencies.
593 * varobj.c (find_frame_addr_in_frame_chain): Call
594 get_frame_base_address.
595 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
597 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
599 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
600 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
601 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
602 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
603 Take NEXT_FRAME and CACHE arguments. Call
604 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
605 Set unwound_pc in CACHE instead of modifying the frame argument.
606 Don't bother checking the frame type when looking for sigtramp
608 (arm_make_prologue_cache, arm_frame_chain)
609 (arm_init_extra_frame_info): New functions.
611 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
613 * arm-tdep.c (arm_get_cache): Define.
614 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
615 unwound_sp, unwound_pc, and saved_regs.
616 (thumb_scan_prologue): Take a cache instead of the frame.
617 (arm_scan_prologue): Likewise.
618 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
619 instead of a temporary frame.
620 (arm_init_extra_frame_info): Allocate and use a cache.
621 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
623 2003-09-03 Andrew Cagney <cagney@redhat.com>
625 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
626 * config/mips/wince.mt (TM_CLIBS): Ditto.
627 * config/sh/wince.mt (TM_CLIBS): Ditto.
628 * config/pa/hppa64.mt (TM_CLIBS): Delete.
629 * config/sparc/sp64.mt (CC): Delete.
631 2003-09-03 Andrew Cagney <cagney@redhat.com>
633 * defs.h: Do not include "arch-utils.h".
634 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
636 * configure.in (GDB_MULTI_ARCH): Do not define.
637 * configure, config.in: Regenerate.
638 * configure.tgt: Do not set variable "gdb_multi_arch".
639 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
640 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
641 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
642 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
643 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
644 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
645 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
646 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
647 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
648 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
649 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
650 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
651 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
652 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
653 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
654 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
655 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
656 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
658 2003-08-30 Michael Chastain <mec@shout.net>
660 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
661 * config/m68k/nm-hp300hpux.h: Delete.
662 * config/m68k/tm-hp300hpux.h: Delete.
663 * config/m68k/xm-hp300hpux.h: Delete.
664 * config/m68k/xm-hp300bsd.h: Delete.
665 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
666 tm-hp300hpux.h, xm-hp300hpux.h.
667 * somsolib.c: Remove comment about hp300 shared libraries.
669 2003-08-31 Mark Kettenis <kettenis@gnu.org>
671 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
672 Only define PTRACE_GET_THREAD_AREA is not already defined.
673 Various style fixes in code and comments and some additional
674 spelling fixes in comments. Move after functions dealing with
676 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
679 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
680 frame_unwind_register_unsigned instead of
681 frame_unwind_unsigned_register.
683 2003-08-30 Mark Kettenis <kettenis@gnu.org>
685 * configure.in: Search for gethostbyname in libnsl.
686 * configure: Regenerated.
688 2003-08-29 Mark Kettenis <kettenis@gnu.org>
690 * configure.in: Remove redundant AC_MSG_RESULT in check for
691 uintptr_t in stdint.h.
692 * configure: Regenerated.
694 * amd64-nat.h (struct regcache): Add opaque declaration.
696 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
697 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
698 Change "register array" to "register cache" in comments.
699 (x86_64_linux_gregset64_reg_offset): New variable.
700 (GETREGS_SUPPLIES): Remove macro.
701 (supply_gregset): Call amd64_supply_native_gregset instead of
702 x86_64_linux_supply_gregset.
703 (fill_gregset): Rename `regno' to `regnum'. Call
704 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
705 (store_regs): Rename `regno' to `regnum'.
706 (store_fpregs): Rename `regno' to `regnum'.
707 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
708 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
709 Reorganize function a bit.
710 (store_inferior_registers): Rename `regno' to `regnum'. Use
711 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
712 Reorganize function a bit.
713 (_initialize_x86_64_linux_nat): New function.
714 * config/i386/x86-64linux.mh.
716 2003-08-29 Andrew Cagney <cagney@redhat.com>
718 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
719 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
720 (target_remove_watchpoint): Delete macro.
721 (target_insert_watchpoint): Delete macro.
722 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
723 (remote_mips_stopped_by_watchpoint): Delete declaration.
724 (remote_mips_remove_watchpoint): Delete declaration.
725 (remote_mips_set_watchpoint): Delete declaration.
726 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
727 * remote-mips.c (_initialize_remote_mips): Set
728 "to_insert_watchpoint", "to_stopped_by_watchpoint",
729 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
730 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
731 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
732 (mips_stopped_by_watchpoint): Rename
733 remote_mips_stopped_by_watchpoint.
734 (mips_can_hardware_watchpoint): Rename
735 remote_mips_can_use_hardware_watchpoint, update function
738 2003-08-29 Mark Kettenis <kettenis@gnu.org>
740 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
741 USER_DS. We haven't given them a register number yet.
743 * amd64-nat.h: New file.
744 * amd64-nat.c: New file.
745 * amd64fbsd-nat.c: Include "amd64-nat.h".
746 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
747 (amd64fbsd32_r_reg_offset): New variable.
748 (supply_gregset): Simply call amd64_supply_native_gregset.
749 (fill_gregset): Rename `regno' to `regnum'. Simply call
750 amd64_collect_native_gregset.
751 (fill_fpregset): Rename `regno' to `regnum'.
752 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
753 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
754 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
755 `fpregset_t'. Call amd64_supply_native_gregset instead of
756 supply_gregset. Call x86_64_supply_fxsave instead of
758 (store_inferior_registers): Rename `regno' to `regnum'. Replace
759 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
760 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
761 `fpregset_t'. Call amd64_collect_native_gregset instead of
762 fill_gregset. Call x86_64_collect_fxsave instead of
764 (_initialize_am64fbsd_nat): Initialize
765 amd64_native_gregset32_reg_offset and
766 amd64_native_gregset64_reg_offset.
767 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
769 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
770 null pointer. Fix typo in comment.
772 * regcache.c (supply_register): Reimplement to call
774 (regcache_collect): Reimplement by calling regcache_raw_collect.
776 2003-08-28 Mark Kettenis <kettenis@gnu.org>
778 * regcache.c (register_buffer): Consitify first argument.
779 (regcache_raw_supply, regcache_raw_collect): New
782 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
784 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
785 by Nathan J. Williams.
787 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
789 * lin-lwp.c (wait_lwp): New function, copied from
790 stop_wait_callback. Clean up.
791 (stop_wait_callback): Use wait_lwp.
793 2003-08-28 Andrew Cagney <cagney@redhat.com>
795 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
796 flavour and disassembler options.
797 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
798 (mips_gdbarch_init): Set "print_insn". Delete initialization of
799 deprecated_tm_print_insn_info.
801 2003-08-27 Andrew Cagney <cagney@redhat.com>
803 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
804 Use target_read_memory.
805 (s390_get_frame_info): Update. Do not reference
806 deprecated_tm_print_insn_info.
807 (s390_check_function_end, s390_is_sigreturn): Ditto.
809 2003-08-27 Andrew Cagney <cagney@redhat.com>
811 * Makefile.in (cris-tdep.o): Update dependencies.
812 * cris-tdep.c: Include "gdb_assert.h".
813 (cris_gdbarch_init): Set print_insn.
814 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
815 (cris_delayed_get_disassembler): Simplify, directly call the
816 disassembler returned by cris_get_disassembler.
817 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
818 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
819 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
820 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
821 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
822 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
823 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
824 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
825 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
826 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
827 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
828 (gdb_print_insn_sparc): Delete function.
829 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
830 deprecated_tm_print_insn_info.
831 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
832 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
833 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
835 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
836 * s390-tdep.c (gdb_print_insn_s390): Delete function.
837 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
838 (s390_gdbarch_init): Set print_insn.
840 2003-08-27 Andrew Cagney <cagney@redhat.com>
842 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
843 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
844 * infcall.c (call_function_by_hand): Convert the entry point
845 address into a code address.
847 2003-08-27 Andrew Cagney <cagney@redhat.com>
849 * dsrec.c: Include "gdb_string.h".
850 * Makefile.in (dsrec.o): Update dependencies.
852 2003-08-27 Michael Chastain <mec@shout.net>
854 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
856 2003-08-27 Andrew Cagney <cagney@redhat.com>
858 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
859 (alpha_osf1_init_abi): Do not set call_dummy_address.
861 2003-08-27 David Carlton <carlton@kealia.com>
863 From Randolph Chung <tausq@debian.org>:
864 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
865 compiles with -Wformat-nonliteral -Werror.
867 2003-08-26 Jim Blandy <jimb@redhat.com>
869 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
870 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
871 bfd_lookup_symbol, since we only want symbols in code sections.
872 (look_for_base): Pass zero as the SECT_FLAGS argument to
873 bfd_lookup_symbol, since we're not concerned about which section
876 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
878 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
879 we are frameless or the return address register is already known.
881 2003-08-26 Andrew Cagney <cagney@redhat.com>
883 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
884 in size. Add comments.
886 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
888 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
889 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
891 2003-08-26 Jason Merrill <jason@redhat.com>
893 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
894 case out of #ifdef MIPS block.
896 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
899 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
900 available before calling SECT_OFF_TEXT.
901 * PROBLEMS: Remove description of java/1322.
903 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
905 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
906 bof, and nat0-nat127 as pseudo-registers.
907 (ia64_frame_cache): New struct used to cache frame info.
908 (ia64_register_reggroup_p): New routine used to override default
909 register grouping so registers without names are still saved and
911 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
913 (ia64_pseudo_register_read): New routine to read pseudo-registers.
914 (ia64_pseudo_register_write): New routine to write pseudo-registers.
915 (ia64_alloc_frame_cache): New routine to create a new
917 (examine_prologue): Change prototype to add next_frame pointer.
918 Assume frameless until otherwise proven. Verify that the cfm for
919 current frame matches the cfm that should occur for the prologues
920 alloc insn and if equal, mark as not frameless. At end of routine,
921 if not frameless, calculate registers for the previous frame and store
922 in the cache, if a cache is provided.
923 (ia64_skip_prologue): Use new prototype when calling examine_prologue
924 and pass 0 for next_frame.
925 (ia64_store_return_value): Change to use convert_typed_floating()
926 instead of calling ia64_convert_to_raw().
927 (ia64_extract_return_value): Change to use convert_typed_floating()
928 instead of calling ia64_convert_to_virtual().
929 (ia64_frame_cache): New routine to support new frame model.
930 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
931 (ia64_frame_sniffer): Ditto.
932 (ia64_sigtramp_frame_init_saved_regs): Ditto.
933 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
934 (ia64_sigtramp_frame_prev_register): Ditto.
935 (ia64_sigtramp_frame_sniffer): Ditto.
936 (ia64_frame_base_address): Ditto.
937 (ia64_extract_struct_value_address): Change to issue error message.
938 (ia64_frame_align): New routine to align sp.
939 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
940 (ia64_push_arguments): Removed. Logic moved to
941 ia64_push_dummy_call().
942 (ia64_push_return_address): Ditto.
943 (ia64_unwind_dummy_id): New function.
944 (ia64_unwind_pc): Ditto.
945 (ia64_convert_register_p): Ditto.
946 (ia64_register_to_value): Ditto.
947 (ia64_value_to_register): Ditto.
948 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
949 (ia64_register_byte, ia64_register_raw_size): Ditto.
950 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
951 (ia64_saved_pc_after_call): Ditto.
952 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
953 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
954 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
955 (ia64_register_convert_to_raw): Ditto.
956 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
957 (ia64_init_extra_frame_info): Ditto.
958 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
959 (ia64_gdbarch_init): Remove registering of deprecated functions that
960 are no longer used. Add registration of new gdbarch functions.
961 Remove registering deprecated_write_sp. Replace
962 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
963 Delete set_gdbarch_deprecated_register_convertible(),
964 set_gdbarch_deprecated_register_convert_to_virtual(), and
965 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
966 set_gdbarch_deprecated_register_size(),
967 set_gdbarch_deprecated_register_bytes(),
968 set_gdbarch_pcregnum(),
969 set_gdbarch_deprecated_register_byte(),
970 set_gdbarch_deprecated_register_raw_size(),
971 set_gdbarch_deprecated_max_register_raw_size(),
972 set_gdbarch_deprecated_register_virtual_size(),
973 and set_gdbarch_deprecated_max_register_virtual_size() calls.
974 Replace set_gdbarch_deprecated_extract_return_value() with
975 set_gdbarch_extract_return_value(). Remove calls to:
976 set_gdbarch_deprecated_saved_pc_after_call();
977 set_gdbarch_deprecated_frame_chain(),
978 set_gdbarch_deprecated_frame_saved_pc(),
979 set_gdbarch_deprecated_frame_init_saved_regs(),
980 set_gdbarch_deprecated_get_saved_register(),
981 set_gdbarch_deprecated_call_dummy_words(),
982 set_gdbarch_deprecated_sizeof_call_dummy_words(),
983 set_gdbarch_deprecated_init_extra_frame_info(),
984 set_gdbarch_deprecated_frame_args_address(),
985 set_gdbarch_deprecated_frame_locals_address(),
986 and set_gdbarch_deprecated_dummy_write_sp().
987 Add set_gdbarch_convert_register_p(),
988 set_gdbarch_register_to_value(),
989 set_gdbarch_value_to_register(),
990 set_gdbarch_push_dummy_call(),
991 set_gdbarch_frame_align(),
992 set_gdbarch_unwind_dummy_id(),
993 set_gdbarch_unwind_pc(),
994 frame_unwind_append_sniffer(),
995 frame_unwind_append_sniffer(),
996 and frame_base_set_default().
998 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1000 * configure.tgt: Document need for special "mipsisa64" handling.
1001 (mipsisa64*-*-linux64): Handle as target linux64.
1002 (mipsisa64*-*-*): Handle as target embed64.
1004 2003-08-18 Michael Chastain <mec@shout.net>
1006 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1009 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1011 * i387-tdep.h: Update copyright date.
1012 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1014 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1015 CFLAGS games to reflect reality.
1017 2003-08-24 Andrew Cagney <cagney@redhat.com>
1019 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1020 GDB_MULTI_ARCH is always non-zero.
1021 * osabi.c (_initialize_gdb_osabi): Ditto.
1022 (gdbarch_init_osabi): Ditto.
1023 * sparc-tdep.c: Ditto for #if code.
1025 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1027 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1029 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1031 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1032 x86_64_supply_fxsave.
1033 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1034 x86_64_supply_fxsave.
1035 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1036 x86_64_supply_fxsave.
1038 2003-08-23 Andreas Jaeger <aj@suse.de>
1040 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1043 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1045 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1046 i387_supply_register.
1047 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1048 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1050 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1052 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1054 * i386bsd-nat.c (supply_fpregset): Adjust call to
1056 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1057 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1059 (store_inferior_registers): Remove extraneous whitespace. Call
1060 i387_fill_fsave instead of fill_fpregset.
1061 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1062 (supply_fpregset): Likewise.
1063 * i386v4-nat.c (supply_fpregset): Adjust call to
1065 * i386-interix-nat.c (supply_fpregset): Adjust call to
1067 * i386-linux-nat.c (supply_fpregset): Adjust call to
1069 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1070 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1071 i387supply_fsave and i387_supply_fxsave.
1072 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1073 Incorporate code from `i387_supply_register.
1074 (i387_supply_register): Remove.
1075 (i387_supply_fxsave): Add `regnum' argument.
1077 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1079 (i387_supply_register): remove prototype.
1082 2003-08-22 Michael Chastain <mec@shout.net>
1084 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1085 Add lines for files in gdb/testsuite/gdb.cp/* that are
1086 still not 8.3 unique.
1088 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1090 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1091 TYPE_VPTR_FIELDNO is valid.
1093 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1095 * utils.c (set_width_command): Remove prototypes.
1096 (set_screen_size): New prototype.
1097 (init_page_info): Simplify by fetching the screen size from
1098 Readline. Call set_screen_size.
1099 (set_screen_size): New function.
1100 (set_width): Add missing whitespace in comment.
1101 (set_width_command): Call set_screen_size.
1102 (set_height_command): New function.
1103 (initialize_utils): Fix formatting. Make "set height" command
1104 call set_height_command. Remove redundant code that turns off
1105 pagination if output isn't a terminal. Remove redundant call to
1108 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1110 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1111 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1112 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1113 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1115 (sparc64_register_info): Give the reister with number
1116 SPARC64_STATE_REGNUM a name.
1117 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1119 (sparc64_push_dummy_call): Take BIAS into account when checking
1121 (sparc_software_single_step): Remove assertions that check whether
1122 NPC and NNPC were zero.
1123 (sparc_supply_rwindow): Make public. Merge functionality with
1124 sparc64_supply_rwindow.
1125 (sparc_fill_rwindow): Make public. Merge functionality with
1126 sparc64_fill_rwindow.
1127 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1128 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1129 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1130 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1131 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1133 * reggroups.c: Add whitespace after declarations of local
1134 variables in functions.
1136 2003-08-21 Michael Chastain <mec@shout.net>
1138 * gdbtypes.h: Change array bound type from an int to enum.
1140 2003-08-21 Andrew Cagney <cagney@redhat.com>
1142 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1143 * config/sparc/tm-sparc.h: Ditto.
1144 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1146 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1148 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1150 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1151 (register_objfile_data, set_objfile_data, objfile_data): New
1153 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1155 (allocate_objfile): Call objfile_alloc_data.
1156 (free_objfile): Call objfile_free_data.
1157 (struct objfile_data): New.
1158 (struct objfile_data_registration): New.
1159 (struct objfile_data_registry): New.
1160 (objfile_data_registry): New variable.
1161 (register_objfile_data): New function.
1162 (objfile_alloc_data, objfile_free_data): New functions.
1163 (set_objfile_data, objfile_data): New functions.
1164 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1165 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1166 (_initialize_dwarf2_frame): New function and prototype.
1168 2003-08-21 Andrew Cagney <cagney@redhat.com>
1170 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1171 a specific architecture.
1172 * arch-utils.h (set_architecture_from_arch_mach): Delete
1174 (target_architecture_hook): Delete declaration.
1175 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1176 (default_float_format): Assume GDB_MULTI_ARCH.
1177 (default_double_format): Assume GDB_MULTI_ARCH.
1178 (set_endian_from_file): Delete function.
1179 (arch_ok): Delete function.
1180 (set_arch): Delete function.
1181 (set_architecture_from_arch_mach): Delete function.
1182 (set_architecture_from_file): Delete function.
1183 (set_architecture): Assume GDB_MULTI_ARCH.
1184 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1186 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1188 Rewrite FreeBSD/sparc64 native configuration.
1189 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1190 * sparc64fbsd-nat.c: New file.
1191 * sparc64fbsd-tdep.c: New file.
1192 * sparc64-tdep.c sparc64-tdep.h: New files.
1193 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1194 sparc64fbsd-tdep.o): New dependencies.
1195 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1196 and sparc64fbsd-tdep.c.
1197 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1198 * config/sparc/fbsd.mh: Remove copyright notice.
1199 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1201 * config/sparc/fbsd.mt: Remove copyright notice.
1202 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1203 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1204 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1205 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1206 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1207 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1208 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1209 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1211 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1212 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1214 2003-08-21 Michael Chastain <mec@shout.net>
1216 * symtab.h: Add doco on the space critical structures and
1217 some measurements of space usage.
1219 2003-08-21 Michael Snyder <msnyder@redhat.com>
1221 * tracepoint.c (trace_dump_command): Trace break address
1222 is subject to DECR_PC_AFTER_BREAK.
1223 (set_traceframe_context): Make "trace_line" an int.
1224 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1226 2003-08-20 Michael Snyder <msnyder@redhat.com>
1228 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1229 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1230 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1232 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1233 functions, replace sh_push_dummy_call.
1234 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1236 2003-08-20 Michael Chastain <mec@shout.net>
1238 * gdbtypes.h (struct main_type): Rearrange to save space.
1240 2003-08-20 Michael Snyder <msnyder@redhat.com>
1242 * trad-frame.c: Comment typo fix.
1244 2003-08-20 Michael Snyder <msnyder@redhat.com>
1245 Kevin Buettner <kevinb@redhat.com>
1247 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1248 (frv_frame_init_saved_regs): Add declaration.
1249 (frame_extra_info): Add new field ``saved_regs''.
1250 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1251 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1252 Update frame related code.
1253 (frv_extract_struct_value_address): Adjust formatting.
1254 * Makefile.in (frv-tdep.o): Update dependencies.
1255 * config/frv/tm-frv.h (target_insert_watchpoint)
1256 (target_remove_watchpoint, target_insert_hw_breakpoint)
1257 (target_remove_hw_breakpoint): Delete these macros.
1258 (remote_insert_watchpoint, remote_remove_watchpoint)
1259 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1262 2003-08-20 Michael Chastain <mec@shout.net>
1264 * defs.h (ENUM_BITFIELD): New macro.
1265 * symtab.h (ENUM_BITFIELD): Use it.
1266 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1268 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1270 * MAINTAINERS (write after approval): Add myself.
1272 2003-08-18 Andrew Cagney <cagney@redhat.com>
1274 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1275 * gdbarch.h, gdbarch.c: Re-generate.
1276 * infcall.c (call_function_by_hand): Adjust the SP by
1277 frame_red_zone_size before allocating any stack space.
1278 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1279 * x86-64-tdep.c (x86_64_frame_align): New function.
1280 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1282 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1283 Remove code adjusting SP so that it skips over the Red Zone.
1285 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1287 * NEWS (New native configurations): Mention FreeBSD/amd64.
1289 2003-08-18 Andrew Cagney <cagney@redhat.com>
1291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1292 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1294 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1296 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1298 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1300 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1302 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1304 * i386-linux-nat.c: Include "linux-nat.h".
1305 (child_post_startup_inferior): New function.
1307 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1309 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1310 at the start of a frameless function. This probably fixes PR
1313 2003-08-17 Michael Chastain <mec@shout.net>
1315 * symfile.c (find_sym_fns): Remove special case for apollo target.
1317 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1319 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1320 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1321 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1322 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1323 (linux_supports_tracevforkdone): New function.
1324 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1326 (child_follow_fork): Handle vfork.
1327 (linux_handle_extended_wait): Likewise. Also handle exec.
1328 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1329 * NEWS: Mention fork tracing.
1331 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1333 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1335 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1337 * Makefile.in (i386-linux-nat.o): Update dependencies.
1338 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1339 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1340 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1341 * i386-linux-nat.c: Include "linux-nat.h".
1342 (child_post_startup_inferior): New function.
1343 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1344 * infptrace.c (kill_inferior): Wrap in #ifdef.
1345 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1346 attaching to each LWP.
1347 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1348 (init_lin_lwp_ops): Fill in some more operations.
1349 * linux-nat.h (linux_enable_event_reporting)
1350 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1352 * linux-nat.c (linux_enable_event_reporting): New function.
1353 (child_post_attach, linux_child_post_startup_inferior)
1354 (child_post_startup_inferior, child_follow_fork)
1355 (linux_handle_extended_wait, kill_inferior): New functions.
1357 2003-08-16 Andrew Cagney <cagney@redhat.com>
1359 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1360 * gdbarch.h, gdbarch.c: Re-generate.
1362 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1364 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1366 2003-08-16 Andrew Cagney <cagney@redhat.com>
1368 * NEWS: Mention that "set prompt-escape-char" was deleted.
1369 * top.c (get_prompt_1): Delete function.
1370 (gdb_prompt_escape):
1371 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1372 prompt-escape-char" command.
1373 (MAX_PROMPT_SIZE): Delete macro.
1374 (get_prompt): Simplify, do not call get_prompt_1.
1376 2003-08-16 Andrew Cagney <cagney@redhat.com>
1378 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1379 -Werror. -Wformat-nonliteral problems.
1381 2003-08-15 J. Brobecker <brobecker@gnat.com>
1383 Further multiarching work mostly for hppa64-*-hpux11:
1384 * hppa-tdep.h: New file.
1385 * hppa-tdep.c: #include hppa-tdep.c.
1386 (hppa32_num_regs): Renamed from hppa_num_regs.
1387 (hppa64_num_regs): New constant.
1388 (hppa64_call_dummy_breakpoint_offset): New constant.
1389 (hppa32_call_dummy_length): New constant.
1390 (hppa64_call_dummy_length): New constant.
1391 (hppa32_stack_align): Make name 32bit explicit.
1392 (hppa32_register_virtual_type): Likewise.
1393 (hppa32_extract_return_value): Likewise.
1394 (hppa32_use_struct_convention): Likewise.
1395 (hppa32_store_return_value): Likewise.
1396 (hppa64_register_virtual_type): New function.
1397 (hppa64_extract_return_value): New function.
1398 (hppa64_use_struct_convention): New function.
1399 (hppa64_store_return_value): New function.
1400 (hppa_frame_locals_address): Remove declaration, function does
1402 (hppa_register_byte): Add support for PA64 ABI.
1403 (hppa_gdbarch_init): Add support for PA64 ABI.
1404 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1405 Make name 32bit explicit.
1406 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1407 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1408 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1409 (hppa64_hpux_frame_base_before_sigtramp): New function.
1410 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1411 * config/pa/tm-hppa64.h: Remove macros that are no longer
1412 necessary now that the gdbarch vector is properly setup.
1413 Transform some macros into function calls. Some minor cleanup.
1414 * config/pa/tm-hppah.h: Update function calls in macros
1415 following the function renaming in hppa-hpux-tdep.c.
1416 * Makefile.in (hppa_tdep_h): New variable.
1417 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1419 2003-08-14 Michael Snyder <msnyder@redhat.com>
1421 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1423 2003-08-13 J. Brobecker <brobecker@gnat.com>
1425 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1426 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1429 2003-08-13 Michael Snyder <msnyder@redhat.com>
1431 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1432 (frv_saved_pc_after_call): Use deprecated ftype.
1433 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1434 (frv_remote_translate_xfer_address): Remove.
1435 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1437 2003-08-13 J. Brobecker <brobecker@gnat.com>
1439 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1440 initialization after the common gdbarch initialization, not before.
1442 2003-08-13 J. Brobecker <brobecker@gnat.com>
1444 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1445 (ADDR_BITS_REMOVE): Remove, redundant.
1447 2003-08-13 J. Brobecker <brobecker@gnat.com>
1449 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1450 gdbarch method to clear the 2 low bits of text addresses.
1452 2003-08-12 Andrew Cagney <cagney@redhat.com>
1454 * Makefile.in (dsrec.o): Update dependencies.
1455 * dsrec.c: Include "gdb_assert.h".
1456 (make_srec): Use snprintf instead of sprintf, use a literal format
1459 2003-08-12 Andrew Cagney <cagney@redhat.com>
1461 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1462 FRAME_OBSTACK_ZALLOC.
1464 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1466 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1469 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1471 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1472 amd64fbsd_sc_reg_offset): Add extern declarations.
1473 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1476 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1478 * MAINTAINERS (write after approval): Update my mail address.
1480 2003-08-10 Andrew Cagney <cagney@redhat.com>
1482 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1484 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1486 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1487 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1488 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1489 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1490 i386bsd_sc_reg_offset): Add extern declarations.
1491 * i386obsd-nat.c: Include "i386-tdep.h"
1492 (_initialize_i386obsd_nat): Remove extern declarations.
1493 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1495 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1498 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1499 instead of frame_read_register.
1500 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1501 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1503 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1504 instead of frame_unwind_unsigned_register. Use
1505 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1506 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1507 instead of read_register. Use builtin_type_void_data_ptr instead
1508 of builtin_type_void_func_ptr when extracting the address of the
1510 (i386_extract_return_value, i386_store_return_value,
1511 i386_pseudo_register_read, i386_pseudo_register_write): Use
1512 register_size instead REGISTER_RAW_SIZE.
1514 2003-08-10 Andrew Cagney <cagney@redhat.com>
1516 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1517 sprintf. Make "name" constant.
1519 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1521 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1522 instead of frame_read_register.
1523 (i387_print_float_info): Use get_frame_register and
1524 get_frame_register_unsigned instead of frame_register_read.
1526 * i386fbsd-nat.c: Include "i386-tdep.h".
1527 (child_resume): Make `eflags' an ULONGEST. Use
1528 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1529 instead of register_read and register_write.
1531 * i386bsd-nat.c (fetch_inferior_registers,
1532 store_inferior_registers): Don't use && at the end of a line.
1533 (_initialize_i386bsd_nat): Fix typo.
1535 * frame.c (_initialize_frame): Add missing backslash.
1537 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1538 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1539 and supply_register instead of manipulating the register buffer
1542 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1543 * config/i386/nm-i386sol2.h
1544 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1546 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1547 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1548 instructions that GCC likes to mingle into the prologue. Fixes
1549 gdb/1253 and gdb/1255.
1551 2003-08-09 Andrew Cagney <cagney@redhat.com>
1554 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1555 * command.h (add_setshow_uinteger_cmd): Declare.
1556 * frame.c (set_backtrace_cmd): New function.
1557 (show_backtrace_cmd): New function.
1558 * frame.c (_initialize_frame): Replace "set/show
1559 backtrace-below-main" with "set/show backtrace past-main". Add
1560 command "set/show backtrace limit".
1561 (backtrace_past_main): Rename "backtrace_below_main".
1562 (backtrace_limit): New variable.
1563 (get_prev_frame): Update. Check the backtrace_limit.
1565 2003-08-09 Andrew Cagney <cagney@redhat.com>
1567 * defs.h (xstrprintf): Declare.
1568 * utils.c (xstrprintf): New function.
1569 * breakpoint.c (insert_breakpoints): Replace sprintf and
1570 non-literal format strings, with xstrprintf and cleanups.
1571 (delete_breakpoint,breakpoint_re_set): Ditto.
1572 (commands_command, insert_breakpoints): Ditto.
1573 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1574 (break_at_finish_command_1): Ditto.
1576 2003-08-09 Andrew Cagney <cagney@redhat.com>
1578 * MAINTAINERS (language support): List Adam Fedor as Objective C
1581 2003-08-08 J. Brobecker <brobecker@gnat.com>
1583 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1584 are now multiarched.
1586 2003-08-08 J. Brobecker <brobecker@gnat.com>
1588 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1589 longer necessary now that hppa64 is partially multiarch'ed.
1591 2003-08-08 Andrew Cagney <cagney@redhat.com>
1593 * interps.c (interp_set): Check for a NULL "old_interp".
1595 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1597 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1598 (install-only): Support DESTDIR.
1599 (uninstall): Likewise.
1600 (install-gdbtk): Likewise.
1602 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1604 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1605 contains something meaningful at all times.
1607 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1609 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1611 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1613 * MAINTAINERS (write after approval): Added self.
1615 2003-08-07 Andrew Cagney <cagney@redhat.com>
1617 * inferior.h (AT_SYMBOL): Define.
1618 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1619 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1620 * mips-tdep.c (mips_call_dummy_address): Delete function.
1621 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1622 set call_dummy_address.
1624 2003-08-07 Andrew Cagney <cagney@redhat.com>
1626 * language.c (op_error): Delete function.
1627 (binop_type_check): Delete function.
1628 * language.h (type_op_error, range_op_error): Delete macros.
1629 (op_error): Delete declaration.
1631 2003-08-07 Andrew Cagney <cagney@redhat.com>
1633 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1635 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1637 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1638 (x86_64_push_arguments): Skip the red zone.
1640 2003-08-05 Andrew Cagney <cagney@redhat.com>
1642 * reggroups.c (reggroup_next): Check for the final entry.
1644 2003-08-04 Andrew Cagney <cagney@redhat.com>
1646 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1647 * cli/cli-script.c (define_command): Call query directly, instead
1648 of passing it a buffer.
1649 * ocd.c (ocd_error): Pass error a constant format string.
1650 * remote-mips.c (mips_error): Use fputs_filtered.
1652 * solib-svr4.c (_initialize_svr4_solib): Update
1653 register_gdbarch_data call.
1654 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1656 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1657 (register_gdbarch_data): Delete "free" parameter. Update
1659 * gdbarch.h, gdbarch.c: Re-generate.
1660 * reggroups.c (_initialize_reggroup): Update.
1661 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1662 * frame-base.c (_initialize_frame_base): Update.
1663 * frame-unwind.c (_initialize_frame_unwind): Update.
1664 * user-regs.c (_initialize_user_regs): Update.
1665 * remote.c (_initialize_remote): Update.
1666 * regcache.c (_initialize_regcache): Update.
1668 * regcache.c (xfree_regcache_descr): Delete function.
1669 (_initialize_regcache): Update call to register_gdbarch_data.
1670 (init_regcache_descr, init_legacy_regcache_descr): Use
1671 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1673 * remote.c (free_remote_state): Delete function.
1674 (_initialize_remote): Update register_gdbarch_data.
1675 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1676 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1678 2003-08-04 Andrew Cagney <cagney@redhat.com>
1680 * reggroups.c (struct reggroup_el): Define.
1681 (struct reggroups): Delete field "nr_group". Replace array
1682 "group" with a "first" to "last" linked list.
1683 (reggroups_init): Update. Allocate using gdbarch's obstack.
1684 (reggroups_free): Delete function.
1685 (add_group): Update. Add "el" parameter.
1686 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1687 (default_groups): Update.
1688 (reggroup_next): Replace reggroups.
1689 (reggroups_dump): Update.
1690 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1691 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1692 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1694 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1696 * Makefile.in (tui-interp.o): Update dependencies.
1698 2003-08-04 David Carlton <carlton@kealia.com>
1700 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1701 to internal_error call.
1702 * source.c (forward_search_command): Add "%s" format argument.
1703 (reverse_search_command): Ditto.
1704 * top.c (quit_confirm): Ditto.
1705 * cli/cli-setshow.c (do_setshow_command): Ditto.
1706 * cp-valprint.c (cp_print_class_method): Replace
1707 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1708 (cp_print_class_member): Ditto.
1709 * event-top.c (command_line_handler): Ditto.
1710 * linux-proc.c (linux_info_proc_cmd): Ditto.
1711 * p-typeprint.c (pascal_type_print_base): Ditto.
1712 * p-valprint.c (pascal_object_print_class_method): Ditto.
1713 (pascal_object_print_class_member): Ditto.
1714 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1715 * remote.c (remote_cisco_section_offsets): Ditto.
1716 * top.c (command_line_input): Ditto.
1717 * utils.c (vwarning,error_stream,quit): Ditto.
1718 * valprint.c (print_floating,print_binary_chars)
1719 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1721 2003-08-04 Andrew Cagney <cagney@redhat.com>
1723 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1725 2003-08-02 Andrew Cagney <cagney@redhat.com>
1727 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1728 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1731 2003-08-02 Andrew Cagney <cagney@redhat.com>
1733 * Makefile.in: Update all dependencies and definitions.
1735 2003-08-02 Adam Fedor <fedor@gnu.org>
1737 * linespec.c (is_objc_method_format): New function
1738 (decode_line_1, locate_first_half): Use it.
1741 2003-08-01 Andrew Cagney <cagney@redhat.com>
1743 * NEWS: Mention that m32r is multi-arch.
1744 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1745 * configure.tgt: Recognize m32r-*-*.
1746 * config/m32r/tm-m32r.h: Delete file.
1747 * config/m32r/m32r.mt: New file.
1748 * m32r-rom.c (m32r_upload_command): Use hostent only when
1749 gethostname succeeds, in order to avoid a compilation
1751 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1754 2003-08-01 Michael Snyder <msnyder@redhat.com>
1756 * sh-tdep.c (sh_frame_align): New gdbarch method.
1757 (sh_gdbarch_init): Set up frame_align method.
1759 2003-07-31 Michael Snyder <msnyder@redhat.com>
1761 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1762 which is already covered by the new frames infrastructure.
1764 2003-07-31 Andrew Cagney <cagney@redhat.com>
1766 * user-regs.c (struct user_reg): Add "next" link.
1767 (struct user_regs): Replace "user" with "first" and "last" links.
1768 (append_user_reg): Add pre-allocated "reg" parameter.
1769 (builtin_user_regs): Provide initial value for "last".
1770 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1771 (user_regs_init): Allocate memory from the gdbarch obstack.
1772 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1773 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1775 (usernum_to_user_reg): New function.
1776 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1777 (value_of_user_reg): Use usernum_to_user_reg.
1778 (user_regs_free): Delete function.
1779 (_initialize_user_regs): Update register_gdbarch_data call.
1781 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1783 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1785 2003-07-30 Michael Snyder <msnyder@redhat.com>
1787 * value.h (value_being_returned): Add a struct_addr argument.
1788 * infcall.c (call_function_by_hand): Pass struct_addr to
1789 value_being_returned.
1790 * infcmd.c (print_return_value): Pass zero as struct_addr.
1791 * values.c (value_being_returned): If struct_addr is passed,
1792 use it instead of trying to recover it from the inferior.
1794 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1796 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1797 the prologue analyzer won't need to attempt to extract the pc
1798 value from the woefully incomplete dummy frame.
1799 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1800 possible. Disable code which modifies the frame.
1802 2003-07-28 Andrew Cagney <cagney@redhat.com>
1804 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1806 (annotate_breakpoints_table, annotate_record): Ditto.
1807 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1808 (annotate_field_name_end, annotate_field_value): Ditto.
1809 (annotate_field_end, annotate_frame_source_begin): Ditto.
1810 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1811 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1812 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1813 (annotate_frame_address_end, annotate_frame_address): Ditto.
1814 (annotate_frame_args, annotate_frame_end): Ditto.
1815 (annotate_frame_where, annotate_arg_begin): Ditto.
1816 (annotate_arg_name_end, annotate_arg_value): Ditto.
1817 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1818 (annotate_function_call, annotate_signal_name): Ditto.
1819 (annotate_signal_string, annotate_signal_name_end): Ditto.
1820 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1821 (annotate_value_begin, annotate_value_history_value): Ditto.
1822 (annotate_value_history_end, annotate_value_end): Ditto.
1823 (annotate_display_begin, annotate_display_number_end): Ditto.
1824 (annotate_display_format, annotate_display_expression): Ditto.
1825 (annotate_display_expression_end, annotate_display_value): Ditto.
1826 (annotate_display_end, annotate_array_section_begin): Ditto.
1827 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1828 (annotate_elt, annotate_array_section_end): Ditto.
1830 2003-07-28 Andrew Cagney <cagney@redhat.com>
1832 * regcache.c (struct regcache_descr): Update comments on
1834 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1835 sizeof_raw_register_valid_p.
1836 (init_regcache_descr): Set nr_raw_registers and
1837 sizeof_raw_register_valid_p before calling
1838 init_legacy_regcache_descr.
1840 2003-07-28 Andrew Cagney <cagney@redhat.com>
1842 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1845 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1847 * thread.c (info_threads_command): Use get_selected_frame ().
1848 Check that there is at least one non-sentinel frame.
1850 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1852 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1853 (m68hc11_pop_frame): Remove.
1854 (m68hc11_frame_saved_pc): Remove.
1855 (m68hc11_frame_chain): Remove.
1856 (m68hc11_frame_init_saved_regs): Remove.
1857 (m68hc11_init_extra_frame_info): Remove.
1858 (m68hc11_store_struct_return): Remove.
1859 (m68hc11_saved_pc_after_call): Remove.
1861 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1863 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1864 frame unwind information.
1865 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1866 and adapted for frame unwinding.
1867 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1868 (m68hc11_unwind_pc): New function.
1869 (m68hc11_frame_unwind_cache): New function to analyze frames.
1870 (m68hc11_frame_this_id): New function to create new frame struct.
1871 (m68hc11_frame_prev_register): New function to unwind a register from
1873 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1874 (m68hc11_frame_p): New function for the above.
1875 (m68hc11_frame_base_address): New function to return fp of frame.
1876 (m68hc11_frame_args_address): Update for frame.
1877 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1878 (m68hc11_unwind_sp): New function.
1879 (m68hc11_unwind_dummy_id): New function.
1880 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1883 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1885 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1886 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1887 when we are beyond the current pc.
1889 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1891 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1892 from m68hc11_push_arguments.
1893 (m68hc11_push_arguments): Remove.
1894 (m68hc11_push_return_address): Remove.
1895 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1896 handlers; remove deprecated_extra_stack_alignment_needed.
1898 2003-07-27 Andrew Cagney <cagney@redhat.com>
1900 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1901 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1902 REAL_PC and not the pointer.
1903 * hppa-hpux-tdep.c: Include frame.h
1905 2003-07-27 Andrew Cagney <cagney@redhat.com>
1907 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1908 GDB_MULTI_ACH_PARTIAL.
1910 2003-07-27 Andrew Cagney <cagney@redhat.com>
1912 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1913 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1914 operator at start and not end of line.
1915 (decode_prologue): Ditto.
1916 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1917 frame_unwind_register_unsigned instead of
1918 frame_unwind_unsigned_register.
1919 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1921 (m32r_push_dummy_call): Use register_size instead of
1923 (m32r_frame_sniffer): Replace m32r_frame_p.
1924 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1925 * m32r-rom.c (report_transfer_performance): Delete extern
1927 (m32r_load, m32r_upload_command): Use print_transfer_performance
1928 instead of report_transfer_performance.
1929 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1930 / add_show_from_set.
1932 2003-07-26 Andrew Cagney <cagney@redhat.com>
1934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1935 store_return_value and extract_struct_value_address.
1937 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1940 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1941 NULL, default to the section containing PC.
1943 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1945 * NEWS: Mention "regs" deprecated for m68hc11 too.
1947 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1948 (m68hc11_print_register): New function to print out one register.
1949 (m68hc11_print_registers_info): New function to print registers.
1950 (show_regs): Deprecate and use the above.
1951 (m68hc11_gdbarch_init): Install the print_registers_info.
1953 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1955 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1956 that we have a SIGTRAP before returning non-zero.
1958 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1959 Elena Zannoni <ezannoni@redhat.com>
1961 * linespec.c (decode_line_2): Avoid crash if
1962 find_function_start_sal() returns empty record.
1964 2003-07-23 Andreas Schwab <schwab@suse.de>
1966 * ia64-tdep.c (ia64_print_insn): New function.
1967 (ia64_gdbarch_init): Set print_insn to it.
1968 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1969 deprecated_tm_print_insn_info.
1971 2003-07-22 Michael Snyder <msnyder@redhat.com>
1973 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1974 handle 8-bit returns (long long).
1975 (h8300h_extract_return_value): Ditto.
1976 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1978 2003-07-22 Andrew Cagney <cagney@redhat.com>
1980 * gdbarch.c Include "gdb_obstack.h".
1981 (struct gdbarch): Add an "obstack".
1982 (alloc_gdbarch_data): Allocate the gdbarch data using
1983 GDBARCH_OBSTACK_CALLOC.
1984 (free_gdbarch_data): Delete function.
1985 (gdbarch_obstack_zalloc): New function.
1986 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1987 Assert that the architecture is not initialized.
1988 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1989 vector from the obstack.
1990 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1991 architecture obstack.
1992 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1993 (set_gdbarch_data): Assert that the data is not initialized.
1994 (struct gdbarch_data): Delete member "free".
1995 (register_gdbarch_data): Do not initialize "free".
1996 * gdbarch.h, gdbarch.c: Re-generate.
1998 2003-07-22 Andrew Cagney <cagney@redhat.com>
2000 * configure.in (build_warnings): Add -Wformat-nonliteral.
2001 * configure: Re-generate.
2003 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2005 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2007 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2009 * findvar.c (read_var_value): Remove case for thread local storage
2010 variables. It is now entirely handled by the dwarf2 location
2012 * printcmd.c (address_info): Ditto.
2013 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2015 (struct symbol): Remove objfile field, which was used by
2016 LOC_THREAD_LOCAL_STATIC only.
2017 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2018 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2019 usage of objfile pointer.
2020 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2021 thread local variables.
2022 Add include of objfiles.h.
2023 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2025 * Makefile.in (dwarf2loc.o): Update dependencies.
2027 2003-07-22 Andrew Cagney <cagney@redhat.com>
2029 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2031 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2032 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2033 (struct value): Add opaque declaration.
2034 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2036 2003-07-21 Andrew Cagney <cagney@redhat.com>
2038 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2039 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2041 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2043 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2044 regcache_cooked_read_unsigned instead of read_register.
2045 (m68hc11_saved_pc_after_call): Likewise.
2046 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2047 instead of write_register.
2048 (m68hc11_register_type): New function.
2049 (m68hc11_register_virtual_type): Remove.
2050 (m68hc11_store_return_value): Convert to use the regcache.
2051 (m68hc11_extract_struct_value_address): Likewise.
2052 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2053 m68hc11_register_type; undeprecate store_return_value and
2054 extract_struct_value_address.
2056 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2058 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2059 and translate to use regcache.
2060 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2062 2003-07-18 Andrew Cagney <cagney@redhat.com>
2064 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2065 * gdbarch.h, gdbarch.c: Re-generate.
2066 * i386-tdep.c (i386_gdbarch_init): Do not set
2067 DWARF2_BUILD_FRAME_INFO.
2068 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2070 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2071 DWARF2_BUILD_FRAME_INFO.
2073 2003-07-18 Andrew Cagney <cagney@redhat.com>
2075 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2076 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2078 2003-07-18 Andrew Cagney <cagney@redhat.com>
2080 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2081 frame_unwind_address_in_block, instead of frame_pc_unwind.
2082 (dwarf2_frame_cache): Ditto.
2084 2003-07-18 Andrew Cagney <cagney@redhat.com>
2086 * user-regs.h (struct gdbarch): Declare opaque.
2087 * ui-out.h (struct ui_file): Declare opaque.
2088 * dwarf2-frame.h (struct frame_info): Declare opaque.
2090 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2092 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2094 (procfs_meminfo): Change strerror to safe_strerror.
2095 (procfs_can_run): Remove K&R badness.
2097 2003-07-17 Michael Snyder <msnyder@redhat.com>
2099 * remote-sim.c: Comment typo fix.
2101 2003-07-17 Andrew Cagney <cagney@redhat.com>
2103 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2105 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2106 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2107 GDB_MULTI_ARCH_PARTIAL.
2109 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2111 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2112 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2113 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2115 2003-07-16 Theodore A. Roth <troth@openavr.org>
2117 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2119 (avr_frame_unwind_cache): Don't unwind FP for main.
2121 Save the computed prev_sp.
2122 (avr_saved_regs_unwinder): Remove function.
2123 (avr_frame_prev_register): Use PC unwind logic from
2124 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2126 2003-07-16 Andrew Cagney <cagney@redhat.com>
2128 * frame-base.h (frame_base_p_ftype): Delete definition.
2129 (frame_base_append_predicate): Delete declaration.
2130 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2131 (frame_unwind_append_predicate): Delete declaration.
2132 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2133 (append_predicate): Delete parameter "p".
2134 (frame_unwind_append_predicate): Delete function.
2135 (frame_unwind_append_sniffer): Update call to append_predicate.
2136 (frame_unwind_free): Delete function.
2137 (_initialize_frame_unwind): Pass NULL as "free" to
2138 register_gdbarch_data.
2139 (frame_unwind_init): Append the dummy_frame_sniffer.
2140 (frame_unwind_find_by_frame): Simplify.
2141 * frame-base.c (struct frame_base_table): Delete field "p".
2142 (append_predicate): Delete parameter "p".
2143 (frame_base_append_predicate): Delete function.
2144 (frame_base_append_sniffer): Update call to append_predicate.
2145 (frame_base_free): Delete function.
2146 (frame_base_find_by_frame): Simplify.
2147 (_initialize_frame_base): Pass NULL as "free" to
2148 register_gdbarch_data.
2149 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2150 (x86_64_sigtramp_frame_sniffer): Replace
2151 "x86_64_sigtramp_frame_p".
2152 (x86_64_init_abi): Set the frame unwind sniffers.
2153 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2154 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2155 (m68k_gdbarch_init): Set the frame unwind sniffers.
2156 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2157 "i386_sigtramp_frame_p".
2158 (i386_frame_sniffer): Replace "i386_frame_p".
2159 (i386_gdbarch_init): Set the frame unwind sniffers.
2160 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2161 (avr_gdbarch_init): Set the frame unwind sniffers.
2162 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2163 "alpha_sigtramp_frame_p"
2164 (alpha_heuristic_frame_sniffer): Replace
2165 "alpha_heuristic_frame_p".
2166 (alpha_gdbarch_init): Set the frame unwind sniffers.
2167 (alpha_dwarf2_init_abi): Ditto.
2168 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2169 "alpha_debug_frame_p".
2170 (alpha_mdebug_frame_base_sniffer): Replace
2171 "alpha_mdebug_frame_base_p".
2172 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2173 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2174 (d10v_gdbarch_init): Set the frame unwind sniffer.
2175 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2176 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2177 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2178 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2179 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2180 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2182 2003-07-16 Michael Snyder <msnyder@redhat.com>
2184 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2185 should go thru sh_dsp_register_sim_regno, else the dsp regs
2186 will not get the right values.
2188 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2190 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2191 deprecated_store_floating by call to store_typed_floating.
2192 (sh_sh4_register_convert_to_raw): Substitute call to
2193 deprecated_extract_floating by call to extract_typed_floating.
2195 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2197 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2199 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2201 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2202 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2203 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2205 (do_pseudo_register): Remove.
2206 (sh_push_dummy_code): New function.
2207 (sh64_store_struct_return): Rename from sh_store_struct_return.
2208 Only called for sh64 now.
2209 (sh_extract_struct_value_address): Regcache'ify.
2210 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2211 and accomodate new tasks.
2212 (sh64_push_return_address): Rename from sh_push_return_address.
2213 Only called for sh64 now.
2214 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2216 (sh3e_sh4_extract_return_value): Regcache'ify.
2217 (sh_default_store_return_value): Ditto.
2218 (sh3e_sh4_store_return_value): Ditto.
2219 (sh_default_register_byte): Remove.
2220 (sh_sh4_register_byte): Remove.
2221 (sh_default_register_raw_size): Remove.
2222 (sh_sh4_register_raw_size): Remove.
2223 (sh_register_virtual_size): Remove.
2224 (sh_sh3e_register_virtual_type): Remove.
2225 (sh_sh3e_register_type): New function.
2226 (sh_sh4_register_virtual_type): Remove.
2227 (sh_sh4_register_type): New function.
2228 (sh_default_register_virtual_type): Remove.
2229 (sh_default_register_type): New function.
2230 (do_fv_register_info): Add parameters to accomodate call from
2231 sh_print_registers_info.
2232 (do_dr_register_info): Ditto.
2233 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2234 Add parameters to accomodate call from sh_print_registers_info.
2235 (sh_do_fp_register): Ditto.
2236 (sh64_do_pseudo_register): Call do_dr_register_info,
2237 do_fv_register_info and sh_do_fp_register with default parameters.
2238 (sh_do_register): Add parameters to accomodate call from
2239 sh_print_registers_info.
2240 (sh_print_register): Ditto.
2241 (sh_print_registers_info): Rename from sh_do_registers_info.
2242 Add parameters to be used as gdbarch_print_registers_info
2243 implementation. Accomodate removed do_pseudo_register function
2245 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2246 function pointer. Call sh_print_register with default parameters.
2247 (sh64_do_registers_info): Call sh_print_registers_info instead of
2248 sh_do_registers_info.
2249 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2250 detection of deprecated vs. non-deprecated functionality.
2251 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2252 function pointer assignments by direct function calls.
2254 2003-07-15 Andrew Cagney <cagney@redhat.com>
2256 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2257 (frame_register_unwind, create_new_frame): Ditto.
2258 (legacy_get_prev_frame, get_frame_type): Ditto.
2259 (get_frame_base_address): Use frame_base_find_by_frame.
2260 (get_frame_locals_address): Use frame_base_find_by_frame.
2261 (get_frame_args_address): Use frame_base_find_by_frame.
2262 * frame-base.h (frame_base_sniffer_ftype): Declare.
2263 (frame_base_append_sniffer): Declare.
2264 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2265 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2266 (frame_base_append_sniffer): New function.
2267 (frame_base_append_predicate): Add a NULL sniffer.
2268 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2269 (struct frame_base_table): Add "sniffer".
2270 (frame_base_free): Free the "sniffer" table.
2271 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2272 (frame_unwind_append_sniffer): Declare.
2273 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2274 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2275 (struct frame_unwind_table): Add "sniffer", delete "middle".
2276 (append_predicate): Add "sniffer" parameter, append the sniffer.
2277 (frame_unwind_init): Update append_predicate call.
2278 (frame_unwind_append_sniffer): New function.
2279 (frame_unwind_append_predicate): Update append_predicate call.
2280 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2282 2003-07-15 Andrew Cagney <cagney@redhat.com>
2284 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2285 before code inhibiting repeated unwind attempts. Add to
2286 commentary on that test's problems.
2287 * blockframe.c (inside_main_func): Look for "main" in the minimal
2289 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2292 2003-07-15 Andrew Cagney <cagney@redhat.com>
2294 * complaints.c (struct explanation): Define.
2295 (struct complaints): Change type of "explanation" to "struct
2297 (symfile_explanations): Convert to a "struct explanation" table.
2298 (vcomplaint): Update.
2300 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2302 * x86-64-linux-nat.c (regmap): Removed.
2303 (supply_gregset, fill_gregset): Call
2304 x86_64_linux_(fill,supply)_gregset functions.
2305 * x86-64-linux-tdep.c (USER_*): New defines.
2306 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2307 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2309 (fetch_core_registers): Ditto.
2310 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2311 * x86-64-linux-tdep.h: New file.
2312 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2314 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2316 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2318 * x86-64-tdep.c (x86_64_store_return_value): Use
2319 regcache_cooked_write_part instead of regcache_cooked_write.
2321 * configure.host: Add x86_64-*-freebsd*.
2322 * configure.tgt: Add x86_64-*-freebsd*.
2323 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2324 * amd64fbsd-nat.c: New file.
2325 * amd64fbsd-tdep.c: New file.
2326 * config/i386/nm-fbsd64.h: New file.
2327 * config/i386/fbsd64.mh: New file.
2328 * config/i386/fbsd64.mt: New file.
2330 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2332 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2333 `sc_regs_offset' and `sc_fpregs_offset'.
2334 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2335 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2336 (alpha_sigtramp_register_address): Rewrite to use new members of
2337 `struct gdbarch_tdep'.
2338 (alpha_gdbarch_init): Initialize new members of struct
2340 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2341 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2342 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2343 (alphafbsd_pc_in_sigtramp): Implement.
2344 (alphafbsd_sigtramp_offset): New function.
2345 (alphafbsd_sigcontext_addr): New function.
2346 (alphafbsd_init_abi): Initialize signal trampoline related members
2347 of `struct gdbarch_tdep'.
2348 (_initialize_alphafbsd_tdep): Add prototype.
2350 2003-07-11 Theodore A. Roth <troth@openavr.org>
2352 * Makefile.in (install-only): Quote sed expression when generating
2355 2003-07-11 Richard Henderson <rth@redhat.com>
2357 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2358 * dwarf2-frame.c: Include complaints.h.
2359 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2360 variable initialization; return NULL on error.
2361 (decode_frame_entry): New.
2363 2003-07-11 Andrew Cagney <cagney@redhat.com>
2365 * frame.h (frame_address_in_block): Delete declaration.
2366 * blockframe.c (frame_address_in_block): Delete function.
2367 (get_frame_block): Use get_frame_address_in_block.
2368 (block_innermost_frame): Ditto.
2369 * stack.c (print_frame, backtrace_command_1): Ditto.
2371 * frame.h (get_frame_address_in_block): Declare.
2372 (frame_unwind_address_in_block): Declare.
2373 * frame.c (frame_unwind_address_in_block): New function.
2374 (get_frame_address_in_block): New function.
2376 2003-07-10 Andrew Cagney <cagney@redhat.com>
2378 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2379 pre-default. Note: re-generate has no effect.
2381 2003-07-10 Andrew Cagney <cagney@redhat.com>
2383 * gdbarch.sh: When a variable, but not a function, compare against
2384 0. Fix problem in previous patch.
2385 * gdbarch.c: Re-generate.
2387 2003-07-10 Andrew Cagney <cagney@redhat.com>
2389 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2390 functions against NULL, not 0.
2391 * gdbarch.c: Re-generate.
2393 2003-07-10 Fred Fish <fnf@ninemoons.com>
2395 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2396 null string instead of a null pointer.
2397 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2399 2003-07-09 Michael Snyder <msnyder@redhat.com>
2401 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2403 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2405 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2406 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2407 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2408 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2409 * x86-64-tdep.c: ... from here.
2411 2003-07-09 Andreas Schwab <schwab@suse.de>
2413 * m68k-tdep.h (enum struct_return): Define.
2414 (struct gdbarch_tdep): Add struct_return.
2415 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2416 bytes are padded to the right, not to the left. Pass struct value
2417 address in register %a1, not on stack.
2418 (m68k_use_struct_convention): New function.
2419 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2420 struct_return in tdep to pcc_struct_return.
2421 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2424 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2426 * somread.c (som_symfile_offsets): Fix compilation error.
2428 2003-07-09 Andrew Cagney <cagney@redhat.com>
2430 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2431 Add comments about the checks.
2433 2003-07-08 Andrew Cagney <cagney@redhat.com>
2435 * Makefile.in: Make dependency section headers consistent.
2436 (config_h): Move to $BUILD headers section.
2437 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2438 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2439 (ada-exp.tab.c): Move to YACC/LEX section.
2440 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2441 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2443 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2445 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2446 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2447 of strerror with safe_strerror, use ISO C function definitions,
2448 and replace instances of sprintf with snprintf.
2450 2003-07-07 Andrew Cagney <cagney@redhat.com>
2452 * frame.c (get_prev_frame): Enable check for identical frames.
2453 Update comments. Update error messages.
2455 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2457 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2459 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2461 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2462 sort_symtab_syms, no longer necessary.
2464 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2466 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2468 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2470 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2471 (mips_register_byte): Likewise.
2473 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2475 * Makefile.in (sparc_tdep_h): New.
2476 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2477 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2478 * sparc-linux-nat.c: Include "sparc-tdep.h".
2479 * sparc-nat.c: Likewise.
2480 * sparc-tdep.c: Likewise.
2481 * sparc64nbsd-nat.c: Likewise.
2482 * sparcnbsd-nat.c: Likewise.
2483 * sparcnbsd-tdep.c: Likewise.
2484 * sparc-tdep.h: New file.
2485 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2486 and sparc_npc_regnum.
2488 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2490 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2491 (mips_linux_cannot_store_register): List supported instead of
2492 unsupported registers.
2494 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2496 * disasm.c (dump_insns): Separate instructions from addresses.
2498 2003-07-07 Andreas Schwab <schwab@suse.de>
2500 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2502 * m68k-tdep.c (NUM_FREGS): Delete.
2503 (SIG_PC_FP_OFFSET): Delete.
2504 (TARGET_M68K): Delete.
2505 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2506 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2507 P_MOVEL_SP, P_MOVEML_SP): Define.
2508 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2510 (m68k_register_raw_size): Delete.
2511 (m68k_register_virtual_size): Delete.
2512 (m68k_register_type): Renamed from m68k_register_virtual_type and
2513 add gdbarch argument.
2514 (m68k_store_struct_return): Delete.
2515 (m68k_deprecated_extract_return_value): Delete.
2516 (m68k_deprecated_extract_struct_value_address): Delete.
2517 (m68k_frame_chain): Delete.
2518 (m68k_frame_saved_pc): Delete.
2519 (m68k_fix_call_dummy): Delete.
2520 (m68k_push_dummy_frame): Delete.
2521 (m68k_pop_frame): Delete.
2522 (m68k_extract_return_value): New function.
2523 (m68k_store_return_value): Rewrite using regcache.
2524 (m68k_extract_struct_value_address): Rewrite using regcache.
2525 (m68k_push_dummy_call): New function.
2526 (struct m68k_frame_cache): Define.
2527 (m68k_alloc_frame_cache): New function.
2528 (m68k_analyze_frame_setup): New function.
2529 (m68k_analyze_register_saves): New function.
2530 (m68k_analyze_prologue): New function.
2531 (m68k_skip_prologue): Rewrite using above functions.
2532 (m68k_unwind_pc): New function.
2533 (m68k_frame_cache): New function.
2534 (m68k_frame_this_id): New function.
2535 (m68k_frame_prev_register): New function.
2536 (m68k_frame_unwind): New variable.
2537 (m68k_frame_p): New function.
2538 (m68k_sigtramp_frame_cache): New function.
2539 (m68k_sigtramp_frame_this_id): New function.
2540 (m68k_sigtramp_frame_prev_register): New function.
2541 (m68k_sigtramp_frame_unwind): New variable.
2542 (m68k_sigtramp_frame_p): New function.
2543 (m68k_frame_base_address): New function.
2544 (m68k_frame_base): New function.
2545 (m68k_unwind_dummy_id): New function.
2546 (fill_gregset): Use regcache_collect.
2547 (fill_fpregset): Likewise.
2548 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2550 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2551 deprecated_init_frame_pc, deprecated_store_struct_return,
2552 deprecated_extract_return_value, deprecated_store_return_value,
2553 deprecated_frame_chain, deprecated_frame_saved_pc,
2554 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2555 deprecated_register_virtual_size,
2556 deprecated_max_register_raw_size,
2557 deprecated_max_register_virtual_size,
2558 deprecated_register_virtual_type, deprecated_register_size,
2559 deprecated_register_byte, deprecated_register_bytes,
2560 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2561 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2562 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2563 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2564 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2565 deprecated_push_dummy_frame, deprecated_pop_frame,
2566 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2567 only if SYSCALL_TRAP is defined. Set extract_return_value,
2568 store_return_value, extract_struct_value_address, register_type,
2569 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2571 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2572 M68K_MAX_REGISTER_SIZE): Define.
2573 (struct m68k_sigtramp_info): Define.
2574 (struct gdbarch_tdep): Add get_sigtramp_info.
2575 * m68klinux-nat.c (fetch_register): Use register_size instead of
2576 REGISTER_RAW_SIZE. Don't put assignment in if.
2577 (store_register): Likewise.
2578 (fetch_inferior_registers): Likewise.
2579 (store_inferior_registers): Likewise.
2580 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2581 (m68k_linux_frame_saved_pc): Delete.
2582 (m68k_linux_sigcontext_reg_offset,
2583 m68k_linux_ucontext_reg_offset): Define.
2584 (m68k_linux_get_sigtramp_info): New function.
2585 (m68k_linux_extract_return_value): Rewrite using regcache.
2586 (m68k_linux_store_return_value): Likewise.
2587 (m68k_linux_extract_struct_value_address): Likewise.
2588 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2589 Don't set deprecated_frame_saved_pc,
2590 deprecated_extract_return_value, deprecated_store_return_value,
2591 deprecated_extract_struct_value_address. Set
2592 extract_return_value, store_return_value,
2593 extract_struct_value_address.
2595 2003-07-07 Andrew Cagney <cagney@redhat.com>
2597 * expprint.c: Include "user-regs.h" instead of "frame.h".
2598 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2599 frame_map_regnum_to_name.
2600 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2601 (frame_map_name_to_regnum): Simplify, call
2602 user_reg_map_name_to_regnum.
2603 (frame_map_regnum_to_name): Simplify, call
2604 user_reg_map_regnum_to_name.
2605 (frame_register_unwind): Update.
2606 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2607 (_initialize_frame_reg): Call user_reg_add_builtin.
2608 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2609 (value_of_register): Use value_of_user_reg.
2610 * eval.c (evaluate_subexp_standard): Update.
2611 * parse.c (write_dollar_variable): Update.
2612 * d10v-tdep.c (d10v_print_registers_info): Update.
2613 * infcmd.c (registers_info): Update.
2614 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2615 (builtin_regs_h): Delete macro.
2616 (user_regs_h): Define.
2617 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2618 (builtin-regs.o): Delete target.
2619 (user-regs.o): Specify dependencies.
2620 (expprint.o): Update dependencies.
2621 (findvar.o): Update dependencies.
2622 (frame.o): Update dependencies.
2623 (std-regs.o): Update dependencies.
2625 2003-07-06 Christopher Faylor <cgf@redhat.com>
2627 * win32-nat.c (solib_symbols_add): Use one variable for all section
2628 address stuff. Pass variable rather than address of variable to
2629 safe_symbol_file_add.
2631 2003-07-06 Andreas Schwab <schwab@suse.de>
2633 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2635 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2637 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2639 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2641 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2643 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2645 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2646 * config/i386/nto.mh: New file.
2647 * config/i386/nm-nto.h: New file.
2648 * configure.host: Add i[3456]86-*-nto*.
2650 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2652 * remote-vx.c (vx_add_symbols): Fix compilation error.
2654 2003-07-03 Andrew Cagney <cagney@redhat.com>
2656 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2657 * gdbarch.h, gdbarch.c: Re-generate.
2658 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2659 (legacy_register_name): Declare.
2660 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2661 (REGISTER_NAME): Define.
2662 * sparc-tdep.c (legacy_register_name): New function.
2663 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2664 (REGISTER_NAME): Define.
2665 (hppa64_register_name): Declare.
2666 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2667 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2668 (hppa64_register_name): New function.
2669 (hppa_register_name): New function.
2670 * arch-utils.c (legacy_register_name): Delete.
2671 * arch-utils.h (legacy_register_name): Delete.
2673 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2675 * cli/cli-interp.c (cli_interpreter_resume): Update the
2676 cli_uiout's stream to gdb_stdout.
2678 2003-07-03 Andrew Cagney <cagney@redhat.com>
2680 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2682 * gdbarch.h, gdbarch.c: Re-generate.
2683 * regcache.c (init_regcache_descr): Use legacy code when either
2684 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2686 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2688 * NEWS: Move "set logging" entry into GDB 6.0 section.
2690 2003-07-02 Jim Blandy <jimb@redhat.com>
2692 * s390-tdep.c (struct frame_extra_info): new member:
2693 'stack_bought_valid'.
2694 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2695 initialize fextra_info->stack_bought.
2696 (s390_frameless_function_invocation): Don't trust the value of
2697 fextra_info_ptr->stack_bought unless
2698 fextra_info->stack_bought_valid is set.
2700 New S390 prologue analyzer.
2701 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2702 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2703 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2704 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2705 compute_x_addr, s390_on_stack, s390_store,
2706 s390_get_signal_frame_info): New functions.
2707 (S390_NUM_SPILL_SLOTS): New macro.
2708 (s390_get_frame_info): Rewritten.
2709 (is_arg_reg): Deleted.
2711 Break out the decoding of S/390 instructions into separate
2712 functions, to make it more legible, and easier to check
2714 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2715 is_rx, is_rxe): New functions.
2716 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2717 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2718 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2719 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2720 enums for opcode values. (Is this an improvement?)
2722 2003-07-02 Andrew Cagney <cagney@redhat.com>
2724 * i386-tdep.c: Revert change committed as part of trad-frame code
2727 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2729 * breakpoint.c (insert_catchpoint): Make static.
2731 2003-07-02 Andreas Schwab <schwab@suse.de>
2733 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2734 former ia64_push_arguments and ia64_push_return_address, and use
2735 regcache functions instead of read/write_register.
2736 (ia64_gdbarch_init): Set push_dummy_call instead of
2737 deprecated_push_arguments and deprecated_push_return_address.
2739 2003-07-01 Andreas Jaeger <aj@suse.de>
2741 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2743 Set %rax only to number of SSE registers used.
2745 2003-07-01 Andrew Cagney <cagney@redhat.com>
2747 * trad-frame.h: Update comments, a -1 .addr is reserved.
2748 (trad_frame_value_p, trad_frame_addr_p): Declare.
2749 (trad_frame_reg_p): Declare.
2750 (trad_frame_set_value): Rename trad_frame_register_value.
2751 (trad_frame_set_unknown): Declare.
2752 * trad-frame.c (trad_frame_realreg_p): New function.
2753 (trad_frame_addr_p, trad_frame_value_p): New function.
2754 (trad_frame_set_unknown): New function.
2755 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2756 (trad_frame_prev_register): Use trad_frame_realreg_p,
2757 trad_frame_addr_p and trad_frame_value_p.
2758 (trad_frame_set_value): Rename trad_frame_register_value.
2759 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2760 and trad_frame_set_value.
2762 2003-06-30 Jim Blandy <jimb@redhat.com>
2764 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2765 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2766 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2767 for 16 registers, and then 32 more bytes.
2768 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2770 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2771 Move up in the file, since it's now used by is_simple_arg.
2772 (is_simple_arg): Don't assume registers are four bytes long.
2773 Exclude all double arguments. Extended floats are not simple
2775 (is_power_of_two): New function.
2776 (pass_by_copy_ref): Call is_power_of_two, and check that the
2777 length fits in a register, rather than listing all the acceptable
2778 sizes. Extended floats are not passed by reference.
2779 (s390_push_arguments): Don't assume registers are four bytes long.
2780 Reserve an argument register to point to the buffer for structures
2781 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2782 S390_STACK_FRAME_OVERHEAD.
2784 2003-06-30 Andreas Schwab <schwab@suse.de>
2786 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2787 format error message.
2789 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2791 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2793 2003-06-30 David Carlton <carlton@kealia.com>
2795 Band-aid for PR c++/1245.
2796 * Makefile.in (cp-support.o): Depend on complaints_h.
2797 * cp-support.c: Include complaints.h. Add declaration for
2798 find_last_component.
2799 (cp_find_first_component): Separate code into
2800 cp_find_first_component_aux.
2801 (cp_find_first_component_aux): Call demangled_name_complaint.
2802 (demangled_name_complaint): New.
2804 2003-06-30 Andrew Cagney <cagney@redhat.com>
2806 * remote.c (remote_write_bytes): Explicitly compute and then use
2807 the payload size. Update comments to reflect. Fixes problem of
2808 GDB not sending small packets as found by Fred Fish.
2810 2003-06-30 Andrew Cagney <cagney@redhat.com>
2812 * remote.c (remote_async_wait): Fix -Wformat problem.
2814 2003-06-29 Andrew Cagney <cagney@redhat.com>
2816 * remote.c (remote_wait): Call error, and not warning, when the
2818 (remote_async_wait): Ditto.
2820 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2822 * sparc-tdep.c (sparc_y_regnum): Make external again.
2824 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2826 * cli/cli-logging.c (pop_output_files): Add void to function
2829 2003-06-29 Andrew Cagney <cagney@redhat.com>
2831 * frame.c (frame_register_unwind): Use unsigned char when dumping
2832 the buffer contents.
2834 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2836 * cli/cli-logging.c: New file.
2837 * cli-out.c (struct ui_out_data): Add original_stream.
2838 (cli_redirect): New function.
2839 (cli_ui_out_impl): Add cli_redirect.
2840 (cli_out_new): Initialize original_stream.
2841 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2842 (uo_redirect, ui_out_redirect): New.
2843 * ui-out.h (struct ui_out_impl): Add redirect member.
2844 (redirect_ftype): New.
2845 (ui_out_redirect): Add prototype.
2846 * Makefile.in: Add rules for cli-logging.c.
2847 * NEWS: Mention "set logging".
2849 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2851 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2853 2003-06-27 Andrew Cagney <cagney@redhat.com>
2855 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2856 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2857 * avr-tdep.c (avr_call_dummy_address): Delete function.
2858 (avr_gdbarch_init): Do not set call_dummy_address.
2860 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2862 * symfile.c (syms_from_objfile): Move variables to inner block.
2863 Move the checks for the non-mainline case a bit earlier to avoid
2864 doing some useless computations.
2866 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2868 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2870 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2872 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2875 2003-06-26 Michael Chastain <mec@shout.net>
2877 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2878 gdb/testsuite/gdb.c++/pr-1210.exp.
2880 2003-06-26 Andrew Cagney <cagney@redhat.com>
2882 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2883 altivec_expression.h and altivec_registers.h.
2885 2003-06-26 Andrew Cagney <cagney@redhat.com>
2887 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2888 info->mach when MIPS16. Patch suggested by Fred Fish.
2890 2003-06-26 Andrew Cagney <cagney@redhat.com>
2892 * utils.c (internal_vproblem): Print the problem to a reason
2893 buffer and then pass to query. Make the msg variable more local.
2895 2003-06-26 Andrew Cagney <cagney@redhat.com>
2897 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2898 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2899 * gdbarch.h, gdbarch.c: Re-generate.
2900 * frame-base.c (default_frame_args_address): Update. Use
2901 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2903 (default_frame_locals_address): Ditto for
2904 DEPRECATED_FRAME_LOCALS_ADDRESS.
2905 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2906 (vax_frame_num_args): Update.
2907 (vax_gdbarch_init): Update.
2908 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2909 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2910 * mcore-tdep.c (mcore_gdbarch_init): Update.
2911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2912 * ia64-tdep.c (ia64_gdbarch_init): Update.
2913 * symtab.h (address_class): Update comments.
2914 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2915 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2916 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2917 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2918 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2919 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2920 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2921 * alpha-mdebug-tdep.c: Update.
2922 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2924 2003-06-26 Andreas Jaeger <aj@suse.de>
2926 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2927 of SSE registers so that varargs functions work. Rework handling
2928 of passing arguments on the stack.
2929 (x86_64_store_return_value): Return double and float values in SSE
2932 2003-06-24 Michael Chastain <mec@shout.net>
2934 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2935 the "constructor breakpoints ignored" bug.
2937 2003-06-25 David Carlton <carlton@kealia.com>
2939 * MAINTAINERS: Update e-mail address.
2941 2003-06-24 Jim Blandy <jimb@redhat.com>
2943 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2945 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2947 (ppc_linux_init_abi): Register it as the
2948 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2950 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2951 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2954 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2955 (ppc64_standard_linkage_target): Use it.
2957 2003-06-23 Andrew Cagney <cagney@redhat.com>
2959 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2960 for 0 "int0" and 4 "int32" sized registers.
2961 * gdbtypes.c (builtin_type_int0): Define.
2962 (build_gdbtypes): Initialize builtin_type_int0.
2963 * gdbtypes.h (builtin_type_int0): Declare.
2965 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2967 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2968 as characters are unsigned.
2970 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2973 * dwarfread.c (struct_type): Skip static fields without crashing.
2975 2003-06-22 Andrew Cagney <cagney@redhat.com>
2977 GDB 6.0 branch created.
2979 * PROBLEMS: Update. Empty.
2982 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2984 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2985 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2987 2003-06-22 Andrew Cagney <cagney@redhat.com>
2989 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2990 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2993 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2995 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2998 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3000 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3001 argument of val_print.
3002 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3003 to the address argument of baseclass_offset or target_read_memory.
3004 Do add it to the argument of cp_print_value_fields.
3006 2003-06-21 Andrew Cagney <cagney@redhat.com>
3008 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3009 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3010 instead of 0..NUM_REGS.
3011 (mips_register_reggroup_p): New function.
3012 (mips_pseudo_register_write): New function.
3013 (mips_pseudo_register_read): New function.
3014 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3015 based on the register's type.
3016 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3018 (mips_get_saved_register): Simplify. Assert that REGNO is a
3020 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3021 (mips_register_type): Replace mips_register_virtual_type. Map
3022 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3024 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3025 that the register is cooked / virtual.
3026 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3027 Only get the extra info when needed.
3028 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3029 (mips32_heuristic_proc_desc): Fetch the cooked register.
3030 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3031 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3032 (mips_print_register): Use gdbarch_register_type, instead of
3033 REGISTER_VIRTUAL_TYPE.
3034 (print_gp_register_row): Use gdbarch_register_type, instead of
3035 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3036 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3037 Print the pseudo / cooked registers.
3038 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3039 Print the pseudo / cooked registers.
3040 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3041 REG_NUM is pseudo / cooked.
3042 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3043 (mips_n32n64_xfer_return_value): Ditto.
3044 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3045 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3046 (mips_register_sim_regno): New function.
3047 (mips_gdbarch_init): Set deprecated_register_byte,
3048 register_group_p, pseudo_register_write, pseudo_register_read,
3049 register_sim_regno, and num_pseudo_regs. Set register_type,
3050 instead of register_virtual_type.
3051 * Makefile.in (mips-tdep.o): Update dependencies.
3052 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3053 REGISTER_VIRTUAL_TYPE.
3054 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3055 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3056 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3057 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3058 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3060 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3062 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3063 * cli/cli-cmds.c: Include "gdb_vfork.h".
3064 (shell_escape): Use vfork.
3066 2003-06-21 Andrew Cagney <cagney@redhat.com>
3068 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3069 32 bit floating-point register saves.
3071 * frame.h (deprecated_unwind_get_saved_register): Delete.
3072 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3073 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3074 and deprecated_get_next_frame_hack instead of
3075 deprecated_unwind_get_saved_register.
3077 * mips-tdep.c (mips_dump_tdep): Do not print
3078 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3080 * frame.c (get_frame_register): New function.
3081 (frame_unwind_register_signed): New function.
3082 (get_frame_register_signed): New function.
3083 (frame_unwind_register_unsigned): New function.
3084 (get_frame_register_unsigned): New function.
3085 * frame.h: Add comments on naming schema.
3086 (get_frame_register, frame_unwind_register_signed): Declare.
3087 (get_frame_register_signed, get_frame_register_signed): Declare.
3088 (frame_unwind_register_unsigned): Declare.
3089 (get_frame_register_unsigned): Declare.
3091 2003-06-20 Theodore A. Roth <troth@openavr.org>
3093 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3095 2003-06-20 Theodore A. Roth <troth@openavr.org>
3097 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3098 (avr_read_sp): Ditto.
3100 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3102 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3103 * config/arm/nm-linux.h: Likewise.
3104 * config/arm/tm-linux.h: Likewise.
3105 * config/ia64/nm-linux.h: Likewise.
3106 * config/ia64/tm-ia64.h: Likewise.
3107 * config/s390/tm-linux.h: Likewise.
3108 * config/s390/tm-s390.h: Likewise.
3109 * s390-nat.c: Likewise.
3110 * s390-tdep.c: Likewise.
3112 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3113 * config/ia64/linux.mt: Likewise.
3114 * config/m68k/linux.mh: Likewise.
3115 * config/mips/linux.mt: Likewise.
3116 * config/powerpc/linux.mh: Likewise.
3117 * config/sh/linux.mt: Likewise.
3119 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3121 * solib.c (solib_open): Change tests for whether to search
3122 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3125 2003-06-19 Theodore A. Roth <troth@openavr.org>
3127 * avr-tdep.c (avr_frame_address): Delete function.
3128 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3129 set_gdbarch_frame_args_address.
3131 2003-06-19 Andrew Cagney <cagney@redhat.com>
3133 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3134 (REGISTER_CONVERT_FROM_TYPE): Delete.
3135 (mips_register_convert_to_type): Delete declaration.
3136 (mips_register_convert_from_type): Delete declaration.
3137 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3140 2003-06-19 Michael Snyder <msnyder@redhat.com>
3142 * linux-nat.h: New file.
3143 * linux-nat.c: Include linux-nat.h.
3144 * lin-lwp.c: Include linux-nat.h.
3145 Move struct lwp_info def to linux-nat.h.
3146 * linux-proc.c: Include linux-nat.h.
3147 (linux_make_note_section): Iterate over lwps instead of threads.
3148 (linux_do_thread_registers): Use lwp instead of merged pid.
3149 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3150 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3151 Add dependency on linux_nat_h.
3153 2003-06-19 Theodore A. Roth <troth@openavr.org>
3155 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3157 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3159 * varobj.c (get_type, get_target_type): Use check_typedef.
3161 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3163 * breakpoint.c (insert_catchpoint): Call internal_error.
3165 2003-06-19 Theodore A. Roth <troth@openavr.org>
3167 * avr-tdep.c (avr_push_dummy_code): Delete function.
3168 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3170 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3172 * arch-utils.c (default_prepare_to_proceed): Remove.
3173 (generic_prepare_to_proceed): Remove.
3174 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3175 (generic_prepare_to_proceed): Remove prototype.
3176 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3177 * gdbarch.c: Regenerate.
3178 * gdbarch.h: Regenerate.
3179 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3180 * hppah-nat.c (hppa_switched_threads): Remove.
3181 * infrun.c (prepare_to_proceed): New static function, copied from
3182 generic_prepare_to_proceed. Remove select_it argument.
3183 (proceed): Call prepare_to_proceed.
3184 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3186 (ptrace_wait): Don't set the removed variables.
3187 (hppa_switched_threads): Remove.
3188 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3189 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3190 (lin_lwp_prepare_to_proceed): Remove prototype.
3191 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3192 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3194 2003-06-18 Theodore A. Roth <troth@openavr.org>
3196 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3198 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3199 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3200 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3201 (AVR_PROLOGUE_*): Enumerate prologue types.
3202 (struct frame_extra_info): Remove.
3203 (struct avr_unwind_cache): Define.
3204 (avr_write_sp): Delete function.
3205 (avr_read_fp): Ditto.
3206 (avr_init_extra_frame_info): Ditto.
3207 (avr_pop_frame): Ditto.
3208 (avr_frame_saved_pc): Ditto.
3209 (avr_saved_pc_after_call): Ditto.
3210 (avr_push_return_address): Ditto.
3211 (avr_frame_chain): Ditto.
3212 (avr_store_struct_return): Ditto.
3213 (avr_push_arguments): Ditto.
3214 (avr_scan_prologue): Update comments. Changed to set up the info for
3215 cache unwinding. Now returns end of prologue PC.
3216 (avr_skip_prologue): Better handling of functions lacking a prologue
3217 by using avr_scan_prologue.
3218 (avr_scan_arg_moves): New function.
3219 (avr_saved_regs_unwinder): Ditto.
3220 (avr_frame_unwind_cache): Ditto.
3221 (avr_unwind_pc): Ditto.
3222 (avr_frame_this_id): Ditto.
3223 (avr_frame_prev_register): Ditto.
3224 (avr_frame_p): Ditto.
3225 (avr_frame_base_address ): Ditto.
3226 (avr_unwind_dummy_id): Ditto.
3227 (avr_push_dummy_code): Ditto.
3228 (push_stack_item): Ditto.
3229 (pop_stack_item): Ditto.
3230 (avr_push_dummy_call): Ditto.
3231 (struct stack_item): Define.
3232 (avr_frame_unwind): Declare structure.
3233 (avr_frame_base): Ditto.
3234 (avr_gdbarch_init): Remove calls to
3235 set_gdbarch_deprecated_init_frame_pc,
3236 set_gdbarch_deprecated_target_read_fp,
3237 set_gdbarch_deprecated_dummy_write_sp,
3238 set_gdbarch_deprecated_fp_regnum,
3239 set_gdbarch_deprecated_push_arguments,
3240 set_gdbarch_deprecated_push_return_address,
3241 set_gdbarch_deprecated_pop_frame,
3242 set_gdbarch_deprecated_store_struct_return,
3243 set_gdbarch_deprecated_frame_init_saved_regs,
3244 set_gdbarch_deprecated_init_extra_frame_info,
3245 set_gdbarch_deprecated_frame_chain,
3246 set_gdbarch_deprecated_frame_saved_pc,
3247 set_gdbarch_deprecated_saved_pc_after_call.
3248 Add calls to set_gdbarch_push_dummy_call,
3249 set_gdbarch_push_dummy_code,
3250 frame_unwind_append_predicate,
3251 frame_base_set_default,
3252 set_gdbarch_unwind_dummy_id,
3253 set_gdbarch_unwind_pc.
3256 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3258 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3259 registers for H8/300S.
3260 (h8300_print_registers_info): Ditto.
3261 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3263 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3265 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3266 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3267 (lin_lwp_wait): Likewise. Update comments.
3268 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3269 (pull_pid_from_list, linux_record_stopped_pid): New.
3271 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3273 * ada-lang.c (scan_discrim_bound): Name first argument.
3274 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3275 declared by ALL_BLOCK_SYMBOLS.
3277 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3279 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3280 ("regcache.h"): Include it.
3281 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3283 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3285 * NEWS: Mention gdbserver detach change and "disconnect" command.
3286 * infcmd.c (disconnect_command): New function.
3287 (_initialize_infcmd): Add ``disconnect'' command.
3288 * remote.c (remote_async_detach): Delete.
3289 (remote_detach): Merge remote_async_detach.
3290 (remote_disconnect): New.
3291 (init_remote_ops): Set to_disconnect.
3292 (init_remote_cisco_ops): Likewise.
3293 (init_remote_async_ops): Likewise. Use remote_detach.
3294 * target.c (cleanup_target): Default to_disconnect.
3295 (update_current_target): Inherit to_disconnect.
3296 (target_disconnect, debug_to_disconnect): New functions.
3297 (setup_target_debug): Set to_disconnect.
3298 * target.h (struct target_ops): Add to_disconnect.
3299 (target_disconnect): Add prototype.
3301 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3303 * breakpoint.c (insert_catchpoint): New function.
3304 (insert_breakpoints): Use catch_exceptions to call
3305 insert_catchpoint. Disable catchpoints if they fail to insert.
3307 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3309 * symfile.c (reread_symbols): Clear sym_private.
3311 2003-06-17 Andrew Cagney <cagney@redhat.com>
3313 * trad-frame.h (struct frame_info): Add opaque declaration.
3314 * remote-fileio.h (struct cmd_list_element): Add opaque
3316 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3319 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3321 * remote.c (remote_prepare_to_store): Replace call to
3322 deprecated_read_register_bytes with multiple regcache_raw_read
3325 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3327 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3328 (nto_find_and_open_solib): Likewise.
3329 (nto_init_solib_absolute_prefix): Likewise.
3330 (_initialize_nto_tdep): Fix indentation.
3332 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3334 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3336 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3338 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3340 2003-06-17 Jim Blandy <jimb@redhat.com>
3342 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3344 2003-06-16 Theodore A. Roth <troth@openavr.org>
3346 * avr-tdep.c (avr_extract_return_value): New function.
3347 (avr_gdbarch_init): Set extract_return_value method.
3349 2003-06-16 Andrew Cagney <cagney@redhat.com>
3351 * frame.h (deprecated_get_next_frame_hack): Declare.
3352 * frame.c (legacy_saved_regs_prev_register): Only require
3353 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3354 there are always saved regs.
3355 (deprecated_generic_get_saved_register): Do not require
3356 DEPRECATED_FRAME_INIT_SAVED_REGS.
3357 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3358 use frame ID unwind instead.
3359 (deprecated_get_next_frame_hack): New function.
3361 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3363 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3364 (h8300_push_dummy_call): ...this function. Some minor optimization.
3365 (h8300_push_return_address): Remove.
3366 (h8300_gdbarch_init): Remove calls to
3367 set_gdbarch_deprecated_dummy_write_sp,
3368 set_gdbarch_deprecated_push_arguments and
3369 set_gdbarch_deprecated_push_return_address.
3370 Add call to set_gdbarch_push_dummy_call.
3372 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3374 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3375 (E_PSEUDO_EXR_REGNUM): Ditto.
3376 (h8300_is_argument_spill): Check for instructions moving argument
3377 registers into safe registers.
3378 (h8300_skip_prologue): Check for stm instruction to push registers
3379 used for register variables onto stack.
3380 (gdb_print_insn_h8300): Remove.
3381 (h8300_examine_prologue): Add a comment.
3382 (h8300_register_name): Take pseudo registers into account.
3383 (h8300s_register_name): Ditto.
3384 (h8300sx_register_name): Ditto.
3385 (h8300_print_register): Ditto.
3386 (h8300_print_registers_info): Define "nice" printing order.
3387 (h8300_saved_pc_after_call): Take pseudo registers into account.
3388 (h8300_register_type): Ditto. Return type used for remote connection
3389 when requesting real CCR or EXR register, return actual type when
3390 requesting pseudo CCR or EXR.
3391 (h8300_pseudo_register_read): New function.
3392 (h8300_pseudo_register_write): Ditto.
3393 (h8300_dbg_reg_to_regnum): Ditto.
3394 (h8300s_dbg_reg_to_regnum): Ditto.
3395 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3396 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3397 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3398 set_gdbarch_print_insn architecture dependent.
3399 Call set_gdbarch_pseudo_register_read and
3400 set_gdbarch_pseudo_register_write.
3401 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3403 2003-06-16 Andrew Cagney <cagney@redhat.com>
3405 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3406 * gdbarch.h, gdbarch.c: Re-generate.
3407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3408 * s390-tdep.c (s390_gdbarch_init): Update.
3409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3410 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3411 * mips-tdep.c (mips_gdbarch_init): Update.
3412 * mcore-tdep.c (mcore_gdbarch_init): Update.
3413 * cris-tdep.c (cris_gdbarch_init): Update.
3414 * infcall.c (call_function_by_hand): Update.
3415 * ia64-tdep.c (ia64_push_arguments): Update comment.
3416 * frame.c (legacy_get_prev_frame): Do not assume
3417 SAVE_DUMMY_FRAME_TOS_P.
3418 * dummy-frame.c (find_dummy_frame): Update comment.
3420 2003-06-16 Andrew Cagney <cagney@redhat.com>
3422 * regcache.c (do_cooked_read): Do not use register_valid_p.
3424 2003-06-15 Theodore A. Roth <troth@openavr.org>
3426 * avr-tdep.c (avr_register_type): Remove a blank line.
3427 (avr_scan_prologue): Correct some comments.
3429 2003-06-15 Theodore A. Roth <troth@openavr.org>
3431 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3433 Properly scan prologues generated by gcc with the -mcall-prologues
3435 Add code to scan -mcall-prologues for mega devices.
3437 2003-06-15 Theodore A. Roth <troth@openavr.org>
3439 * avr-tdep.c (avr_register_byte): Delete function.
3440 (avr_register_raw_size): Delete function.
3441 (avr_register_virtual_size): Delete function.
3442 (avr_register_virtual_type): Delete function.
3443 (avr_register_type): New function.
3444 (avr_address_to_pointer): Remove unused code.
3445 (avr_read_fp): Need to read FP as two separate bytes due to change to
3446 avr_register_type() usage.
3447 (avr_gdbarch_init): Don't set deprecated_register_size.
3448 Don't set deprecated_register_bytes.
3449 Don't set deprecated_register_byte.
3450 Don't set deprecated_register_raw_size.
3451 Don't set deprecated_max_register_raw_size.
3452 Don't set deprecated_register_virtual_size.
3453 Don't set deprecated_max_register_virtual_size.
3454 Don't set deprecated_register_virtual_type.
3455 Set register_type method.
3457 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3459 * Makefile.in (linux-nat.o): Add rule.
3460 * linux-nat.c: New file.
3461 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3462 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3463 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3464 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3465 * config/arm/linux.mh (NATDEPFILES): Likewise.
3466 * config/i386/linux.mh (NATDEPFILES): Likewise.
3467 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3468 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3469 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3470 * config/mips/linux.mh (NATDEPFILES): Likewise.
3471 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3472 * config/s390/s390.mh (NATDEPFILES): Likewise.
3473 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3475 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3477 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3478 replace out-of-date comment.
3480 2003-06-15 Andrew Cagney <cagney@redhat.com>
3482 * rdi-share/host.h (Fail): Change to a varargs function.
3483 * remote-rdi.c (Fail): Update.
3485 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3487 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3488 (i386_convert_register_p, i386_register_to_value,
3489 i386_register_from_value): Handle types longer than 8 bytes.
3491 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3493 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3494 Move floating-point code to new function in i387-tdep.c.
3495 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3496 New functions containing code moved here from i386-tdep.c.
3497 * i387-tdep.h: Add opaque declaration for `struct type'.
3498 (i387_register_to_value, i387_value_to_register): New prototypes.
3499 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3500 (x86_64_init_abi): Set convert_register_p, register_to_value and
3501 value_to_register here.
3503 2003-06-14 Andrew Cagney <cagney@redhat.com>
3505 * mips-tdep.c (mips_register_to_value): Make static.
3506 (mips_value_to_register): Make static.
3507 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3508 * ia64-tdep.c (ia64_register_raw_size): Make static.
3509 (ia64_register_virtual_size): Make static.
3510 (ia64_register_byte): Make static.
3511 * i387-tdep.c: Include "i387-tdep.h".
3512 (print_387_control_word): Delete function.
3513 (print_387_status_word): Delete function.
3514 (print_387_status_bits): Delete function.
3515 (print_387_control_bits): Delete function.
3516 * Makefile.in (i387-tdep.o): Update dependencies.
3517 * rdi-share/host.h (Fail): Declare.
3518 * remote-rdi.c (Fail): Update to match declaration.
3520 2003-06-14 Andrew Cagney <cagney@redhat.com>
3522 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3523 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3524 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3525 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3526 * README: Delete reference to remote-array.
3527 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3528 (remote-array.o): Delete target.
3529 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3530 * remote-array.c: Delete file.
3532 2003-06-14 Andrew Cagney <cagney@redhat.com>
3533 Mark Kettenis <kettenis@gnu.org>
3535 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3536 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3537 parameter with "frame".
3538 * gdbarch.h, gdbarch.c: Re-generate.
3539 * frame.h (put_frame_register): Declare.
3540 * frame.c (put_frame_register): New function.
3541 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3542 (legacy_register_to_value): Rewrite, use "frame" to get the
3544 (legacy_value_to_register): Rewrite, use "frame" to find the
3545 register's location before storing.
3546 * arch-utils.h (legacy_convert_register_p): Update.
3547 (legacy_register_to_value, legacy_value_to_register): Update.
3548 * findvar.c (value_from_register): Rewrite, eliminate use of
3549 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3550 "frame" to REGISTER_TO_VALUE.
3551 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3552 lval_reg_frame_relative + lval_register branch of the switch. Do
3553 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3554 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3555 I386_EDI_REGNUM): New defines.
3556 (i386_next_regnum, i386_convert_register_p,
3557 i386_register_to_value, i386_value_to_register): New functions.
3558 (i386_register_convertible, i386_register_convert_to_virtual,
3559 i386_convert_to_raw): Remove functions.
3560 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3561 value_to_register instead of register_convertible,
3562 register_convert_to_virtual and register_convert_to_raw.
3563 * mips-tdep.c (mips_convert_register_p): New function.
3564 (mips_value_to_register): Replace mips_register_convert_from_type.
3565 (mips_register_to_value): Replace mips_register_convert_to_type.
3566 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3568 * alpha-tdep.c (alpha_convert_register_p): Update.
3569 (alpha_value_to_register): Update, store the register.
3570 (alpha_register_to_value): Update, fetch the register.
3572 2003-06-14 Theodore A. Roth <troth@openavr.org>
3574 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3575 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3576 Don't set deprecated_call_dummy_words.
3577 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3578 Don't set remote_translate_xfer_address.
3579 (avr_io_reg_read_command): Remove commented out debug printf.
3582 2003-06-14 Theodore A. Roth <troth@openavr.org>
3584 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3585 causes gdb to seg fault.
3587 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3589 * sparc-nat.c (fetch_inferior_registers): Correct
3590 a reference to "registers".
3592 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3594 * Makefile.in (exc_request_U_h): Define
3595 (exc_request_S_h): Likewise.
3596 (msg_reply_S_h): Likewise.
3597 (msg_U_h): Likewise.
3598 (notify_S_h): Likewise.
3599 (process_reply_S_h): Likewise.
3600 (gnu-nat.o): Depend on gdb_obstack_h
3601 * gnu-nat.c: Include "gdb_obstack.h".
3603 2003-06-13 Andrew Cagney <cagney@redhat.com>
3605 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3606 * gdbarch.h, gdbarch.c: Re-generate.
3608 2003-06-13 Andrew Cagney <cagney@redhat.com>
3610 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3611 when deprecated REGISTER macros can be deleted.
3612 * gdbarch.h, gdbarch.c: Re-generate.
3614 2003-06-13 Jim Blandy <jimb@redhat.com>
3616 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3617 Linux entry point symbols for _dl_debug_state, too.
3619 2003-06-13 Andrew Cagney <cagney@redhat.com>
3621 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3622 available, do not use the FP register, and always save the TOS.
3623 * dummy-frame.c (dummy_frame_this_id): Do not assert
3624 SAVE_DUMMY_FRAME_TOS.
3625 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3626 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3627 (i386_push_dummy_call): Add 8 to the returned SP.
3628 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3629 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3630 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3631 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3632 (x86_64_push_dummy_call): Return "sp + 16".
3633 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3634 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3635 save_dummy_frame_tos.
3637 2003-06-13 Jim Blandy <jimb@redhat.com>
3639 * frv-tdep.c (frv_use_struct_convention): Delete static
3640 declaration for function deleted in my change of 2003-06-12.
3642 2003-06-13 Theodore A. Roth <troth@openavr.org>
3644 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3645 (avr_pointer_to_address): Shift code addrs left 1 bit.
3646 (avr_convert_from_func_ptr_addr): Delete function since operation is
3647 better handled by avr_address_to_pointer and avr_pointer_to_address.
3648 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3650 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3652 From Kelley Cook <kelleycook@wideopenwest.com>:
3653 * configure.host: Accept i[34567]86 variants.
3654 * configure.tgt: Likewise.
3655 * nlm/configure.in: Likewise.
3656 * nlm/configure: Regenerated.
3658 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3660 * arm-tdep.c (solib-svr4.h): Dont' include it.
3661 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3662 * arm-linux-tdep.c: ... here. Make static.
3663 (arm_linux_init_abi): Register it.
3664 (solib-svr4.h): Include it.
3665 * Makefile.in: Update dependencies.
3666 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3667 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3669 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3671 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3672 indicate registers used for return values.
3673 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3674 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3676 (h8300_init_extra_frame_info): Ditto.
3677 (h8300_frame_locals_address): Removed.
3678 (h8300_frame_args_address): Removed.
3679 (h8300_extract_return_value): Use new regcache structure. Only care
3681 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3682 (h8300_store_return_value): Use new regcache structure. Only care
3684 (h8300h_store_return_value): Same function for 32 bit CPUs.
3685 (h8300_store_struct_return): Removed.
3686 (h8300_extract_struct_value_address): Use new regcache structure.
3687 (h8300h_extract_struct_value_address): Removed.
3688 (h8300_push_dummy_code): New function.
3689 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3690 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3691 set_gdbarch_store_return_value architecture dependent.
3692 Call set_gdbarch_push_dummy_code and
3693 set_gdbarch_extract_struct_value_address.
3694 Remove calls to set_gdbarch_frame_args_address,
3695 set_gdbarch_frame_locals_address,
3696 set_gdbarch_deprecated_store_struct_return,
3697 set_gdbarch_deprecated_extract_return_value,
3698 set_gdbarch_deprecated_extract_struct_value_address,
3699 set_gdbarch_deprecated_call_dummy_words and
3700 set_gdbarch_deprecated_sizeof_call_dummy_words.
3702 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3704 * h8300-tdep.c (h8300_register_byte): Remove.
3705 (h8300h_register_byte): Remove.
3706 (h8300_register_virtual_type): Remove. Substitute by...
3707 (h8300_register_type): New function.
3708 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3709 (h8300h_extract_struct_value_address): Ditto.
3710 (h8300_gdbarch_init): Drop calls to
3711 set_gdbarch_deprecated_register_byte and
3712 set_gdbarch_deprecated_register_virtual_type.
3713 Add call to set_gdbarch_register_type.
3715 2003-06-13 Andrew Cagney <cagney@redhat.com>
3717 * gdbarch.sh: Update comments on registers.
3718 (deprecated_register_byte): Rename register_byte.
3719 (deprecated_register_raw_size): Rename register_raw_size.
3720 (deprecated_register_virtual_size): Rename register_virtual_size.
3721 (deprecated_register_virtual_type): Rename register_virtual_type.
3722 * gdbarch.h, gdbarch.c: Re-generate.
3723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3724 * vax-tdep.c (vax_gdbarch_init): Update.
3725 * v850-tdep.c (v850_gdbarch_init): Update.
3726 * sparc-tdep.c (sparc_gdbarch_init): Update.
3727 * sh-tdep.c (sh_gdbarch_init): Update.
3728 * s390-tdep.c (s390_gdbarch_init): Update.
3729 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3730 * ns32k-tdep.c: Update.
3731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3732 * mips-tdep.c (mips_gdbarch_init): Update.
3733 * mcore-tdep.c (mcore_gdbarch_init): Update.
3734 * m68k-tdep.c (m68k_gdbarch_init): Update.
3735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3736 * ia64-tdep.c (ia64_gdbarch_init): Update.
3737 * hppa-tdep.c (hppa_gdbarch_init): Update.
3738 * h8300-tdep.c (h8300_gdbarch_init): Update.
3739 * frv-tdep.c (frv_gdbarch_init): Update.
3740 * cris-tdep.c (cris_gdbarch_init): Update.
3741 * avr-tdep.c (avr_gdbarch_init): Update.
3742 * alpha-tdep.c (alpha_gdbarch_init): Update.
3743 * arm-tdep.c (arm_gdbarch_init): Update.
3745 2003-06-13 Andrew Cagney <cagney@redhat.com>
3747 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3748 mips_o32_use_struct_convention with always_use_struct_convention.
3750 2003-06-12 David Carlton <carlton@kealia.com>
3752 * cp-namespace.c (cp_set_block_scope): Comment out
3753 processing_has_namespace_info branch.
3755 2003-06-12 Jim Blandy <jimb@redhat.com>
3757 Recognize and skip 64-bit PowerPC Linux linkage functions.
3758 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3759 insn_pattern, insns_match_pattern, d_field, ds_field): New
3760 functions, macros, and types for working with PPC instructions.
3761 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3762 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3763 ppc64_skip_trampoline_code): New functions, variables, and macros
3764 for recognizing and skipping linkage functions.
3765 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3766 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3768 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3769 register offsets for both the 32- and 64-bit interfaces.
3771 Actually finish the job started by my change of 2003-05-29.
3772 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3773 other #definition of this.
3774 (ppc_linux_skip_trampoline_code): Remove declaration.
3775 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3777 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3780 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3781 'long' on ppc64-*-linux*.
3783 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3784 isn't #defined, assume the register doesn't exist: act as if
3785 tdep->ppc_mq_regnum were -1.
3787 * configure.host, configure.tgt: Add entries for
3788 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3790 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3793 * arch-utils.c (always_use_struct_convention): New function.
3794 * arch-utils.h (always_use_struct_convention): New prototype.
3795 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3796 (alpha_gdbarch_init): Register always_use_struct_convention,
3797 instead of alpha_use_struct_convention.
3798 * cris-tdep.c (cris_use_struct_convention): Delete.
3799 (cris_gdbarch_init): Register always_use_struct_convention,
3800 instead of cris_use_struct_convention.
3801 * frv-tdep.c (frv_use_struct_convention): Delete.
3802 (frv_gdbarch_init): Register always_use_struct_convention,
3803 instead of frv_use_struct_convention.
3804 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3805 (h8300_gdbarch_init): Register always_use_struct_convention,
3806 instead of h8300_use_struct_convention.
3807 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3808 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3809 instead of mips_o32_use_struct_convention.
3811 2003-06-12 Andrew Cagney <cagney@redhat.com>
3813 * wince.c: Include "mips-tdep.h".
3814 * mips-tdep.h (mips_next_pc): Declare.
3815 * mcore-tdep.c: Make more local functions static.
3816 * Makefile.in (wince.o): Update dependencies.
3818 2003-06-12 David Carlton <carlton@kealia.com>
3820 * symtab.c (lookup_symbol_aux_minsyms): Replace
3821 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3822 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3823 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3824 SYMBOL_NATURAL_NAME.
3826 2003-06-12 Andreas Schwab <schwab@suse.de>
3828 * Makefile.in (tuiDisassem.o): Update dependencies.
3830 2003-06-12 David Carlton <carlton@bactrian.org>
3832 * symtab.h: Delete declaration of make_symbol_overload_list.
3833 Add declaration of lookup_partial_symbol.
3834 * symtab.c (remove_params): Move to cp-support.c.
3835 (overload_list_add_symbol, make_symbol_overload_list)
3836 (sym_return_val_size, sym_return_val_index): Ditto.
3837 (lookup_partial_symbol): Make extern.
3838 * cp-support.h: Add declaration of make_symbol_overload_list.
3839 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3840 symtab.h, and block.h.
3841 (remove_params): Move here from symtab.c.
3842 (overload_list_add_symbol, make_symbol_overload_list)
3843 (sym_return_val_size, sym_return_val_index): Ditto.
3844 * valops.c: Include cp-support.h.
3845 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3846 frame_h, and block_h.
3847 (valops.o): Depend on cp_support_h.
3849 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3851 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3852 substitute by NUM_REGS throughout.
3853 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3854 (h8300s_register_name): New function for H8S registers.
3855 (h8300sx_register_name): Ditto for H8SX registers.
3856 (h8300_print_register): Revise register printing, avoid depending
3858 (h8300_register_byte): Only care for H8/300 registers.
3859 (h8300h_register_byte): New function for any other architecture.
3860 (h8300_register_raw_size): Remove.
3861 (h8300_register_virtual_type): Revise to return actually useful
3863 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3864 (h8300h_extract_struct_value_address): New function for any other
3866 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3867 set_gdbarch_register_name, set_gdbarch_register_byte,
3868 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3869 Remove calls to set_gdbarch_deprecated_register_size,
3870 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3871 set_gdbarch_deprecated_max_register_raw_size,
3872 set_gdbarch_register_virtual_size and
3873 set_gdbarch_deprecated_max_register_virtual_size entirely.
3874 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3875 set_gdbarch_long_double_bit.
3877 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3879 * doublest.c (convert_doublest_to_floatformat): When dealing
3880 with the implied integer bit, only alter mant_bits if we are
3881 processing a full 32 bits of mantissa.
3883 2003-06-11 David Carlton <carlton@bactrian.org>
3885 * dictionary.h: New.
3886 * dictionary.c: New.
3887 * block.h: Add opaque declaration for struct dictionary.
3888 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3890 (BLOCK_DICT): New macro.
3891 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3892 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3894 (ALL_BLOCK_SYMBOLS): Update definition.
3895 * Makefile.in (SFILES): Add dictionary.c.
3896 (dictionary_h): New.
3897 (COMMON_OBS): Add dictionary.o.
3898 (dictionary.o): New.
3899 (ada-lang.o): Depend on dictionary_h.
3900 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3901 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3902 (mi-cmd-stack.o): Ditto.
3903 (gdbtk-cmds.o): Update dependencies.
3904 (gdbtk-stack.o): Ditto.
3905 * ada-lang.c: Include dictionary.h.
3906 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3907 (fill_in_ada_prototype, debug_print_block): Ditto.
3908 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3909 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3911 * mdebugread.c: Include dictionary.h.
3912 (struct parse_stack): Delete 'maxsyms' member.
3913 (parse_symbol): Update calls to new_block. Delete calls to
3914 shrink_block. Use dictionary methods.
3915 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3916 Update calls to new_symtab. Don't maintain maxsyms data.
3917 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3918 (add_symbol): Just call dict_add_symbol.
3919 (new_symtab): Delete 'maxsyms' argument.
3920 (new_symtab): Update calls to new_block.
3921 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3922 (shrink_block): Delete function.
3923 (fixup_sigtramp): Update call to new_block. Add symbol via
3925 * jv-lang.c: Include dictionary.h.
3926 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3927 appropriately. Set class_symtab->free_func. Make sure the
3928 blockvector is big enough to hold two blocks.
3929 (add_class_symtab_symbol): Use dictionary methods.
3930 (free_class_block): New function.
3931 (type_from_class): Replace explicit iteration by
3933 * symtab.h (struct symtab): Replace 'free_ptr' method by
3935 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3937 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3939 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3940 Include dictionary.h.
3941 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3942 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3944 * objfiles.c: Include dictionary.h.
3945 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3946 * buildsym.c: Include dictionary.h.
3947 (finish_block): Use dictionary methods.
3948 (end_symtab): Set free_func to NULL, not free_ptr.
3949 * tracepoint.c: Include dictionary.h.
3950 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3951 (scope_info): Ditto.
3952 * stack.c: Include dictionary.h.
3953 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3954 (print_block_frame_labels, print_frame_arg_vars)
3955 (print_frame_args): Ditto.
3956 * symmisc.c (free_symtab_block): Use dictionary methods.
3957 (dump_symtab): Ditto.
3958 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3959 Include dictionary.h.
3960 * symfile.h: Delete declarations of sort_block_syms,
3962 * symfile.c (sort_block_syms): Delete.
3963 (sort_symtab_syms): Delete.
3964 * symtab.c: Include dictionary.h.
3965 (lookup_block_symbol): Use dictionary iterators.
3966 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3967 (search_symbols, make_symbol_completion_list): Ditto.
3968 (make_symbol_overload_list): Ditto.
3969 * valops.c (value_of_local): Use dict_empty.
3970 Include dictionary.h.
3972 2003-06-11 J. Brobecker <brobecker@gnat.com>
3974 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3976 2003-06-11 David Carlton <carlton@bactrian.org>
3978 * block.h (BLOCK_SHOULD_SORT): Delete.
3979 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3981 * ada-lang.c (ada_add_block_symbols): Ditto.
3982 * symfile.c (sort_block_syms): Delete.
3983 (sort_symtab_syms): Ditto.
3984 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3986 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3987 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3988 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3989 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3990 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3991 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3992 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3994 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3996 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3999 2003-06-11 Andrew Cagney <cagney@redhat.com>
4001 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4002 REGISTER_CONVERTIBLE.
4003 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4004 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4005 * gdbarch.h, gdbarch.c: Re-generate.
4006 * arch-utils.h (deprecated_register_convertible_not): Rename
4007 generic_register_convertible_not.
4008 * arch-utils.c (deprecated_register_convertible_not): Rename
4009 generic_register_convertible.
4010 (legacy_convert_register_p, legacy_register_to_value): Update.
4011 * sh-tdep.c (sh64_push_arguments): Update.
4012 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4013 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4014 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4015 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4016 * arch-utils.c (legacy_value_to_register): Update.
4017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4018 (rs6000_register_convert_to_raw): Make parameter "from" const.
4019 * mips-tdep.c (mips_gdbarch_init): Update.
4020 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4021 * infcmd.c (default_print_registers_info): Update.
4022 * ia64-tdep.c (ia64_gdbarch_init): Update.
4023 (ia64_register_convert_to_raw): Make parameter "from" const.
4024 * i386-tdep.c (i386_gdbarch_init): Update.
4025 (i386_register_convert_to_raw): Update.
4027 2003-06-11 Andrew Cagney <cagney@redhat.com>
4029 * remote-fileio.c: Include "remote-fileio.h".
4030 * Makefile.in (remote-fileio.o): Update dependencies.
4031 (remote_fileio_h): Fix typo.
4033 2003-06-11 Andrew Cagney <cagney@redhat.com>
4035 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4036 (xstormy16_save_dummy_frame_tos): Make static.
4037 (_initialize_xstormy16_tdep): Add declaration.
4038 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4039 * v850-tdep.c: Make local functions static.
4040 (_initialize_v850_tdep): Add declaration.
4041 * sparc-tdep.c: Make local functions static.
4042 (_initialize_sparc_tdep): Add declaration.
4043 * sh-tdep.c: Make local functions static.
4044 (_initialize_sh_tdep): Add declaration.
4045 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4046 * s390-tdep.c: Make local functions static.
4047 (_initialize_s390_tdep): Add declaration.
4048 * dbxread.c (find_stab_function_addr): Make static.
4049 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4050 * ocd.c (_initialize_remote_ocd): Add declaration.
4051 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4052 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4053 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4054 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4055 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4056 * remote-array.c (_initialize_array): Add declaration.
4057 (_initialize_remote_monitors): Add declaration.
4058 * remote-mips.c: Make local functions static.
4059 (_initialize_remote_mips): Add declaration.
4060 * mcore-tdep.c: Make all local functions static.
4061 (_initialize_mcore_tdep): Add declaration.
4062 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4063 * abug-rom.c (_initialize_abug_rom): Add declaration.
4064 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4065 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4066 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4067 * remote-est.c (_initialize_est): Add declaration.
4068 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4069 (m68hc11_call_dummy_address): Make static.
4070 * ia64-tdep.c: Make local functions static.
4071 (_initialize_ia64_tdep): Add declaration.
4072 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4073 * monitor.c (monitor_wait_filter): Make static.
4074 (_initialize_remote_monitors): Add declaration.
4075 * remote-hms.c (_initialize_remote_hms): Add declaration.
4076 * remote-e7000.c (fetch_regs_from_dump): Make static.
4077 (expect_n): Make static.
4078 (_initialize_remote_e7000): Add declaration.
4079 * ser-e7kpc.c: Always include "defs.h".
4080 (_initialize_ser_e7000pc): Add declaration.
4081 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4082 * cris-tdep.c: Make all but one function static.
4083 (_initialize_cris_tdep): Add declaration.
4084 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4085 * solib.c (update_solib_list): Make static.
4086 (_initialize_solib): Add declaration.
4087 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4088 (_initialize_avr_tdep): Add declaration.
4089 * remote-rdi.c (voiddummy): Make static.
4090 (_initialize_remote_rdi): Add declaration.
4091 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4092 * remote-rdp.c (send_rdp): Make static.
4093 (_initialize_remote_rdp): Add declaration.
4094 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4096 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4098 * remote-fileio.c: Make ari happy.
4100 2003-06-10 J. Brobecker <brobecker@gnat.com>
4102 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4103 fetching the trailing bytes of the buffer we are about to write.
4105 2003-06-10 Andrew Cagney <cagney@redhat.com>
4107 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4108 * Makefile.in (remote-fileio.o): Update dependencies.
4109 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4110 include <setjmp.h>, or <sys/types.h> conditional on USG.
4111 (remote_fio_jmp_buf): Delete global variable.
4113 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4114 Martin M. Hunt <hunt@redhat.com>
4116 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4117 (SFILES): Add remote-fileio.c.
4118 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4119 dependencies for building remote.o.
4120 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4121 * remote-fileio.h: New header file defining remote File-I/O interface.
4122 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4123 static storage class.
4124 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4126 (_initialize_remote): Call initialize_remote_fileio().
4127 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4128 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4129 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4130 (captured_main): Initialize new ui_files.
4131 * ui-file.c: Add read and fgets input functions.
4132 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4133 (null_file_read): New function.
4134 (ui_file_read): New function.
4135 (set_ui_file_read): New function.
4136 (stdio_file_read): New function.
4137 * ui-file.h: New type ui_file_read_ftype.
4138 (set_ui_file_read): Declare.
4139 (ui_file_read): Declare.
4141 2003-06-09 Andrew Cagney <cagney@redhat.com>
4143 * frame.h (deprecated_unwind_get_saved_register): Rename
4144 generic_unwind_get_saved_register, update comments.
4145 * mips-tdep.c (mips_get_saved_register): Update.
4146 * frame.c (deprecated_unwind_get_saved_register): Update.
4148 2003-06-09 Andrew Cagney <cagney@redhat.com>
4150 * vax-tdep.c (vax_frame_locals_address): Delete function.
4151 (vax_gdbarch_init): Do not set frame_locals_address.
4152 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4153 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4154 * s390-tdep.c (s390_frame_args_address): Delete function.
4155 (s390_gdbarch_init): Do not set frame_args_address or
4156 frame_locals_address.
4157 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4158 (ns32k_gdbarch_init): Do not set frame_locals_address.
4159 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4160 (hppa_frame_locals_address): Delete function.
4161 (hppa_gdbarch_init): Do not set frame_args_address, or
4162 frame_locals_address.
4163 * arm-tdep.c (arm_frame_args_address): Delete.
4164 (arm_frame_locals_address): Delete.
4165 (arm_gdbarch_init): Do not set frame_args_address, or
4166 frame_locals_address.
4168 2003-06-09 Andrew Cagney <cagney@redhat.com>
4170 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4171 * gdbarch.h, gdbarch.c: Re-generate.
4172 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4173 * arch-utils.c (frame_num_args_unknown): Delete function.
4174 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4175 (frame_info): Use FRAME_NUM_ARGS_P.
4176 * arm-tdep.c (arm_frame_num_args): Delete function.
4177 (arm_gdbarch_init): Do not set frame_num_args.
4178 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4179 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4180 (hppa_gdbarch_init): Do not set frame_num_args.
4181 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4182 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4183 frame_num_args to default frame_num_args_unknown.
4184 * v850-tdep.c (v850_gdbarch_init): Ditto.
4185 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4186 * sh-tdep.c (sh_gdbarch_init): Ditto.
4187 * s390-tdep.c (s390_gdbarch_init): Ditto.
4188 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4189 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4190 * mips-tdep.c (mips_gdbarch_init): Ditto.
4191 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4192 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4194 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4195 * i386-tdep.c (i386_gdbarch_init): Ditto.
4196 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4197 * frv-tdep.c (frv_gdbarch_init): Ditto.
4198 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4199 * cris-tdep.c (cris_gdbarch_init): Ditto.
4200 * avr-tdep.c (avr_gdbarch_init): Ditto.
4201 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4203 2003-06-09 Andrew Cagney <cagney@redhat.com>
4205 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4206 (print_frame_args): Moved to "stack.c".
4207 * stack.c: Include "gdb_assert.h".
4208 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4209 (print_frame_args): Moved from "printcmd.c".
4210 * frame.h (print_frame_args): Delete declaration.
4211 * Makefile.in (stack.o): Update dependencies.
4213 2003-06-08 Andrew Cagney <cagney@redhat.com>
4215 * frame.c (get_prev_frame): Remove reference to
4216 frame_args_address_correct in comments.
4217 * frame-base.c (default_frame_args_address): Delete code
4218 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4219 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4220 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4221 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4222 (vax_frame_args_address_correct): Delete declaration.
4224 2003-06-08 Andrew Cagney <cagney@redhat.com>
4226 * gdbarch.sh (UNWIND_SP): Add.
4227 * gdbarch.h, gdbarch.c: Re-generate.
4228 * frame.c (frame_sp_unwind): New function.
4229 (get_frame_sp): New function.
4230 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4231 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4232 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4234 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4235 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4237 2003-06-08 Andrew Cagney <cagney@redhat.com>
4239 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4242 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4243 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4244 * config/m68k/tm-sun3.h: Update.
4245 * config/m68k/tm-m68klynx.h: Update.
4246 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4248 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4249 trad_frame". Update comments.
4250 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4251 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4252 (trad_frame_register_value, trad_frame_prev_register): Update.
4254 2003-06-08 Andrew Cagney <cagney@redhat.com>
4256 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4257 from GCC's acinclude.m4.
4258 * configure.in: Check for getopt's delcaration.
4259 * aclocal.m4, config.in, configure: Re-generate.
4260 * main.c (error_init): Delete declaration.
4261 * defs.h (error_init): Declare.
4262 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4263 (rs6000_convert_from_func_ptr_addr): Make static.
4264 (_initialize_rs6000_tdep): Add declaration.
4265 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4266 (show_commands, set_verbose, show_history): Delete declaration.
4267 * top.h (set_verbose): Add declaration.
4268 (show_history, set_history, show_commands): Add declaration.
4269 (do_restore_instream_cleanup): Add declaration.
4270 * objc-lang.c (specialcmp): Make static.
4271 (print_object_command): Make static.
4272 (find_objc_msgsend): Make static.
4273 (find_objc_msgcall_submethod_helper): Make static.
4274 (find_objc_msgcall_submethod): Make static.
4275 (_initialize_objc_language): Add declaration.
4276 (find_implementation_from_class): Make static.
4277 (find_implementation): Make static.
4278 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4279 * objc-lang.h (lookup_struct_typedef): Add declaration.
4280 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4281 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4282 (do_restore_user_call_depth): Make static.
4283 (do_restore_instream_cleanup): Delete declaration.
4284 (dont_repeat): Delete declaration.
4285 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4286 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4287 * reggroups.c (_initialize_reggroup): Add declaration.
4288 * cp-support.c (_initialize_cp_support): Add declaration.
4289 * cp-abi.c (_initialize_cp_abi): Add declaration.
4290 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4291 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4292 (_initialize_gnu_v3_abi): Add declaration.
4293 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4294 (_initialize_gnu_v2_abi): Add declaration.
4295 * frame-base.c (_initialize_frame_base): Add declaration.
4296 * doublest.c (floatformat_from_length): Make static.
4297 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4298 * frame.c (create_sentinel_frame): Make static.
4299 (_initialize_frame): Add declaration.
4300 * top.c (do_catch_errors): Make static.
4301 (gdb_rl_operate_and_get_next_completion): Make static.
4302 * typeprint.c: Include "typeprint.h".
4303 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4304 (sentinel_frame_this_id): Make static.
4305 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4306 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4307 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4308 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4309 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4310 * maint.c (maintenance_print_architecture): Make static.
4311 * signals/signals.c (_initialize_signals): Add declaration.
4312 * std-regs.c (_initialize_frame_reg): Add declaration.
4313 * jv-exp.y (push_variable): ISO C definition.
4314 (push_qualified_expression_name): Ditto.
4315 * memattr.c (_initialize_mem): Add declaration.
4316 * remote.c (remote_check_watch_resources): Make static.
4317 (remote_stopped_by_watchpoint): Make static.
4318 (remote_stopped_data_address): Make static.
4319 * d10v-tdep.c (nr_dmap_regs): Make static.
4320 (a0_regnum): Make static.
4321 (d10v_frame_unwind_cache): Make static.
4322 (d10v_frame_p): Make static.
4323 * osabi.c (show_osabi): Make static.
4324 (_initialize_gdb_osabi): Add extern declaration.
4325 * gdbtypes.c (make_qualified_type): Make static.
4326 (safe_parse_type): Make static.
4327 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4328 * macrotab.c (macro_bcache_free): Make static.
4329 * interps.c (interp_set_quiet): Make static.
4330 (interpreter_exec_cmd): Make static.
4331 * stack.h (select_frame_command): New file.
4332 * stack.c: Include "stack.h".
4333 (select_frame_command_wrapper): Delete function.
4334 (select_frame_command): Make global.
4335 * infcall.c: Include "infcall.h".
4336 * linespec.c: Include "linespec.h".
4337 * symfile.c (sections_overlap): Make static.
4338 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4339 * charset.c (_initialize_charset): Add missing prototype.
4340 * regcache.c (init_legacy_regcache_descr): Make static.
4341 (do_regcache_xfree): Make static.
4342 (regcache_xfer_part): Make static.
4343 (_initialize_regcache): Add missing prototype.
4344 * breakpoint.c (parse_breakpoint_sals): Make static.
4345 (breakpoint_sals_to_pc): Make static.
4346 * interps.h (clear_interpreter_hooks): ISO C declaration.
4347 * Makefile.in (stack_h): Define.
4348 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4349 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4351 2003-06-08 Andrew Cagney <cagney@redhat.com>
4353 * Makefile.in (d10v-tdep.o): Update dependencies.
4354 (SFILES): Add trad-frame.c.
4355 (trad_frame_h): Define.
4356 (COMMON_OBS): Add trad-frame.o.
4357 (trad-frame.o): Specify dependencies.
4358 * d10v-tdep.c: Include "trad-frame.h".
4359 (saved_regs_unwinder): Delete function.
4360 (d10v_frame_prev_register): Use trad_frame_prev_register.
4361 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4362 trad_frame", delete "regs" and "prev_sp".
4363 (prologue_find_regs): Use trad-frame.
4364 * trad-frame.h, trad-frame.c: New files.
4366 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4368 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4370 2003-06-07 Adam Fedor <fedor@gnu.org>
4372 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4373 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4374 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4375 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4376 resolve_msgsend_super, resolve_msgsend_super_stret):
4379 2003-06-07 Andrew Cagney <cagney@redhat.com>
4381 * symfile.h: Re-indent, clean up comments.
4383 2003-06-07 Andrew Cagney <cagney@redhat.com>
4385 * inferior.h (deprecated_write_sp): Replace
4386 generic_target_write_sp.
4387 * regcache.c (deprecated_write_sp): Replace
4388 generic_target_write_sp.
4389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4390 * vax-tdep.c (vax_gdbarch_init): Update.
4391 * v850-tdep.c (v850_gdbarch_init): Update.
4392 * sparc-tdep.c (sparc_gdbarch_init): Update.
4393 * sh-tdep.c (sh_gdbarch_init): Update.
4394 * s390-tdep.c (s390_gdbarch_init): Update.
4395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4396 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4397 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4398 * mcore-tdep.c (mcore_gdbarch_init): Update.
4399 * m68k-tdep.c (m68k_gdbarch_init): Update.
4400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4401 * ia64-tdep.c (ia64_gdbarch_init): Update.
4402 * h8300-tdep.c (h8300_gdbarch_init): Update.
4403 * frv-tdep.c (frv_gdbarch_init): Update.
4404 * cris-tdep.c (cris_gdbarch_init): Update.
4405 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4407 2003-06-07 Andrew Cagney <cagney@redhat.com>
4409 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4410 Assert that PC_REGNUM is valid.
4411 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4413 2003-06-07 Andrew Cagney <cagney@redhat.com>
4415 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4416 * gdbarch.h, gdbarch.c: Regenerate.
4417 * mn10300-tdep.c: Include "gdb_assert.h".
4418 (mn10300_read_fp): New function.
4419 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4420 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4421 * ia64-tdep.c: Include "gdb_assert.h".
4422 (ia64_read_fp): New function.
4423 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4424 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4425 * regcache.c (generic_target_read_sp): Delete function.
4426 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4427 * inferior.h (generic_target_read_sp): Delete declaration.
4428 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4429 generic_target_read_sp.
4430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4431 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4432 * sh-tdep.c (sh_gdbarch_init): Ditto.
4433 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4434 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4436 2003-06-07 Andrew Cagney <cagney@redhat.com>
4438 * gdbarch.sh: Comment each field of startup_gdbarch.
4439 * gdbarch.h, gdbarch.c: Re-generate.
4441 2003-06-07 Andrew Cagney <cagney@redhat.com>
4443 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4444 * gdbarch.h, gdbarch.c: Re-generate.
4445 * regcache.c: Update comments on read_pc et.al.
4446 (generic_target_read_pc): Delete function.
4447 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4448 * inferior.h (generic_target_read_pc): Delete declaration.
4449 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4450 generic_target_read_pc.
4451 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4452 * sh-tdep.c (sh_gdbarch_init): Ditto.
4453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4456 2003-06-07 Andrew Cagney <cagney@redhat.com>
4458 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4459 "index" with "special_local_sect". Use strcmp instead of STREQ.
4460 Append period to coments.
4462 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4464 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4465 (elfstab_offset_sections): Likewise.
4466 * gdb-stabs.h (stab_section_info): Likewise.
4467 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4468 * objfiles.c (objfile_relocate): Likewise.
4469 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4470 * remote.c (get_offsets): Likewise.
4471 (remote_cisco_objfile_relocate): Likewise.
4472 * somread.c (som_symfile_offsets): Likewise.
4473 * symfile.c (alloc_section_addr_info): New function.
4474 (build_section_addr_info_from_section_tab): Use it.
4475 (free_section_addr_info): Adjust.
4476 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4477 (syms_from_objfile): Allocate local_addr dynamically.
4478 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4480 (add_symbol_file_command): Allocate sect_opts dynamically.
4481 (reread_symbols): Avoid use of SECT_OFF_MAX.
4482 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4483 (alloc_section_addr_info): Declare it.
4484 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4485 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4487 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4489 2003-06-06 Andrew Cagney <cagney@redhat.com>
4491 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4492 (d10v_frame_unwind_cache): Do not set "return_pc".
4494 2003-06-06 Michael Snyder <msnyder@redhat.com>
4496 * h8300-tdep.c: Make tidy (long lines).
4498 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4500 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4501 to regcache_collect().
4503 2003-06-05 J. Brobecker <brobecker@gnat.com>
4505 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4506 pc_in_sigtramp multiarch method.
4507 (hppa_hpux_som_init_abi): Use it.
4508 (hppa_hpux_elf_init_abi): Likewise.
4509 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4510 macro has been multiarched.
4511 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4512 macro here, as hppa64 isn't multiarched yet.
4514 2003-06-05 Andrew Cagney <cagney@redhat.com>
4516 * Makefile.in (value_h): Add $(frame_h).
4517 * value.h: Include "frame.h".
4518 (struct value): Replace "frame_addr" with "frame_id".
4519 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4520 * values.c (allocate_value): Use VALUE_FRAME_ID.
4521 (value_copy): Use VALUE_FRAME_ID.
4522 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4523 * valops.c (value_assign): Update. Use frame_find_by_id.
4525 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4527 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4530 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4532 * thread-db.c (check_event): For create/death event breakpoints,
4533 loop through all messages to ensure that we read the message
4534 corresponding to the breakpoint we are at.
4536 2003-06-04 Michael Snyder <msnyder@redhat.com>
4538 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4540 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4542 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4543 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4544 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4545 when handling .eh_frame sections.
4547 2003-06-04 J. Brobecker <brobecker@gnat.com>
4549 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4550 prepare_to_proceed procedure instead of the hppa-specific one.
4551 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4553 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4555 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4556 * config.in: Regenerated.
4557 * configure.in: Add test for syscall function and check for
4558 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4559 * configure: Regenerated.
4560 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4562 (kill_lwp): New function that uses tkill syscall or
4563 uses kill, depending on whether threading model is nptl or not.
4564 All callers of kill() changed to use kill_lwp().
4565 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4566 see if all threads have already exited in the nptl model.
4567 (stop_and_resume_callback): New callback function used by the
4568 lin_lwp_wait thread exit handling code.
4569 (stop_wait_callback): Check for threads already having exited and
4570 delete such threads fromt the lwp list when discovered.
4571 (stop_callback): Don't assert retcode of kill call.
4573 Roland McGrath <roland@redhat.com>
4574 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4577 2003-06-03 Richard Henderson <rth@redhat.com>
4579 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4580 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4581 (alpha_sigtramp_frame_prev_register): Likewise.
4582 (alpha_heuristic_frame_prev_register): Likewise.
4583 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4585 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4586 alpha-specific register id names.
4587 (alpha_mdebug_frame_unwind_cache): Likewise.
4588 (alpha_mdebug_frame_prev_register): Likewise.
4590 2003-06-03 Richard Henderson <rth@redhat.com>
4592 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4593 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4594 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4595 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4597 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4598 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4599 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4601 * alpha-linux-tdep.c: Remove unnecessary includes.
4602 * Makefile.in (alpha-linux-tdep.o): Update.
4604 2003-06-03 Richard Henderson <rth@redhat.com>
4606 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4607 (alphabsd_fill_fpreg): Likewise.
4609 2003-06-03 J. Brobecker <brobecker@gnat.com>
4611 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4612 references to struct frame_info fields by calls to the equivalent
4613 accessors. Necessary now that frame_info is opaque.
4615 2003-06-03 J. Brobecker <brobecker@gnat.com>
4617 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4618 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4619 structure, field no longer exists.
4621 2003-06-03 J. Brobecker <brobecker@gnat.com>
4623 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4624 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4626 2003-06-03 J. Brobecker <brobecker@gnat.com>
4628 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4629 references to struct frame_info fields by calls to the equivalent
4630 accessors. Necessary now that frame_info is opaque.
4632 2003-06-03 J. Brobecker <brobecker@gnat.com>
4634 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4635 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4636 structure, field no longer exists.
4638 2003-06-03 Theodore A. Roth <troth@openavr.org>
4640 * remote.c (init_remote_state): Compute sizeof_g_packet by
4641 accumulation of the size of all registers instead of blindly using
4642 DEPRECATED_REGISTER_BYTES.
4644 2003-06-03 Michael Snyder <msnyder@redhat.com>
4646 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4647 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4650 2003-06-03 J. Brobecker <brobecker@gnat.com>
4652 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4653 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4655 2003-06-03 Andrew Cagney <cagney@redhat.com>
4657 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4658 (sparc_convert_to_raw): Delete function.
4659 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4660 register_convert_to_virtual.
4662 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4664 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4665 layer if not dealing with a statically-linked threaded program.
4667 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4669 * solib.c (solib_open): Update comment to reflect actual search order.
4671 2003-06-03 Andrew Cagney <cagney@redhat.com>
4673 * frame.c (get_frame_memory_signed): New function.
4674 (get_frame_memory, get_frame_memory_unsigned): New function.
4675 (get_frame_arch): New function.
4676 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4677 (get_frame_memory, get_frame_unsigned_memory): Declare.
4678 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4679 get_frame_memory_unsigned and get_frame_arch.
4680 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4682 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4684 * MAINTAINERS (write after approval): Add myself.
4686 2003-06-03 Jim Blandy <jimb@redhat.com>
4688 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4689 elements of gregset_t are 64 bits each, but access registers
4690 are still 32 bits, so they're packed two per gregset_t
4691 element. Unpack/pack them properly.
4693 2003-06-02 David Carlton <carlton@bactrian.org>
4695 * linespec.c (find_methods): Break out code into
4696 add_matching_methods and add_constructors.
4697 (add_matching_methods): New.
4698 (add_constructors): Ditto.
4700 2003-06-02 Andrew Cagney <cagney@redhat.com>
4702 * sparc-tdep.c (sparc_print_registers): Delete call to
4703 REGISTER_CONVERTIBLE.
4704 (sparc_gdbarch_init): Do not set register_convertible.
4705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4706 * frv-tdep.c (frv_gdbarch_init): Ditto.
4707 * cris-tdep.c (cris_gdbarch_init): Ditto.
4709 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4711 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4712 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4713 (syms_from_objfile): Ditto.
4715 2003-06-03 Andreas Schwab <schwab@suse.de>
4717 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4718 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4720 2003-06-02 Richard Henderson <rth@redhat.com>
4722 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4723 a member of all_reggroup.
4725 2003-06-02 Richard Henderson <rth@redhat.com>
4727 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4728 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4729 (alpha_lds, alpha_sts): New.
4730 (alpha_convert_register_p): Change from _register_convertible.
4731 (alpha_register_to_value): Change from _convert_to_virtual;
4732 restructure and fail for type sizes other than 4 or 8.
4733 (alpha_value_to_register): Similarly.
4734 (alpha_extract_return_value): Use alpha_sts.
4735 (alpha_store_return_value): Use alpha_lds.
4736 (alpha_gdbarch_init): Update hooks.
4738 2003-06-02 Richard Henderson <rth@redhat.com>
4740 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4742 (alpha_sigtramp_register_address): Likewise.
4744 2003-06-02 Richard Henderson <rth@redhat.com>
4746 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4747 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4748 * alpha-tdep.h: Declare them.
4750 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4751 Remove zerobuf. Don't error on UNIQUE.
4752 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4753 (ALPHA_REGSET_UNIQUE): Provide default.
4754 (supply_gregset): Use alpha_supply_int_regs.
4755 (fill_gregset): Use alpha_fill_int_regs.
4756 (supply_fpregset): Use alpha_supply_fp_regs.
4757 (fill_fpregset): Use alpha_fill_fp_regs.
4758 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4759 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4760 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4761 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4762 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4763 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4765 2003-06-02 Richard Henderson <rth@redhat.com>
4767 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4769 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4770 (alpha_store_return_value): Likewise.
4772 2003-06-02 David Carlton <carlton@math.stanford.edu>
4774 * block.c (contained_in): Add 'const' to arguments.
4775 (block_function): Ditto.
4776 * block.h: Update declarations for block_function and
4779 2003-06-02 David Carlton <carlton@math.stanford.edu>
4781 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4782 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4783 * p-valprint.c (pascal_val_print): Ditto.
4784 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4786 2003-06-02 Richard Henderson <rth@redhat.com>
4788 * alpha-tdep.c (alpha_push_dummy_call): Use
4789 builtin_type_ieee_double_little instead of builtin_type_double.
4791 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4792 sign-extension of 32-bit values.
4793 (alpha_store_return_value): Similarly.
4795 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4796 (alpha_extract_return_value): Likewise.
4797 (alpha_store_return_value): Likewise.
4799 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4800 (alpha_store_return_value): Error on IEEE Quad floats.
4802 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4803 (alpha_extract_struct_value_address): Likewise.
4804 (alpha_store_return_value): Likewise.
4805 (alpha_store_struct_return): Remove.
4806 (alpha_gdbarch_init): Update hook registration to match.
4808 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4809 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4810 macros where appropriate.
4811 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4812 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4814 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4815 for SP, GP; void_func_ptr for PC; non-language-specific types
4817 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4819 2003-06-02 Richard Henderson <rth@redhat.com>
4821 * top.h (lim_at_start): Declare.
4822 * main.c (captured_main): Set it.
4823 * top.c (lim_at_start): Define.
4824 (command_loop): Use it instead of &environ.
4825 * event-top.c (command_handler): Likewise.
4827 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4829 * mipsnbsd-tdep.c: Update copyright years.
4830 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4832 2003-06-01 Richard Henderson <rth@redhat.com>
4834 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4835 (alpha-linux-tdep.o): Update dependencies.
4836 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4837 * alpha-mdebug-tdep.c: Remove unneeded includes.
4839 2003-06-01 Richard Henderson <rth@redhat.com>
4841 * alpha-tdep.c (alpha_register_reggroup_p): New.
4842 (alpha_gdbarch_init): Register it.
4844 2003-06-02 Andrew Cagney <cagney@redhat.com>
4846 * dwarfread.c: Eliminate "register"
4847 (decode_die_type): Eliminate assignment within "if".
4848 (struct_type, decode_array_element_type): Ditto.
4849 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4850 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4851 (decode_modified_type, completedieinfo): Ditto.
4852 * block.c: Eliminate "register".
4853 (blockvector_for_pc_sect): Eliminate assignment within "if".
4854 * cp-support.h (struct symbol): Opaque declaration.
4855 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4857 2003-06-01 Richard Henderson <rth@redhat.com>
4859 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4860 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4862 2003-06-01 Adam Fedor <fedor@gnu.org>
4864 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4865 * gdbarch.[ch]: Regenerate.
4866 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4867 (hppa_gdbarch_init): Set it in the gdbarch vector.
4868 * i386-tdep.c (i386_fetch_pointer_argument): New
4869 (i386_gdbarch_init): Set it into gdbarch.
4870 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4871 (rs6000_gdbarch_init): Set it in gdbarch.
4872 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4873 (sparc_gdbarch_init): Set it in gdbarch.
4875 2003-06-01 Andrew Cagney <cagney@redhat.com>
4877 * defs.h (extract_address): Delete declaration.
4878 * findvar.c (extract_address): Delete function.
4879 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4880 extract_address with the inline equivalent,
4881 extract_unsigned_integer.
4882 (xstormy16_extract_struct_value_address): Ditto.
4883 (xstormy16_pointer_to_address): Ditto.
4884 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4885 * v850-tdep.c (v850_push_arguments): Ditto.
4886 (v850_extract_return_value): Ditto.
4887 (v850_extract_struct_value_address): Ditto.
4888 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4889 (sparcnbsd_get_longjmp_target_64): Ditto.
4890 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4891 (get_longjmp_target): Ditto.
4892 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4893 (sh64_extract_struct_value_address): Ditto.
4894 (sh_push_arguments): Ditto.
4895 (sh64_push_arguments): Ditto.
4896 * remote-vxsparc.c (vx_read_register): Ditto.
4897 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4898 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4899 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4900 * mipsv4-nat.c (get_longjmp_target): Ditto.
4901 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4902 * mips-nat.c (get_longjmp_target): Ditto.
4903 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4904 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4905 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4906 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4907 * irix5-nat.c (get_longjmp_target): Ditto.
4908 * irix4-nat.c (get_longjmp_target): Ditto.
4909 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4910 (ia64_push_arguments): Ditto.
4911 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4912 * h8300-tdep.c (h8300_push_arguments): Ditto.
4913 (h8300_store_return_value): Ditto.
4914 (h8300_extract_struct_value_address): Ditto.
4915 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4916 (frv_push_arguments): Ditto.
4917 * avr-tdep.c (avr_pointer_to_address): Ditto.
4918 (avr_push_arguments): Ditto.
4919 * arm-tdep.c (arm_push_dummy_call): Ditto.
4920 (arm_get_longjmp_target): Ditto.
4921 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4922 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4923 (alpha_get_longjmp_target): Ditto.
4925 * solib-irix.c (extract_mips_address): Inline extract_address,
4926 replacing it with extract_signed_integer.
4927 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4928 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4929 (first_link_map_member, open_symbol_file_object): Ditto.
4930 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4931 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4932 (LM_NEXT, LM_NAME): Ditto.
4934 2003-06-01 Richard Henderson <rth@redhat.com>
4936 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4937 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4938 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4939 (alpha_cannot_store_register): Likewise.
4940 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4941 * alpha-nat.c (supply_gregset): Likewise.
4942 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4944 2003-06-01 Andrew Cagney <cagney@redhat.com>
4946 * infcall.c (call_function_by_hand): Update comment on
4947 DEPRECATED_DUMMY_WRITE_SP.
4949 * mips-tdep.c (mips_gdbarch_init): Do not set
4950 deprecated_dummy_write_sp.
4951 (mips_eabi_push_dummy_call): Set the SP register.
4952 (mips_o64_push_dummy_call): Set the SP register.
4953 (mips_o32_push_dummy_call): Set the SP register.
4954 (mips_n32n64_push_dummy_call): Set the SP register.
4956 2003-06-01 Richard Henderson <rth@redhat.com>
4958 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4959 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4960 (supply_gregset): Likewise.
4961 * alpha-tdep.c (alpha_store_return_value): Likewise.
4962 (alpha_get_longjmp_target): Likewise.
4963 (alpha_register_name): Constify array.
4964 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4965 deprecated_register_size, deprecated_register_bytes,
4966 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4967 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4968 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4970 2003-06-01 Richard Henderson <rth@redhat.com>
4972 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4973 from arg_reg_buffer to regcache to avoid double conversion.
4975 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4977 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4979 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4980 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4982 2003-06-01 Richard Henderson <rth@redhat.com>
4984 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4985 (decode_frame_entry): Set it. Skip FDE augmentation.
4987 2003-06-01 Richard Henderson <rth@redhat.com>
4989 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4990 not overlapping PC_REGNUM.
4992 2003-06-01 Richard Henderson <rth@redhat.com>
4994 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4995 alpha_push_arguments. Don't dump argument register data to
4996 the target stack. Fix float and 128-bit long double semantics.
4997 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4998 (alpha_fix_call_dummy): Remove.
4999 (alpha_call_dummy_words): Remove.
5000 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5002 2003-06-01 Richard Henderson <rth@redhat.com>
5004 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5006 2003-06-01 Andrew Cagney <cagney@redhat.com>
5008 * mips-tdep.c (is_mips16_addr): New function.
5009 (make_mips16_addr, unmake_mips16_addr): New functions.
5010 (pc_is_mips16, mips_fetch_instruction): Use.
5011 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5012 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5013 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5014 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5016 * config/mips/tm-mips.h: Update copyright.
5017 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5018 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5019 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5020 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5021 (TM_PRINT_INSN_MACH): Delete.
5022 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5024 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5025 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5026 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5027 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5028 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5029 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5030 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5031 mips*-*-riscos* and mips*-*-sysv* onto mips.
5032 * config/mips/mips64.mt: New file.
5033 * config/mips/mips.mt: New file.
5034 * config/mips/littlemips.mt: Delete file.
5035 * config/mips/decstation.mt: Delete file.
5036 * config/mips/vr4300el.mt: Delete file.
5037 * config/mips/vr5000el.mt: Delete file.
5038 * config/mips/vr5000.mt: Delete file.
5039 * config/mips/vr4100.mt: Delete file.
5040 * config/mips/vr4xxxel.mt: Delete file.
5041 * config/mips/vr4300.mt: Delete file.
5042 * config/mips/vr4xxx.mt: Delete file.
5043 * config/mips/bigmips.mt: Delete file.
5044 * config/mips/bigmips64.mt: Delete file.
5045 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5046 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5047 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5048 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5049 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5051 * config/mips/tm-irix3.h: Ditto.
5052 * config/mips/tm-mipsv4.h: Ditto.
5053 * config/mips/tm-embed.h: Ditto.
5054 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5056 * config/mips/tm-vr5000el.h: Delete file.
5057 * config/mips/tm-tx39l.h: Delete file.
5058 * config/mips/tm-vr4300el.h: Delete file.
5059 * config/mips/tm-vr4xxxel.h: Delete file.
5060 * config/mips/tm-vr4300.h: Delete file.
5061 * config/mips/tm-vr4100.h: Delete file.
5062 * config/mips/tm-vr4xxx.h: Delete file.
5063 * config/mips/tm-vr5000.h: Delete file.
5064 * config/mips/tm-embedl64.h: Delete file.
5065 * config/mips/tm-embedl.h: Delete file.
5066 * config/mips/tm-embed64.h: Delete file.
5067 * config/mips/tm-bigmips64.h: Delete file.
5068 * config/mips/tm-bigmips.h: Delete file.
5070 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5073 * shnbsd-nat.c: Include "sh-tdep.h".
5075 From Richard Henderson <rth@redhat.com>:
5076 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5078 2003-05-31 Andrew Cagney <cagney@redhat.com>
5080 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5081 forward declaration.
5082 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5083 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5084 (mips_find_saved_regs): Use set_reg_offset.
5085 (mips_frame_init_saved_regs): Delete function.
5086 (mips_pop_frame): Call mips_find_saved_regs instead of
5087 DEPRECATED_FRAME_INIT_SAVED_REGS.
5089 2003-05-31 Andrew Cagney <cagney@redhat.com>
5091 * mips-tdep.c (mips_gdbarch_init): Do not set
5092 deprecated_max_register_raw_size, register_virtual_size, and
5093 deprecated_max_register_virtual_size.
5095 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5097 * i386-tdep.c: Include "dwarf2-frame.h".
5098 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5099 * Makefile.in (i386-tdep.o): Update dependencies.
5101 * dwarf2-frame.c, dwarf2-frame.h: New files.
5102 * Makefile.in (SFILES): Add dwarf2-frame.c.
5103 (dwarf2_frame_h): Define.
5104 (COMMON_OBS): Add dwarf2-frame.o.
5105 (dwarf2-frame.o): Add dependencies.
5107 2003-05-31 Andreas Jaeger <aj@suse.de>
5109 * x86-64-linux-nat.c: Fix comment.
5111 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5113 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5116 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5117 have a sigcontext_addr handler.
5118 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5119 sigcontext_addr handler.
5121 2003-05-31 Andrew Cagney <cagney@redhat.com>
5123 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5124 (print_fp_register_row): Replace do_fp_register_row.
5125 (mips_print_fp_register): Add "file" and "frame" parameters.
5126 (mips_print_register): Add "file" and "frame" parameters.
5127 (mips_print_registers_info): Replace mips_do_registers_info.
5128 (mips_gdbarch_init): Set print_registers_info instead of
5129 deprecated_do_registers_info.
5130 (mips_read_fp_register_single): Add "frame" parameter.
5131 (mips_read_fp_register_double): Add "frame" parameter.
5133 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5135 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5136 Fixes a bug where GDB would print the wrong register names for
5137 targets without SSE.
5139 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5140 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5143 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5144 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5145 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5148 From Michal Ludvig <mludvig@suse.cz>:
5149 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5151 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5152 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5153 I386_ST0_REGNUM): Move here from...
5154 * i386-tdep.c: ... here.
5155 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5156 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5157 registers if possible.
5158 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5159 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5161 (i386bsd_sc_reg_offset): New variable.
5162 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5163 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5165 (i386fbsd_sc_reg_offset): New variable.
5166 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5168 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5170 (i386fbsd4_sc_reg_offset): New variable.
5171 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5172 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5174 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5175 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5176 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5178 (i386nbsd_sc_reg_offset): New variable.
5179 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5180 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5182 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5184 (i386obsd_sc_reg_offset): New variable.
5185 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5186 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5188 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5189 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5190 for frame pointer offset in `struct sigcontext'.
5192 2003-05-31 Andrew Cagney <cagney@redhat.com>
5194 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5195 architecture methods call_dummy_words, sizeof_call_dummy_words,
5196 push_return_address, store_struct_return, and fix_call_dummy. Set
5197 push_dummy_call instead of deprecated_push_arguments.
5198 (mips_store_struct_return): Delete function.
5199 (mips_fix_call_dummy): Delete function.
5200 (mips_push_return_address): Delete function.
5201 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5202 RA_REGNUM and T9_REGNUM.
5203 (mips_n32n64_push_dummy_call): Ditto for
5204 mips_n32n64_push_arguments.
5205 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5206 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5208 2003-05-31 Andrew Cagney <cagney@redhat.com>
5210 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5211 "dummy_addr" to "bp_addr".
5212 * infcall.c (call_function_by_hand): Pass "funaddr" to
5213 gdbarch_push_dummy_call.
5214 * gdbarch.h, gdbarch.c: Re-generate.
5215 * i386-tdep.c (i386_push_dummy_call): Update.
5216 * arm-tdep.c (arm_push_dummy_call): Update.
5217 * d10v-tdep.c (d10v_push_dummy_call): Update.
5219 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5221 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5222 variable declarations.
5223 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5224 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5225 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5226 x86_64_init_frame_pc, x86_64_init_frame_pc,
5227 x86_64_function_has_prologue): Remove prototypes.
5228 (X86_64_NUM_GREGS): New define.
5229 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5230 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5231 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5232 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5233 XMM1_REGNUM): Remove defines.
5234 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5235 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5236 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5237 X86_64_XMM1_REGNUM): New defines.
5238 (struct x86_64_register_info): Renamed from `struct
5239 register_info'. Remove `size' member.
5240 (x86_64_register_info_table): Remove variable.
5241 (x86_64_register_info): New variable.
5242 (X86_64_NUM_REGS): New define.
5243 (X86_64_NUM_GREGS): Remove define.
5244 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5245 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5247 (x86_54_dwarf2_reg_to_regnum): Remove function.
5248 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5249 (x86_64_dwarf_reg_to_regnum): New function.
5250 (x86_64_register_name): Rewrite.
5251 (x86_64_register_raw_size): Remove function.
5252 (x86_64_register_byte_table): Remove variable.
5253 (x86_64_register_byte): Remove function.
5254 (x86_64_register_virtual_type): Remove function.
5255 (x86_64_register_type): New function.
5256 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5257 x86_64_register_convert_to_raw): Remove functions.
5258 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5259 (x86_64_use_struct_convention): Make static. Adjust for renamed
5261 (x86_64_frame_init_saved_regs): Remove function.
5262 (x86_64_push_arguments): Make static. Change to accept a regcache
5264 (x86_64_store_return_value, x86_64_extract_return_value): Make
5265 static. Rewrite based on i386 counterparts.
5266 (x86_64_push_dummy_call): New function.
5267 (X86_64_NUM_SAVED_REGS): New define.
5268 (x86_64_register_number): Remove function.
5269 (x86_64_store_struct_return): Remove function.
5270 (x86_64_frameless_function_invocation,
5271 x86_64_function_has_prologue): Remove functions.
5272 (PROLOG_BUFSIZE): Remove define.
5273 (struct x86_64_frame_cache): New structure.
5274 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5275 x86_64_frame_cache, x86_64_frame_this_id,
5276 x86_64_frame_prev_register, x86_64_frame_p,
5277 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5278 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5280 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5282 (x86_64_skip_prologue): Rewrite in terms of
5283 x86_64_analyze_prologue.
5284 (x86_64_frame_base_address): New function.
5285 (x86_64_frame_base): New variable.
5286 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5287 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5288 set deprecated_fp_regnum, deprecated_register_size,
5289 deprecated_register_bytes, register_raw_size, register_byte,
5290 register_virtual_type, register_convertiable,
5291 register_convert_to_virtual, convert_to_raw,
5292 deprecated_get_saved_register, deprecated_target_read_fp,
5293 deprecated_push_arguments, deprecated_push_return_address,
5294 deprecated_pop_frame, deprecated_store_struct_return,
5295 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5296 frameless_function_invocation, deprecated_frame_saved_pc,
5297 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5298 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5299 deprecated_init_frame_pc and virtual_frame_pointer. Call
5300 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5301 and x86_64_frame_p. Call frame_base_set_default to register
5303 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5304 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5305 (_initialize_x86_64_tdep): Remove function.
5306 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5307 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5308 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5310 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5311 (x86_64_linux_sigcontext_addr): Rewrite.
5312 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5313 x86_64_linux_frame_saved_pc): Remove functions.
5314 (x86_64_linux_pc_in_sigtramp): Renamed from
5315 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5317 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5319 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5320 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5321 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5322 (x86_64_regmap): Rename to regmap.
5323 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5325 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5327 (x86_64_fxsave_offset): Remove function.
5328 (supply_fpregset): Simply call x86_64_supply_fxsave.
5329 (fill_fpregset): Simply call x86_64_fill_fxsave.
5330 (fetch_inferior_registers, store_inferior_registers): Avoid
5331 asignment in if-statement.
5332 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5333 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5334 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5335 (fetch_core_registers): Remove function.
5336 (linux_elf_core_fns): Remove.
5337 (offsetoff): Don't define.
5338 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5339 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5340 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5342 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5343 protection against multiple includes instead of NM_X86_64_h. Add
5344 various comments. Include "config/nm-linux.h". Don't include
5346 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5347 GET_THREAD_SIGNALS): Remove defines.
5348 (x86_64_register_u_addr, kernel_u_size,
5349 lin_thread_get_thread_signals): Remove prototypes.
5350 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5351 [HAVE_LINK_H]: Don't include "solib.h".
5352 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5353 * config/i386/tm-x86-64linux.h: Fix comments.
5354 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5355 x86-64-tdep.o): Update dependencies.
5357 2003-05-30 Andrew Cagney <cagney@redhat.com>
5359 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5360 Change parameter type to a "struct regcache *".
5362 * gdbarch.sh: Regardless of the multi-arch level, always define
5363 the macro when not already defined.
5364 * gdbarch.h, gdbarch.c: Re-generate.
5366 2003-05-30 Richard Henderson <rth@redhat.com>
5368 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5369 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5370 (alpha_mdebug_frame_this_id): Likewise.
5371 (alpha_mdebug_frame_prev_register): Likewise.
5372 (alpha_mdebug_frame_base_address): Likewise.
5373 (alpha_mdebug_frame_locals_address): Likewise.
5374 (alpha_mdebug_frame_args_address): Likewise.
5375 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5376 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5377 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5379 (alpha_heuristic_frame_this_id): Make static.
5380 (alpha_heuristic_frame_prev_register): Likewise.
5381 (alpha_heuristic_frame_base_address): Likewise.
5382 * alpha-tdep.h: Update.
5384 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5386 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5387 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5389 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5390 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5391 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5392 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5393 I386_ST0_REGNUM): New defines.
5394 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5395 codestream_get): Remove define.
5396 (codestream_next_addr, condestream_addr, condestream_buf,
5397 codestream_off, codestream_cnt): Remove variables.
5398 (codestream_fill, codestream_seek, codestream_read): Remove
5400 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5402 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5403 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5404 i386_frame_saved_pc, i386_saved_pc_after_call,
5405 i386_frame_num_args, i386_frame_init_saved_regs,
5406 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5407 i386_push_arguments): Remove functions.
5408 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5409 functionality. Use i386_analyze_prologue instead of
5410 i386_get_frame_setup.
5411 (I386_NUM_SAVED_REGS): New define.
5412 (struct i386_frame_cache): New structure.
5413 (i386_alloc_frame_cache, i386_analyze_struct_return,
5414 i386_skip_probe, i386_analyze_frame_setup,
5415 i386_analyze_register_saves, i386_analyze_prologue,
5416 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5417 i386_frame_prev_register, i386_sigtramp_frame_cache,
5418 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5419 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5420 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5422 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5424 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5425 I386_EAX_REGNUM and I386_EDX_REGNUM.
5426 (i386_extract_return_value, i386_store_return_value): Use
5427 I386_ST0_REGNUM where appropriate.
5428 (i386_extract_struct_value_address): Rewrite to use extract_address.
5429 (i386_svr4_pc_in_sigtramp): Add comment.
5430 (i386_svr4_sigcontext_addr): Rewrite.
5431 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5433 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5434 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5435 of new defines. Set push_dummy_call, don't set
5436 deprecated_push_arguments, deprecated_push_return_address,
5437 deprecated_pop_frame. Don't set parm_boundary. Don't set
5438 deprecated_frame_chain, deprecated_frame_saved_pc,
5439 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5440 save_dummy_frame_tos, unwind_pc. Call
5441 frame_unwind_append_predicate and frame_base_set_default. Don't
5442 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5443 Don't set frameless_function_invocation. Don't set
5444 deprecated_register_bytes, deprecated_register_size,
5445 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5446 * i386-linux-tdep.c: Fix formatting in some comments.
5447 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5448 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5449 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5450 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5451 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5452 redundant parentheses.
5453 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5454 (i386_linux_sigcontext_addr): Use it. Rewrite.
5455 (find_minsym_and_objfile): Change name of second argument.
5456 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5457 changed. Use frame_pc_unwind instead of
5458 DEPRECATED_SAVED_PC_AFTER_CALL.
5459 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5460 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5461 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5463 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5465 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5466 (_initialize_i386_cygwin_tdep): New prototype.
5467 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5468 deprecated_frame_chain_valid.
5469 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5470 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5471 Rely on the SVR4 defaults.
5472 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5473 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5475 2003-05-30 Andrew Cagney <cagney@redhat.com>
5477 * infcall.c (call_function_by_hand): Always call
5478 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5480 2003-05-30 Richard Henderson <rth@redhat.com>
5482 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5485 2003-05-29 Jim Blandy <jimb@redhat.com>
5487 Use gdbarch methods for solib stuff on PowerPC Linux.
5488 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5489 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5491 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5492 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5493 giving the same effect as the #definitions above.
5495 2003-05-29 Adam Fedor <fedor@gnu.org>
5497 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5498 (find_implementation_from_class): Replace it with the standard
5499 case i.e. do nothing.
5501 2003-05-29 Richard Henderson <rth@redhat.com>
5503 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5504 (alpha_linux_sigtramp_offset): Use it. Make static.
5505 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5506 update for new frame model.
5507 * alpha-mdebug-tdep.c: New file.
5508 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5509 (alpha_osf1_init_abi): Install it.
5510 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5511 (linked_proc_desc_table): Remove.
5512 (alpha_frame_past_sigtramp_frame): Remove.
5513 (alpha_dynamic_sigtramp_offset): Remove.
5514 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5515 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5516 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5517 (push_sigtramp_desc): Remove.
5518 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5519 (alpha_cannot_store_register): Likewise.
5520 (alpha_sigcontext_addr): Remove.
5521 (alpha_find_saved_regs): Remove.
5522 (alpha_frame_init_saved_regs): Remove.
5523 (alpha_init_frame_pc_first): Remove.
5524 (read_next_frame_reg): Remove.
5525 (alpha_frame_saved_pc): Remove.
5526 (alpha_saved_pc_after_call): Remove.
5527 (temp_proc_desc, temp_saved_regs): Remove.
5528 (alpha_about_to_return): Remove.
5529 (cached_proc_desc): Remove.
5530 (alpha_frame_chain): Remove.
5531 (alpha_print_extra_frame_info): Remove.
5532 (alpha_init_extra_frame_info): Remove.
5533 (alpha_frame_locals_address): Remove.
5534 (alpha_frame_args_address): Remove.
5535 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5536 (alpha_push_dummy_frame): Remove.
5537 (alpha_pop_frame): Remove.
5538 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5539 (alpha_read_insn): New.
5540 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5541 for different insn encodings.
5542 (alpha_in_lenient_prologue): Remove.
5543 (struct alpha_sigtramp_unwind_cache): New.
5544 (alpha_sigtramp_frame_unwind_cache): New.
5545 (alpha_sigtramp_register_address): New.
5546 (alpha_sigtramp_frame_this_id): New.
5547 (alpha_sigtramp_frame_prev_register): New.
5548 (alpha_sigtramp_frame_unwind): New.
5549 (alpha_sigtramp_frame_p): New.
5550 (struct alpha_heuristic_unwind_cache): New.
5551 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5552 don't count nop insns that occur between functions.
5553 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5554 heuristic_proc_desc, but without the mdebug wrapping.
5555 (alpha_heuristic_frame_this_id): New.
5556 (alpha_heuristic_frame_prev_register): New.
5557 (alpha_heuristic_frame_unwind): New.
5558 (alpha_heuristic_frame_p): New.
5559 (alpha_heuristic_frame_base_address): New.
5560 (alpha_heuristic_frame_base): New.
5561 (alpha_unwind_dummy_id): New.
5562 (alpha_unwind_pc): New.
5563 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5564 frame related deprecated initializations; install replacements.
5565 (alpha_dump_tdep): Remove.
5566 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5567 (alpha_read_insn, alpha_after_prologue,
5568 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5569 alpha_heuristic_frame_prev_register,
5570 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5571 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5572 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5573 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5575 2003-05-29 Andrew Cagney <cagney@redhat.com>
5577 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5578 dependant on the availability of ASSERT_FUNCTION.
5579 (ASSERT_FUNCTION): Do not define when there is no function name.
5581 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5583 From Jimi X <jimix@watson.ibm.com>:
5584 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5586 2003-05-28 Jim Blandy <jimb@redhat.com>
5588 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5589 argument to ptrace to int; the system headers should give it the
5590 right type, and pointers don't fit in ints on powerpc64-*-*.
5592 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5594 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5597 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5599 * stabsread.c (dbx_lookup_type): Make static.
5601 (add_undefined_type): Ditto.
5602 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5605 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5607 * hpread.c (hpread_has_name): Make static.
5608 (hpread_psymtab_to_symtab): Ditto.
5609 (file_exists): Ditto.
5610 (hpread_call_pxdb): Ditto.
5611 (hpread_pxdb_needed): Ditto.
5612 (hpread_quick_traverse): Ditto.
5613 (hpread_get_header): Ditto.
5614 (hpread_get_lntt): Ditto.
5615 (hpread_get_slt): Ditto.
5618 2003-05-25 Andreas Schwab <schwab@suse.de>
5620 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5621 stack_align and deprecated_extra_stack_alignment_needed.
5622 (m68k_stack_align): Delete.
5624 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5625 (m68k_register_virtual_size): Likewise.
5626 (altos_skip_prologue): Remove obsolete function.
5627 (isi_frame_num_args): Likewise.
5628 (news_frame_num_args): Likewise.
5629 (m68k_fix_call_dummy): Make static.
5630 (m68k_push_dummy_frame): Likewise.
5631 (m68k_pop_frame): Likewise.
5632 (m68k_skip_prologue): Likewise.
5633 (m68k_frame_init_saved_regs): Likewise.
5634 (m68k_saved_pc_after_call): Likewise.
5635 (m68k_get_longjmp_target): Make multi-arch.
5636 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5637 structure. Register m68k_get_longjmp_target if enabled.
5638 * m68k-tdep.h (struct gdbarch_tdep): Define.
5639 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5641 * Makefile.in (config.status): Also depend on configure.tgt
5643 (m68klinux-tdep.o): Update dependencies.
5644 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5645 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5646 (M68K_LINUX_JB_PC): Define.
5647 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5648 and take additional parameter.
5649 (m68k_linux_sigtramp_saved_pc): Update.
5650 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5651 m68k_linux_pc_in_sigtramp, in_plt_section,
5652 find_solib_trampoline_target.
5653 * config/m68k/tm-linux.h: Don't include any tm headers.
5654 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5655 (JB_ELEMENT_SIZE): Likewise.
5657 (GET_LONGJMP_TARGET): Likewise.
5658 (IN_SIGTRAMP): Likewise.
5659 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5661 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5663 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5664 (sparc32_push_arguments): Re-implement by calling
5665 sparc32_do_push_arguments.
5667 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5669 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5670 SPARC_O1_REGNUM): New defines.
5671 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5672 (sparc32_store_return_value): New function.
5673 (sparc_extract_struct_value_address): Rewrite to operate on a
5675 (sparc_gdbarch_init): Don't set
5676 deprecated_extract_struct_value_address. Set
5677 extract_struct_value_address instead. Don't set
5678 deprecated_extract_return_value and deprecated_store_return_value
5679 for 32-bit targets. Set extract_return_value and
5680 store_return_value instead.
5681 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5682 DEPRECTAED_EXTRACT_RETURN_VALUE,
5683 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5684 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5685 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5686 (sparc_store_return_value): Remove prototype.
5687 (sparc32_store_return_value): New prototype.
5688 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5691 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5693 * sparcnbsd-tdep.c: Include "gdb_string.h".
5695 2003-05-23 Andrew Cagney <cagney@redhat.com>
5697 * p-valprint.c (pascal_val_print): Replace extract_address with
5698 the inline equivalent extract_unsigned_integer.
5699 * jv-valprint.c (java_value_print): Ditto.
5700 * ada-valprint.c (ada_val_print_1): Ditto.
5701 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5703 2003-05-23 Theodore A. Roth <troth@openavr.org>
5705 * blockframe.c (frameless_look_for_prologue): Remove unused
5706 after_prologue variable.
5708 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5710 * blockframe.c (get_pc_function_start): Rewrite to avoid
5711 asignments in if-statements.
5713 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5715 Committed by Elena Zannoni <ezannoni@redhat.com>.
5716 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5717 files, don't relocate absolute symbols (and do use mst_abs).
5719 2003-05-23 Andrew Cagney <cagney@redhat.com>
5721 * objc-lang.c: Include "gdb_assert.h".
5722 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5723 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5724 (gdb_check, gdb_check_fatal): Delete functions.
5725 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5727 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5728 * Makefile.in (objc-lang.o): Update dependencies.
5730 2003-05-22 Ian Lance Taylor <ian@airs.com>
5732 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5733 with fprintf_filtered, not fprintf_unfiltered.
5735 2003-05-22 Andrew Cagney <cagney@redhat.com>
5737 * stack.c (frame_info): Inline extract_address, replacing it with
5738 extract_unsigned_integer.
5739 * findvar.c (unsigned_pointer_to_address): Ditto.
5740 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5741 * dwarf2expr.c (dwarf2_read_address): Ditto.
5742 * frame.c (frame_pc_unwind): Update comment.
5743 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5745 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5747 * infptrace.c (detach): Call print_sys_errmsg rather than
5748 perror_with_name to issue warning message when errno is non-zero
5749 after calling ptrace detach.
5751 2003-05-21 J. Brobecker <brobecker@gnat.com>
5753 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5754 macro definitions from here...
5755 * hppa-tdep.c: ...to there.
5757 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5759 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5760 register_ptrace_addr(). Fix all callers.
5762 2003-05-21 Andreas Schwab <schwab@suse.de>
5764 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5766 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5768 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5769 (_initialize_m68k_linux_tdep): New function.
5770 (m68k_linux_frame_saved_pc): Make static.
5771 (m68k_linux_extract_return_value): Likewise.
5772 (m68k_linux_store_return_value): Likewise.
5773 (m68k_linux_extract_struct_value_address): Likewise.
5774 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5776 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5777 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5778 (DEPRECATED_FRAME_SAVED_PC): Remove.
5780 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5782 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5783 regset numbering rather than our own.
5785 2003-05-19 David Carlton <carlton@bactrian.org>
5787 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5789 2003-05-19 David Carlton <carlton@bactrian.org>
5791 Partial fix for PR c++/827.
5792 * cp-support.h: Include symtab.h.
5793 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5794 * cp-namespace.c: Update contributors.
5795 (cp_lookup_symbol_nonlocal): New.
5796 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5797 (lookup_symbol_file): Ditto.
5798 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5799 * block.h: Declare block_scope, block_using, block_global_block.
5800 * block.c (block_scope): New.
5801 (block_using, block_global_block): Ditto.
5802 * Makefile.in (cp_support_h): Depend on symtab_h.
5803 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5805 2003-05-19 David Carlton <carlton@bactrian.org>
5807 * language.h (struct language_defn): Add 'la_value_of_this'
5808 and 'la_lookup_symbol_nonlocal' members.
5809 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5810 lookup_symbol_static, lookup_symbol_global,
5811 lookup_symbol_aux_block.
5812 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5813 if we should search fields of this and how to do static/global
5815 (lookup_symbol_aux_block): Make extern.
5816 (basic_lookup_symbol_nonlocal): New.
5817 (lookup_symbol_static, lookup_symbol_global): Ditto.
5818 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5819 'la_lookup_symbol_nonlocal' members.
5820 * c-lang.c (c_language_defn, cplus_language_defn)
5821 (asm_language_defn, minimal_language_defn): Ditto.
5822 * jv-lang.c (java_language_defn): Ditto.
5823 * language.c (unknown_language_defn, auto_language_defn)
5824 (local_language_defn): Ditto.
5825 * m2-lang.c (m2_language_defn): Ditto.
5826 * objc-lang.c (objc_language_defn): Ditto.
5827 * scm-lang.c (scm_language_defn): Ditto.
5828 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5829 * p-lang.c (pascal_language_defn): Ditto for both.
5830 * Makefile.in (f-lang.o): Depend on value_h.
5833 2003-05-19 David Carlton <carlton@bactrian.org>
5835 * block.h: Declare block_static_block.
5836 * block.c (block_static_block): New.
5837 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5838 lookup_symbol_aux_local, calling block_static_block instead.
5839 (lookup_symbol_aux_local): Delete 'static_block' argument.
5841 2003-05-19 David Carlton <carlton@bactrian.org>
5843 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5845 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5847 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5848 register numbers mapping.
5850 2003-05-18 Adam Fedor <fedor@gnu.org>
5852 * symtab.c (completion_list_objc_symbol): New function.
5853 (make_symbol_completion_list): Use it to add ObjC symbols
5854 when looking though the list.
5855 (language_search_unquoted_string): New function.
5856 (make_file_symbol_completion_list): Use it.
5858 2003-05-18 Andreas Schwab <schwab@suse.de>
5860 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5862 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5863 as m68k_linux_extract_return_value.
5864 (DEPRECATED_STORE_RETURN_VALUE): Define as
5865 m68k_linux_store_return_value.
5866 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5867 m68k_linux_extract_struct_value_address.
5868 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5869 get_next_frame, get_frame_base, get_frame_pc.
5870 (m68k_linux_frame_saved_pc): Use get_frame_base.
5871 (m68k_linux_extract_return_value): New function.
5872 (m68k_linux_store_return_value): New function.
5873 (m68k_linux_extract_struct_value_address): New function.
5874 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5876 * c-exp.y (typebase): Remove duplicate occurence of
5877 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5878 of lookup_signed_typename.
5880 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5882 * dwarf2loc.c (find_location_expression): Change type of second
5883 argument to `size_t *'.
5884 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5887 2003-05-18 David Carlton <carlton@bactrian.org>
5889 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5890 'linkage_name'. Add comment.
5891 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5893 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5894 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5895 (lookup_block_symbol): Ditto.
5897 2003-05-16 Andrew Cagney <cagney@redhat.com>
5899 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5900 * gdbarch.h, gdbarch.c: Re-generate.
5901 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5902 * TODO (REGISTER_BYTES): Delete reference.
5903 * alpha-tdep.c (alpha_gdbarch_init): Update.
5904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5905 * x86-64-tdep.c (x86_64_init_abi): Update.
5906 * vax-tdep.c (vax_gdbarch_init): Update.
5907 * v850-tdep.c (v850_gdbarch_init): Update.
5908 * sparc-tdep.c (sparc_gdbarch_init): Update.
5909 * sh-tdep.c (sh_gdbarch_init): Update.
5910 * s390-tdep.c (s390_gdbarch_init): Update.
5911 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5912 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5913 (ns32k_gdbarch_init_32382): Update.
5914 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5915 * mcore-tdep.c (mcore_gdbarch_init): Update.
5916 * m68k-tdep.c (m68k_gdbarch_init): Update.
5917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5918 * ia64-tdep.c (ia64_gdbarch_init): Update.
5919 * i386-tdep.c (i386_gdbarch_init): Update.
5920 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5921 * hppa-tdep.c (hppa_gdbarch_init): Update.
5922 * h8300-tdep.c (h8300_gdbarch_init): Update.
5923 * frv-tdep.c (frv_gdbarch_init): Update.
5924 * cris-tdep.c (cris_gdbarch_init): Update.
5925 * avr-tdep.c (avr_gdbarch_init): Update.
5926 * arm-tdep.c (arm_gdbarch_init): Update.
5927 * sparc-tdep.c (sparc_pop_frame): Update.
5928 * rs6000-tdep.c (rs6000_pop_frame): Update.
5929 * remote.c (init_remote_state): Update.
5930 (remote_prepare_to_store): Update.
5931 * remote-vx.c (vx_prepare_to_store): Update.
5932 * remote-sds.c (sds_fetch_registers): Update.
5933 (sds_prepare_to_store): Update.
5934 * remote-array.c: Update.
5935 * regcache.c (init_legacy_regcache_descr): Update.
5936 (init_regcache_descr): Update.
5937 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5938 (mips_o64_extract_return_value): Update.
5939 * irix5-nat.c (fetch_core_registers): Update.
5940 * irix4-nat.c (fetch_core_registers): Update.
5941 * i386-tdep.h: Update.
5942 * hppa-tdep.c (pa_do_registers_info): Update.
5943 (pa_do_strcat_registers_info): Update.
5944 * cris-tdep.c (cris_register_bytes_ok): Update.
5945 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5946 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5947 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5948 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5949 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5950 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5951 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5952 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5953 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5954 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5955 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5956 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5957 (REGISTER_BYTES_OK): Update.
5958 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5959 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5961 2003-05-16 Ian Lance Taylor <ian@airs.com>
5963 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5964 (vax_print_insn, print_insn_arg): Remove static functions.
5965 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5966 print_insn_vax from opcodes library.
5967 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5969 2003-05-15 Andrew Cagney <cagney@redhat.com>
5971 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5972 * target.h (memory_breakpoint_from_pc): Delete declaration.
5973 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5974 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5975 * monitor.c (monitor_insert_breakpoint): Use
5976 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5977 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5978 * gdbarch.h, gdbarch.c: Re-generate.
5979 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5980 (sparc_gdbarch_init): Set breakpoint_from_pc to
5981 sparc_breakpoint_from_pc.
5982 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5983 (BREAKPOINT_FROM_PC): Define.
5984 (sparc_breakpoint_from_pc): Declare.
5985 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5986 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5987 (BREAKPOINT_FROM_PC): Define.
5988 (BREAKPOINT): Delete macro.
5989 * target.h: Update comment.
5990 * s390-tdep.c (s390_gdbarch_init): Update comments.
5991 * remote.c: Update comments.
5992 * remote-mips.c: Update comments.
5993 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5994 * mem-break.c: Update comment.
5995 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5996 (ia64_memory_insert_breakpoint): Update.
5997 * config/sparc/tm-sparc.h: Update comment.
5998 * config/pa/tm-hppa64.h: Update comment.
5999 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6000 (rs6000_breakpoint_from_pc): Update.
6001 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6002 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6003 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6004 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6005 (mips_breakpoint_from_pc): Update.
6006 (mips_dump_tdep): Update.
6008 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6009 * minsyms.c (lookup_minimal_symbol): Inline
6010 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6012 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6013 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6014 * p-lang.c (pascal_printstr): Ditto.
6015 * objc-lang.c (objc_printstr): Ditto.
6016 * m2-lang.c (m2_printstr): Ditto.
6017 * jv-valprint.c (java_print_value_fields): Ditto.
6018 * f-lang.c (f_printstr): Ditto.
6019 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6020 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6021 for repeat_count_threshold.
6022 * Makefile.in (cp-valprint.o): Update dependencies.
6024 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6026 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6027 (examine_prologue): Support looking through leaf functions, knowing
6028 they start with mov r2,r12. Support skipping over indirect stores
6029 of the input registers. Upon hitting a non-nop branch instruction
6030 or predicated instruction, bail out by setting lim_pc to the current
6031 pc value in the loop. At the end, if the lim_pc value is still
6032 beyond our calculated value and we have trust_limit set,
6033 use the lim_pc value.
6035 2003-05-15 Andrew Cagney <cagney@redhat.com>
6037 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6038 generic_find_dummy_frame.
6039 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6040 (deprecated_generic_find_dummy_frame): Update.
6041 (deprecated_read_register_dummy): Update.
6042 * frame.c (deprecated_generic_get_saved_register): Update.
6044 2003-05-15 Theodore A. Roth <troth@openavr.org>
6046 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6047 (avr_gdbarch_init): Set breakpoint_from_pc method.
6049 2003-05-15 Andrew Cagney <cagney@redhat.com>
6051 * regcache.c (build_regcache): Set deprecated_register_valid
6053 (deprecated_grub_regcache_for_register_valid): Delete function.
6054 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6057 2003-05-15 David Carlton <carlton@bactrian.org>
6059 Committed by Elena Zannoni <ezannoni@redhat.com>
6060 * symtab.c (lookup_symbol_aux): Delete calls to
6061 lookup_symbol_aux_minsyms.
6062 (lookup_symbol_aux_minsyms): Comment out function and
6063 prototype. Delete lookup by mangled name.
6065 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6067 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6068 correctly indicate an empty stack and ``stack_allocated'' to the
6069 indicate the number of elements initially allocated.
6070 (dwarf_expr_grow_stack): Simplify method for computing new
6071 stack size. Don't loop infinitely if ``stack_len'' is zero.
6072 (execute_stack_op): Move ``ctx->in_reg'' initialization
6073 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6074 be used in conjuction with DW_OP_piece. Revise error message
6077 2003-05-14 Theodore A. Roth <troth@openavr.org>
6079 * MAINTAINERS: Update my email address.
6080 * avr-tdep.c: Ditto.
6082 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6084 * symtab.h (enum domain_enum): Rename from namespace_enum.
6085 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6086 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6087 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6088 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6089 TYPES_NAMESPACE, METHODS_NAMESPACE.
6090 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6091 (struct symbol, struct partial_symbol): Rename field
6092 'namespace_enum namespace' to 'domain_enum domain'.
6093 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6094 Delete old define kludge for namespace.
6096 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6097 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6098 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6099 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6100 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6101 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6102 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6103 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6104 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6105 occurrences of the above.
6107 2003-05-14 Ian Lance Taylor <ian@airs.com>
6109 * Makefile.in (install-only): Use $(SHELL) when running
6112 2003-05-13 Ian Lance Taylor <ian@airs.com>
6114 * MAINTAINERS (write after approval): Add myself.
6116 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6117 second and third arguments.
6118 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6119 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6121 2003-05-13 Andrew Cagney <cagney@redhat.com>
6123 * defs.h (store_address): Delete declaration.
6124 findvar.c (store_address): Delete function.
6125 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6126 store_unsigned_integer.
6127 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6128 * v850-tdep.c (v850_push_arguments): Ditto.
6129 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6130 * sh-tdep.c (sh64_get_saved_register): Ditto.
6131 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6132 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6133 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6134 (mips_get_saved_register): Ditto.
6135 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6136 (find_func_descr, ia64_push_arguments): Ditto.
6137 * i386-tdep.c (i386_push_arguments): Ditto.
6138 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6139 * frv-tdep.c (frv_push_arguments): Ditto.
6140 * frame.c (legacy_saved_regs_prev_register): Ditto.
6141 (deprecated_generic_get_saved_register): Ditto.
6142 * findvar.c (unsigned_address_to_pointer): Ditto.
6143 * dwarf2read.c (dwarf2_const_value): Ditto.
6144 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6145 * alpha-tdep.c (alpha_push_arguments): Ditto.
6147 2003-05-12 J. Brobecker <brobecker@gnat.com>
6149 * NEWS: Mention that the hppa-hpux port has been partially
6150 multiarched (32bit ABIT only, so far).
6152 2003-05-11 Andrew Cagney <cagney@redhat.com>
6154 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6155 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6156 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6157 sim/testsuite/sim/arm/misaligned2.ms, and
6158 sim/testsuite/sim/arm/misaligned3.ms.
6159 * disasm.h (struct ui_file): Add opaque struct declaration.
6160 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6161 * frame.h (struct ui_file): Ditto.
6163 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6165 * value.h: Pretty print.
6167 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6169 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6171 2003-05-08 Andrew Cagney <cagney@redhat.com>
6173 * regcache.h (max_register_size): Delete declaration.
6174 * regcache.c (max_register_size): Delete function.
6175 (struct regcache_descr): Delete field "max_register_size".
6176 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6177 registers fit in MAX_REGISTER_SIZE.
6178 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6179 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6180 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6181 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6182 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6183 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6184 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6185 * dve3900-rom.c, hppa-tdep.c: Ditto.
6187 2003-05-08 David Carlton <carlton@math.stanford.edu>
6189 * valops.c (push_word): Fix typo.
6191 2003-05-08 Andrew Cagney <cagney@redhat.com>
6193 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6194 * gdbarch.h: Re-generate.
6195 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6196 (legacy_max_register_raw_size): Delete declaration.
6197 * regcache.c (legacy_max_register_raw_size): Delete function.
6198 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6199 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6200 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6201 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6202 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6203 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6204 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6205 * findvar.c, dwarf2cfi.c: Ditto.
6207 2003-05-08 Andrew Cagney <cagney@redhat.com>
6209 * mips-tdep.c (read_signed_register): New function, moved to here
6211 (read_signed_register_pid): Ditto.
6212 * regcache.c (read_signed_register_pid): Delete function, moved to
6214 (read_signed_register): Ditto.
6215 * regcache.h (read_signed_register): Delete declaration.
6216 (read_signed_register_pid): Delete declaration.
6218 2003-05-08 Andrew Cagney <cagney@redhat.com>
6220 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6221 * gdbarch.h: Re-generate.
6222 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6223 (legacy_max_register_virtual_size): Delete declaration.
6224 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6225 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6226 * tracepoint.c (memrange_sortmerge): Ditto.
6227 * sparc-tdep.c (sparc_print_registers): Ditto.
6228 * regcache.c (legacy_max_register_virtual_size): Delete function.
6230 2002-05-08 J. Brobecker <brobecker@gnat.com>
6232 * fork-child.c (escape_bang_in_quoted_argument): New function.
6233 (fork_inferior): Escape '!' characters in quoted arguments
6236 2003-05-08 J. Brobecker <brobecker@gnat.com>
6238 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6239 the language of the CU is not currently supported by GDB.
6241 2003-05-08 J. Brobecker <brobecker@gnat.com>
6243 * defs.h (language): Add language_minimal enum value.
6244 * c-lang.c (minimal_language_defn): New language definition.
6245 (_initialize_c_language): Add the new minimal language to the list
6246 of languages known to GDB.
6248 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6250 * frame.c (get_frame_type): Don't attempt to lazily initialize
6251 frame's unwinder for legacy frames.
6253 2003-05-07 Andrew Cagney <cagney@redhat.com>
6255 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6256 and "regcache" parameters.
6257 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6259 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6261 * dwarf2read.c (dwarf_decode_lines): Only use output of
6262 check_cu_functions() when calling record_line(). Do not update
6263 the current address.
6265 2003-05-07 Andrew Cagney <cagney@redhat.com>
6267 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6270 2003-05-07 Jim Blandy <jimb@redhat.com>
6272 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6273 'maint info symtabs' and 'maint info psymtabs'.
6274 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6275 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6276 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6277 Declarations updated.
6278 * maint.c (maintenance_list_command): Delete.
6279 (_initialize_maint_cmds): Update calls to add_cmd.
6280 * gdbcmd.h (maintenancelistlist): Delete declaration.
6281 * cli/cli-cmds.c (maintenancelistlist): Delete.
6282 (init_cmd_lists): Don't initialize it.
6283 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6285 2003-05-07 Andrew Cagney <cagney@redhat.com>
6287 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6289 (d10v_print_registers_info): Update.
6290 (d10v_dmap_register, d10v_imap_register): Delete functions.
6291 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6292 and "imap_register".
6293 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6294 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6295 * arch-utils.c (generic_remote_translate_xfer_address): Add
6296 "regcache" and "gdbarch" parameters.
6297 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6298 parameter. Change class to multi-arch.
6299 * gdbarch.h, gdbarch.c: Re-generate.
6300 * remote.c (remote_xfer_memory): Use
6301 gdbarch_remote_translate_xfer_address.
6303 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6305 * infrun.c (prev_pc): Move declaration ahead of proceed().
6306 (proceed): Refresh prev_pc value before resuming.
6307 (stop_stepping): Remove code to refresh prev_pc.
6309 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6311 * nto-tdep.c: Removed stray comment.
6313 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6315 * i386-nto-tdep.c: Fix old K&R function definitions.
6316 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6317 Also change add_show_from_set() call to add_setshow_cmd().
6318 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6320 2003-05-05 Andrew Cagney <cagney@redhat.com>
6322 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6323 (fprint_dummy_frames): New function.
6324 (maintenance_print_dummy_frames): New function.
6325 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6326 * frame.c (fprint_frame_id): Make global.
6327 * frame.h (fprint_frame_id): Declare.
6328 * Makefile.in (dummy-frame.o): Update dependencies.
6330 2003-05-05 Andrew Cagney <cagney@redhat.com>
6332 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6333 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6334 SIZEOF_CALL_DUMMY_WORDS.
6335 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6336 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6337 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6338 CALL_DUMMY_BREAKPOINT_OFFSET.
6339 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6340 CALL_DUMMY_START_OFFSET.
6341 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6342 * gdbarch.h, gdbarch.c: Re-generate.
6343 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6344 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6345 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6346 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6347 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6348 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6349 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6350 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6351 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6352 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6353 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6354 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6355 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6356 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6357 * config/sparc/tm-sparc.h: Update.
6359 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6361 * configure.tgt: Add i[3456]86-*-nto*.
6362 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6363 * nto-tdep.c: New file. Neutrino target support routines.
6364 * nto-tdep.h: New file. Neutrino target header.
6365 * config/tm-qnxnto.h: New file.
6366 * config/i386/i386nto.mt: New file.
6367 * config/i386/tm-i386nto.h: New file.
6369 2003-05-04 Andrew Cagney <cagney@redhat.com>
6371 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6372 (load_infrun_state): Ditto.
6373 (struct thread_info): Drop "prev_func_name" field.
6374 * thread.c (load_infrun_state): Update.
6375 (save_infrun_state): Update.
6376 * infrun.c (prev_func_name): Delete variable.
6377 (init_wait_for_inferior): Do not clear prev_func_name.
6378 (stop_stepping, keep_going, context_switch): Do not swap
6380 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6381 instead of PC_IN_SIGTRAMP.
6383 2003-05-04 Andrew Cagney <cagney@redhat.com>
6385 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6386 REGISTER_BYTE with register_offset_hack.
6387 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6388 that REGISTER_BYTE is consistent with the regcache.
6389 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6390 * gdbarch.h, gdbarch.c: Regenerate.
6392 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6394 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6395 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6397 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6399 2003-05-03 J. Brobecker <brobecker@gnat.com>
6401 From Thierry Schneider <tpschneider1@yahoo.com>
6402 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6403 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6404 (mi-cmd-symbol.o): Add rule.
6406 2003-05-03 Andrew Cagney <cagney@redhat.com>
6408 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6409 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6410 * gdbarch.h, gdbarch.c: Re-generate.
6411 * d10v-tdep.c (d10v_push_dummy_code): New function.
6412 (d10v_gdbarch_init): Set push_dummy_code.
6413 * infcall.c (legacy_push_dummy_code): New function.
6414 (generic_push_dummy_code): New function.
6415 (push_dummy_code): New function.
6416 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6417 instead of dummy_addr, to push_dummy_call. Move call to
6418 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6420 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6422 2003-05-03 Andrew Cagney <cagney@redhat.com>
6424 * disasm.h (print_insn): Declare.
6425 * disasm.c (init_gdb_disassemble_info): New function.
6426 (gdb_disassembly): Call init_gdb_disassemble_info.
6427 (gdb_print_insn): New function.
6428 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6429 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6430 * mcore-tdep.c: Include "disasm.h"
6431 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6432 * d10v-tdep.c: Include "disasm.h".
6433 (display_trace): Call gdb_print_insn, instead of print_insn.
6434 (print_insn): Delete function.
6435 * printcmd.c: Include "disasm.h".
6436 (print_insn): Delete function.
6437 (print_formatted): Call gdb_print_insn, instead of print_insn.
6438 * Makefile.in (printcmd.o): Update dependencies.
6439 (mcore-tdep.o, d10v-tdep.o): Ditto.
6441 2003-05-02 Andrew Cagney <cagney@redhat.com>
6443 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6444 PC_REGNUM, re-indent.
6445 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6446 PC_REGNUM isn't set.
6448 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6449 * gdbarch.h, gdbarch.c: Re-generate.
6450 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6451 register_virtual_size, pc_regnum, or register_bytes.
6452 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6453 (d10v_register_type): Use D10V_PC_REGNUM.
6454 (d10v_print_registers_info, d10v_read_pc): Ditto.
6455 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6456 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6458 2003-05-02 David Carlton <carlton@bactrian.org>
6460 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6461 the name with mstrsave.
6463 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6465 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6466 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6467 (host_charset_name, target_charset_name): New vars for use by
6469 (host_charset_enum, target_charset_enum): New enums for set/show
6471 (set_charset_sfunc, set_host_charset_sfunc,
6472 set_target_charset_sfunc): New functions.
6473 (set_host_charset, set_target_charset): Make static.
6474 (list_charsets, set_host_charset_command,
6475 set_target_charset_command): Delete functions.
6476 (show_charset_command): Rewrite as....
6477 (show_charset): Hook this up with the set/show command mechanism.
6478 (_initialize_charset): Change names of charsets to match the
6479 set/show enums. Use host_charset_name and target_charset_name.
6480 Use set/show mechanism for charset, host-charset, target-charset
6481 commands. Do not make 'show host-charset' and 'show
6482 target-charset' be aliases of 'show charset'.
6484 * charset.h (set_host_charset, set_target_charset): Don't export,
6485 they are not used outside the file.
6487 2003-05-01 Andrew Cagney <cagney@redhat.com>
6489 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6490 (gdb_disassembly): Make "di" non static, always initialize and
6491 cleanup. Always use dis_asm_read_memory.
6492 (gdb_dis_asm_read_memory): Delete function.
6494 2003-05-01 Andrew Cagney <cagney@redhat.com>
6496 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6497 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6499 2003-04-30 Andrew Cagney <cagney@redhat.com>
6501 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6502 "tm_print_insn_info".
6503 (TARGET_PRINT_INSN_INFO): Delete macro.
6504 (dis_asm_read_memory): Delete function declaration.
6505 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6506 (tm_print_insn_info): Delete variable definition.
6507 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6508 * gdbarch.h, gdbarch.c: Re-generate.
6509 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6510 "deprecated_tm_print_insn_info".
6511 * mcore-tdep.c (mcore_dump_insn): Ditto.
6512 * mips-tdep.c (mips_gdbarch_init): Ditto.
6513 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6514 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6515 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6516 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6517 instead of TARGET_PRINT_INSN_INFO, add comment.
6518 * s390-tdep.c (s390_get_frame_info): Instead of
6519 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6520 (s390_check_function_end, s390_is_sigreturn): Ditto.
6521 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6522 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6523 * disasm.c: Include "gdbcore.h".
6524 (_initialize_disasm): New function, initialize
6525 "deprecated_tm_print_insn_info".
6526 (deprecated_tm_print_insn_info): New variable.
6527 (dis_asm_read_memory): Moved from "corefile.c", made static.
6528 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6529 * Makefile.in (disasm.o): Update dependencies.
6531 2003-04-30 Andrew Cagney <cagney@redhat.com>
6533 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6535 2003-04-29 Adam Fedor <fedor@gnu.org>
6537 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6538 * infcall.c (find_function_addr): Make non-static.
6539 * infcall.h (find_function_addr): Declare.
6540 * Makefile.in (eval.o): Update dependencies.
6542 2003-04-28 Adam Fedor <fedor@gnu.org>
6544 * symtab.c (symbol_find_demangled_name): Check for and demangle
6546 (symbol_init_demangled_name): Init for language_objc as well.
6548 2003-04-28 Andrew Cagney <cagney@redhat.com>
6550 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6551 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6552 * gdbarch.h, gdbarch.c: Re-generate.
6553 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6554 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6555 * inferior.h (deprecated_read_fp): Rename read_fp.
6556 (generic_target_read_fp): Delete declaration.
6557 * regcache.c (generic_target_read_fp): Delete function.
6558 (deprecated_read_fp): Replace read_fp, use
6559 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6560 * d10v-tdep.c (d10v_read_fp): Delete function.
6561 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6563 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6564 deprecated_target_read_fp to generic_target_read_fp.
6565 * sh-tdep.c (sh_gdbarch_init): Ditto.
6566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6568 * frv-tdep.c (frv_gdbarch_init): Ditto.
6570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6571 deprecated_fp_regnum.
6572 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6573 * vax-tdep.c (vax_gdbarch_init): Ditto.
6574 * v850-tdep.c (v850_gdbarch_init): Ditto.
6575 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6576 * sh-tdep.c (sh_gdbarch_init): Ditto.
6577 * s390-tdep.c (s390_gdbarch_init): Ditto.
6578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6579 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6580 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6581 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6582 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6583 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6584 * i386-tdep.c (i386_gdbarch_init): Ditto.
6585 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6586 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6587 * frv-tdep.c (frv_gdbarch_init): Ditto.
6588 * cris-tdep.c (cris_gdbarch_init): Ditto.
6589 * avr-tdep.c (avr_gdbarch_init): Ditto.
6590 * arm-tdep.c (arm_gdbarch_init): Ditto.
6591 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6593 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6594 * v850-tdep.c (v850_gdbarch_init): Ditto.
6595 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6596 * sh-tdep.c (sh_gdbarch_init): Ditto.
6597 * s390-tdep.c (s390_gdbarch_init): Ditto.
6598 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6599 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6600 * mips-tdep.c (mips_gdbarch_init): Ditto.
6601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6602 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6603 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6604 * frv-tdep.c (frv_gdbarch_init): Ditto.
6605 * avr-tdep.c (avr_gdbarch_init): Ditto.
6606 * arm-tdep.c (arm_gdbarch_init): Ditto.
6608 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6609 DEPRECATED_FP_REGNUM.
6610 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6611 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6612 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6613 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6614 (sparc32_register_virtual_type): Ditto.
6615 * sh-tdep.c (sh64_frame_chain): Ditto.
6616 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6617 (sh_nofp_frame_init_saved_regs): Ditto.
6618 (sh64_nofp_frame_init_saved_regs): Ditto.
6619 (sh_fp_frame_init_saved_regs): Ditto.
6620 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6621 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6622 * procfs.c (procfs_fetch_registers): Ditto.
6623 (procfs_store_registers): Ditto.
6624 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6625 (store_inferior_registers, fetch_core_registers): Ditto.
6626 (fetch_kcore_registers, clear_regs): Ditto.
6627 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6628 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6629 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6630 * nlm/i386.c (do_status): Ditto.
6631 * mipsv4-nat.c (supply_gregset): Ditto.
6632 * mips-tdep.c: Ditto for comments.
6633 * mips-nat.c (fetch_inferior_registers): Ditto.
6634 (store_inferior_registers, fetch_core_registers): Ditto.
6635 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6636 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6637 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6638 (i386_do_pop_frame, i386_register_type): Ditto.
6639 * hppa-tdep.c (hppa_frame_chain): Ditto.
6640 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6641 (hppa_pop_frame, hppa_read_fp): Ditto.
6642 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6643 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6644 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6645 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6646 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6647 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6648 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6649 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6650 * blockframe.c: Ditto for comments.
6651 * arch-utils.h: Ditto for comments.
6652 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6653 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6654 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6655 * alpha-tdep.h: Ditto for comments.
6656 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6657 (alpha_cannot_store_register): Ditto.
6658 (alpha_push_dummy_frame): Ditto.
6659 * alpha-nat.c (supply_gregset): Ditto.
6661 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6662 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6663 * config/sparc/tm-sparc.h: Update comment.
6665 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6666 deprecated_read_fp instead of TARGET_READ_FP.
6667 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6668 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6669 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6670 deprecated_read_fp instead of read_fp.
6671 * s390-tdep.c (s390_push_arguments): Ditto.
6672 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6673 * frame.h: Ditto in comments.
6674 * frame.c (legacy_get_prev_frame): Ditto.
6675 * dummy-frame.c (dummy_frame_this_id): Ditto.
6676 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6678 2003-04-28 Andrew Cagney <cagney@redhat.com>
6680 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6681 * gdbarch.h, gdbarch.c: Re-generate.
6682 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6683 * vax-tdep.c (_initialize_vax_tdep): Update.
6684 * v850-tdep.c (_initialize_v850_tdep): Update.
6685 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6686 * s390-tdep.c (_initialize_s390_tdep): Update.
6687 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6688 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6689 * mips-tdep.c (_initialize_mips_tdep): Update.
6690 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6691 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6692 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6693 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6694 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6695 * frv-tdep.c (_initialize_frv_tdep): Update.
6696 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6697 (_initialize_cris_tdep): Update.
6698 * arch-utils.c (legacy_print_insn): Update.
6699 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6701 2003-04-26 Adam Fedor <fedor@gnu.org>
6703 * linespec.c (decode_objc): New function to decode ObjC calls
6704 (decode_line_1): Check for ObjC calls (using decode_objc)
6705 * Makefile (linespec.o): Update dependencies.
6707 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6709 * breakpoint.h (struct breakpoint_ops): New.
6710 (struct breakpoint): Add ops member.
6712 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6713 (mention): Use new breakpoint ops member.
6714 (set_raw_breakpoint): Initialize ops field to NULL.
6715 (print_exception_catchpoint, print_one_exception_catchpoint)
6716 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6717 (gnu_v3_exception_catchpoint_ops): New.
6718 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6720 2003-04-25 Adam Fedor <fedor@gnu.org>
6722 * Makefile.in (COMMON_OBS): Add objc-lang.o
6724 2003-04-25 Andrew Cagney <cagney@redhat.com>
6726 * d10v-tdep.c (print_insn): Delete function.
6727 (display_trace): Use TARGET_PRINT_INSN.
6728 (_initialize_d10v_tdep): Do not set tm_print_insn.
6729 (d10v_gdbarch_init): Set print_insn.
6731 2003-04-25 Andrew Cagney <cagney@redhat.com>
6733 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6734 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6735 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6736 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6737 (nr_dmap_regs, a0_regnum): ... new functions.
6738 (d10v_print_registers_info): Use a0_regnum, use register_size.
6739 (d10v_register_byte): Delete function.
6740 (d10v_register_raw_size): Delete function.
6741 (d10v_register_type): Use a0_regnum.
6742 (d10v_print_registers_info): Use a0_regnum.
6743 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6744 (d10v_gdbarch_init): Do not set register_byte or
6745 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6746 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6748 (trace_command): Use XCALLOC.
6749 (print_insn): Delete reference to tm_print_insn.
6750 (saved_regs_unwinder): Use store_unsigned_integer instead of
6752 * frame.h (FRAME_OBSTACK_CALLOC): Define
6754 2003-04-25 David Carlton <carlton@bactrian.org>
6756 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6758 2003-04-24 Adam Fedor <fedor@gnu.org>
6760 * objc-lang.c: Include "valprint.h"
6761 * Makefile.in (objc-lang.o): Update dependencies.
6763 2003-04-24 Adam Fedor <fedor@gnu.org>
6765 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6766 architecture dependant compilation and mark as unimplemented
6767 (until they get put in the gdbarch vector).
6769 2003-04-23 David Carlton <carlton@bactrian.org>
6771 * cp-support.c (cp_find_first_component): Accept 'operator' in
6774 2003-04-23 Andrew Cagney <cagney@redhat.com>
6776 * infcall.c (call_function_by_hand): Eliminate redundant
6777 indentation. Move "saved_async" and "old_cleanups" to where they
6780 2003-04-23 Andrew Cagney <cagney@redhat.com>
6782 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6783 and "buffer". Move the "name" code to where it is needed.
6785 2003-04-23 Andrew Cagney <cagney@redhat.com>
6787 * infcall.c (call_function_by_hand): Move variables "start_sp",
6788 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6789 code to ON_STACK switch branch.
6791 2003-04-23 Andrew Cagney <cagney@redhat.com>
6793 * infcall.c (call_function_by_hand): Make declaration of "i",
6794 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6797 2003-04-23 Andrew Cagney <cagney@redhat.com>
6799 * infcall.c (call_function_by_hand): Delete variable
6800 "n_method_args". Localize "param_type"'s declaration to the loop
6801 that it is used. Reinstate code assigning to said variable -
6802 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6803 Rationalize code using "param_type".
6805 2003-04-22 Andrew Cagney <cagney@redhat.com>
6807 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6808 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6809 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6810 to DEPRECATED_PUSH_RETURN_ADDRESS.
6812 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6814 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6815 on the DWARF2 register number prior to fetching a register.
6817 2003-04-22 J. Brobecker <brobecker@gnat.com>
6819 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6820 Update all the tests using SOFT_FLOAT considering the fact that
6821 this macro was always set to 0.
6822 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6823 considering the fact that this macro was always set to 0.
6824 * hppa-tdep.h (hppa_store_return_value): Likewise.
6825 (hppa_extract_return_value): Likewise.
6827 2003-04-22 J. Brobecker <brobecker@gnat.com>
6829 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6830 the hppa-pro target only.
6832 2003-04-21 J. Brobecker <brobecker@gnat.com>
6834 Ongoing multi-arch conversion effort for HP/UX:
6835 * config/pa/tm-hppa.h: Move all macro that are no longer
6836 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6837 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6839 2003-04-21 J. Brobecker <brobecker@gnat.com>
6841 * config/pa/tm-hppa.h: Obsolete a section that was only used
6844 2003-04-21 J. Brobecker <brobecker@gnat.com>
6846 Ongoing multi-arch conversion for HP/UX.
6847 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6848 if already defined (allows hppa64 to stay non-multiarched for now).
6849 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6851 2003-04-21 Andrew Cagney <cagney@redhat.com>
6853 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6855 2003-04-21 Andrew Cagney <cagney@redhat.com>
6857 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6858 "i386_num_mmx_regs".
6860 2003-04-21 Andrew Cagney <cagney@redhat.com>
6862 * infcall.c: New file.
6863 * infcall.h: New file.
6864 * valarith.c: Include "infcall.h".
6865 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6866 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6867 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6868 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6869 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6870 (SFILES): Add "infcall.c"
6871 (COMMON_OBS): Add "infcall.o".
6872 (infcall.o): Specify dependencies.
6873 * value.h (call_function_by_hand): Delete declaration.
6874 * inferior.h (run_stack_dummy): Delete declaration.
6875 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6876 (run_stack_dummy): Move to "infcall.c", merged into
6877 call_function_by_hand.
6878 * valops.c (call_function_by_hand): Moved to "infcall.c".
6879 (find_function_addr, value_arg_coerce): Ditto.
6880 (unwindonsignal_p, coerce_float_to_double): Ditto.
6881 (_initialize_valops): Move "set/show coerce-float-to-double", and
6882 "set/show unwindonsignal" commands to "infcall.c".
6883 * v850-tdep.c, target.h: Update comments.
6884 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6885 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6886 (sh64_init_extra_frame_info): Update comments.
6887 * mn10300-tdep.c: Update comments.
6888 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6889 * config/sparc/tm-sparc.h: Update comments.
6890 * breakpoint.h: Update comments.
6891 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6892 * arm-tdep.c: Update comment.
6894 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6896 * i386-tdep.c (i386_num_register_names): New variable.
6897 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6898 (MM0_REGNUM): Remove redundant parentheses in define.
6899 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6900 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6901 i386_mxcsr_regnum_p): Remove redundant parentheses.
6902 (i386_register_name): Use i386_num_register_names.
6904 * i386-tdep.c (i386_extract_return_value,
6905 i386_store_return_value): Correct check for availability of
6906 floating-point registers.
6908 * i386-tdep.c (i386_frame_num_args): Remove function.
6909 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6911 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6912 mmx_regnum_to_fp_regnum. Adjust all callers.
6914 * i386-tdep.c (i386_get_longjmp_target): Use
6915 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6916 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6919 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6921 * core-regset.c: Update comments to reflect reality. Re-order
6923 (fetch_core_registers): Use switch instead of if. Remove
6924 redundant prototype.
6926 2003-04-18 Jim Blandy <jimb@redhat.com>
6928 * s390-tdep.c (s390_frame_align): New function.
6929 (s390_gdbarch_init): Register it with the gdbarch object.
6931 2003-04-17 Richard Henderson <rth@redhat.com>
6933 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6935 2003-04-17 Michael Snyder <msnyder@redhat.com>
6936 Karen Bennet <bennet@redhat.com>
6938 Committed by Elena Zannoni <ezannoni@redhat.com>
6939 * gdb_gcore.sh: New script to create a core dump of a process.
6941 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6943 * values.c (value_being_returned): Don't fetch the return
6944 value if the return type is void.
6946 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6948 * thread-db.c: Reindented.
6950 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6952 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6953 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6980 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6982 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6983 the size of ``long double'' to 16, instead of 8.
6985 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6987 * i386-linux-nat.c: Add some whitespace to make things more
6989 (fetch_register, store_register, fetch_inferior_registers,
6990 store_inferior_registers): Get rid of assignment in if-statement.
6991 (store_register): Fix typo in error message.
6993 2003-04-16 Andrew Cagney <cagney@redhat.com>
6995 * utils.c (xmmalloc): Always allocate something, matches
6996 libiberty/xmalloc's semantics.
6997 (xmrealloc, xmcalloc): Ditto.
6999 2003-04-16 Andrew Cagney <cagney@redhat.com>
7001 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7003 (get_frame_type): Initialize unwind and type when needed.
7004 (get_frame_id, frame_register_unwind): Ditto.
7006 2003-04-16 Andrew Cagney <cagney@redhat.com>
7008 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7010 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7011 * sparcl-stub.c: Obsolete file.
7012 * config/sparc/tm-sparclet.h: Obsolete file.
7013 * sparclet-stub.c: Obsolete file.
7014 * sparclet-rom.c: Obsolete file.
7015 * sparcl-tdep.c: Obsolete file.
7016 * config/sparc/tm-sparclite.h: Obsolete file.
7017 * config/sparc/sparclite.mt: Obsolete file.
7018 * config/sparc/sparclet.mt: Obsolete file.
7019 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7020 sparc86x-*-* obsolete.
7022 2003-04-15 David Carlton <carlton@math.stanford.edu>
7024 * Makefile.in (SFILES): Add cp-namespace.c.
7025 (COMMON_OBS): Add cp-namespace.o.
7026 (block.o): Depend on gdb_obstack_h and cp_support_h.
7027 (buildsym.o): Depend on cp_support_h.
7028 (cp-namespace.o): New.
7029 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7030 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7031 (dwarf2read.o): Depend on cp_support_h.
7032 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7033 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7034 processing_current_namespace.
7035 (read_namespace): Update processing_current_namespace; check for
7036 anonymous namespaces.
7037 (dwarf2_name): New function.
7038 (dwarf2_extension): Ditto.
7039 * cp-support.h: Update copyright, contributors.
7040 Add inclusion guards.
7041 Add opaque declaration for structs obstack, block, symbol.
7042 (struct using_direct): New struct.
7043 Add declarations for cp_find_first_component,
7044 cp_entire_prefix_len, processing_has_namespace_info,
7045 processing_current_namespace, cp_is_anonymous,
7046 cp_add_using_directive, cp_initialize_namespace,
7047 cp_finalize_namespace, cp_set_block_scope,
7048 cp_scan_for_anonymous_namespaces.
7049 * cp-namespace.c: New file.
7050 * cp-support.c: Update copyright.
7051 Include ctype.h, gdb_assert.h, gdbcmd.h.
7052 New variable maint_cplus_cmd_list.
7053 (cp_find_first_component): New function.
7054 (cp_entire_prefix_len, maint_cplus_command)
7055 (first_component_command, _initialize_cp_support): Ditto.
7056 * buildsym.c: Include cp-support.h.
7057 New variable using_list.
7058 (add_symbol_to_list): Check for anonymous namespaces.
7059 (finish_block): Set block's scope.
7060 (start_symtab): Initialize C++ namespace support.
7061 (end_symtab): Finalize C++ namespace support.
7062 * block.h: Add opaque declarations for structs
7063 block_namespace_info, using_direct, and obstack.
7064 Add declarations for block_set_scope and block_set_using.
7065 (struct block): Add 'language_specific' member.
7066 (BLOCK_NAMESPACE): New macro.
7067 * block.c: Include gdb_obstack.h and cp-support.h.
7068 (struct block_namespace_info): New struct.
7069 (block_set_scope): New function.
7070 (block_set_using, block_initialize_namespace): Ditto.
7072 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7074 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7075 (locate_base): Return early if there aren't any link map offsets.
7076 (svr4_solib_create_inferior_hook): Warn if shared library support
7079 2003-04-14 David Carlton <carlton@math.stanford.edu>
7081 * symtab.c (symbol_set_names): Add prefix when storing Java names
7082 in hash table. Fix for PR java/1039.
7084 2003-04-14 David Carlton <carlton@math.stanford.edu>
7086 * symtab.c (symbol_set_names): Rename 'name' arg to
7087 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7088 * symtab.h: Change 'name' argument in declaration of
7089 symbol_set_names to 'linkage_name'.
7090 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7092 2003-04-14 Andrew Cagney <cagney@redhat.com>
7094 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7095 return the fully sign-extended register value.
7096 (get_frame_pointer): Ditto.
7097 (mips_pop_frame): Initialize "proc_desc" after checking for a
7100 2003-04-14 Andrew Cagney <cagney@redhat.com>
7102 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7103 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7104 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7105 (mips_push_register): Delete function.
7106 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7109 2003-04-14 Jim Blandy <jimb@redhat.com>
7111 * symmisc.c: #include "gdb_regex.h".
7112 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7114 * maint.c (maintenance_list_command): New function.
7115 (_initialize_maint_cmds): Register the above as commands.
7116 * symtab.h (maintenance_list_symtabs,
7117 maintenance_list_psymtabs): New declarations.
7118 * cli/cli-cmds.c (maintenancelistlist): New variable.
7119 (init_cmd_lists): Initialize it.
7120 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7121 * gdbcmd.h (maintenancelistlist): New declaration.
7122 * Makefile.in (symmisc.o): Update dependencies.
7124 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7126 * s390-nat.c: Include asm/types.h for addr_t.
7128 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7130 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7131 actually incoming type.
7133 2003-04-13 Andrew Cagney <cagney@redhat.com>
7135 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7136 get_next_frame and get_frame_saved_regs.
7138 2003-04-13 Andrew Cagney <cagney@redhat.com>
7140 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7141 of gdbarch_num_regs.
7143 2003-04-13 Andrew Cagney <cagney@redhat.com>
7145 * frame.h: Mention what replaced what in "struct frame_info".
7146 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7147 deprecated_update_frame_base_hack and
7148 deprecated_update_frame_pc_hack.
7149 * hppa-tdep.c: Ditto.
7151 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7153 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7154 to read_reg and update its comment. Remove regnum member.
7155 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7156 Don't call read_reg when setting in_reg. Call read_reg to get
7157 the frame base if it's in a register. Return the register number
7158 on the stack instead of in the context. Remove extra arguments
7160 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7161 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7162 the register number on the expression stack.
7163 (needs_frame_read_reg): Remove extra arguments.
7165 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7167 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7169 (execute_stack_op): All callers updated.
7170 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7171 * dwarf2loc.c (find_location_expression): New function.
7172 (dwarf_expr_frame_base): Call it.
7173 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7174 (dwarf2_tracepoint_var_ref): New function, broken out from
7175 locexpr_tracepoint_var_ref.
7176 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7178 (loclist_read_variable, loclist_read_needs_frame): New functions.
7179 (loclist_describe_location, loclist_tracepoint_var_ref): New
7181 (dwarf2_loclist_funcs): New struct location_funcs.
7182 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7183 (struct dwarf2_locexpr_baton): Add comments.
7184 (dwarf2_loclist_funcs): New extern.
7185 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7186 base_address and base_known.
7187 (dwarf_loc_buffer): New variable.
7188 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7189 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7190 (dwarf2_has_info): Initialize dwarf_loc_offset.
7191 (dwarf2_build_psymtabs): Read in .debug_loc.
7192 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7194 (psymtab_to_symtab_1): Likewise. Move base address calculation
7196 (dwarf2_get_pc_bounds): ... here. Use the base address from
7198 (dwarf2_symbol_mark_computed): Handle location lists.
7200 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7202 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7203 if the linkage name demangled successfully.
7205 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7207 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7208 disassmbly_flavour): Removed.
7210 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7212 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7214 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7216 2003-04-12 Andrew Cagney <cagney@redhat.com>
7218 * frame.h (struct frame_info): Move definition from here ...
7219 * frame.c (struct frame_info): ... to here.
7221 2003-04-12 Andrew Cagney <cagney@redhat.com>
7223 * gdbthread.h (save_infrun_state): Delete parameter
7225 (struct thread_info): Delete field "prev_func_start".
7226 (load_infrun_state): Ditto.
7227 * thread.c (load_infrun_state, save_infrun_state): Update.
7228 * infrun.c (prev_func_start): Delete variable.
7229 (context_switch, init_wait_for_inferior): Update.
7230 (stop_stepping, keep_going): Update.
7232 2003-04-12 Andrew Cagney <cagney@redhat.com>
7234 * gdbarch.sh: Add missing opaque declarations.
7235 * gdbarch.h: Regnerate.
7236 * symtab.h: Add missing opaque declarations.
7237 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7238 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7239 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7240 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7241 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7242 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7243 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7244 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7245 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7246 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7247 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7248 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7249 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7251 2003-04-11 Andrew Cagney <cagney@redhat.com>
7253 * frame.c (get_frame_id): Return this frame's "id".
7254 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7256 (legacy_saved_regs_this_id): Replace function body with
7258 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7259 FRAME_OBSTACK_ZALLOC.
7260 (create_new_frame): Mark the frame ID as valid.
7262 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7264 * Makefile.in (libbfd_h): Added missing setting.
7265 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7266 according to the selected ABI.
7268 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7270 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7272 2003-04-11 Andrew Cagney <cagney@redhat.com>
7274 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7275 SAVED_PC_AFTER_CALL.
7276 * gdbarch.h, gdbarch.c: Regenerate.
7277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7278 * x86-64-tdep.c (x86_64_init_abi): Update.
7279 * vax-tdep.c (vax_gdbarch_init): Update.
7280 * v850-tdep.c (v850_gdbarch_init): Update.
7281 * sparc-tdep.c (sparc_gdbarch_init): Update.
7282 * sh-tdep.c (sh_gdbarch_init): Update.
7283 * s390-tdep.c (s390_gdbarch_init): Update.
7284 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7285 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7286 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7287 * mips-tdep.c (mips_gdbarch_init): Update.
7288 * mcore-tdep.c (mcore_gdbarch_init): Update.
7289 * m68k-tdep.c (m68k_gdbarch_init): Update.
7290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7291 * ia64-tdep.c (ia64_gdbarch_init): Update.
7292 (ia64_saved_pc_after_call): Update declaration.
7293 * i386ly-tdep.c (i386lynx_init_abi): Update.
7294 * i386-tdep.c (i386_gdbarch_init): Update.
7295 * hppa-tdep.c (hppa_gdbarch_init): Update.
7296 * h8300-tdep.c (h8300_gdbarch_init): Update.
7297 * frv-tdep.c (frv_gdbarch_init): Update.
7298 * cris-tdep.c (cris_gdbarch_init): Update.
7299 * avr-tdep.c (avr_gdbarch_init): Update.
7300 * arm-tdep.c (arm_gdbarch_init): Update.
7301 * alpha-tdep.c (alpha_gdbarch_init): Update.
7302 * ns32knbsd-nat.c (frame_num_args): Update.
7303 * ns32k-tdep.c (umax_frame_num_args): Update.
7304 * mips-tdep.c (mips_init_frame_pc_first): Update.
7305 * infrun.c (step_over_function): Update.
7306 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7307 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7308 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7309 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7310 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7311 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7312 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7313 * arch-utils.c (init_frame_pc_default): Update.
7314 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7315 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7318 2003-04-11 Andrew Cagney <cagney@redhat.com>
7320 * i387-tdep.c: Update copyright.
7321 (i387_to_double): Delete function.
7322 (double_to_i387): Delete function.
7324 2003-04-10 Andrew Cagney <cagney@redhat.com>
7326 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7327 frame's function's address. Simplify.
7328 (d10v_frame_unwind_cache): Check that the frame's function is
7331 2003-04-10 Jim Blandy <jimb@redhat.com>
7333 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7334 call to set_gdbarch_deprecated_push_arguments.
7336 2003-04-10 Andrew Cagney <cagney@redhat.com>
7338 * frame.c (fprint_frame_id): New function.
7339 (fprint_frame_type, fprint_frame): New function.
7340 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7341 (create_sentinel_frame, get_frame_id): Ditto.
7342 (frame_id_p, frame_id_eq): Ditto.
7343 (frame_id_inner, create_new_frame): Ditto.
7344 (legacy_get_prev_frame, get_prev_frame): Ditto.
7345 (deprecated_update_frame_pc_hack): Ditto.
7346 (frame_register_unwind): Ditto.
7347 (deprecated_update_frame_base_hack): Ditto.
7349 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7351 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7352 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7353 frame_chain function.
7354 * Makefile.in: Add dependencies due to above change.
7356 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7358 * blockframe.c (legacy_frame_chain_valid): Move call to
7359 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7362 2003-04-09 Andrew Cagney <cagney@redhat.com>
7364 * frame.h (struct frame_id): Replace "pc" and "base" with
7365 "stack_addr" and "code_addr". Update comments.
7366 (frame_id_build): Update parameter names and comment.
7367 (struct frame_info): Replace "id_p" and "id" with "this_id".
7368 * dummy-frame.c (dummy_frame_this_id): Update.
7369 * breakpoint.c (print_one_breakpoint): Update.
7370 * frame.c (get_frame_id): Update.
7371 (get_frame_base, frame_id_build): Update.
7372 (create_sentinel_frame, legacy_get_prev_frame): Update.
7373 (deprecated_update_frame_base_hack): Update.
7374 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7375 (frame_id_inner): Ditto.
7377 2003-04-09 Andrew Cagney <cagney@redhat.com>
7379 * defs.h (gdb_print_host_address): Make "addr" parameter a
7381 * utils.c (gdb_print_host_address): Update.
7383 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7385 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7386 register number for R0 is 0.
7388 2003-04-09 J. Brobecker <brobecker@gnat.com>
7390 * frame.h (struct gdbarch): Add opaque structure definition
7391 to avoid a compilation warning on LynxOS 4.0.
7393 2003-04-09 Andrew Cagney <cagney@redhat.com>
7395 * frame.h (struct frame_info): Delete field "pc". Replace
7396 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7398 * frame.c (frame_pc_unwind): Update.
7399 (create_sentinel_frame): Do not set "pc".
7400 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7401 (get_frame_pc): Call frame_pc_unwind.
7402 (deprecated_update_frame_pc_hack): Update.
7403 (create_new_frame): Use "pc" not "->pc".
7405 2003-04-09 Andrew Cagney <cagney@redhat.com>
7407 * frame.c (get_frame_id): Eliminate code updating "frame".
7408 (legacy_get_prev_frame): Ditto.
7409 (get_frame_base): Return id.base directly.
7410 (deprecated_update_frame_base_hack): Update "id.base".
7411 * frame.h (struct frame_info): Delete field "frame".
7413 2003-04-09 Andrew Cagney <cagney@redhat.com>
7415 * NEWS: Mention that the "Sequent family" is obsolete.
7416 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7417 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7418 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7419 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7420 * config/i386/tm-ptx4.h: Obsolete file.
7421 * config/i386/tm-ptx.h: Obsolete file.
7422 * symm-tdep.c: Obsolete file.
7423 * config/i386/symmetry.mt: Obsolete file.
7424 * config/i386/tm-symmetry.h: Obsolete file.
7425 * symm-nat.c: Obsolete file.
7426 * config/i386/nm-symmetry.h: Obsolete file.
7427 * config/i386/xm-symmetry.h: Obsolete file.
7428 * config/i386/symmetry.mh: Obsolete file.
7429 * config/i386/nm-ptx4.h: Obsolete file.
7430 * config/i386/ptx4.mh: Obsolete file.
7431 * config/i386/ptx.mt: Obsolete file.
7432 * config/i386/ptx.mh: Obsolete file.
7433 * config/i386/xm-ptx4.h: Obsolete file.
7434 * config/i386/xm-ptx.h: Obsolete file.
7436 2003-04-09 Andrew Cagney <cagney@redhat.com>
7438 Obsolete mips*-*-mach3*.
7439 * NEWS: Mention that mips*-*-mach3* is obsolete.
7440 * m3-nat.c: Obsolete file.
7441 * config/nm-m3.h: Obsolete file.
7442 * config/mips/tm-mipsm3.h: Obsolete file.
7443 * config/mips/mipsm3.mt: Obsolete file.
7444 * config/mips/mipsm3.mh: Obsolete file.
7445 * config/mips/xm-mipsm3.h: Obsolete file.
7446 * mipsm3-nat.c: Obsolete file.
7447 * configure.host: Obsolete mips-dec-mach3*.
7448 * configure.tgt: Obsolete mips*-*-mach3*.
7450 2003-04-09 Andrew Cagney <cagney@redhat.com>
7452 * doublest.h: Update copyright.
7453 (deprecated_store_floating, deprecated_extract_floating): Rename
7454 store_floating and extract_floating. Update comments.
7455 * doublest.c: Update copyright.
7456 (extract_floating_by_length): Replace extract_floating.
7457 (store_floating_by_length): Replace store_floating.
7458 (deprecated_extract_floating): New function.
7459 (deprecated_store_floating): New function.
7460 (extract_typed_floating): Call extract_floating_by_length.
7461 (store_typed_floating): Call store_floating_by_length.
7462 * x86-64-tdep.c (x86_64_store_return_value): Update.
7463 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7464 (sh64_extract_return_value): Update.
7465 (sh_sh4_register_convert_to_virtual): Update.
7466 (sh_sh64_register_convert_to_virtual): Update.
7467 (sh_sh4_register_convert_to_raw): Update.
7468 (sh_sh64_register_convert_to_raw): Update.
7469 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7470 (rs6000_register_convert_to_raw): Update.
7471 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7472 (ia64_register_convert_to_raw): Update.
7473 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7474 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7475 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7476 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7477 (alpha_register_convert_to_raw): Update.
7479 2003-04-08 Andrew Cagney <cagney@redhat.com>
7481 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7482 * gdbarch.h, gdbarch.c: Re-generate.
7483 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7484 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7485 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7486 conditionally, use frame_pc_unwind as an alternative. Add
7488 * arch-utils.c (init_frame_pc_default): Only call
7489 SAVED_PC_AFTER_CALL when available.
7491 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7493 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7494 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7495 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7496 (start_remote): Ditto.
7497 (handle_inferior_event): Ditto.
7498 (save_inferior_status): Ditto.
7499 (restore_inferior_status): Ditto.
7500 * infcmd.c (attach_command): Ditto.
7501 * fork-child.c (startup_inferior): Ditto.
7502 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7503 * alpha-tdep.c (heuristic_proc_start): Ditto.
7504 * mips-tdep.c (heuristic_proc_start): Ditto.
7505 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7506 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7507 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7508 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7509 * remote-vx.c (vx_create_inferior): Ditto.
7511 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7513 * infrun.c (stop_soon_quietly): Make it an enum, to better
7514 override the default behavior of handle_inferior_event.
7515 (clear_proceed_status): Update uses of stop_soon_quietly to
7516 reflect that it is now an enum.
7517 (start_remote): Ditto.
7518 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7519 is set to handle the new GNU/Linux kernel behavior for
7520 attach/sigstop. Update uses of stop_soon_quietly.
7521 * inferior.h (enum stop_kind): New enum.
7522 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7523 Reset normal handle_inferior_event behavior, afterwards.
7524 * fork-child.c (startup_inferior): Update.
7525 * alpha-tdep.c (heuristic_proc_start): Update.
7526 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7527 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7528 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7529 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7530 * remote-vx.c (vx_create_inferior): Update.
7531 * mips-tdep.c (heuristic_proc_start): Update.
7533 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7535 * disasm.c (dump_insns): Move variables inside loop, or they will
7536 be freed more than once, causing wild memory corruptions.
7537 (gdb_disassembly): Look for the substring "-thread",
7538 instead of "-threads" in the target name, to make sure to find
7539 the 'multi-thread' target. Also, make sure we do the right thing
7540 with the "core" target.
7542 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7544 * mips-tdep.c (mips_print_fp_register): New function, created from
7545 do_fp_register_row(). Registers are now (also) printed as hex.
7546 Only one register is printed per row.
7547 (mips_print_register, do_fp_register_row): Print floating point
7548 registers with mips_print_fp_register().
7550 2003-04-06 Andrew Cagney <cagney@redhat.com>
7552 * valprint.h (inspect_it): Add extern declaration.
7553 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7554 (selectors_info, classes_info): Ditto.
7555 (find_objc_msgcall): Fix indentation.
7556 (objc_printstr): Delete extern declarations.
7558 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7560 2003-04-06 Andrew Cagney <cagney@redhat.com>
7562 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7564 * frame.c (legacy_saved_regs_this_id): Update.
7565 (legacy_get_prev_frame): Update.
7566 * xstormy16-tdep.c: Update comment.
7567 * sparc-tdep.c (sparc_frame_chain): Update comment.
7568 * blockframe.c (legacy_frame_chain_valid): Update.
7570 2003-04-06 Andrew Cagney <cagney@redhat.com>
7572 * valprint.c (val_print_type_code_int): Delete #ifdef
7573 PRINT_TYPELESS_INTEGER code.
7575 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7576 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7577 multi-arch definition.
7578 * gdbarch.h: Re-generate.
7580 2003-04-05 Andrew Cagney <cagney@redhat.com>
7582 Eliminate FRAME_FIND_SAVED_REGS.
7583 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7584 Change FSR parameter to a pointer.
7585 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7586 Assume FSR parameter is a pointer.
7587 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7589 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7590 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7591 saved_regs a pointer.
7592 (hppa_frame_saved_pc): Ditto.
7593 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7594 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7596 (restore_pc_queue): Make fsr a pointer.
7597 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7598 (hppa_frame_chain): Make saved_regs a pointer, call
7599 hppa_frame_init_saved_regs.
7600 * sparc-tdep.c: Include "gdb_assert.h".
7601 (sparc_frame_find_saved_regs): Replace internal_error with
7603 * remote-vxsparc.c (vx_read_register): Delete reference to
7604 FRAME_FIND_SAVED_REGS.
7605 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7606 * gdbarch.h: Regenerate.
7607 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7608 (deprecated_get_frame_saved_regs): Delete declaration.
7609 (struct frame_saved_regs): Delete definition.
7610 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7611 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7612 (hppa_frame_find_saved_regs): Delete declaration.
7613 (FRAME_FIND_SAVED_REGS): Delete macro.
7614 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7615 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7616 FRAME_FIND_SAVED_REGS in comment.
7618 2003-04-05 Andrew Cagney <cagney@redhat.com>
7620 * frame.c (frame_func_unwind, get_frame_func): New functions.
7621 * frame.h (get_frame_func, frame_func_unwind): Declare.
7622 (struct frame_info): Add field "prev_func" for caching the
7623 previous frame's function address.
7624 * arm-tdep.c (arm_frameless_function_invocation): Combine
7625 get_pc_function_start and get_frame_pc into get_frame_func.
7626 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7627 (sh64_nofp_frame_init_saved_regs): Ditto.
7628 * s390-tdep.c (s390_function_start): Ditto.
7629 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7630 (rs6000_frameless_function_invocation): Ditto.
7631 (rs6000_frame_saved_pc): Ditto.
7632 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7633 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7634 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7635 (i386_frame_init_saved_regs): Ditto.
7636 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7637 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7638 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7639 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7640 * blockframe.c (frameless_look_for_prologue): Ditto.
7642 2003-04-05 Andrew Cagney <cagney@redhat.com>
7644 * frame.c (legacy_get_prev_frame): Link prev to next at the
7645 function start. Update comments.
7647 2003-04-05 Andrew Cagney <cagney@redhat.com>
7649 * frame.c (get_frame_id): Update comment.
7650 (legacy_get_prev_frame): Update comment.
7651 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7652 * gdbarch.h: Regenerate.
7653 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7654 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7656 2003-04-05 Andrew Cagney <cagney@redhat.com>
7658 * stack.c (print_frame_info): Use get_frame_pc.
7660 2003-04-04 Andrew Cagney <cagney@redhat.com>
7662 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7663 the frame's type from the unwinder.
7664 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7665 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7666 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7667 (get_frame_base_address): Use get_frame_type.
7668 (get_frame_locals_address, get_frame_args_address): Ditto.
7669 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7670 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7671 (struct frame_info): Add comment explaining why the frame contains
7673 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7674 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7675 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7677 * frame-unwind.h: Include "frame.h".
7678 (struct frame_unwind): Add "type" field.
7679 * Makefile.in (frame_unwind_h): Add $(frame_h).
7681 2003-04-04 Andrew Cagney <cagney@redhat.com>
7683 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7684 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7685 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7687 (d10v_unwind_dummy_id): Use frame_id_build.
7688 * frame.c (find_frame_sal): Use get_frame_pc.
7689 (create_new_frame): Use deprecated_update_frame_pc_hack and
7690 deprecated_update_frame_base_hack.
7691 (create_sentinel_frame): Add comment about ->pc going away.
7692 (get_prev_frame): Add comment about ->pc going away.
7693 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7694 frame_id_build, deprecated_update_frame_pc_hack and
7695 deprecated_update_frame_base_hack.
7696 (select_frame): Use get_frame_pc.
7697 (legacy_saved_regs_this_id): Use frame_id_build.
7699 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7701 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7702 signed integer case.
7703 (classify_argument): Handle enumerations and references.
7705 2003-04-04 Andrew Cagney <cagney@redhat.com>
7707 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7710 2003-04-01 Adam Fedor <fedor@gnu.org>
7712 * gdb/objc-lang.c (selectors_info): Replace calls to
7713 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7714 SYMBOL_NATURAL_NAME.
7715 (classes_info, find_methods): Likewise.
7717 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7719 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7720 ``mach'' to the value determined by bfd_default_set_arch_mach().
7722 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7724 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7725 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7726 (mi-cmd-file.o): Update dependencies.
7728 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7730 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7731 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7733 2003-04-01 Adam Fedor <fedor@gnu.org>
7735 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7736 * language.h (struct language_defn): Add la_demangle.
7737 (language_demangle): Declare.
7738 * language.c (language_demangle): New function.
7739 (unk_lang_demangle): Likewise.
7740 (unknown_language_defn, auto_language_defn, local_language_defn):
7741 Add ukn_lang_demangle.
7742 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7743 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7744 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7745 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7746 * jv-lang.c (java_demangle): New function
7747 (java_language_defn): Use it for la_demangle element.
7748 * objc-lang.c (objc_demangle): Add options argument
7749 (objc_language_defn): Use objc_demangle for la_demangle element.
7750 * maint.c (maintenance_demangle): Replace switch with
7751 call to language_demangle.
7752 * utils.c (fprintf_symbol_filtered): Likewise.
7754 2003-04-01 Andrew Cagney <cagney@redhat.com>
7756 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7757 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7758 PRINT_TYPELESS_INTEGER.
7759 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7760 PUSH_RETURN_ADDRESS.
7762 2003-04-01 Andrew Cagney <cagney@redhat.com>
7764 * Makefile.in (d10v-tdep.o): Update dependencies.
7765 * d10v-tdep.c: Include "frame-base.h".
7766 (d10v_frame_unwind): Make constant.
7767 (d10v_frame_base_address): New function.
7768 (d10v_frame_base): New variable.
7769 (d10v_gdbarch_init): Set frame_base default.
7770 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7772 (d10v_frame_unwind_cache): Set and use "prev_sp".
7773 (d10v_frame_this_id): Use the previous frame's inner most stack
7774 address and this frame's func address for the frame ID. Use
7775 frame_id_build. Don't analyze beyond the current instruction.
7777 2003-04-01 Andrew Cagney <cagney@redhat.com>
7779 * frame.h (get_frame_locals_address, get_frame_args_address):
7780 Refer to the base address, instead of the address of the first
7783 2003-04-01 Andrew Cagney <cagney@redhat.com>
7785 Add frame debug info addresses:
7786 * frame-base.c: New file.
7787 * frame-base.h: New file.
7788 * frame.h (struct frame_base): Add opaque declaration.
7789 (get_frame_base): Update comment.
7790 (get_frame_base_address): Declare.
7791 (get_frame_locals_address): Declare.
7792 (get_frame_args_address): Declare.
7793 (struct frame_info): Add "base" and "base_cache". Update
7794 comments on the unwinder.
7795 * frame.c: Include "frame-base.h".
7796 (get_frame_locals_address): New function.
7797 (get_frame_base_address): New function.
7798 (get_frame_args_address): New function.
7799 * findvar.c (read_var_value): Use get_frame_locals_address and
7800 get_frame_args_address.
7801 * stack.c (frame_info): Use get_frame_locals_address and
7802 get_frame_args_address.
7803 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7804 moved to "frame-base.c".
7805 * printcmd.c (print_frame_nameless_args): Ditto.
7806 * symtab.h (address_class): Update comments.
7807 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7808 get_frame_base_address.
7809 * dwarf2expr.c (execute_stack_op): Ditto.
7810 * Makefile.in (frame_base_h): Define.
7811 (frame.o): Update dependencies.
7812 (frame-base.o): Add dependencies.
7813 (SFILES): Add frame-base.c.
7814 (COMMON_OBS): Add frame-base.o.
7816 2003-04-01 Andrew Cagney <cagney@redhat.com>
7818 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7819 CALL_DUMMY_LENGTH): Ditto.
7820 * gdbarch.c: Re-generate.
7821 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7822 (CALL_DUMMY_LENGTH): Delete macro.
7823 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7824 * arm-tdep.c (arm_gdbarch_init): Ditto.
7825 * avr-tdep.c (avr_gdbarch_init): Ditto.
7826 * cris-tdep.c (cris_gdbarch_init): Ditto.
7827 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7828 * frv-tdep.c (frv_gdbarch_init): Ditto.
7829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7830 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7831 * i386-tdep.c (i386_gdbarch_init): Ditto.
7832 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7834 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7835 * mips-tdep.c (mips_gdbarch_init): Ditto.
7836 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7837 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7838 * s390-tdep.c (s390_gdbarch_init): Ditto.
7839 * sh-tdep.c (sh_gdbarch_init): Ditto.
7840 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7841 * v850-tdep.c (v850_gdbarch_init): Ditto.
7842 * vax-tdep.c (vax_gdbarch_init): Ditto.
7843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7845 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7847 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7849 2003-04-01 Andrew Cagney <cagney@redhat.com>
7851 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7852 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7853 * gdbarch.h, gdbarch.c: Re-generate.
7854 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7855 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7856 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7857 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7858 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7859 * infcmd.c (run_stack_dummy): Simplify assuming
7860 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7861 * infrun.c (handle_inferior_event): Ditto.
7862 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7863 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7864 * arm-tdep.c (arm_gdbarch_init): Ditto.
7865 * avr-tdep.c (avr_gdbarch_init): Ditto.
7866 * cris-tdep.c (cris_gdbarch_init): Ditto.
7867 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7868 * frv-tdep.c (frv_gdbarch_init): Ditto.
7869 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7870 * i386-tdep.c (i386_gdbarch_init): Ditto.
7871 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7873 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7874 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7875 * mips-tdep.c (mips_gdbarch_init): Ditto.
7876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7877 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7878 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7879 * s390-tdep.c (s390_gdbarch_init): Ditto.
7880 * sh-tdep.c (sh_gdbarch_init): Ditto.
7881 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7882 * v850-tdep.c (v850_gdbarch_init): Ditto.
7883 * vax-tdep.c (vax_gdbarch_init): Ditto.
7884 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7886 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7888 * symfile.c (symfile_relocate_debug_section): Update call to
7889 bfd_simple_get_relocated_section_contents.
7891 2003-03-31 Andrew Cagney <cagney@redhat.com>
7893 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7894 * gdbarch.h, gdbarch.c: Regenerate.
7895 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7896 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7898 * frame.h (generic_fix_call_dummy): Delete declaration.
7899 * dummy-frame.h: Update comment.
7900 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7903 * sh-tdep.c (sh_gdbarch_init): Ditto.
7904 * s390-tdep.c (s390_gdbarch_init): Ditto.
7905 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7906 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7908 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7909 * i386-tdep.c (i386_gdbarch_init): Ditto.
7910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7911 * frv-tdep.c (frv_gdbarch_init): Ditto.
7912 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7913 * cris-tdep.c (cris_gdbarch_init): Ditto.
7914 * avr-tdep.c (avr_gdbarch_init): Ditto.
7915 * arm-tdep.c (arm_gdbarch_init): Ditto.
7917 2003-03-31 J. Brobecker <brobecker@gnat.com>
7919 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7920 (INIT_FRAME_AP): Likewise.
7921 (EXTRA_FRAME_INFO): Likewise.
7923 2003-03-31 Andrew Cagney <cagney@redhat.com>
7925 * gdbarch.sh: Include "symfile.h".
7926 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7927 * gdbarch.h, gdbarch.c: Re-generate.
7928 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7929 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7930 call_dummy_address, the default is at entry_point_address.
7931 * v850-tdep.c (v850_gdbarch_init): Ditto.
7932 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7933 * sh-tdep.c (sh_gdbarch_init): Ditto.
7934 * s390-tdep.c (s390_gdbarch_init): Ditto.
7935 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7937 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7938 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7939 * i386-tdep.c (i386_gdbarch_init): Ditto.
7940 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7941 * frv-tdep.c (frv_gdbarch_init): Ditto.
7942 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7943 * cris-tdep.c (cris_gdbarch_init): Ditto.
7944 * arm-tdep.c (arm_gdbarch_init): Ditto.
7946 2003-03-31 Andrew Cagney <cagney@redhat.com>
7948 * gdbarch.sh (CALL_DUMMY_P): Delete.
7949 * gdbarch.h, gdbarch.c: Re-generate.
7950 * inferior.h (CALL_DUMMY_P): Delete macro.
7951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7952 * vax-tdep.c (vax_gdbarch_init): Update.
7953 * v850-tdep.c (v850_gdbarch_init): Update.
7954 * sparc-tdep.c (sparc_gdbarch_init): Update.
7955 * sh-tdep.c (sh_gdbarch_init): Update.
7956 * s390-tdep.c (s390_gdbarch_init): Update.
7957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7958 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7959 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7960 * mips-tdep.c (mips_gdbarch_init): Update.
7961 * mcore-tdep.c (mcore_gdbarch_init): Update.
7962 * m68k-tdep.c (m68k_gdbarch_init): Update.
7963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7964 * ia64-tdep.c (ia64_gdbarch_init): Update.
7965 * i386-tdep.c (i386_gdbarch_init): Update.
7966 * h8300-tdep.c (h8300_gdbarch_init): Update.
7967 * frv-tdep.c (frv_gdbarch_init): Update.
7968 * d10v-tdep.c (d10v_gdbarch_init): Update.
7969 * cris-tdep.c (cris_gdbarch_init): Update.
7970 * breakpoint.c (deprecated_frame_in_dummy): Update.
7971 * avr-tdep.c (avr_gdbarch_init): Update.
7972 * alpha-tdep.c (alpha_gdbarch_init): Update.
7973 * arm-tdep.c (arm_gdbarch_init): Update.
7974 * dummy-frame.c (dummy_frame_this_id): Update comments.
7975 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7976 * frame.c (legacy_get_prev_frame): Ditto.
7977 * valops.c (call_function_by_hand): Delete function.
7978 (hand_function_call): Rename to call_function_by_hand
7980 2003-03-30 Andrew Cagney <cagney@redhat.com>
7982 2002-11-10 Klee Dienes <kdienes@apple.com>
7983 * value.h (struct value): Update comment.
7985 2003-03-30 Andrew Cagney <cagney@redhat.com>
7987 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7989 (d10v_gdbarch_init): Do not set fp_regnum.
7991 * frame.c (get_frame_base): Force ID initialization.
7992 (get_prev_frame): Move computation of the frame ID from here ...
7993 (get_frame_id): ... to here.
7994 (legacy_get_prev_frame): Mark the frame ID as valid.
7995 * frame.h (struct frame_info): Add field "id_p".
7997 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7999 * i386-tdep.c (i386_store_struct_return): Removed.
8000 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8002 2003-03-30 Andrew Cagney <cagney@redhat.com>
8004 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8005 * gdbarch.h, gdbarch.c: Regenerate.
8006 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8008 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8009 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8010 * i386-tdep.c (i386_gdbarch_init): Ditto.
8011 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8012 * cris-tdep.c (cris_gdbarch_init): Ditto.
8013 * vax-tdep.c (vax_gdbarch_init): Ditto.
8014 * s390-tdep.c (s390_gdbarch_init): Ditto.
8015 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8016 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8017 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8018 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8019 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8020 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8021 * sparc-tdep.c (sparc_gdbarch_init): Update.
8022 * sh-tdep.c (sh_gdbarch_init): Update.
8023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8024 * mips-tdep.c (mips_gdbarch_init): Update.
8025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8026 * ia64-tdep.c (ia64_gdbarch_init): Update.
8027 * frv-tdep.c (frv_gdbarch_init): Update.
8028 * avr-tdep.c (avr_gdbarch_init): Update.
8029 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8030 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8031 instead of when push_dummy_call is not available.
8033 2003-03-30 Andrew Cagney <cagney@redhat.com>
8035 * infttrace.c: Include "gdbthread.h".
8036 (parent_attach_all): Fix function signature.
8037 (call_ptrace): Update call.
8038 * Makefile.in (infttrace.o): Update dependencies.
8040 2003-03-30 Andrew Cagney <cagney@redhat.com>
8042 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8043 PUSH_RETURN_ADDRESS.
8044 * gdbarch.h, gdbarch.c: Regenerate.
8045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8046 * x86-64-tdep.c (x86_64_init_abi): Update.
8047 * v850-tdep.c (v850_gdbarch_init): Update.
8048 * sparc-tdep.c (sparc_gdbarch_init): Update.
8049 * sh-tdep.c (sh_gdbarch_init): Update.
8050 * s390-tdep.c (s390_gdbarch_init): Update.
8051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8052 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8053 * mips-tdep.c (mips_gdbarch_init): Update.
8054 * mcore-tdep.c (mcore_gdbarch_init): Update.
8055 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8056 * ia64-tdep.c (ia64_gdbarch_init): Update.
8057 * i386-tdep.c (i386_gdbarch_init): Update.
8058 * h8300-tdep.c (h8300_gdbarch_init): Update.
8059 * frv-tdep.c (frv_gdbarch_init): Update.
8060 * cris-tdep.c (cris_gdbarch_init): Update.
8061 * avr-tdep.c (avr_gdbarch_init): Update.
8062 * arm-tdep.c (arm_gdbarch_init): Update.
8063 * valops.c (hand_function_call): Update.
8065 2003-03-29 Andrew Cagney <cagney@redhat.com>
8067 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8068 sizeof_call_dummy_words.
8069 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8071 * gdbarch.h: Regenerate.
8073 2003-03-29 Andrew Cagney <cagney@redhat.com>
8075 * infttrace.h: New file.
8076 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8077 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8078 (hpread_read_doc_function_type): Detect an initialized type1.
8079 (hpread_quick_traverse): Initialize mod_name_string.
8080 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8081 (som_solib_get_solib_by_pc): Declare.
8082 (so_lib_thread_start_addr): Declare.
8083 (no_shared_libraries): Declare.
8084 * somread.c (init_import_symbols): Make static. Add forward
8086 * config/pa/nm-hppah.h: Include "infttrace.h" for
8088 (hppa_insert_hw_watchpoint): Declare.
8089 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8090 * hppah-nat.c: Include "gdb_string.h".
8091 (parent_attach_all): Delete extern declaration, moved to
8093 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8095 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8096 * Makefile.in (infttrace_h): Define.
8097 (hpread.o): Update dependencies.
8098 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8099 * hppa-hpux-tdep.c: Include "gdb_string.h".
8100 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8101 * infrun.c (handle_inferior_event): Always initialize
8102 stepped_after_stopped_by_watchpoint. Add default and remove
8103 fallthrough in switch statement.
8104 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8106 (hppa_remove_hw_watchpoint): Ditto.
8108 2003-03-29 Andrew Cagney <cagney@redhat.com>
8110 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8113 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8115 * arm-tdep.c (arm_push_arguments): Delete.
8116 (struct stack_item): New type.
8117 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8118 (arm_store_struct_return): Delte.
8119 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8120 arm_push_arguments or arm_store_struct_return.
8122 2003-03-28 Andrew Cagney <cagney@redhat.com>
8124 * Makefile.in (d10v-tdep.o): Update dependencies.
8125 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8126 * d10v-tdep.c: Include "remote.h".
8127 (target_resume_hook): Delete extern declaration.
8128 (target_wait_loop_hook): Ditto.
8129 (tdisassemble_command): Eliminate assignment in "if" conditional.
8130 (d10v_ts2_register_sim_regno): Eliminate call to
8131 legacy_register_sim_regno.
8132 (d10v_ts3_register_sim_regno): Ditto.
8134 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8136 * thread.c: Reindented.
8138 * linux-proc.c: Ditto.
8140 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8142 * MAINTAINERS (write after approval): Add myself.
8144 2003-03-27 Theodore A. Roth <troth@openavr.org>
8146 * objc-exp.y: Add missing semi-colons.
8148 2003-03-27 Andrew Cagney <cagney@redhat.com>
8150 * regcache.c (write_sp): Delete function and references.
8151 * inferior.h (write_sp): Delete declaration.
8152 * valops.c (hand_function_call): Replace write_sp with
8154 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8155 (sparc_pop_frame): Ditto.
8157 2003-03-27 Andrew Cagney <cagney@redhat.com>
8159 * NEWS: Mention removal of support for hppa*-*-bsd* and
8160 hppa*-*-osf* natives, and hppa*-*-pro* target.
8161 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8162 * config/pa/xm-pa.h: Obsolete file.
8163 * config/pa/xm-hppab.h: Obsolete file.
8164 * config/pa/nm-hppab.h: Obsolete file.
8165 * config/pa/tm-hppab.h: Obsolete file.
8166 * config/pa/tm-hppao.h: Obsolete file.
8167 * config/pa/nm-hppao.h: Obsolete file.
8168 * config/pa/tm-pro.h: Obsolete file.
8169 * config/pa/hppaosf.mt: Obsolete file.
8170 * config/pa/hppaosf.mh: Obsolete file.
8171 * config/pa/hppapro.mt: Obsolete file.
8172 * config/pa/hppabsd.mt: Obsolete file.
8173 * config/pa/hppabsd.mh: Obsolete file.
8174 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8175 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8178 2003-03-27 Andrew Cagney <cagney@redhat.com>
8180 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8181 push_arguments. Don't set push_return_address or write_sp.
8182 (d10v_push_dummy_call): Replace d10v_push_arguments.
8183 (d10v_push_return_address, d10v_write_sp): Delete function,
8184 handled by push_dummy_call.
8186 2003-03-26 Andrew Cagney <cagney@redhat.com>
8188 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8189 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8190 regcache and dummy_addr parameters.
8191 * gdbarch.h, gdbarch.c: Re-generate.
8192 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8193 available; assume it will handle stack alignment and return
8194 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8195 legacy_push_arguments.
8196 (legacy_push_arguments): Rename default_push_arguments.
8197 * value.h (legacy_push_arguments): Rename default_push_arguments.
8198 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8199 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8200 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8201 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8202 * config/i386/tm-symmetry.h: Update.
8203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8204 * x86-64-tdep.c (x86_64_init_abi): Update.
8205 * v850-tdep.c (v850_gdbarch_init): Update.
8206 * sparc-tdep.c (sparc_gdbarch_init): Update.
8207 * sh-tdep.c (sh_gdbarch_init): Update.
8208 * s390-tdep.c (s390_gdbarch_init): Update.
8209 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8210 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8211 * mips-tdep.c (mips_gdbarch_init): Update.
8212 * mcore-tdep.c (mcore_gdbarch_init): Update.
8213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8214 * ia64-tdep.c (ia64_gdbarch_init): Update.
8215 * i386-tdep.c (i386_gdbarch_init): Update.
8216 * hppa-tdep.c (hppa_gdbarch_init): Update.
8217 * h8300-tdep.c (h8300_gdbarch_init): Update.
8218 * frv-tdep.c (frv_gdbarch_init): Update.
8219 * d10v-tdep.c (d10v_gdbarch_init): Update.
8220 * cris-tdep.c (cris_gdbarch_init): Update.
8221 * avr-tdep.c (avr_gdbarch_init): Update.
8222 * arm-tdep.c (arm_gdbarch_init): Update.
8223 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8224 * alpha-tdep.c (alpha_gdbarch_init): Update.
8226 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8228 * signals/signals.c (do_target_signal_to_host): Correct realtime
8231 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8233 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8234 (struct sal_chain, map_catch_names): Remove.
8235 (catch_exception_command_1): Don't call
8236 handle_gnu_4_16_catch_command.
8238 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8240 From Mark Dettinger <dettinge@de.ibm.com>:
8241 * dwarf2cfi.c (read_2u): Increment pointer by two.
8243 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8245 * signals/signals.c: Fix typos in last change.
8247 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8249 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8250 not already defined. Use __SIGRTMIN if available.
8251 (target_signal_from_host): Remove SIGRTMIN block.
8252 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8253 the signal is within the realtime range.
8255 2003-03-25 Adam Fedor <fedor@gnu.org>
8257 * Makefile.in (infrun.o): Add $(language_h)
8258 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8259 for language specific trampolines.
8260 * language.h (struct language_defn): Add skip_trampoline.
8261 (skip_language_trampoline): Declare.
8262 * language.c (unk_lang_trampoline, skip_language_trampoline):
8264 (unknown_language_defn, auto_language_defn, local_language_defn):
8265 Add ukn_lang_trampoline.
8266 * ada-lang.c (ada_language_defn): Add NULL for language
8267 specific skip_trampoline.
8268 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8269 scm-lang.c: Likewise.
8270 * objc-lang.c (objc_skip_trampoline): New function.
8271 (objc_language_defn): Add objc_skip_trampoline.
8273 2003-03-25 Andrew Cagney <cagney@redhat.com>
8275 * frame.c (get_prev_frame): Delay validating a frame's ID -
8276 non-NULL, didn't go backwards - until an attempt to unwind it to
8279 2003-03-25 Andrew Cagney <cagney@redhat.com>
8281 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8282 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8283 * gdbarch.h, gdbarch.c: Re-generate.
8284 * config/sparc/tm-sparc.h
8285 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8286 * sparc-tdep.c (sparc_gdbarch_init): Set
8287 deprecated_extra_stack_alignment_needed.
8288 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8290 extra_stack_alignment_needed.
8291 * v850-tdep.c (v850_gdbarch_init): Ditto.
8292 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8293 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8294 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8295 * cris-tdep.c (cris_gdbarch_init): Ditto.
8296 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8299 2003-03-25 Andrew Cagney <cagney@redhat.com>
8301 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8302 STORE_STRUCT_RETURN.
8303 * gdbarch.h, gdbarch.c: Regenerate.
8304 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8305 (d10v_push_arguments): Set the struct return register.
8306 (d10v_gdbarch_init): Update.
8307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8308 * x86-64-tdep.c (x86_64_init_abi): Update.
8309 * vax-tdep.c (vax_gdbarch_init): Update.
8310 * v850-tdep.c (v850_gdbarch_init): Update.
8311 * sparc-tdep.c (sparc_gdbarch_init): Update.
8312 * sh-tdep.c (sh_gdbarch_init): Update.
8313 * s390-tdep.c (s390_gdbarch_init): Update.
8314 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8315 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8317 * mips-tdep.c (mips_gdbarch_init): Update.
8318 * mcore-tdep.c (mcore_gdbarch_init): Update.
8319 * m68k-tdep.c (m68k_gdbarch_init): Update.
8320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8321 * ia64-tdep.c (ia64_gdbarch_init): Update.
8322 * i386-tdep.c (i386_gdbarch_init): Update.
8323 * hppa-tdep.c (hppa_gdbarch_init): Update.
8324 * h8300-tdep.c (h8300_gdbarch_init): Update.
8325 * frv-tdep.c (frv_gdbarch_init): Update.
8326 * cris-tdep.c (cris_gdbarch_init): Update.
8327 * avr-tdep.c (avr_gdbarch_init): Update.
8328 * arm-tdep.c (arm_gdbarch_init): Update.
8329 * alpha-tdep.c (alpha_gdbarch_init): Update.
8331 2003-03-25 Andrew Cagney <cagney@redhat.com>
8333 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8334 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8335 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8336 * gdbarch.h, gdbarch.c: Regenerate.
8337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8338 call_dummy_stack_adjust_p.
8339 * vax-tdep.c (vax_gdbarch_init): Ditto.
8340 * v850-tdep.c (v850_gdbarch_init): Ditto.
8341 * sh-tdep.c (sh_gdbarch_init): Ditto.
8342 * s390-tdep.c (s390_gdbarch_init): Ditto.
8343 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8344 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8345 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8346 * mips-tdep.c (mips_gdbarch_init): Ditto.
8347 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8348 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8349 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8350 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8351 * i386-tdep.c (i386_gdbarch_init): Ditto.
8352 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8353 * frv-tdep.c (frv_gdbarch_init): Ditto.
8354 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8355 * cris-tdep.c (cris_gdbarch_init): Ditto.
8356 * avr-tdep.c (avr_gdbarch_init): Ditto.
8357 * arm-tdep.c (arm_gdbarch_init): Ditto.
8358 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8359 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8360 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8361 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8362 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8363 call_dummy_stack_adjust_p.
8364 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8365 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8366 * sparc-tdep.c (sparc32_push_arguments): Update.
8367 * valops.c (hand_function_call): Update.
8369 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8372 set_gdbarch_char_signed.
8374 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8377 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8379 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8381 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8382 (_initialize_arm_tdep): Don't set tm_print_insn.
8384 2003-03-24 Adam Fedor <fedor@gnu.org>
8386 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8387 * objc-lang.h: Add multiple inclusion protection.
8388 (start_msglist, add_msglist, end_msglist): Additional declarations.
8390 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8392 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8393 value was renamed to ARM_FLOAT_SOFT_FPA.
8395 2003-03-23 Andrew Cagney <cagney@redhat.com>
8397 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8398 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8399 * gdbarch.h, gdbarch.c: Regenerate.
8400 * valops.c (hand_function_call): Update.
8401 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8402 * frame.c (legacy_saved_regs_this_id): Update.
8403 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8404 * dummy-frame.h: Update.
8405 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8406 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8407 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8408 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8409 * config/m68k/tm-sun3.h: Update.
8410 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8412 * x86-64-tdep.c (x86_64_init_abi): Update.
8413 * vax-tdep.c (vax_gdbarch_init): Update.
8414 * v850-tdep.c (v850_gdbarch_init): Update.
8415 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8416 * sh-tdep.c (sh_gdbarch_init): Update.
8417 * s390-tdep.c (s390_gdbarch_init): Update.
8418 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8419 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8420 (frame_get_saved_regs): Update.
8421 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8422 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8423 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8424 * mips-tdep.c (mips_gdbarch_init): Update.
8425 * mcore-tdep.c (mcore_gdbarch_init): Update.
8426 * m68k-tdep.c (m68k_gdbarch_init): Update.
8427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8428 * ia64-tdep.c (ia64_gdbarch_init): Update.
8429 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8430 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8431 (i386_interix_back_one_frame): Update.
8432 * hppa-tdep.c (hppa_gdbarch_init): Update.
8433 (hppa_init_extra_frame_info): Update.
8434 * h8300-tdep.c (h8300_gdbarch_init): Update.
8435 * frv-tdep.c (frv_gdbarch_init): Update.
8436 * cris-tdep.c (cris_gdbarch_init): Update.
8437 * avr-tdep.c (avr_gdbarch_init): Update.
8438 * arm-tdep.c (arm_gdbarch_init): Update.
8439 * alpha-tdep.c (alpha_gdbarch_init): Update.
8441 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8443 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8444 (arm_get_fp_model): Declare.
8445 * arm-tdep.c (fp_model_strings): New string array.
8446 (arm_fp_model, current_fp_model): New variables.
8447 (arm_get_fp_model): New function.
8448 (arm_set_fp): New function.
8449 (set_fp_model_sfunc): New function.
8450 (show_fp_model): New function.
8451 (_initialize_arm_tdep): Add new command to set/show the FPU.
8452 (arm_extract_return_value): Use arm_get_fp_model.
8453 (arm_store_return_value): Likewise.
8454 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8455 to initialize the floating-point data types.
8456 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8459 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8461 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8462 the current setting of each value.
8463 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8464 new_set and new_show. Use add_setshow_cmd_full and
8465 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8466 commands and add new version as subcommands of "set/show arm".
8468 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8470 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8471 (set_arm_command, show_arm_command): New functions.
8472 (_initialize_arm_tdep): Add them.
8473 (num_disassembly_options): Renamed from num_flavor_options.
8474 (valid_disassembly_styles): Renamed from valid_flavors.
8475 (disassembly_style): Renamed from disassembly_flavor.
8476 (set_disassembly_style_sfunc): Renamed from
8477 set_disassembly_flavor_sfunc.
8478 (set_disassembly_style): Renamed from set_disassembly_flavor.
8479 (arm_othernames): Updated.
8480 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8481 command. Add "set/show arm disassembly" commands. Deprecate
8482 "othernames" command.
8484 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8486 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8487 (arm-tdep.o): Depend on elf_arm_h.
8489 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8491 * Makefile.in (coff_internal_h): Define.
8492 (arm-tdep.o): Update dependencies.
8494 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8496 * arm-tdep.c (prologue_cache): Delete.
8497 (check_prologue_cache, save_prologue_cache): Delete.
8498 (arm_scan_prologue): Don't check or update the prologue_cache.
8499 (arm_gdb_arch_init): Don't initialize it.
8500 (_initialize_arm_tdep): Likewise.
8502 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8504 * MAINTAINERS (tui): Maintainer of tui code.
8506 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8508 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8509 (i386-cygwin-tdep.o): Add dependencies.
8510 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8511 * i386-cygwin-tdep.c: New file.
8512 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8513 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8515 2003-03-20 Andrew Cagney <cagney@redhat.com>
8517 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8518 (handle_inferior_event): Remove code calling
8519 DYNAMIC_TRAMPOLINE_NEXTPC.
8521 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8522 already has a full path.
8524 * main.c (gdb_main): Return 1.
8525 (captured_main): Call error to report an invalid interpreter.
8527 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8528 * alpha-osf1-tdep.c: Include "gdb_string.h".
8530 2003-03-19 J. Brobecker <brobecker@gnat.com>
8532 Continuing work to convert the hppa targets to multiarch partial.
8534 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8535 method, now that hppa_push_dummy_frame has a conformant prototype.
8536 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8537 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8538 for the switch to multiarch partial.
8540 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8542 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8543 when iss is issNull.
8545 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8547 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8548 NUM_REGS bounds check.
8550 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8552 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8553 * mips-tdep.c (gdb_assert.h): Include.
8554 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8555 (mips_register_name): Handle integer registers explicitly. Add
8557 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8558 (mips_lsi33k_reg_names): Don't list integer registers; they're
8559 handled by mips_register_name() now.
8560 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8561 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8562 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8563 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8564 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8566 2003-03-18 Andrew Cagney <cagney@redhat.com>
8568 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8570 * gdbtypes.h (print_scalar_formatted): Update declaration.
8571 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8573 2003-03-18 J. Brobecker <brobecker@gnat.com>
8575 * infrun.c (observer.h): Add #include.
8576 (normal_stop): Add call to observer_notify_normal_stop.
8577 * Makefile.in (infrun.o): Add dependency on observer.h.
8579 2003-03-18 J. Brobecker <brobecker@gnat.com>
8581 Continuing work to convert the hppa targets to multiarch partial.
8582 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8583 parameter. Reformat comment.
8584 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8585 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8586 to match new profile.
8588 2003-03-18 J. Brobecker <brobecker@gnat.com>
8590 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8591 appear to be working in any case.
8593 2003-03-18 J. Brobecker <brobecker@gnat.com>
8595 * observer.c (observer_test_first_observer): New static variable.
8596 (observer_test_second_observer): Likewise.
8597 (observer_test_third_observer): Likewise.
8598 (observer_test_first_notification_function): New static function.
8599 (observer_test_second_notification_function): Likewise.
8600 (observer_test_third_notification_function): Likewise.
8602 2003-03-17 J. Brobecker <brobecker@gnat.com>
8604 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8605 * somsolib.c (gdb_assert.h): Likewise.
8606 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8607 (somsolib.o): Likewise.
8609 2003-03-17 Andrew Cagney <cagney@redhat.com>
8611 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8612 BFD. Simplify setting of di.endian.
8614 2003-03-17 Andrew Cagney <cagney@redhat.com>
8616 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8617 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8619 From Elena Zannoni <ezannoni@redhat.com>
8620 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8621 vector and floating-point parameters.
8622 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8624 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8626 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8628 * MAINTAINERS: Remove my name from several maintainership roles.
8630 2003-03-17 Andrew Cagney <cagney@redhat.com>
8632 Fix frame off-by-one bug.
8633 * frame-unwind.h (frame_this_id_ftype): Replace
8634 frame_unwind_id_ftype.
8635 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8636 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8637 with "prev_register".
8638 * frame-unwind.c (frame_unwind_find_by_pc): Return
8639 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8641 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8642 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8643 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8644 (dummy_frame_unwind): Update.
8645 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8646 sentinel_frame_register_unwind.
8647 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8648 (sentinel_frame_unwinder): Update.
8649 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8650 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8651 * frame.c (create_sentinel_frame): Update. Initialize
8652 "prologue_cache" instead of "unwind_cache".
8653 (frame_register_unwind): Call this frame's prev_register with the
8654 next frame and this frame's prologue cache.
8655 (get_prev_frame): Simplify. Always call prev frame's this_id with
8656 this frame and prev frame's prologue cache. Document that this
8657 call is shifted one to the left when compared to the
8658 frame_register_unwind call.
8659 (legacy_saved_regs_prev_register): Replace
8660 frame_saved_regs_register_unwind.
8661 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8662 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8663 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8664 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8665 (d10v_frame_unwind): Update.
8666 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8667 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8668 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8669 "saved_regs" with "this_saved_regs".
8671 2003-03-16 Andrew Cagney <cagney@redhat.com>
8673 * frame.c (frame_pop): Don't call target_store_registers. Fix
8674 problem reported by Mark Kettenis.
8676 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8678 * i386-tdep.c (i386_register_type): Renamed from
8679 i386_register_virtual_type. Adjust function signature.
8680 (i386_gdbarch_init): Set register_type instead of
8681 deprecated_max_register_raw_size,
8682 deprecated_max_register_virtual_size and register_virtual_type.
8684 2003-03-14 Andrew Cagney <cagney@redhat.com>
8686 * frame.c (get_prev_frame): When a legacy frame, always call
8687 legacy_get_prev_frame. Simplify unwind code using assumption that
8688 the unwinder is new.
8689 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8690 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8691 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8693 2003-03-14 Andrew Cagney <cagney@redhat.com>
8695 * frame.c (get_saved_register): Delete function.
8696 * frame.h (get_saved_register): Delete declaration.
8697 * xstormy16-tdep.c: Update comment.
8698 * regcache.h: Update comments.
8699 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8700 get_saved_register and extract_address, use
8701 frame_read_unsigned_register.
8702 (sparc_frame_saved_pc): Ditto.
8703 (sparc_get_saved_register): Instead of get_saved_register, use
8705 (sparc_pop_frame): Ditto.
8706 * findvar.c: Update comments.
8707 (value_of_register): Call frame_register instead of
8709 (value_from_register): Ditto.
8710 * config/sparc/tm-sparc.h: Update comment.
8711 * breakpoint.c: Update comment.
8713 2003-03-14 Andrew Cagney <cagney@redhat.com>
8715 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8717 * gdbarch.h, gdbarch.c: Re-generate.
8718 * frame.h: Update comments.
8719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8720 * x86-64-tdep.c (x86_64_init_abi): Update.
8721 * sparc-tdep.c (sparc_gdbarch_init): Update.
8722 * sh-tdep.c (sh_gdbarch_init): Update.
8723 * mips-tdep.c (mips_gdbarch_init): Update.
8724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8725 * cris-tdep.c (cris_gdbarch_init): Update.
8726 * ia64-tdep.c (ia64_gdbarch_init): Update.
8727 * frame.c (frame_register): Update.
8728 (get_saved_register): Update.
8729 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8731 2003-03-13 Andrew Cagney <cagney@redhat.com>
8733 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8734 * gdbarch.h, gdbarch.c: Regenerate.
8735 * valops.c (hand_function_call): Update comment.
8736 * stack.c (return_command): Update comment.
8737 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8738 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8739 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8740 * x86-64-tdep.c (x86_64_init_abi): Update.
8741 * vax-tdep.c (vax_gdbarch_init): Update.
8742 * v850-tdep.c (v850_gdbarch_init): Update.
8743 * sparc-tdep.c (sparc_gdbarch_init): Update.
8744 * sh-tdep.c (sh_gdbarch_init): Update.
8745 * s390-tdep.c (s390_gdbarch_init): Update.
8746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8747 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8749 * mips-tdep.c (mips_gdbarch_init): Update.
8750 * mcore-tdep.c (mcore_gdbarch_init): Update.
8751 * m68k-tdep.c (m68k_gdbarch_init): Update.
8752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8753 * ia64-tdep.c (ia64_gdbarch_init): Update.
8754 * i386-tdep.c (i386_gdbarch_init): Update.
8755 * hppa-tdep.c (hppa_gdbarch_init): Update.
8756 * h8300-tdep.c (h8300_gdbarch_init): Update.
8757 * frv-tdep.c (frv_gdbarch_init): Update.
8758 * cris-tdep.c (cris_gdbarch_init): Update.
8759 * avr-tdep.c (avr_gdbarch_init): Update.
8760 * arm-tdep.c (arm_gdbarch_init): Update.
8761 * alpha-tdep.c (alpha_gdbarch_init): Update.
8763 2003-03-13 Andrew Cagney <cagney@redhat.com>
8765 * frame.c (legacy_frame_p): New function.
8766 (get_prev_frame): Use legacy_frame_p.
8767 * frame.h (legacy_frame_p): Declare.
8769 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8771 * MAINTAINERS (write after approval): Alphabetically
8774 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8776 * MAINTAINERS (write after approval): Add myself.
8778 2003-03-12 Andrew Cagney <cagney@redhat.com>
8780 * frame.c (get_prev_frame): Rename the frame parameter to
8782 (get_next_frame, legacy_get_prev_frame): Ditto.
8784 2003-03-12 Andrew Cagney <cagney@redhat.com>
8786 * frame.c (get_current_frame): Check target_has_registers before
8787 checking target_has_stack.
8788 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8789 instead of deprecated_selected_frame.
8790 * findvar.c (value_of_register): Pass "frame", not
8791 deprecated_selected_frame, to value_of_builtin_reg.
8793 2003-03-12 Andrew Cagney <cagney@redhat.com>
8795 * regcache.c (regcache_cooked_write_signed): New function.
8796 (regcache_cooked_write_unsigned): New function.
8797 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8798 (regcache_cooked_read_signed): Fix regnum in range assertion.
8799 * regcache.h (regcache_cooked_write_signed): Declare.
8800 (regcache_cooked_write_unsigned): Declare.
8802 2003-03-12 Andrew Cagney <cagney@redhat.com>
8804 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8805 * gdbarch.h, gdbarch.c: Re-generate.
8806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8807 * x86-64-tdep.h: Update.
8808 * x86-64-tdep.c (x86_64_init_abi): Update.
8809 * v850-tdep.c (v850_gdbarch_init): Update.
8810 * sparc-tdep.c (sparc_gdbarch_init): Update.
8811 * sh-tdep.c (sh_gdbarch_init): Update.
8812 * s390-tdep.c (s390_gdbarch_init): Update.
8813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8814 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8815 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8816 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8817 * mips-tdep.c (mips_gdbarch_init): Update.
8818 * mcore-tdep.c (mcore_gdbarch_init): Update.
8819 * m68k-tdep.c (m68k_gdbarch_init): Update.
8820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8821 * ia64-tdep.c (ia64_gdbarch_init): Update.
8822 * i386-tdep.c (i386_gdbarch_init): Update.
8823 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8824 * hppa-tdep.c (hppa_gdbarch_init): Update.
8825 * h8300-tdep.c (h8300_gdbarch_init): Update.
8826 * frv-tdep.c (frv_gdbarch_init): Update.
8827 * cris-tdep.c (cris_gdbarch_init): Update.
8828 * avr-tdep.c (avr_gdbarch_init): Update.
8829 * arm-tdep.c (arm_gdbarch_init): Update.
8830 * alpha-tdep.c (alpha_gdbarch_init): Update.
8831 * sh-tdep.c (sh_init_extra_frame_info): Update.
8832 (sh64_init_extra_frame_info): Update.
8833 * ns32knbsd-nat.c (frame_num_args): Update.
8834 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8835 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8836 (xstormy16_frame_chain_valid): Update.
8837 * vax-tdep.c (vax_saved_pc_after_call): Update.
8838 * v850-tdep.c (v850_frame_chain): Update.
8839 (v850_pop_frame): Update.
8840 (v850_init_extra_frame_info): Update.
8841 * sparc-tdep.c (setup_arbitrary_frame): Update.
8842 * ns32k-tdep.c (umax_frame_num_args): Update.
8843 * s390-tdep.c (s390_pop_frame_regular): Update.
8844 * mn10300-tdep.c (mn10300_frame_chain): Update.
8845 (mn10300_pop_frame_regular): Update.
8846 (mn10300_init_extra_frame_info): Update.
8847 * mips-tdep.c (mips_init_frame_pc_first): Update.
8848 (mips_frame_chain): Update.
8849 (mips_pop_frame): Update.
8850 * mcore-tdep.c (mcore_frame_chain): Update.
8851 (mcore_pop_frame): Update.
8852 (mcore_init_extra_frame_info): Update.
8853 * arch-utils.c (init_frame_pc_default): Update.
8854 * m68k-tdep.c (isi_frame_num_args): Update.
8855 (delta68_frame_num_args): Update.
8856 (news_frame_num_args): Update.
8857 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8858 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8859 (alpha_frame_chain): Update.
8860 (alpha_pop_frame): Update.
8861 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8862 (hppa_init_extra_frame_info): Update.
8863 (hppa_frame_chain): Update.
8864 (hppa_frame_chain_valid): Update.
8865 * cris-tdep.c (cris_init_extra_frame_info): Update.
8866 * avr-tdep.c (avr_init_extra_frame_info): Update.
8867 * arm-tdep.c (arm_frame_chain_valid): Update.
8868 (arm_init_extra_frame_info): Update.
8869 (arm_pop_frame): Update.
8870 * frame.c (frame_pc_unwind): Update.
8871 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8872 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8873 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8874 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8875 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8876 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8878 2003-03-12 Andrew Cagney <cagney@redhat.com>
8880 Eliminate the need for POP_FRAME.
8881 * frame.c (do_frame_unwind_register): New function.
8882 (frame_pop): When no POP_FRAME, pop the frame using register
8883 unwind and a scratch regcache.
8884 (frame_saved_regs_pop): Delete function.
8885 (trad_frame_unwinder): Update.
8886 * d10v-tdep.c (d10v_frame_pop): Delete function.
8887 (d10v_frame_unwind): Update.
8888 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8889 (sentinel_frame_unwinder): Update.
8890 * dummy-frame.c (dummy_frame_pop): Delete function.
8891 (dummy_frame_unwind): Update.
8892 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8893 (struct frame_unwind): Update.
8895 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8897 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8898 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8899 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8900 Do range checks on register number obtained from debugging info.
8901 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8902 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8903 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8905 (do_fp_register_row): Fix typo which caused double type to be
8906 used when attempting to unpack a float.
8908 2003-03-11 J. Brobecker <brobecker@gnat.com>
8910 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8912 2003-03-11 Andrew Cagney <cagney@redhat.com>
8914 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8915 frame. Problem found by Corinna Vinschen.
8917 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8919 * doublest.c (floatformat_from_length): Accept also
8920 the real size of 'long double' type.
8922 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8924 From Klee Dienes <kdienes@apple.com>:
8925 * breakpoint.c (bpstat_copy): Copy the command lines as well
8926 as the old value, to match what is freed in bpstat_clear.
8928 2003-03-10 David Carlton <carlton@math.stanford.edu>
8930 * minsyms.c (add_minsym_to_hash_table): Replace
8931 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8932 (compare_minimal_symbols, compact_minimal_symbols)
8933 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8934 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8935 of DEPRECATED_SYMBOL_MATCHES_NAME.
8936 (lookup_minimal_symbol_solib_trampoline): Ditto.
8938 2003-03-10 Andrew Cagney <cagney@redhat.com>
8940 * regcache.h (regcache_cooked_read_ftype): Define.
8941 (regcache_save, regcache_restore): Add a cooked_read parameter.
8942 * regcache.c (regcache_save, regcache_restore): Update.
8943 (do_cooked_read): New function.
8944 (regcache_cpy): Pass do_cooked_read to regcache_save and
8947 2003-03-10 Andrew Cagney <cagney@redhat.com>
8949 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8950 * gdbarch.h, gdbarch.c: Re-generate.
8951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8952 * x86-64-tdep.h: Update.
8953 * x86-64-tdep.c (x86_64_init_abi): Update.
8954 * v850-tdep.c (v850_gdbarch_init): Update.
8955 * sparc-tdep.c (sparc_gdbarch_init): Update.
8956 * sh-tdep.c (sh_gdbarch_init): Update.
8957 * s390-tdep.c (s390_gdbarch_init): Update.
8958 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8959 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8960 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8961 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8962 * mips-tdep.c (mips_gdbarch_init): Update.
8963 * mcore-tdep.c (mcore_gdbarch_init): Update.
8964 * m68k-tdep.c (m68k_gdbarch_init): Update.
8965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8966 * ia64-tdep.c (ia64_gdbarch_init): Update.
8967 * i386-tdep.c (i386_gdbarch_init): Update.
8968 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8969 * hppa-tdep.c (hppa_gdbarch_init): Update.
8970 * h8300-tdep.c (h8300_gdbarch_init): Update.
8971 * frv-tdep.c (frv_gdbarch_init): Update.
8972 * cris-tdep.c (cris_gdbarch_init): Update.
8973 * avr-tdep.c (avr_gdbarch_init): Update.
8974 * arm-tdep.c (arm_gdbarch_init): Update.
8975 * alpha-tdep.c (alpha_gdbarch_init): Update.
8976 * sh-tdep.c (sh_init_extra_frame_info): Update.
8977 (sh64_init_extra_frame_info): Update.
8978 * ns32knbsd-nat.c (frame_num_args): Update.
8979 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8980 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8981 (xstormy16_frame_chain_valid): Update.
8982 * vax-tdep.c (vax_saved_pc_after_call): Update.
8983 * v850-tdep.c (v850_frame_chain): Update.
8984 (v850_pop_frame): Update.
8985 (v850_init_extra_frame_info): Update.
8986 * sparc-tdep.c (setup_arbitrary_frame): Update.
8987 * ns32k-tdep.c (umax_frame_num_args): Update.
8988 * s390-tdep.c (s390_pop_frame_regular): Update.
8989 * mn10300-tdep.c (mn10300_frame_chain): Update.
8990 (mn10300_pop_frame_regular): Update.
8991 (mn10300_init_extra_frame_info): Update.
8992 * mips-tdep.c (mips_init_frame_pc_first): Update.
8993 (mips_frame_chain): Update.
8994 (mips_pop_frame): Update.
8995 * mcore-tdep.c (mcore_frame_chain): Update.
8996 (mcore_pop_frame): Update.
8997 (mcore_init_extra_frame_info): Update.
8998 * arch-utils.c (init_frame_pc_default): Update.
8999 * m68k-tdep.c (isi_frame_num_args): Update.
9000 (delta68_frame_num_args): Update.
9001 (news_frame_num_args): Update.
9002 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9003 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9004 (alpha_frame_chain): Update.
9005 (alpha_pop_frame): Update.
9006 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9007 (hppa_init_extra_frame_info): Update.
9008 (hppa_frame_chain): Update.
9009 (hppa_frame_chain_valid): Update.
9010 * cris-tdep.c (cris_init_extra_frame_info): Update.
9011 * avr-tdep.c (avr_init_extra_frame_info): Update.
9012 * arm-tdep.c (arm_frame_chain_valid): Update.
9013 (arm_init_extra_frame_info): Update.
9014 (arm_pop_frame): Update.
9015 * frame.c (frame_pc_unwind): Update.
9016 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9017 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9018 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9019 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9020 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9021 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9023 2003-03-10 Andrew Cagney <cagney@redhat.com>
9025 * gdbarch.sh (gdbarch_unwind_pc): New method.
9026 * gdbarch.h, gdbarch.c: Regenerate.
9027 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9028 but use read_pc and FRAME_SAVED_PC as fall backs.
9029 (frame_saved_regs_pc_unwind): Delete function.
9030 (trad_frame_unwinder): Update.
9031 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9032 (struct frame_unwind): Update.
9033 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9034 (dummy_frame_unwind): Update.
9035 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9036 (sentinel_frame_unwinder): Update.
9037 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9038 (d10v_frame_unwind): Update.
9039 (d10v_unwind_pc): New function.
9040 (d10v_gdbarch_init): Set unwind_pc.
9042 2003-03-10 Andrew Cagney <cagney@redhat.com>
9044 * gdbarch.h: Re-generate.
9046 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9048 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9051 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9053 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9055 2003-03-08 Andrew Cagney <cagney@redhat.com>
9057 * cli-out.c: Update copyright.
9058 (cli_out_data): Define typedef. Use instead of ui_out_data.
9060 2003-03-08 Andrew Cagney <cagney@redhat.com>
9062 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9065 2003-03-07 Andrew Cagney <cagney@redhat.com>
9067 * gdbarch.sh: Don't generate two macro definitions when an
9068 undefined macro taking no arguments.
9069 * gdbarch.h: Regenerate.
9071 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9073 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9074 (x86_64_unwind_dummy_id): New functions.
9075 (x86_64_init_abi): Register these two new functions.
9077 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9079 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9080 (x86_64_skip_prologue): Move prologue detection to
9082 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9084 2003-03-05 Andrew Cagney <cagney@redhat.com>
9086 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9087 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9088 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9089 to use unwind_dummy_id when a dummy frame.
9090 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9092 * gdbarch.h, gdbarch.c: Regneerate.
9094 2003-03-05 Andrew Cagney <cagney@redhat.com>
9096 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9097 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9098 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9101 2003-03-05 Andrew Cagney <cagney@redhat.com>
9103 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9104 (struct d10v_unwind_cache): Delete field "frameless". Replace
9105 "next_addr" with "sp_offset". Add "r11_offset".
9106 (d10v_frame_unwind_cache): Update.
9107 (prologue_find_regs): Update. When "mv r11, sp", save the
9108 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9109 RN was saved in r11_offset.
9111 2003-03-05 Andrew Cagney <cagney@redhat.com>
9113 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9114 cached PC value in the next frame.
9116 2003-03-05 Andrew Cagney <cagney@redhat.com>
9118 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9119 "id_unwind_cache" with "id".
9120 (frame_id_unwind): Delete declaration.
9121 * frame.c (frame_id_unwind): Delete function.
9122 (get_prev_frame): Call the frame id unwind method directly. Store
9123 the returned next frame's ID value in NEXT_FRAME. Note that there
9124 is a problem with the wrong unwind ID being called with the wrong
9127 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9129 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9131 2003-03-05 James Ingham <jingham@apple.com>
9132 Daniel Jacobowitz <drow@mvista.com>
9134 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9135 (auto_cp_abi): New variable.
9136 (current_cp_abi, num_cp_abis): Make static.
9137 (CP_ABI_MAX): Define.
9138 (cp_abis): Turn into an array.
9139 (value_virtual_fn_field): Fix formatting.
9140 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9142 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9143 (list_cp_abis, _initialize_cp_abi): New functions.
9144 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9145 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9146 switch_to_cp_abi. Update prototype for register_cp_abi.
9147 * Makefile.in (cp-abi.o): Update dependencies.
9148 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9149 instead of switch_to_cp_abi.
9150 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9152 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9154 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9156 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9158 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9159 * dwarf2loc.c: Include "regcache.h".
9160 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9162 * Makefile.in (dwarf2loc.o): Update dependencies.
9164 2003-03-04 Theodore A. Roth <troth@openavr.org>
9166 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9167 number of io registers reported by remote target is not a multiple of
9170 2003-03-04 David Carlton <carlton@math.stanford.edu>
9172 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9173 (lookup_symbol_aux_psymtabs): Update call to
9174 lookup_partial_symbol.
9175 (lookup_transparent_type, find_main_psymtab)
9176 (make_symbol_overload_list): Ditto.
9178 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9180 * MAINTAINERS (Write after approval): Update my email address.
9182 2003-03-03 Andrew Cagney <cagney@redhat.com>
9184 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9185 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9186 predicate. Replace MAX_REGISTER_RAW_SIZE.
9187 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9188 MAX_REGISTER_VIRTUAL_SIZE.
9189 * regcache.c (legacy_max_register_raw_size): New function.
9190 (legacy_max_register_virtual_size): New function.
9191 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9192 (MAX_REGISTER_RAW_SIZE): Define.
9193 (legacy_max_register_raw_size): Declare.
9194 (legacy_max_register_virtual_size): Declare.
9195 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9196 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9197 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9198 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9199 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9200 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9201 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9202 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9203 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9205 * vax-tdep.c (vax_gdbarch_init): Update.
9206 * v850-tdep.c (v850_gdbarch_init): Update.
9207 * sparc-tdep.c (sparc_gdbarch_init): Update.
9208 * sh-tdep.c (sh_gdbarch_init): Update.
9209 * s390-tdep.c (s390_gdbarch_init): Update.
9210 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9211 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9212 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9213 * mips-tdep.c (mips_gdbarch_init): Update.
9214 * mcore-tdep.c (mcore_gdbarch_init): Update.
9215 * m68k-tdep.c (m68k_gdbarch_init): Update.
9216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9217 * ia64-tdep.c (ia64_gdbarch_init): Update.
9218 * i386-tdep.c (i386_gdbarch_init): Update.
9219 * hppa-tdep.c (hppa_gdbarch_init): Update.
9220 * h8300-tdep.c (h8300_gdbarch_init): Update.
9221 * frv-tdep.c (frv_gdbarch_init): Update.
9222 * cris-tdep.c (cris_gdbarch_init): Update.
9223 * avr-tdep.c (avr_gdbarch_init): Update.
9224 * arm-tdep.c (arm_gdbarch_init): Update.
9225 * alpha-tdep.c (alpha_gdbarch_init): Update.
9226 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9227 max_register_raw_size or max_register_virtual_size.
9229 2003-03-03 David Carlton <carlton@math.stanford.edu>
9231 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9232 SYMBOL_MATCHES_NAME, add comment.
9233 (SYMBOL_MATCHES_NATURAL_NAME): New.
9234 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9235 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9236 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9237 * symtab.c (lookup_partial_symbol): Use
9238 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9240 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9241 SYMBOL_MATCHES_NAME.
9244 2003-03-03 David Carlton <carlton@math.stanford.edu>
9246 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9247 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9248 by regexp matching against SYMBOL_NATURAL_NAME.
9250 2003-03-03 David Carlton <carlton@math.stanford.edu>
9252 * linespec.c (find_method): Extract code into collect_methods.
9253 (collect_methods): New.
9255 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9257 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9260 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9261 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9263 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9265 * arch-utils.c (generic_register_byte): Fix to use the loop index
9266 and not regnum when summing the size of all registers up to regnum.
9268 2003-03-01 Andrew Cagney <cagney@redhat.com>
9270 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9271 FRAME_INIT_SAVED_REGS.
9272 * gdbarch.h, gdbarch.c: Regenerate.
9273 * stack.c (frame_info): Update.
9274 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9275 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9276 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9277 * ns32k-tdep.c (ns32k_pop_frame): Update.
9278 * mips-tdep.c (mips_pop_frame): Update.
9279 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9280 * ia64-tdep.c (ia64_frame_chain): Update.
9281 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9282 (ia64_frameless_function_invocation): Update.
9283 (ia64_init_extra_frame_info): Update.
9284 (ia64_pop_frame_regular): Update.
9285 * frame.h (struct frame_info): Update comment.
9286 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9287 * frame.c (frame_saved_regs_register_unwind): Update.
9288 (frame_saved_regs_register_unwind): Update.
9289 (deprecated_generic_get_saved_register): Update.
9290 * cris-tdep.c: Update comment.
9291 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9294 * x86-64-tdep.c (x86_64_init_abi): Update.
9295 * vax-tdep.c (vax_gdbarch_init): Update.
9296 * v850-tdep.c (v850_gdbarch_init): Update.
9297 * sparc-tdep.c (sparc_gdbarch_init): Update.
9298 * sh-tdep.c (sh_gdbarch_init): Update.
9299 * s390-tdep.c (s390_gdbarch_init): Update.
9300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9301 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9302 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9304 * mips-tdep.c (mips_gdbarch_init): Update.
9305 * mcore-tdep.c (mcore_gdbarch_init): Update.
9306 * m68k-tdep.c (m68k_gdbarch_init): Update.
9307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9308 * ia64-tdep.c (ia64_gdbarch_init): Update.
9309 * i386-tdep.c (i386_gdbarch_init): Update.
9310 * frv-tdep.c (frv_gdbarch_init): Update.
9311 * avr-tdep.c (avr_gdbarch_init): Update.
9312 * arm-tdep.c (arm_gdbarch_init): Update.
9313 * alpha-tdep.c (alpha_gdbarch_init): Update.
9315 2003-03-01 Andrew Cagney <cagney@redhat.com>
9317 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9318 option enum and switch. When no windows, set the interpreter to
9321 2003-03-01 Andrew Cagney <cagney@redhat.com>
9323 * main.c (captured_main): Replace magic option characters with an
9326 2003-03-01 Andrew Cagney <cagney@redhat.com>
9328 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9329 INIT_EXTRA_FRAME_INFO.
9330 * gdbarch.h, gdbarch.c: Regenerate.
9331 * arm-tdep.c: Update comments.
9332 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9333 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9334 * frame.h, avr-tdep.c: Ditto.
9335 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9336 (create_new_frame, legacy_get_prev_frame): Ditto.
9337 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9338 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9339 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9340 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9341 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9342 * v850-tdep.c (v850_gdbarch_init): Ditto.
9343 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9344 * sh-tdep.c (sh_gdbarch_init): Ditto.
9345 * s390-tdep.c (s390_gdbarch_init): Ditto.
9346 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9347 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9348 * mips-tdep.c (mips_gdbarch_init): Ditto.
9349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9351 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9352 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9353 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9354 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9355 * frv-tdep.c (frv_gdbarch_init): Ditto.
9356 * cris-tdep.c (cris_gdbarch_init): Ditto.
9357 * avr-tdep.c (avr_gdbarch_init): Ditto.
9358 * arm-tdep.c (arm_gdbarch_init): Ditto.
9359 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9362 2003-03-01 Andrew Cagney <cagney@redhat.com>
9364 * gdbarch.sh (register_type): New function with predicate.
9365 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9366 * gdbarch.h, gdbarch.c: Re-generate.
9367 * arch-utils.c (generic_register_byte): Use generic_register_size.
9368 (generic_register_size): When available, use
9369 gdbarch_register_type.
9370 * regcache.c (init_regcache_descr): When available, initialize the
9371 register type array using gdbarch_register_type. If the
9372 architecture supplies gdbarch_register_type, do not use the legacy
9374 * d10v-tdep.c (d10v_register_type): Replace
9375 d10v_register_virtual_type.
9376 (d10v_gdbarch_init): Set register_type instead of
9377 register_virtual_type.
9379 2003-03-01 Andrew Cagney <cagney@redhat.com>
9381 * Makefile.in (ax-gdb.o): Update dependencies.
9382 * ax-gdb.c: Include "regcache.h".
9383 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9384 * findvar.c (value_of_register): Ditto.
9385 * infcmd.c (default_print_registers_info): Ditto.
9387 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9389 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9390 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9392 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9394 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9397 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9399 * Makefile.in (dwarf2loc.o): Update dependencies.
9400 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9401 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9402 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9403 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9404 (locexpr_tracepoint_var_ref): New function.
9405 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9407 2003-02-28 Andrew Cagney <cagney@redhat.com>
9409 * regcache.c (register_size): New function.
9410 * regcache.h (register_size): Declare
9411 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9412 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9414 2003-02-28 David Carlton <carlton@math.stanford.edu>
9416 * linespec.c (decode_compound): Extract code into find_method.
9419 2003-02-28 J. Brobecker <brobecker@gnat.com>
9421 * Makefile.in: Add rules to build and link in observer.o.
9423 2003-02-27 J. Brobecker <brobecker@gnat.com>
9425 * observer.c: Minor comments edits.
9427 2003-02-27 J. Brobecker <brobecker@gnat.com>
9429 * observer.h, observer.c: New file.
9431 2003-02-27 Andrew Cagney <cagney@redhat.com>
9433 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9435 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9437 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9438 (M6812_OP_STS_EXT): Likewise.
9439 (m6811_prologue): Use the above to recognize prologue.
9440 (m6812_prologue): Likewise.
9442 2003-02-27 David Carlton <carlton@math.stanford.edu>
9444 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9446 (compare_psymbols): Ditto.
9447 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9449 2003-02-27 Michael Snyder <msnyder@redhat.com>
9451 * f-lang.c (build_fortran_types): New function.
9452 (_initialize_f_language): Gdbarch-register built-in fortran types.
9453 * doublest.c (extract_floating): Fix warning text.
9455 2003-02-27 Andrew Cagney <cagney@redhat.com>
9457 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9458 predicate. Replaces PUSH_DUMMY_FRAME.
9459 * gdbarch.h, gdbarch.c: Regnerate.
9460 * valops.c (hand_function_call): Update. Call
9461 generic_push_dummy_frame directly.
9462 * vax-tdep.c (vax_gdbarch_init): Update.
9463 * sparc-tdep.c (sparc_gdbarch_init): Update.
9464 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9465 * m68k-tdep.c (m68k_gdbarch_init): Update.
9466 * hppa-tdep.c (hppa_gdbarch_init): Update.
9467 * alpha-tdep.c (alpha_gdbarch_init): Update.
9468 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9469 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9470 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9472 push_dummy_frame to generic_push_dummy_frame.
9473 * v850-tdep.c (v850_gdbarch_init): Ditto.
9474 * sh-tdep.c (sh_gdbarch_init): Ditto.
9475 * s390-tdep.c (s390_gdbarch_init): Ditto.
9476 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9477 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9478 * mips-tdep.c (mips_gdbarch_init): Ditto.
9479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9481 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9482 * i386-tdep.c (i386_gdbarch_init): Ditto.
9483 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9484 * frv-tdep.c (frv_gdbarch_init): Ditto.
9485 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9486 * cris-tdep.c (cris_gdbarch_init): Ditto.
9487 * avr-tdep.c (avr_gdbarch_init): Ditto.
9488 * arm-tdep.c (arm_gdbarch_init): Ditto.
9490 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9492 * mips-tdep.c (show_mips_abi): New function.
9493 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9494 command ``show mips abi''.
9496 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9498 From Elena Zannoni <ezannoni@redhat.com>
9499 * dbxread.c (process_one_symbol): Only record line 0 if one or
9500 more sline entries have been seen for the function.
9502 2003-02-26 Michael Chastain <mec@shout.net>
9504 * configure: Regenerate with autoconf 000227.
9506 2003-02-26 Michael Chastain <mec@shout.net>
9509 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9510 for old libc5/glibc.
9511 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9513 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9515 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9516 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9518 2003-02-26 Michael Chastain <mec@shout.net>
9520 * configure.in: New variable HAVE_UINTPTR_T.
9521 * configure, config.in: Regenerated.
9523 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9526 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9528 2003-02-25 Andrew Cagney <cagney@redhat.com>
9530 * frame.c (get_prev_frame): Add comment on check for
9531 inside_entry_func. Only check for inside_entry_file when not a
9532 dummy and not a sentinel. Check that the new frame is not inner
9535 2003-02-25 Andrew Cagney <cagney@redhat.com>
9537 * frame.c (frame_debug): New variable.
9538 (_initialize_frame): Add "set/show debug frame" command.
9539 (get_prev_frame): When frame_debug, print reason why unwind
9542 2003-02-25 Michael Chastain <mec@shout.net>
9544 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9545 to avoid uintptr_t definition problems.
9547 2003-02-25 David Carlton <carlton@math.stanford.edu>
9549 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9550 (SYMBOL_LINKAGE_NAME): Ditto.
9551 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9552 SYMBOL_LINKAGE_NAME.
9553 (struct general_symbol_info): Expand comment.
9554 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9555 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9556 (SYMBOL_MATCHES_REGEXP): Ditto.
9557 * symtab.c (symbol_natural_name): New function.
9558 * objfiles.h: Replace all uses of SYMBOL_NAME by
9559 DEPRECATED_SYMBOL_NAME.
9560 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9561 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9562 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9563 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9564 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9565 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9566 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9567 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9568 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9569 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9571 * ada-exp.y: Update copyright.
9572 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9573 * cp-valprint.c: Ditto.
9575 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9577 * infptrace.c (detach): Do not flag error if ptrace detach fails
9578 and errno is set to ESRCH.
9580 2003-02-24 Andrew Cagney <cagney@redhat.com>
9582 * infptrace.c (udot_info): Change type of udot_off to long. Use
9583 paddr when printing udot_off's value.
9585 2003-02-24 David Carlton <carlton@math.stanford.edu>
9587 * symtab.c (make_symbol_overload_list): Only read in partial
9588 symtabs containing a matching partial symbol.
9590 2003-02-24 David Carlton <carlton@math.stanford.edu>
9592 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9593 do the comparison, not strcmp.
9594 * symfile.c (compare_psymbols): Ditto.
9595 * defs.h: Declare strcmp_iw_ordered.
9596 * utils.c (strcmp_iw_ordered): New function.
9598 2003-02-24 Jim Blandy <jimb@redhat.com>
9600 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9601 support, shared libs): Remove my name from here, to better reflect
9604 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9606 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9607 (target_ops): Add to_have_continuable_watchpoint.
9608 * target.c (update_current_target): Add INHERIT line for
9609 to_have_continuable_watchpoint.
9610 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9611 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9612 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9613 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9615 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9617 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9620 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9622 * solib.c (solib_open): Call target defined search function after
9623 failing with solib-search-path.
9624 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9625 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9627 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9629 * MAINTAINERS: Add myself to Write After section.
9631 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9633 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9635 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9637 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9638 (m68hc11_add_reggroups): New function.
9639 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9640 (m68hc11_gdbarch_init): Install the reggroups.
9641 (_initialize_m68hc11_tdep): Initialize them.
9643 2003-02-21 James E Wilson <wilson@tuliptree.org>
9645 * MAINTAINERS: Update my email address.
9647 2003-02-21 David Carlton <carlton@math.stanford.edu>
9649 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9651 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9653 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9654 * symtab.h: Add opaque declarations of struct axs_value and
9656 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9657 (struct location_funcs): New type.
9658 (struct symbol): Add "loc" to aux_value.
9659 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9660 * dwarf2read.c: Include "dwarf2expr.h".
9661 (dwarf2_symbol_mark_computed): New function.
9662 (read_func_scope): Use it.
9663 (var_decode_location): New function.
9664 (new_symbol): Use it.
9665 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9667 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9668 (dwarf2expr_h, dwarf2loc_h): New variables.
9669 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9670 (dwarf2expr.o, dwarf2loc.o): New rules.
9671 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9672 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9674 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9675 * m2-exp.y (yylex): Likewise.
9676 * printcmd.c (address_info, print_frame_args): Likewise.
9677 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9678 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9679 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9680 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9681 * symtab.c (lookup_block_symbol): Likewise.
9683 2003-02-20 Adam Fedor <fedor@gnu.org>
9685 * symtab.h: Remove objc_specific struct
9686 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9687 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9688 Have language_objc use cplus_specific struct.
9690 2003-02-20 Tom Tromey <tromey@redhat.com>
9692 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9693 TYPE_NAME, when printing a String value. PR java/1075.
9695 2003-02-20 Adam Fedor <fedor@gnu.org>
9697 * objc-lang.h (find_methods): Remove declaration.
9698 * objc-lang.c (find_methods): Make static.
9700 2003-02-20 Christopher Faylor <cgf@redhat.com>
9702 * win32-nat.c (get_image_name): Check return value from
9704 (child_xfer_memory): Ditto.
9706 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9708 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9709 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9710 '${exec_prefix}' (in addition to the expansion thereof) as
9712 * configure: Rebuilt.
9714 2003-02-20 David Carlton <carlton@math.stanford.edu>
9716 * symtab.c (search_symbols): Revert the search_symbols part of my
9717 2002-12-23 patch. Add comment.
9719 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9721 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9722 * dbxread.c (elfstab_build_psymtabs): Don't call
9723 install_minimal_symbols.
9724 (stabsect_build_psymtabs): Likewise.
9725 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9727 * somread.c (som_symfile_read): Call install_minimal_symbols
9728 and do_cleanups earlier.
9729 * nlmread.c (nlm_symfile_read): Likewise.
9730 * mdebugread.c (elfmdebug_build_psymtabs): Call
9731 install_minimal_symbols and make appropriate cleanups.
9733 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9735 * solib.c (reload_shared_libraries): New function.
9736 (_initialize_solib): Add callbacks for ``set solib-search-path''
9737 and ``set solib-absolute-prefix''.
9739 2003-02-20 David Carlton <carlton@math.stanford.edu>
9741 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9743 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9744 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9745 * ada-typeprint.c (ada_typedef_print): Ditto.
9746 * ax-gdb.c (gen_var_ref): Ditto.
9747 * breakpoint.c (print_one_breakpoint): Ditto.
9748 * buildsym.c (finish_block): Ditto.
9749 * c-valprint.c (c_val_print): Ditto.
9750 * expprint.c (print_subexp): Ditto.
9751 * findvar.c (locate_var_value): Ditto.
9752 * infcmd.c (jump_command): Ditto.
9753 * linespec.c (decode_line_2, decode_compound): Ditto.
9754 * maint.c (maintenance_translate_address): Ditto.
9755 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9756 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9758 * p-valprint.c (pascal_val_print): Ditto.
9759 * stabsread.c (define_symbol): Ditto.
9760 * stack.c (print_frame, frame_info, print_block_frame_locals)
9761 (print_frame_arg_vars, return_command): Ditto.
9762 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9763 * symmisc.c (print_symbol): Ditto.
9764 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9765 (compare_search_syms, print_symbol_info, print_msymbol_info)
9766 (rbreak_command): Ditto.
9767 * tracepoint.c (tracepoints_info): Ditto.
9768 * typeprint.c (typedef_print): Ditto.
9769 * valops.c (value_of_variable, hand_function_call): Ditto.
9770 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9771 * ada-typeprint.c: Update Copyright.
9772 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9773 * tracepoint.c, cli/cli-cmds.c: Ditto.
9775 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9777 * frame.c (generic_unwind_get_saved_register): Make non-static.
9778 * frame.h (generic_unwind_get_saved_register): Declare.
9779 * mips-tdep.c (read_next_frame_reg): Fetch register from
9780 current regcache when frame is NULL.
9781 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9783 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9784 instead of frame_register_unwind().
9786 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9788 * remote-sim.c (gdbsim_insert_breakpoint)
9789 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9792 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9794 * remote.c (_initialize_remote): Add commands "set/show remote
9795 hardware-watchpoint-limit" and "set/show remote
9796 hardware-breakpoint-limit".
9797 (remote_hw_watchpoint_limit): Initialize to -1.
9798 (remote_hw_breakpoint_limit): Ditto.
9799 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9801 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9803 * coff-pe-read.c: New file - support reading of minimal symbols from a
9804 portable executable using the export table.
9805 * coff-pe-read.h: New file.
9806 * coffread.c: Include coff-pe-read.h.
9807 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9808 debugging symbols found.
9809 * Makefile.in (SFILES): Add coff-pe-read.o.
9810 (coff_pe_read_h): Define.
9811 (COMMON_OBS): Add coff-pe-read.o.
9812 (coffread.o): Add coff_pe_read_h dependency.
9813 (coff-pe-read.o): New target.
9815 2003-02-19 David Carlton <carlton@math.stanford.edu>
9817 * Makefile.in (SFILES): Add block.c.
9819 (COMMON_OBS): Add block.o.
9821 (x86-64-tdep.o): Add $(block_h).
9822 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9823 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9824 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9825 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9826 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9827 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9828 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9829 * value.h: Add opaque declaration for struct block.
9830 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9831 * ada-lang.h: Ditto.
9832 * x86-64-tdep.c: #include "block.h"
9833 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9834 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9835 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9836 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9837 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9838 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9839 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9840 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9841 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9842 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9843 * symtab.c (block_function): Ditto.
9844 (contained_in): Ditto.
9845 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9846 block.h. Add opaque declaration for struct block.
9847 * symtab.h: Move block_function and contained_in declarations to
9848 block.h. Add opaque declarations for struct block, struct
9850 (struct block): Move to block.h.
9851 (struct blockvector): Ditto.
9852 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9853 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9854 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9855 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9856 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9858 * block.c: New file.
9859 * block.h: New file.
9861 2003-02-19 Theodore A. Roth <troth@openavr.org>
9863 * avr-tdep.c (avr_extract_return_value): Remove function.
9864 (avr_store_return_value): Remove function.
9865 (avr_extract_struct_value_address): Remove function.
9866 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9868 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9870 * rs6000-tdep.c: Include "gdb_assert.h".
9871 (registers_e500): Add "acc" and "spefscr".
9872 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9873 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9874 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9876 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9878 2003-02-18 Keith Seitz <keiths@redhat.com>
9880 * Makefile.in: Add gdbtk-interps.c.
9882 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9884 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9885 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9887 2003-02-18 Andrew Cagney <cagney@redhat.com>
9889 * symtab.h (struct objfile): Add opaque declaration.
9891 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9893 From Jim Ingham <jingham@apple.com>:
9894 * dbxread.c (process_one_symbol): Use last_function_start rather
9895 than function_start_offset to find the real beginning of the
9896 current function. The latter is just the text section offset on
9897 some systems, the former is always the real function start.
9899 2003-02-17 Andrew Cagney <cagney@redhat.com>
9901 * configure.in: Revert ${target} != ${host}.
9903 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9905 * configure.in (Makefile): Use the test ${target} != ${host},
9906 instead of the absence of the "nm.h" file, to determine of the
9907 configuration non-native.
9908 * configure: Regenerate.
9910 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9912 From Brian Ford <ford@vss.fsi.com>
9914 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9915 conditionalize tui_active test.
9916 (lookup_cmd_1): Ditto.
9918 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9920 * configure.in: Add check for _etext.
9921 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9923 * config.in, configure: regenerated.
9925 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9927 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9929 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9931 * main.c (tui_version): Delete variable.
9932 (captured_main): When --tui, set interpreter_p to "tui" instead of
9933 enabling tui_version.
9934 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9936 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9937 * cli/cli-cmds.c (disassemble_command): Ditto.
9938 * defs.h (tui_version): Delete declaration.
9939 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9940 (tui-interp.o): Add rules.
9941 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9943 2003-02-14 Christopher Faylor <cgf@redhat.com>
9945 * win32-nat.c (register_loaded_dll): Correctly set address range for
9948 2003-02-12 Jason Molenda (jmolenda@apple.com)
9950 * symmisc.c (print_objfile_statistics): Include information about
9951 the number of psymtabs and symtabs in each object file.
9953 2003-02-13 Keith R Seitz <keiths@redhat.com>
9955 * main.h (struct captured_main_args): Add interpreter_p.
9956 * main.c (captured_main): Initialize interpreter_p from context.
9957 * gdb.c (main): Set interpreter_p argument.
9958 * Makefile.in (gdb.o): Add dependency for interps.h.
9960 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9962 * event-top.c (cli_command_loop): Delete declaration.
9963 (_initialize_event_loop): Delete function setting event_loop_hook.
9964 * event-top.h (cli_command_loop): Declare. Update copyright.
9965 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9966 * interps.c (current_interp_command_loop): When event_loop_p, call
9969 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9971 * interps.h (interp_command_loop_ftype): Change return type to
9974 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9976 * x86-64-tdep.c (x86_64_extract_return_value)
9977 (x86_64_store_return_value): Use regcache instead of regbuf.
9978 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9979 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9981 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9983 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9984 * aclocal.m4: Regenerate.
9985 * configure: Regenerate.
9987 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9988 TCL_LD_SEARCH_FLAGS.
9990 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9992 * dwarf2cfi.c: Reindented.
9994 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9996 * interps.c (clear_interpreter_hooks): Convert function definition
9999 2003-02-07 David Carlton <carlton@math.stanford.edu>
10001 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10003 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10005 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10006 (struct type): ...to here.
10007 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10009 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10010 (replace_type): Set length on all type variants for a given type.
10012 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10014 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10016 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10018 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10020 * Makefile.in (symm-nat.o): Update dependencies.
10021 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10022 (lynx-nat.o, ia64-linux-nat.): Ditto.
10023 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10024 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10025 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10027 * Makefile.in (inflow_h): Define.
10028 (procfs.o, inflow.o, procfs.o): Update dependencies.
10029 * inftarg.c (child_stop): Delete extern declaration of
10030 inferior_process_group. Include "inflow.h".
10031 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10032 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10033 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10034 (our_process_group, inferior_process_group): Extern declarations.
10036 * procfs.c: Include "gdb_assert.h".
10038 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10039 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10040 * jv-typeprint.c (java_type_print_base): Ditto.
10041 * typeprint.c (typedef_print): Eliminate STREQ.
10042 * cli/cli-script.c (define_command, define_command): Ditto.
10043 * main.c (captured_main): Ditto.
10044 * values.c (lookup_internalvar): Ditto.
10045 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10046 within `if' conditional.
10047 * linespec.c (decode_line_2): Ditto.
10048 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10049 (bfd_openw_with_cleanup): Ditto.
10051 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10053 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10054 legacy_extract_return_value and store_return_value to
10055 legacy_return_value.
10057 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10059 * win32-nat.c (get_relocated_section_addrs): New function. Find
10060 section load addresses for symbol handling in relocated DLLs.
10061 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10063 2003-02-05 Fred Fish <fnf@intrinsity.com>
10065 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10067 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10069 (angel_RDI_info): Ditto.
10070 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10072 (threads_continue_all_with_signals): Ditto.
10074 2003-02-05 Jim Ingham <jingham@apple.com>
10075 Keith Seitz <keiths@redhat.com>
10076 Elena Zannoni <ezannoni@redhat.com>
10077 Andrew Cagney <ac131313@redhat.com>
10079 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10080 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10081 (SUBDIR_MI_OBS): Add "mi-interp.o".
10082 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10083 (SFILES): Add "interps.c".
10084 (COMMON_OBS): Add "interps.o".
10085 (interps_h, mi_main_h): Define.
10086 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10087 (mi-main.o, main.o, event-top.o): Update dependencies.
10088 * cli/cli-interp.c: New file.
10089 * interps.h, interps.c: New files.
10090 * top.c: (gdb_init): Don't install the default interpreter, handed
10092 * main.c: Include "interps.h".
10093 (interpreter_p): Note that it should malloc'ed.
10094 (captured_command_loop): Call current_interp_command_loop.
10095 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10096 xfree and xstrdup when updating interpreter_p. Install the
10097 default interpreter. Add hack to stop mi1's copyright notice
10099 * event-top.h (gdb_setup_readline): Declare.
10100 (gdb_disable_readline): Declare.
10101 * event-top.c: Include "interps.h".
10102 (display_gdb_prompt): Call current_interp_display_prompt_p.
10103 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10104 gdb_stdlog, and gdb_stdtarg.
10105 (_initialize_event_loop): Don't call gdb_setup_readline.
10106 * cli-out.c (cli_out_set_stream): New function.
10107 * cli-out.h (cli_out_set_stream): Declare.
10109 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10111 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10112 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10113 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10114 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10115 config/i386/i386v42mp.mt: Removed.
10117 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10119 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10122 2003-02-05 Michael Chastain <mec@shout.net>
10124 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10125 2.12.1 and earlier versions.
10127 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10129 Remove orphaned hosts, targets and files.
10130 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10131 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10132 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10133 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10134 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10135 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10136 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10137 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10138 * config/sparc/tm-sp64sim.h: Delete.
10139 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10141 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10142 mips*-dec-mach3* targets.
10144 2003-02-04 Michael Chastain <mec@shout.net>
10146 * NEWS: Fix typo: sepcifying -> specifying.
10148 2003-02-04 Michael Chastain <mec@shout.net>
10150 * dwarfread.c: Add documentation on the state of dwarf-1,
10151 looking towards obsoletion.
10153 2003-02-03 Michael Chastain <mec@shout.net>
10155 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10156 gdb/testsuite/gdb.c++/pr-1023.exp.
10158 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10160 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10161 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10163 * utils.c (init_page_info): Delete reference to MPW in comments.
10164 * main.c (captured_main): Delete #ifdef MPW.
10166 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10168 * NEWS: Note that the m32r-*-elf* is obsolete.
10169 * monitor.c (monitor_expect): Obsolete reference to m32r.
10170 * configure.tgt: Mark m32r-*-elf* as obsolete.
10171 * MAINTAINERS: Mark m32k as obsolete.
10172 * m32r-rom.c: Obsolete file.
10173 * config/m32r/m32r.mt: Obsolete file.
10174 * config/m32r/tm-m32r.h: Obsolete file.
10175 * m32r-stub.c: Obsolete file.
10176 * m32r-tdep.c: Obsolete file.
10178 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10180 * NEWS: Mention that the z8k-zilog-none is obsolete.
10181 * MAINTAINERS: Mark z8k as obsolete.
10182 * configure.tgt: Obsolete the z8k-*-coff* target.
10183 * config/z8k/z8k.mt: Obsolete file.
10184 * config/z8k/tm-z8k.h: Obsolete file.
10185 * z8k-tdep.c: Obsolete file.
10187 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10189 * NEWS: Mention that the mn10200-elf is obsolete.
10190 * configure.tgt: Obsolete mn10200-*-* target.
10191 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10192 mention that the mn10200 is obsolete.
10193 * breakpoint.h: Ditto.
10194 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10195 * config/mn10200/mn10200.mt: Obsolete file.
10196 * config/mn10200/tm-mn10200.h: Obsolete file.
10197 * mn10200-tdep.c: Obsolete file.
10199 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10201 * MAINTAINERS: Mark h8500 as obsolete.
10202 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10203 * findvar.c (value_from_register): Ditto.
10204 * h8500-tdep.c: Mark file as obsolete.
10205 * config/h8500/h8500.mt: Ditto.
10206 * config/h8500/tm-h8500.h: Ditto.
10207 * NEWS: Mention that h8500 is obsolete.
10209 2003-02-04 David Carlton <carlton@math.stanford.edu>
10211 * objfiles.c (allocate_objfile): Always set name. Add comment at
10213 * jv-lang.c (get_dynamics_objfile): Add comment.
10215 2003-02-04 David Carlton <carlton@math.stanford.edu>
10217 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10218 * printcmd.c (build_address_symbolic): Replace uses of
10219 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10220 SYMBOL_NAME, and asm_demangle.
10223 2003-02-04 David Carlton <carlton@math.stanford.edu>
10225 * linespec.c (decode_compound): Extract code into
10227 (lookup_prefix_sym): New function.
10229 2003-02-04 David Carlton <carlton@math.stanford.edu>
10231 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10232 FLOAT_COERCION_BADNESS.
10233 * gdbtypes.c (rank_one_type): Replace all uses of
10234 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10236 2003-02-04 Jim Blandy <jimb@redhat.com>
10238 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10239 section, let dwarf_macinfo_section point to it, not
10242 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10244 Pointed out by Anton Blanchard <anton@samba.org>.
10245 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10246 (ppc_linux_at_sigtramp_return_path): Use it.
10248 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10250 * defs.h (streq): Add prototype.
10251 * utils.c (streq): New function.
10253 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10254 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10255 * mdebugread.c (new_symbol): Likewise.
10256 * stabsread.c (define_symbol): Likewise.
10257 * coffread.c (process_coff_symbol): Likewise.
10258 * dwarfread.c (new_symbol): Likewise.
10260 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10261 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10263 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10264 SYMBOL_INIT_DEMANGLED_NAME.
10265 * objfiles.c: Include "hashtab.h".
10266 (allocate_objfile): Call htab_set_functions_ex for the
10267 demangled_names_hash.
10268 (free_objfile): Call htab_delete for the demangled_names_hash.
10269 * objfiles.h (struct htab): Add declaration.
10270 (struct objfile): Add demangled_names_hash.
10271 * symfile.c: Include "hashtab.h".
10272 (reread_symbols): Call htab_delete for the demangled_names_hash.
10273 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10274 SYMBOL_NAME in the bcache.
10275 * symtab.c: Include "hashtab.h". Update comments.
10276 (create_demangled_names_hash, symbol_set_names): New functions.
10277 (symbol_find_demangled_name): New function, broken out from
10278 symbol_init_demangled_names.
10279 (symbol_init_demangled_names): Use it.
10280 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10281 (SYMBOL_SET_NAMES): New macro.
10282 (symbol_set_names): Add prototype.
10284 2003-02-03 Jim Blandy <jimb@redhat.com>
10286 Use a single, consistent representation for an empty minimal
10287 symbol table in an objfile.
10288 * objfiles.c (terminate_minimal_symbol_table): New function.
10289 (allocate_objfile): Call it.
10290 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10291 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10293 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10294 objfile has minimal symbols, compare minimal_symbol_count to zero,
10295 instead of comparing msymbols with NULL.
10296 * objfiles.c (have_minimal_symbols): Same.
10297 * solib-sunos.c (solib_add_common_symbols): Call
10298 terminate_minimal_symbol_table.
10299 * symfile.c (reread_symbols): Same.
10301 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10303 * s390-tdep.c (s390_address_class_type_flags)
10304 (s390_address_class_type_flags_to_name)
10305 (s390_address_class_name_to_type_flags): New functions.
10306 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10307 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10309 2003-02-03 Michael Snyder <msnyder@redhat.com>
10311 * arm-tdep.c: Fix spell-o in comment.
10313 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10315 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10316 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10317 error messages to contain BFD filename.
10319 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10321 Fix PR gdb/742 gdb/743 gdb/877
10322 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10323 (do_mixed_source_and_assembly): Use
10324 make_cleanup_ui_out_tuple_begin_end and
10325 make_cleanup_ui_out_tuple_begin_end.
10326 (do_mixed_source_and_assembly): Ditto.
10327 * thread.c (do_captured_list_thread_ids): Ditto.
10328 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10329 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10330 ui_out_tuple_end): Delete prototypes.
10331 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10332 ui_out_list_end, ui_out_tuple_end): Delete.
10334 From Kevin Buettner <kevinb@redhat.com>:
10335 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10336 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10337 (do_cleanup_table_end): New functions.
10338 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10339 Use cleanups to invoke_ui_out_tuple_end().
10340 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10341 * cli/cli-setshow.c (cmd_show_list): Use
10342 make_cleanup_ui_out_tuple_begin_end.
10344 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10346 * frame.c (frame_unwind_register): New function.
10347 (frame_unwind_unsigned_register): Use.
10348 (frame_unwind_signed_register): Use.
10349 (frame_read_register): New function.
10350 * frame.h (frame_unwind_register): Declare.
10351 (frame_read_register): Declare.
10353 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10354 and frame_unwind_register instead of read_memory, write_register
10355 and deprecated_write_register_bytes.
10357 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10359 * frame.h: Note that namelen can be negative.
10360 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10363 * NEWS: Mention that the d10v's `regs' command is deprecated.
10364 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10365 (d10v_print_registers_info): New function.
10366 (show_regs): Call d10v_print_registers_info.
10367 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10369 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10371 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10372 lost in the previous patch.
10374 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10376 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10377 * stack.c (print_frame_info_base): Output complete FRAME tuple
10378 for synthesized frames.
10380 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10382 * mips-nat.c (zerobuf): Delete.
10383 (fetch_inferior_registers): Alloc local zerobuf.
10384 (fetch_core_registers): Alloc local zerobuf.
10385 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10386 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10387 * thread-db.c (thread_db_store_registers): Ditto.
10388 * sh-tdep.c (sh_do_register): Ditto.
10389 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10390 * remote-sim.c (gdbsim_store_register): Ditto.
10391 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10392 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10393 * monitor.c (monitor_supply_register): Ditto.
10394 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10395 * mips-nat.c (fetch_inferior_registers): Ditto.
10396 * m68klinux-nat.c (fetch_register): Ditto.
10397 * lynx-nat.c (fetch_inferior_registers): Ditto.
10398 (fetch_inferior_registers): Ditto.
10399 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10400 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10401 (hpux_thread_store_registers): Ditto.
10402 * hppah-nat.c (fetch_register): Ditto.
10403 * hppab-nat.c (fetch_register): Ditto.
10404 * hppa-tdep.c (pa_register_look_aside): Ditto.
10405 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10406 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10408 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10410 * gdbarch.sh: Explictly specify all method levels. When a
10411 variable with an empty level, provide a non-multi-arch default.
10412 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10413 * gdbarch.h: Re-generate.
10414 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10415 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10417 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10419 * defs.h (host_pointer_to_address): Delete declaration.
10420 (address_to_host_pointer): Delete declaration.
10421 * utils.c (host_pointer_to_address): Delete function.
10422 (address_to_host_pointer): Delete function.
10423 * procfs.c (procfs_address_to_host_pointer): New function.
10424 * procfs.c (proc_set_watchpoint): Use.
10425 (procfs_can_use_hw_breakpoint): Update comments.
10426 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10427 (som_solib_add): Use.
10428 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10429 * hppa-tdep.c (unwind_command): Use.
10431 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10433 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10436 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10437 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10438 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10439 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10440 (define_symbol): Update.
10441 * symfile.c (generic_load): Remove references to nindy.
10442 * symtab.c: Remove references to nindy.
10444 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10446 * infcmd.c (print_float_info): Delete code conditional on
10448 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10449 * config/m68k/nm-apollo68b.h: Ditto.
10450 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10451 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10452 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10454 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10456 * config/i386/tm-i386os9k.h: Removed.
10458 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10459 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10460 they're identical to i[3456]86-*-sysv* now.
10461 * config/i386/i386v32.mh: Removed.
10462 * config/i386/xm-i386v32.h: Removed.
10463 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10465 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10467 * config/i386/i386dgux.mh: Removed.
10468 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10470 * configure.in: Fix typo.
10471 * configure: Regenerated.
10473 2003-01-31 David Carlton <carlton@math.stanford.edu>
10475 * dwarf2read.c (dwarf2_locate_sections): Set
10476 dwarf_ranges_section.
10478 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10480 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10481 * utils.c: Update comments documenting legitimate uses of PTR.
10483 * utils.c: Re-indent.
10485 * config/djgpp/fnchange.lst: Delete nindy files.
10486 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10487 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10488 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10489 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10490 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10491 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10492 * Makefile.in (init.c): Remove nindy references.
10493 (saber_gdb): Delete rule.
10494 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10495 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10497 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10498 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10499 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10500 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10501 nindy-share/stop.h.
10502 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10503 * saber.suppress: Delete file.
10505 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10507 * dbxread.c (stabs_data): New static variable.
10508 (fill_symbuf): Support an in-memory buffer for stabs data.
10509 (stabs_seek): New function.
10510 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10511 (read_ofile_symtab): Use stabs_seek.
10512 (elfstab_build_psymtabs): Take an asection* instead of
10513 an offset and size. Relocate the stabs data if necessary.
10514 Save the section* for dbx_psymtab_to_symtab.
10515 * dwarf2read.c: Add section variables for each debug section.
10516 (dwarf2_locate_sections): Fill them in.
10517 (dwarf2_read_section): Take an asection* argument.
10518 Relocate the section contents if necessary.
10519 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10520 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10521 it to dwarf2_read_section.
10522 (dwarf2_build_frame_info): Update callers.
10523 * elfread.c (elf_symfile_read): Update call to
10524 elfstab_build_psymtabs.
10525 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10526 (DBX_STAB_SECTION): New macro.
10527 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10528 * symfile.c (symfile_dummy_outputs): New function.
10529 (symfile_relocate_debug_section): New function.
10530 * symfile.h (symfile_relocate_debug_section): Add prototype.
10532 2003-01-31 Richard Henderson <rth@redhat.com>
10534 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10535 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10536 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10537 * alpha-tdep.c (alpha_register_name): Add "unique".
10538 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10539 (ALPHA_UNIQUE_REGNUM): New.
10540 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10542 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10544 * README: Remove reference to Ericsson 1800 monitor.
10545 * Makefile.in (remote-es.o): Delete rule.
10546 (ALLDEPFILES): Delete remote-es.c.
10547 * remote-es.c: Delete file.
10548 * config/m68k/es1800.mt: Delete file.
10549 * config/djgpp/fnchange.lst: Update.
10550 * configure.tgt: Delete m68*-ericsson-* target.
10552 2003-01-31 Adam Fedor <fedor@gnu.org>
10554 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10555 Remove duplicate/shadowing variable of same name.
10557 2003-01-30 Jim Blandy <jimb@redhat.com>
10559 * symfile.c (find_separate_debug_file): Assert that the objfile's
10560 directory name we compute ends with a slash, and then assume that
10561 that's so everywhere we use it.
10563 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10565 * valops.c (value_assign): Flush frame cache after stores to memory
10568 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10570 * Makefile.in (mon960-rom.o): Delete rule.
10571 * mon960-rom.c: Delete file.
10573 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10575 * d10v-tdep.c: Include "frame-unwind.h".
10576 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10578 (next_addr, uses_frame): Delete.
10579 (struct d10v_unwind_cache): Define.
10580 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10581 Use info instead of next_addr and uses_frame globals.
10582 (d10v_frame_init_saved_regs): Delete function.
10583 (d10v_init_extra_frame_info): Delete function.
10584 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10585 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10586 init_frame_pc or frame_saved_pc.
10587 (d10v_pop_frame): Delete function.
10588 (do_d10v_pop_frame): Delete function.
10589 (d10v_frame_chain): Delete function.
10590 (d10v_frame_chain_valid): Delete function.
10591 (d10v_frame_pc_unwind): New function.
10592 (d10v_frame_id_unwind): New function.
10593 (saved_regs_unwinder): New function.
10594 (d10v_frame_register_unwind): New function.
10595 (d10v_frame_pop): New function.
10596 (d10v_frame_unwind): New variable.
10597 (d10v_frame_p): New function.
10598 (d10v_frame_saved_pc): Delete function.
10599 * Makefile.in (d10v-tdep.o): Update dependencies.
10601 2003-01-30 J. Brobecker <brobecker@gnat.com>
10603 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10604 causing some regressions due to a change in the default value
10607 2003-01-29 Richard Henderson <rth@redhat.com>
10608 Elena Zannoni <ezannoni@redhat.com>
10609 Daniel Jacobowitz <drow@mvista.com>
10612 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10614 (RANGES_SECTION): New.
10615 (dwarf_ranges_buffer): New variable.
10616 (struct comp_unit_head): Add member "die".
10617 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10618 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10619 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10620 (dwarf2_locate_sections): Likewise.
10621 (dwarf2_build_psymtabs): Read .debug_ranges.
10622 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10623 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10624 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10625 Look for DW_AT_ranges and return the bounding box.
10627 2003-01-29 Brian Ford <ford@vss.fsi.com>
10629 * win32-nat.c (cygwin_pid): Removed as unused.
10630 (child_attach): Try fall back to Cygwin pid.
10632 2003-01-29 Jim Blandy <jimb@redhat.com>
10634 * objfiles.h (struct objfile): Doc fix.
10636 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10638 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10639 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10640 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10641 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10642 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10643 (FRAME_SAVED_PC): Change to a function with predicate.
10644 * gdbarch.h, gdbarch.c: Re-generate.
10646 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10648 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10650 * complaints.c (complain): Delete function.
10651 * complaints.h (struct deprecated_complaint): Delete definition.
10652 (complain): Delete declaration.
10654 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10656 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10659 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10661 * sentinel-frame.h, sentinel-frame.c: New files.
10662 * Makefile.in (frame.o): Update dependencies.
10663 (SFILES): Add sentinel-frame.c.
10664 (sentinel_frame_h): Define.
10665 (COMMON_OBS): Add sentinel-frame.o.
10666 (sentinel-frame.o): Specify dependencies.
10667 * frame.c: Include "sentinel-frame.h".
10668 (frame_register_unwind): Rewrite assuming that there is always a a
10670 (frame_register, generic_unwind_get_saved_register): Ditto.
10671 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10672 (create_sentinel_frame, unwind_to_current_frame): New functions.
10673 (get_current_frame): Rewrite using create_sentinel_frame and
10674 unwind_to_current_frame. When possible, always create a frame.
10675 (create_new_frame): Set next to the sentinel frame.
10676 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10677 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10678 ID cache when necessary.
10679 (frame_saved_regs_id_unwind): Use frame_relative_level.
10680 (deprecated_generic_get_saved_register): Use frame_relative_level,
10681 get_frame_saved_regs, get_frame_pc, get_frame_base and
10683 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10686 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10688 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10690 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10692 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10693 (maintenance_set_profile_cmd): Use error () instead of warning ().
10695 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10697 * configure.in: Check that -pg works if using --enable-profiling.
10698 Check for monstartup and _mcleanup regardless of --enable-profiling.
10699 * maint.c: Check for monstartup and _mcleanup before using them.
10700 * config.in: Regenerated.
10701 * configure: Regenerated.
10703 2003-01-24 Nick Clifton <nickc@redhat.com>
10705 * Add sh2e support:
10707 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10709 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10710 (sh2e_show_regs): New.
10711 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10712 * config/sh/tm-sh.h: Added sh2e to comments.
10714 2003-01-23 Jim Blandy <jimb@redhat.com>
10716 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10717 symbols found)" message here; we haven't checked for a separate
10718 debug info file yet, so we don't know yet.
10719 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10720 we've looked everywhere. Also, there's no need to print a special
10721 message when we're loading the separate debug info file: the one
10722 symbol_file_add prints is fine.
10724 2003-01-23 Alexander Larsson <alexl@redhat.com>
10725 Jim Blandy <jimb@redhat.com>
10727 Add support for executables whose debug info has been separated
10728 out into a separate file, leaving only a link behind.
10729 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10730 and separate_debug_objfile_backlink.
10731 (put_objfile_before): New declaration.
10732 * symfile.c: #include "filenames.h".
10733 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10734 debug info in a separate file, read that, too. Save the addrs
10735 argument, so we can use it again to read the separated debug info;
10736 syms_from_objfile modifies the table we pass it.
10737 (reread_symbols): After re-reading an objfile, call
10738 reread_separate_symbols to refresh its separate debug info
10739 objfile, if it has one.
10740 (reread_separate_symbols, find_separate_debug_file,
10741 get_debug_link_info, separate_debug_file_exists): New functions.
10742 (debug_file_directory): New global var.
10743 (_initialize_symfile): Initialize debug_file_directory, and
10744 provide the new `set debug-file-directory' command to let the user
10746 * objfiles.c (free_objfile): If this objfile has its debug info in
10747 a separate objfile, free that one too. If this is itself a
10748 separate debug info objfile, clear our parent's backlink.
10749 (put_objfile_before): New function.
10750 * utils.c (gnu_debuglink_crc32): New function.
10751 * defs.h (gnu_debuglink_crc32): New declaration.
10752 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10753 * configure.in: Handle --with-separate-debug-dir config option.
10754 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10755 * acconfig.h (DEBUGDIR): New macro.
10756 * configure, aclocal.m4, config.in: Regenerated.
10758 2003-01-22 Jim Blandy <jimb@redhat.com>
10760 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10761 like the old symbol_file_add, but taking new arguments: you can
10762 now pass in either a `struct section_addr_info' list to say where
10763 each section is loaded, or a `struct section_offsets' table. Pass
10764 these new arguments through to syms_from_objfile as appropriate.
10765 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10766 with the appropriate quiescent values for the new arguments.
10768 * symfile.c: #include "gdb_assert.h".
10769 (syms_from_objfile): Add the ability to pass in a section offset
10770 table directly, as an alternative to the section_addr_info table.
10771 Document arguments better.
10772 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10773 * symfile.h (syms_from_objfile): Update declaration.
10774 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10776 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10778 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10780 Original patch by Tom Tromey <tromey@cygnus.com> and
10781 Jason Molenda <jmolenda@apple.com>.
10782 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10783 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10784 * NEWS: Mention profiling.
10785 * configure.in (--enable-gdbtk): Fix typo.
10786 (--enable-profiling): New. Set PROFILE_CFLAGS.
10787 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10789 (profiling_state): New variable.
10790 (mcleanup_wrapper): New function.
10791 (_initialize_maint): Remove NOTYET, fix call to
10792 add_setshow_boolean_cmd for "maint set profile".
10793 * configure: Regenerated.
10795 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10797 * Makefile.in (install-gdbtk): Install PNG images too.
10799 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10801 * exec.c (text_start): Delete global variable.
10802 (exec_file_attach): Make text_start local to the function.
10803 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10804 * valops.c (hand_function_call): Delete code that handles
10805 BEFORE_TEXT_END and AFTER_TEXT_END.
10806 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10807 of CALL_DUMMY_LOCATION.
10808 * gdbarch.c: Regenerate.
10809 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10810 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10811 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10812 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10813 (text_end): Delete extern declaration.
10815 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10817 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10818 * blockframe.c (backtrace_below_main): Move to "frame.c".
10819 (frame_chain_valid): Delete check for backtrace_below_main.
10820 (_initialize_blockframe): Delete initialization, move ``set
10821 backtrace-below-main'' command to "frame.c".
10822 (do_flush_frames_sfunc): Delete function.
10823 * frame.c: Include "command.h" and "gdbcmd.h".
10824 (frame_type_from_pc): New function.
10825 (create_new_frame): Use frame_type_from_pc.
10826 (legacy_get_prev_frame): New function.
10827 (get_prev_frame): Rewrite. When an old style frame, call
10828 legacy_get_prev_frame. Otherwize, unwind the PC first.
10829 (_initialize_frame): Add ``set backtrace-below-main'' command.
10830 * Makefile.in (frame.o): Update dependencies.
10832 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10834 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10835 DEPRECATED_REGISTERS_INFO.
10837 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10839 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10840 Maintainers'. Update `Various Maintainers'.
10842 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10844 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10845 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10846 Suppress actual parameters when `-'.
10847 * gdbarch.h, gdbarch.c: Regenerate.
10849 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10851 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10852 code handling dummy frames.
10854 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10856 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10857 (struct frame_unwind): Add field pop.
10858 * frame.h (frame_pop): Declare.
10859 * frame.c (frame_saved_regs_pop): New function.
10860 (trad_frame_unwinder): Add frame_saved_regs_pop.
10861 (frame_pop): New function.
10862 * dummy-frame.c (dummy_frame_pop): New function.
10863 (discard_innermost_dummy): New function.
10864 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10865 (dummy_frame_unwind): Add dummy_frame_pop.
10866 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10867 * valops.c (hand_function_call): Ditto.
10868 * stack.c (return_command): Ditto.
10870 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10872 * cris-tdep.c: Fix function declaration indentation.
10873 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10874 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10875 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10876 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10877 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10878 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10880 2003-01-18 Michael Chastain <mec@shout.net>
10882 * README (Unpacking and Installation -- quick overview):
10883 Warn against ".../gdb-5.3/gdb/configure".
10885 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10887 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10888 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10889 (struct frame_unwind): Declare opaque.
10890 (dummy_frame_p): Declare function.
10891 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10892 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10893 * dummy-frame.c: Include "frame-unwind.h".
10894 (dummy_frame_p): New function.
10895 (dummy_frame_unwind): New variable.
10896 * frame.c: Include "frame-unwind.h".
10897 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10898 to use the new unwind field.
10899 (set_unwind_by_pc): Delete function.
10900 (create_new_frame, get_prev_frame): Set unwind field using
10901 frame_unwind_find_by_pc.
10902 (trad_frame_unwind, trad_frame_unwinder): New variables.
10903 * frame.h (trad_frame_unwind): Declare variable.
10904 (frame_id_unwind_ftype): Delete declaration.
10905 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10906 (struct frame_unwind): Declare opaque.
10907 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10908 register_unwind with a single unwind pointer.
10909 * frame-unwind.h, frame-unwind.c: New files.
10910 * Makefile.in (SFILES): Add frame-unwind.c.
10911 (frame_unwind_h): Define.
10912 (COMMON_OBS): Add frame-unwind.o.
10913 (frame-unwind.o): Specify dependencies.
10914 (frame.o, dummy-frame.o): Update dependencies.
10916 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10918 * ada-valprint.c: Eliminate PTR.
10919 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10920 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10921 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10922 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10923 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10924 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10925 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10927 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10929 * main.c (captured_main): Don't use PTR.
10930 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10931 * gdbtypes.c (lookup_primitive_typename): Ditto.
10932 (lookup_struct_elt_type): Ditto.
10933 * f-valprint.c (info_common_command): Ditto.
10934 (list_all_visible_commons): Ditto.
10935 * jv-typeprint.c (java_type_print_base): Ditto.
10937 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10938 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10939 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10940 i386-interix-nat.c and i386-interix-tdep.c. Rename
10941 m68klinux-nat.c and m68klinux-tdep.c. Rename
10942 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10943 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10944 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10945 * main.c (captured_main): Use xfree, not free.
10947 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10949 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10950 ID back using a parameter.
10951 * frame.c (frame_id_unwind): Update call.
10952 (frame_saved_regs_id_unwind): Update.
10953 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10954 * dummy-frame.h (struct frame_id): Add opaque declaration.
10955 (dummy_frame_id_unwind): Update declaration.
10957 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10959 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10961 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10963 * MAINTAINERS (Stephen P. Smith): Updated email address.
10965 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10968 * breakpoint.c (until_break_command): Add new argument. Use it to
10969 decide whether to stop only at the current frame or not.
10970 * breakpoint.h (until_break_command): Update prototype.
10971 * infcmd.c (until_command): Add new argument to until_break_command
10973 (advance_command): New function.
10974 (_initialize_infcmd): Update help string for 'until' command.
10975 Add new 'advance' command.
10977 2003-01-14 David Carlton <carlton@math.stanford.edu>
10979 * linespec.c (decode_line_1): Normalize comments.
10980 (set_flags): Ditto.
10981 (locate_first_half): Ditto.
10982 (decode_compound): Ditto.
10983 (symtab_from_filename): Ditto.
10984 (decode_all_digits): Ditto.
10985 (decode_dollar): Ditto.
10986 (find_methods): Ditto.
10987 (find_toplevel_char): Ditto.
10989 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10991 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10992 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10993 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10994 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10995 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10996 * language.c, language.h, m32r-tdep.c: Update copyright.
10997 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10998 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10999 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11000 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11001 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11002 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11004 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11006 * stabsread.h (process_later, resolve_cfront_continuation):
11008 Update copyright years.
11009 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11010 Update copyright year.
11011 * dbxread.c(struct cont_elem): Obsolete.
11012 (process_later, process_now): Obsolete functions.
11013 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11014 Update copyright year.
11015 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11016 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11017 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11018 (parse_partial_symbols): Obsolete cfront support.
11020 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11022 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11023 read_cfront_baseclasses, read_cfront_member_functions,
11024 resolve_cfront_continuation,read_cfront_static_fields,
11025 copy_cfront_struct_fields): Obsolete functions.
11026 (define_symbol, read_one_struct_field): Obsolete cfront support.
11027 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11028 Update Copyright year.
11030 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11032 * stack.c (print_frame_info, print_stack_frame_base_stub,
11033 print_stack_frame_base, show_and_print_stack_frame_stub,
11034 show_and_print_stack_frame, print_only_stack_frame_stub,
11035 print_only_stack_frame): Delete functions.
11036 (print_stack_frame_stub): Call print_frame_info instead of
11037 print_frame_info_base.
11038 (print_frame_info_base): Rename to print_frame_info.
11039 (backtrace_command_1): Call print_frame_info, instead of
11040 print_frame_info_base.
11041 (current_frame_command): Call print_stack_frame, instead of
11042 print_only_stack_frame.
11043 (frame_command): Call print_stack_frame, instead of
11044 show_and_print_stack_frame.
11045 (up_command): Ditto.
11046 (down_command): Ditto.
11047 * frame.h (print_only_stack_frame): Delete prototype.
11048 * infrun.c (normal_stop): Call print_stack_frame, instead of
11049 show_and_print_stack_frame.
11050 * thread.c (info_threads_command): Call print_stack_frame, instead
11051 of print_only_stack_frame.
11053 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11055 * README (Graphical interface to GDB): Update URL. Point at
11058 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11061 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11063 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11066 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11068 * thread-db.c (attach_thread): Prototype.
11069 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11070 thread information (ti), and valid flags (th_valid, ti_valid).
11071 (attach_thread): Move target_pid_to_str call to after the thread
11072 is added to GDB's list. Initialize the cache.
11073 (thread_get_info_callback, thread_db_map_id2thr)
11074 (thread_db_get_info): New functions.
11075 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11076 (thread_db_store_registers, thread_db_thread_alive)
11077 (thread_db_get_thread_local_address): Use them.
11078 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11079 of calling error() for threads in unknown state.
11081 (clear_lwpid_callback): New function.
11082 (thread_db_resume): Use it to clear the cache.
11084 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11086 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11087 (resume_callback): Remove dead code.
11089 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11091 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11093 * gdbarch.h, gdbarch.c: Regenerate.
11094 * stack.c (frame_info): Only initialize the saved registers when
11095 FRAME_INIT_SAVED_REGS_P.
11096 * frame.c (frame_saved_regs_register_unwind): Assert
11097 FRAME_INIT_SAVED_REGS_P.
11098 (deprecated_generic_get_saved_register): Ditto.
11100 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11102 * source.c (openp): Squelch warning about "filename".
11104 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11106 * source.c (openp): If the file does not exist don't necessarily
11109 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11112 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11113 (integer_types_same_name_p): New function.
11114 (rank_one_type): Use it.
11115 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11117 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11119 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11121 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11122 * configure.in: Add --with-sysroot.
11123 * configure: Regenerated.
11124 * main.c (gdb_sysroot): New variable.
11125 (captured_main): Initialize gdb_sysroot.
11126 * defs.h (gdb_sysroot): New extern declaration.
11127 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11129 2003-01-12 Michael Chastain <mec@shout.net>
11131 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11133 2003-01-12 Michael Chastain <mec@shout.net>
11135 * top.c (print_gdb_version): Bump copyright year to 2003.
11137 2003-01-12 David Carlton <carlton@bactrian.org>
11139 * linespec.c (symtab_from_filename): Rename variable 's' to
11142 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11144 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11146 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11148 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11150 * d10v-tdep.c: Include "gdb_assert.h".
11151 (d10v_store_return_value): Rewrite to match current interface.
11152 (d10v_extract_struct_value_address): Ditto.
11153 (d10v_extract_return_value): Ditto.
11154 (d10v_gdbarch_init): Set store_restore_value,
11155 extract_struct_value_address and extract_return_value.
11157 2003-01-12 J. Brobecker <brobecker@gnat.com>
11159 * hpread.c (set_namestring): New procedure replacing the
11160 SET_NAMESTRING macro.
11161 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11162 by calls to set_namestring.
11164 2003-01-11 J. Brobecker <brobecker@gnat.com>
11166 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11167 a compilation warning.
11168 (hpread_process_one_debug_symbol): Likewise.
11170 2003-01-10 David Carlton <carlton@math.stanford.edu>
11172 * linespec.c (decode_line_1): Rename variable 's' to
11174 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11175 (decode_dollar): Ditto.
11176 (decode_variable): Ditto.
11177 (symbol_found): Ditto.
11179 2003-01-09 Michael Chastain <mec@shout.net>
11181 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11183 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11185 * win32-nat.c (set_process_privilege): New function.
11186 (child_attach): Call set_process_privilege() to enable the
11187 SE_DEBUG_NAME user privilege if available in process token.
11189 2003-01-10 J. Brobecker <brobecker@gnat.com>
11191 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11192 compilation error in the previous revision.
11194 2003-01-09 David Carlton <carlton@math.stanford.edu>
11196 * linespec.c: Update copyright.
11198 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11200 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11201 than inferior_ptid.
11202 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11204 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11206 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11208 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11209 (frame_saved_regs_zalloc): Update.
11210 (frame_saved_regs_register_unwind): Update.
11211 (create_new_frame): Update.
11212 (get_prev_frame): Update.
11213 (frame_extra_info_zalloc): Update.
11214 (deprecated_get_frame_saved_regs): Update.
11215 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11216 * cris-tdep.c: Update comment.
11218 * somsolib.h: Fix function indentation.
11219 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11220 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11221 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11222 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11223 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11225 * infrun.c (follow_fork): Use ISO C definition.
11226 * expprint.c (print_subexp): Use xfree instead of free.
11227 * charset.c: Include "gdb_string.h" instead of <string.h>.
11228 (register_iconv_charsets): Use ISO C definition.
11229 (host_charset, target_charset): Ditto.
11230 * Makefile.in (charset.o): Update dependencies.
11231 (mi-cmd-env.o): Update dependencies.
11233 2003-01-08 Andrew Cagney <cagney@redhat.com>
11235 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11238 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11240 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11241 build directories. Save edited gdb output in Mbuild.log. If a
11242 build fails, remove any final GDB executable.
11244 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11246 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11247 replacing hex constants with function names and stripping leading
11248 file name directory prefixes.
11250 2003-01-08 Andrew Cagney <cagney@redhat.com>
11252 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11255 2003-01-08 David Carlton <carlton@math.stanford.edu>
11257 * linespec.c (decode_line_1): Move code into decode_variable.
11258 (decode_variable): New function.
11260 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11262 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11264 2003-01-08 Andrew Cagney <cagney@redhat.com>
11266 * cris-tdep.c (cris_frame_init_saved_regs): Use
11267 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11269 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11270 (sh64_nofp_frame_init_saved_regs): Ditto.
11271 (sh_fp_frame_init_saved_regs): Ditto.
11272 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11273 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11274 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11275 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11277 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11279 * minsyms.c (lookup_minimal_symbol): Update comment.
11280 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11281 (lookup_minimal_symbol_solib_trampoline): Likewise.
11283 2003-01-08 Andrew Cagney <cagney@redhat.com>
11285 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11286 frame_relative_level.
11288 * alpha-tdep.c: Use get_frame_extra_info.
11289 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11290 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11291 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11292 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11294 * alpha-tdep.c: Use get_next_frame.
11295 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11296 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11297 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11298 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11299 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11300 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11301 * xstormy16-tdep.c: Ditto.
11303 2003-01-07 Andrew Cagney <cagney@redhat.com>
11305 * alpha-tdep.c: Use get_frame_base.
11306 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11307 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11308 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11309 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11310 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11311 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11312 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11313 * config/sparc/tm-sparc.h: Ditto.
11315 2003-01-07 Andrew Cagney <cagney@redhat.com>
11317 * frame.c (deprecated_get_frame_context): New function.
11318 (deprecated_set_frame_context): New function.
11319 * frame.h (deprecated_get_frame_context): Declare.
11320 (deprecated_set_frame_context): Declare.
11321 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11322 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11324 2003-01-07 Andrew Cagney <cagney@redhat.com>
11326 * frame.c (deprecated_set_frame_next_hack): New function.
11327 (deprecated_set_frame_prev_hack): New function.
11328 * frame.h (deprecated_set_frame_next_hack): Declare.
11329 (deprecated_set_frame_prev_hack): Declare.
11330 * mcore-tdep.c (analyze_dummy_frame): Use
11331 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11332 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11334 2003-01-07 David Carlton <carlton@math.stanford.edu>
11336 * linespec.c (decode_line_1): Move code into decode_dollar.
11337 (decode_dollar): New function.
11339 2003-01-07 Andrew Cagney <cagney@redhat.com>
11341 * arm-tdep.c (arm_init_extra_frame_info): Use
11342 deprecated_update_frame_base_hack.
11343 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11344 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11345 (fix_frame_pointer): Ditto.
11346 (mn10300_analyze_prologue): Ditto.
11348 2003-01-07 Andrew Cagney <cagney@redhat.com>
11350 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11351 extra_info using frame_extra_info_zalloc.
11352 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11353 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11354 (sh64_init_extra_frame_info): Ditto.
11355 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11356 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11357 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11358 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11359 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11360 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11361 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11362 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11363 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11364 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11365 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11366 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11368 * mn10300-tdep.c (analyze_dummy_frame): Use
11369 deprecated_set_frame_extra_info_hack.
11370 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11372 2003-01-07 J. Brobecker <brobecker@gnat.com>
11374 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11375 class is not scText. These do not define "real" procedures.
11376 (parse_partial_symbols): Likewise.
11378 2003-01-06 Michael Snyder <msnyder@redhat.com>
11380 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11382 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11384 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11385 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11386 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11387 deprecated_frame_xmalloc_with_cleanup.
11388 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11389 deprecated_frame_xmalloc.
11390 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11391 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11393 2003-01-06 Andrew Cagney <cagney@redhat.com>
11395 * x86-64-linux-tdep.c: Include "osabi.h".
11396 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11398 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11400 2003-01-06 Andrew Cagney <cagney@redhat.com>
11402 * MAINTAINERS (Target Instruction Set Architectures): Update
11403 arm-elf. Can be built with -Werror, has been multiarched.
11405 * value.h (unpack_long): Make buffer parameter constant.
11406 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11407 * scm-lang.h (scm_parse): Ditto.
11408 * defs.h (extract_typed_address, extract_address): Ditto.
11409 (extract_long_unsigned_integer): Ditto.
11410 * inferior.h (unsigned_pointer_to_address): Ditto.
11411 (signed_pointer_to_address): Ditto.
11412 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11413 * gdbarch.h, gdbarch.c: Regenerate.
11414 * findvar.c (extract_long_unsigned_integer): Update.
11415 (extract_address): Update.
11416 (extract_typed_address): Update.
11417 (unsigned_pointer_to_address): Update.
11418 * values.c (unpack_long): Update.
11419 (unpack_double): Update.
11420 (unpack_pointer): Update.
11421 (unpack_field_as_long): Update.
11422 * d10v-tdep.c (d10v_pointer_to_address): Update.
11423 * avr-tdep.c (avr_pointer_to_address): Update.
11424 * scm-lang.c (scm_unpack): Update.
11425 * findvar.c (signed_pointer_to_address): Update.
11427 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11429 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11430 since it is in i386-tdep.c.
11432 2003-01-06 J. Brobecker <brobecker@gnat.com>
11434 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11435 failure introduced in the previous change.
11437 2003-01-05 Michael Chastain <mec@shout.net>
11439 * README: Remove references to deleted remote-*.c files:
11440 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11441 remote-nrom.c, remote-os9k.c, remote-udi.c.
11443 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11445 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11446 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11447 i386_get_longjmp_target.
11449 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11451 * arm-tdep.c (prologue_cache): Change to a pointer.
11452 (_initialize_arm_tdep): Allocate prologue_cache.
11453 (check_prologue_cache): Update.
11454 (save_prologue_cache): Update.
11455 (arm_gdbarch_init): Update.
11457 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11459 * stabsread.c (update_method_name_from_physname): Call complaint()
11462 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11464 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11465 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11466 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11468 * blockframe.c: Include "gdbcmd.h" and "command.h".
11469 (backtrace_below_main): New variable.
11470 (file_frame_chain_valid, func_frame_chain_valid)
11471 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11472 (generic_func_frame_chain_valid): Remove functions.
11473 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11474 (_initialize_blockframe): New function.
11475 * Makefile.in (blockframe.o): Update dependencies.
11476 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11477 comment. Call frame_chain_valid ().
11478 * frame.h: Remove old prototypes. Add prototype for
11479 frame_chain_valid and update comments to match.
11480 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11481 Remove old comment.
11482 * gdbarch.h: Regenerated.
11483 * gdbarch.c: Regenerated.
11485 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11486 set_gdbarch_frame_chain_valid.
11487 * avr-tdep.c (avr_gdbarch_init): Likewise.
11488 * cris-tdep.c (cris_gdbarch_init): Likewise.
11489 * frv-tdep.c (frv_gdbarch_init): Likewise.
11490 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11491 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11492 (i386_nw_init_abi): Likewise.
11493 (i386_gdbarch_init): Likewise.
11494 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11496 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11497 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11498 * mips-tdep.c (mips_gdbarch_init): Likewise.
11499 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11500 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11501 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11502 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11503 * s390-tdep.c (s390_gdbarch_init): Likewise.
11504 * sh-tdep.c (sh_gdbarch_init): Likewise.
11505 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11506 * v850-tdep.c (v850_gdbarch_init): Likewise.
11507 * vax-tdep.c (vax_gdbarch_init): Likewise.
11508 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11510 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11511 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11512 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11513 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11514 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11515 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11516 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11517 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11519 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11521 * Makefile.in (acconfig_h): Remove incorrect macro.
11522 (config_h): Define.
11523 (osabi.o): Update dependencies.
11524 * configure.tgt: Set gdb_osabi based on target triplet.
11525 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11526 * configure: Regenerated.
11527 * config.in: Regenerated.
11528 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11529 (GDB_OSABI_DEFAULT): Define if not already defined.
11530 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11531 (set_osabi_string): New variables.
11532 (gdbarch_register_osabi): Add new OS ABI to
11533 gdb_osabi_available_names.
11534 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11535 (set_osabi, show_osabi): New functions.
11536 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11538 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11540 * arch-utils.c (gdbarch_info_init): Set osabi to
11541 GDB_OSABI_UNINITIALIZED.
11542 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11543 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11544 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11545 * gdbarch.c: Regenerated.
11546 * gdbarch.h: Regenerated.
11547 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11549 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11550 * osabi.h (enum gdb_osabi): Move to defs.h.
11551 (gdbarch_init_osabi): Update prototype.
11552 * defs.h (enum gdb_osabi): Moved here.
11553 * Makefile.in: Update dependencies.
11555 * alpha-tdep.h: Don't include "osabi.h".
11556 (struct gdbarch_tdep): Remove osabi member.
11557 * alpha-tdep.c: Include "osabi.h".
11558 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11559 iterate over arches. Update call to gdbarch_init_osabi.
11560 (alpha_dump_tdep): Don't dump osabi.
11561 * alpha-linux-tdep.c: Include "osabi.h".
11562 * alpha-osf1-tdep.c: Include "osabi.h".
11563 * alphafbsd-tdep.c: Include "osabi.h".
11564 * alphanbsd-tdep.c: Include "osabi.h".
11566 * arm-tdep.h: Don't include "osabi.h".
11567 (struct gdbarch_tdep): Remove osabi member.
11568 * arm-tdep.c: Include "osabi.h".
11569 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11570 iterate over arches. Update call to gdbarch_init_osabi.
11571 (arm_dump_tdep): Don't dump osabi.
11572 * arm-linux-tdep.c: Include "osabi.h".
11573 * armnbsd-tdep.c: Include "osabi.h".
11575 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11576 Update call to gdbarch_init_osabi.
11578 * i386-tdep.h: Don't include "osabi.h".
11579 (struct gdbarch_tdep): Remove osabi member.
11580 * i386-tdep.c: Include "osabi.h".
11581 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11582 iterate over arches. Update call to gdbarch_init_osabi.
11583 (i386_dump_tdep): Don't dump osabi.
11584 * i386-linux-tdep.c: Include "osabi.h".
11585 * i386-sol2-tdep.c: Include "osabi.h".
11586 * i386bsd-tdep.c: Include "osabi.h".
11587 * i386gnu-tdep.c: Include "osabi.h".
11588 * i386ly-tdep.c: Include "osabi.h".
11589 * i386nbsd-tdep.c: Include "osabi.h".
11590 * i386obsd-tdep.c: Include "osabi.h".
11592 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11593 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11594 check osabi when iterating over arches. Update call to
11595 gdbarch_init_osabi.
11596 (mips_dump_tdep): Don't dump osabi.
11598 * ns32k-tdep.h: Don't include "osabi.h".
11599 (struct gdbarch_tdep): Remove.
11600 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11601 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11602 allocate tdep. Update call to gdbarch_init_osabi.
11603 (ns32k_dump_tdep): Remove.
11604 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11605 * ns32knbsd-tdep.c: Include "osabi.h".
11607 * ppc-tdep.h: Don't include "osabi.h".
11608 (struct gdbarch_tdep): Remove osabi member.
11609 * rs6000-tdep.c: Include "osabi.h".
11610 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11611 osabi when iterating over arches. Update call to
11612 gdbarch_init_osabi.
11613 (rs6000_dump_tdep): Don't dump osabi.
11614 * ppc-linux-tdep.c: Include "osabi.h".
11615 * ppcnbsd-tdep.c: Include "osabi.h".
11617 * sh-tdep.h: Don't include "osabi.h".
11618 (struct gdbarch_tdep): Remove osabi member.
11619 * sh-tdep.c: Include "osabi.h".
11620 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11621 iterate over arches. Update call to gdbarch_init_osabi.
11622 (sh_dump_tdep): Don't dump osabi.
11623 * shnbsd-tdep.c: Include "osabi.h".
11625 * sparc-tdep.c: Include "osabi.h".
11626 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11627 iterate over arches. Update call to gdbarch_init_osabi.
11628 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11631 * vax-tdep.h: Don't include "osabi.h".
11632 (struct gdbarch_tdep): Remove.
11633 * vax-tdep.c: Include "osabi.h".
11634 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11635 iterate over arches. Don't allocate tdep. Update call
11636 to gdbarch_init_osabi.
11637 (vax_dump_tdep): Remove.
11638 (_initialize_vax_tdep): Update call to gdbarch_register.
11640 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11642 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11644 (breakpoint_re_set_one): Don't fetch the value for a disabled
11647 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11649 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11650 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11651 (COERCE_FLOAT_TO_DOUBLE): Remove.
11652 * gdbarch.c: Regenerate.
11653 * gdbarch.h: Regenerate.
11654 * Makefile.in: Remove value_h from gdbarch_h.
11655 * valops.c (coerce_float_to_double): New variable.
11656 (default_coerce_float_to_double): Remove.
11657 (standard_coerce_float_to_double): Remove.
11658 (value_arg_coerce): Use coerce_float_to_double.
11659 (_initialize_valops): Add "set coerce-float-to-double".
11660 * value.h (default_coerce_float_to_double): Remove prototype.
11661 (standard_coerce_float_to_double): Remove prototype.
11663 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11665 * mdebugread.c (parse_symbol): Likewise.
11666 * stabsread.c (define_symbol): Mark all functions as prototyped.
11668 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11669 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11670 set_gdbarch_coerce_float_to_double.
11671 * arm-tdep.c (arm_gdbarch_init): Likewise.
11672 * frv-tdep.c (frv_gdbarch_init): Likewise.
11673 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11674 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11675 * mips-tdep.c (mips_gdbarch_init): Likewise.
11676 (mips_coerce_float_to_double): Remove.
11677 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11678 (rs6000_coerce_float_to_double): Remove.
11679 * s390-tdep.c (s390_gdbarch_init): Likewise.
11680 * sh-tdep.c (sh_gdbarch_init): Likewise.
11681 (sh_coerce_float_to_double): Remove.
11682 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11683 (sparc_coerce_float_to_double): Remove.
11684 * v850-tdep.c (v850_gdbarch_init): Likewise.
11685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11686 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11687 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11688 (hppa_coerce_float_to_double): Remove prototype.
11689 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11691 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11693 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11695 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11697 Suggested by Stewart Brown <sb24@avaya.com>:
11698 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11699 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11700 (c_type_print_varspec_suffix): Likewise.
11702 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11704 * configure.in: Don't set and AC_SUBST SUBDIRS.
11705 * configure: Regenerated.
11707 * configure.in: Remove code dealing with shared libraries.
11708 * Makefile.in: Remove HLDFLAGS and HLDENV.
11709 * configure: Regenerated.
11711 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11713 * frame.c (deprecated_frame_xmalloc): New function.
11714 (deprecated_set_frame_saved_regs_hack): New function.
11715 (deprecated_set_frame_extra_info_hack): New function.
11716 * frame.h (deprecated_frame_xmalloc): Declare.
11717 (deprecated_set_frame_saved_regs_hack): Declare.
11718 (deprecated_set_frame_extra_info_hack): Declare.
11720 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11722 * configure.in: Move code that provides the --enable-gdbtk option
11723 right after the code that handles the --enable-tui option, and
11724 polish it somewhat.
11725 * configure: Regenerated.
11727 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11728 AC_CHECK_FUNCS and remove the old check for pread64.
11729 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11730 * acconfig.h (_GNU_SOURCE): Add.
11731 (HAVE_PREAD64): Remove.
11732 * configure, aclocal.m4, config.in: Regenerated.
11734 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11736 * alpha-tdep.c: Use get_frame_saved_regs.
11737 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11738 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11739 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11740 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11741 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11743 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11745 * configure.in: Remove all use of the SUBDIRS variable; add
11746 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11747 code providing the --enable-multi-ice option, and move it right in
11748 front of the code that checks whether gdbserver is supported.
11750 * configure: Regenerated.
11751 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11754 2003-01-03 Andrew Cagney <cagney@redhat.com>
11756 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11757 * avr-tdep.c, cris-tdep.c: Ditto.
11758 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11759 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11761 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11763 * configure.in: Remove --enable-netrom option.
11764 * configure: Regenerated.
11766 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11768 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11769 declaration for `struct re_pattern_buffer' instead.
11770 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11772 2003-01-03 J. Brobecker <brobecker@gnat.com>
11774 * mdebugread.c (parse_symbol): Count until the stEnd matching
11775 the structure name.
11777 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11779 * configure.in: Remove --with-cpu option.
11780 subscripts. Remove evil changequotes here.
11781 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11782 * config.in, configure: Regenerated.
11784 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11785 * configure.in: Cleanup section that sources GDB and BFD configure
11786 subscripts. Remove evil changequotes here.
11787 * config.in, configure: Regenerated.
11789 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11791 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11792 frame accessor methods.
11793 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11794 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11795 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11796 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11797 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11798 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11799 * z8k-tdep.c: Ditto.
11801 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11803 * configure.in: Remove UI_OUT configuration code.
11804 * ada-lang.c: Update assuming UI_OUT is always true.
11805 * Makefile.in (UIOUT_CFLAGS): Remove.
11806 * configure: Regenerated.
11807 * TODO: Remove blurb about elimination of -DUI_OUT.
11809 * configure.in: Move code that provides the --enable-gdbcli,
11810 --enable-gdbmi options right before the code that handles the
11811 --enable-tui option. Polish a bit.
11812 * configure: Regenerated.
11814 * configure.in: Rewrite check for GNU regex and the
11815 --without-included regex option, and move it into the "Checks for
11816 library functions" section. This makes us use the system regex
11817 again by default on systems with version 2 of the GNU C library.
11818 This was apparently broken.
11819 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11820 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11821 * config.in, configure: Regenerated.
11823 * configure.in: Move code that provides the --enable-tui option
11824 before the "Checks for libraries" section. Polish the code
11825 somewhat and set need_curses to yes if we build the TUI. Rewrite
11826 code that looks for a library providing termcap functionality to
11827 match more closely what's done in the Readline library, and move
11828 it into to the "Checks for libraries" section.
11829 * configure: Regenerated.
11830 * Makefile.in (TERMCAP): Remove variable.
11831 * config/i386/go32.mh (TERMCAP): Remove variable.
11833 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11835 * MAINTAINERS: Mention gdb_mbuild.sh.
11836 * gdb_mbuild.sh: Rewrite.
11838 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11840 * configure.in: Fix typo in last change.
11841 * config.in, configure: Regenerated.
11843 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11845 * valarith.c (value_binop): Delete obsolete code and comments.
11846 * configure.host: Ditto.
11847 * buildsym.h (make_blockvector): Ditto.
11848 * buildsym.c (make_blockvector): Ditto.
11849 * defs.h (enum language): Ditto.
11850 (chill_demangle): Ditto.
11851 * elfread.c (elf_symtab_read): Ditto.
11852 * dwarfread.c (CHILL_PRODUCER): Ditto.
11853 (set_cu_language): Ditto.
11854 (handle_producer): Ditto.
11855 * expprint.c (print_subexp): Ditto.
11856 * gdbtypes.c (chill_varying_type): Ditto.
11857 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11858 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11859 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11860 (chill_varying_type): Ditto.
11861 * language.h (_LANG_chill): Ditto.
11862 * language.c (binop_result_type, integral_type): Ditto.
11863 (character_type, string_type, structured_type): Ditto.
11864 (lang_bool_type, binop_type_check): Ditto.
11865 * stabsread.h (os9k_stabs): Ditto.
11866 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11867 (define_symbol, read_type, read_struct_fields): Ditto.
11868 (read_array_type, read_enum_type, read_huge_number): Ditto.
11869 (read_range_type, start_stabs): Ditto.
11870 * symfile.c (init_filename_language_table): Ditto.
11871 (add_psymbol_with_dem_name_to_list): Ditto.
11872 * symtab.c (symbol_init_language_specific): Ditto.
11873 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11874 * symtab.h (struct general_symbol_info): Ditto.
11875 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11876 * typeprint.c (typedef_print): Ditto.
11877 * utils.c (fprintf_symbol_filtered): Ditto.
11878 * valops.c (value_cast, search_struct_field, value_slice): Delete
11880 (varying_to_slice): Delete function.
11881 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11882 (varying_to_slice): Delete declaration.
11883 * MAINTAINERS: Update.
11885 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11887 * configure.in: Reorganize "Checks for library functions section"
11888 a bit. Remove check for `btowc' and `isascii' functions.
11889 * configure: Regenerated.
11891 * acconfig.h (_MSE_INT_H): Remove.
11892 * configure.in: Create "Checks for header files" section, and move
11893 appropriate tests there. Don't check for objlist.h, wchar.h,
11894 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11895 misdetection fix. Also add "Checks for types", "Checks for
11896 compiler characteristics" and "Checks for library functions"
11898 * config.in, configure: Regenerated.
11900 * configure.in: Create "Checks for programs" section, and move
11901 appropriate tests there.
11903 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11905 * configure.in: Create "Checks for libraries" section, and move
11906 appropriate tests there. Cleanup check for wctype in libw. Use
11907 AC_SEARCH_LIBS to see whether we need libsocket.
11908 * configure: Regenerated.
11910 For older changes see ChangeLog-2002
11916 version-control: never