1 2003-09-13 Andrew Cagney <cagney@redhat.com>
3 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
4 * ppc-tdep.h (struct regcache): Declare opaque.
5 * objfiles.h (struct objfile_data): Declare opaque.
6 * cp-support.h (struct objfile): Declare opaque.
7 * linux-nat.h (target_waitstatus): Declare opaque.
9 2003-09-14 Mark Kettenis <kettenis@gnu.org>
11 * cris-tdep.c (cris_gdbarch_init): Set
12 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
13 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
15 * mips-tdep.c (mips_gdbarch_init): Likewise.
16 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
17 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
19 2003-09-13 Andrew Cagney <cagney@redhat.com>
21 * values.c (using_struct_return): Delete "function" and "funcaddr"
23 * value.h (using_struct_return): Update declaration.
24 * infcmd.c (finish_command_continuation): Update.
25 (finish_command): Update.
26 * infcall.c (call_function_by_hand): Update.
27 * eval.c (evaluate_subexp_standard): Update.
29 2003-09-13 Christopher Faylor <cgf@redhat.com>
31 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
32 SSE registers since gdb will not operate correctly without this.
33 Restore include file ordering munged in previous change.
34 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
36 2003-09-13 Mark Kettenis <kettenis@gnu.org>
38 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
40 * gdbarch.c, gdbarch.h: Updated.
41 * infcall.c (call_function_by_hand): Update.
42 * stabsread.c (define_symbol): Updated.
44 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
46 2003-09-12 Christopher Faylor <cgf@redhat.com>
48 * win32-nat.c: Reorganize so that defines used by target headers are
49 actually defined by the system headers.
50 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
51 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
53 2003-09-12 Jim Blandy <jimb@redhat.com>
55 * dbxread.c (read_dbx_symtab): Don't report an internal error if
56 the file has no .data, .bss, or .rodata sections. Instead wait
57 until we see a variable alleged to live in one of those sections.
59 * dbxread.c (read_dbx_symtab): If we have no .data section and no
60 .bss section, presume that any variables we find live in the
63 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
64 offsets for global and static variables.
66 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
67 symbol types are, by definition, in the .data section, so it is
68 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
69 If there is no .data section, there should be no N_DATA or N_DATA
72 2003-09-12 Mark Kettenis <kettenis@gnu.org>
74 * amd64fbsd-tdep.c: Fix sigtramp recognition.
75 (amd64fbsd_sigcontext_addr): Rewrite.
76 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
78 (amd64fbsd_sc_reg_offset): Initialize with correct values.
79 (amd64fbsd_init_abi): Fix typo.
81 2003-09-12 Andrew Cagney <cagney@redhat.com>
83 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
84 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
86 2003-09-12 Andrew Cagney <cagney@redhat.com>
88 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
89 "entry_file_highpc". Update comments.
90 * defs.h (deprecated_inside_entry_file): Rename
92 * blockframe.c (deprecated_inside_entry_file): Rename
94 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
95 * vax-tdep.c (vax_frame_chain): Update.
96 * sh64-tdep.c (sh64_frame_chain): Update.
97 * sh-tdep.c (sh_frame_chain): Update.
98 * rs6000-tdep.c (rs6000_frame_chain): Update.
99 * ns32k-tdep.c (ns32k_frame_chain): Update.
100 * mips-tdep.c (mips_frame_chain): Update.
101 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
102 * m32r-tdep.c (m32r_frame_this_id): Update.
103 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
104 * frv-tdep.c (frv_frame_this_id): Update.
105 * d10v-tdep.c (d10v_frame_this_id): Update.
106 * cris-tdep.c (cris_frame_chain): Update.
107 * blockframe.c (legacy_frame_chain_valid): Update.
108 * avr-tdep.c (avr_frame_this_id): Update.
109 * arm-tdep.c (arm_prologue_this_id): Update.
110 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
111 * objfiles.c (objfile_relocate): Update.
112 * mipsread.c (mipscoff_symfile_read): Update.
113 (mipscoff_symfile_read): Update.
114 * mdebugread.c (parse_partial_symbols): Update.
115 * dwarfread.c (read_file_scope): Update.
116 * dwarf2read.c (read_file_scope): Update.
117 * dbxread.c (read_dbx_symtab): Update.
118 (read_dbx_symtab): Update.
119 * coffread.c (complete_symtab): Update.
121 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
123 * top.c (quit_target): New static helper function.
124 (quit_force): Moved code to quit_target(). Call quit_target()
125 via catch_errors() to catch errors during quit.
127 2003-09-11 David Carlton <carlton@kealia.com>
129 * buildsym.c (finish_block): Use allocate_block to allocate the
131 * mdebugread.c (new_block): Add FIXME.
133 2003-09-11 David Carlton <carlton@kealia.com>
135 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
136 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
137 (recursive_dump_type): Ditto.
138 * printcmd.c (print_formatted): Ditto.
139 * typeprint.c (print_type_scalar): Ditto.
140 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
141 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
142 * cp-support.h: Declare cp_check_possible_namespace_symbols,
143 maint_cplus_cmd_list.
144 * cp-support.c: Make maint_cplus_cmd_list extern.
145 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
147 (lookup_symbol_file): Look in possible namespace blocks when
149 (initialize_namespace_symtab): New.
150 (get_possible_namespace_block, free_namespace_block)
151 (check_possible_namespace_symbols)
152 (check_possible_namespace_symbols_loop)
153 (check_one_possible_namespace_symbol)
154 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
155 (_initialize_cp_namespace): Ditto.
156 * block.h: Declare allocate_block.
157 * block.c (allocate_block): New.
158 * jv-lang.c (get_java_class_symtab): Allocate blocks via
160 * symfile.h: Update declaration of add_psymbol_to_list.
161 * symfile.c (add_psymbol_to_list): Return the partial symbol in
163 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
164 scan_partial_symbols_call.
165 (scan_partial_symbols): Add NAMESPACE argument; update calls to
167 (add_partial_symbol): If necessary, scan mangled names for names
169 (add_partial_namespace): Add NAMESPACE argument; generate partial
170 symbols associated to namespaces.
171 (add_partial_enumeration): Add NAMESPACE argument.
172 (new_symbol): Allow namespace syms.
173 (read_namespace): Generate namespace syms.
174 * objfiles.h: Add opaque declaration of struct symtab.
175 (struct objfile): Add cp_namespace_symtab member.
176 * objfiles.c (allocate_objfile): Set
177 objfile->cp_namespace_symtab.
178 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
179 dictionary_h, command_h.
181 2003-09-11 Andrew Cagney <cagney@redhat.com>
183 * rs6000-tdep.c (rs6000_push_dummy_call): Use
184 regcache_raw_write_signed to set SP_REGNUM, move the operation to
185 near the function's end.
186 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
187 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
188 regcache_raw_write_signed to set SP_REGNUM.
190 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
192 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
193 orig_addrs is set up properly.
195 2003-09-11 Andrew Cagney <cagney@redhat.com>
197 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
198 * gdbarch.h, gdbarch.c: Re-generate.
199 * infcall.c (call_function_by_hand): Update.
200 * hppa-tdep.c (hppa_push_arguments): Update.
201 * ada-lang.c (place_on_stack): Update.
202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
203 * sparc-tdep.c (sparc_gdbarch_init): Update.
204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
205 * hppa-tdep.c (hppa_gdbarch_init): Update.
206 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
209 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
211 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
212 register do need a frame.
214 2003-09-11 Andrew Cagney <cagney@redhat.com>
216 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
217 buildable since GDB 5.0.
218 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
219 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
220 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
221 * irix4-nat.c: Delete file.
222 * config/mips/irix4.mh: Delete file.
223 * config/mips/irix3.mh: Delete file.
224 * config/mips/irix3.mt: Delete file.
225 * config/mips/tm-irix3.h: Delete file.
226 * config/mips/nm-irix3.h: Delete file.
227 * config/mips/xm-irix3.h: Delete file.
228 * config/mips/nm-irix4.h: Delete file.
229 * config/mips/xm-irix4.h: Delete file.
230 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
232 2003-09-10 J. Brobecker <brobecker@gnat.com>
234 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
235 * Makefile.in (hppa-tdep.o): Update dependencies.
237 2003-09-10 James E Wilson <wilson@specifixinc.com>
239 * MAINTAINERS: Change my e-mail address. Move to paper trail
242 2003-09-10 Kevin Buettner <kevinb@redhat.com>
244 * MAINTAINERS (frv): New ISA entry.
246 2003-09-10 Kevin Buettner <kevinb@redhat.com>
248 * frv-tdep.c (dis-asm.h): Include.
249 * Makefile.in (frv-tdep.o): Update dependencies.
251 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
253 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
254 Fix typo for high range of floating registers.
256 2003-09-09 David Carlton <carlton@kealia.com>
258 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
259 highpc initialization here out of scan_partial_symbols.
260 (scan_partial_symbols): Restructure into a recursive version,
261 calling add_partial_namespace and add_partial_enumeration when
263 (add_partial_namespace): New.
264 (add_partial_enumeration, locate_pdi_sibling): Ditto.
266 2003-09-09 Andrew Cagney <cagney@redhat.com>
268 * rs6000-tdep.c (ppc_push_return_address): Delete function.
269 (rs6000_push_dummy_call): Set LR to BP_ADDR.
270 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
271 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
273 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
274 (rs6000_push_dummy_call): Set the "TOC" register.
276 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
277 methods "max_register_raw_size", "max_register_virtual_size" or
278 "register_virtual_size".
280 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
282 * MAINTAINERS: Update my e-mail address.
284 2003-09-09 Andrew Cagney <cagney@redhat.com>
286 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
287 (rs6000_push_dummy_call): Store the struct return address.
288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
290 2003-09-09 Andrew Cagney <cagney@redhat.com>
292 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
293 "ppc_sysv_abi_push_arguments".
294 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
295 "ppc_sysv_abi_push_arguments".
296 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
297 instead of "push_arguments".
298 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
300 2003-09-09 Andrew Cagney <cagney@redhat.com>
302 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
303 instead of CALL_DUMMY_ADDRESS.
305 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
307 * p-lang.c: Eliminate "register".
316 * objc-lang.c: Ditto.
318 2003-09-09 Nick Clifton <nickc@redhat.com>
320 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
322 2003-09-04 Andrew Cagney <cagney@redhat.com>
324 * avr-tdep.c: Include "dis-asm.h".
325 * cris-tdep.c: Include "dis-asm.h".
326 (cris_delayed_get_disassembler): Use "struct disassemble_info"
327 instead of corresponding typedef.
328 * h8300-tdep.c: Include "dis-asm.h".
329 * ia64-tdep.c: Include "dis-asm.h".
330 * i386-tdep.c: Include "dis-asm.h".
331 (i386_print_insn): Use "struct disassemble_info" instead of
332 corresponding typedef.
333 * m68k-tdep.c: Include "dis-asm.h".
334 * mcore-tdep.c: Include "dis-asm.h".
335 * mips-tdep.c: Include "dis-asm.h".
336 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
337 instead of corresponding typedef.
338 * ns32k-tdep.c: Include "dis-asm.h".
339 * s390-tdep.c: Include "dis-asm.h".
340 * sparc-tdep.c: Include "dis-asm.h".
341 * vax-tdep.c: Include "dis-asm.h".
342 * v850-tdep.c: Include "dis-asm.h".
343 * mn10300-tdep.c: Include "dis-asm.h".
344 * rs6000-tdep.c: Include "dis-asm.h".
345 * xstormy16-tdep.c: Include "dis-asm.h".
346 (_initialize_xstormy16_tdep): Delete "extern" declaration of
347 print_insn_xstormy16.
348 * Makefile.in (v850-tdep.o): Update dependencies.
349 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
350 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
351 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
352 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
353 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
354 (gdbarch_h): Remove $(dis_asm_h).
355 * disasm.c: Include "dis-asm.h".
356 (dis_asm_read_memory): Use "struct disassemble_info" instead of
357 corresponding typedef.
358 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
359 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
360 * gdbarch.sh: Do not include "dis-asm.h".
361 (struct disassemble_info): Declare opaque.
362 (TARGET_PRINT_INSN): Update declaration.
363 * gdbarch.h, gdbarch.c: Re-generate.
365 2003-09-08 Andrew Cagney <cagney@redhat.com>
367 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
368 CALL_DUMMY_ADDRESS, change to a predicate.
369 * gdbarch.h, gdbarch.c: Re-generate.
370 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
371 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
372 * infcall.c (call_function_by_hand): Ditto.
373 * sparc-tdep.c (sparc_push_return_address): Ditto.
374 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
375 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
376 CALL_DUMMY_ADDRESS with entry_point_address.
377 * v850-tdep.c (v850_push_return_address): Ditto.
378 * s390-tdep.c (s390_push_return_address): Ditto.
379 * rs6000-tdep.c (ppc_push_return_address): Ditto.
380 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
381 * mcore-tdep.c (mcore_push_return_address): Ditto.
382 * cris-tdep.c (cris_push_return_address): Ditto.
383 * arm-tdep.c (arm_push_return_address): Ditto.
385 2003-09-08 Andrew Cagney <cagney@redhat.com>
387 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
388 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
389 and REG_UNMODIFIED to REG_SAME_VALUE.
390 (execute_cfa_program): Update.
391 (dwarf2_frame_cache): Update. Initialize table to
392 REG_UNSPECIFIED, complain if CFI fails to specify a register's
394 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
396 2003-09-08 Andrew Cagney <cagney@redhat.com>
398 * gnu-nat.c: Remove "inline" function attribute.
399 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
401 2003-09-08 Kevin Buettner <kevinb@redhat.com>
403 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
406 2003-09-08 Kevin Buettner <kevinb@redhat.com>
408 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
409 (frame_extra_info): Rename this struct to frv_unwind_cache.
410 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
411 Add fields ``prev_sp'' and ``base''.
412 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
413 (frv_saved_pc_after_call, frv_init_extra_frame_info)
414 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
416 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
417 Revise all callers. Fill in the unwind cache argument and make
418 other adjustments to account for new frame mechanisms.
419 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
420 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
421 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
422 (frv_frame_unwind, frv_frame_base): New structs.
423 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
424 additional arguments expected by this method and adjust function
426 (frv_gdbarch_init): Remove calls to the following functions:
427 set_gdbarch_deprecated_init_frame_pc(),
428 set_gdbarch_deprecated_saved_pc_after_call(),
429 set_gdbarch_deprecated_frame_chain(),
430 set_gdbarch_deprecated_frame_saved_pc(),
431 set_gdbarch_deprecated_frame_init_saved_regs(),
432 set_gdbarch_deprecated_push_arguments(),
433 set_gdbarch_deprecated_push_return_address(),
434 set_gdbarch_deprecated_pop_frame(),
435 set_gdbarch_deprecated_call_dummy_words(),
436 set_gdbarch_deprecated_sizeof_call_dummy_words(),
437 set_gdbarch_deprecated_init_extra_frame_info(),
438 set_gdbarch_deprecated_dummy_write_sp(), and
439 set_gdbarch_deprecated_pc_in_call_dummy().
440 Add calls to the following functions:
441 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
442 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
443 frame_base_set_default().
444 * Makefile.in (frv-tdep.o): Update dependencies.
446 2003-09-09 Mark Kettenis <kettenis@gnu.org>
448 * dwarf2-frame.c (read_encoded_value): Add support for
449 DW_EH_PE_aligned encoding.
451 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
453 * infrun.c (normal_stop): Don't print a message if the inferior
456 2003-09-08 Jim Blandy <jimb@redhat.com>
458 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
459 * dbxread.c: #include "gdb_assert.h".
460 (read_dbx_symtab): If the objfile has no .data section, use the
461 section index for the .bss section instead.
463 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
465 * frame.c (deprecated_safe_get_selected_frame): New function.
466 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
467 * findvar.c (read_var_value): Call it.
469 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
471 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
472 (sh64-tdep.o): Add dependencies.
473 * configure.tgt: Add FIXME to sh-*-linux*.
474 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
475 (sh_gdbarch_init): Always set correct sh_show_regs function
476 pointer. Call sh64_gdbarch_init() if machine type is sh5.
477 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
478 * sh64-tdep.c: New file, containing all sh64 related code from
480 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
481 * config/sh/linux.mt (TDEPFILES): Ditto.
482 * config/sh/nbsd.mt (TDEPFILES): Ditto.
483 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
484 * config/sh/wince.mt (TDEPFILES): Ditto.
486 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
488 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
489 (stop_wait_callback): Handle !lp->signalled also.
490 (lin_lwp_has_pending, flush_callback): New functions.
491 (lin_lwp_wait): Call flush_callback.
492 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
493 (linux_proc_pending_signals): New function.
494 * linux-nat.h (linux_proc_pending_signals): Add prototype.
496 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
498 From Nick Kelsey <nickk@ubicom.com>:
499 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
500 when the stop PC is at the beginning of a function also.
502 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
504 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
505 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
507 2003-09-06 Mark Kettenis <kettenis@gnu.org>
509 * sol-thread.c: Include "gdb_string.h".
511 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
513 * gcore.c: Reorder include files in alphabetical order. Include
514 "gdb_assert.h". Various coding style fixes.
515 (derive_stack_segment, derive_heap_segment): Replace check for
516 non-null BOTTOM and TOP with gdb_assert.
517 (derive_heap_segment): Replace check for successful creation of
518 ZERO with gdb_assert.
519 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
521 2003-09-04 Andrew Cagney <cagney@redhat.com>
523 * thread-db.c (verbose_dlsym): New function.
524 (thread_db_load): Use verbose_dlsym
525 (thread_db_new_objfile): Print that libthread_db was loaded, and
526 that thread debugging was enabled.
528 2003-09-04 Andrew Cagney <cagney@redhat.com>
530 * configure.tgt: Add "mips64*-*-*" target. Delete
531 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
532 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
533 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
534 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
535 mips*-sony-*, and mips64*-*-elf* targets.
536 * config/mips/embedl.mt: Delete file.
537 * config/mips/embedl64.mt: Delete file.
538 * config/mips/mips.mt: Delete file.
539 * config/mips/mips64.mt: Delete file.
540 * config/mips/tm-embed.h: Delete file.
541 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
542 * config/mips/embed64.mt: Delete out-of-date comment.
544 2003-09-04 Andrew Cagney <cagney@redhat.com>
546 * hppa-tdep.c (hppa_gdbarch_init): Set
547 "have_nonsteppable_watchpoint".
548 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
549 * mips-tdep.c (mips_dump_tdep): Do not print
550 HAVE_NONSTEPPABLE_WATCHPOINT.
551 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
552 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
553 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
554 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
556 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
558 * breakpoint.c (watchpoint_check): Remove accidentally checked in
559 unused code. Add comment.
561 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
563 * breakpoint.c (watchpoint_check): Check for pc being in an
564 epilogue if watchpoint frame couldn't be found.
566 2003-09-04 Andrew Cagney <cagney@redhat.com>
568 * Makefile.in: Re-generate all dependencies.
570 2003-09-03 Andrew Cagney <cagney@redhat.com>
572 * arch-utils.h (legacy_print_insn): Delete declaration.
573 * arch-utils.c (legacy_print_insn): Delete function.
574 * disasm.c (deprecated_tm_print_insn_info): Delete.
575 (_initialize_disasm): Delete function, contained code initializing
576 deprecated_tm_print_insn_info.
577 * gdbarch.sh (deprecated_tm_print_insn): Delete.
578 (deprecated_tm_print_insn_info): Delete.
579 (TARGET_PRINT_INSN): Do not provide a default.
580 * gdbarch.h, gdbarch.c: Re-generate.
582 2003-09-03 Andrew Cagney <cagney@redhat.com>
584 * disasm.c (fprintf_disasm): New function.
585 (gdb_disassemble_info): Call "init_disassemble_info", instead of
586 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
587 reverts 2003-08-14 change.
588 (_initialize_disasm): Call "init_disassemble_info", instead of
589 INIT_DISASSEMBLE_INFO_NO_ARCH.
591 2003-09-03 Michael Snyder <msnyder@redhat.com>
593 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
595 2003-09-03 Andrew Cagney <cagney@redhat.com>
597 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
598 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
599 * symfile.c (syms_from_objfile): Update.
600 (reread_symbols): `Update
601 * exec.c (exec_file_attach): Update.
602 (exec_file_attach): Update.
603 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
605 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
607 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
609 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
611 (arm_get_cache): Delete macro.
612 (struct arm_prologue_cache): Update comments. Make saved_regs into
613 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
615 (thumb_scan_prologue): Update for cache changes. Don't call
616 DEPRECATED_PC_IN_CALL_DUMMY.
617 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
618 argument and use it in desperation search for our prologue. Do not
619 search past the specified PC.
620 (arm_make_prologue_cache): Simplify.
622 (arm_prologue_this_id, arm_prologue_prev_register)
623 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
624 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
625 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
626 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
627 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
629 (arm_frame_chain_valid, arm_find_callers_reg)
630 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
631 (arm_pop_frame): Delete obsolete methods.
632 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
634 (arm_gdbarch_init): Update for new frame methods. Register prologue
635 and sigtramp unwinders. Set the default frame base method.
637 * Makefile.in (arm-tdep.o): Update dependencies.
638 * varobj.c (find_frame_addr_in_frame_chain): Call
639 get_frame_base_address.
640 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
642 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
644 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
645 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
646 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
647 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
648 Take NEXT_FRAME and CACHE arguments. Call
649 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
650 Set unwound_pc in CACHE instead of modifying the frame argument.
651 Don't bother checking the frame type when looking for sigtramp
653 (arm_make_prologue_cache, arm_frame_chain)
654 (arm_init_extra_frame_info): New functions.
656 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
658 * arm-tdep.c (arm_get_cache): Define.
659 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
660 unwound_sp, unwound_pc, and saved_regs.
661 (thumb_scan_prologue): Take a cache instead of the frame.
662 (arm_scan_prologue): Likewise.
663 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
664 instead of a temporary frame.
665 (arm_init_extra_frame_info): Allocate and use a cache.
666 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
668 2003-09-03 Andrew Cagney <cagney@redhat.com>
670 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
671 * config/mips/wince.mt (TM_CLIBS): Ditto.
672 * config/sh/wince.mt (TM_CLIBS): Ditto.
673 * config/pa/hppa64.mt (TM_CLIBS): Delete.
674 * config/sparc/sp64.mt (CC): Delete.
676 2003-09-03 Andrew Cagney <cagney@redhat.com>
678 * defs.h: Do not include "arch-utils.h".
679 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
681 * configure.in (GDB_MULTI_ARCH): Do not define.
682 * configure, config.in: Regenerate.
683 * configure.tgt: Do not set variable "gdb_multi_arch".
684 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
685 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
686 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
687 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
688 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
689 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
690 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
691 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
692 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
693 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
694 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
695 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
696 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
697 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
698 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
699 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
700 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
701 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
703 2003-08-30 Michael Chastain <mec@shout.net>
705 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
706 * config/m68k/nm-hp300hpux.h: Delete.
707 * config/m68k/tm-hp300hpux.h: Delete.
708 * config/m68k/xm-hp300hpux.h: Delete.
709 * config/m68k/xm-hp300bsd.h: Delete.
710 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
711 tm-hp300hpux.h, xm-hp300hpux.h.
712 * somsolib.c: Remove comment about hp300 shared libraries.
714 2003-08-31 Mark Kettenis <kettenis@gnu.org>
716 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
717 Only define PTRACE_GET_THREAD_AREA is not already defined.
718 Various style fixes in code and comments and some additional
719 spelling fixes in comments. Move after functions dealing with
721 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
724 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
725 frame_unwind_register_unsigned instead of
726 frame_unwind_unsigned_register.
728 2003-08-30 Mark Kettenis <kettenis@gnu.org>
730 * configure.in: Search for gethostbyname in libnsl.
731 * configure: Regenerated.
733 2003-08-29 Mark Kettenis <kettenis@gnu.org>
735 * configure.in: Remove redundant AC_MSG_RESULT in check for
736 uintptr_t in stdint.h.
737 * configure: Regenerated.
739 * amd64-nat.h (struct regcache): Add opaque declaration.
741 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
742 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
743 Change "register array" to "register cache" in comments.
744 (x86_64_linux_gregset64_reg_offset): New variable.
745 (GETREGS_SUPPLIES): Remove macro.
746 (supply_gregset): Call amd64_supply_native_gregset instead of
747 x86_64_linux_supply_gregset.
748 (fill_gregset): Rename `regno' to `regnum'. Call
749 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
750 (store_regs): Rename `regno' to `regnum'.
751 (store_fpregs): Rename `regno' to `regnum'.
752 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
753 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
754 Reorganize function a bit.
755 (store_inferior_registers): Rename `regno' to `regnum'. Use
756 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
757 Reorganize function a bit.
758 (_initialize_x86_64_linux_nat): New function.
759 * config/i386/x86-64linux.mh.
761 2003-08-29 Andrew Cagney <cagney@redhat.com>
763 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
764 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
765 (target_remove_watchpoint): Delete macro.
766 (target_insert_watchpoint): Delete macro.
767 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
768 (remote_mips_stopped_by_watchpoint): Delete declaration.
769 (remote_mips_remove_watchpoint): Delete declaration.
770 (remote_mips_set_watchpoint): Delete declaration.
771 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
772 * remote-mips.c (_initialize_remote_mips): Set
773 "to_insert_watchpoint", "to_stopped_by_watchpoint",
774 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
775 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
776 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
777 (mips_stopped_by_watchpoint): Rename
778 remote_mips_stopped_by_watchpoint.
779 (mips_can_hardware_watchpoint): Rename
780 remote_mips_can_use_hardware_watchpoint, update function
783 2003-08-29 Mark Kettenis <kettenis@gnu.org>
785 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
786 USER_DS. We haven't given them a register number yet.
788 * amd64-nat.h: New file.
789 * amd64-nat.c: New file.
790 * amd64fbsd-nat.c: Include "amd64-nat.h".
791 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
792 (amd64fbsd32_r_reg_offset): New variable.
793 (supply_gregset): Simply call amd64_supply_native_gregset.
794 (fill_gregset): Rename `regno' to `regnum'. Simply call
795 amd64_collect_native_gregset.
796 (fill_fpregset): Rename `regno' to `regnum'.
797 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
798 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
799 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
800 `fpregset_t'. Call amd64_supply_native_gregset instead of
801 supply_gregset. Call x86_64_supply_fxsave instead of
803 (store_inferior_registers): Rename `regno' to `regnum'. Replace
804 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
805 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
806 `fpregset_t'. Call amd64_collect_native_gregset instead of
807 fill_gregset. Call x86_64_collect_fxsave instead of
809 (_initialize_am64fbsd_nat): Initialize
810 amd64_native_gregset32_reg_offset and
811 amd64_native_gregset64_reg_offset.
812 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
814 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
815 null pointer. Fix typo in comment.
817 * regcache.c (supply_register): Reimplement to call
819 (regcache_collect): Reimplement by calling regcache_raw_collect.
821 2003-08-28 Mark Kettenis <kettenis@gnu.org>
823 * regcache.c (register_buffer): Consitify first argument.
824 (regcache_raw_supply, regcache_raw_collect): New
827 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
829 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
830 by Nathan J. Williams.
832 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
834 * lin-lwp.c (wait_lwp): New function, copied from
835 stop_wait_callback. Clean up.
836 (stop_wait_callback): Use wait_lwp.
838 2003-08-28 Andrew Cagney <cagney@redhat.com>
840 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
841 flavour and disassembler options.
842 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
843 (mips_gdbarch_init): Set "print_insn". Delete initialization of
844 deprecated_tm_print_insn_info.
846 2003-08-27 Andrew Cagney <cagney@redhat.com>
848 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
849 Use target_read_memory.
850 (s390_get_frame_info): Update. Do not reference
851 deprecated_tm_print_insn_info.
852 (s390_check_function_end, s390_is_sigreturn): Ditto.
854 2003-08-27 Andrew Cagney <cagney@redhat.com>
856 * Makefile.in (cris-tdep.o): Update dependencies.
857 * cris-tdep.c: Include "gdb_assert.h".
858 (cris_gdbarch_init): Set print_insn.
859 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
860 (cris_delayed_get_disassembler): Simplify, directly call the
861 disassembler returned by cris_get_disassembler.
862 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
863 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
864 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
865 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
866 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
867 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
868 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
869 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
870 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
871 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
872 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
873 (gdb_print_insn_sparc): Delete function.
874 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
875 deprecated_tm_print_insn_info.
876 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
877 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
878 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
880 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
881 * s390-tdep.c (gdb_print_insn_s390): Delete function.
882 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
883 (s390_gdbarch_init): Set print_insn.
885 2003-08-27 Andrew Cagney <cagney@redhat.com>
887 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
888 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
889 * infcall.c (call_function_by_hand): Convert the entry point
890 address into a code address.
892 2003-08-27 Andrew Cagney <cagney@redhat.com>
894 * dsrec.c: Include "gdb_string.h".
895 * Makefile.in (dsrec.o): Update dependencies.
897 2003-08-27 Michael Chastain <mec@shout.net>
899 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
901 2003-08-27 Andrew Cagney <cagney@redhat.com>
903 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
904 (alpha_osf1_init_abi): Do not set call_dummy_address.
906 2003-08-27 David Carlton <carlton@kealia.com>
908 From Randolph Chung <tausq@debian.org>:
909 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
910 compiles with -Wformat-nonliteral -Werror.
912 2003-08-26 Jim Blandy <jimb@redhat.com>
914 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
915 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
916 bfd_lookup_symbol, since we only want symbols in code sections.
917 (look_for_base): Pass zero as the SECT_FLAGS argument to
918 bfd_lookup_symbol, since we're not concerned about which section
921 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
923 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
924 we are frameless or the return address register is already known.
926 2003-08-26 Andrew Cagney <cagney@redhat.com>
928 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
929 in size. Add comments.
931 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
933 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
934 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
936 2003-08-26 Jason Merrill <jason@redhat.com>
938 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
939 case out of #ifdef MIPS block.
941 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
944 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
945 available before calling SECT_OFF_TEXT.
946 * PROBLEMS: Remove description of java/1322.
948 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
950 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
951 bof, and nat0-nat127 as pseudo-registers.
952 (ia64_frame_cache): New struct used to cache frame info.
953 (ia64_register_reggroup_p): New routine used to override default
954 register grouping so registers without names are still saved and
956 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
958 (ia64_pseudo_register_read): New routine to read pseudo-registers.
959 (ia64_pseudo_register_write): New routine to write pseudo-registers.
960 (ia64_alloc_frame_cache): New routine to create a new
962 (examine_prologue): Change prototype to add next_frame pointer.
963 Assume frameless until otherwise proven. Verify that the cfm for
964 current frame matches the cfm that should occur for the prologues
965 alloc insn and if equal, mark as not frameless. At end of routine,
966 if not frameless, calculate registers for the previous frame and store
967 in the cache, if a cache is provided.
968 (ia64_skip_prologue): Use new prototype when calling examine_prologue
969 and pass 0 for next_frame.
970 (ia64_store_return_value): Change to use convert_typed_floating()
971 instead of calling ia64_convert_to_raw().
972 (ia64_extract_return_value): Change to use convert_typed_floating()
973 instead of calling ia64_convert_to_virtual().
974 (ia64_frame_cache): New routine to support new frame model.
975 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
976 (ia64_frame_sniffer): Ditto.
977 (ia64_sigtramp_frame_init_saved_regs): Ditto.
978 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
979 (ia64_sigtramp_frame_prev_register): Ditto.
980 (ia64_sigtramp_frame_sniffer): Ditto.
981 (ia64_frame_base_address): Ditto.
982 (ia64_extract_struct_value_address): Change to issue error message.
983 (ia64_frame_align): New routine to align sp.
984 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
985 (ia64_push_arguments): Removed. Logic moved to
986 ia64_push_dummy_call().
987 (ia64_push_return_address): Ditto.
988 (ia64_unwind_dummy_id): New function.
989 (ia64_unwind_pc): Ditto.
990 (ia64_convert_register_p): Ditto.
991 (ia64_register_to_value): Ditto.
992 (ia64_value_to_register): Ditto.
993 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
994 (ia64_register_byte, ia64_register_raw_size): Ditto.
995 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
996 (ia64_saved_pc_after_call): Ditto.
997 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
998 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
999 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1000 (ia64_register_convert_to_raw): Ditto.
1001 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1002 (ia64_init_extra_frame_info): Ditto.
1003 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1004 (ia64_gdbarch_init): Remove registering of deprecated functions that
1005 are no longer used. Add registration of new gdbarch functions.
1006 Remove registering deprecated_write_sp. Replace
1007 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1008 Delete set_gdbarch_deprecated_register_convertible(),
1009 set_gdbarch_deprecated_register_convert_to_virtual(), and
1010 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1011 set_gdbarch_deprecated_register_size(),
1012 set_gdbarch_deprecated_register_bytes(),
1013 set_gdbarch_pcregnum(),
1014 set_gdbarch_deprecated_register_byte(),
1015 set_gdbarch_deprecated_register_raw_size(),
1016 set_gdbarch_deprecated_max_register_raw_size(),
1017 set_gdbarch_deprecated_register_virtual_size(),
1018 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1019 Replace set_gdbarch_deprecated_extract_return_value() with
1020 set_gdbarch_extract_return_value(). Remove calls to:
1021 set_gdbarch_deprecated_saved_pc_after_call();
1022 set_gdbarch_deprecated_frame_chain(),
1023 set_gdbarch_deprecated_frame_saved_pc(),
1024 set_gdbarch_deprecated_frame_init_saved_regs(),
1025 set_gdbarch_deprecated_get_saved_register(),
1026 set_gdbarch_deprecated_call_dummy_words(),
1027 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1028 set_gdbarch_deprecated_init_extra_frame_info(),
1029 set_gdbarch_deprecated_frame_args_address(),
1030 set_gdbarch_deprecated_frame_locals_address(),
1031 and set_gdbarch_deprecated_dummy_write_sp().
1032 Add set_gdbarch_convert_register_p(),
1033 set_gdbarch_register_to_value(),
1034 set_gdbarch_value_to_register(),
1035 set_gdbarch_push_dummy_call(),
1036 set_gdbarch_frame_align(),
1037 set_gdbarch_unwind_dummy_id(),
1038 set_gdbarch_unwind_pc(),
1039 frame_unwind_append_sniffer(),
1040 frame_unwind_append_sniffer(),
1041 and frame_base_set_default().
1043 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1045 * configure.tgt: Document need for special "mipsisa64" handling.
1046 (mipsisa64*-*-linux64): Handle as target linux64.
1047 (mipsisa64*-*-*): Handle as target embed64.
1049 2003-08-18 Michael Chastain <mec@shout.net>
1051 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1054 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1056 * i387-tdep.h: Update copyright date.
1057 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1059 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1060 CFLAGS games to reflect reality.
1062 2003-08-24 Andrew Cagney <cagney@redhat.com>
1064 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1065 GDB_MULTI_ARCH is always non-zero.
1066 * osabi.c (_initialize_gdb_osabi): Ditto.
1067 (gdbarch_init_osabi): Ditto.
1068 * sparc-tdep.c: Ditto for #if code.
1070 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1072 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1074 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1076 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1077 x86_64_supply_fxsave.
1078 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1079 x86_64_supply_fxsave.
1080 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1081 x86_64_supply_fxsave.
1083 2003-08-23 Andreas Jaeger <aj@suse.de>
1085 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1088 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1090 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1091 i387_supply_register.
1092 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1093 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1095 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1097 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1099 * i386bsd-nat.c (supply_fpregset): Adjust call to
1101 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1102 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1104 (store_inferior_registers): Remove extraneous whitespace. Call
1105 i387_fill_fsave instead of fill_fpregset.
1106 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1107 (supply_fpregset): Likewise.
1108 * i386v4-nat.c (supply_fpregset): Adjust call to
1110 * i386-interix-nat.c (supply_fpregset): Adjust call to
1112 * i386-linux-nat.c (supply_fpregset): Adjust call to
1114 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1115 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1116 i387supply_fsave and i387_supply_fxsave.
1117 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1118 Incorporate code from `i387_supply_register.
1119 (i387_supply_register): Remove.
1120 (i387_supply_fxsave): Add `regnum' argument.
1122 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1124 (i387_supply_register): remove prototype.
1127 2003-08-22 Michael Chastain <mec@shout.net>
1129 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1130 Add lines for files in gdb/testsuite/gdb.cp/* that are
1131 still not 8.3 unique.
1133 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1135 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1136 TYPE_VPTR_FIELDNO is valid.
1138 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1140 * utils.c (set_width_command): Remove prototypes.
1141 (set_screen_size): New prototype.
1142 (init_page_info): Simplify by fetching the screen size from
1143 Readline. Call set_screen_size.
1144 (set_screen_size): New function.
1145 (set_width): Add missing whitespace in comment.
1146 (set_width_command): Call set_screen_size.
1147 (set_height_command): New function.
1148 (initialize_utils): Fix formatting. Make "set height" command
1149 call set_height_command. Remove redundant code that turns off
1150 pagination if output isn't a terminal. Remove redundant call to
1153 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1155 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1156 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1157 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1158 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1160 (sparc64_register_info): Give the reister with number
1161 SPARC64_STATE_REGNUM a name.
1162 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1164 (sparc64_push_dummy_call): Take BIAS into account when checking
1166 (sparc_software_single_step): Remove assertions that check whether
1167 NPC and NNPC were zero.
1168 (sparc_supply_rwindow): Make public. Merge functionality with
1169 sparc64_supply_rwindow.
1170 (sparc_fill_rwindow): Make public. Merge functionality with
1171 sparc64_fill_rwindow.
1172 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1173 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1174 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1175 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1176 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1178 * reggroups.c: Add whitespace after declarations of local
1179 variables in functions.
1181 2003-08-21 Michael Chastain <mec@shout.net>
1183 * gdbtypes.h: Change array bound type from an int to enum.
1185 2003-08-21 Andrew Cagney <cagney@redhat.com>
1187 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1188 * config/sparc/tm-sparc.h: Ditto.
1189 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1191 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1193 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1195 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1196 (register_objfile_data, set_objfile_data, objfile_data): New
1198 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1200 (allocate_objfile): Call objfile_alloc_data.
1201 (free_objfile): Call objfile_free_data.
1202 (struct objfile_data): New.
1203 (struct objfile_data_registration): New.
1204 (struct objfile_data_registry): New.
1205 (objfile_data_registry): New variable.
1206 (register_objfile_data): New function.
1207 (objfile_alloc_data, objfile_free_data): New functions.
1208 (set_objfile_data, objfile_data): New functions.
1209 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1210 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1211 (_initialize_dwarf2_frame): New function and prototype.
1213 2003-08-21 Andrew Cagney <cagney@redhat.com>
1215 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1216 a specific architecture.
1217 * arch-utils.h (set_architecture_from_arch_mach): Delete
1219 (target_architecture_hook): Delete declaration.
1220 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1221 (default_float_format): Assume GDB_MULTI_ARCH.
1222 (default_double_format): Assume GDB_MULTI_ARCH.
1223 (set_endian_from_file): Delete function.
1224 (arch_ok): Delete function.
1225 (set_arch): Delete function.
1226 (set_architecture_from_arch_mach): Delete function.
1227 (set_architecture_from_file): Delete function.
1228 (set_architecture): Assume GDB_MULTI_ARCH.
1229 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1231 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1233 Rewrite FreeBSD/sparc64 native configuration.
1234 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1235 * sparc64fbsd-nat.c: New file.
1236 * sparc64fbsd-tdep.c: New file.
1237 * sparc64-tdep.c sparc64-tdep.h: New files.
1238 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1239 sparc64fbsd-tdep.o): New dependencies.
1240 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1241 and sparc64fbsd-tdep.c.
1242 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1243 * config/sparc/fbsd.mh: Remove copyright notice.
1244 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1246 * config/sparc/fbsd.mt: Remove copyright notice.
1247 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1248 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1249 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1250 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1251 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1252 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1253 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1254 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1256 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1257 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1259 2003-08-21 Michael Chastain <mec@shout.net>
1261 * symtab.h: Add doco on the space critical structures and
1262 some measurements of space usage.
1264 2003-08-21 Michael Snyder <msnyder@redhat.com>
1266 * tracepoint.c (trace_dump_command): Trace break address
1267 is subject to DECR_PC_AFTER_BREAK.
1268 (set_traceframe_context): Make "trace_line" an int.
1269 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1271 2003-08-20 Michael Snyder <msnyder@redhat.com>
1273 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1274 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1275 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1277 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1278 functions, replace sh_push_dummy_call.
1279 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1281 2003-08-20 Michael Chastain <mec@shout.net>
1283 * gdbtypes.h (struct main_type): Rearrange to save space.
1285 2003-08-20 Michael Snyder <msnyder@redhat.com>
1287 * trad-frame.c: Comment typo fix.
1289 2003-08-20 Michael Snyder <msnyder@redhat.com>
1290 Kevin Buettner <kevinb@redhat.com>
1292 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1293 (frv_frame_init_saved_regs): Add declaration.
1294 (frame_extra_info): Add new field ``saved_regs''.
1295 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1296 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1297 Update frame related code.
1298 (frv_extract_struct_value_address): Adjust formatting.
1299 * Makefile.in (frv-tdep.o): Update dependencies.
1300 * config/frv/tm-frv.h (target_insert_watchpoint)
1301 (target_remove_watchpoint, target_insert_hw_breakpoint)
1302 (target_remove_hw_breakpoint): Delete these macros.
1303 (remote_insert_watchpoint, remote_remove_watchpoint)
1304 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1307 2003-08-20 Michael Chastain <mec@shout.net>
1309 * defs.h (ENUM_BITFIELD): New macro.
1310 * symtab.h (ENUM_BITFIELD): Use it.
1311 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1313 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1315 * MAINTAINERS (write after approval): Add myself.
1317 2003-08-18 Andrew Cagney <cagney@redhat.com>
1319 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1320 * gdbarch.h, gdbarch.c: Re-generate.
1321 * infcall.c (call_function_by_hand): Adjust the SP by
1322 frame_red_zone_size before allocating any stack space.
1323 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1324 * x86-64-tdep.c (x86_64_frame_align): New function.
1325 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1327 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1328 Remove code adjusting SP so that it skips over the Red Zone.
1330 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1332 * NEWS (New native configurations): Mention FreeBSD/amd64.
1334 2003-08-18 Andrew Cagney <cagney@redhat.com>
1336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1337 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1339 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1341 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1343 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1345 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1347 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1349 * i386-linux-nat.c: Include "linux-nat.h".
1350 (child_post_startup_inferior): New function.
1352 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1354 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1355 at the start of a frameless function. This probably fixes PR
1358 2003-08-17 Michael Chastain <mec@shout.net>
1360 * symfile.c (find_sym_fns): Remove special case for apollo target.
1362 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1364 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1365 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1366 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1367 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1368 (linux_supports_tracevforkdone): New function.
1369 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1371 (child_follow_fork): Handle vfork.
1372 (linux_handle_extended_wait): Likewise. Also handle exec.
1373 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1374 * NEWS: Mention fork tracing.
1376 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1378 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1380 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1382 * Makefile.in (i386-linux-nat.o): Update dependencies.
1383 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1384 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1385 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1386 * i386-linux-nat.c: Include "linux-nat.h".
1387 (child_post_startup_inferior): New function.
1388 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1389 * infptrace.c (kill_inferior): Wrap in #ifdef.
1390 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1391 attaching to each LWP.
1392 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1393 (init_lin_lwp_ops): Fill in some more operations.
1394 * linux-nat.h (linux_enable_event_reporting)
1395 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1397 * linux-nat.c (linux_enable_event_reporting): New function.
1398 (child_post_attach, linux_child_post_startup_inferior)
1399 (child_post_startup_inferior, child_follow_fork)
1400 (linux_handle_extended_wait, kill_inferior): New functions.
1402 2003-08-16 Andrew Cagney <cagney@redhat.com>
1404 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1405 * gdbarch.h, gdbarch.c: Re-generate.
1407 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1409 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1411 2003-08-16 Andrew Cagney <cagney@redhat.com>
1413 * NEWS: Mention that "set prompt-escape-char" was deleted.
1414 * top.c (get_prompt_1): Delete function.
1415 (gdb_prompt_escape):
1416 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1417 prompt-escape-char" command.
1418 (MAX_PROMPT_SIZE): Delete macro.
1419 (get_prompt): Simplify, do not call get_prompt_1.
1421 2003-08-16 Andrew Cagney <cagney@redhat.com>
1423 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1424 -Werror. -Wformat-nonliteral problems.
1426 2003-08-15 J. Brobecker <brobecker@gnat.com>
1428 Further multiarching work mostly for hppa64-*-hpux11:
1429 * hppa-tdep.h: New file.
1430 * hppa-tdep.c: #include hppa-tdep.c.
1431 (hppa32_num_regs): Renamed from hppa_num_regs.
1432 (hppa64_num_regs): New constant.
1433 (hppa64_call_dummy_breakpoint_offset): New constant.
1434 (hppa32_call_dummy_length): New constant.
1435 (hppa64_call_dummy_length): New constant.
1436 (hppa32_stack_align): Make name 32bit explicit.
1437 (hppa32_register_virtual_type): Likewise.
1438 (hppa32_extract_return_value): Likewise.
1439 (hppa32_use_struct_convention): Likewise.
1440 (hppa32_store_return_value): Likewise.
1441 (hppa64_register_virtual_type): New function.
1442 (hppa64_extract_return_value): New function.
1443 (hppa64_use_struct_convention): New function.
1444 (hppa64_store_return_value): New function.
1445 (hppa_frame_locals_address): Remove declaration, function does
1447 (hppa_register_byte): Add support for PA64 ABI.
1448 (hppa_gdbarch_init): Add support for PA64 ABI.
1449 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1450 Make name 32bit explicit.
1451 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1452 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1453 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1454 (hppa64_hpux_frame_base_before_sigtramp): New function.
1455 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1456 * config/pa/tm-hppa64.h: Remove macros that are no longer
1457 necessary now that the gdbarch vector is properly setup.
1458 Transform some macros into function calls. Some minor cleanup.
1459 * config/pa/tm-hppah.h: Update function calls in macros
1460 following the function renaming in hppa-hpux-tdep.c.
1461 * Makefile.in (hppa_tdep_h): New variable.
1462 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1464 2003-08-14 Michael Snyder <msnyder@redhat.com>
1466 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1468 2003-08-13 J. Brobecker <brobecker@gnat.com>
1470 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1471 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1474 2003-08-13 Michael Snyder <msnyder@redhat.com>
1476 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1477 (frv_saved_pc_after_call): Use deprecated ftype.
1478 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1479 (frv_remote_translate_xfer_address): Remove.
1480 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1482 2003-08-13 J. Brobecker <brobecker@gnat.com>
1484 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1485 initialization after the common gdbarch initialization, not before.
1487 2003-08-13 J. Brobecker <brobecker@gnat.com>
1489 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1490 (ADDR_BITS_REMOVE): Remove, redundant.
1492 2003-08-13 J. Brobecker <brobecker@gnat.com>
1494 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1495 gdbarch method to clear the 2 low bits of text addresses.
1497 2003-08-12 Andrew Cagney <cagney@redhat.com>
1499 * Makefile.in (dsrec.o): Update dependencies.
1500 * dsrec.c: Include "gdb_assert.h".
1501 (make_srec): Use snprintf instead of sprintf, use a literal format
1504 2003-08-12 Andrew Cagney <cagney@redhat.com>
1506 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1507 FRAME_OBSTACK_ZALLOC.
1509 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1511 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1514 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1516 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1517 amd64fbsd_sc_reg_offset): Add extern declarations.
1518 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1521 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1523 * MAINTAINERS (write after approval): Update my mail address.
1525 2003-08-10 Andrew Cagney <cagney@redhat.com>
1527 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1529 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1531 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1532 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1533 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1534 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1535 i386bsd_sc_reg_offset): Add extern declarations.
1536 * i386obsd-nat.c: Include "i386-tdep.h"
1537 (_initialize_i386obsd_nat): Remove extern declarations.
1538 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1540 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1543 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1544 instead of frame_read_register.
1545 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1546 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1548 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1549 instead of frame_unwind_unsigned_register. Use
1550 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1551 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1552 instead of read_register. Use builtin_type_void_data_ptr instead
1553 of builtin_type_void_func_ptr when extracting the address of the
1555 (i386_extract_return_value, i386_store_return_value,
1556 i386_pseudo_register_read, i386_pseudo_register_write): Use
1557 register_size instead REGISTER_RAW_SIZE.
1559 2003-08-10 Andrew Cagney <cagney@redhat.com>
1561 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1562 sprintf. Make "name" constant.
1564 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1566 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1567 instead of frame_read_register.
1568 (i387_print_float_info): Use get_frame_register and
1569 get_frame_register_unsigned instead of frame_register_read.
1571 * i386fbsd-nat.c: Include "i386-tdep.h".
1572 (child_resume): Make `eflags' an ULONGEST. Use
1573 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1574 instead of register_read and register_write.
1576 * i386bsd-nat.c (fetch_inferior_registers,
1577 store_inferior_registers): Don't use && at the end of a line.
1578 (_initialize_i386bsd_nat): Fix typo.
1580 * frame.c (_initialize_frame): Add missing backslash.
1582 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1583 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1584 and supply_register instead of manipulating the register buffer
1587 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1588 * config/i386/nm-i386sol2.h
1589 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1591 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1592 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1593 instructions that GCC likes to mingle into the prologue. Fixes
1594 gdb/1253 and gdb/1255.
1596 2003-08-09 Andrew Cagney <cagney@redhat.com>
1599 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1600 * command.h (add_setshow_uinteger_cmd): Declare.
1601 * frame.c (set_backtrace_cmd): New function.
1602 (show_backtrace_cmd): New function.
1603 * frame.c (_initialize_frame): Replace "set/show
1604 backtrace-below-main" with "set/show backtrace past-main". Add
1605 command "set/show backtrace limit".
1606 (backtrace_past_main): Rename "backtrace_below_main".
1607 (backtrace_limit): New variable.
1608 (get_prev_frame): Update. Check the backtrace_limit.
1610 2003-08-09 Andrew Cagney <cagney@redhat.com>
1612 * defs.h (xstrprintf): Declare.
1613 * utils.c (xstrprintf): New function.
1614 * breakpoint.c (insert_breakpoints): Replace sprintf and
1615 non-literal format strings, with xstrprintf and cleanups.
1616 (delete_breakpoint,breakpoint_re_set): Ditto.
1617 (commands_command, insert_breakpoints): Ditto.
1618 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1619 (break_at_finish_command_1): Ditto.
1621 2003-08-09 Andrew Cagney <cagney@redhat.com>
1623 * MAINTAINERS (language support): List Adam Fedor as Objective C
1626 2003-08-08 J. Brobecker <brobecker@gnat.com>
1628 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1629 are now multiarched.
1631 2003-08-08 J. Brobecker <brobecker@gnat.com>
1633 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1634 longer necessary now that hppa64 is partially multiarch'ed.
1636 2003-08-08 Andrew Cagney <cagney@redhat.com>
1638 * interps.c (interp_set): Check for a NULL "old_interp".
1640 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1642 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1643 (install-only): Support DESTDIR.
1644 (uninstall): Likewise.
1645 (install-gdbtk): Likewise.
1647 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1649 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1650 contains something meaningful at all times.
1652 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1654 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1656 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1658 * MAINTAINERS (write after approval): Added self.
1660 2003-08-07 Andrew Cagney <cagney@redhat.com>
1662 * inferior.h (AT_SYMBOL): Define.
1663 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1664 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1665 * mips-tdep.c (mips_call_dummy_address): Delete function.
1666 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1667 set call_dummy_address.
1669 2003-08-07 Andrew Cagney <cagney@redhat.com>
1671 * language.c (op_error): Delete function.
1672 (binop_type_check): Delete function.
1673 * language.h (type_op_error, range_op_error): Delete macros.
1674 (op_error): Delete declaration.
1676 2003-08-07 Andrew Cagney <cagney@redhat.com>
1678 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1680 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1682 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1683 (x86_64_push_arguments): Skip the red zone.
1685 2003-08-05 Andrew Cagney <cagney@redhat.com>
1687 * reggroups.c (reggroup_next): Check for the final entry.
1689 2003-08-04 Andrew Cagney <cagney@redhat.com>
1691 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1692 * cli/cli-script.c (define_command): Call query directly, instead
1693 of passing it a buffer.
1694 * ocd.c (ocd_error): Pass error a constant format string.
1695 * remote-mips.c (mips_error): Use fputs_filtered.
1697 * solib-svr4.c (_initialize_svr4_solib): Update
1698 register_gdbarch_data call.
1699 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1701 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1702 (register_gdbarch_data): Delete "free" parameter. Update
1704 * gdbarch.h, gdbarch.c: Re-generate.
1705 * reggroups.c (_initialize_reggroup): Update.
1706 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1707 * frame-base.c (_initialize_frame_base): Update.
1708 * frame-unwind.c (_initialize_frame_unwind): Update.
1709 * user-regs.c (_initialize_user_regs): Update.
1710 * remote.c (_initialize_remote): Update.
1711 * regcache.c (_initialize_regcache): Update.
1713 * regcache.c (xfree_regcache_descr): Delete function.
1714 (_initialize_regcache): Update call to register_gdbarch_data.
1715 (init_regcache_descr, init_legacy_regcache_descr): Use
1716 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1718 * remote.c (free_remote_state): Delete function.
1719 (_initialize_remote): Update register_gdbarch_data.
1720 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1721 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1723 2003-08-04 Andrew Cagney <cagney@redhat.com>
1725 * reggroups.c (struct reggroup_el): Define.
1726 (struct reggroups): Delete field "nr_group". Replace array
1727 "group" with a "first" to "last" linked list.
1728 (reggroups_init): Update. Allocate using gdbarch's obstack.
1729 (reggroups_free): Delete function.
1730 (add_group): Update. Add "el" parameter.
1731 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1732 (default_groups): Update.
1733 (reggroup_next): Replace reggroups.
1734 (reggroups_dump): Update.
1735 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1736 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1737 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1739 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1741 * Makefile.in (tui-interp.o): Update dependencies.
1743 2003-08-04 David Carlton <carlton@kealia.com>
1745 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1746 to internal_error call.
1747 * source.c (forward_search_command): Add "%s" format argument.
1748 (reverse_search_command): Ditto.
1749 * top.c (quit_confirm): Ditto.
1750 * cli/cli-setshow.c (do_setshow_command): Ditto.
1751 * cp-valprint.c (cp_print_class_method): Replace
1752 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1753 (cp_print_class_member): Ditto.
1754 * event-top.c (command_line_handler): Ditto.
1755 * linux-proc.c (linux_info_proc_cmd): Ditto.
1756 * p-typeprint.c (pascal_type_print_base): Ditto.
1757 * p-valprint.c (pascal_object_print_class_method): Ditto.
1758 (pascal_object_print_class_member): Ditto.
1759 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1760 * remote.c (remote_cisco_section_offsets): Ditto.
1761 * top.c (command_line_input): Ditto.
1762 * utils.c (vwarning,error_stream,quit): Ditto.
1763 * valprint.c (print_floating,print_binary_chars)
1764 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1766 2003-08-04 Andrew Cagney <cagney@redhat.com>
1768 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1770 2003-08-02 Andrew Cagney <cagney@redhat.com>
1772 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1773 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1776 2003-08-02 Andrew Cagney <cagney@redhat.com>
1778 * Makefile.in: Update all dependencies and definitions.
1780 2003-08-02 Adam Fedor <fedor@gnu.org>
1782 * linespec.c (is_objc_method_format): New function
1783 (decode_line_1, locate_first_half): Use it.
1786 2003-08-01 Andrew Cagney <cagney@redhat.com>
1788 * NEWS: Mention that m32r is multi-arch.
1789 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1790 * configure.tgt: Recognize m32r-*-*.
1791 * config/m32r/tm-m32r.h: Delete file.
1792 * config/m32r/m32r.mt: New file.
1793 * m32r-rom.c (m32r_upload_command): Use hostent only when
1794 gethostname succeeds, in order to avoid a compilation
1796 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1799 2003-08-01 Michael Snyder <msnyder@redhat.com>
1801 * sh-tdep.c (sh_frame_align): New gdbarch method.
1802 (sh_gdbarch_init): Set up frame_align method.
1804 2003-07-31 Michael Snyder <msnyder@redhat.com>
1806 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1807 which is already covered by the new frames infrastructure.
1809 2003-07-31 Andrew Cagney <cagney@redhat.com>
1811 * user-regs.c (struct user_reg): Add "next" link.
1812 (struct user_regs): Replace "user" with "first" and "last" links.
1813 (append_user_reg): Add pre-allocated "reg" parameter.
1814 (builtin_user_regs): Provide initial value for "last".
1815 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1816 (user_regs_init): Allocate memory from the gdbarch obstack.
1817 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1818 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1820 (usernum_to_user_reg): New function.
1821 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1822 (value_of_user_reg): Use usernum_to_user_reg.
1823 (user_regs_free): Delete function.
1824 (_initialize_user_regs): Update register_gdbarch_data call.
1826 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1828 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1830 2003-07-30 Michael Snyder <msnyder@redhat.com>
1832 * value.h (value_being_returned): Add a struct_addr argument.
1833 * infcall.c (call_function_by_hand): Pass struct_addr to
1834 value_being_returned.
1835 * infcmd.c (print_return_value): Pass zero as struct_addr.
1836 * values.c (value_being_returned): If struct_addr is passed,
1837 use it instead of trying to recover it from the inferior.
1839 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1841 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1842 the prologue analyzer won't need to attempt to extract the pc
1843 value from the woefully incomplete dummy frame.
1844 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1845 possible. Disable code which modifies the frame.
1847 2003-07-28 Andrew Cagney <cagney@redhat.com>
1849 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1851 (annotate_breakpoints_table, annotate_record): Ditto.
1852 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1853 (annotate_field_name_end, annotate_field_value): Ditto.
1854 (annotate_field_end, annotate_frame_source_begin): Ditto.
1855 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1856 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1857 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1858 (annotate_frame_address_end, annotate_frame_address): Ditto.
1859 (annotate_frame_args, annotate_frame_end): Ditto.
1860 (annotate_frame_where, annotate_arg_begin): Ditto.
1861 (annotate_arg_name_end, annotate_arg_value): Ditto.
1862 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1863 (annotate_function_call, annotate_signal_name): Ditto.
1864 (annotate_signal_string, annotate_signal_name_end): Ditto.
1865 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1866 (annotate_value_begin, annotate_value_history_value): Ditto.
1867 (annotate_value_history_end, annotate_value_end): Ditto.
1868 (annotate_display_begin, annotate_display_number_end): Ditto.
1869 (annotate_display_format, annotate_display_expression): Ditto.
1870 (annotate_display_expression_end, annotate_display_value): Ditto.
1871 (annotate_display_end, annotate_array_section_begin): Ditto.
1872 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1873 (annotate_elt, annotate_array_section_end): Ditto.
1875 2003-07-28 Andrew Cagney <cagney@redhat.com>
1877 * regcache.c (struct regcache_descr): Update comments on
1879 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1880 sizeof_raw_register_valid_p.
1881 (init_regcache_descr): Set nr_raw_registers and
1882 sizeof_raw_register_valid_p before calling
1883 init_legacy_regcache_descr.
1885 2003-07-28 Andrew Cagney <cagney@redhat.com>
1887 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1890 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1892 * thread.c (info_threads_command): Use get_selected_frame ().
1893 Check that there is at least one non-sentinel frame.
1895 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1897 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1898 (m68hc11_pop_frame): Remove.
1899 (m68hc11_frame_saved_pc): Remove.
1900 (m68hc11_frame_chain): Remove.
1901 (m68hc11_frame_init_saved_regs): Remove.
1902 (m68hc11_init_extra_frame_info): Remove.
1903 (m68hc11_store_struct_return): Remove.
1904 (m68hc11_saved_pc_after_call): Remove.
1906 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1908 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1909 frame unwind information.
1910 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1911 and adapted for frame unwinding.
1912 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1913 (m68hc11_unwind_pc): New function.
1914 (m68hc11_frame_unwind_cache): New function to analyze frames.
1915 (m68hc11_frame_this_id): New function to create new frame struct.
1916 (m68hc11_frame_prev_register): New function to unwind a register from
1918 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1919 (m68hc11_frame_p): New function for the above.
1920 (m68hc11_frame_base_address): New function to return fp of frame.
1921 (m68hc11_frame_args_address): Update for frame.
1922 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1923 (m68hc11_unwind_sp): New function.
1924 (m68hc11_unwind_dummy_id): New function.
1925 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1928 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1930 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1931 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1932 when we are beyond the current pc.
1934 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1936 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1937 from m68hc11_push_arguments.
1938 (m68hc11_push_arguments): Remove.
1939 (m68hc11_push_return_address): Remove.
1940 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1941 handlers; remove deprecated_extra_stack_alignment_needed.
1943 2003-07-27 Andrew Cagney <cagney@redhat.com>
1945 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1946 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1947 REAL_PC and not the pointer.
1948 * hppa-hpux-tdep.c: Include frame.h
1950 2003-07-27 Andrew Cagney <cagney@redhat.com>
1952 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1953 GDB_MULTI_ACH_PARTIAL.
1955 2003-07-27 Andrew Cagney <cagney@redhat.com>
1957 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1958 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1959 operator at start and not end of line.
1960 (decode_prologue): Ditto.
1961 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1962 frame_unwind_register_unsigned instead of
1963 frame_unwind_unsigned_register.
1964 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1966 (m32r_push_dummy_call): Use register_size instead of
1968 (m32r_frame_sniffer): Replace m32r_frame_p.
1969 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1970 * m32r-rom.c (report_transfer_performance): Delete extern
1972 (m32r_load, m32r_upload_command): Use print_transfer_performance
1973 instead of report_transfer_performance.
1974 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1975 / add_show_from_set.
1977 2003-07-26 Andrew Cagney <cagney@redhat.com>
1979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1980 store_return_value and extract_struct_value_address.
1982 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1985 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1986 NULL, default to the section containing PC.
1988 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1990 * NEWS: Mention "regs" deprecated for m68hc11 too.
1992 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1993 (m68hc11_print_register): New function to print out one register.
1994 (m68hc11_print_registers_info): New function to print registers.
1995 (show_regs): Deprecate and use the above.
1996 (m68hc11_gdbarch_init): Install the print_registers_info.
1998 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2000 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2001 that we have a SIGTRAP before returning non-zero.
2003 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2004 Elena Zannoni <ezannoni@redhat.com>
2006 * linespec.c (decode_line_2): Avoid crash if
2007 find_function_start_sal() returns empty record.
2009 2003-07-23 Andreas Schwab <schwab@suse.de>
2011 * ia64-tdep.c (ia64_print_insn): New function.
2012 (ia64_gdbarch_init): Set print_insn to it.
2013 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2014 deprecated_tm_print_insn_info.
2016 2003-07-22 Michael Snyder <msnyder@redhat.com>
2018 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2019 handle 8-bit returns (long long).
2020 (h8300h_extract_return_value): Ditto.
2021 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2023 2003-07-22 Andrew Cagney <cagney@redhat.com>
2025 * gdbarch.c Include "gdb_obstack.h".
2026 (struct gdbarch): Add an "obstack".
2027 (alloc_gdbarch_data): Allocate the gdbarch data using
2028 GDBARCH_OBSTACK_CALLOC.
2029 (free_gdbarch_data): Delete function.
2030 (gdbarch_obstack_zalloc): New function.
2031 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2032 Assert that the architecture is not initialized.
2033 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2034 vector from the obstack.
2035 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2036 architecture obstack.
2037 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2038 (set_gdbarch_data): Assert that the data is not initialized.
2039 (struct gdbarch_data): Delete member "free".
2040 (register_gdbarch_data): Do not initialize "free".
2041 * gdbarch.h, gdbarch.c: Re-generate.
2043 2003-07-22 Andrew Cagney <cagney@redhat.com>
2045 * configure.in (build_warnings): Add -Wformat-nonliteral.
2046 * configure: Re-generate.
2048 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2050 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2052 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2054 * findvar.c (read_var_value): Remove case for thread local storage
2055 variables. It is now entirely handled by the dwarf2 location
2057 * printcmd.c (address_info): Ditto.
2058 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2060 (struct symbol): Remove objfile field, which was used by
2061 LOC_THREAD_LOCAL_STATIC only.
2062 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2063 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2064 usage of objfile pointer.
2065 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2066 thread local variables.
2067 Add include of objfiles.h.
2068 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2070 * Makefile.in (dwarf2loc.o): Update dependencies.
2072 2003-07-22 Andrew Cagney <cagney@redhat.com>
2074 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2076 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2077 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2078 (struct value): Add opaque declaration.
2079 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2081 2003-07-21 Andrew Cagney <cagney@redhat.com>
2083 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2084 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2086 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2088 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2089 regcache_cooked_read_unsigned instead of read_register.
2090 (m68hc11_saved_pc_after_call): Likewise.
2091 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2092 instead of write_register.
2093 (m68hc11_register_type): New function.
2094 (m68hc11_register_virtual_type): Remove.
2095 (m68hc11_store_return_value): Convert to use the regcache.
2096 (m68hc11_extract_struct_value_address): Likewise.
2097 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2098 m68hc11_register_type; undeprecate store_return_value and
2099 extract_struct_value_address.
2101 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2103 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2104 and translate to use regcache.
2105 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2107 2003-07-18 Andrew Cagney <cagney@redhat.com>
2109 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2110 * gdbarch.h, gdbarch.c: Re-generate.
2111 * i386-tdep.c (i386_gdbarch_init): Do not set
2112 DWARF2_BUILD_FRAME_INFO.
2113 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2115 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2116 DWARF2_BUILD_FRAME_INFO.
2118 2003-07-18 Andrew Cagney <cagney@redhat.com>
2120 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2121 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2123 2003-07-18 Andrew Cagney <cagney@redhat.com>
2125 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2126 frame_unwind_address_in_block, instead of frame_pc_unwind.
2127 (dwarf2_frame_cache): Ditto.
2129 2003-07-18 Andrew Cagney <cagney@redhat.com>
2131 * user-regs.h (struct gdbarch): Declare opaque.
2132 * ui-out.h (struct ui_file): Declare opaque.
2133 * dwarf2-frame.h (struct frame_info): Declare opaque.
2135 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2137 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2139 (procfs_meminfo): Change strerror to safe_strerror.
2140 (procfs_can_run): Remove K&R badness.
2142 2003-07-17 Michael Snyder <msnyder@redhat.com>
2144 * remote-sim.c: Comment typo fix.
2146 2003-07-17 Andrew Cagney <cagney@redhat.com>
2148 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2150 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2151 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2152 GDB_MULTI_ARCH_PARTIAL.
2154 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2156 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2157 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2158 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2160 2003-07-16 Theodore A. Roth <troth@openavr.org>
2162 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2164 (avr_frame_unwind_cache): Don't unwind FP for main.
2166 Save the computed prev_sp.
2167 (avr_saved_regs_unwinder): Remove function.
2168 (avr_frame_prev_register): Use PC unwind logic from
2169 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2171 2003-07-16 Andrew Cagney <cagney@redhat.com>
2173 * frame-base.h (frame_base_p_ftype): Delete definition.
2174 (frame_base_append_predicate): Delete declaration.
2175 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2176 (frame_unwind_append_predicate): Delete declaration.
2177 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2178 (append_predicate): Delete parameter "p".
2179 (frame_unwind_append_predicate): Delete function.
2180 (frame_unwind_append_sniffer): Update call to append_predicate.
2181 (frame_unwind_free): Delete function.
2182 (_initialize_frame_unwind): Pass NULL as "free" to
2183 register_gdbarch_data.
2184 (frame_unwind_init): Append the dummy_frame_sniffer.
2185 (frame_unwind_find_by_frame): Simplify.
2186 * frame-base.c (struct frame_base_table): Delete field "p".
2187 (append_predicate): Delete parameter "p".
2188 (frame_base_append_predicate): Delete function.
2189 (frame_base_append_sniffer): Update call to append_predicate.
2190 (frame_base_free): Delete function.
2191 (frame_base_find_by_frame): Simplify.
2192 (_initialize_frame_base): Pass NULL as "free" to
2193 register_gdbarch_data.
2194 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2195 (x86_64_sigtramp_frame_sniffer): Replace
2196 "x86_64_sigtramp_frame_p".
2197 (x86_64_init_abi): Set the frame unwind sniffers.
2198 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2199 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2200 (m68k_gdbarch_init): Set the frame unwind sniffers.
2201 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2202 "i386_sigtramp_frame_p".
2203 (i386_frame_sniffer): Replace "i386_frame_p".
2204 (i386_gdbarch_init): Set the frame unwind sniffers.
2205 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2206 (avr_gdbarch_init): Set the frame unwind sniffers.
2207 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2208 "alpha_sigtramp_frame_p"
2209 (alpha_heuristic_frame_sniffer): Replace
2210 "alpha_heuristic_frame_p".
2211 (alpha_gdbarch_init): Set the frame unwind sniffers.
2212 (alpha_dwarf2_init_abi): Ditto.
2213 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2214 "alpha_debug_frame_p".
2215 (alpha_mdebug_frame_base_sniffer): Replace
2216 "alpha_mdebug_frame_base_p".
2217 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2218 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2219 (d10v_gdbarch_init): Set the frame unwind sniffer.
2220 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2221 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2222 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2223 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2224 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2225 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2227 2003-07-16 Michael Snyder <msnyder@redhat.com>
2229 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2230 should go thru sh_dsp_register_sim_regno, else the dsp regs
2231 will not get the right values.
2233 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2235 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2236 deprecated_store_floating by call to store_typed_floating.
2237 (sh_sh4_register_convert_to_raw): Substitute call to
2238 deprecated_extract_floating by call to extract_typed_floating.
2240 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2242 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2244 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2246 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2247 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2248 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2250 (do_pseudo_register): Remove.
2251 (sh_push_dummy_code): New function.
2252 (sh64_store_struct_return): Rename from sh_store_struct_return.
2253 Only called for sh64 now.
2254 (sh_extract_struct_value_address): Regcache'ify.
2255 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2256 and accomodate new tasks.
2257 (sh64_push_return_address): Rename from sh_push_return_address.
2258 Only called for sh64 now.
2259 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2261 (sh3e_sh4_extract_return_value): Regcache'ify.
2262 (sh_default_store_return_value): Ditto.
2263 (sh3e_sh4_store_return_value): Ditto.
2264 (sh_default_register_byte): Remove.
2265 (sh_sh4_register_byte): Remove.
2266 (sh_default_register_raw_size): Remove.
2267 (sh_sh4_register_raw_size): Remove.
2268 (sh_register_virtual_size): Remove.
2269 (sh_sh3e_register_virtual_type): Remove.
2270 (sh_sh3e_register_type): New function.
2271 (sh_sh4_register_virtual_type): Remove.
2272 (sh_sh4_register_type): New function.
2273 (sh_default_register_virtual_type): Remove.
2274 (sh_default_register_type): New function.
2275 (do_fv_register_info): Add parameters to accomodate call from
2276 sh_print_registers_info.
2277 (do_dr_register_info): Ditto.
2278 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2279 Add parameters to accomodate call from sh_print_registers_info.
2280 (sh_do_fp_register): Ditto.
2281 (sh64_do_pseudo_register): Call do_dr_register_info,
2282 do_fv_register_info and sh_do_fp_register with default parameters.
2283 (sh_do_register): Add parameters to accomodate call from
2284 sh_print_registers_info.
2285 (sh_print_register): Ditto.
2286 (sh_print_registers_info): Rename from sh_do_registers_info.
2287 Add parameters to be used as gdbarch_print_registers_info
2288 implementation. Accomodate removed do_pseudo_register function
2290 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2291 function pointer. Call sh_print_register with default parameters.
2292 (sh64_do_registers_info): Call sh_print_registers_info instead of
2293 sh_do_registers_info.
2294 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2295 detection of deprecated vs. non-deprecated functionality.
2296 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2297 function pointer assignments by direct function calls.
2299 2003-07-15 Andrew Cagney <cagney@redhat.com>
2301 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2302 (frame_register_unwind, create_new_frame): Ditto.
2303 (legacy_get_prev_frame, get_frame_type): Ditto.
2304 (get_frame_base_address): Use frame_base_find_by_frame.
2305 (get_frame_locals_address): Use frame_base_find_by_frame.
2306 (get_frame_args_address): Use frame_base_find_by_frame.
2307 * frame-base.h (frame_base_sniffer_ftype): Declare.
2308 (frame_base_append_sniffer): Declare.
2309 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2310 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2311 (frame_base_append_sniffer): New function.
2312 (frame_base_append_predicate): Add a NULL sniffer.
2313 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2314 (struct frame_base_table): Add "sniffer".
2315 (frame_base_free): Free the "sniffer" table.
2316 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2317 (frame_unwind_append_sniffer): Declare.
2318 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2319 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2320 (struct frame_unwind_table): Add "sniffer", delete "middle".
2321 (append_predicate): Add "sniffer" parameter, append the sniffer.
2322 (frame_unwind_init): Update append_predicate call.
2323 (frame_unwind_append_sniffer): New function.
2324 (frame_unwind_append_predicate): Update append_predicate call.
2325 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2327 2003-07-15 Andrew Cagney <cagney@redhat.com>
2329 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2330 before code inhibiting repeated unwind attempts. Add to
2331 commentary on that test's problems.
2332 * blockframe.c (inside_main_func): Look for "main" in the minimal
2334 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2337 2003-07-15 Andrew Cagney <cagney@redhat.com>
2339 * complaints.c (struct explanation): Define.
2340 (struct complaints): Change type of "explanation" to "struct
2342 (symfile_explanations): Convert to a "struct explanation" table.
2343 (vcomplaint): Update.
2345 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2347 * x86-64-linux-nat.c (regmap): Removed.
2348 (supply_gregset, fill_gregset): Call
2349 x86_64_linux_(fill,supply)_gregset functions.
2350 * x86-64-linux-tdep.c (USER_*): New defines.
2351 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2352 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2354 (fetch_core_registers): Ditto.
2355 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2356 * x86-64-linux-tdep.h: New file.
2357 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2359 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2361 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2363 * x86-64-tdep.c (x86_64_store_return_value): Use
2364 regcache_cooked_write_part instead of regcache_cooked_write.
2366 * configure.host: Add x86_64-*-freebsd*.
2367 * configure.tgt: Add x86_64-*-freebsd*.
2368 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2369 * amd64fbsd-nat.c: New file.
2370 * amd64fbsd-tdep.c: New file.
2371 * config/i386/nm-fbsd64.h: New file.
2372 * config/i386/fbsd64.mh: New file.
2373 * config/i386/fbsd64.mt: New file.
2375 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2377 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2378 `sc_regs_offset' and `sc_fpregs_offset'.
2379 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2380 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2381 (alpha_sigtramp_register_address): Rewrite to use new members of
2382 `struct gdbarch_tdep'.
2383 (alpha_gdbarch_init): Initialize new members of struct
2385 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2386 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2387 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2388 (alphafbsd_pc_in_sigtramp): Implement.
2389 (alphafbsd_sigtramp_offset): New function.
2390 (alphafbsd_sigcontext_addr): New function.
2391 (alphafbsd_init_abi): Initialize signal trampoline related members
2392 of `struct gdbarch_tdep'.
2393 (_initialize_alphafbsd_tdep): Add prototype.
2395 2003-07-11 Theodore A. Roth <troth@openavr.org>
2397 * Makefile.in (install-only): Quote sed expression when generating
2400 2003-07-11 Richard Henderson <rth@redhat.com>
2402 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2403 * dwarf2-frame.c: Include complaints.h.
2404 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2405 variable initialization; return NULL on error.
2406 (decode_frame_entry): New.
2408 2003-07-11 Andrew Cagney <cagney@redhat.com>
2410 * frame.h (frame_address_in_block): Delete declaration.
2411 * blockframe.c (frame_address_in_block): Delete function.
2412 (get_frame_block): Use get_frame_address_in_block.
2413 (block_innermost_frame): Ditto.
2414 * stack.c (print_frame, backtrace_command_1): Ditto.
2416 * frame.h (get_frame_address_in_block): Declare.
2417 (frame_unwind_address_in_block): Declare.
2418 * frame.c (frame_unwind_address_in_block): New function.
2419 (get_frame_address_in_block): New function.
2421 2003-07-10 Andrew Cagney <cagney@redhat.com>
2423 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2424 pre-default. Note: re-generate has no effect.
2426 2003-07-10 Andrew Cagney <cagney@redhat.com>
2428 * gdbarch.sh: When a variable, but not a function, compare against
2429 0. Fix problem in previous patch.
2430 * gdbarch.c: Re-generate.
2432 2003-07-10 Andrew Cagney <cagney@redhat.com>
2434 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2435 functions against NULL, not 0.
2436 * gdbarch.c: Re-generate.
2438 2003-07-10 Fred Fish <fnf@ninemoons.com>
2440 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2441 null string instead of a null pointer.
2442 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2444 2003-07-09 Michael Snyder <msnyder@redhat.com>
2446 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2448 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2450 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2451 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2452 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2453 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2454 * x86-64-tdep.c: ... from here.
2456 2003-07-09 Andreas Schwab <schwab@suse.de>
2458 * m68k-tdep.h (enum struct_return): Define.
2459 (struct gdbarch_tdep): Add struct_return.
2460 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2461 bytes are padded to the right, not to the left. Pass struct value
2462 address in register %a1, not on stack.
2463 (m68k_use_struct_convention): New function.
2464 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2465 struct_return in tdep to pcc_struct_return.
2466 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2469 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2471 * somread.c (som_symfile_offsets): Fix compilation error.
2473 2003-07-09 Andrew Cagney <cagney@redhat.com>
2475 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2476 Add comments about the checks.
2478 2003-07-08 Andrew Cagney <cagney@redhat.com>
2480 * Makefile.in: Make dependency section headers consistent.
2481 (config_h): Move to $BUILD headers section.
2482 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2483 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2484 (ada-exp.tab.c): Move to YACC/LEX section.
2485 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2486 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2488 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2490 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2491 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2492 of strerror with safe_strerror, use ISO C function definitions,
2493 and replace instances of sprintf with snprintf.
2495 2003-07-07 Andrew Cagney <cagney@redhat.com>
2497 * frame.c (get_prev_frame): Enable check for identical frames.
2498 Update comments. Update error messages.
2500 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2502 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2504 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2506 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2507 sort_symtab_syms, no longer necessary.
2509 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2511 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2513 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2515 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2516 (mips_register_byte): Likewise.
2518 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2520 * Makefile.in (sparc_tdep_h): New.
2521 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2522 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2523 * sparc-linux-nat.c: Include "sparc-tdep.h".
2524 * sparc-nat.c: Likewise.
2525 * sparc-tdep.c: Likewise.
2526 * sparc64nbsd-nat.c: Likewise.
2527 * sparcnbsd-nat.c: Likewise.
2528 * sparcnbsd-tdep.c: Likewise.
2529 * sparc-tdep.h: New file.
2530 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2531 and sparc_npc_regnum.
2533 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2535 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2536 (mips_linux_cannot_store_register): List supported instead of
2537 unsupported registers.
2539 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2541 * disasm.c (dump_insns): Separate instructions from addresses.
2543 2003-07-07 Andreas Schwab <schwab@suse.de>
2545 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2547 * m68k-tdep.c (NUM_FREGS): Delete.
2548 (SIG_PC_FP_OFFSET): Delete.
2549 (TARGET_M68K): Delete.
2550 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2551 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2552 P_MOVEL_SP, P_MOVEML_SP): Define.
2553 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2555 (m68k_register_raw_size): Delete.
2556 (m68k_register_virtual_size): Delete.
2557 (m68k_register_type): Renamed from m68k_register_virtual_type and
2558 add gdbarch argument.
2559 (m68k_store_struct_return): Delete.
2560 (m68k_deprecated_extract_return_value): Delete.
2561 (m68k_deprecated_extract_struct_value_address): Delete.
2562 (m68k_frame_chain): Delete.
2563 (m68k_frame_saved_pc): Delete.
2564 (m68k_fix_call_dummy): Delete.
2565 (m68k_push_dummy_frame): Delete.
2566 (m68k_pop_frame): Delete.
2567 (m68k_extract_return_value): New function.
2568 (m68k_store_return_value): Rewrite using regcache.
2569 (m68k_extract_struct_value_address): Rewrite using regcache.
2570 (m68k_push_dummy_call): New function.
2571 (struct m68k_frame_cache): Define.
2572 (m68k_alloc_frame_cache): New function.
2573 (m68k_analyze_frame_setup): New function.
2574 (m68k_analyze_register_saves): New function.
2575 (m68k_analyze_prologue): New function.
2576 (m68k_skip_prologue): Rewrite using above functions.
2577 (m68k_unwind_pc): New function.
2578 (m68k_frame_cache): New function.
2579 (m68k_frame_this_id): New function.
2580 (m68k_frame_prev_register): New function.
2581 (m68k_frame_unwind): New variable.
2582 (m68k_frame_p): New function.
2583 (m68k_sigtramp_frame_cache): New function.
2584 (m68k_sigtramp_frame_this_id): New function.
2585 (m68k_sigtramp_frame_prev_register): New function.
2586 (m68k_sigtramp_frame_unwind): New variable.
2587 (m68k_sigtramp_frame_p): New function.
2588 (m68k_frame_base_address): New function.
2589 (m68k_frame_base): New function.
2590 (m68k_unwind_dummy_id): New function.
2591 (fill_gregset): Use regcache_collect.
2592 (fill_fpregset): Likewise.
2593 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2595 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2596 deprecated_init_frame_pc, deprecated_store_struct_return,
2597 deprecated_extract_return_value, deprecated_store_return_value,
2598 deprecated_frame_chain, deprecated_frame_saved_pc,
2599 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2600 deprecated_register_virtual_size,
2601 deprecated_max_register_raw_size,
2602 deprecated_max_register_virtual_size,
2603 deprecated_register_virtual_type, deprecated_register_size,
2604 deprecated_register_byte, deprecated_register_bytes,
2605 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2606 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2607 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2608 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2609 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2610 deprecated_push_dummy_frame, deprecated_pop_frame,
2611 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2612 only if SYSCALL_TRAP is defined. Set extract_return_value,
2613 store_return_value, extract_struct_value_address, register_type,
2614 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2616 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2617 M68K_MAX_REGISTER_SIZE): Define.
2618 (struct m68k_sigtramp_info): Define.
2619 (struct gdbarch_tdep): Add get_sigtramp_info.
2620 * m68klinux-nat.c (fetch_register): Use register_size instead of
2621 REGISTER_RAW_SIZE. Don't put assignment in if.
2622 (store_register): Likewise.
2623 (fetch_inferior_registers): Likewise.
2624 (store_inferior_registers): Likewise.
2625 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2626 (m68k_linux_frame_saved_pc): Delete.
2627 (m68k_linux_sigcontext_reg_offset,
2628 m68k_linux_ucontext_reg_offset): Define.
2629 (m68k_linux_get_sigtramp_info): New function.
2630 (m68k_linux_extract_return_value): Rewrite using regcache.
2631 (m68k_linux_store_return_value): Likewise.
2632 (m68k_linux_extract_struct_value_address): Likewise.
2633 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2634 Don't set deprecated_frame_saved_pc,
2635 deprecated_extract_return_value, deprecated_store_return_value,
2636 deprecated_extract_struct_value_address. Set
2637 extract_return_value, store_return_value,
2638 extract_struct_value_address.
2640 2003-07-07 Andrew Cagney <cagney@redhat.com>
2642 * expprint.c: Include "user-regs.h" instead of "frame.h".
2643 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2644 frame_map_regnum_to_name.
2645 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2646 (frame_map_name_to_regnum): Simplify, call
2647 user_reg_map_name_to_regnum.
2648 (frame_map_regnum_to_name): Simplify, call
2649 user_reg_map_regnum_to_name.
2650 (frame_register_unwind): Update.
2651 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2652 (_initialize_frame_reg): Call user_reg_add_builtin.
2653 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2654 (value_of_register): Use value_of_user_reg.
2655 * eval.c (evaluate_subexp_standard): Update.
2656 * parse.c (write_dollar_variable): Update.
2657 * d10v-tdep.c (d10v_print_registers_info): Update.
2658 * infcmd.c (registers_info): Update.
2659 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2660 (builtin_regs_h): Delete macro.
2661 (user_regs_h): Define.
2662 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2663 (builtin-regs.o): Delete target.
2664 (user-regs.o): Specify dependencies.
2665 (expprint.o): Update dependencies.
2666 (findvar.o): Update dependencies.
2667 (frame.o): Update dependencies.
2668 (std-regs.o): Update dependencies.
2670 2003-07-06 Christopher Faylor <cgf@redhat.com>
2672 * win32-nat.c (solib_symbols_add): Use one variable for all section
2673 address stuff. Pass variable rather than address of variable to
2674 safe_symbol_file_add.
2676 2003-07-06 Andreas Schwab <schwab@suse.de>
2678 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2680 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2682 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2684 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2686 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2688 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2690 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2691 * config/i386/nto.mh: New file.
2692 * config/i386/nm-nto.h: New file.
2693 * configure.host: Add i[3456]86-*-nto*.
2695 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2697 * remote-vx.c (vx_add_symbols): Fix compilation error.
2699 2003-07-03 Andrew Cagney <cagney@redhat.com>
2701 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2702 * gdbarch.h, gdbarch.c: Re-generate.
2703 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2704 (legacy_register_name): Declare.
2705 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2706 (REGISTER_NAME): Define.
2707 * sparc-tdep.c (legacy_register_name): New function.
2708 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2709 (REGISTER_NAME): Define.
2710 (hppa64_register_name): Declare.
2711 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2712 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2713 (hppa64_register_name): New function.
2714 (hppa_register_name): New function.
2715 * arch-utils.c (legacy_register_name): Delete.
2716 * arch-utils.h (legacy_register_name): Delete.
2718 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2720 * cli/cli-interp.c (cli_interpreter_resume): Update the
2721 cli_uiout's stream to gdb_stdout.
2723 2003-07-03 Andrew Cagney <cagney@redhat.com>
2725 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2727 * gdbarch.h, gdbarch.c: Re-generate.
2728 * regcache.c (init_regcache_descr): Use legacy code when either
2729 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2731 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2733 * NEWS: Move "set logging" entry into GDB 6.0 section.
2735 2003-07-02 Jim Blandy <jimb@redhat.com>
2737 * s390-tdep.c (struct frame_extra_info): new member:
2738 'stack_bought_valid'.
2739 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2740 initialize fextra_info->stack_bought.
2741 (s390_frameless_function_invocation): Don't trust the value of
2742 fextra_info_ptr->stack_bought unless
2743 fextra_info->stack_bought_valid is set.
2745 New S390 prologue analyzer.
2746 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2747 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2748 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2749 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2750 compute_x_addr, s390_on_stack, s390_store,
2751 s390_get_signal_frame_info): New functions.
2752 (S390_NUM_SPILL_SLOTS): New macro.
2753 (s390_get_frame_info): Rewritten.
2754 (is_arg_reg): Deleted.
2756 Break out the decoding of S/390 instructions into separate
2757 functions, to make it more legible, and easier to check
2759 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2760 is_rx, is_rxe): New functions.
2761 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2762 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2763 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2764 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2765 enums for opcode values. (Is this an improvement?)
2767 2003-07-02 Andrew Cagney <cagney@redhat.com>
2769 * i386-tdep.c: Revert change committed as part of trad-frame code
2772 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2774 * breakpoint.c (insert_catchpoint): Make static.
2776 2003-07-02 Andreas Schwab <schwab@suse.de>
2778 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2779 former ia64_push_arguments and ia64_push_return_address, and use
2780 regcache functions instead of read/write_register.
2781 (ia64_gdbarch_init): Set push_dummy_call instead of
2782 deprecated_push_arguments and deprecated_push_return_address.
2784 2003-07-01 Andreas Jaeger <aj@suse.de>
2786 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2788 Set %rax only to number of SSE registers used.
2790 2003-07-01 Andrew Cagney <cagney@redhat.com>
2792 * trad-frame.h: Update comments, a -1 .addr is reserved.
2793 (trad_frame_value_p, trad_frame_addr_p): Declare.
2794 (trad_frame_reg_p): Declare.
2795 (trad_frame_set_value): Rename trad_frame_register_value.
2796 (trad_frame_set_unknown): Declare.
2797 * trad-frame.c (trad_frame_realreg_p): New function.
2798 (trad_frame_addr_p, trad_frame_value_p): New function.
2799 (trad_frame_set_unknown): New function.
2800 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2801 (trad_frame_prev_register): Use trad_frame_realreg_p,
2802 trad_frame_addr_p and trad_frame_value_p.
2803 (trad_frame_set_value): Rename trad_frame_register_value.
2804 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2805 and trad_frame_set_value.
2807 2003-06-30 Jim Blandy <jimb@redhat.com>
2809 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2810 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2811 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2812 for 16 registers, and then 32 more bytes.
2813 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2815 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2816 Move up in the file, since it's now used by is_simple_arg.
2817 (is_simple_arg): Don't assume registers are four bytes long.
2818 Exclude all double arguments. Extended floats are not simple
2820 (is_power_of_two): New function.
2821 (pass_by_copy_ref): Call is_power_of_two, and check that the
2822 length fits in a register, rather than listing all the acceptable
2823 sizes. Extended floats are not passed by reference.
2824 (s390_push_arguments): Don't assume registers are four bytes long.
2825 Reserve an argument register to point to the buffer for structures
2826 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2827 S390_STACK_FRAME_OVERHEAD.
2829 2003-06-30 Andreas Schwab <schwab@suse.de>
2831 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2832 format error message.
2834 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2836 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2838 2003-06-30 David Carlton <carlton@kealia.com>
2840 Band-aid for PR c++/1245.
2841 * Makefile.in (cp-support.o): Depend on complaints_h.
2842 * cp-support.c: Include complaints.h. Add declaration for
2843 find_last_component.
2844 (cp_find_first_component): Separate code into
2845 cp_find_first_component_aux.
2846 (cp_find_first_component_aux): Call demangled_name_complaint.
2847 (demangled_name_complaint): New.
2849 2003-06-30 Andrew Cagney <cagney@redhat.com>
2851 * remote.c (remote_write_bytes): Explicitly compute and then use
2852 the payload size. Update comments to reflect. Fixes problem of
2853 GDB not sending small packets as found by Fred Fish.
2855 2003-06-30 Andrew Cagney <cagney@redhat.com>
2857 * remote.c (remote_async_wait): Fix -Wformat problem.
2859 2003-06-29 Andrew Cagney <cagney@redhat.com>
2861 * remote.c (remote_wait): Call error, and not warning, when the
2863 (remote_async_wait): Ditto.
2865 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2867 * sparc-tdep.c (sparc_y_regnum): Make external again.
2869 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2871 * cli/cli-logging.c (pop_output_files): Add void to function
2874 2003-06-29 Andrew Cagney <cagney@redhat.com>
2876 * frame.c (frame_register_unwind): Use unsigned char when dumping
2877 the buffer contents.
2879 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2881 * cli/cli-logging.c: New file.
2882 * cli-out.c (struct ui_out_data): Add original_stream.
2883 (cli_redirect): New function.
2884 (cli_ui_out_impl): Add cli_redirect.
2885 (cli_out_new): Initialize original_stream.
2886 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2887 (uo_redirect, ui_out_redirect): New.
2888 * ui-out.h (struct ui_out_impl): Add redirect member.
2889 (redirect_ftype): New.
2890 (ui_out_redirect): Add prototype.
2891 * Makefile.in: Add rules for cli-logging.c.
2892 * NEWS: Mention "set logging".
2894 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2896 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2898 2003-06-27 Andrew Cagney <cagney@redhat.com>
2900 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2901 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2902 * avr-tdep.c (avr_call_dummy_address): Delete function.
2903 (avr_gdbarch_init): Do not set call_dummy_address.
2905 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2907 * symfile.c (syms_from_objfile): Move variables to inner block.
2908 Move the checks for the non-mainline case a bit earlier to avoid
2909 doing some useless computations.
2911 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2913 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2915 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2917 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2920 2003-06-26 Michael Chastain <mec@shout.net>
2922 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2923 gdb/testsuite/gdb.c++/pr-1210.exp.
2925 2003-06-26 Andrew Cagney <cagney@redhat.com>
2927 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2928 altivec_expression.h and altivec_registers.h.
2930 2003-06-26 Andrew Cagney <cagney@redhat.com>
2932 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2933 info->mach when MIPS16. Patch suggested by Fred Fish.
2935 2003-06-26 Andrew Cagney <cagney@redhat.com>
2937 * utils.c (internal_vproblem): Print the problem to a reason
2938 buffer and then pass to query. Make the msg variable more local.
2940 2003-06-26 Andrew Cagney <cagney@redhat.com>
2942 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2943 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2944 * gdbarch.h, gdbarch.c: Re-generate.
2945 * frame-base.c (default_frame_args_address): Update. Use
2946 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2948 (default_frame_locals_address): Ditto for
2949 DEPRECATED_FRAME_LOCALS_ADDRESS.
2950 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2951 (vax_frame_num_args): Update.
2952 (vax_gdbarch_init): Update.
2953 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2954 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2955 * mcore-tdep.c (mcore_gdbarch_init): Update.
2956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2957 * ia64-tdep.c (ia64_gdbarch_init): Update.
2958 * symtab.h (address_class): Update comments.
2959 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2960 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2961 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2962 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2963 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2964 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2965 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2966 * alpha-mdebug-tdep.c: Update.
2967 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2969 2003-06-26 Andreas Jaeger <aj@suse.de>
2971 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2972 of SSE registers so that varargs functions work. Rework handling
2973 of passing arguments on the stack.
2974 (x86_64_store_return_value): Return double and float values in SSE
2977 2003-06-24 Michael Chastain <mec@shout.net>
2979 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2980 the "constructor breakpoints ignored" bug.
2982 2003-06-25 David Carlton <carlton@kealia.com>
2984 * MAINTAINERS: Update e-mail address.
2986 2003-06-24 Jim Blandy <jimb@redhat.com>
2988 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2990 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2992 (ppc_linux_init_abi): Register it as the
2993 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2995 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2996 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2999 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3000 (ppc64_standard_linkage_target): Use it.
3002 2003-06-23 Andrew Cagney <cagney@redhat.com>
3004 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3005 for 0 "int0" and 4 "int32" sized registers.
3006 * gdbtypes.c (builtin_type_int0): Define.
3007 (build_gdbtypes): Initialize builtin_type_int0.
3008 * gdbtypes.h (builtin_type_int0): Declare.
3010 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3012 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3013 as characters are unsigned.
3015 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3018 * dwarfread.c (struct_type): Skip static fields without crashing.
3020 2003-06-22 Andrew Cagney <cagney@redhat.com>
3022 GDB 6.0 branch created.
3024 * PROBLEMS: Update. Empty.
3027 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3029 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3030 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3032 2003-06-22 Andrew Cagney <cagney@redhat.com>
3034 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3035 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3038 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3040 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3043 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3045 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3046 argument of val_print.
3047 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3048 to the address argument of baseclass_offset or target_read_memory.
3049 Do add it to the argument of cp_print_value_fields.
3051 2003-06-21 Andrew Cagney <cagney@redhat.com>
3053 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3054 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3055 instead of 0..NUM_REGS.
3056 (mips_register_reggroup_p): New function.
3057 (mips_pseudo_register_write): New function.
3058 (mips_pseudo_register_read): New function.
3059 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3060 based on the register's type.
3061 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3063 (mips_get_saved_register): Simplify. Assert that REGNO is a
3065 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3066 (mips_register_type): Replace mips_register_virtual_type. Map
3067 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3069 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3070 that the register is cooked / virtual.
3071 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3072 Only get the extra info when needed.
3073 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3074 (mips32_heuristic_proc_desc): Fetch the cooked register.
3075 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3076 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3077 (mips_print_register): Use gdbarch_register_type, instead of
3078 REGISTER_VIRTUAL_TYPE.
3079 (print_gp_register_row): Use gdbarch_register_type, instead of
3080 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3081 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3082 Print the pseudo / cooked registers.
3083 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3084 Print the pseudo / cooked registers.
3085 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3086 REG_NUM is pseudo / cooked.
3087 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3088 (mips_n32n64_xfer_return_value): Ditto.
3089 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3090 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3091 (mips_register_sim_regno): New function.
3092 (mips_gdbarch_init): Set deprecated_register_byte,
3093 register_group_p, pseudo_register_write, pseudo_register_read,
3094 register_sim_regno, and num_pseudo_regs. Set register_type,
3095 instead of register_virtual_type.
3096 * Makefile.in (mips-tdep.o): Update dependencies.
3097 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3098 REGISTER_VIRTUAL_TYPE.
3099 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3100 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3101 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3102 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3103 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3105 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3107 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3108 * cli/cli-cmds.c: Include "gdb_vfork.h".
3109 (shell_escape): Use vfork.
3111 2003-06-21 Andrew Cagney <cagney@redhat.com>
3113 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3114 32 bit floating-point register saves.
3116 * frame.h (deprecated_unwind_get_saved_register): Delete.
3117 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3118 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3119 and deprecated_get_next_frame_hack instead of
3120 deprecated_unwind_get_saved_register.
3122 * mips-tdep.c (mips_dump_tdep): Do not print
3123 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3125 * frame.c (get_frame_register): New function.
3126 (frame_unwind_register_signed): New function.
3127 (get_frame_register_signed): New function.
3128 (frame_unwind_register_unsigned): New function.
3129 (get_frame_register_unsigned): New function.
3130 * frame.h: Add comments on naming schema.
3131 (get_frame_register, frame_unwind_register_signed): Declare.
3132 (get_frame_register_signed, get_frame_register_signed): Declare.
3133 (frame_unwind_register_unsigned): Declare.
3134 (get_frame_register_unsigned): Declare.
3136 2003-06-20 Theodore A. Roth <troth@openavr.org>
3138 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3140 2003-06-20 Theodore A. Roth <troth@openavr.org>
3142 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3143 (avr_read_sp): Ditto.
3145 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3147 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3148 * config/arm/nm-linux.h: Likewise.
3149 * config/arm/tm-linux.h: Likewise.
3150 * config/ia64/nm-linux.h: Likewise.
3151 * config/ia64/tm-ia64.h: Likewise.
3152 * config/s390/tm-linux.h: Likewise.
3153 * config/s390/tm-s390.h: Likewise.
3154 * s390-nat.c: Likewise.
3155 * s390-tdep.c: Likewise.
3157 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3158 * config/ia64/linux.mt: Likewise.
3159 * config/m68k/linux.mh: Likewise.
3160 * config/mips/linux.mt: Likewise.
3161 * config/powerpc/linux.mh: Likewise.
3162 * config/sh/linux.mt: Likewise.
3164 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3166 * solib.c (solib_open): Change tests for whether to search
3167 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3170 2003-06-19 Theodore A. Roth <troth@openavr.org>
3172 * avr-tdep.c (avr_frame_address): Delete function.
3173 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3174 set_gdbarch_frame_args_address.
3176 2003-06-19 Andrew Cagney <cagney@redhat.com>
3178 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3179 (REGISTER_CONVERT_FROM_TYPE): Delete.
3180 (mips_register_convert_to_type): Delete declaration.
3181 (mips_register_convert_from_type): Delete declaration.
3182 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3185 2003-06-19 Michael Snyder <msnyder@redhat.com>
3187 * linux-nat.h: New file.
3188 * linux-nat.c: Include linux-nat.h.
3189 * lin-lwp.c: Include linux-nat.h.
3190 Move struct lwp_info def to linux-nat.h.
3191 * linux-proc.c: Include linux-nat.h.
3192 (linux_make_note_section): Iterate over lwps instead of threads.
3193 (linux_do_thread_registers): Use lwp instead of merged pid.
3194 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3195 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3196 Add dependency on linux_nat_h.
3198 2003-06-19 Theodore A. Roth <troth@openavr.org>
3200 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3202 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3204 * varobj.c (get_type, get_target_type): Use check_typedef.
3206 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3208 * breakpoint.c (insert_catchpoint): Call internal_error.
3210 2003-06-19 Theodore A. Roth <troth@openavr.org>
3212 * avr-tdep.c (avr_push_dummy_code): Delete function.
3213 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3215 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3217 * arch-utils.c (default_prepare_to_proceed): Remove.
3218 (generic_prepare_to_proceed): Remove.
3219 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3220 (generic_prepare_to_proceed): Remove prototype.
3221 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3222 * gdbarch.c: Regenerate.
3223 * gdbarch.h: Regenerate.
3224 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3225 * hppah-nat.c (hppa_switched_threads): Remove.
3226 * infrun.c (prepare_to_proceed): New static function, copied from
3227 generic_prepare_to_proceed. Remove select_it argument.
3228 (proceed): Call prepare_to_proceed.
3229 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3231 (ptrace_wait): Don't set the removed variables.
3232 (hppa_switched_threads): Remove.
3233 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3234 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3235 (lin_lwp_prepare_to_proceed): Remove prototype.
3236 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3237 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3239 2003-06-18 Theodore A. Roth <troth@openavr.org>
3241 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3243 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3244 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3245 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3246 (AVR_PROLOGUE_*): Enumerate prologue types.
3247 (struct frame_extra_info): Remove.
3248 (struct avr_unwind_cache): Define.
3249 (avr_write_sp): Delete function.
3250 (avr_read_fp): Ditto.
3251 (avr_init_extra_frame_info): Ditto.
3252 (avr_pop_frame): Ditto.
3253 (avr_frame_saved_pc): Ditto.
3254 (avr_saved_pc_after_call): Ditto.
3255 (avr_push_return_address): Ditto.
3256 (avr_frame_chain): Ditto.
3257 (avr_store_struct_return): Ditto.
3258 (avr_push_arguments): Ditto.
3259 (avr_scan_prologue): Update comments. Changed to set up the info for
3260 cache unwinding. Now returns end of prologue PC.
3261 (avr_skip_prologue): Better handling of functions lacking a prologue
3262 by using avr_scan_prologue.
3263 (avr_scan_arg_moves): New function.
3264 (avr_saved_regs_unwinder): Ditto.
3265 (avr_frame_unwind_cache): Ditto.
3266 (avr_unwind_pc): Ditto.
3267 (avr_frame_this_id): Ditto.
3268 (avr_frame_prev_register): Ditto.
3269 (avr_frame_p): Ditto.
3270 (avr_frame_base_address ): Ditto.
3271 (avr_unwind_dummy_id): Ditto.
3272 (avr_push_dummy_code): Ditto.
3273 (push_stack_item): Ditto.
3274 (pop_stack_item): Ditto.
3275 (avr_push_dummy_call): Ditto.
3276 (struct stack_item): Define.
3277 (avr_frame_unwind): Declare structure.
3278 (avr_frame_base): Ditto.
3279 (avr_gdbarch_init): Remove calls to
3280 set_gdbarch_deprecated_init_frame_pc,
3281 set_gdbarch_deprecated_target_read_fp,
3282 set_gdbarch_deprecated_dummy_write_sp,
3283 set_gdbarch_deprecated_fp_regnum,
3284 set_gdbarch_deprecated_push_arguments,
3285 set_gdbarch_deprecated_push_return_address,
3286 set_gdbarch_deprecated_pop_frame,
3287 set_gdbarch_deprecated_store_struct_return,
3288 set_gdbarch_deprecated_frame_init_saved_regs,
3289 set_gdbarch_deprecated_init_extra_frame_info,
3290 set_gdbarch_deprecated_frame_chain,
3291 set_gdbarch_deprecated_frame_saved_pc,
3292 set_gdbarch_deprecated_saved_pc_after_call.
3293 Add calls to set_gdbarch_push_dummy_call,
3294 set_gdbarch_push_dummy_code,
3295 frame_unwind_append_predicate,
3296 frame_base_set_default,
3297 set_gdbarch_unwind_dummy_id,
3298 set_gdbarch_unwind_pc.
3301 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3303 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3304 registers for H8/300S.
3305 (h8300_print_registers_info): Ditto.
3306 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3308 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3310 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3311 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3312 (lin_lwp_wait): Likewise. Update comments.
3313 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3314 (pull_pid_from_list, linux_record_stopped_pid): New.
3316 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3318 * ada-lang.c (scan_discrim_bound): Name first argument.
3319 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3320 declared by ALL_BLOCK_SYMBOLS.
3322 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3324 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3325 ("regcache.h"): Include it.
3326 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3328 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3330 * NEWS: Mention gdbserver detach change and "disconnect" command.
3331 * infcmd.c (disconnect_command): New function.
3332 (_initialize_infcmd): Add ``disconnect'' command.
3333 * remote.c (remote_async_detach): Delete.
3334 (remote_detach): Merge remote_async_detach.
3335 (remote_disconnect): New.
3336 (init_remote_ops): Set to_disconnect.
3337 (init_remote_cisco_ops): Likewise.
3338 (init_remote_async_ops): Likewise. Use remote_detach.
3339 * target.c (cleanup_target): Default to_disconnect.
3340 (update_current_target): Inherit to_disconnect.
3341 (target_disconnect, debug_to_disconnect): New functions.
3342 (setup_target_debug): Set to_disconnect.
3343 * target.h (struct target_ops): Add to_disconnect.
3344 (target_disconnect): Add prototype.
3346 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3348 * breakpoint.c (insert_catchpoint): New function.
3349 (insert_breakpoints): Use catch_exceptions to call
3350 insert_catchpoint. Disable catchpoints if they fail to insert.
3352 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3354 * symfile.c (reread_symbols): Clear sym_private.
3356 2003-06-17 Andrew Cagney <cagney@redhat.com>
3358 * trad-frame.h (struct frame_info): Add opaque declaration.
3359 * remote-fileio.h (struct cmd_list_element): Add opaque
3361 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3364 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3366 * remote.c (remote_prepare_to_store): Replace call to
3367 deprecated_read_register_bytes with multiple regcache_raw_read
3370 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3372 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3373 (nto_find_and_open_solib): Likewise.
3374 (nto_init_solib_absolute_prefix): Likewise.
3375 (_initialize_nto_tdep): Fix indentation.
3377 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3379 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3381 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3383 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3385 2003-06-17 Jim Blandy <jimb@redhat.com>
3387 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3389 2003-06-16 Theodore A. Roth <troth@openavr.org>
3391 * avr-tdep.c (avr_extract_return_value): New function.
3392 (avr_gdbarch_init): Set extract_return_value method.
3394 2003-06-16 Andrew Cagney <cagney@redhat.com>
3396 * frame.h (deprecated_get_next_frame_hack): Declare.
3397 * frame.c (legacy_saved_regs_prev_register): Only require
3398 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3399 there are always saved regs.
3400 (deprecated_generic_get_saved_register): Do not require
3401 DEPRECATED_FRAME_INIT_SAVED_REGS.
3402 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3403 use frame ID unwind instead.
3404 (deprecated_get_next_frame_hack): New function.
3406 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3408 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3409 (h8300_push_dummy_call): ...this function. Some minor optimization.
3410 (h8300_push_return_address): Remove.
3411 (h8300_gdbarch_init): Remove calls to
3412 set_gdbarch_deprecated_dummy_write_sp,
3413 set_gdbarch_deprecated_push_arguments and
3414 set_gdbarch_deprecated_push_return_address.
3415 Add call to set_gdbarch_push_dummy_call.
3417 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3419 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3420 (E_PSEUDO_EXR_REGNUM): Ditto.
3421 (h8300_is_argument_spill): Check for instructions moving argument
3422 registers into safe registers.
3423 (h8300_skip_prologue): Check for stm instruction to push registers
3424 used for register variables onto stack.
3425 (gdb_print_insn_h8300): Remove.
3426 (h8300_examine_prologue): Add a comment.
3427 (h8300_register_name): Take pseudo registers into account.
3428 (h8300s_register_name): Ditto.
3429 (h8300sx_register_name): Ditto.
3430 (h8300_print_register): Ditto.
3431 (h8300_print_registers_info): Define "nice" printing order.
3432 (h8300_saved_pc_after_call): Take pseudo registers into account.
3433 (h8300_register_type): Ditto. Return type used for remote connection
3434 when requesting real CCR or EXR register, return actual type when
3435 requesting pseudo CCR or EXR.
3436 (h8300_pseudo_register_read): New function.
3437 (h8300_pseudo_register_write): Ditto.
3438 (h8300_dbg_reg_to_regnum): Ditto.
3439 (h8300s_dbg_reg_to_regnum): Ditto.
3440 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3441 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3442 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3443 set_gdbarch_print_insn architecture dependent.
3444 Call set_gdbarch_pseudo_register_read and
3445 set_gdbarch_pseudo_register_write.
3446 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3448 2003-06-16 Andrew Cagney <cagney@redhat.com>
3450 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3451 * gdbarch.h, gdbarch.c: Re-generate.
3452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3453 * s390-tdep.c (s390_gdbarch_init): Update.
3454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3455 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3456 * mips-tdep.c (mips_gdbarch_init): Update.
3457 * mcore-tdep.c (mcore_gdbarch_init): Update.
3458 * cris-tdep.c (cris_gdbarch_init): Update.
3459 * infcall.c (call_function_by_hand): Update.
3460 * ia64-tdep.c (ia64_push_arguments): Update comment.
3461 * frame.c (legacy_get_prev_frame): Do not assume
3462 SAVE_DUMMY_FRAME_TOS_P.
3463 * dummy-frame.c (find_dummy_frame): Update comment.
3465 2003-06-16 Andrew Cagney <cagney@redhat.com>
3467 * regcache.c (do_cooked_read): Do not use register_valid_p.
3469 2003-06-15 Theodore A. Roth <troth@openavr.org>
3471 * avr-tdep.c (avr_register_type): Remove a blank line.
3472 (avr_scan_prologue): Correct some comments.
3474 2003-06-15 Theodore A. Roth <troth@openavr.org>
3476 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3478 Properly scan prologues generated by gcc with the -mcall-prologues
3480 Add code to scan -mcall-prologues for mega devices.
3482 2003-06-15 Theodore A. Roth <troth@openavr.org>
3484 * avr-tdep.c (avr_register_byte): Delete function.
3485 (avr_register_raw_size): Delete function.
3486 (avr_register_virtual_size): Delete function.
3487 (avr_register_virtual_type): Delete function.
3488 (avr_register_type): New function.
3489 (avr_address_to_pointer): Remove unused code.
3490 (avr_read_fp): Need to read FP as two separate bytes due to change to
3491 avr_register_type() usage.
3492 (avr_gdbarch_init): Don't set deprecated_register_size.
3493 Don't set deprecated_register_bytes.
3494 Don't set deprecated_register_byte.
3495 Don't set deprecated_register_raw_size.
3496 Don't set deprecated_max_register_raw_size.
3497 Don't set deprecated_register_virtual_size.
3498 Don't set deprecated_max_register_virtual_size.
3499 Don't set deprecated_register_virtual_type.
3500 Set register_type method.
3502 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3504 * Makefile.in (linux-nat.o): Add rule.
3505 * linux-nat.c: New file.
3506 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3507 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3508 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3509 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3510 * config/arm/linux.mh (NATDEPFILES): Likewise.
3511 * config/i386/linux.mh (NATDEPFILES): Likewise.
3512 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3513 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3514 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3515 * config/mips/linux.mh (NATDEPFILES): Likewise.
3516 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3517 * config/s390/s390.mh (NATDEPFILES): Likewise.
3518 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3520 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3522 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3523 replace out-of-date comment.
3525 2003-06-15 Andrew Cagney <cagney@redhat.com>
3527 * rdi-share/host.h (Fail): Change to a varargs function.
3528 * remote-rdi.c (Fail): Update.
3530 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3532 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3533 (i386_convert_register_p, i386_register_to_value,
3534 i386_register_from_value): Handle types longer than 8 bytes.
3536 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3538 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3539 Move floating-point code to new function in i387-tdep.c.
3540 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3541 New functions containing code moved here from i386-tdep.c.
3542 * i387-tdep.h: Add opaque declaration for `struct type'.
3543 (i387_register_to_value, i387_value_to_register): New prototypes.
3544 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3545 (x86_64_init_abi): Set convert_register_p, register_to_value and
3546 value_to_register here.
3548 2003-06-14 Andrew Cagney <cagney@redhat.com>
3550 * mips-tdep.c (mips_register_to_value): Make static.
3551 (mips_value_to_register): Make static.
3552 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3553 * ia64-tdep.c (ia64_register_raw_size): Make static.
3554 (ia64_register_virtual_size): Make static.
3555 (ia64_register_byte): Make static.
3556 * i387-tdep.c: Include "i387-tdep.h".
3557 (print_387_control_word): Delete function.
3558 (print_387_status_word): Delete function.
3559 (print_387_status_bits): Delete function.
3560 (print_387_control_bits): Delete function.
3561 * Makefile.in (i387-tdep.o): Update dependencies.
3562 * rdi-share/host.h (Fail): Declare.
3563 * remote-rdi.c (Fail): Update to match declaration.
3565 2003-06-14 Andrew Cagney <cagney@redhat.com>
3567 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3568 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3569 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3570 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3571 * README: Delete reference to remote-array.
3572 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3573 (remote-array.o): Delete target.
3574 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3575 * remote-array.c: Delete file.
3577 2003-06-14 Andrew Cagney <cagney@redhat.com>
3578 Mark Kettenis <kettenis@gnu.org>
3580 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3581 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3582 parameter with "frame".
3583 * gdbarch.h, gdbarch.c: Re-generate.
3584 * frame.h (put_frame_register): Declare.
3585 * frame.c (put_frame_register): New function.
3586 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3587 (legacy_register_to_value): Rewrite, use "frame" to get the
3589 (legacy_value_to_register): Rewrite, use "frame" to find the
3590 register's location before storing.
3591 * arch-utils.h (legacy_convert_register_p): Update.
3592 (legacy_register_to_value, legacy_value_to_register): Update.
3593 * findvar.c (value_from_register): Rewrite, eliminate use of
3594 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3595 "frame" to REGISTER_TO_VALUE.
3596 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3597 lval_reg_frame_relative + lval_register branch of the switch. Do
3598 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3599 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3600 I386_EDI_REGNUM): New defines.
3601 (i386_next_regnum, i386_convert_register_p,
3602 i386_register_to_value, i386_value_to_register): New functions.
3603 (i386_register_convertible, i386_register_convert_to_virtual,
3604 i386_convert_to_raw): Remove functions.
3605 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3606 value_to_register instead of register_convertible,
3607 register_convert_to_virtual and register_convert_to_raw.
3608 * mips-tdep.c (mips_convert_register_p): New function.
3609 (mips_value_to_register): Replace mips_register_convert_from_type.
3610 (mips_register_to_value): Replace mips_register_convert_to_type.
3611 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3613 * alpha-tdep.c (alpha_convert_register_p): Update.
3614 (alpha_value_to_register): Update, store the register.
3615 (alpha_register_to_value): Update, fetch the register.
3617 2003-06-14 Theodore A. Roth <troth@openavr.org>
3619 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3620 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3621 Don't set deprecated_call_dummy_words.
3622 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3623 Don't set remote_translate_xfer_address.
3624 (avr_io_reg_read_command): Remove commented out debug printf.
3627 2003-06-14 Theodore A. Roth <troth@openavr.org>
3629 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3630 causes gdb to seg fault.
3632 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3634 * sparc-nat.c (fetch_inferior_registers): Correct
3635 a reference to "registers".
3637 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3639 * Makefile.in (exc_request_U_h): Define
3640 (exc_request_S_h): Likewise.
3641 (msg_reply_S_h): Likewise.
3642 (msg_U_h): Likewise.
3643 (notify_S_h): Likewise.
3644 (process_reply_S_h): Likewise.
3645 (gnu-nat.o): Depend on gdb_obstack_h
3646 * gnu-nat.c: Include "gdb_obstack.h".
3648 2003-06-13 Andrew Cagney <cagney@redhat.com>
3650 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3653 2003-06-13 Andrew Cagney <cagney@redhat.com>
3655 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3656 when deprecated REGISTER macros can be deleted.
3657 * gdbarch.h, gdbarch.c: Re-generate.
3659 2003-06-13 Jim Blandy <jimb@redhat.com>
3661 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3662 Linux entry point symbols for _dl_debug_state, too.
3664 2003-06-13 Andrew Cagney <cagney@redhat.com>
3666 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3667 available, do not use the FP register, and always save the TOS.
3668 * dummy-frame.c (dummy_frame_this_id): Do not assert
3669 SAVE_DUMMY_FRAME_TOS.
3670 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3671 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3672 (i386_push_dummy_call): Add 8 to the returned SP.
3673 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3674 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3675 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3676 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3677 (x86_64_push_dummy_call): Return "sp + 16".
3678 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3679 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3680 save_dummy_frame_tos.
3682 2003-06-13 Jim Blandy <jimb@redhat.com>
3684 * frv-tdep.c (frv_use_struct_convention): Delete static
3685 declaration for function deleted in my change of 2003-06-12.
3687 2003-06-13 Theodore A. Roth <troth@openavr.org>
3689 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3690 (avr_pointer_to_address): Shift code addrs left 1 bit.
3691 (avr_convert_from_func_ptr_addr): Delete function since operation is
3692 better handled by avr_address_to_pointer and avr_pointer_to_address.
3693 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3695 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3697 From Kelley Cook <kelleycook@wideopenwest.com>:
3698 * configure.host: Accept i[34567]86 variants.
3699 * configure.tgt: Likewise.
3700 * nlm/configure.in: Likewise.
3701 * nlm/configure: Regenerated.
3703 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3705 * arm-tdep.c (solib-svr4.h): Dont' include it.
3706 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3707 * arm-linux-tdep.c: ... here. Make static.
3708 (arm_linux_init_abi): Register it.
3709 (solib-svr4.h): Include it.
3710 * Makefile.in: Update dependencies.
3711 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3712 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3714 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3716 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3717 indicate registers used for return values.
3718 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3719 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3721 (h8300_init_extra_frame_info): Ditto.
3722 (h8300_frame_locals_address): Removed.
3723 (h8300_frame_args_address): Removed.
3724 (h8300_extract_return_value): Use new regcache structure. Only care
3726 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3727 (h8300_store_return_value): Use new regcache structure. Only care
3729 (h8300h_store_return_value): Same function for 32 bit CPUs.
3730 (h8300_store_struct_return): Removed.
3731 (h8300_extract_struct_value_address): Use new regcache structure.
3732 (h8300h_extract_struct_value_address): Removed.
3733 (h8300_push_dummy_code): New function.
3734 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3735 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3736 set_gdbarch_store_return_value architecture dependent.
3737 Call set_gdbarch_push_dummy_code and
3738 set_gdbarch_extract_struct_value_address.
3739 Remove calls to set_gdbarch_frame_args_address,
3740 set_gdbarch_frame_locals_address,
3741 set_gdbarch_deprecated_store_struct_return,
3742 set_gdbarch_deprecated_extract_return_value,
3743 set_gdbarch_deprecated_extract_struct_value_address,
3744 set_gdbarch_deprecated_call_dummy_words and
3745 set_gdbarch_deprecated_sizeof_call_dummy_words.
3747 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3749 * h8300-tdep.c (h8300_register_byte): Remove.
3750 (h8300h_register_byte): Remove.
3751 (h8300_register_virtual_type): Remove. Substitute by...
3752 (h8300_register_type): New function.
3753 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3754 (h8300h_extract_struct_value_address): Ditto.
3755 (h8300_gdbarch_init): Drop calls to
3756 set_gdbarch_deprecated_register_byte and
3757 set_gdbarch_deprecated_register_virtual_type.
3758 Add call to set_gdbarch_register_type.
3760 2003-06-13 Andrew Cagney <cagney@redhat.com>
3762 * gdbarch.sh: Update comments on registers.
3763 (deprecated_register_byte): Rename register_byte.
3764 (deprecated_register_raw_size): Rename register_raw_size.
3765 (deprecated_register_virtual_size): Rename register_virtual_size.
3766 (deprecated_register_virtual_type): Rename register_virtual_type.
3767 * gdbarch.h, gdbarch.c: Re-generate.
3768 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3769 * vax-tdep.c (vax_gdbarch_init): Update.
3770 * v850-tdep.c (v850_gdbarch_init): Update.
3771 * sparc-tdep.c (sparc_gdbarch_init): Update.
3772 * sh-tdep.c (sh_gdbarch_init): Update.
3773 * s390-tdep.c (s390_gdbarch_init): Update.
3774 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3775 * ns32k-tdep.c: Update.
3776 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3777 * mips-tdep.c (mips_gdbarch_init): Update.
3778 * mcore-tdep.c (mcore_gdbarch_init): Update.
3779 * m68k-tdep.c (m68k_gdbarch_init): Update.
3780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3781 * ia64-tdep.c (ia64_gdbarch_init): Update.
3782 * hppa-tdep.c (hppa_gdbarch_init): Update.
3783 * h8300-tdep.c (h8300_gdbarch_init): Update.
3784 * frv-tdep.c (frv_gdbarch_init): Update.
3785 * cris-tdep.c (cris_gdbarch_init): Update.
3786 * avr-tdep.c (avr_gdbarch_init): Update.
3787 * alpha-tdep.c (alpha_gdbarch_init): Update.
3788 * arm-tdep.c (arm_gdbarch_init): Update.
3790 2003-06-13 Andrew Cagney <cagney@redhat.com>
3792 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3793 mips_o32_use_struct_convention with always_use_struct_convention.
3795 2003-06-12 David Carlton <carlton@kealia.com>
3797 * cp-namespace.c (cp_set_block_scope): Comment out
3798 processing_has_namespace_info branch.
3800 2003-06-12 Jim Blandy <jimb@redhat.com>
3802 Recognize and skip 64-bit PowerPC Linux linkage functions.
3803 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3804 insn_pattern, insns_match_pattern, d_field, ds_field): New
3805 functions, macros, and types for working with PPC instructions.
3806 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3807 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3808 ppc64_skip_trampoline_code): New functions, variables, and macros
3809 for recognizing and skipping linkage functions.
3810 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3811 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3813 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3814 register offsets for both the 32- and 64-bit interfaces.
3816 Actually finish the job started by my change of 2003-05-29.
3817 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3818 other #definition of this.
3819 (ppc_linux_skip_trampoline_code): Remove declaration.
3820 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3822 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3825 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3826 'long' on ppc64-*-linux*.
3828 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3829 isn't #defined, assume the register doesn't exist: act as if
3830 tdep->ppc_mq_regnum were -1.
3832 * configure.host, configure.tgt: Add entries for
3833 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3835 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3838 * arch-utils.c (always_use_struct_convention): New function.
3839 * arch-utils.h (always_use_struct_convention): New prototype.
3840 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3841 (alpha_gdbarch_init): Register always_use_struct_convention,
3842 instead of alpha_use_struct_convention.
3843 * cris-tdep.c (cris_use_struct_convention): Delete.
3844 (cris_gdbarch_init): Register always_use_struct_convention,
3845 instead of cris_use_struct_convention.
3846 * frv-tdep.c (frv_use_struct_convention): Delete.
3847 (frv_gdbarch_init): Register always_use_struct_convention,
3848 instead of frv_use_struct_convention.
3849 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3850 (h8300_gdbarch_init): Register always_use_struct_convention,
3851 instead of h8300_use_struct_convention.
3852 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3853 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3854 instead of mips_o32_use_struct_convention.
3856 2003-06-12 Andrew Cagney <cagney@redhat.com>
3858 * wince.c: Include "mips-tdep.h".
3859 * mips-tdep.h (mips_next_pc): Declare.
3860 * mcore-tdep.c: Make more local functions static.
3861 * Makefile.in (wince.o): Update dependencies.
3863 2003-06-12 David Carlton <carlton@kealia.com>
3865 * symtab.c (lookup_symbol_aux_minsyms): Replace
3866 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3867 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3868 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3869 SYMBOL_NATURAL_NAME.
3871 2003-06-12 Andreas Schwab <schwab@suse.de>
3873 * Makefile.in (tuiDisassem.o): Update dependencies.
3875 2003-06-12 David Carlton <carlton@bactrian.org>
3877 * symtab.h: Delete declaration of make_symbol_overload_list.
3878 Add declaration of lookup_partial_symbol.
3879 * symtab.c (remove_params): Move to cp-support.c.
3880 (overload_list_add_symbol, make_symbol_overload_list)
3881 (sym_return_val_size, sym_return_val_index): Ditto.
3882 (lookup_partial_symbol): Make extern.
3883 * cp-support.h: Add declaration of make_symbol_overload_list.
3884 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3885 symtab.h, and block.h.
3886 (remove_params): Move here from symtab.c.
3887 (overload_list_add_symbol, make_symbol_overload_list)
3888 (sym_return_val_size, sym_return_val_index): Ditto.
3889 * valops.c: Include cp-support.h.
3890 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3891 frame_h, and block_h.
3892 (valops.o): Depend on cp_support_h.
3894 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3896 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3897 substitute by NUM_REGS throughout.
3898 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3899 (h8300s_register_name): New function for H8S registers.
3900 (h8300sx_register_name): Ditto for H8SX registers.
3901 (h8300_print_register): Revise register printing, avoid depending
3903 (h8300_register_byte): Only care for H8/300 registers.
3904 (h8300h_register_byte): New function for any other architecture.
3905 (h8300_register_raw_size): Remove.
3906 (h8300_register_virtual_type): Revise to return actually useful
3908 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3909 (h8300h_extract_struct_value_address): New function for any other
3911 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3912 set_gdbarch_register_name, set_gdbarch_register_byte,
3913 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3914 Remove calls to set_gdbarch_deprecated_register_size,
3915 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3916 set_gdbarch_deprecated_max_register_raw_size,
3917 set_gdbarch_register_virtual_size and
3918 set_gdbarch_deprecated_max_register_virtual_size entirely.
3919 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3920 set_gdbarch_long_double_bit.
3922 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3924 * doublest.c (convert_doublest_to_floatformat): When dealing
3925 with the implied integer bit, only alter mant_bits if we are
3926 processing a full 32 bits of mantissa.
3928 2003-06-11 David Carlton <carlton@bactrian.org>
3930 * dictionary.h: New.
3931 * dictionary.c: New.
3932 * block.h: Add opaque declaration for struct dictionary.
3933 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3935 (BLOCK_DICT): New macro.
3936 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3937 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3939 (ALL_BLOCK_SYMBOLS): Update definition.
3940 * Makefile.in (SFILES): Add dictionary.c.
3941 (dictionary_h): New.
3942 (COMMON_OBS): Add dictionary.o.
3943 (dictionary.o): New.
3944 (ada-lang.o): Depend on dictionary_h.
3945 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3946 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3947 (mi-cmd-stack.o): Ditto.
3948 (gdbtk-cmds.o): Update dependencies.
3949 (gdbtk-stack.o): Ditto.
3950 * ada-lang.c: Include dictionary.h.
3951 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3952 (fill_in_ada_prototype, debug_print_block): Ditto.
3953 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3954 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3956 * mdebugread.c: Include dictionary.h.
3957 (struct parse_stack): Delete 'maxsyms' member.
3958 (parse_symbol): Update calls to new_block. Delete calls to
3959 shrink_block. Use dictionary methods.
3960 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3961 Update calls to new_symtab. Don't maintain maxsyms data.
3962 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3963 (add_symbol): Just call dict_add_symbol.
3964 (new_symtab): Delete 'maxsyms' argument.
3965 (new_symtab): Update calls to new_block.
3966 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3967 (shrink_block): Delete function.
3968 (fixup_sigtramp): Update call to new_block. Add symbol via
3970 * jv-lang.c: Include dictionary.h.
3971 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3972 appropriately. Set class_symtab->free_func. Make sure the
3973 blockvector is big enough to hold two blocks.
3974 (add_class_symtab_symbol): Use dictionary methods.
3975 (free_class_block): New function.
3976 (type_from_class): Replace explicit iteration by
3978 * symtab.h (struct symtab): Replace 'free_ptr' method by
3980 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3982 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3984 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3985 Include dictionary.h.
3986 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3987 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3989 * objfiles.c: Include dictionary.h.
3990 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3991 * buildsym.c: Include dictionary.h.
3992 (finish_block): Use dictionary methods.
3993 (end_symtab): Set free_func to NULL, not free_ptr.
3994 * tracepoint.c: Include dictionary.h.
3995 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3996 (scope_info): Ditto.
3997 * stack.c: Include dictionary.h.
3998 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3999 (print_block_frame_labels, print_frame_arg_vars)
4000 (print_frame_args): Ditto.
4001 * symmisc.c (free_symtab_block): Use dictionary methods.
4002 (dump_symtab): Ditto.
4003 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4004 Include dictionary.h.
4005 * symfile.h: Delete declarations of sort_block_syms,
4007 * symfile.c (sort_block_syms): Delete.
4008 (sort_symtab_syms): Delete.
4009 * symtab.c: Include dictionary.h.
4010 (lookup_block_symbol): Use dictionary iterators.
4011 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4012 (search_symbols, make_symbol_completion_list): Ditto.
4013 (make_symbol_overload_list): Ditto.
4014 * valops.c (value_of_local): Use dict_empty.
4015 Include dictionary.h.
4017 2003-06-11 J. Brobecker <brobecker@gnat.com>
4019 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4021 2003-06-11 David Carlton <carlton@bactrian.org>
4023 * block.h (BLOCK_SHOULD_SORT): Delete.
4024 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4026 * ada-lang.c (ada_add_block_symbols): Ditto.
4027 * symfile.c (sort_block_syms): Delete.
4028 (sort_symtab_syms): Ditto.
4029 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4031 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4032 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4033 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4034 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4035 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4036 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4037 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4039 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4041 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4044 2003-06-11 Andrew Cagney <cagney@redhat.com>
4046 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4047 REGISTER_CONVERTIBLE.
4048 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4049 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4050 * gdbarch.h, gdbarch.c: Re-generate.
4051 * arch-utils.h (deprecated_register_convertible_not): Rename
4052 generic_register_convertible_not.
4053 * arch-utils.c (deprecated_register_convertible_not): Rename
4054 generic_register_convertible.
4055 (legacy_convert_register_p, legacy_register_to_value): Update.
4056 * sh-tdep.c (sh64_push_arguments): Update.
4057 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4058 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4059 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4060 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4061 * arch-utils.c (legacy_value_to_register): Update.
4062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4063 (rs6000_register_convert_to_raw): Make parameter "from" const.
4064 * mips-tdep.c (mips_gdbarch_init): Update.
4065 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4066 * infcmd.c (default_print_registers_info): Update.
4067 * ia64-tdep.c (ia64_gdbarch_init): Update.
4068 (ia64_register_convert_to_raw): Make parameter "from" const.
4069 * i386-tdep.c (i386_gdbarch_init): Update.
4070 (i386_register_convert_to_raw): Update.
4072 2003-06-11 Andrew Cagney <cagney@redhat.com>
4074 * remote-fileio.c: Include "remote-fileio.h".
4075 * Makefile.in (remote-fileio.o): Update dependencies.
4076 (remote_fileio_h): Fix typo.
4078 2003-06-11 Andrew Cagney <cagney@redhat.com>
4080 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4081 (xstormy16_save_dummy_frame_tos): Make static.
4082 (_initialize_xstormy16_tdep): Add declaration.
4083 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4084 * v850-tdep.c: Make local functions static.
4085 (_initialize_v850_tdep): Add declaration.
4086 * sparc-tdep.c: Make local functions static.
4087 (_initialize_sparc_tdep): Add declaration.
4088 * sh-tdep.c: Make local functions static.
4089 (_initialize_sh_tdep): Add declaration.
4090 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4091 * s390-tdep.c: Make local functions static.
4092 (_initialize_s390_tdep): Add declaration.
4093 * dbxread.c (find_stab_function_addr): Make static.
4094 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4095 * ocd.c (_initialize_remote_ocd): Add declaration.
4096 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4097 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4098 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4099 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4100 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4101 * remote-array.c (_initialize_array): Add declaration.
4102 (_initialize_remote_monitors): Add declaration.
4103 * remote-mips.c: Make local functions static.
4104 (_initialize_remote_mips): Add declaration.
4105 * mcore-tdep.c: Make all local functions static.
4106 (_initialize_mcore_tdep): Add declaration.
4107 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4108 * abug-rom.c (_initialize_abug_rom): Add declaration.
4109 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4110 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4111 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4112 * remote-est.c (_initialize_est): Add declaration.
4113 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4114 (m68hc11_call_dummy_address): Make static.
4115 * ia64-tdep.c: Make local functions static.
4116 (_initialize_ia64_tdep): Add declaration.
4117 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4118 * monitor.c (monitor_wait_filter): Make static.
4119 (_initialize_remote_monitors): Add declaration.
4120 * remote-hms.c (_initialize_remote_hms): Add declaration.
4121 * remote-e7000.c (fetch_regs_from_dump): Make static.
4122 (expect_n): Make static.
4123 (_initialize_remote_e7000): Add declaration.
4124 * ser-e7kpc.c: Always include "defs.h".
4125 (_initialize_ser_e7000pc): Add declaration.
4126 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4127 * cris-tdep.c: Make all but one function static.
4128 (_initialize_cris_tdep): Add declaration.
4129 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4130 * solib.c (update_solib_list): Make static.
4131 (_initialize_solib): Add declaration.
4132 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4133 (_initialize_avr_tdep): Add declaration.
4134 * remote-rdi.c (voiddummy): Make static.
4135 (_initialize_remote_rdi): Add declaration.
4136 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4137 * remote-rdp.c (send_rdp): Make static.
4138 (_initialize_remote_rdp): Add declaration.
4139 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4141 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4143 * remote-fileio.c: Make ari happy.
4145 2003-06-10 J. Brobecker <brobecker@gnat.com>
4147 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4148 fetching the trailing bytes of the buffer we are about to write.
4150 2003-06-10 Andrew Cagney <cagney@redhat.com>
4152 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4153 * Makefile.in (remote-fileio.o): Update dependencies.
4154 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4155 include <setjmp.h>, or <sys/types.h> conditional on USG.
4156 (remote_fio_jmp_buf): Delete global variable.
4158 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4159 Martin M. Hunt <hunt@redhat.com>
4161 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4162 (SFILES): Add remote-fileio.c.
4163 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4164 dependencies for building remote.o.
4165 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4166 * remote-fileio.h: New header file defining remote File-I/O interface.
4167 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4168 static storage class.
4169 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4171 (_initialize_remote): Call initialize_remote_fileio().
4172 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4173 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4174 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4175 (captured_main): Initialize new ui_files.
4176 * ui-file.c: Add read and fgets input functions.
4177 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4178 (null_file_read): New function.
4179 (ui_file_read): New function.
4180 (set_ui_file_read): New function.
4181 (stdio_file_read): New function.
4182 * ui-file.h: New type ui_file_read_ftype.
4183 (set_ui_file_read): Declare.
4184 (ui_file_read): Declare.
4186 2003-06-09 Andrew Cagney <cagney@redhat.com>
4188 * frame.h (deprecated_unwind_get_saved_register): Rename
4189 generic_unwind_get_saved_register, update comments.
4190 * mips-tdep.c (mips_get_saved_register): Update.
4191 * frame.c (deprecated_unwind_get_saved_register): Update.
4193 2003-06-09 Andrew Cagney <cagney@redhat.com>
4195 * vax-tdep.c (vax_frame_locals_address): Delete function.
4196 (vax_gdbarch_init): Do not set frame_locals_address.
4197 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4198 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4199 * s390-tdep.c (s390_frame_args_address): Delete function.
4200 (s390_gdbarch_init): Do not set frame_args_address or
4201 frame_locals_address.
4202 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4203 (ns32k_gdbarch_init): Do not set frame_locals_address.
4204 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4205 (hppa_frame_locals_address): Delete function.
4206 (hppa_gdbarch_init): Do not set frame_args_address, or
4207 frame_locals_address.
4208 * arm-tdep.c (arm_frame_args_address): Delete.
4209 (arm_frame_locals_address): Delete.
4210 (arm_gdbarch_init): Do not set frame_args_address, or
4211 frame_locals_address.
4213 2003-06-09 Andrew Cagney <cagney@redhat.com>
4215 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4216 * gdbarch.h, gdbarch.c: Re-generate.
4217 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4218 * arch-utils.c (frame_num_args_unknown): Delete function.
4219 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4220 (frame_info): Use FRAME_NUM_ARGS_P.
4221 * arm-tdep.c (arm_frame_num_args): Delete function.
4222 (arm_gdbarch_init): Do not set frame_num_args.
4223 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4224 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4225 (hppa_gdbarch_init): Do not set frame_num_args.
4226 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4228 frame_num_args to default frame_num_args_unknown.
4229 * v850-tdep.c (v850_gdbarch_init): Ditto.
4230 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4231 * sh-tdep.c (sh_gdbarch_init): Ditto.
4232 * s390-tdep.c (s390_gdbarch_init): Ditto.
4233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4235 * mips-tdep.c (mips_gdbarch_init): Ditto.
4236 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4237 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4239 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4240 * i386-tdep.c (i386_gdbarch_init): Ditto.
4241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4242 * frv-tdep.c (frv_gdbarch_init): Ditto.
4243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4244 * cris-tdep.c (cris_gdbarch_init): Ditto.
4245 * avr-tdep.c (avr_gdbarch_init): Ditto.
4246 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4248 2003-06-09 Andrew Cagney <cagney@redhat.com>
4250 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4251 (print_frame_args): Moved to "stack.c".
4252 * stack.c: Include "gdb_assert.h".
4253 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4254 (print_frame_args): Moved from "printcmd.c".
4255 * frame.h (print_frame_args): Delete declaration.
4256 * Makefile.in (stack.o): Update dependencies.
4258 2003-06-08 Andrew Cagney <cagney@redhat.com>
4260 * frame.c (get_prev_frame): Remove reference to
4261 frame_args_address_correct in comments.
4262 * frame-base.c (default_frame_args_address): Delete code
4263 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4264 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4265 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4266 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4267 (vax_frame_args_address_correct): Delete declaration.
4269 2003-06-08 Andrew Cagney <cagney@redhat.com>
4271 * gdbarch.sh (UNWIND_SP): Add.
4272 * gdbarch.h, gdbarch.c: Re-generate.
4273 * frame.c (frame_sp_unwind): New function.
4274 (get_frame_sp): New function.
4275 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4276 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4277 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4279 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4280 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4282 2003-06-08 Andrew Cagney <cagney@redhat.com>
4284 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4287 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4288 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4289 * config/m68k/tm-sun3.h: Update.
4290 * config/m68k/tm-m68klynx.h: Update.
4291 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4293 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4294 trad_frame". Update comments.
4295 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4296 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4297 (trad_frame_register_value, trad_frame_prev_register): Update.
4299 2003-06-08 Andrew Cagney <cagney@redhat.com>
4301 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4302 from GCC's acinclude.m4.
4303 * configure.in: Check for getopt's delcaration.
4304 * aclocal.m4, config.in, configure: Re-generate.
4305 * main.c (error_init): Delete declaration.
4306 * defs.h (error_init): Declare.
4307 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4308 (rs6000_convert_from_func_ptr_addr): Make static.
4309 (_initialize_rs6000_tdep): Add declaration.
4310 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4311 (show_commands, set_verbose, show_history): Delete declaration.
4312 * top.h (set_verbose): Add declaration.
4313 (show_history, set_history, show_commands): Add declaration.
4314 (do_restore_instream_cleanup): Add declaration.
4315 * objc-lang.c (specialcmp): Make static.
4316 (print_object_command): Make static.
4317 (find_objc_msgsend): Make static.
4318 (find_objc_msgcall_submethod_helper): Make static.
4319 (find_objc_msgcall_submethod): Make static.
4320 (_initialize_objc_language): Add declaration.
4321 (find_implementation_from_class): Make static.
4322 (find_implementation): Make static.
4323 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4324 * objc-lang.h (lookup_struct_typedef): Add declaration.
4325 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4326 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4327 (do_restore_user_call_depth): Make static.
4328 (do_restore_instream_cleanup): Delete declaration.
4329 (dont_repeat): Delete declaration.
4330 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4331 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4332 * reggroups.c (_initialize_reggroup): Add declaration.
4333 * cp-support.c (_initialize_cp_support): Add declaration.
4334 * cp-abi.c (_initialize_cp_abi): Add declaration.
4335 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4336 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4337 (_initialize_gnu_v3_abi): Add declaration.
4338 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4339 (_initialize_gnu_v2_abi): Add declaration.
4340 * frame-base.c (_initialize_frame_base): Add declaration.
4341 * doublest.c (floatformat_from_length): Make static.
4342 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4343 * frame.c (create_sentinel_frame): Make static.
4344 (_initialize_frame): Add declaration.
4345 * top.c (do_catch_errors): Make static.
4346 (gdb_rl_operate_and_get_next_completion): Make static.
4347 * typeprint.c: Include "typeprint.h".
4348 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4349 (sentinel_frame_this_id): Make static.
4350 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4351 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4352 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4353 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4354 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4355 * maint.c (maintenance_print_architecture): Make static.
4356 * signals/signals.c (_initialize_signals): Add declaration.
4357 * std-regs.c (_initialize_frame_reg): Add declaration.
4358 * jv-exp.y (push_variable): ISO C definition.
4359 (push_qualified_expression_name): Ditto.
4360 * memattr.c (_initialize_mem): Add declaration.
4361 * remote.c (remote_check_watch_resources): Make static.
4362 (remote_stopped_by_watchpoint): Make static.
4363 (remote_stopped_data_address): Make static.
4364 * d10v-tdep.c (nr_dmap_regs): Make static.
4365 (a0_regnum): Make static.
4366 (d10v_frame_unwind_cache): Make static.
4367 (d10v_frame_p): Make static.
4368 * osabi.c (show_osabi): Make static.
4369 (_initialize_gdb_osabi): Add extern declaration.
4370 * gdbtypes.c (make_qualified_type): Make static.
4371 (safe_parse_type): Make static.
4372 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4373 * macrotab.c (macro_bcache_free): Make static.
4374 * interps.c (interp_set_quiet): Make static.
4375 (interpreter_exec_cmd): Make static.
4376 * stack.h (select_frame_command): New file.
4377 * stack.c: Include "stack.h".
4378 (select_frame_command_wrapper): Delete function.
4379 (select_frame_command): Make global.
4380 * infcall.c: Include "infcall.h".
4381 * linespec.c: Include "linespec.h".
4382 * symfile.c (sections_overlap): Make static.
4383 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4384 * charset.c (_initialize_charset): Add missing prototype.
4385 * regcache.c (init_legacy_regcache_descr): Make static.
4386 (do_regcache_xfree): Make static.
4387 (regcache_xfer_part): Make static.
4388 (_initialize_regcache): Add missing prototype.
4389 * breakpoint.c (parse_breakpoint_sals): Make static.
4390 (breakpoint_sals_to_pc): Make static.
4391 * interps.h (clear_interpreter_hooks): ISO C declaration.
4392 * Makefile.in (stack_h): Define.
4393 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4394 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4396 2003-06-08 Andrew Cagney <cagney@redhat.com>
4398 * Makefile.in (d10v-tdep.o): Update dependencies.
4399 (SFILES): Add trad-frame.c.
4400 (trad_frame_h): Define.
4401 (COMMON_OBS): Add trad-frame.o.
4402 (trad-frame.o): Specify dependencies.
4403 * d10v-tdep.c: Include "trad-frame.h".
4404 (saved_regs_unwinder): Delete function.
4405 (d10v_frame_prev_register): Use trad_frame_prev_register.
4406 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4407 trad_frame", delete "regs" and "prev_sp".
4408 (prologue_find_regs): Use trad-frame.
4409 * trad-frame.h, trad-frame.c: New files.
4411 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4413 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4415 2003-06-07 Adam Fedor <fedor@gnu.org>
4417 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4418 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4419 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4420 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4421 resolve_msgsend_super, resolve_msgsend_super_stret):
4424 2003-06-07 Andrew Cagney <cagney@redhat.com>
4426 * symfile.h: Re-indent, clean up comments.
4428 2003-06-07 Andrew Cagney <cagney@redhat.com>
4430 * inferior.h (deprecated_write_sp): Replace
4431 generic_target_write_sp.
4432 * regcache.c (deprecated_write_sp): Replace
4433 generic_target_write_sp.
4434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4435 * vax-tdep.c (vax_gdbarch_init): Update.
4436 * v850-tdep.c (v850_gdbarch_init): Update.
4437 * sparc-tdep.c (sparc_gdbarch_init): Update.
4438 * sh-tdep.c (sh_gdbarch_init): Update.
4439 * s390-tdep.c (s390_gdbarch_init): Update.
4440 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4441 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4442 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4443 * mcore-tdep.c (mcore_gdbarch_init): Update.
4444 * m68k-tdep.c (m68k_gdbarch_init): Update.
4445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4446 * ia64-tdep.c (ia64_gdbarch_init): Update.
4447 * h8300-tdep.c (h8300_gdbarch_init): Update.
4448 * frv-tdep.c (frv_gdbarch_init): Update.
4449 * cris-tdep.c (cris_gdbarch_init): Update.
4450 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4452 2003-06-07 Andrew Cagney <cagney@redhat.com>
4454 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4455 Assert that PC_REGNUM is valid.
4456 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4458 2003-06-07 Andrew Cagney <cagney@redhat.com>
4460 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4461 * gdbarch.h, gdbarch.c: Regenerate.
4462 * mn10300-tdep.c: Include "gdb_assert.h".
4463 (mn10300_read_fp): New function.
4464 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4465 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4466 * ia64-tdep.c: Include "gdb_assert.h".
4467 (ia64_read_fp): New function.
4468 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4469 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4470 * regcache.c (generic_target_read_sp): Delete function.
4471 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4472 * inferior.h (generic_target_read_sp): Delete declaration.
4473 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4474 generic_target_read_sp.
4475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4476 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4477 * sh-tdep.c (sh_gdbarch_init): Ditto.
4478 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4479 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4481 2003-06-07 Andrew Cagney <cagney@redhat.com>
4483 * gdbarch.sh: Comment each field of startup_gdbarch.
4484 * gdbarch.h, gdbarch.c: Re-generate.
4486 2003-06-07 Andrew Cagney <cagney@redhat.com>
4488 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4489 * gdbarch.h, gdbarch.c: Re-generate.
4490 * regcache.c: Update comments on read_pc et.al.
4491 (generic_target_read_pc): Delete function.
4492 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4493 * inferior.h (generic_target_read_pc): Delete declaration.
4494 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4495 generic_target_read_pc.
4496 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4497 * sh-tdep.c (sh_gdbarch_init): Ditto.
4498 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4499 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4501 2003-06-07 Andrew Cagney <cagney@redhat.com>
4503 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4504 "index" with "special_local_sect". Use strcmp instead of STREQ.
4505 Append period to coments.
4507 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4509 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4510 (elfstab_offset_sections): Likewise.
4511 * gdb-stabs.h (stab_section_info): Likewise.
4512 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4513 * objfiles.c (objfile_relocate): Likewise.
4514 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4515 * remote.c (get_offsets): Likewise.
4516 (remote_cisco_objfile_relocate): Likewise.
4517 * somread.c (som_symfile_offsets): Likewise.
4518 * symfile.c (alloc_section_addr_info): New function.
4519 (build_section_addr_info_from_section_tab): Use it.
4520 (free_section_addr_info): Adjust.
4521 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4522 (syms_from_objfile): Allocate local_addr dynamically.
4523 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4525 (add_symbol_file_command): Allocate sect_opts dynamically.
4526 (reread_symbols): Avoid use of SECT_OFF_MAX.
4527 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4528 (alloc_section_addr_info): Declare it.
4529 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4530 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4532 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4534 2003-06-06 Andrew Cagney <cagney@redhat.com>
4536 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4537 (d10v_frame_unwind_cache): Do not set "return_pc".
4539 2003-06-06 Michael Snyder <msnyder@redhat.com>
4541 * h8300-tdep.c: Make tidy (long lines).
4543 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4545 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4546 to regcache_collect().
4548 2003-06-05 J. Brobecker <brobecker@gnat.com>
4550 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4551 pc_in_sigtramp multiarch method.
4552 (hppa_hpux_som_init_abi): Use it.
4553 (hppa_hpux_elf_init_abi): Likewise.
4554 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4555 macro has been multiarched.
4556 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4557 macro here, as hppa64 isn't multiarched yet.
4559 2003-06-05 Andrew Cagney <cagney@redhat.com>
4561 * Makefile.in (value_h): Add $(frame_h).
4562 * value.h: Include "frame.h".
4563 (struct value): Replace "frame_addr" with "frame_id".
4564 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4565 * values.c (allocate_value): Use VALUE_FRAME_ID.
4566 (value_copy): Use VALUE_FRAME_ID.
4567 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4568 * valops.c (value_assign): Update. Use frame_find_by_id.
4570 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4572 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4575 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4577 * thread-db.c (check_event): For create/death event breakpoints,
4578 loop through all messages to ensure that we read the message
4579 corresponding to the breakpoint we are at.
4581 2003-06-04 Michael Snyder <msnyder@redhat.com>
4583 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4585 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4587 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4588 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4589 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4590 when handling .eh_frame sections.
4592 2003-06-04 J. Brobecker <brobecker@gnat.com>
4594 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4595 prepare_to_proceed procedure instead of the hppa-specific one.
4596 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4598 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4600 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4601 * config.in: Regenerated.
4602 * configure.in: Add test for syscall function and check for
4603 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4604 * configure: Regenerated.
4605 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4607 (kill_lwp): New function that uses tkill syscall or
4608 uses kill, depending on whether threading model is nptl or not.
4609 All callers of kill() changed to use kill_lwp().
4610 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4611 see if all threads have already exited in the nptl model.
4612 (stop_and_resume_callback): New callback function used by the
4613 lin_lwp_wait thread exit handling code.
4614 (stop_wait_callback): Check for threads already having exited and
4615 delete such threads fromt the lwp list when discovered.
4616 (stop_callback): Don't assert retcode of kill call.
4618 Roland McGrath <roland@redhat.com>
4619 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4622 2003-06-03 Richard Henderson <rth@redhat.com>
4624 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4625 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4626 (alpha_sigtramp_frame_prev_register): Likewise.
4627 (alpha_heuristic_frame_prev_register): Likewise.
4628 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4630 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4631 alpha-specific register id names.
4632 (alpha_mdebug_frame_unwind_cache): Likewise.
4633 (alpha_mdebug_frame_prev_register): Likewise.
4635 2003-06-03 Richard Henderson <rth@redhat.com>
4637 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4638 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4639 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4640 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4642 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4643 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4644 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4646 * alpha-linux-tdep.c: Remove unnecessary includes.
4647 * Makefile.in (alpha-linux-tdep.o): Update.
4649 2003-06-03 Richard Henderson <rth@redhat.com>
4651 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4652 (alphabsd_fill_fpreg): Likewise.
4654 2003-06-03 J. Brobecker <brobecker@gnat.com>
4656 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4657 references to struct frame_info fields by calls to the equivalent
4658 accessors. Necessary now that frame_info is opaque.
4660 2003-06-03 J. Brobecker <brobecker@gnat.com>
4662 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4663 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4664 structure, field no longer exists.
4666 2003-06-03 J. Brobecker <brobecker@gnat.com>
4668 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4669 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4671 2003-06-03 J. Brobecker <brobecker@gnat.com>
4673 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4674 references to struct frame_info fields by calls to the equivalent
4675 accessors. Necessary now that frame_info is opaque.
4677 2003-06-03 J. Brobecker <brobecker@gnat.com>
4679 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4680 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4681 structure, field no longer exists.
4683 2003-06-03 Theodore A. Roth <troth@openavr.org>
4685 * remote.c (init_remote_state): Compute sizeof_g_packet by
4686 accumulation of the size of all registers instead of blindly using
4687 DEPRECATED_REGISTER_BYTES.
4689 2003-06-03 Michael Snyder <msnyder@redhat.com>
4691 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4692 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4695 2003-06-03 J. Brobecker <brobecker@gnat.com>
4697 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4698 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4700 2003-06-03 Andrew Cagney <cagney@redhat.com>
4702 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4703 (sparc_convert_to_raw): Delete function.
4704 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4705 register_convert_to_virtual.
4707 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4709 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4710 layer if not dealing with a statically-linked threaded program.
4712 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4714 * solib.c (solib_open): Update comment to reflect actual search order.
4716 2003-06-03 Andrew Cagney <cagney@redhat.com>
4718 * frame.c (get_frame_memory_signed): New function.
4719 (get_frame_memory, get_frame_memory_unsigned): New function.
4720 (get_frame_arch): New function.
4721 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4722 (get_frame_memory, get_frame_unsigned_memory): Declare.
4723 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4724 get_frame_memory_unsigned and get_frame_arch.
4725 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4727 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4729 * MAINTAINERS (write after approval): Add myself.
4731 2003-06-03 Jim Blandy <jimb@redhat.com>
4733 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4734 elements of gregset_t are 64 bits each, but access registers
4735 are still 32 bits, so they're packed two per gregset_t
4736 element. Unpack/pack them properly.
4738 2003-06-02 David Carlton <carlton@bactrian.org>
4740 * linespec.c (find_methods): Break out code into
4741 add_matching_methods and add_constructors.
4742 (add_matching_methods): New.
4743 (add_constructors): Ditto.
4745 2003-06-02 Andrew Cagney <cagney@redhat.com>
4747 * sparc-tdep.c (sparc_print_registers): Delete call to
4748 REGISTER_CONVERTIBLE.
4749 (sparc_gdbarch_init): Do not set register_convertible.
4750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4751 * frv-tdep.c (frv_gdbarch_init): Ditto.
4752 * cris-tdep.c (cris_gdbarch_init): Ditto.
4754 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4756 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4757 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4758 (syms_from_objfile): Ditto.
4760 2003-06-03 Andreas Schwab <schwab@suse.de>
4762 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4763 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4765 2003-06-02 Richard Henderson <rth@redhat.com>
4767 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4768 a member of all_reggroup.
4770 2003-06-02 Richard Henderson <rth@redhat.com>
4772 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4773 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4774 (alpha_lds, alpha_sts): New.
4775 (alpha_convert_register_p): Change from _register_convertible.
4776 (alpha_register_to_value): Change from _convert_to_virtual;
4777 restructure and fail for type sizes other than 4 or 8.
4778 (alpha_value_to_register): Similarly.
4779 (alpha_extract_return_value): Use alpha_sts.
4780 (alpha_store_return_value): Use alpha_lds.
4781 (alpha_gdbarch_init): Update hooks.
4783 2003-06-02 Richard Henderson <rth@redhat.com>
4785 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4787 (alpha_sigtramp_register_address): Likewise.
4789 2003-06-02 Richard Henderson <rth@redhat.com>
4791 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4792 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4793 * alpha-tdep.h: Declare them.
4795 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4796 Remove zerobuf. Don't error on UNIQUE.
4797 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4798 (ALPHA_REGSET_UNIQUE): Provide default.
4799 (supply_gregset): Use alpha_supply_int_regs.
4800 (fill_gregset): Use alpha_fill_int_regs.
4801 (supply_fpregset): Use alpha_supply_fp_regs.
4802 (fill_fpregset): Use alpha_fill_fp_regs.
4803 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4804 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4805 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4806 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4807 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4808 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4810 2003-06-02 Richard Henderson <rth@redhat.com>
4812 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4814 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4815 (alpha_store_return_value): Likewise.
4817 2003-06-02 David Carlton <carlton@math.stanford.edu>
4819 * block.c (contained_in): Add 'const' to arguments.
4820 (block_function): Ditto.
4821 * block.h: Update declarations for block_function and
4824 2003-06-02 David Carlton <carlton@math.stanford.edu>
4826 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4827 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4828 * p-valprint.c (pascal_val_print): Ditto.
4829 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4831 2003-06-02 Richard Henderson <rth@redhat.com>
4833 * alpha-tdep.c (alpha_push_dummy_call): Use
4834 builtin_type_ieee_double_little instead of builtin_type_double.
4836 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4837 sign-extension of 32-bit values.
4838 (alpha_store_return_value): Similarly.
4840 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4841 (alpha_extract_return_value): Likewise.
4842 (alpha_store_return_value): Likewise.
4844 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4845 (alpha_store_return_value): Error on IEEE Quad floats.
4847 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4848 (alpha_extract_struct_value_address): Likewise.
4849 (alpha_store_return_value): Likewise.
4850 (alpha_store_struct_return): Remove.
4851 (alpha_gdbarch_init): Update hook registration to match.
4853 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4854 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4855 macros where appropriate.
4856 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4857 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4859 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4860 for SP, GP; void_func_ptr for PC; non-language-specific types
4862 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4864 2003-06-02 Richard Henderson <rth@redhat.com>
4866 * top.h (lim_at_start): Declare.
4867 * main.c (captured_main): Set it.
4868 * top.c (lim_at_start): Define.
4869 (command_loop): Use it instead of &environ.
4870 * event-top.c (command_handler): Likewise.
4872 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4874 * mipsnbsd-tdep.c: Update copyright years.
4875 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4877 2003-06-01 Richard Henderson <rth@redhat.com>
4879 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4880 (alpha-linux-tdep.o): Update dependencies.
4881 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4882 * alpha-mdebug-tdep.c: Remove unneeded includes.
4884 2003-06-01 Richard Henderson <rth@redhat.com>
4886 * alpha-tdep.c (alpha_register_reggroup_p): New.
4887 (alpha_gdbarch_init): Register it.
4889 2003-06-02 Andrew Cagney <cagney@redhat.com>
4891 * dwarfread.c: Eliminate "register"
4892 (decode_die_type): Eliminate assignment within "if".
4893 (struct_type, decode_array_element_type): Ditto.
4894 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4895 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4896 (decode_modified_type, completedieinfo): Ditto.
4897 * block.c: Eliminate "register".
4898 (blockvector_for_pc_sect): Eliminate assignment within "if".
4899 * cp-support.h (struct symbol): Opaque declaration.
4900 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4902 2003-06-01 Richard Henderson <rth@redhat.com>
4904 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4905 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4907 2003-06-01 Adam Fedor <fedor@gnu.org>
4909 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4910 * gdbarch.[ch]: Regenerate.
4911 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4912 (hppa_gdbarch_init): Set it in the gdbarch vector.
4913 * i386-tdep.c (i386_fetch_pointer_argument): New
4914 (i386_gdbarch_init): Set it into gdbarch.
4915 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4916 (rs6000_gdbarch_init): Set it in gdbarch.
4917 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4918 (sparc_gdbarch_init): Set it in gdbarch.
4920 2003-06-01 Andrew Cagney <cagney@redhat.com>
4922 * defs.h (extract_address): Delete declaration.
4923 * findvar.c (extract_address): Delete function.
4924 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4925 extract_address with the inline equivalent,
4926 extract_unsigned_integer.
4927 (xstormy16_extract_struct_value_address): Ditto.
4928 (xstormy16_pointer_to_address): Ditto.
4929 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4930 * v850-tdep.c (v850_push_arguments): Ditto.
4931 (v850_extract_return_value): Ditto.
4932 (v850_extract_struct_value_address): Ditto.
4933 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4934 (sparcnbsd_get_longjmp_target_64): Ditto.
4935 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4936 (get_longjmp_target): Ditto.
4937 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4938 (sh64_extract_struct_value_address): Ditto.
4939 (sh_push_arguments): Ditto.
4940 (sh64_push_arguments): Ditto.
4941 * remote-vxsparc.c (vx_read_register): Ditto.
4942 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4943 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4944 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4945 * mipsv4-nat.c (get_longjmp_target): Ditto.
4946 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4947 * mips-nat.c (get_longjmp_target): Ditto.
4948 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4949 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4950 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4951 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4952 * irix5-nat.c (get_longjmp_target): Ditto.
4953 * irix4-nat.c (get_longjmp_target): Ditto.
4954 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4955 (ia64_push_arguments): Ditto.
4956 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4957 * h8300-tdep.c (h8300_push_arguments): Ditto.
4958 (h8300_store_return_value): Ditto.
4959 (h8300_extract_struct_value_address): Ditto.
4960 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4961 (frv_push_arguments): Ditto.
4962 * avr-tdep.c (avr_pointer_to_address): Ditto.
4963 (avr_push_arguments): Ditto.
4964 * arm-tdep.c (arm_push_dummy_call): Ditto.
4965 (arm_get_longjmp_target): Ditto.
4966 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4967 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4968 (alpha_get_longjmp_target): Ditto.
4970 * solib-irix.c (extract_mips_address): Inline extract_address,
4971 replacing it with extract_signed_integer.
4972 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4973 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4974 (first_link_map_member, open_symbol_file_object): Ditto.
4975 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4976 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4977 (LM_NEXT, LM_NAME): Ditto.
4979 2003-06-01 Richard Henderson <rth@redhat.com>
4981 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4982 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4983 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4984 (alpha_cannot_store_register): Likewise.
4985 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4986 * alpha-nat.c (supply_gregset): Likewise.
4987 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4989 2003-06-01 Andrew Cagney <cagney@redhat.com>
4991 * infcall.c (call_function_by_hand): Update comment on
4992 DEPRECATED_DUMMY_WRITE_SP.
4994 * mips-tdep.c (mips_gdbarch_init): Do not set
4995 deprecated_dummy_write_sp.
4996 (mips_eabi_push_dummy_call): Set the SP register.
4997 (mips_o64_push_dummy_call): Set the SP register.
4998 (mips_o32_push_dummy_call): Set the SP register.
4999 (mips_n32n64_push_dummy_call): Set the SP register.
5001 2003-06-01 Richard Henderson <rth@redhat.com>
5003 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5004 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5005 (supply_gregset): Likewise.
5006 * alpha-tdep.c (alpha_store_return_value): Likewise.
5007 (alpha_get_longjmp_target): Likewise.
5008 (alpha_register_name): Constify array.
5009 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5010 deprecated_register_size, deprecated_register_bytes,
5011 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5012 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5013 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5015 2003-06-01 Richard Henderson <rth@redhat.com>
5017 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5018 from arg_reg_buffer to regcache to avoid double conversion.
5020 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5022 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5024 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5025 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5027 2003-06-01 Richard Henderson <rth@redhat.com>
5029 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5030 (decode_frame_entry): Set it. Skip FDE augmentation.
5032 2003-06-01 Richard Henderson <rth@redhat.com>
5034 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5035 not overlapping PC_REGNUM.
5037 2003-06-01 Richard Henderson <rth@redhat.com>
5039 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5040 alpha_push_arguments. Don't dump argument register data to
5041 the target stack. Fix float and 128-bit long double semantics.
5042 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5043 (alpha_fix_call_dummy): Remove.
5044 (alpha_call_dummy_words): Remove.
5045 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5047 2003-06-01 Richard Henderson <rth@redhat.com>
5049 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5051 2003-06-01 Andrew Cagney <cagney@redhat.com>
5053 * mips-tdep.c (is_mips16_addr): New function.
5054 (make_mips16_addr, unmake_mips16_addr): New functions.
5055 (pc_is_mips16, mips_fetch_instruction): Use.
5056 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5057 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5058 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5059 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5061 * config/mips/tm-mips.h: Update copyright.
5062 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5063 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5064 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5065 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5066 (TM_PRINT_INSN_MACH): Delete.
5067 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5069 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5070 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5071 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5072 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5073 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5074 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5075 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5076 mips*-*-riscos* and mips*-*-sysv* onto mips.
5077 * config/mips/mips64.mt: New file.
5078 * config/mips/mips.mt: New file.
5079 * config/mips/littlemips.mt: Delete file.
5080 * config/mips/decstation.mt: Delete file.
5081 * config/mips/vr4300el.mt: Delete file.
5082 * config/mips/vr5000el.mt: Delete file.
5083 * config/mips/vr5000.mt: Delete file.
5084 * config/mips/vr4100.mt: Delete file.
5085 * config/mips/vr4xxxel.mt: Delete file.
5086 * config/mips/vr4300.mt: Delete file.
5087 * config/mips/vr4xxx.mt: Delete file.
5088 * config/mips/bigmips.mt: Delete file.
5089 * config/mips/bigmips64.mt: Delete file.
5090 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5091 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5092 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5093 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5094 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5096 * config/mips/tm-irix3.h: Ditto.
5097 * config/mips/tm-mipsv4.h: Ditto.
5098 * config/mips/tm-embed.h: Ditto.
5099 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5101 * config/mips/tm-vr5000el.h: Delete file.
5102 * config/mips/tm-tx39l.h: Delete file.
5103 * config/mips/tm-vr4300el.h: Delete file.
5104 * config/mips/tm-vr4xxxel.h: Delete file.
5105 * config/mips/tm-vr4300.h: Delete file.
5106 * config/mips/tm-vr4100.h: Delete file.
5107 * config/mips/tm-vr4xxx.h: Delete file.
5108 * config/mips/tm-vr5000.h: Delete file.
5109 * config/mips/tm-embedl64.h: Delete file.
5110 * config/mips/tm-embedl.h: Delete file.
5111 * config/mips/tm-embed64.h: Delete file.
5112 * config/mips/tm-bigmips64.h: Delete file.
5113 * config/mips/tm-bigmips.h: Delete file.
5115 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5118 * shnbsd-nat.c: Include "sh-tdep.h".
5120 From Richard Henderson <rth@redhat.com>:
5121 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5123 2003-05-31 Andrew Cagney <cagney@redhat.com>
5125 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5126 forward declaration.
5127 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5128 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5129 (mips_find_saved_regs): Use set_reg_offset.
5130 (mips_frame_init_saved_regs): Delete function.
5131 (mips_pop_frame): Call mips_find_saved_regs instead of
5132 DEPRECATED_FRAME_INIT_SAVED_REGS.
5134 2003-05-31 Andrew Cagney <cagney@redhat.com>
5136 * mips-tdep.c (mips_gdbarch_init): Do not set
5137 deprecated_max_register_raw_size, register_virtual_size, and
5138 deprecated_max_register_virtual_size.
5140 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5142 * i386-tdep.c: Include "dwarf2-frame.h".
5143 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5144 * Makefile.in (i386-tdep.o): Update dependencies.
5146 * dwarf2-frame.c, dwarf2-frame.h: New files.
5147 * Makefile.in (SFILES): Add dwarf2-frame.c.
5148 (dwarf2_frame_h): Define.
5149 (COMMON_OBS): Add dwarf2-frame.o.
5150 (dwarf2-frame.o): Add dependencies.
5152 2003-05-31 Andreas Jaeger <aj@suse.de>
5154 * x86-64-linux-nat.c: Fix comment.
5156 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5158 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5161 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5162 have a sigcontext_addr handler.
5163 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5164 sigcontext_addr handler.
5166 2003-05-31 Andrew Cagney <cagney@redhat.com>
5168 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5169 (print_fp_register_row): Replace do_fp_register_row.
5170 (mips_print_fp_register): Add "file" and "frame" parameters.
5171 (mips_print_register): Add "file" and "frame" parameters.
5172 (mips_print_registers_info): Replace mips_do_registers_info.
5173 (mips_gdbarch_init): Set print_registers_info instead of
5174 deprecated_do_registers_info.
5175 (mips_read_fp_register_single): Add "frame" parameter.
5176 (mips_read_fp_register_double): Add "frame" parameter.
5178 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5180 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5181 Fixes a bug where GDB would print the wrong register names for
5182 targets without SSE.
5184 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5185 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5188 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5189 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5190 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5193 From Michal Ludvig <mludvig@suse.cz>:
5194 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5196 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5197 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5198 I386_ST0_REGNUM): Move here from...
5199 * i386-tdep.c: ... here.
5200 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5201 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5202 registers if possible.
5203 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5204 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5206 (i386bsd_sc_reg_offset): New variable.
5207 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5208 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5210 (i386fbsd_sc_reg_offset): New variable.
5211 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5213 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5215 (i386fbsd4_sc_reg_offset): New variable.
5216 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5217 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5219 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5220 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5221 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5223 (i386nbsd_sc_reg_offset): New variable.
5224 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5225 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5227 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5229 (i386obsd_sc_reg_offset): New variable.
5230 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5231 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5233 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5234 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5235 for frame pointer offset in `struct sigcontext'.
5237 2003-05-31 Andrew Cagney <cagney@redhat.com>
5239 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5240 architecture methods call_dummy_words, sizeof_call_dummy_words,
5241 push_return_address, store_struct_return, and fix_call_dummy. Set
5242 push_dummy_call instead of deprecated_push_arguments.
5243 (mips_store_struct_return): Delete function.
5244 (mips_fix_call_dummy): Delete function.
5245 (mips_push_return_address): Delete function.
5246 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5247 RA_REGNUM and T9_REGNUM.
5248 (mips_n32n64_push_dummy_call): Ditto for
5249 mips_n32n64_push_arguments.
5250 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5251 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5253 2003-05-31 Andrew Cagney <cagney@redhat.com>
5255 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5256 "dummy_addr" to "bp_addr".
5257 * infcall.c (call_function_by_hand): Pass "funaddr" to
5258 gdbarch_push_dummy_call.
5259 * gdbarch.h, gdbarch.c: Re-generate.
5260 * i386-tdep.c (i386_push_dummy_call): Update.
5261 * arm-tdep.c (arm_push_dummy_call): Update.
5262 * d10v-tdep.c (d10v_push_dummy_call): Update.
5264 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5266 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5267 variable declarations.
5268 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5269 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5270 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5271 x86_64_init_frame_pc, x86_64_init_frame_pc,
5272 x86_64_function_has_prologue): Remove prototypes.
5273 (X86_64_NUM_GREGS): New define.
5274 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5275 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5276 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5277 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5278 XMM1_REGNUM): Remove defines.
5279 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5280 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5281 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5282 X86_64_XMM1_REGNUM): New defines.
5283 (struct x86_64_register_info): Renamed from `struct
5284 register_info'. Remove `size' member.
5285 (x86_64_register_info_table): Remove variable.
5286 (x86_64_register_info): New variable.
5287 (X86_64_NUM_REGS): New define.
5288 (X86_64_NUM_GREGS): Remove define.
5289 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5290 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5292 (x86_54_dwarf2_reg_to_regnum): Remove function.
5293 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5294 (x86_64_dwarf_reg_to_regnum): New function.
5295 (x86_64_register_name): Rewrite.
5296 (x86_64_register_raw_size): Remove function.
5297 (x86_64_register_byte_table): Remove variable.
5298 (x86_64_register_byte): Remove function.
5299 (x86_64_register_virtual_type): Remove function.
5300 (x86_64_register_type): New function.
5301 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5302 x86_64_register_convert_to_raw): Remove functions.
5303 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5304 (x86_64_use_struct_convention): Make static. Adjust for renamed
5306 (x86_64_frame_init_saved_regs): Remove function.
5307 (x86_64_push_arguments): Make static. Change to accept a regcache
5309 (x86_64_store_return_value, x86_64_extract_return_value): Make
5310 static. Rewrite based on i386 counterparts.
5311 (x86_64_push_dummy_call): New function.
5312 (X86_64_NUM_SAVED_REGS): New define.
5313 (x86_64_register_number): Remove function.
5314 (x86_64_store_struct_return): Remove function.
5315 (x86_64_frameless_function_invocation,
5316 x86_64_function_has_prologue): Remove functions.
5317 (PROLOG_BUFSIZE): Remove define.
5318 (struct x86_64_frame_cache): New structure.
5319 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5320 x86_64_frame_cache, x86_64_frame_this_id,
5321 x86_64_frame_prev_register, x86_64_frame_p,
5322 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5323 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5325 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5327 (x86_64_skip_prologue): Rewrite in terms of
5328 x86_64_analyze_prologue.
5329 (x86_64_frame_base_address): New function.
5330 (x86_64_frame_base): New variable.
5331 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5332 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5333 set deprecated_fp_regnum, deprecated_register_size,
5334 deprecated_register_bytes, register_raw_size, register_byte,
5335 register_virtual_type, register_convertiable,
5336 register_convert_to_virtual, convert_to_raw,
5337 deprecated_get_saved_register, deprecated_target_read_fp,
5338 deprecated_push_arguments, deprecated_push_return_address,
5339 deprecated_pop_frame, deprecated_store_struct_return,
5340 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5341 frameless_function_invocation, deprecated_frame_saved_pc,
5342 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5343 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5344 deprecated_init_frame_pc and virtual_frame_pointer. Call
5345 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5346 and x86_64_frame_p. Call frame_base_set_default to register
5348 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5349 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5350 (_initialize_x86_64_tdep): Remove function.
5351 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5352 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5353 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5355 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5356 (x86_64_linux_sigcontext_addr): Rewrite.
5357 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5358 x86_64_linux_frame_saved_pc): Remove functions.
5359 (x86_64_linux_pc_in_sigtramp): Renamed from
5360 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5362 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5364 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5365 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5366 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5367 (x86_64_regmap): Rename to regmap.
5368 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5370 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5372 (x86_64_fxsave_offset): Remove function.
5373 (supply_fpregset): Simply call x86_64_supply_fxsave.
5374 (fill_fpregset): Simply call x86_64_fill_fxsave.
5375 (fetch_inferior_registers, store_inferior_registers): Avoid
5376 asignment in if-statement.
5377 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5378 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5379 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5380 (fetch_core_registers): Remove function.
5381 (linux_elf_core_fns): Remove.
5382 (offsetoff): Don't define.
5383 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5384 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5385 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5387 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5388 protection against multiple includes instead of NM_X86_64_h. Add
5389 various comments. Include "config/nm-linux.h". Don't include
5391 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5392 GET_THREAD_SIGNALS): Remove defines.
5393 (x86_64_register_u_addr, kernel_u_size,
5394 lin_thread_get_thread_signals): Remove prototypes.
5395 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5396 [HAVE_LINK_H]: Don't include "solib.h".
5397 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5398 * config/i386/tm-x86-64linux.h: Fix comments.
5399 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5400 x86-64-tdep.o): Update dependencies.
5402 2003-05-30 Andrew Cagney <cagney@redhat.com>
5404 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5405 Change parameter type to a "struct regcache *".
5407 * gdbarch.sh: Regardless of the multi-arch level, always define
5408 the macro when not already defined.
5409 * gdbarch.h, gdbarch.c: Re-generate.
5411 2003-05-30 Richard Henderson <rth@redhat.com>
5413 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5414 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5415 (alpha_mdebug_frame_this_id): Likewise.
5416 (alpha_mdebug_frame_prev_register): Likewise.
5417 (alpha_mdebug_frame_base_address): Likewise.
5418 (alpha_mdebug_frame_locals_address): Likewise.
5419 (alpha_mdebug_frame_args_address): Likewise.
5420 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5421 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5422 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5424 (alpha_heuristic_frame_this_id): Make static.
5425 (alpha_heuristic_frame_prev_register): Likewise.
5426 (alpha_heuristic_frame_base_address): Likewise.
5427 * alpha-tdep.h: Update.
5429 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5431 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5432 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5434 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5435 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5436 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5437 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5438 I386_ST0_REGNUM): New defines.
5439 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5440 codestream_get): Remove define.
5441 (codestream_next_addr, condestream_addr, condestream_buf,
5442 codestream_off, codestream_cnt): Remove variables.
5443 (codestream_fill, codestream_seek, codestream_read): Remove
5445 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5447 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5448 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5449 i386_frame_saved_pc, i386_saved_pc_after_call,
5450 i386_frame_num_args, i386_frame_init_saved_regs,
5451 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5452 i386_push_arguments): Remove functions.
5453 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5454 functionality. Use i386_analyze_prologue instead of
5455 i386_get_frame_setup.
5456 (I386_NUM_SAVED_REGS): New define.
5457 (struct i386_frame_cache): New structure.
5458 (i386_alloc_frame_cache, i386_analyze_struct_return,
5459 i386_skip_probe, i386_analyze_frame_setup,
5460 i386_analyze_register_saves, i386_analyze_prologue,
5461 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5462 i386_frame_prev_register, i386_sigtramp_frame_cache,
5463 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5464 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5465 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5467 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5469 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5470 I386_EAX_REGNUM and I386_EDX_REGNUM.
5471 (i386_extract_return_value, i386_store_return_value): Use
5472 I386_ST0_REGNUM where appropriate.
5473 (i386_extract_struct_value_address): Rewrite to use extract_address.
5474 (i386_svr4_pc_in_sigtramp): Add comment.
5475 (i386_svr4_sigcontext_addr): Rewrite.
5476 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5478 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5479 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5480 of new defines. Set push_dummy_call, don't set
5481 deprecated_push_arguments, deprecated_push_return_address,
5482 deprecated_pop_frame. Don't set parm_boundary. Don't set
5483 deprecated_frame_chain, deprecated_frame_saved_pc,
5484 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5485 save_dummy_frame_tos, unwind_pc. Call
5486 frame_unwind_append_predicate and frame_base_set_default. Don't
5487 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5488 Don't set frameless_function_invocation. Don't set
5489 deprecated_register_bytes, deprecated_register_size,
5490 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5491 * i386-linux-tdep.c: Fix formatting in some comments.
5492 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5493 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5494 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5495 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5496 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5497 redundant parentheses.
5498 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5499 (i386_linux_sigcontext_addr): Use it. Rewrite.
5500 (find_minsym_and_objfile): Change name of second argument.
5501 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5502 changed. Use frame_pc_unwind instead of
5503 DEPRECATED_SAVED_PC_AFTER_CALL.
5504 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5505 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5506 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5508 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5510 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5511 (_initialize_i386_cygwin_tdep): New prototype.
5512 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5513 deprecated_frame_chain_valid.
5514 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5515 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5516 Rely on the SVR4 defaults.
5517 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5518 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5520 2003-05-30 Andrew Cagney <cagney@redhat.com>
5522 * infcall.c (call_function_by_hand): Always call
5523 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5525 2003-05-30 Richard Henderson <rth@redhat.com>
5527 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5530 2003-05-29 Jim Blandy <jimb@redhat.com>
5532 Use gdbarch methods for solib stuff on PowerPC Linux.
5533 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5534 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5536 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5537 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5538 giving the same effect as the #definitions above.
5540 2003-05-29 Adam Fedor <fedor@gnu.org>
5542 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5543 (find_implementation_from_class): Replace it with the standard
5544 case i.e. do nothing.
5546 2003-05-29 Richard Henderson <rth@redhat.com>
5548 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5549 (alpha_linux_sigtramp_offset): Use it. Make static.
5550 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5551 update for new frame model.
5552 * alpha-mdebug-tdep.c: New file.
5553 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5554 (alpha_osf1_init_abi): Install it.
5555 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5556 (linked_proc_desc_table): Remove.
5557 (alpha_frame_past_sigtramp_frame): Remove.
5558 (alpha_dynamic_sigtramp_offset): Remove.
5559 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5560 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5561 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5562 (push_sigtramp_desc): Remove.
5563 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5564 (alpha_cannot_store_register): Likewise.
5565 (alpha_sigcontext_addr): Remove.
5566 (alpha_find_saved_regs): Remove.
5567 (alpha_frame_init_saved_regs): Remove.
5568 (alpha_init_frame_pc_first): Remove.
5569 (read_next_frame_reg): Remove.
5570 (alpha_frame_saved_pc): Remove.
5571 (alpha_saved_pc_after_call): Remove.
5572 (temp_proc_desc, temp_saved_regs): Remove.
5573 (alpha_about_to_return): Remove.
5574 (cached_proc_desc): Remove.
5575 (alpha_frame_chain): Remove.
5576 (alpha_print_extra_frame_info): Remove.
5577 (alpha_init_extra_frame_info): Remove.
5578 (alpha_frame_locals_address): Remove.
5579 (alpha_frame_args_address): Remove.
5580 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5581 (alpha_push_dummy_frame): Remove.
5582 (alpha_pop_frame): Remove.
5583 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5584 (alpha_read_insn): New.
5585 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5586 for different insn encodings.
5587 (alpha_in_lenient_prologue): Remove.
5588 (struct alpha_sigtramp_unwind_cache): New.
5589 (alpha_sigtramp_frame_unwind_cache): New.
5590 (alpha_sigtramp_register_address): New.
5591 (alpha_sigtramp_frame_this_id): New.
5592 (alpha_sigtramp_frame_prev_register): New.
5593 (alpha_sigtramp_frame_unwind): New.
5594 (alpha_sigtramp_frame_p): New.
5595 (struct alpha_heuristic_unwind_cache): New.
5596 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5597 don't count nop insns that occur between functions.
5598 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5599 heuristic_proc_desc, but without the mdebug wrapping.
5600 (alpha_heuristic_frame_this_id): New.
5601 (alpha_heuristic_frame_prev_register): New.
5602 (alpha_heuristic_frame_unwind): New.
5603 (alpha_heuristic_frame_p): New.
5604 (alpha_heuristic_frame_base_address): New.
5605 (alpha_heuristic_frame_base): New.
5606 (alpha_unwind_dummy_id): New.
5607 (alpha_unwind_pc): New.
5608 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5609 frame related deprecated initializations; install replacements.
5610 (alpha_dump_tdep): Remove.
5611 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5612 (alpha_read_insn, alpha_after_prologue,
5613 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5614 alpha_heuristic_frame_prev_register,
5615 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5616 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5617 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5618 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5620 2003-05-29 Andrew Cagney <cagney@redhat.com>
5622 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5623 dependant on the availability of ASSERT_FUNCTION.
5624 (ASSERT_FUNCTION): Do not define when there is no function name.
5626 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5628 From Jimi X <jimix@watson.ibm.com>:
5629 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5631 2003-05-28 Jim Blandy <jimb@redhat.com>
5633 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5634 argument to ptrace to int; the system headers should give it the
5635 right type, and pointers don't fit in ints on powerpc64-*-*.
5637 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5639 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5642 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5644 * stabsread.c (dbx_lookup_type): Make static.
5646 (add_undefined_type): Ditto.
5647 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5650 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5652 * hpread.c (hpread_has_name): Make static.
5653 (hpread_psymtab_to_symtab): Ditto.
5654 (file_exists): Ditto.
5655 (hpread_call_pxdb): Ditto.
5656 (hpread_pxdb_needed): Ditto.
5657 (hpread_quick_traverse): Ditto.
5658 (hpread_get_header): Ditto.
5659 (hpread_get_lntt): Ditto.
5660 (hpread_get_slt): Ditto.
5663 2003-05-25 Andreas Schwab <schwab@suse.de>
5665 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5666 stack_align and deprecated_extra_stack_alignment_needed.
5667 (m68k_stack_align): Delete.
5669 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5670 (m68k_register_virtual_size): Likewise.
5671 (altos_skip_prologue): Remove obsolete function.
5672 (isi_frame_num_args): Likewise.
5673 (news_frame_num_args): Likewise.
5674 (m68k_fix_call_dummy): Make static.
5675 (m68k_push_dummy_frame): Likewise.
5676 (m68k_pop_frame): Likewise.
5677 (m68k_skip_prologue): Likewise.
5678 (m68k_frame_init_saved_regs): Likewise.
5679 (m68k_saved_pc_after_call): Likewise.
5680 (m68k_get_longjmp_target): Make multi-arch.
5681 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5682 structure. Register m68k_get_longjmp_target if enabled.
5683 * m68k-tdep.h (struct gdbarch_tdep): Define.
5684 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5686 * Makefile.in (config.status): Also depend on configure.tgt
5688 (m68klinux-tdep.o): Update dependencies.
5689 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5690 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5691 (M68K_LINUX_JB_PC): Define.
5692 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5693 and take additional parameter.
5694 (m68k_linux_sigtramp_saved_pc): Update.
5695 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5696 m68k_linux_pc_in_sigtramp, in_plt_section,
5697 find_solib_trampoline_target.
5698 * config/m68k/tm-linux.h: Don't include any tm headers.
5699 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5700 (JB_ELEMENT_SIZE): Likewise.
5702 (GET_LONGJMP_TARGET): Likewise.
5703 (IN_SIGTRAMP): Likewise.
5704 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5706 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5708 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5709 (sparc32_push_arguments): Re-implement by calling
5710 sparc32_do_push_arguments.
5712 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5714 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5715 SPARC_O1_REGNUM): New defines.
5716 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5717 (sparc32_store_return_value): New function.
5718 (sparc_extract_struct_value_address): Rewrite to operate on a
5720 (sparc_gdbarch_init): Don't set
5721 deprecated_extract_struct_value_address. Set
5722 extract_struct_value_address instead. Don't set
5723 deprecated_extract_return_value and deprecated_store_return_value
5724 for 32-bit targets. Set extract_return_value and
5725 store_return_value instead.
5726 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5727 DEPRECTAED_EXTRACT_RETURN_VALUE,
5728 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5729 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5730 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5731 (sparc_store_return_value): Remove prototype.
5732 (sparc32_store_return_value): New prototype.
5733 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5736 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5738 * sparcnbsd-tdep.c: Include "gdb_string.h".
5740 2003-05-23 Andrew Cagney <cagney@redhat.com>
5742 * p-valprint.c (pascal_val_print): Replace extract_address with
5743 the inline equivalent extract_unsigned_integer.
5744 * jv-valprint.c (java_value_print): Ditto.
5745 * ada-valprint.c (ada_val_print_1): Ditto.
5746 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5748 2003-05-23 Theodore A. Roth <troth@openavr.org>
5750 * blockframe.c (frameless_look_for_prologue): Remove unused
5751 after_prologue variable.
5753 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5755 * blockframe.c (get_pc_function_start): Rewrite to avoid
5756 asignments in if-statements.
5758 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5760 Committed by Elena Zannoni <ezannoni@redhat.com>.
5761 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5762 files, don't relocate absolute symbols (and do use mst_abs).
5764 2003-05-23 Andrew Cagney <cagney@redhat.com>
5766 * objc-lang.c: Include "gdb_assert.h".
5767 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5768 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5769 (gdb_check, gdb_check_fatal): Delete functions.
5770 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5772 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5773 * Makefile.in (objc-lang.o): Update dependencies.
5775 2003-05-22 Ian Lance Taylor <ian@airs.com>
5777 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5778 with fprintf_filtered, not fprintf_unfiltered.
5780 2003-05-22 Andrew Cagney <cagney@redhat.com>
5782 * stack.c (frame_info): Inline extract_address, replacing it with
5783 extract_unsigned_integer.
5784 * findvar.c (unsigned_pointer_to_address): Ditto.
5785 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5786 * dwarf2expr.c (dwarf2_read_address): Ditto.
5787 * frame.c (frame_pc_unwind): Update comment.
5788 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5790 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5792 * infptrace.c (detach): Call print_sys_errmsg rather than
5793 perror_with_name to issue warning message when errno is non-zero
5794 after calling ptrace detach.
5796 2003-05-21 J. Brobecker <brobecker@gnat.com>
5798 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5799 macro definitions from here...
5800 * hppa-tdep.c: ...to there.
5802 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5804 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5805 register_ptrace_addr(). Fix all callers.
5807 2003-05-21 Andreas Schwab <schwab@suse.de>
5809 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5811 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5813 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5814 (_initialize_m68k_linux_tdep): New function.
5815 (m68k_linux_frame_saved_pc): Make static.
5816 (m68k_linux_extract_return_value): Likewise.
5817 (m68k_linux_store_return_value): Likewise.
5818 (m68k_linux_extract_struct_value_address): Likewise.
5819 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5821 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5822 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5823 (DEPRECATED_FRAME_SAVED_PC): Remove.
5825 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5827 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5828 regset numbering rather than our own.
5830 2003-05-19 David Carlton <carlton@bactrian.org>
5832 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5834 2003-05-19 David Carlton <carlton@bactrian.org>
5836 Partial fix for PR c++/827.
5837 * cp-support.h: Include symtab.h.
5838 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5839 * cp-namespace.c: Update contributors.
5840 (cp_lookup_symbol_nonlocal): New.
5841 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5842 (lookup_symbol_file): Ditto.
5843 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5844 * block.h: Declare block_scope, block_using, block_global_block.
5845 * block.c (block_scope): New.
5846 (block_using, block_global_block): Ditto.
5847 * Makefile.in (cp_support_h): Depend on symtab_h.
5848 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5850 2003-05-19 David Carlton <carlton@bactrian.org>
5852 * language.h (struct language_defn): Add 'la_value_of_this'
5853 and 'la_lookup_symbol_nonlocal' members.
5854 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5855 lookup_symbol_static, lookup_symbol_global,
5856 lookup_symbol_aux_block.
5857 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5858 if we should search fields of this and how to do static/global
5860 (lookup_symbol_aux_block): Make extern.
5861 (basic_lookup_symbol_nonlocal): New.
5862 (lookup_symbol_static, lookup_symbol_global): Ditto.
5863 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5864 'la_lookup_symbol_nonlocal' members.
5865 * c-lang.c (c_language_defn, cplus_language_defn)
5866 (asm_language_defn, minimal_language_defn): Ditto.
5867 * jv-lang.c (java_language_defn): Ditto.
5868 * language.c (unknown_language_defn, auto_language_defn)
5869 (local_language_defn): Ditto.
5870 * m2-lang.c (m2_language_defn): Ditto.
5871 * objc-lang.c (objc_language_defn): Ditto.
5872 * scm-lang.c (scm_language_defn): Ditto.
5873 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5874 * p-lang.c (pascal_language_defn): Ditto for both.
5875 * Makefile.in (f-lang.o): Depend on value_h.
5878 2003-05-19 David Carlton <carlton@bactrian.org>
5880 * block.h: Declare block_static_block.
5881 * block.c (block_static_block): New.
5882 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5883 lookup_symbol_aux_local, calling block_static_block instead.
5884 (lookup_symbol_aux_local): Delete 'static_block' argument.
5886 2003-05-19 David Carlton <carlton@bactrian.org>
5888 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5890 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5892 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5893 register numbers mapping.
5895 2003-05-18 Adam Fedor <fedor@gnu.org>
5897 * symtab.c (completion_list_objc_symbol): New function.
5898 (make_symbol_completion_list): Use it to add ObjC symbols
5899 when looking though the list.
5900 (language_search_unquoted_string): New function.
5901 (make_file_symbol_completion_list): Use it.
5903 2003-05-18 Andreas Schwab <schwab@suse.de>
5905 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5907 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5908 as m68k_linux_extract_return_value.
5909 (DEPRECATED_STORE_RETURN_VALUE): Define as
5910 m68k_linux_store_return_value.
5911 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5912 m68k_linux_extract_struct_value_address.
5913 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5914 get_next_frame, get_frame_base, get_frame_pc.
5915 (m68k_linux_frame_saved_pc): Use get_frame_base.
5916 (m68k_linux_extract_return_value): New function.
5917 (m68k_linux_store_return_value): New function.
5918 (m68k_linux_extract_struct_value_address): New function.
5919 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5921 * c-exp.y (typebase): Remove duplicate occurence of
5922 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5923 of lookup_signed_typename.
5925 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5927 * dwarf2loc.c (find_location_expression): Change type of second
5928 argument to `size_t *'.
5929 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5932 2003-05-18 David Carlton <carlton@bactrian.org>
5934 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5935 'linkage_name'. Add comment.
5936 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5938 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5939 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5940 (lookup_block_symbol): Ditto.
5942 2003-05-16 Andrew Cagney <cagney@redhat.com>
5944 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5945 * gdbarch.h, gdbarch.c: Re-generate.
5946 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5947 * TODO (REGISTER_BYTES): Delete reference.
5948 * alpha-tdep.c (alpha_gdbarch_init): Update.
5949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5950 * x86-64-tdep.c (x86_64_init_abi): Update.
5951 * vax-tdep.c (vax_gdbarch_init): Update.
5952 * v850-tdep.c (v850_gdbarch_init): Update.
5953 * sparc-tdep.c (sparc_gdbarch_init): Update.
5954 * sh-tdep.c (sh_gdbarch_init): Update.
5955 * s390-tdep.c (s390_gdbarch_init): Update.
5956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5957 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5958 (ns32k_gdbarch_init_32382): Update.
5959 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5960 * mcore-tdep.c (mcore_gdbarch_init): Update.
5961 * m68k-tdep.c (m68k_gdbarch_init): Update.
5962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5963 * ia64-tdep.c (ia64_gdbarch_init): Update.
5964 * i386-tdep.c (i386_gdbarch_init): Update.
5965 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5966 * hppa-tdep.c (hppa_gdbarch_init): Update.
5967 * h8300-tdep.c (h8300_gdbarch_init): Update.
5968 * frv-tdep.c (frv_gdbarch_init): Update.
5969 * cris-tdep.c (cris_gdbarch_init): Update.
5970 * avr-tdep.c (avr_gdbarch_init): Update.
5971 * arm-tdep.c (arm_gdbarch_init): Update.
5972 * sparc-tdep.c (sparc_pop_frame): Update.
5973 * rs6000-tdep.c (rs6000_pop_frame): Update.
5974 * remote.c (init_remote_state): Update.
5975 (remote_prepare_to_store): Update.
5976 * remote-vx.c (vx_prepare_to_store): Update.
5977 * remote-sds.c (sds_fetch_registers): Update.
5978 (sds_prepare_to_store): Update.
5979 * remote-array.c: Update.
5980 * regcache.c (init_legacy_regcache_descr): Update.
5981 (init_regcache_descr): Update.
5982 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5983 (mips_o64_extract_return_value): Update.
5984 * irix5-nat.c (fetch_core_registers): Update.
5985 * irix4-nat.c (fetch_core_registers): Update.
5986 * i386-tdep.h: Update.
5987 * hppa-tdep.c (pa_do_registers_info): Update.
5988 (pa_do_strcat_registers_info): Update.
5989 * cris-tdep.c (cris_register_bytes_ok): Update.
5990 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5991 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5992 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5993 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5994 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5995 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5996 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5997 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5998 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5999 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6000 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6001 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6002 (REGISTER_BYTES_OK): Update.
6003 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6004 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6006 2003-05-16 Ian Lance Taylor <ian@airs.com>
6008 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6009 (vax_print_insn, print_insn_arg): Remove static functions.
6010 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6011 print_insn_vax from opcodes library.
6012 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6014 2003-05-15 Andrew Cagney <cagney@redhat.com>
6016 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6017 * target.h (memory_breakpoint_from_pc): Delete declaration.
6018 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6019 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6020 * monitor.c (monitor_insert_breakpoint): Use
6021 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6022 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6023 * gdbarch.h, gdbarch.c: Re-generate.
6024 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6025 (sparc_gdbarch_init): Set breakpoint_from_pc to
6026 sparc_breakpoint_from_pc.
6027 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6028 (BREAKPOINT_FROM_PC): Define.
6029 (sparc_breakpoint_from_pc): Declare.
6030 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6031 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6032 (BREAKPOINT_FROM_PC): Define.
6033 (BREAKPOINT): Delete macro.
6034 * target.h: Update comment.
6035 * s390-tdep.c (s390_gdbarch_init): Update comments.
6036 * remote.c: Update comments.
6037 * remote-mips.c: Update comments.
6038 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6039 * mem-break.c: Update comment.
6040 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6041 (ia64_memory_insert_breakpoint): Update.
6042 * config/sparc/tm-sparc.h: Update comment.
6043 * config/pa/tm-hppa64.h: Update comment.
6044 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6045 (rs6000_breakpoint_from_pc): Update.
6046 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6047 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6048 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6049 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6050 (mips_breakpoint_from_pc): Update.
6051 (mips_dump_tdep): Update.
6053 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6054 * minsyms.c (lookup_minimal_symbol): Inline
6055 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6057 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6058 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6059 * p-lang.c (pascal_printstr): Ditto.
6060 * objc-lang.c (objc_printstr): Ditto.
6061 * m2-lang.c (m2_printstr): Ditto.
6062 * jv-valprint.c (java_print_value_fields): Ditto.
6063 * f-lang.c (f_printstr): Ditto.
6064 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6065 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6066 for repeat_count_threshold.
6067 * Makefile.in (cp-valprint.o): Update dependencies.
6069 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6071 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6072 (examine_prologue): Support looking through leaf functions, knowing
6073 they start with mov r2,r12. Support skipping over indirect stores
6074 of the input registers. Upon hitting a non-nop branch instruction
6075 or predicated instruction, bail out by setting lim_pc to the current
6076 pc value in the loop. At the end, if the lim_pc value is still
6077 beyond our calculated value and we have trust_limit set,
6078 use the lim_pc value.
6080 2003-05-15 Andrew Cagney <cagney@redhat.com>
6082 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6083 generic_find_dummy_frame.
6084 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6085 (deprecated_generic_find_dummy_frame): Update.
6086 (deprecated_read_register_dummy): Update.
6087 * frame.c (deprecated_generic_get_saved_register): Update.
6089 2003-05-15 Theodore A. Roth <troth@openavr.org>
6091 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6092 (avr_gdbarch_init): Set breakpoint_from_pc method.
6094 2003-05-15 Andrew Cagney <cagney@redhat.com>
6096 * regcache.c (build_regcache): Set deprecated_register_valid
6098 (deprecated_grub_regcache_for_register_valid): Delete function.
6099 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6102 2003-05-15 David Carlton <carlton@bactrian.org>
6104 Committed by Elena Zannoni <ezannoni@redhat.com>
6105 * symtab.c (lookup_symbol_aux): Delete calls to
6106 lookup_symbol_aux_minsyms.
6107 (lookup_symbol_aux_minsyms): Comment out function and
6108 prototype. Delete lookup by mangled name.
6110 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6112 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6113 correctly indicate an empty stack and ``stack_allocated'' to the
6114 indicate the number of elements initially allocated.
6115 (dwarf_expr_grow_stack): Simplify method for computing new
6116 stack size. Don't loop infinitely if ``stack_len'' is zero.
6117 (execute_stack_op): Move ``ctx->in_reg'' initialization
6118 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6119 be used in conjuction with DW_OP_piece. Revise error message
6122 2003-05-14 Theodore A. Roth <troth@openavr.org>
6124 * MAINTAINERS: Update my email address.
6125 * avr-tdep.c: Ditto.
6127 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6129 * symtab.h (enum domain_enum): Rename from namespace_enum.
6130 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6131 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6132 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6133 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6134 TYPES_NAMESPACE, METHODS_NAMESPACE.
6135 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6136 (struct symbol, struct partial_symbol): Rename field
6137 'namespace_enum namespace' to 'domain_enum domain'.
6138 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6139 Delete old define kludge for namespace.
6141 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6142 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6143 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6144 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6145 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6146 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6147 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6148 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6149 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6150 occurrences of the above.
6152 2003-05-14 Ian Lance Taylor <ian@airs.com>
6154 * Makefile.in (install-only): Use $(SHELL) when running
6157 2003-05-13 Ian Lance Taylor <ian@airs.com>
6159 * MAINTAINERS (write after approval): Add myself.
6161 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6162 second and third arguments.
6163 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6164 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6166 2003-05-13 Andrew Cagney <cagney@redhat.com>
6168 * defs.h (store_address): Delete declaration.
6169 findvar.c (store_address): Delete function.
6170 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6171 store_unsigned_integer.
6172 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6173 * v850-tdep.c (v850_push_arguments): Ditto.
6174 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6175 * sh-tdep.c (sh64_get_saved_register): Ditto.
6176 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6177 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6178 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6179 (mips_get_saved_register): Ditto.
6180 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6181 (find_func_descr, ia64_push_arguments): Ditto.
6182 * i386-tdep.c (i386_push_arguments): Ditto.
6183 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6184 * frv-tdep.c (frv_push_arguments): Ditto.
6185 * frame.c (legacy_saved_regs_prev_register): Ditto.
6186 (deprecated_generic_get_saved_register): Ditto.
6187 * findvar.c (unsigned_address_to_pointer): Ditto.
6188 * dwarf2read.c (dwarf2_const_value): Ditto.
6189 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6190 * alpha-tdep.c (alpha_push_arguments): Ditto.
6192 2003-05-12 J. Brobecker <brobecker@gnat.com>
6194 * NEWS: Mention that the hppa-hpux port has been partially
6195 multiarched (32bit ABIT only, so far).
6197 2003-05-11 Andrew Cagney <cagney@redhat.com>
6199 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6200 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6201 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6202 sim/testsuite/sim/arm/misaligned2.ms, and
6203 sim/testsuite/sim/arm/misaligned3.ms.
6204 * disasm.h (struct ui_file): Add opaque struct declaration.
6205 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6206 * frame.h (struct ui_file): Ditto.
6208 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6210 * value.h: Pretty print.
6212 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6214 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6216 2003-05-08 Andrew Cagney <cagney@redhat.com>
6218 * regcache.h (max_register_size): Delete declaration.
6219 * regcache.c (max_register_size): Delete function.
6220 (struct regcache_descr): Delete field "max_register_size".
6221 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6222 registers fit in MAX_REGISTER_SIZE.
6223 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6224 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6225 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6226 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6227 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6228 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6229 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6230 * dve3900-rom.c, hppa-tdep.c: Ditto.
6232 2003-05-08 David Carlton <carlton@math.stanford.edu>
6234 * valops.c (push_word): Fix typo.
6236 2003-05-08 Andrew Cagney <cagney@redhat.com>
6238 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6239 * gdbarch.h: Re-generate.
6240 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6241 (legacy_max_register_raw_size): Delete declaration.
6242 * regcache.c (legacy_max_register_raw_size): Delete function.
6243 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6244 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6245 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6246 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6247 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6248 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6249 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6250 * findvar.c, dwarf2cfi.c: Ditto.
6252 2003-05-08 Andrew Cagney <cagney@redhat.com>
6254 * mips-tdep.c (read_signed_register): New function, moved to here
6256 (read_signed_register_pid): Ditto.
6257 * regcache.c (read_signed_register_pid): Delete function, moved to
6259 (read_signed_register): Ditto.
6260 * regcache.h (read_signed_register): Delete declaration.
6261 (read_signed_register_pid): Delete declaration.
6263 2003-05-08 Andrew Cagney <cagney@redhat.com>
6265 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6266 * gdbarch.h: Re-generate.
6267 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6268 (legacy_max_register_virtual_size): Delete declaration.
6269 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6270 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6271 * tracepoint.c (memrange_sortmerge): Ditto.
6272 * sparc-tdep.c (sparc_print_registers): Ditto.
6273 * regcache.c (legacy_max_register_virtual_size): Delete function.
6275 2002-05-08 J. Brobecker <brobecker@gnat.com>
6277 * fork-child.c (escape_bang_in_quoted_argument): New function.
6278 (fork_inferior): Escape '!' characters in quoted arguments
6281 2003-05-08 J. Brobecker <brobecker@gnat.com>
6283 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6284 the language of the CU is not currently supported by GDB.
6286 2003-05-08 J. Brobecker <brobecker@gnat.com>
6288 * defs.h (language): Add language_minimal enum value.
6289 * c-lang.c (minimal_language_defn): New language definition.
6290 (_initialize_c_language): Add the new minimal language to the list
6291 of languages known to GDB.
6293 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6295 * frame.c (get_frame_type): Don't attempt to lazily initialize
6296 frame's unwinder for legacy frames.
6298 2003-05-07 Andrew Cagney <cagney@redhat.com>
6300 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6301 and "regcache" parameters.
6302 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6304 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6306 * dwarf2read.c (dwarf_decode_lines): Only use output of
6307 check_cu_functions() when calling record_line(). Do not update
6308 the current address.
6310 2003-05-07 Andrew Cagney <cagney@redhat.com>
6312 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6315 2003-05-07 Jim Blandy <jimb@redhat.com>
6317 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6318 'maint info symtabs' and 'maint info psymtabs'.
6319 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6320 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6321 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6322 Declarations updated.
6323 * maint.c (maintenance_list_command): Delete.
6324 (_initialize_maint_cmds): Update calls to add_cmd.
6325 * gdbcmd.h (maintenancelistlist): Delete declaration.
6326 * cli/cli-cmds.c (maintenancelistlist): Delete.
6327 (init_cmd_lists): Don't initialize it.
6328 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6330 2003-05-07 Andrew Cagney <cagney@redhat.com>
6332 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6334 (d10v_print_registers_info): Update.
6335 (d10v_dmap_register, d10v_imap_register): Delete functions.
6336 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6337 and "imap_register".
6338 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6339 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6340 * arch-utils.c (generic_remote_translate_xfer_address): Add
6341 "regcache" and "gdbarch" parameters.
6342 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6343 parameter. Change class to multi-arch.
6344 * gdbarch.h, gdbarch.c: Re-generate.
6345 * remote.c (remote_xfer_memory): Use
6346 gdbarch_remote_translate_xfer_address.
6348 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6350 * infrun.c (prev_pc): Move declaration ahead of proceed().
6351 (proceed): Refresh prev_pc value before resuming.
6352 (stop_stepping): Remove code to refresh prev_pc.
6354 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6356 * nto-tdep.c: Removed stray comment.
6358 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6360 * i386-nto-tdep.c: Fix old K&R function definitions.
6361 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6362 Also change add_show_from_set() call to add_setshow_cmd().
6363 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6365 2003-05-05 Andrew Cagney <cagney@redhat.com>
6367 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6368 (fprint_dummy_frames): New function.
6369 (maintenance_print_dummy_frames): New function.
6370 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6371 * frame.c (fprint_frame_id): Make global.
6372 * frame.h (fprint_frame_id): Declare.
6373 * Makefile.in (dummy-frame.o): Update dependencies.
6375 2003-05-05 Andrew Cagney <cagney@redhat.com>
6377 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6378 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6379 SIZEOF_CALL_DUMMY_WORDS.
6380 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6381 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6382 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6383 CALL_DUMMY_BREAKPOINT_OFFSET.
6384 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6385 CALL_DUMMY_START_OFFSET.
6386 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6387 * gdbarch.h, gdbarch.c: Re-generate.
6388 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6389 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6390 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6391 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6392 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6393 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6394 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6395 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6396 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6397 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6398 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6399 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6400 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6401 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6402 * config/sparc/tm-sparc.h: Update.
6404 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6406 * configure.tgt: Add i[3456]86-*-nto*.
6407 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6408 * nto-tdep.c: New file. Neutrino target support routines.
6409 * nto-tdep.h: New file. Neutrino target header.
6410 * config/tm-qnxnto.h: New file.
6411 * config/i386/i386nto.mt: New file.
6412 * config/i386/tm-i386nto.h: New file.
6414 2003-05-04 Andrew Cagney <cagney@redhat.com>
6416 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6417 (load_infrun_state): Ditto.
6418 (struct thread_info): Drop "prev_func_name" field.
6419 * thread.c (load_infrun_state): Update.
6420 (save_infrun_state): Update.
6421 * infrun.c (prev_func_name): Delete variable.
6422 (init_wait_for_inferior): Do not clear prev_func_name.
6423 (stop_stepping, keep_going, context_switch): Do not swap
6425 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6426 instead of PC_IN_SIGTRAMP.
6428 2003-05-04 Andrew Cagney <cagney@redhat.com>
6430 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6431 REGISTER_BYTE with register_offset_hack.
6432 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6433 that REGISTER_BYTE is consistent with the regcache.
6434 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6435 * gdbarch.h, gdbarch.c: Regenerate.
6437 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6439 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6440 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6442 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6444 2003-05-03 J. Brobecker <brobecker@gnat.com>
6446 From Thierry Schneider <tpschneider1@yahoo.com>
6447 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6448 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6449 (mi-cmd-symbol.o): Add rule.
6451 2003-05-03 Andrew Cagney <cagney@redhat.com>
6453 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6454 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6455 * gdbarch.h, gdbarch.c: Re-generate.
6456 * d10v-tdep.c (d10v_push_dummy_code): New function.
6457 (d10v_gdbarch_init): Set push_dummy_code.
6458 * infcall.c (legacy_push_dummy_code): New function.
6459 (generic_push_dummy_code): New function.
6460 (push_dummy_code): New function.
6461 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6462 instead of dummy_addr, to push_dummy_call. Move call to
6463 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6465 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6467 2003-05-03 Andrew Cagney <cagney@redhat.com>
6469 * disasm.h (print_insn): Declare.
6470 * disasm.c (init_gdb_disassemble_info): New function.
6471 (gdb_disassembly): Call init_gdb_disassemble_info.
6472 (gdb_print_insn): New function.
6473 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6474 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6475 * mcore-tdep.c: Include "disasm.h"
6476 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6477 * d10v-tdep.c: Include "disasm.h".
6478 (display_trace): Call gdb_print_insn, instead of print_insn.
6479 (print_insn): Delete function.
6480 * printcmd.c: Include "disasm.h".
6481 (print_insn): Delete function.
6482 (print_formatted): Call gdb_print_insn, instead of print_insn.
6483 * Makefile.in (printcmd.o): Update dependencies.
6484 (mcore-tdep.o, d10v-tdep.o): Ditto.
6486 2003-05-02 Andrew Cagney <cagney@redhat.com>
6488 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6489 PC_REGNUM, re-indent.
6490 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6491 PC_REGNUM isn't set.
6493 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6494 * gdbarch.h, gdbarch.c: Re-generate.
6495 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6496 register_virtual_size, pc_regnum, or register_bytes.
6497 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6498 (d10v_register_type): Use D10V_PC_REGNUM.
6499 (d10v_print_registers_info, d10v_read_pc): Ditto.
6500 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6501 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6503 2003-05-02 David Carlton <carlton@bactrian.org>
6505 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6506 the name with mstrsave.
6508 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6510 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6511 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6512 (host_charset_name, target_charset_name): New vars for use by
6514 (host_charset_enum, target_charset_enum): New enums for set/show
6516 (set_charset_sfunc, set_host_charset_sfunc,
6517 set_target_charset_sfunc): New functions.
6518 (set_host_charset, set_target_charset): Make static.
6519 (list_charsets, set_host_charset_command,
6520 set_target_charset_command): Delete functions.
6521 (show_charset_command): Rewrite as....
6522 (show_charset): Hook this up with the set/show command mechanism.
6523 (_initialize_charset): Change names of charsets to match the
6524 set/show enums. Use host_charset_name and target_charset_name.
6525 Use set/show mechanism for charset, host-charset, target-charset
6526 commands. Do not make 'show host-charset' and 'show
6527 target-charset' be aliases of 'show charset'.
6529 * charset.h (set_host_charset, set_target_charset): Don't export,
6530 they are not used outside the file.
6532 2003-05-01 Andrew Cagney <cagney@redhat.com>
6534 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6535 (gdb_disassembly): Make "di" non static, always initialize and
6536 cleanup. Always use dis_asm_read_memory.
6537 (gdb_dis_asm_read_memory): Delete function.
6539 2003-05-01 Andrew Cagney <cagney@redhat.com>
6541 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6542 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6544 2003-04-30 Andrew Cagney <cagney@redhat.com>
6546 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6547 "tm_print_insn_info".
6548 (TARGET_PRINT_INSN_INFO): Delete macro.
6549 (dis_asm_read_memory): Delete function declaration.
6550 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6551 (tm_print_insn_info): Delete variable definition.
6552 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6553 * gdbarch.h, gdbarch.c: Re-generate.
6554 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6555 "deprecated_tm_print_insn_info".
6556 * mcore-tdep.c (mcore_dump_insn): Ditto.
6557 * mips-tdep.c (mips_gdbarch_init): Ditto.
6558 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6559 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6560 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6561 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6562 instead of TARGET_PRINT_INSN_INFO, add comment.
6563 * s390-tdep.c (s390_get_frame_info): Instead of
6564 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6565 (s390_check_function_end, s390_is_sigreturn): Ditto.
6566 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6567 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6568 * disasm.c: Include "gdbcore.h".
6569 (_initialize_disasm): New function, initialize
6570 "deprecated_tm_print_insn_info".
6571 (deprecated_tm_print_insn_info): New variable.
6572 (dis_asm_read_memory): Moved from "corefile.c", made static.
6573 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6574 * Makefile.in (disasm.o): Update dependencies.
6576 2003-04-30 Andrew Cagney <cagney@redhat.com>
6578 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6580 2003-04-29 Adam Fedor <fedor@gnu.org>
6582 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6583 * infcall.c (find_function_addr): Make non-static.
6584 * infcall.h (find_function_addr): Declare.
6585 * Makefile.in (eval.o): Update dependencies.
6587 2003-04-28 Adam Fedor <fedor@gnu.org>
6589 * symtab.c (symbol_find_demangled_name): Check for and demangle
6591 (symbol_init_demangled_name): Init for language_objc as well.
6593 2003-04-28 Andrew Cagney <cagney@redhat.com>
6595 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6596 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6597 * gdbarch.h, gdbarch.c: Re-generate.
6598 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6599 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6600 * inferior.h (deprecated_read_fp): Rename read_fp.
6601 (generic_target_read_fp): Delete declaration.
6602 * regcache.c (generic_target_read_fp): Delete function.
6603 (deprecated_read_fp): Replace read_fp, use
6604 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6605 * d10v-tdep.c (d10v_read_fp): Delete function.
6606 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6608 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6609 deprecated_target_read_fp to generic_target_read_fp.
6610 * sh-tdep.c (sh_gdbarch_init): Ditto.
6611 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6612 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6613 * frv-tdep.c (frv_gdbarch_init): Ditto.
6615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6616 deprecated_fp_regnum.
6617 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6618 * vax-tdep.c (vax_gdbarch_init): Ditto.
6619 * v850-tdep.c (v850_gdbarch_init): Ditto.
6620 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6621 * sh-tdep.c (sh_gdbarch_init): Ditto.
6622 * s390-tdep.c (s390_gdbarch_init): Ditto.
6623 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6624 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6625 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6626 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6628 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6629 * i386-tdep.c (i386_gdbarch_init): Ditto.
6630 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6632 * frv-tdep.c (frv_gdbarch_init): Ditto.
6633 * cris-tdep.c (cris_gdbarch_init): Ditto.
6634 * avr-tdep.c (avr_gdbarch_init): Ditto.
6635 * arm-tdep.c (arm_gdbarch_init): Ditto.
6636 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6638 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6639 * v850-tdep.c (v850_gdbarch_init): Ditto.
6640 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6641 * sh-tdep.c (sh_gdbarch_init): Ditto.
6642 * s390-tdep.c (s390_gdbarch_init): Ditto.
6643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6645 * mips-tdep.c (mips_gdbarch_init): Ditto.
6646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6647 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6648 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6649 * frv-tdep.c (frv_gdbarch_init): Ditto.
6650 * avr-tdep.c (avr_gdbarch_init): Ditto.
6651 * arm-tdep.c (arm_gdbarch_init): Ditto.
6653 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6654 DEPRECATED_FP_REGNUM.
6655 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6656 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6657 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6658 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6659 (sparc32_register_virtual_type): Ditto.
6660 * sh-tdep.c (sh64_frame_chain): Ditto.
6661 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6662 (sh_nofp_frame_init_saved_regs): Ditto.
6663 (sh64_nofp_frame_init_saved_regs): Ditto.
6664 (sh_fp_frame_init_saved_regs): Ditto.
6665 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6666 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6667 * procfs.c (procfs_fetch_registers): Ditto.
6668 (procfs_store_registers): Ditto.
6669 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6670 (store_inferior_registers, fetch_core_registers): Ditto.
6671 (fetch_kcore_registers, clear_regs): Ditto.
6672 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6673 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6674 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6675 * nlm/i386.c (do_status): Ditto.
6676 * mipsv4-nat.c (supply_gregset): Ditto.
6677 * mips-tdep.c: Ditto for comments.
6678 * mips-nat.c (fetch_inferior_registers): Ditto.
6679 (store_inferior_registers, fetch_core_registers): Ditto.
6680 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6681 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6682 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6683 (i386_do_pop_frame, i386_register_type): Ditto.
6684 * hppa-tdep.c (hppa_frame_chain): Ditto.
6685 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6686 (hppa_pop_frame, hppa_read_fp): Ditto.
6687 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6688 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6689 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6690 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6691 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6692 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6693 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6694 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6695 * blockframe.c: Ditto for comments.
6696 * arch-utils.h: Ditto for comments.
6697 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6698 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6699 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6700 * alpha-tdep.h: Ditto for comments.
6701 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6702 (alpha_cannot_store_register): Ditto.
6703 (alpha_push_dummy_frame): Ditto.
6704 * alpha-nat.c (supply_gregset): Ditto.
6706 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6707 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6708 * config/sparc/tm-sparc.h: Update comment.
6710 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6711 deprecated_read_fp instead of TARGET_READ_FP.
6712 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6713 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6714 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6715 deprecated_read_fp instead of read_fp.
6716 * s390-tdep.c (s390_push_arguments): Ditto.
6717 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6718 * frame.h: Ditto in comments.
6719 * frame.c (legacy_get_prev_frame): Ditto.
6720 * dummy-frame.c (dummy_frame_this_id): Ditto.
6721 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6723 2003-04-28 Andrew Cagney <cagney@redhat.com>
6725 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6726 * gdbarch.h, gdbarch.c: Re-generate.
6727 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6728 * vax-tdep.c (_initialize_vax_tdep): Update.
6729 * v850-tdep.c (_initialize_v850_tdep): Update.
6730 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6731 * s390-tdep.c (_initialize_s390_tdep): Update.
6732 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6733 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6734 * mips-tdep.c (_initialize_mips_tdep): Update.
6735 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6736 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6737 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6738 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6739 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6740 * frv-tdep.c (_initialize_frv_tdep): Update.
6741 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6742 (_initialize_cris_tdep): Update.
6743 * arch-utils.c (legacy_print_insn): Update.
6744 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6746 2003-04-26 Adam Fedor <fedor@gnu.org>
6748 * linespec.c (decode_objc): New function to decode ObjC calls
6749 (decode_line_1): Check for ObjC calls (using decode_objc)
6750 * Makefile (linespec.o): Update dependencies.
6752 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6754 * breakpoint.h (struct breakpoint_ops): New.
6755 (struct breakpoint): Add ops member.
6757 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6758 (mention): Use new breakpoint ops member.
6759 (set_raw_breakpoint): Initialize ops field to NULL.
6760 (print_exception_catchpoint, print_one_exception_catchpoint)
6761 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6762 (gnu_v3_exception_catchpoint_ops): New.
6763 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6765 2003-04-25 Adam Fedor <fedor@gnu.org>
6767 * Makefile.in (COMMON_OBS): Add objc-lang.o
6769 2003-04-25 Andrew Cagney <cagney@redhat.com>
6771 * d10v-tdep.c (print_insn): Delete function.
6772 (display_trace): Use TARGET_PRINT_INSN.
6773 (_initialize_d10v_tdep): Do not set tm_print_insn.
6774 (d10v_gdbarch_init): Set print_insn.
6776 2003-04-25 Andrew Cagney <cagney@redhat.com>
6778 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6779 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6780 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6781 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6782 (nr_dmap_regs, a0_regnum): ... new functions.
6783 (d10v_print_registers_info): Use a0_regnum, use register_size.
6784 (d10v_register_byte): Delete function.
6785 (d10v_register_raw_size): Delete function.
6786 (d10v_register_type): Use a0_regnum.
6787 (d10v_print_registers_info): Use a0_regnum.
6788 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6789 (d10v_gdbarch_init): Do not set register_byte or
6790 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6791 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6793 (trace_command): Use XCALLOC.
6794 (print_insn): Delete reference to tm_print_insn.
6795 (saved_regs_unwinder): Use store_unsigned_integer instead of
6797 * frame.h (FRAME_OBSTACK_CALLOC): Define
6799 2003-04-25 David Carlton <carlton@bactrian.org>
6801 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6803 2003-04-24 Adam Fedor <fedor@gnu.org>
6805 * objc-lang.c: Include "valprint.h"
6806 * Makefile.in (objc-lang.o): Update dependencies.
6808 2003-04-24 Adam Fedor <fedor@gnu.org>
6810 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6811 architecture dependant compilation and mark as unimplemented
6812 (until they get put in the gdbarch vector).
6814 2003-04-23 David Carlton <carlton@bactrian.org>
6816 * cp-support.c (cp_find_first_component): Accept 'operator' in
6819 2003-04-23 Andrew Cagney <cagney@redhat.com>
6821 * infcall.c (call_function_by_hand): Eliminate redundant
6822 indentation. Move "saved_async" and "old_cleanups" to where they
6825 2003-04-23 Andrew Cagney <cagney@redhat.com>
6827 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6828 and "buffer". Move the "name" code to where it is needed.
6830 2003-04-23 Andrew Cagney <cagney@redhat.com>
6832 * infcall.c (call_function_by_hand): Move variables "start_sp",
6833 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6834 code to ON_STACK switch branch.
6836 2003-04-23 Andrew Cagney <cagney@redhat.com>
6838 * infcall.c (call_function_by_hand): Make declaration of "i",
6839 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6842 2003-04-23 Andrew Cagney <cagney@redhat.com>
6844 * infcall.c (call_function_by_hand): Delete variable
6845 "n_method_args". Localize "param_type"'s declaration to the loop
6846 that it is used. Reinstate code assigning to said variable -
6847 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6848 Rationalize code using "param_type".
6850 2003-04-22 Andrew Cagney <cagney@redhat.com>
6852 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6853 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6854 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6855 to DEPRECATED_PUSH_RETURN_ADDRESS.
6857 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6859 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6860 on the DWARF2 register number prior to fetching a register.
6862 2003-04-22 J. Brobecker <brobecker@gnat.com>
6864 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6865 Update all the tests using SOFT_FLOAT considering the fact that
6866 this macro was always set to 0.
6867 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6868 considering the fact that this macro was always set to 0.
6869 * hppa-tdep.h (hppa_store_return_value): Likewise.
6870 (hppa_extract_return_value): Likewise.
6872 2003-04-22 J. Brobecker <brobecker@gnat.com>
6874 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6875 the hppa-pro target only.
6877 2003-04-21 J. Brobecker <brobecker@gnat.com>
6879 Ongoing multi-arch conversion effort for HP/UX:
6880 * config/pa/tm-hppa.h: Move all macro that are no longer
6881 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6882 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6884 2003-04-21 J. Brobecker <brobecker@gnat.com>
6886 * config/pa/tm-hppa.h: Obsolete a section that was only used
6889 2003-04-21 J. Brobecker <brobecker@gnat.com>
6891 Ongoing multi-arch conversion for HP/UX.
6892 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6893 if already defined (allows hppa64 to stay non-multiarched for now).
6894 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6896 2003-04-21 Andrew Cagney <cagney@redhat.com>
6898 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6900 2003-04-21 Andrew Cagney <cagney@redhat.com>
6902 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6903 "i386_num_mmx_regs".
6905 2003-04-21 Andrew Cagney <cagney@redhat.com>
6907 * infcall.c: New file.
6908 * infcall.h: New file.
6909 * valarith.c: Include "infcall.h".
6910 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6911 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6912 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6913 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6914 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6915 (SFILES): Add "infcall.c"
6916 (COMMON_OBS): Add "infcall.o".
6917 (infcall.o): Specify dependencies.
6918 * value.h (call_function_by_hand): Delete declaration.
6919 * inferior.h (run_stack_dummy): Delete declaration.
6920 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6921 (run_stack_dummy): Move to "infcall.c", merged into
6922 call_function_by_hand.
6923 * valops.c (call_function_by_hand): Moved to "infcall.c".
6924 (find_function_addr, value_arg_coerce): Ditto.
6925 (unwindonsignal_p, coerce_float_to_double): Ditto.
6926 (_initialize_valops): Move "set/show coerce-float-to-double", and
6927 "set/show unwindonsignal" commands to "infcall.c".
6928 * v850-tdep.c, target.h: Update comments.
6929 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6930 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6931 (sh64_init_extra_frame_info): Update comments.
6932 * mn10300-tdep.c: Update comments.
6933 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6934 * config/sparc/tm-sparc.h: Update comments.
6935 * breakpoint.h: Update comments.
6936 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6937 * arm-tdep.c: Update comment.
6939 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6941 * i386-tdep.c (i386_num_register_names): New variable.
6942 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6943 (MM0_REGNUM): Remove redundant parentheses in define.
6944 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6945 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6946 i386_mxcsr_regnum_p): Remove redundant parentheses.
6947 (i386_register_name): Use i386_num_register_names.
6949 * i386-tdep.c (i386_extract_return_value,
6950 i386_store_return_value): Correct check for availability of
6951 floating-point registers.
6953 * i386-tdep.c (i386_frame_num_args): Remove function.
6954 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6956 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6957 mmx_regnum_to_fp_regnum. Adjust all callers.
6959 * i386-tdep.c (i386_get_longjmp_target): Use
6960 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6961 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6964 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6966 * core-regset.c: Update comments to reflect reality. Re-order
6968 (fetch_core_registers): Use switch instead of if. Remove
6969 redundant prototype.
6971 2003-04-18 Jim Blandy <jimb@redhat.com>
6973 * s390-tdep.c (s390_frame_align): New function.
6974 (s390_gdbarch_init): Register it with the gdbarch object.
6976 2003-04-17 Richard Henderson <rth@redhat.com>
6978 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6980 2003-04-17 Michael Snyder <msnyder@redhat.com>
6981 Karen Bennet <bennet@redhat.com>
6983 Committed by Elena Zannoni <ezannoni@redhat.com>
6984 * gdb_gcore.sh: New script to create a core dump of a process.
6986 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6988 * values.c (value_being_returned): Don't fetch the return
6989 value if the return type is void.
6991 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6993 * thread-db.c: Reindented.
6995 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6997 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6998 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7025 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7027 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7028 the size of ``long double'' to 16, instead of 8.
7030 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7032 * i386-linux-nat.c: Add some whitespace to make things more
7034 (fetch_register, store_register, fetch_inferior_registers,
7035 store_inferior_registers): Get rid of assignment in if-statement.
7036 (store_register): Fix typo in error message.
7038 2003-04-16 Andrew Cagney <cagney@redhat.com>
7040 * utils.c (xmmalloc): Always allocate something, matches
7041 libiberty/xmalloc's semantics.
7042 (xmrealloc, xmcalloc): Ditto.
7044 2003-04-16 Andrew Cagney <cagney@redhat.com>
7046 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7048 (get_frame_type): Initialize unwind and type when needed.
7049 (get_frame_id, frame_register_unwind): Ditto.
7051 2003-04-16 Andrew Cagney <cagney@redhat.com>
7053 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7055 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7056 * sparcl-stub.c: Obsolete file.
7057 * config/sparc/tm-sparclet.h: Obsolete file.
7058 * sparclet-stub.c: Obsolete file.
7059 * sparclet-rom.c: Obsolete file.
7060 * sparcl-tdep.c: Obsolete file.
7061 * config/sparc/tm-sparclite.h: Obsolete file.
7062 * config/sparc/sparclite.mt: Obsolete file.
7063 * config/sparc/sparclet.mt: Obsolete file.
7064 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7065 sparc86x-*-* obsolete.
7067 2003-04-15 David Carlton <carlton@math.stanford.edu>
7069 * Makefile.in (SFILES): Add cp-namespace.c.
7070 (COMMON_OBS): Add cp-namespace.o.
7071 (block.o): Depend on gdb_obstack_h and cp_support_h.
7072 (buildsym.o): Depend on cp_support_h.
7073 (cp-namespace.o): New.
7074 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7075 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7076 (dwarf2read.o): Depend on cp_support_h.
7077 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7078 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7079 processing_current_namespace.
7080 (read_namespace): Update processing_current_namespace; check for
7081 anonymous namespaces.
7082 (dwarf2_name): New function.
7083 (dwarf2_extension): Ditto.
7084 * cp-support.h: Update copyright, contributors.
7085 Add inclusion guards.
7086 Add opaque declaration for structs obstack, block, symbol.
7087 (struct using_direct): New struct.
7088 Add declarations for cp_find_first_component,
7089 cp_entire_prefix_len, processing_has_namespace_info,
7090 processing_current_namespace, cp_is_anonymous,
7091 cp_add_using_directive, cp_initialize_namespace,
7092 cp_finalize_namespace, cp_set_block_scope,
7093 cp_scan_for_anonymous_namespaces.
7094 * cp-namespace.c: New file.
7095 * cp-support.c: Update copyright.
7096 Include ctype.h, gdb_assert.h, gdbcmd.h.
7097 New variable maint_cplus_cmd_list.
7098 (cp_find_first_component): New function.
7099 (cp_entire_prefix_len, maint_cplus_command)
7100 (first_component_command, _initialize_cp_support): Ditto.
7101 * buildsym.c: Include cp-support.h.
7102 New variable using_list.
7103 (add_symbol_to_list): Check for anonymous namespaces.
7104 (finish_block): Set block's scope.
7105 (start_symtab): Initialize C++ namespace support.
7106 (end_symtab): Finalize C++ namespace support.
7107 * block.h: Add opaque declarations for structs
7108 block_namespace_info, using_direct, and obstack.
7109 Add declarations for block_set_scope and block_set_using.
7110 (struct block): Add 'language_specific' member.
7111 (BLOCK_NAMESPACE): New macro.
7112 * block.c: Include gdb_obstack.h and cp-support.h.
7113 (struct block_namespace_info): New struct.
7114 (block_set_scope): New function.
7115 (block_set_using, block_initialize_namespace): Ditto.
7117 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7119 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7120 (locate_base): Return early if there aren't any link map offsets.
7121 (svr4_solib_create_inferior_hook): Warn if shared library support
7124 2003-04-14 David Carlton <carlton@math.stanford.edu>
7126 * symtab.c (symbol_set_names): Add prefix when storing Java names
7127 in hash table. Fix for PR java/1039.
7129 2003-04-14 David Carlton <carlton@math.stanford.edu>
7131 * symtab.c (symbol_set_names): Rename 'name' arg to
7132 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7133 * symtab.h: Change 'name' argument in declaration of
7134 symbol_set_names to 'linkage_name'.
7135 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7137 2003-04-14 Andrew Cagney <cagney@redhat.com>
7139 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7140 return the fully sign-extended register value.
7141 (get_frame_pointer): Ditto.
7142 (mips_pop_frame): Initialize "proc_desc" after checking for a
7145 2003-04-14 Andrew Cagney <cagney@redhat.com>
7147 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7148 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7149 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7150 (mips_push_register): Delete function.
7151 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7154 2003-04-14 Jim Blandy <jimb@redhat.com>
7156 * symmisc.c: #include "gdb_regex.h".
7157 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7159 * maint.c (maintenance_list_command): New function.
7160 (_initialize_maint_cmds): Register the above as commands.
7161 * symtab.h (maintenance_list_symtabs,
7162 maintenance_list_psymtabs): New declarations.
7163 * cli/cli-cmds.c (maintenancelistlist): New variable.
7164 (init_cmd_lists): Initialize it.
7165 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7166 * gdbcmd.h (maintenancelistlist): New declaration.
7167 * Makefile.in (symmisc.o): Update dependencies.
7169 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7171 * s390-nat.c: Include asm/types.h for addr_t.
7173 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7175 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7176 actually incoming type.
7178 2003-04-13 Andrew Cagney <cagney@redhat.com>
7180 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7181 get_next_frame and get_frame_saved_regs.
7183 2003-04-13 Andrew Cagney <cagney@redhat.com>
7185 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7186 of gdbarch_num_regs.
7188 2003-04-13 Andrew Cagney <cagney@redhat.com>
7190 * frame.h: Mention what replaced what in "struct frame_info".
7191 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7192 deprecated_update_frame_base_hack and
7193 deprecated_update_frame_pc_hack.
7194 * hppa-tdep.c: Ditto.
7196 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7198 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7199 to read_reg and update its comment. Remove regnum member.
7200 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7201 Don't call read_reg when setting in_reg. Call read_reg to get
7202 the frame base if it's in a register. Return the register number
7203 on the stack instead of in the context. Remove extra arguments
7205 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7206 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7207 the register number on the expression stack.
7208 (needs_frame_read_reg): Remove extra arguments.
7210 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7212 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7214 (execute_stack_op): All callers updated.
7215 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7216 * dwarf2loc.c (find_location_expression): New function.
7217 (dwarf_expr_frame_base): Call it.
7218 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7219 (dwarf2_tracepoint_var_ref): New function, broken out from
7220 locexpr_tracepoint_var_ref.
7221 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7223 (loclist_read_variable, loclist_read_needs_frame): New functions.
7224 (loclist_describe_location, loclist_tracepoint_var_ref): New
7226 (dwarf2_loclist_funcs): New struct location_funcs.
7227 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7228 (struct dwarf2_locexpr_baton): Add comments.
7229 (dwarf2_loclist_funcs): New extern.
7230 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7231 base_address and base_known.
7232 (dwarf_loc_buffer): New variable.
7233 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7234 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7235 (dwarf2_has_info): Initialize dwarf_loc_offset.
7236 (dwarf2_build_psymtabs): Read in .debug_loc.
7237 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7239 (psymtab_to_symtab_1): Likewise. Move base address calculation
7241 (dwarf2_get_pc_bounds): ... here. Use the base address from
7243 (dwarf2_symbol_mark_computed): Handle location lists.
7245 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7247 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7248 if the linkage name demangled successfully.
7250 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7252 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7253 disassmbly_flavour): Removed.
7255 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7257 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7259 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7261 2003-04-12 Andrew Cagney <cagney@redhat.com>
7263 * frame.h (struct frame_info): Move definition from here ...
7264 * frame.c (struct frame_info): ... to here.
7266 2003-04-12 Andrew Cagney <cagney@redhat.com>
7268 * gdbthread.h (save_infrun_state): Delete parameter
7270 (struct thread_info): Delete field "prev_func_start".
7271 (load_infrun_state): Ditto.
7272 * thread.c (load_infrun_state, save_infrun_state): Update.
7273 * infrun.c (prev_func_start): Delete variable.
7274 (context_switch, init_wait_for_inferior): Update.
7275 (stop_stepping, keep_going): Update.
7277 2003-04-12 Andrew Cagney <cagney@redhat.com>
7279 * gdbarch.sh: Add missing opaque declarations.
7280 * gdbarch.h: Regnerate.
7281 * symtab.h: Add missing opaque declarations.
7282 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7283 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7284 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7285 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7286 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7287 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7288 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7289 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7290 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7291 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7292 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7293 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7294 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7296 2003-04-11 Andrew Cagney <cagney@redhat.com>
7298 * frame.c (get_frame_id): Return this frame's "id".
7299 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7301 (legacy_saved_regs_this_id): Replace function body with
7303 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7304 FRAME_OBSTACK_ZALLOC.
7305 (create_new_frame): Mark the frame ID as valid.
7307 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7309 * Makefile.in (libbfd_h): Added missing setting.
7310 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7311 according to the selected ABI.
7313 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7315 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7317 2003-04-11 Andrew Cagney <cagney@redhat.com>
7319 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7320 SAVED_PC_AFTER_CALL.
7321 * gdbarch.h, gdbarch.c: Regenerate.
7322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7323 * x86-64-tdep.c (x86_64_init_abi): Update.
7324 * vax-tdep.c (vax_gdbarch_init): Update.
7325 * v850-tdep.c (v850_gdbarch_init): Update.
7326 * sparc-tdep.c (sparc_gdbarch_init): Update.
7327 * sh-tdep.c (sh_gdbarch_init): Update.
7328 * s390-tdep.c (s390_gdbarch_init): Update.
7329 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7330 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7332 * mips-tdep.c (mips_gdbarch_init): Update.
7333 * mcore-tdep.c (mcore_gdbarch_init): Update.
7334 * m68k-tdep.c (m68k_gdbarch_init): Update.
7335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7336 * ia64-tdep.c (ia64_gdbarch_init): Update.
7337 (ia64_saved_pc_after_call): Update declaration.
7338 * i386ly-tdep.c (i386lynx_init_abi): Update.
7339 * i386-tdep.c (i386_gdbarch_init): Update.
7340 * hppa-tdep.c (hppa_gdbarch_init): Update.
7341 * h8300-tdep.c (h8300_gdbarch_init): Update.
7342 * frv-tdep.c (frv_gdbarch_init): Update.
7343 * cris-tdep.c (cris_gdbarch_init): Update.
7344 * avr-tdep.c (avr_gdbarch_init): Update.
7345 * arm-tdep.c (arm_gdbarch_init): Update.
7346 * alpha-tdep.c (alpha_gdbarch_init): Update.
7347 * ns32knbsd-nat.c (frame_num_args): Update.
7348 * ns32k-tdep.c (umax_frame_num_args): Update.
7349 * mips-tdep.c (mips_init_frame_pc_first): Update.
7350 * infrun.c (step_over_function): Update.
7351 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7352 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7353 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7354 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7355 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7356 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7357 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7358 * arch-utils.c (init_frame_pc_default): Update.
7359 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7360 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7363 2003-04-11 Andrew Cagney <cagney@redhat.com>
7365 * i387-tdep.c: Update copyright.
7366 (i387_to_double): Delete function.
7367 (double_to_i387): Delete function.
7369 2003-04-10 Andrew Cagney <cagney@redhat.com>
7371 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7372 frame's function's address. Simplify.
7373 (d10v_frame_unwind_cache): Check that the frame's function is
7376 2003-04-10 Jim Blandy <jimb@redhat.com>
7378 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7379 call to set_gdbarch_deprecated_push_arguments.
7381 2003-04-10 Andrew Cagney <cagney@redhat.com>
7383 * frame.c (fprint_frame_id): New function.
7384 (fprint_frame_type, fprint_frame): New function.
7385 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7386 (create_sentinel_frame, get_frame_id): Ditto.
7387 (frame_id_p, frame_id_eq): Ditto.
7388 (frame_id_inner, create_new_frame): Ditto.
7389 (legacy_get_prev_frame, get_prev_frame): Ditto.
7390 (deprecated_update_frame_pc_hack): Ditto.
7391 (frame_register_unwind): Ditto.
7392 (deprecated_update_frame_base_hack): Ditto.
7394 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7396 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7397 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7398 frame_chain function.
7399 * Makefile.in: Add dependencies due to above change.
7401 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7403 * blockframe.c (legacy_frame_chain_valid): Move call to
7404 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7407 2003-04-09 Andrew Cagney <cagney@redhat.com>
7409 * frame.h (struct frame_id): Replace "pc" and "base" with
7410 "stack_addr" and "code_addr". Update comments.
7411 (frame_id_build): Update parameter names and comment.
7412 (struct frame_info): Replace "id_p" and "id" with "this_id".
7413 * dummy-frame.c (dummy_frame_this_id): Update.
7414 * breakpoint.c (print_one_breakpoint): Update.
7415 * frame.c (get_frame_id): Update.
7416 (get_frame_base, frame_id_build): Update.
7417 (create_sentinel_frame, legacy_get_prev_frame): Update.
7418 (deprecated_update_frame_base_hack): Update.
7419 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7420 (frame_id_inner): Ditto.
7422 2003-04-09 Andrew Cagney <cagney@redhat.com>
7424 * defs.h (gdb_print_host_address): Make "addr" parameter a
7426 * utils.c (gdb_print_host_address): Update.
7428 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7430 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7431 register number for R0 is 0.
7433 2003-04-09 J. Brobecker <brobecker@gnat.com>
7435 * frame.h (struct gdbarch): Add opaque structure definition
7436 to avoid a compilation warning on LynxOS 4.0.
7438 2003-04-09 Andrew Cagney <cagney@redhat.com>
7440 * frame.h (struct frame_info): Delete field "pc". Replace
7441 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7443 * frame.c (frame_pc_unwind): Update.
7444 (create_sentinel_frame): Do not set "pc".
7445 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7446 (get_frame_pc): Call frame_pc_unwind.
7447 (deprecated_update_frame_pc_hack): Update.
7448 (create_new_frame): Use "pc" not "->pc".
7450 2003-04-09 Andrew Cagney <cagney@redhat.com>
7452 * frame.c (get_frame_id): Eliminate code updating "frame".
7453 (legacy_get_prev_frame): Ditto.
7454 (get_frame_base): Return id.base directly.
7455 (deprecated_update_frame_base_hack): Update "id.base".
7456 * frame.h (struct frame_info): Delete field "frame".
7458 2003-04-09 Andrew Cagney <cagney@redhat.com>
7460 * NEWS: Mention that the "Sequent family" is obsolete.
7461 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7462 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7463 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7464 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7465 * config/i386/tm-ptx4.h: Obsolete file.
7466 * config/i386/tm-ptx.h: Obsolete file.
7467 * symm-tdep.c: Obsolete file.
7468 * config/i386/symmetry.mt: Obsolete file.
7469 * config/i386/tm-symmetry.h: Obsolete file.
7470 * symm-nat.c: Obsolete file.
7471 * config/i386/nm-symmetry.h: Obsolete file.
7472 * config/i386/xm-symmetry.h: Obsolete file.
7473 * config/i386/symmetry.mh: Obsolete file.
7474 * config/i386/nm-ptx4.h: Obsolete file.
7475 * config/i386/ptx4.mh: Obsolete file.
7476 * config/i386/ptx.mt: Obsolete file.
7477 * config/i386/ptx.mh: Obsolete file.
7478 * config/i386/xm-ptx4.h: Obsolete file.
7479 * config/i386/xm-ptx.h: Obsolete file.
7481 2003-04-09 Andrew Cagney <cagney@redhat.com>
7483 Obsolete mips*-*-mach3*.
7484 * NEWS: Mention that mips*-*-mach3* is obsolete.
7485 * m3-nat.c: Obsolete file.
7486 * config/nm-m3.h: Obsolete file.
7487 * config/mips/tm-mipsm3.h: Obsolete file.
7488 * config/mips/mipsm3.mt: Obsolete file.
7489 * config/mips/mipsm3.mh: Obsolete file.
7490 * config/mips/xm-mipsm3.h: Obsolete file.
7491 * mipsm3-nat.c: Obsolete file.
7492 * configure.host: Obsolete mips-dec-mach3*.
7493 * configure.tgt: Obsolete mips*-*-mach3*.
7495 2003-04-09 Andrew Cagney <cagney@redhat.com>
7497 * doublest.h: Update copyright.
7498 (deprecated_store_floating, deprecated_extract_floating): Rename
7499 store_floating and extract_floating. Update comments.
7500 * doublest.c: Update copyright.
7501 (extract_floating_by_length): Replace extract_floating.
7502 (store_floating_by_length): Replace store_floating.
7503 (deprecated_extract_floating): New function.
7504 (deprecated_store_floating): New function.
7505 (extract_typed_floating): Call extract_floating_by_length.
7506 (store_typed_floating): Call store_floating_by_length.
7507 * x86-64-tdep.c (x86_64_store_return_value): Update.
7508 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7509 (sh64_extract_return_value): Update.
7510 (sh_sh4_register_convert_to_virtual): Update.
7511 (sh_sh64_register_convert_to_virtual): Update.
7512 (sh_sh4_register_convert_to_raw): Update.
7513 (sh_sh64_register_convert_to_raw): Update.
7514 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7515 (rs6000_register_convert_to_raw): Update.
7516 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7517 (ia64_register_convert_to_raw): Update.
7518 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7519 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7520 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7521 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7522 (alpha_register_convert_to_raw): Update.
7524 2003-04-08 Andrew Cagney <cagney@redhat.com>
7526 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7527 * gdbarch.h, gdbarch.c: Re-generate.
7528 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7529 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7530 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7531 conditionally, use frame_pc_unwind as an alternative. Add
7533 * arch-utils.c (init_frame_pc_default): Only call
7534 SAVED_PC_AFTER_CALL when available.
7536 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7538 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7539 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7540 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7541 (start_remote): Ditto.
7542 (handle_inferior_event): Ditto.
7543 (save_inferior_status): Ditto.
7544 (restore_inferior_status): Ditto.
7545 * infcmd.c (attach_command): Ditto.
7546 * fork-child.c (startup_inferior): Ditto.
7547 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7548 * alpha-tdep.c (heuristic_proc_start): Ditto.
7549 * mips-tdep.c (heuristic_proc_start): Ditto.
7550 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7551 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7552 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7553 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7554 * remote-vx.c (vx_create_inferior): Ditto.
7556 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7558 * infrun.c (stop_soon_quietly): Make it an enum, to better
7559 override the default behavior of handle_inferior_event.
7560 (clear_proceed_status): Update uses of stop_soon_quietly to
7561 reflect that it is now an enum.
7562 (start_remote): Ditto.
7563 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7564 is set to handle the new GNU/Linux kernel behavior for
7565 attach/sigstop. Update uses of stop_soon_quietly.
7566 * inferior.h (enum stop_kind): New enum.
7567 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7568 Reset normal handle_inferior_event behavior, afterwards.
7569 * fork-child.c (startup_inferior): Update.
7570 * alpha-tdep.c (heuristic_proc_start): Update.
7571 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7572 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7573 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7574 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7575 * remote-vx.c (vx_create_inferior): Update.
7576 * mips-tdep.c (heuristic_proc_start): Update.
7578 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7580 * disasm.c (dump_insns): Move variables inside loop, or they will
7581 be freed more than once, causing wild memory corruptions.
7582 (gdb_disassembly): Look for the substring "-thread",
7583 instead of "-threads" in the target name, to make sure to find
7584 the 'multi-thread' target. Also, make sure we do the right thing
7585 with the "core" target.
7587 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7589 * mips-tdep.c (mips_print_fp_register): New function, created from
7590 do_fp_register_row(). Registers are now (also) printed as hex.
7591 Only one register is printed per row.
7592 (mips_print_register, do_fp_register_row): Print floating point
7593 registers with mips_print_fp_register().
7595 2003-04-06 Andrew Cagney <cagney@redhat.com>
7597 * valprint.h (inspect_it): Add extern declaration.
7598 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7599 (selectors_info, classes_info): Ditto.
7600 (find_objc_msgcall): Fix indentation.
7601 (objc_printstr): Delete extern declarations.
7603 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7605 2003-04-06 Andrew Cagney <cagney@redhat.com>
7607 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7609 * frame.c (legacy_saved_regs_this_id): Update.
7610 (legacy_get_prev_frame): Update.
7611 * xstormy16-tdep.c: Update comment.
7612 * sparc-tdep.c (sparc_frame_chain): Update comment.
7613 * blockframe.c (legacy_frame_chain_valid): Update.
7615 2003-04-06 Andrew Cagney <cagney@redhat.com>
7617 * valprint.c (val_print_type_code_int): Delete #ifdef
7618 PRINT_TYPELESS_INTEGER code.
7620 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7621 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7622 multi-arch definition.
7623 * gdbarch.h: Re-generate.
7625 2003-04-05 Andrew Cagney <cagney@redhat.com>
7627 Eliminate FRAME_FIND_SAVED_REGS.
7628 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7629 Change FSR parameter to a pointer.
7630 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7631 Assume FSR parameter is a pointer.
7632 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7634 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7635 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7636 saved_regs a pointer.
7637 (hppa_frame_saved_pc): Ditto.
7638 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7639 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7641 (restore_pc_queue): Make fsr a pointer.
7642 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7643 (hppa_frame_chain): Make saved_regs a pointer, call
7644 hppa_frame_init_saved_regs.
7645 * sparc-tdep.c: Include "gdb_assert.h".
7646 (sparc_frame_find_saved_regs): Replace internal_error with
7648 * remote-vxsparc.c (vx_read_register): Delete reference to
7649 FRAME_FIND_SAVED_REGS.
7650 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7651 * gdbarch.h: Regenerate.
7652 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7653 (deprecated_get_frame_saved_regs): Delete declaration.
7654 (struct frame_saved_regs): Delete definition.
7655 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7656 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7657 (hppa_frame_find_saved_regs): Delete declaration.
7658 (FRAME_FIND_SAVED_REGS): Delete macro.
7659 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7660 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7661 FRAME_FIND_SAVED_REGS in comment.
7663 2003-04-05 Andrew Cagney <cagney@redhat.com>
7665 * frame.c (frame_func_unwind, get_frame_func): New functions.
7666 * frame.h (get_frame_func, frame_func_unwind): Declare.
7667 (struct frame_info): Add field "prev_func" for caching the
7668 previous frame's function address.
7669 * arm-tdep.c (arm_frameless_function_invocation): Combine
7670 get_pc_function_start and get_frame_pc into get_frame_func.
7671 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7672 (sh64_nofp_frame_init_saved_regs): Ditto.
7673 * s390-tdep.c (s390_function_start): Ditto.
7674 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7675 (rs6000_frameless_function_invocation): Ditto.
7676 (rs6000_frame_saved_pc): Ditto.
7677 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7678 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7679 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7680 (i386_frame_init_saved_regs): Ditto.
7681 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7682 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7683 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7684 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7685 * blockframe.c (frameless_look_for_prologue): Ditto.
7687 2003-04-05 Andrew Cagney <cagney@redhat.com>
7689 * frame.c (legacy_get_prev_frame): Link prev to next at the
7690 function start. Update comments.
7692 2003-04-05 Andrew Cagney <cagney@redhat.com>
7694 * frame.c (get_frame_id): Update comment.
7695 (legacy_get_prev_frame): Update comment.
7696 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7697 * gdbarch.h: Regenerate.
7698 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7699 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7701 2003-04-05 Andrew Cagney <cagney@redhat.com>
7703 * stack.c (print_frame_info): Use get_frame_pc.
7705 2003-04-04 Andrew Cagney <cagney@redhat.com>
7707 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7708 the frame's type from the unwinder.
7709 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7710 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7711 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7712 (get_frame_base_address): Use get_frame_type.
7713 (get_frame_locals_address, get_frame_args_address): Ditto.
7714 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7715 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7716 (struct frame_info): Add comment explaining why the frame contains
7718 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7719 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7720 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7722 * frame-unwind.h: Include "frame.h".
7723 (struct frame_unwind): Add "type" field.
7724 * Makefile.in (frame_unwind_h): Add $(frame_h).
7726 2003-04-04 Andrew Cagney <cagney@redhat.com>
7728 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7729 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7730 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7732 (d10v_unwind_dummy_id): Use frame_id_build.
7733 * frame.c (find_frame_sal): Use get_frame_pc.
7734 (create_new_frame): Use deprecated_update_frame_pc_hack and
7735 deprecated_update_frame_base_hack.
7736 (create_sentinel_frame): Add comment about ->pc going away.
7737 (get_prev_frame): Add comment about ->pc going away.
7738 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7739 frame_id_build, deprecated_update_frame_pc_hack and
7740 deprecated_update_frame_base_hack.
7741 (select_frame): Use get_frame_pc.
7742 (legacy_saved_regs_this_id): Use frame_id_build.
7744 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7746 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7747 signed integer case.
7748 (classify_argument): Handle enumerations and references.
7750 2003-04-04 Andrew Cagney <cagney@redhat.com>
7752 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7755 2003-04-01 Adam Fedor <fedor@gnu.org>
7757 * gdb/objc-lang.c (selectors_info): Replace calls to
7758 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7759 SYMBOL_NATURAL_NAME.
7760 (classes_info, find_methods): Likewise.
7762 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7764 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7765 ``mach'' to the value determined by bfd_default_set_arch_mach().
7767 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7769 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7770 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7771 (mi-cmd-file.o): Update dependencies.
7773 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7775 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7776 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7778 2003-04-01 Adam Fedor <fedor@gnu.org>
7780 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7781 * language.h (struct language_defn): Add la_demangle.
7782 (language_demangle): Declare.
7783 * language.c (language_demangle): New function.
7784 (unk_lang_demangle): Likewise.
7785 (unknown_language_defn, auto_language_defn, local_language_defn):
7786 Add ukn_lang_demangle.
7787 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7788 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7789 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7790 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7791 * jv-lang.c (java_demangle): New function
7792 (java_language_defn): Use it for la_demangle element.
7793 * objc-lang.c (objc_demangle): Add options argument
7794 (objc_language_defn): Use objc_demangle for la_demangle element.
7795 * maint.c (maintenance_demangle): Replace switch with
7796 call to language_demangle.
7797 * utils.c (fprintf_symbol_filtered): Likewise.
7799 2003-04-01 Andrew Cagney <cagney@redhat.com>
7801 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7802 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7803 PRINT_TYPELESS_INTEGER.
7804 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7805 PUSH_RETURN_ADDRESS.
7807 2003-04-01 Andrew Cagney <cagney@redhat.com>
7809 * Makefile.in (d10v-tdep.o): Update dependencies.
7810 * d10v-tdep.c: Include "frame-base.h".
7811 (d10v_frame_unwind): Make constant.
7812 (d10v_frame_base_address): New function.
7813 (d10v_frame_base): New variable.
7814 (d10v_gdbarch_init): Set frame_base default.
7815 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7817 (d10v_frame_unwind_cache): Set and use "prev_sp".
7818 (d10v_frame_this_id): Use the previous frame's inner most stack
7819 address and this frame's func address for the frame ID. Use
7820 frame_id_build. Don't analyze beyond the current instruction.
7822 2003-04-01 Andrew Cagney <cagney@redhat.com>
7824 * frame.h (get_frame_locals_address, get_frame_args_address):
7825 Refer to the base address, instead of the address of the first
7828 2003-04-01 Andrew Cagney <cagney@redhat.com>
7830 Add frame debug info addresses:
7831 * frame-base.c: New file.
7832 * frame-base.h: New file.
7833 * frame.h (struct frame_base): Add opaque declaration.
7834 (get_frame_base): Update comment.
7835 (get_frame_base_address): Declare.
7836 (get_frame_locals_address): Declare.
7837 (get_frame_args_address): Declare.
7838 (struct frame_info): Add "base" and "base_cache". Update
7839 comments on the unwinder.
7840 * frame.c: Include "frame-base.h".
7841 (get_frame_locals_address): New function.
7842 (get_frame_base_address): New function.
7843 (get_frame_args_address): New function.
7844 * findvar.c (read_var_value): Use get_frame_locals_address and
7845 get_frame_args_address.
7846 * stack.c (frame_info): Use get_frame_locals_address and
7847 get_frame_args_address.
7848 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7849 moved to "frame-base.c".
7850 * printcmd.c (print_frame_nameless_args): Ditto.
7851 * symtab.h (address_class): Update comments.
7852 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7853 get_frame_base_address.
7854 * dwarf2expr.c (execute_stack_op): Ditto.
7855 * Makefile.in (frame_base_h): Define.
7856 (frame.o): Update dependencies.
7857 (frame-base.o): Add dependencies.
7858 (SFILES): Add frame-base.c.
7859 (COMMON_OBS): Add frame-base.o.
7861 2003-04-01 Andrew Cagney <cagney@redhat.com>
7863 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7864 CALL_DUMMY_LENGTH): Ditto.
7865 * gdbarch.c: Re-generate.
7866 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7867 (CALL_DUMMY_LENGTH): Delete macro.
7868 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7869 * arm-tdep.c (arm_gdbarch_init): Ditto.
7870 * avr-tdep.c (avr_gdbarch_init): Ditto.
7871 * cris-tdep.c (cris_gdbarch_init): Ditto.
7872 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7873 * frv-tdep.c (frv_gdbarch_init): Ditto.
7874 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7875 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7876 * i386-tdep.c (i386_gdbarch_init): Ditto.
7877 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7879 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7880 * mips-tdep.c (mips_gdbarch_init): Ditto.
7881 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7882 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7883 * s390-tdep.c (s390_gdbarch_init): Ditto.
7884 * sh-tdep.c (sh_gdbarch_init): Ditto.
7885 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7886 * v850-tdep.c (v850_gdbarch_init): Ditto.
7887 * vax-tdep.c (vax_gdbarch_init): Ditto.
7888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7890 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7892 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7894 2003-04-01 Andrew Cagney <cagney@redhat.com>
7896 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7897 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7898 * gdbarch.h, gdbarch.c: Re-generate.
7899 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7900 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7901 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7902 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7903 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7904 * infcmd.c (run_stack_dummy): Simplify assuming
7905 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7906 * infrun.c (handle_inferior_event): Ditto.
7907 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7908 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7909 * arm-tdep.c (arm_gdbarch_init): Ditto.
7910 * avr-tdep.c (avr_gdbarch_init): Ditto.
7911 * cris-tdep.c (cris_gdbarch_init): Ditto.
7912 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7913 * frv-tdep.c (frv_gdbarch_init): Ditto.
7914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7915 * i386-tdep.c (i386_gdbarch_init): Ditto.
7916 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7918 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7919 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7920 * mips-tdep.c (mips_gdbarch_init): Ditto.
7921 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7922 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7923 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7924 * s390-tdep.c (s390_gdbarch_init): Ditto.
7925 * sh-tdep.c (sh_gdbarch_init): Ditto.
7926 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7927 * v850-tdep.c (v850_gdbarch_init): Ditto.
7928 * vax-tdep.c (vax_gdbarch_init): Ditto.
7929 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7931 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7933 * symfile.c (symfile_relocate_debug_section): Update call to
7934 bfd_simple_get_relocated_section_contents.
7936 2003-03-31 Andrew Cagney <cagney@redhat.com>
7938 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7939 * gdbarch.h, gdbarch.c: Regenerate.
7940 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7941 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7943 * frame.h (generic_fix_call_dummy): Delete declaration.
7944 * dummy-frame.h: Update comment.
7945 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7948 * sh-tdep.c (sh_gdbarch_init): Ditto.
7949 * s390-tdep.c (s390_gdbarch_init): Ditto.
7950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7951 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7953 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7954 * i386-tdep.c (i386_gdbarch_init): Ditto.
7955 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7956 * frv-tdep.c (frv_gdbarch_init): Ditto.
7957 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7958 * cris-tdep.c (cris_gdbarch_init): Ditto.
7959 * avr-tdep.c (avr_gdbarch_init): Ditto.
7960 * arm-tdep.c (arm_gdbarch_init): Ditto.
7962 2003-03-31 J. Brobecker <brobecker@gnat.com>
7964 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7965 (INIT_FRAME_AP): Likewise.
7966 (EXTRA_FRAME_INFO): Likewise.
7968 2003-03-31 Andrew Cagney <cagney@redhat.com>
7970 * gdbarch.sh: Include "symfile.h".
7971 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7972 * gdbarch.h, gdbarch.c: Re-generate.
7973 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7975 call_dummy_address, the default is at entry_point_address.
7976 * v850-tdep.c (v850_gdbarch_init): Ditto.
7977 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7978 * sh-tdep.c (sh_gdbarch_init): Ditto.
7979 * s390-tdep.c (s390_gdbarch_init): Ditto.
7980 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7981 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7984 * i386-tdep.c (i386_gdbarch_init): Ditto.
7985 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7986 * frv-tdep.c (frv_gdbarch_init): Ditto.
7987 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7988 * cris-tdep.c (cris_gdbarch_init): Ditto.
7989 * arm-tdep.c (arm_gdbarch_init): Ditto.
7991 2003-03-31 Andrew Cagney <cagney@redhat.com>
7993 * gdbarch.sh (CALL_DUMMY_P): Delete.
7994 * gdbarch.h, gdbarch.c: Re-generate.
7995 * inferior.h (CALL_DUMMY_P): Delete macro.
7996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7997 * vax-tdep.c (vax_gdbarch_init): Update.
7998 * v850-tdep.c (v850_gdbarch_init): Update.
7999 * sparc-tdep.c (sparc_gdbarch_init): Update.
8000 * sh-tdep.c (sh_gdbarch_init): Update.
8001 * s390-tdep.c (s390_gdbarch_init): Update.
8002 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8005 * mips-tdep.c (mips_gdbarch_init): Update.
8006 * mcore-tdep.c (mcore_gdbarch_init): Update.
8007 * m68k-tdep.c (m68k_gdbarch_init): Update.
8008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8009 * ia64-tdep.c (ia64_gdbarch_init): Update.
8010 * i386-tdep.c (i386_gdbarch_init): Update.
8011 * h8300-tdep.c (h8300_gdbarch_init): Update.
8012 * frv-tdep.c (frv_gdbarch_init): Update.
8013 * d10v-tdep.c (d10v_gdbarch_init): Update.
8014 * cris-tdep.c (cris_gdbarch_init): Update.
8015 * breakpoint.c (deprecated_frame_in_dummy): Update.
8016 * avr-tdep.c (avr_gdbarch_init): Update.
8017 * alpha-tdep.c (alpha_gdbarch_init): Update.
8018 * arm-tdep.c (arm_gdbarch_init): Update.
8019 * dummy-frame.c (dummy_frame_this_id): Update comments.
8020 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8021 * frame.c (legacy_get_prev_frame): Ditto.
8022 * valops.c (call_function_by_hand): Delete function.
8023 (hand_function_call): Rename to call_function_by_hand
8025 2003-03-30 Andrew Cagney <cagney@redhat.com>
8027 2002-11-10 Klee Dienes <kdienes@apple.com>
8028 * value.h (struct value): Update comment.
8030 2003-03-30 Andrew Cagney <cagney@redhat.com>
8032 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8034 (d10v_gdbarch_init): Do not set fp_regnum.
8036 * frame.c (get_frame_base): Force ID initialization.
8037 (get_prev_frame): Move computation of the frame ID from here ...
8038 (get_frame_id): ... to here.
8039 (legacy_get_prev_frame): Mark the frame ID as valid.
8040 * frame.h (struct frame_info): Add field "id_p".
8042 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8044 * i386-tdep.c (i386_store_struct_return): Removed.
8045 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8047 2003-03-30 Andrew Cagney <cagney@redhat.com>
8049 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8050 * gdbarch.h, gdbarch.c: Regenerate.
8051 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8052 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8053 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8054 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8055 * i386-tdep.c (i386_gdbarch_init): Ditto.
8056 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8057 * cris-tdep.c (cris_gdbarch_init): Ditto.
8058 * vax-tdep.c (vax_gdbarch_init): Ditto.
8059 * s390-tdep.c (s390_gdbarch_init): Ditto.
8060 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8061 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8062 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8063 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8064 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8065 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8066 * sparc-tdep.c (sparc_gdbarch_init): Update.
8067 * sh-tdep.c (sh_gdbarch_init): Update.
8068 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8069 * mips-tdep.c (mips_gdbarch_init): Update.
8070 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8071 * ia64-tdep.c (ia64_gdbarch_init): Update.
8072 * frv-tdep.c (frv_gdbarch_init): Update.
8073 * avr-tdep.c (avr_gdbarch_init): Update.
8074 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8075 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8076 instead of when push_dummy_call is not available.
8078 2003-03-30 Andrew Cagney <cagney@redhat.com>
8080 * infttrace.c: Include "gdbthread.h".
8081 (parent_attach_all): Fix function signature.
8082 (call_ptrace): Update call.
8083 * Makefile.in (infttrace.o): Update dependencies.
8085 2003-03-30 Andrew Cagney <cagney@redhat.com>
8087 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8088 PUSH_RETURN_ADDRESS.
8089 * gdbarch.h, gdbarch.c: Regenerate.
8090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8091 * x86-64-tdep.c (x86_64_init_abi): Update.
8092 * v850-tdep.c (v850_gdbarch_init): Update.
8093 * sparc-tdep.c (sparc_gdbarch_init): Update.
8094 * sh-tdep.c (sh_gdbarch_init): Update.
8095 * s390-tdep.c (s390_gdbarch_init): Update.
8096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8097 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8098 * mips-tdep.c (mips_gdbarch_init): Update.
8099 * mcore-tdep.c (mcore_gdbarch_init): Update.
8100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8101 * ia64-tdep.c (ia64_gdbarch_init): Update.
8102 * i386-tdep.c (i386_gdbarch_init): Update.
8103 * h8300-tdep.c (h8300_gdbarch_init): Update.
8104 * frv-tdep.c (frv_gdbarch_init): Update.
8105 * cris-tdep.c (cris_gdbarch_init): Update.
8106 * avr-tdep.c (avr_gdbarch_init): Update.
8107 * arm-tdep.c (arm_gdbarch_init): Update.
8108 * valops.c (hand_function_call): Update.
8110 2003-03-29 Andrew Cagney <cagney@redhat.com>
8112 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8113 sizeof_call_dummy_words.
8114 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8116 * gdbarch.h: Regenerate.
8118 2003-03-29 Andrew Cagney <cagney@redhat.com>
8120 * infttrace.h: New file.
8121 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8122 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8123 (hpread_read_doc_function_type): Detect an initialized type1.
8124 (hpread_quick_traverse): Initialize mod_name_string.
8125 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8126 (som_solib_get_solib_by_pc): Declare.
8127 (so_lib_thread_start_addr): Declare.
8128 (no_shared_libraries): Declare.
8129 * somread.c (init_import_symbols): Make static. Add forward
8131 * config/pa/nm-hppah.h: Include "infttrace.h" for
8133 (hppa_insert_hw_watchpoint): Declare.
8134 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8135 * hppah-nat.c: Include "gdb_string.h".
8136 (parent_attach_all): Delete extern declaration, moved to
8138 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8140 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8141 * Makefile.in (infttrace_h): Define.
8142 (hpread.o): Update dependencies.
8143 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8144 * hppa-hpux-tdep.c: Include "gdb_string.h".
8145 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8146 * infrun.c (handle_inferior_event): Always initialize
8147 stepped_after_stopped_by_watchpoint. Add default and remove
8148 fallthrough in switch statement.
8149 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8151 (hppa_remove_hw_watchpoint): Ditto.
8153 2003-03-29 Andrew Cagney <cagney@redhat.com>
8155 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8158 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8160 * arm-tdep.c (arm_push_arguments): Delete.
8161 (struct stack_item): New type.
8162 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8163 (arm_store_struct_return): Delte.
8164 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8165 arm_push_arguments or arm_store_struct_return.
8167 2003-03-28 Andrew Cagney <cagney@redhat.com>
8169 * Makefile.in (d10v-tdep.o): Update dependencies.
8170 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8171 * d10v-tdep.c: Include "remote.h".
8172 (target_resume_hook): Delete extern declaration.
8173 (target_wait_loop_hook): Ditto.
8174 (tdisassemble_command): Eliminate assignment in "if" conditional.
8175 (d10v_ts2_register_sim_regno): Eliminate call to
8176 legacy_register_sim_regno.
8177 (d10v_ts3_register_sim_regno): Ditto.
8179 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8181 * thread.c: Reindented.
8183 * linux-proc.c: Ditto.
8185 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8187 * MAINTAINERS (write after approval): Add myself.
8189 2003-03-27 Theodore A. Roth <troth@openavr.org>
8191 * objc-exp.y: Add missing semi-colons.
8193 2003-03-27 Andrew Cagney <cagney@redhat.com>
8195 * regcache.c (write_sp): Delete function and references.
8196 * inferior.h (write_sp): Delete declaration.
8197 * valops.c (hand_function_call): Replace write_sp with
8199 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8200 (sparc_pop_frame): Ditto.
8202 2003-03-27 Andrew Cagney <cagney@redhat.com>
8204 * NEWS: Mention removal of support for hppa*-*-bsd* and
8205 hppa*-*-osf* natives, and hppa*-*-pro* target.
8206 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8207 * config/pa/xm-pa.h: Obsolete file.
8208 * config/pa/xm-hppab.h: Obsolete file.
8209 * config/pa/nm-hppab.h: Obsolete file.
8210 * config/pa/tm-hppab.h: Obsolete file.
8211 * config/pa/tm-hppao.h: Obsolete file.
8212 * config/pa/nm-hppao.h: Obsolete file.
8213 * config/pa/tm-pro.h: Obsolete file.
8214 * config/pa/hppaosf.mt: Obsolete file.
8215 * config/pa/hppaosf.mh: Obsolete file.
8216 * config/pa/hppapro.mt: Obsolete file.
8217 * config/pa/hppabsd.mt: Obsolete file.
8218 * config/pa/hppabsd.mh: Obsolete file.
8219 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8220 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8223 2003-03-27 Andrew Cagney <cagney@redhat.com>
8225 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8226 push_arguments. Don't set push_return_address or write_sp.
8227 (d10v_push_dummy_call): Replace d10v_push_arguments.
8228 (d10v_push_return_address, d10v_write_sp): Delete function,
8229 handled by push_dummy_call.
8231 2003-03-26 Andrew Cagney <cagney@redhat.com>
8233 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8234 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8235 regcache and dummy_addr parameters.
8236 * gdbarch.h, gdbarch.c: Re-generate.
8237 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8238 available; assume it will handle stack alignment and return
8239 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8240 legacy_push_arguments.
8241 (legacy_push_arguments): Rename default_push_arguments.
8242 * value.h (legacy_push_arguments): Rename default_push_arguments.
8243 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8244 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8245 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8246 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8247 * config/i386/tm-symmetry.h: Update.
8248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8249 * x86-64-tdep.c (x86_64_init_abi): Update.
8250 * v850-tdep.c (v850_gdbarch_init): Update.
8251 * sparc-tdep.c (sparc_gdbarch_init): Update.
8252 * sh-tdep.c (sh_gdbarch_init): Update.
8253 * s390-tdep.c (s390_gdbarch_init): Update.
8254 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8255 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8256 * mips-tdep.c (mips_gdbarch_init): Update.
8257 * mcore-tdep.c (mcore_gdbarch_init): Update.
8258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8259 * ia64-tdep.c (ia64_gdbarch_init): Update.
8260 * i386-tdep.c (i386_gdbarch_init): Update.
8261 * hppa-tdep.c (hppa_gdbarch_init): Update.
8262 * h8300-tdep.c (h8300_gdbarch_init): Update.
8263 * frv-tdep.c (frv_gdbarch_init): Update.
8264 * d10v-tdep.c (d10v_gdbarch_init): Update.
8265 * cris-tdep.c (cris_gdbarch_init): Update.
8266 * avr-tdep.c (avr_gdbarch_init): Update.
8267 * arm-tdep.c (arm_gdbarch_init): Update.
8268 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8269 * alpha-tdep.c (alpha_gdbarch_init): Update.
8271 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8273 * signals/signals.c (do_target_signal_to_host): Correct realtime
8276 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8278 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8279 (struct sal_chain, map_catch_names): Remove.
8280 (catch_exception_command_1): Don't call
8281 handle_gnu_4_16_catch_command.
8283 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8285 From Mark Dettinger <dettinge@de.ibm.com>:
8286 * dwarf2cfi.c (read_2u): Increment pointer by two.
8288 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8290 * signals/signals.c: Fix typos in last change.
8292 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8294 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8295 not already defined. Use __SIGRTMIN if available.
8296 (target_signal_from_host): Remove SIGRTMIN block.
8297 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8298 the signal is within the realtime range.
8300 2003-03-25 Adam Fedor <fedor@gnu.org>
8302 * Makefile.in (infrun.o): Add $(language_h)
8303 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8304 for language specific trampolines.
8305 * language.h (struct language_defn): Add skip_trampoline.
8306 (skip_language_trampoline): Declare.
8307 * language.c (unk_lang_trampoline, skip_language_trampoline):
8309 (unknown_language_defn, auto_language_defn, local_language_defn):
8310 Add ukn_lang_trampoline.
8311 * ada-lang.c (ada_language_defn): Add NULL for language
8312 specific skip_trampoline.
8313 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8314 scm-lang.c: Likewise.
8315 * objc-lang.c (objc_skip_trampoline): New function.
8316 (objc_language_defn): Add objc_skip_trampoline.
8318 2003-03-25 Andrew Cagney <cagney@redhat.com>
8320 * frame.c (get_prev_frame): Delay validating a frame's ID -
8321 non-NULL, didn't go backwards - until an attempt to unwind it to
8324 2003-03-25 Andrew Cagney <cagney@redhat.com>
8326 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8327 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8328 * gdbarch.h, gdbarch.c: Re-generate.
8329 * config/sparc/tm-sparc.h
8330 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8331 * sparc-tdep.c (sparc_gdbarch_init): Set
8332 deprecated_extra_stack_alignment_needed.
8333 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8335 extra_stack_alignment_needed.
8336 * v850-tdep.c (v850_gdbarch_init): Ditto.
8337 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8339 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8340 * cris-tdep.c (cris_gdbarch_init): Ditto.
8341 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8344 2003-03-25 Andrew Cagney <cagney@redhat.com>
8346 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8347 STORE_STRUCT_RETURN.
8348 * gdbarch.h, gdbarch.c: Regenerate.
8349 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8350 (d10v_push_arguments): Set the struct return register.
8351 (d10v_gdbarch_init): Update.
8352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8353 * x86-64-tdep.c (x86_64_init_abi): Update.
8354 * vax-tdep.c (vax_gdbarch_init): Update.
8355 * v850-tdep.c (v850_gdbarch_init): Update.
8356 * sparc-tdep.c (sparc_gdbarch_init): Update.
8357 * sh-tdep.c (sh_gdbarch_init): Update.
8358 * s390-tdep.c (s390_gdbarch_init): Update.
8359 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8360 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8361 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8362 * mips-tdep.c (mips_gdbarch_init): Update.
8363 * mcore-tdep.c (mcore_gdbarch_init): Update.
8364 * m68k-tdep.c (m68k_gdbarch_init): Update.
8365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8366 * ia64-tdep.c (ia64_gdbarch_init): Update.
8367 * i386-tdep.c (i386_gdbarch_init): Update.
8368 * hppa-tdep.c (hppa_gdbarch_init): Update.
8369 * h8300-tdep.c (h8300_gdbarch_init): Update.
8370 * frv-tdep.c (frv_gdbarch_init): Update.
8371 * cris-tdep.c (cris_gdbarch_init): Update.
8372 * avr-tdep.c (avr_gdbarch_init): Update.
8373 * arm-tdep.c (arm_gdbarch_init): Update.
8374 * alpha-tdep.c (alpha_gdbarch_init): Update.
8376 2003-03-25 Andrew Cagney <cagney@redhat.com>
8378 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8379 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8380 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8381 * gdbarch.h, gdbarch.c: Regenerate.
8382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8383 call_dummy_stack_adjust_p.
8384 * vax-tdep.c (vax_gdbarch_init): Ditto.
8385 * v850-tdep.c (v850_gdbarch_init): Ditto.
8386 * sh-tdep.c (sh_gdbarch_init): Ditto.
8387 * s390-tdep.c (s390_gdbarch_init): Ditto.
8388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8389 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8391 * mips-tdep.c (mips_gdbarch_init): Ditto.
8392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8393 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8394 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8395 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8396 * i386-tdep.c (i386_gdbarch_init): Ditto.
8397 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8398 * frv-tdep.c (frv_gdbarch_init): Ditto.
8399 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8400 * cris-tdep.c (cris_gdbarch_init): Ditto.
8401 * avr-tdep.c (avr_gdbarch_init): Ditto.
8402 * arm-tdep.c (arm_gdbarch_init): Ditto.
8403 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8404 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8405 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8406 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8407 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8408 call_dummy_stack_adjust_p.
8409 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8410 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8411 * sparc-tdep.c (sparc32_push_arguments): Update.
8412 * valops.c (hand_function_call): Update.
8414 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8417 set_gdbarch_char_signed.
8419 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8422 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8424 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8426 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8427 (_initialize_arm_tdep): Don't set tm_print_insn.
8429 2003-03-24 Adam Fedor <fedor@gnu.org>
8431 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8432 * objc-lang.h: Add multiple inclusion protection.
8433 (start_msglist, add_msglist, end_msglist): Additional declarations.
8435 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8437 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8438 value was renamed to ARM_FLOAT_SOFT_FPA.
8440 2003-03-23 Andrew Cagney <cagney@redhat.com>
8442 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8443 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8444 * gdbarch.h, gdbarch.c: Regenerate.
8445 * valops.c (hand_function_call): Update.
8446 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8447 * frame.c (legacy_saved_regs_this_id): Update.
8448 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8449 * dummy-frame.h: Update.
8450 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8451 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8452 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8453 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8454 * config/m68k/tm-sun3.h: Update.
8455 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8456 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8457 * x86-64-tdep.c (x86_64_init_abi): Update.
8458 * vax-tdep.c (vax_gdbarch_init): Update.
8459 * v850-tdep.c (v850_gdbarch_init): Update.
8460 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8461 * sh-tdep.c (sh_gdbarch_init): Update.
8462 * s390-tdep.c (s390_gdbarch_init): Update.
8463 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8464 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8465 (frame_get_saved_regs): Update.
8466 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8467 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8469 * mips-tdep.c (mips_gdbarch_init): Update.
8470 * mcore-tdep.c (mcore_gdbarch_init): Update.
8471 * m68k-tdep.c (m68k_gdbarch_init): Update.
8472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8473 * ia64-tdep.c (ia64_gdbarch_init): Update.
8474 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8475 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8476 (i386_interix_back_one_frame): Update.
8477 * hppa-tdep.c (hppa_gdbarch_init): Update.
8478 (hppa_init_extra_frame_info): Update.
8479 * h8300-tdep.c (h8300_gdbarch_init): Update.
8480 * frv-tdep.c (frv_gdbarch_init): Update.
8481 * cris-tdep.c (cris_gdbarch_init): Update.
8482 * avr-tdep.c (avr_gdbarch_init): Update.
8483 * arm-tdep.c (arm_gdbarch_init): Update.
8484 * alpha-tdep.c (alpha_gdbarch_init): Update.
8486 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8488 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8489 (arm_get_fp_model): Declare.
8490 * arm-tdep.c (fp_model_strings): New string array.
8491 (arm_fp_model, current_fp_model): New variables.
8492 (arm_get_fp_model): New function.
8493 (arm_set_fp): New function.
8494 (set_fp_model_sfunc): New function.
8495 (show_fp_model): New function.
8496 (_initialize_arm_tdep): Add new command to set/show the FPU.
8497 (arm_extract_return_value): Use arm_get_fp_model.
8498 (arm_store_return_value): Likewise.
8499 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8500 to initialize the floating-point data types.
8501 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8504 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8506 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8507 the current setting of each value.
8508 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8509 new_set and new_show. Use add_setshow_cmd_full and
8510 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8511 commands and add new version as subcommands of "set/show arm".
8513 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8515 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8516 (set_arm_command, show_arm_command): New functions.
8517 (_initialize_arm_tdep): Add them.
8518 (num_disassembly_options): Renamed from num_flavor_options.
8519 (valid_disassembly_styles): Renamed from valid_flavors.
8520 (disassembly_style): Renamed from disassembly_flavor.
8521 (set_disassembly_style_sfunc): Renamed from
8522 set_disassembly_flavor_sfunc.
8523 (set_disassembly_style): Renamed from set_disassembly_flavor.
8524 (arm_othernames): Updated.
8525 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8526 command. Add "set/show arm disassembly" commands. Deprecate
8527 "othernames" command.
8529 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8531 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8532 (arm-tdep.o): Depend on elf_arm_h.
8534 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8536 * Makefile.in (coff_internal_h): Define.
8537 (arm-tdep.o): Update dependencies.
8539 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8541 * arm-tdep.c (prologue_cache): Delete.
8542 (check_prologue_cache, save_prologue_cache): Delete.
8543 (arm_scan_prologue): Don't check or update the prologue_cache.
8544 (arm_gdb_arch_init): Don't initialize it.
8545 (_initialize_arm_tdep): Likewise.
8547 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8549 * MAINTAINERS (tui): Maintainer of tui code.
8551 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8553 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8554 (i386-cygwin-tdep.o): Add dependencies.
8555 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8556 * i386-cygwin-tdep.c: New file.
8557 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8558 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8560 2003-03-20 Andrew Cagney <cagney@redhat.com>
8562 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8563 (handle_inferior_event): Remove code calling
8564 DYNAMIC_TRAMPOLINE_NEXTPC.
8566 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8567 already has a full path.
8569 * main.c (gdb_main): Return 1.
8570 (captured_main): Call error to report an invalid interpreter.
8572 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8573 * alpha-osf1-tdep.c: Include "gdb_string.h".
8575 2003-03-19 J. Brobecker <brobecker@gnat.com>
8577 Continuing work to convert the hppa targets to multiarch partial.
8579 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8580 method, now that hppa_push_dummy_frame has a conformant prototype.
8581 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8582 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8583 for the switch to multiarch partial.
8585 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8587 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8588 when iss is issNull.
8590 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8592 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8593 NUM_REGS bounds check.
8595 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8597 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8598 * mips-tdep.c (gdb_assert.h): Include.
8599 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8600 (mips_register_name): Handle integer registers explicitly. Add
8602 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8603 (mips_lsi33k_reg_names): Don't list integer registers; they're
8604 handled by mips_register_name() now.
8605 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8606 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8607 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8608 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8609 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8611 2003-03-18 Andrew Cagney <cagney@redhat.com>
8613 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8615 * gdbtypes.h (print_scalar_formatted): Update declaration.
8616 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8618 2003-03-18 J. Brobecker <brobecker@gnat.com>
8620 * infrun.c (observer.h): Add #include.
8621 (normal_stop): Add call to observer_notify_normal_stop.
8622 * Makefile.in (infrun.o): Add dependency on observer.h.
8624 2003-03-18 J. Brobecker <brobecker@gnat.com>
8626 Continuing work to convert the hppa targets to multiarch partial.
8627 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8628 parameter. Reformat comment.
8629 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8630 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8631 to match new profile.
8633 2003-03-18 J. Brobecker <brobecker@gnat.com>
8635 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8636 appear to be working in any case.
8638 2003-03-18 J. Brobecker <brobecker@gnat.com>
8640 * observer.c (observer_test_first_observer): New static variable.
8641 (observer_test_second_observer): Likewise.
8642 (observer_test_third_observer): Likewise.
8643 (observer_test_first_notification_function): New static function.
8644 (observer_test_second_notification_function): Likewise.
8645 (observer_test_third_notification_function): Likewise.
8647 2003-03-17 J. Brobecker <brobecker@gnat.com>
8649 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8650 * somsolib.c (gdb_assert.h): Likewise.
8651 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8652 (somsolib.o): Likewise.
8654 2003-03-17 Andrew Cagney <cagney@redhat.com>
8656 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8657 BFD. Simplify setting of di.endian.
8659 2003-03-17 Andrew Cagney <cagney@redhat.com>
8661 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8662 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8664 From Elena Zannoni <ezannoni@redhat.com>
8665 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8666 vector and floating-point parameters.
8667 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8669 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8671 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8673 * MAINTAINERS: Remove my name from several maintainership roles.
8675 2003-03-17 Andrew Cagney <cagney@redhat.com>
8677 Fix frame off-by-one bug.
8678 * frame-unwind.h (frame_this_id_ftype): Replace
8679 frame_unwind_id_ftype.
8680 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8681 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8682 with "prev_register".
8683 * frame-unwind.c (frame_unwind_find_by_pc): Return
8684 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8686 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8687 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8688 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8689 (dummy_frame_unwind): Update.
8690 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8691 sentinel_frame_register_unwind.
8692 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8693 (sentinel_frame_unwinder): Update.
8694 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8695 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8696 * frame.c (create_sentinel_frame): Update. Initialize
8697 "prologue_cache" instead of "unwind_cache".
8698 (frame_register_unwind): Call this frame's prev_register with the
8699 next frame and this frame's prologue cache.
8700 (get_prev_frame): Simplify. Always call prev frame's this_id with
8701 this frame and prev frame's prologue cache. Document that this
8702 call is shifted one to the left when compared to the
8703 frame_register_unwind call.
8704 (legacy_saved_regs_prev_register): Replace
8705 frame_saved_regs_register_unwind.
8706 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8707 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8708 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8709 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8710 (d10v_frame_unwind): Update.
8711 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8712 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8713 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8714 "saved_regs" with "this_saved_regs".
8716 2003-03-16 Andrew Cagney <cagney@redhat.com>
8718 * frame.c (frame_pop): Don't call target_store_registers. Fix
8719 problem reported by Mark Kettenis.
8721 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8723 * i386-tdep.c (i386_register_type): Renamed from
8724 i386_register_virtual_type. Adjust function signature.
8725 (i386_gdbarch_init): Set register_type instead of
8726 deprecated_max_register_raw_size,
8727 deprecated_max_register_virtual_size and register_virtual_type.
8729 2003-03-14 Andrew Cagney <cagney@redhat.com>
8731 * frame.c (get_prev_frame): When a legacy frame, always call
8732 legacy_get_prev_frame. Simplify unwind code using assumption that
8733 the unwinder is new.
8734 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8735 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8736 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8738 2003-03-14 Andrew Cagney <cagney@redhat.com>
8740 * frame.c (get_saved_register): Delete function.
8741 * frame.h (get_saved_register): Delete declaration.
8742 * xstormy16-tdep.c: Update comment.
8743 * regcache.h: Update comments.
8744 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8745 get_saved_register and extract_address, use
8746 frame_read_unsigned_register.
8747 (sparc_frame_saved_pc): Ditto.
8748 (sparc_get_saved_register): Instead of get_saved_register, use
8750 (sparc_pop_frame): Ditto.
8751 * findvar.c: Update comments.
8752 (value_of_register): Call frame_register instead of
8754 (value_from_register): Ditto.
8755 * config/sparc/tm-sparc.h: Update comment.
8756 * breakpoint.c: Update comment.
8758 2003-03-14 Andrew Cagney <cagney@redhat.com>
8760 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8762 * gdbarch.h, gdbarch.c: Re-generate.
8763 * frame.h: Update comments.
8764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8765 * x86-64-tdep.c (x86_64_init_abi): Update.
8766 * sparc-tdep.c (sparc_gdbarch_init): Update.
8767 * sh-tdep.c (sh_gdbarch_init): Update.
8768 * mips-tdep.c (mips_gdbarch_init): Update.
8769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8770 * cris-tdep.c (cris_gdbarch_init): Update.
8771 * ia64-tdep.c (ia64_gdbarch_init): Update.
8772 * frame.c (frame_register): Update.
8773 (get_saved_register): Update.
8774 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8776 2003-03-13 Andrew Cagney <cagney@redhat.com>
8778 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8779 * gdbarch.h, gdbarch.c: Regenerate.
8780 * valops.c (hand_function_call): Update comment.
8781 * stack.c (return_command): Update comment.
8782 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8783 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8784 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8785 * x86-64-tdep.c (x86_64_init_abi): Update.
8786 * vax-tdep.c (vax_gdbarch_init): Update.
8787 * v850-tdep.c (v850_gdbarch_init): Update.
8788 * sparc-tdep.c (sparc_gdbarch_init): Update.
8789 * sh-tdep.c (sh_gdbarch_init): Update.
8790 * s390-tdep.c (s390_gdbarch_init): Update.
8791 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8792 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8794 * mips-tdep.c (mips_gdbarch_init): Update.
8795 * mcore-tdep.c (mcore_gdbarch_init): Update.
8796 * m68k-tdep.c (m68k_gdbarch_init): Update.
8797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8798 * ia64-tdep.c (ia64_gdbarch_init): Update.
8799 * i386-tdep.c (i386_gdbarch_init): Update.
8800 * hppa-tdep.c (hppa_gdbarch_init): Update.
8801 * h8300-tdep.c (h8300_gdbarch_init): Update.
8802 * frv-tdep.c (frv_gdbarch_init): Update.
8803 * cris-tdep.c (cris_gdbarch_init): Update.
8804 * avr-tdep.c (avr_gdbarch_init): Update.
8805 * arm-tdep.c (arm_gdbarch_init): Update.
8806 * alpha-tdep.c (alpha_gdbarch_init): Update.
8808 2003-03-13 Andrew Cagney <cagney@redhat.com>
8810 * frame.c (legacy_frame_p): New function.
8811 (get_prev_frame): Use legacy_frame_p.
8812 * frame.h (legacy_frame_p): Declare.
8814 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8816 * MAINTAINERS (write after approval): Alphabetically
8819 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8821 * MAINTAINERS (write after approval): Add myself.
8823 2003-03-12 Andrew Cagney <cagney@redhat.com>
8825 * frame.c (get_prev_frame): Rename the frame parameter to
8827 (get_next_frame, legacy_get_prev_frame): Ditto.
8829 2003-03-12 Andrew Cagney <cagney@redhat.com>
8831 * frame.c (get_current_frame): Check target_has_registers before
8832 checking target_has_stack.
8833 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8834 instead of deprecated_selected_frame.
8835 * findvar.c (value_of_register): Pass "frame", not
8836 deprecated_selected_frame, to value_of_builtin_reg.
8838 2003-03-12 Andrew Cagney <cagney@redhat.com>
8840 * regcache.c (regcache_cooked_write_signed): New function.
8841 (regcache_cooked_write_unsigned): New function.
8842 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8843 (regcache_cooked_read_signed): Fix regnum in range assertion.
8844 * regcache.h (regcache_cooked_write_signed): Declare.
8845 (regcache_cooked_write_unsigned): Declare.
8847 2003-03-12 Andrew Cagney <cagney@redhat.com>
8849 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8850 * gdbarch.h, gdbarch.c: Re-generate.
8851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8852 * x86-64-tdep.h: Update.
8853 * x86-64-tdep.c (x86_64_init_abi): Update.
8854 * v850-tdep.c (v850_gdbarch_init): Update.
8855 * sparc-tdep.c (sparc_gdbarch_init): Update.
8856 * sh-tdep.c (sh_gdbarch_init): Update.
8857 * s390-tdep.c (s390_gdbarch_init): Update.
8858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8859 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8861 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8862 * mips-tdep.c (mips_gdbarch_init): Update.
8863 * mcore-tdep.c (mcore_gdbarch_init): Update.
8864 * m68k-tdep.c (m68k_gdbarch_init): Update.
8865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8866 * ia64-tdep.c (ia64_gdbarch_init): Update.
8867 * i386-tdep.c (i386_gdbarch_init): Update.
8868 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8869 * hppa-tdep.c (hppa_gdbarch_init): Update.
8870 * h8300-tdep.c (h8300_gdbarch_init): Update.
8871 * frv-tdep.c (frv_gdbarch_init): Update.
8872 * cris-tdep.c (cris_gdbarch_init): Update.
8873 * avr-tdep.c (avr_gdbarch_init): Update.
8874 * arm-tdep.c (arm_gdbarch_init): Update.
8875 * alpha-tdep.c (alpha_gdbarch_init): Update.
8876 * sh-tdep.c (sh_init_extra_frame_info): Update.
8877 (sh64_init_extra_frame_info): Update.
8878 * ns32knbsd-nat.c (frame_num_args): Update.
8879 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8880 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8881 (xstormy16_frame_chain_valid): Update.
8882 * vax-tdep.c (vax_saved_pc_after_call): Update.
8883 * v850-tdep.c (v850_frame_chain): Update.
8884 (v850_pop_frame): Update.
8885 (v850_init_extra_frame_info): Update.
8886 * sparc-tdep.c (setup_arbitrary_frame): Update.
8887 * ns32k-tdep.c (umax_frame_num_args): Update.
8888 * s390-tdep.c (s390_pop_frame_regular): Update.
8889 * mn10300-tdep.c (mn10300_frame_chain): Update.
8890 (mn10300_pop_frame_regular): Update.
8891 (mn10300_init_extra_frame_info): Update.
8892 * mips-tdep.c (mips_init_frame_pc_first): Update.
8893 (mips_frame_chain): Update.
8894 (mips_pop_frame): Update.
8895 * mcore-tdep.c (mcore_frame_chain): Update.
8896 (mcore_pop_frame): Update.
8897 (mcore_init_extra_frame_info): Update.
8898 * arch-utils.c (init_frame_pc_default): Update.
8899 * m68k-tdep.c (isi_frame_num_args): Update.
8900 (delta68_frame_num_args): Update.
8901 (news_frame_num_args): Update.
8902 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8903 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8904 (alpha_frame_chain): Update.
8905 (alpha_pop_frame): Update.
8906 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8907 (hppa_init_extra_frame_info): Update.
8908 (hppa_frame_chain): Update.
8909 (hppa_frame_chain_valid): Update.
8910 * cris-tdep.c (cris_init_extra_frame_info): Update.
8911 * avr-tdep.c (avr_init_extra_frame_info): Update.
8912 * arm-tdep.c (arm_frame_chain_valid): Update.
8913 (arm_init_extra_frame_info): Update.
8914 (arm_pop_frame): Update.
8915 * frame.c (frame_pc_unwind): Update.
8916 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8917 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8918 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8919 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8920 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8921 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8923 2003-03-12 Andrew Cagney <cagney@redhat.com>
8925 Eliminate the need for POP_FRAME.
8926 * frame.c (do_frame_unwind_register): New function.
8927 (frame_pop): When no POP_FRAME, pop the frame using register
8928 unwind and a scratch regcache.
8929 (frame_saved_regs_pop): Delete function.
8930 (trad_frame_unwinder): Update.
8931 * d10v-tdep.c (d10v_frame_pop): Delete function.
8932 (d10v_frame_unwind): Update.
8933 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8934 (sentinel_frame_unwinder): Update.
8935 * dummy-frame.c (dummy_frame_pop): Delete function.
8936 (dummy_frame_unwind): Update.
8937 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8938 (struct frame_unwind): Update.
8940 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8942 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8943 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8944 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8945 Do range checks on register number obtained from debugging info.
8946 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8947 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8948 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8950 (do_fp_register_row): Fix typo which caused double type to be
8951 used when attempting to unpack a float.
8953 2003-03-11 J. Brobecker <brobecker@gnat.com>
8955 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8957 2003-03-11 Andrew Cagney <cagney@redhat.com>
8959 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8960 frame. Problem found by Corinna Vinschen.
8962 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8964 * doublest.c (floatformat_from_length): Accept also
8965 the real size of 'long double' type.
8967 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8969 From Klee Dienes <kdienes@apple.com>:
8970 * breakpoint.c (bpstat_copy): Copy the command lines as well
8971 as the old value, to match what is freed in bpstat_clear.
8973 2003-03-10 David Carlton <carlton@math.stanford.edu>
8975 * minsyms.c (add_minsym_to_hash_table): Replace
8976 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8977 (compare_minimal_symbols, compact_minimal_symbols)
8978 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8979 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8980 of DEPRECATED_SYMBOL_MATCHES_NAME.
8981 (lookup_minimal_symbol_solib_trampoline): Ditto.
8983 2003-03-10 Andrew Cagney <cagney@redhat.com>
8985 * regcache.h (regcache_cooked_read_ftype): Define.
8986 (regcache_save, regcache_restore): Add a cooked_read parameter.
8987 * regcache.c (regcache_save, regcache_restore): Update.
8988 (do_cooked_read): New function.
8989 (regcache_cpy): Pass do_cooked_read to regcache_save and
8992 2003-03-10 Andrew Cagney <cagney@redhat.com>
8994 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8995 * gdbarch.h, gdbarch.c: Re-generate.
8996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8997 * x86-64-tdep.h: Update.
8998 * x86-64-tdep.c (x86_64_init_abi): Update.
8999 * v850-tdep.c (v850_gdbarch_init): Update.
9000 * sparc-tdep.c (sparc_gdbarch_init): Update.
9001 * sh-tdep.c (sh_gdbarch_init): Update.
9002 * s390-tdep.c (s390_gdbarch_init): Update.
9003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9004 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9005 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9006 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9007 * mips-tdep.c (mips_gdbarch_init): Update.
9008 * mcore-tdep.c (mcore_gdbarch_init): Update.
9009 * m68k-tdep.c (m68k_gdbarch_init): Update.
9010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9011 * ia64-tdep.c (ia64_gdbarch_init): Update.
9012 * i386-tdep.c (i386_gdbarch_init): Update.
9013 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9014 * hppa-tdep.c (hppa_gdbarch_init): Update.
9015 * h8300-tdep.c (h8300_gdbarch_init): Update.
9016 * frv-tdep.c (frv_gdbarch_init): Update.
9017 * cris-tdep.c (cris_gdbarch_init): Update.
9018 * avr-tdep.c (avr_gdbarch_init): Update.
9019 * arm-tdep.c (arm_gdbarch_init): Update.
9020 * alpha-tdep.c (alpha_gdbarch_init): Update.
9021 * sh-tdep.c (sh_init_extra_frame_info): Update.
9022 (sh64_init_extra_frame_info): Update.
9023 * ns32knbsd-nat.c (frame_num_args): Update.
9024 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9025 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9026 (xstormy16_frame_chain_valid): Update.
9027 * vax-tdep.c (vax_saved_pc_after_call): Update.
9028 * v850-tdep.c (v850_frame_chain): Update.
9029 (v850_pop_frame): Update.
9030 (v850_init_extra_frame_info): Update.
9031 * sparc-tdep.c (setup_arbitrary_frame): Update.
9032 * ns32k-tdep.c (umax_frame_num_args): Update.
9033 * s390-tdep.c (s390_pop_frame_regular): Update.
9034 * mn10300-tdep.c (mn10300_frame_chain): Update.
9035 (mn10300_pop_frame_regular): Update.
9036 (mn10300_init_extra_frame_info): Update.
9037 * mips-tdep.c (mips_init_frame_pc_first): Update.
9038 (mips_frame_chain): Update.
9039 (mips_pop_frame): Update.
9040 * mcore-tdep.c (mcore_frame_chain): Update.
9041 (mcore_pop_frame): Update.
9042 (mcore_init_extra_frame_info): Update.
9043 * arch-utils.c (init_frame_pc_default): Update.
9044 * m68k-tdep.c (isi_frame_num_args): Update.
9045 (delta68_frame_num_args): Update.
9046 (news_frame_num_args): Update.
9047 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9048 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9049 (alpha_frame_chain): Update.
9050 (alpha_pop_frame): Update.
9051 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9052 (hppa_init_extra_frame_info): Update.
9053 (hppa_frame_chain): Update.
9054 (hppa_frame_chain_valid): Update.
9055 * cris-tdep.c (cris_init_extra_frame_info): Update.
9056 * avr-tdep.c (avr_init_extra_frame_info): Update.
9057 * arm-tdep.c (arm_frame_chain_valid): Update.
9058 (arm_init_extra_frame_info): Update.
9059 (arm_pop_frame): Update.
9060 * frame.c (frame_pc_unwind): Update.
9061 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9062 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9063 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9064 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9065 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9066 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9068 2003-03-10 Andrew Cagney <cagney@redhat.com>
9070 * gdbarch.sh (gdbarch_unwind_pc): New method.
9071 * gdbarch.h, gdbarch.c: Regenerate.
9072 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9073 but use read_pc and FRAME_SAVED_PC as fall backs.
9074 (frame_saved_regs_pc_unwind): Delete function.
9075 (trad_frame_unwinder): Update.
9076 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9077 (struct frame_unwind): Update.
9078 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9079 (dummy_frame_unwind): Update.
9080 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9081 (sentinel_frame_unwinder): Update.
9082 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9083 (d10v_frame_unwind): Update.
9084 (d10v_unwind_pc): New function.
9085 (d10v_gdbarch_init): Set unwind_pc.
9087 2003-03-10 Andrew Cagney <cagney@redhat.com>
9089 * gdbarch.h: Re-generate.
9091 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9093 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9096 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9098 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9100 2003-03-08 Andrew Cagney <cagney@redhat.com>
9102 * cli-out.c: Update copyright.
9103 (cli_out_data): Define typedef. Use instead of ui_out_data.
9105 2003-03-08 Andrew Cagney <cagney@redhat.com>
9107 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9110 2003-03-07 Andrew Cagney <cagney@redhat.com>
9112 * gdbarch.sh: Don't generate two macro definitions when an
9113 undefined macro taking no arguments.
9114 * gdbarch.h: Regenerate.
9116 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9118 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9119 (x86_64_unwind_dummy_id): New functions.
9120 (x86_64_init_abi): Register these two new functions.
9122 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9124 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9125 (x86_64_skip_prologue): Move prologue detection to
9127 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9129 2003-03-05 Andrew Cagney <cagney@redhat.com>
9131 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9132 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9133 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9134 to use unwind_dummy_id when a dummy frame.
9135 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9137 * gdbarch.h, gdbarch.c: Regneerate.
9139 2003-03-05 Andrew Cagney <cagney@redhat.com>
9141 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9142 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9143 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9146 2003-03-05 Andrew Cagney <cagney@redhat.com>
9148 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9149 (struct d10v_unwind_cache): Delete field "frameless". Replace
9150 "next_addr" with "sp_offset". Add "r11_offset".
9151 (d10v_frame_unwind_cache): Update.
9152 (prologue_find_regs): Update. When "mv r11, sp", save the
9153 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9154 RN was saved in r11_offset.
9156 2003-03-05 Andrew Cagney <cagney@redhat.com>
9158 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9159 cached PC value in the next frame.
9161 2003-03-05 Andrew Cagney <cagney@redhat.com>
9163 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9164 "id_unwind_cache" with "id".
9165 (frame_id_unwind): Delete declaration.
9166 * frame.c (frame_id_unwind): Delete function.
9167 (get_prev_frame): Call the frame id unwind method directly. Store
9168 the returned next frame's ID value in NEXT_FRAME. Note that there
9169 is a problem with the wrong unwind ID being called with the wrong
9172 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9174 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9176 2003-03-05 James Ingham <jingham@apple.com>
9177 Daniel Jacobowitz <drow@mvista.com>
9179 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9180 (auto_cp_abi): New variable.
9181 (current_cp_abi, num_cp_abis): Make static.
9182 (CP_ABI_MAX): Define.
9183 (cp_abis): Turn into an array.
9184 (value_virtual_fn_field): Fix formatting.
9185 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9187 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9188 (list_cp_abis, _initialize_cp_abi): New functions.
9189 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9190 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9191 switch_to_cp_abi. Update prototype for register_cp_abi.
9192 * Makefile.in (cp-abi.o): Update dependencies.
9193 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9194 instead of switch_to_cp_abi.
9195 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9197 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9199 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9201 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9203 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9204 * dwarf2loc.c: Include "regcache.h".
9205 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9207 * Makefile.in (dwarf2loc.o): Update dependencies.
9209 2003-03-04 Theodore A. Roth <troth@openavr.org>
9211 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9212 number of io registers reported by remote target is not a multiple of
9215 2003-03-04 David Carlton <carlton@math.stanford.edu>
9217 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9218 (lookup_symbol_aux_psymtabs): Update call to
9219 lookup_partial_symbol.
9220 (lookup_transparent_type, find_main_psymtab)
9221 (make_symbol_overload_list): Ditto.
9223 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9225 * MAINTAINERS (Write after approval): Update my email address.
9227 2003-03-03 Andrew Cagney <cagney@redhat.com>
9229 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9230 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9231 predicate. Replace MAX_REGISTER_RAW_SIZE.
9232 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9233 MAX_REGISTER_VIRTUAL_SIZE.
9234 * regcache.c (legacy_max_register_raw_size): New function.
9235 (legacy_max_register_virtual_size): New function.
9236 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9237 (MAX_REGISTER_RAW_SIZE): Define.
9238 (legacy_max_register_raw_size): Declare.
9239 (legacy_max_register_virtual_size): Declare.
9240 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9241 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9242 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9243 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9244 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9245 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9246 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9247 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9248 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9250 * vax-tdep.c (vax_gdbarch_init): Update.
9251 * v850-tdep.c (v850_gdbarch_init): Update.
9252 * sparc-tdep.c (sparc_gdbarch_init): Update.
9253 * sh-tdep.c (sh_gdbarch_init): Update.
9254 * s390-tdep.c (s390_gdbarch_init): Update.
9255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9258 * mips-tdep.c (mips_gdbarch_init): Update.
9259 * mcore-tdep.c (mcore_gdbarch_init): Update.
9260 * m68k-tdep.c (m68k_gdbarch_init): Update.
9261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9262 * ia64-tdep.c (ia64_gdbarch_init): Update.
9263 * i386-tdep.c (i386_gdbarch_init): Update.
9264 * hppa-tdep.c (hppa_gdbarch_init): Update.
9265 * h8300-tdep.c (h8300_gdbarch_init): Update.
9266 * frv-tdep.c (frv_gdbarch_init): Update.
9267 * cris-tdep.c (cris_gdbarch_init): Update.
9268 * avr-tdep.c (avr_gdbarch_init): Update.
9269 * arm-tdep.c (arm_gdbarch_init): Update.
9270 * alpha-tdep.c (alpha_gdbarch_init): Update.
9271 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9272 max_register_raw_size or max_register_virtual_size.
9274 2003-03-03 David Carlton <carlton@math.stanford.edu>
9276 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9277 SYMBOL_MATCHES_NAME, add comment.
9278 (SYMBOL_MATCHES_NATURAL_NAME): New.
9279 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9280 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9281 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9282 * symtab.c (lookup_partial_symbol): Use
9283 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9285 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9286 SYMBOL_MATCHES_NAME.
9289 2003-03-03 David Carlton <carlton@math.stanford.edu>
9291 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9292 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9293 by regexp matching against SYMBOL_NATURAL_NAME.
9295 2003-03-03 David Carlton <carlton@math.stanford.edu>
9297 * linespec.c (find_method): Extract code into collect_methods.
9298 (collect_methods): New.
9300 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9302 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9305 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9306 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9308 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9310 * arch-utils.c (generic_register_byte): Fix to use the loop index
9311 and not regnum when summing the size of all registers up to regnum.
9313 2003-03-01 Andrew Cagney <cagney@redhat.com>
9315 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9316 FRAME_INIT_SAVED_REGS.
9317 * gdbarch.h, gdbarch.c: Regenerate.
9318 * stack.c (frame_info): Update.
9319 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9320 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9321 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9322 * ns32k-tdep.c (ns32k_pop_frame): Update.
9323 * mips-tdep.c (mips_pop_frame): Update.
9324 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9325 * ia64-tdep.c (ia64_frame_chain): Update.
9326 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9327 (ia64_frameless_function_invocation): Update.
9328 (ia64_init_extra_frame_info): Update.
9329 (ia64_pop_frame_regular): Update.
9330 * frame.h (struct frame_info): Update comment.
9331 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9332 * frame.c (frame_saved_regs_register_unwind): Update.
9333 (frame_saved_regs_register_unwind): Update.
9334 (deprecated_generic_get_saved_register): Update.
9335 * cris-tdep.c: Update comment.
9336 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9338 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9339 * x86-64-tdep.c (x86_64_init_abi): Update.
9340 * vax-tdep.c (vax_gdbarch_init): Update.
9341 * v850-tdep.c (v850_gdbarch_init): Update.
9342 * sparc-tdep.c (sparc_gdbarch_init): Update.
9343 * sh-tdep.c (sh_gdbarch_init): Update.
9344 * s390-tdep.c (s390_gdbarch_init): Update.
9345 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9346 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9348 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9349 * mips-tdep.c (mips_gdbarch_init): Update.
9350 * mcore-tdep.c (mcore_gdbarch_init): Update.
9351 * m68k-tdep.c (m68k_gdbarch_init): Update.
9352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9353 * ia64-tdep.c (ia64_gdbarch_init): Update.
9354 * i386-tdep.c (i386_gdbarch_init): Update.
9355 * frv-tdep.c (frv_gdbarch_init): Update.
9356 * avr-tdep.c (avr_gdbarch_init): Update.
9357 * arm-tdep.c (arm_gdbarch_init): Update.
9358 * alpha-tdep.c (alpha_gdbarch_init): Update.
9360 2003-03-01 Andrew Cagney <cagney@redhat.com>
9362 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9363 option enum and switch. When no windows, set the interpreter to
9366 2003-03-01 Andrew Cagney <cagney@redhat.com>
9368 * main.c (captured_main): Replace magic option characters with an
9371 2003-03-01 Andrew Cagney <cagney@redhat.com>
9373 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9374 INIT_EXTRA_FRAME_INFO.
9375 * gdbarch.h, gdbarch.c: Regenerate.
9376 * arm-tdep.c: Update comments.
9377 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9378 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9379 * frame.h, avr-tdep.c: Ditto.
9380 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9381 (create_new_frame, legacy_get_prev_frame): Ditto.
9382 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9383 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9385 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9386 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9387 * v850-tdep.c (v850_gdbarch_init): Ditto.
9388 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9389 * sh-tdep.c (sh_gdbarch_init): Ditto.
9390 * s390-tdep.c (s390_gdbarch_init): Ditto.
9391 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9393 * mips-tdep.c (mips_gdbarch_init): Ditto.
9394 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9396 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9397 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9398 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9399 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9400 * frv-tdep.c (frv_gdbarch_init): Ditto.
9401 * cris-tdep.c (cris_gdbarch_init): Ditto.
9402 * avr-tdep.c (avr_gdbarch_init): Ditto.
9403 * arm-tdep.c (arm_gdbarch_init): Ditto.
9404 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9405 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9407 2003-03-01 Andrew Cagney <cagney@redhat.com>
9409 * gdbarch.sh (register_type): New function with predicate.
9410 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9411 * gdbarch.h, gdbarch.c: Re-generate.
9412 * arch-utils.c (generic_register_byte): Use generic_register_size.
9413 (generic_register_size): When available, use
9414 gdbarch_register_type.
9415 * regcache.c (init_regcache_descr): When available, initialize the
9416 register type array using gdbarch_register_type. If the
9417 architecture supplies gdbarch_register_type, do not use the legacy
9419 * d10v-tdep.c (d10v_register_type): Replace
9420 d10v_register_virtual_type.
9421 (d10v_gdbarch_init): Set register_type instead of
9422 register_virtual_type.
9424 2003-03-01 Andrew Cagney <cagney@redhat.com>
9426 * Makefile.in (ax-gdb.o): Update dependencies.
9427 * ax-gdb.c: Include "regcache.h".
9428 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9429 * findvar.c (value_of_register): Ditto.
9430 * infcmd.c (default_print_registers_info): Ditto.
9432 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9434 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9435 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9437 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9439 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9442 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9444 * Makefile.in (dwarf2loc.o): Update dependencies.
9445 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9446 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9447 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9448 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9449 (locexpr_tracepoint_var_ref): New function.
9450 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9452 2003-02-28 Andrew Cagney <cagney@redhat.com>
9454 * regcache.c (register_size): New function.
9455 * regcache.h (register_size): Declare
9456 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9457 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9459 2003-02-28 David Carlton <carlton@math.stanford.edu>
9461 * linespec.c (decode_compound): Extract code into find_method.
9464 2003-02-28 J. Brobecker <brobecker@gnat.com>
9466 * Makefile.in: Add rules to build and link in observer.o.
9468 2003-02-27 J. Brobecker <brobecker@gnat.com>
9470 * observer.c: Minor comments edits.
9472 2003-02-27 J. Brobecker <brobecker@gnat.com>
9474 * observer.h, observer.c: New file.
9476 2003-02-27 Andrew Cagney <cagney@redhat.com>
9478 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9480 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9482 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9483 (M6812_OP_STS_EXT): Likewise.
9484 (m6811_prologue): Use the above to recognize prologue.
9485 (m6812_prologue): Likewise.
9487 2003-02-27 David Carlton <carlton@math.stanford.edu>
9489 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9491 (compare_psymbols): Ditto.
9492 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9494 2003-02-27 Michael Snyder <msnyder@redhat.com>
9496 * f-lang.c (build_fortran_types): New function.
9497 (_initialize_f_language): Gdbarch-register built-in fortran types.
9498 * doublest.c (extract_floating): Fix warning text.
9500 2003-02-27 Andrew Cagney <cagney@redhat.com>
9502 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9503 predicate. Replaces PUSH_DUMMY_FRAME.
9504 * gdbarch.h, gdbarch.c: Regnerate.
9505 * valops.c (hand_function_call): Update. Call
9506 generic_push_dummy_frame directly.
9507 * vax-tdep.c (vax_gdbarch_init): Update.
9508 * sparc-tdep.c (sparc_gdbarch_init): Update.
9509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9510 * m68k-tdep.c (m68k_gdbarch_init): Update.
9511 * hppa-tdep.c (hppa_gdbarch_init): Update.
9512 * alpha-tdep.c (alpha_gdbarch_init): Update.
9513 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9514 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9515 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9517 push_dummy_frame to generic_push_dummy_frame.
9518 * v850-tdep.c (v850_gdbarch_init): Ditto.
9519 * sh-tdep.c (sh_gdbarch_init): Ditto.
9520 * s390-tdep.c (s390_gdbarch_init): Ditto.
9521 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9522 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9523 * mips-tdep.c (mips_gdbarch_init): Ditto.
9524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9526 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9527 * i386-tdep.c (i386_gdbarch_init): Ditto.
9528 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9529 * frv-tdep.c (frv_gdbarch_init): Ditto.
9530 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9531 * cris-tdep.c (cris_gdbarch_init): Ditto.
9532 * avr-tdep.c (avr_gdbarch_init): Ditto.
9533 * arm-tdep.c (arm_gdbarch_init): Ditto.
9535 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9537 * mips-tdep.c (show_mips_abi): New function.
9538 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9539 command ``show mips abi''.
9541 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9543 From Elena Zannoni <ezannoni@redhat.com>
9544 * dbxread.c (process_one_symbol): Only record line 0 if one or
9545 more sline entries have been seen for the function.
9547 2003-02-26 Michael Chastain <mec@shout.net>
9549 * configure: Regenerate with autoconf 000227.
9551 2003-02-26 Michael Chastain <mec@shout.net>
9554 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9555 for old libc5/glibc.
9556 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9558 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9560 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9561 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9563 2003-02-26 Michael Chastain <mec@shout.net>
9565 * configure.in: New variable HAVE_UINTPTR_T.
9566 * configure, config.in: Regenerated.
9568 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9571 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9573 2003-02-25 Andrew Cagney <cagney@redhat.com>
9575 * frame.c (get_prev_frame): Add comment on check for
9576 inside_entry_func. Only check for inside_entry_file when not a
9577 dummy and not a sentinel. Check that the new frame is not inner
9580 2003-02-25 Andrew Cagney <cagney@redhat.com>
9582 * frame.c (frame_debug): New variable.
9583 (_initialize_frame): Add "set/show debug frame" command.
9584 (get_prev_frame): When frame_debug, print reason why unwind
9587 2003-02-25 Michael Chastain <mec@shout.net>
9589 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9590 to avoid uintptr_t definition problems.
9592 2003-02-25 David Carlton <carlton@math.stanford.edu>
9594 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9595 (SYMBOL_LINKAGE_NAME): Ditto.
9596 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9597 SYMBOL_LINKAGE_NAME.
9598 (struct general_symbol_info): Expand comment.
9599 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9600 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9601 (SYMBOL_MATCHES_REGEXP): Ditto.
9602 * symtab.c (symbol_natural_name): New function.
9603 * objfiles.h: Replace all uses of SYMBOL_NAME by
9604 DEPRECATED_SYMBOL_NAME.
9605 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9606 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9607 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9608 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9609 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9610 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9611 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9612 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9613 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9614 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9616 * ada-exp.y: Update copyright.
9617 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9618 * cp-valprint.c: Ditto.
9620 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9622 * infptrace.c (detach): Do not flag error if ptrace detach fails
9623 and errno is set to ESRCH.
9625 2003-02-24 Andrew Cagney <cagney@redhat.com>
9627 * infptrace.c (udot_info): Change type of udot_off to long. Use
9628 paddr when printing udot_off's value.
9630 2003-02-24 David Carlton <carlton@math.stanford.edu>
9632 * symtab.c (make_symbol_overload_list): Only read in partial
9633 symtabs containing a matching partial symbol.
9635 2003-02-24 David Carlton <carlton@math.stanford.edu>
9637 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9638 do the comparison, not strcmp.
9639 * symfile.c (compare_psymbols): Ditto.
9640 * defs.h: Declare strcmp_iw_ordered.
9641 * utils.c (strcmp_iw_ordered): New function.
9643 2003-02-24 Jim Blandy <jimb@redhat.com>
9645 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9646 support, shared libs): Remove my name from here, to better reflect
9649 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9651 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9652 (target_ops): Add to_have_continuable_watchpoint.
9653 * target.c (update_current_target): Add INHERIT line for
9654 to_have_continuable_watchpoint.
9655 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9656 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9657 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9658 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9660 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9662 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9665 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9667 * solib.c (solib_open): Call target defined search function after
9668 failing with solib-search-path.
9669 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9670 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9672 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9674 * MAINTAINERS: Add myself to Write After section.
9676 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9678 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9680 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9682 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9683 (m68hc11_add_reggroups): New function.
9684 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9685 (m68hc11_gdbarch_init): Install the reggroups.
9686 (_initialize_m68hc11_tdep): Initialize them.
9688 2003-02-21 James E Wilson <wilson@tuliptree.org>
9690 * MAINTAINERS: Update my email address.
9692 2003-02-21 David Carlton <carlton@math.stanford.edu>
9694 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9696 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9698 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9699 * symtab.h: Add opaque declarations of struct axs_value and
9701 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9702 (struct location_funcs): New type.
9703 (struct symbol): Add "loc" to aux_value.
9704 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9705 * dwarf2read.c: Include "dwarf2expr.h".
9706 (dwarf2_symbol_mark_computed): New function.
9707 (read_func_scope): Use it.
9708 (var_decode_location): New function.
9709 (new_symbol): Use it.
9710 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9712 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9713 (dwarf2expr_h, dwarf2loc_h): New variables.
9714 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9715 (dwarf2expr.o, dwarf2loc.o): New rules.
9716 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9717 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9719 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9720 * m2-exp.y (yylex): Likewise.
9721 * printcmd.c (address_info, print_frame_args): Likewise.
9722 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9723 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9724 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9725 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9726 * symtab.c (lookup_block_symbol): Likewise.
9728 2003-02-20 Adam Fedor <fedor@gnu.org>
9730 * symtab.h: Remove objc_specific struct
9731 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9732 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9733 Have language_objc use cplus_specific struct.
9735 2003-02-20 Tom Tromey <tromey@redhat.com>
9737 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9738 TYPE_NAME, when printing a String value. PR java/1075.
9740 2003-02-20 Adam Fedor <fedor@gnu.org>
9742 * objc-lang.h (find_methods): Remove declaration.
9743 * objc-lang.c (find_methods): Make static.
9745 2003-02-20 Christopher Faylor <cgf@redhat.com>
9747 * win32-nat.c (get_image_name): Check return value from
9749 (child_xfer_memory): Ditto.
9751 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9753 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9754 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9755 '${exec_prefix}' (in addition to the expansion thereof) as
9757 * configure: Rebuilt.
9759 2003-02-20 David Carlton <carlton@math.stanford.edu>
9761 * symtab.c (search_symbols): Revert the search_symbols part of my
9762 2002-12-23 patch. Add comment.
9764 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9766 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9767 * dbxread.c (elfstab_build_psymtabs): Don't call
9768 install_minimal_symbols.
9769 (stabsect_build_psymtabs): Likewise.
9770 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9772 * somread.c (som_symfile_read): Call install_minimal_symbols
9773 and do_cleanups earlier.
9774 * nlmread.c (nlm_symfile_read): Likewise.
9775 * mdebugread.c (elfmdebug_build_psymtabs): Call
9776 install_minimal_symbols and make appropriate cleanups.
9778 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9780 * solib.c (reload_shared_libraries): New function.
9781 (_initialize_solib): Add callbacks for ``set solib-search-path''
9782 and ``set solib-absolute-prefix''.
9784 2003-02-20 David Carlton <carlton@math.stanford.edu>
9786 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9788 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9789 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9790 * ada-typeprint.c (ada_typedef_print): Ditto.
9791 * ax-gdb.c (gen_var_ref): Ditto.
9792 * breakpoint.c (print_one_breakpoint): Ditto.
9793 * buildsym.c (finish_block): Ditto.
9794 * c-valprint.c (c_val_print): Ditto.
9795 * expprint.c (print_subexp): Ditto.
9796 * findvar.c (locate_var_value): Ditto.
9797 * infcmd.c (jump_command): Ditto.
9798 * linespec.c (decode_line_2, decode_compound): Ditto.
9799 * maint.c (maintenance_translate_address): Ditto.
9800 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9801 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9803 * p-valprint.c (pascal_val_print): Ditto.
9804 * stabsread.c (define_symbol): Ditto.
9805 * stack.c (print_frame, frame_info, print_block_frame_locals)
9806 (print_frame_arg_vars, return_command): Ditto.
9807 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9808 * symmisc.c (print_symbol): Ditto.
9809 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9810 (compare_search_syms, print_symbol_info, print_msymbol_info)
9811 (rbreak_command): Ditto.
9812 * tracepoint.c (tracepoints_info): Ditto.
9813 * typeprint.c (typedef_print): Ditto.
9814 * valops.c (value_of_variable, hand_function_call): Ditto.
9815 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9816 * ada-typeprint.c: Update Copyright.
9817 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9818 * tracepoint.c, cli/cli-cmds.c: Ditto.
9820 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9822 * frame.c (generic_unwind_get_saved_register): Make non-static.
9823 * frame.h (generic_unwind_get_saved_register): Declare.
9824 * mips-tdep.c (read_next_frame_reg): Fetch register from
9825 current regcache when frame is NULL.
9826 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9828 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9829 instead of frame_register_unwind().
9831 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9833 * remote-sim.c (gdbsim_insert_breakpoint)
9834 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9837 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9839 * remote.c (_initialize_remote): Add commands "set/show remote
9840 hardware-watchpoint-limit" and "set/show remote
9841 hardware-breakpoint-limit".
9842 (remote_hw_watchpoint_limit): Initialize to -1.
9843 (remote_hw_breakpoint_limit): Ditto.
9844 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9846 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9848 * coff-pe-read.c: New file - support reading of minimal symbols from a
9849 portable executable using the export table.
9850 * coff-pe-read.h: New file.
9851 * coffread.c: Include coff-pe-read.h.
9852 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9853 debugging symbols found.
9854 * Makefile.in (SFILES): Add coff-pe-read.o.
9855 (coff_pe_read_h): Define.
9856 (COMMON_OBS): Add coff-pe-read.o.
9857 (coffread.o): Add coff_pe_read_h dependency.
9858 (coff-pe-read.o): New target.
9860 2003-02-19 David Carlton <carlton@math.stanford.edu>
9862 * Makefile.in (SFILES): Add block.c.
9864 (COMMON_OBS): Add block.o.
9866 (x86-64-tdep.o): Add $(block_h).
9867 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9868 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9869 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9870 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9871 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9872 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9873 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9874 * value.h: Add opaque declaration for struct block.
9875 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9876 * ada-lang.h: Ditto.
9877 * x86-64-tdep.c: #include "block.h"
9878 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9879 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9880 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9881 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9882 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9883 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9884 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9885 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9886 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9887 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9888 * symtab.c (block_function): Ditto.
9889 (contained_in): Ditto.
9890 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9891 block.h. Add opaque declaration for struct block.
9892 * symtab.h: Move block_function and contained_in declarations to
9893 block.h. Add opaque declarations for struct block, struct
9895 (struct block): Move to block.h.
9896 (struct blockvector): Ditto.
9897 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9898 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9899 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9900 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9901 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9903 * block.c: New file.
9904 * block.h: New file.
9906 2003-02-19 Theodore A. Roth <troth@openavr.org>
9908 * avr-tdep.c (avr_extract_return_value): Remove function.
9909 (avr_store_return_value): Remove function.
9910 (avr_extract_struct_value_address): Remove function.
9911 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9913 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9915 * rs6000-tdep.c: Include "gdb_assert.h".
9916 (registers_e500): Add "acc" and "spefscr".
9917 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9918 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9919 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9921 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9923 2003-02-18 Keith Seitz <keiths@redhat.com>
9925 * Makefile.in: Add gdbtk-interps.c.
9927 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9929 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9930 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9932 2003-02-18 Andrew Cagney <cagney@redhat.com>
9934 * symtab.h (struct objfile): Add opaque declaration.
9936 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9938 From Jim Ingham <jingham@apple.com>:
9939 * dbxread.c (process_one_symbol): Use last_function_start rather
9940 than function_start_offset to find the real beginning of the
9941 current function. The latter is just the text section offset on
9942 some systems, the former is always the real function start.
9944 2003-02-17 Andrew Cagney <cagney@redhat.com>
9946 * configure.in: Revert ${target} != ${host}.
9948 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9950 * configure.in (Makefile): Use the test ${target} != ${host},
9951 instead of the absence of the "nm.h" file, to determine of the
9952 configuration non-native.
9953 * configure: Regenerate.
9955 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9957 From Brian Ford <ford@vss.fsi.com>
9959 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9960 conditionalize tui_active test.
9961 (lookup_cmd_1): Ditto.
9963 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9965 * configure.in: Add check for _etext.
9966 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9968 * config.in, configure: regenerated.
9970 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9972 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9974 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9976 * main.c (tui_version): Delete variable.
9977 (captured_main): When --tui, set interpreter_p to "tui" instead of
9978 enabling tui_version.
9979 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9981 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9982 * cli/cli-cmds.c (disassemble_command): Ditto.
9983 * defs.h (tui_version): Delete declaration.
9984 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9985 (tui-interp.o): Add rules.
9986 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9988 2003-02-14 Christopher Faylor <cgf@redhat.com>
9990 * win32-nat.c (register_loaded_dll): Correctly set address range for
9993 2003-02-12 Jason Molenda (jmolenda@apple.com)
9995 * symmisc.c (print_objfile_statistics): Include information about
9996 the number of psymtabs and symtabs in each object file.
9998 2003-02-13 Keith R Seitz <keiths@redhat.com>
10000 * main.h (struct captured_main_args): Add interpreter_p.
10001 * main.c (captured_main): Initialize interpreter_p from context.
10002 * gdb.c (main): Set interpreter_p argument.
10003 * Makefile.in (gdb.o): Add dependency for interps.h.
10005 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10007 * event-top.c (cli_command_loop): Delete declaration.
10008 (_initialize_event_loop): Delete function setting event_loop_hook.
10009 * event-top.h (cli_command_loop): Declare. Update copyright.
10010 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10011 * interps.c (current_interp_command_loop): When event_loop_p, call
10014 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10016 * interps.h (interp_command_loop_ftype): Change return type to
10019 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10021 * x86-64-tdep.c (x86_64_extract_return_value)
10022 (x86_64_store_return_value): Use regcache instead of regbuf.
10023 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10024 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10026 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10028 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10029 * aclocal.m4: Regenerate.
10030 * configure: Regenerate.
10032 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10033 TCL_LD_SEARCH_FLAGS.
10035 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10037 * dwarf2cfi.c: Reindented.
10039 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10041 * interps.c (clear_interpreter_hooks): Convert function definition
10044 2003-02-07 David Carlton <carlton@math.stanford.edu>
10046 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10048 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10050 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10051 (struct type): ...to here.
10052 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10054 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10055 (replace_type): Set length on all type variants for a given type.
10057 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10059 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10061 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10063 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10065 * Makefile.in (symm-nat.o): Update dependencies.
10066 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10067 (lynx-nat.o, ia64-linux-nat.): Ditto.
10068 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10069 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10070 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10072 * Makefile.in (inflow_h): Define.
10073 (procfs.o, inflow.o, procfs.o): Update dependencies.
10074 * inftarg.c (child_stop): Delete extern declaration of
10075 inferior_process_group. Include "inflow.h".
10076 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10077 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10078 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10079 (our_process_group, inferior_process_group): Extern declarations.
10081 * procfs.c: Include "gdb_assert.h".
10083 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10084 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10085 * jv-typeprint.c (java_type_print_base): Ditto.
10086 * typeprint.c (typedef_print): Eliminate STREQ.
10087 * cli/cli-script.c (define_command, define_command): Ditto.
10088 * main.c (captured_main): Ditto.
10089 * values.c (lookup_internalvar): Ditto.
10090 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10091 within `if' conditional.
10092 * linespec.c (decode_line_2): Ditto.
10093 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10094 (bfd_openw_with_cleanup): Ditto.
10096 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10098 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10099 legacy_extract_return_value and store_return_value to
10100 legacy_return_value.
10102 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10104 * win32-nat.c (get_relocated_section_addrs): New function. Find
10105 section load addresses for symbol handling in relocated DLLs.
10106 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10108 2003-02-05 Fred Fish <fnf@intrinsity.com>
10110 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10112 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10114 (angel_RDI_info): Ditto.
10115 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10117 (threads_continue_all_with_signals): Ditto.
10119 2003-02-05 Jim Ingham <jingham@apple.com>
10120 Keith Seitz <keiths@redhat.com>
10121 Elena Zannoni <ezannoni@redhat.com>
10122 Andrew Cagney <ac131313@redhat.com>
10124 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10125 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10126 (SUBDIR_MI_OBS): Add "mi-interp.o".
10127 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10128 (SFILES): Add "interps.c".
10129 (COMMON_OBS): Add "interps.o".
10130 (interps_h, mi_main_h): Define.
10131 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10132 (mi-main.o, main.o, event-top.o): Update dependencies.
10133 * cli/cli-interp.c: New file.
10134 * interps.h, interps.c: New files.
10135 * top.c: (gdb_init): Don't install the default interpreter, handed
10137 * main.c: Include "interps.h".
10138 (interpreter_p): Note that it should malloc'ed.
10139 (captured_command_loop): Call current_interp_command_loop.
10140 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10141 xfree and xstrdup when updating interpreter_p. Install the
10142 default interpreter. Add hack to stop mi1's copyright notice
10144 * event-top.h (gdb_setup_readline): Declare.
10145 (gdb_disable_readline): Declare.
10146 * event-top.c: Include "interps.h".
10147 (display_gdb_prompt): Call current_interp_display_prompt_p.
10148 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10149 gdb_stdlog, and gdb_stdtarg.
10150 (_initialize_event_loop): Don't call gdb_setup_readline.
10151 * cli-out.c (cli_out_set_stream): New function.
10152 * cli-out.h (cli_out_set_stream): Declare.
10154 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10156 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10157 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10158 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10159 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10160 config/i386/i386v42mp.mt: Removed.
10162 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10164 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10167 2003-02-05 Michael Chastain <mec@shout.net>
10169 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10170 2.12.1 and earlier versions.
10172 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10174 Remove orphaned hosts, targets and files.
10175 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10176 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10177 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10178 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10179 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10180 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10181 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10182 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10183 * config/sparc/tm-sp64sim.h: Delete.
10184 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10186 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10187 mips*-dec-mach3* targets.
10189 2003-02-04 Michael Chastain <mec@shout.net>
10191 * NEWS: Fix typo: sepcifying -> specifying.
10193 2003-02-04 Michael Chastain <mec@shout.net>
10195 * dwarfread.c: Add documentation on the state of dwarf-1,
10196 looking towards obsoletion.
10198 2003-02-03 Michael Chastain <mec@shout.net>
10200 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10201 gdb/testsuite/gdb.c++/pr-1023.exp.
10203 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10205 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10206 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10208 * utils.c (init_page_info): Delete reference to MPW in comments.
10209 * main.c (captured_main): Delete #ifdef MPW.
10211 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10213 * NEWS: Note that the m32r-*-elf* is obsolete.
10214 * monitor.c (monitor_expect): Obsolete reference to m32r.
10215 * configure.tgt: Mark m32r-*-elf* as obsolete.
10216 * MAINTAINERS: Mark m32k as obsolete.
10217 * m32r-rom.c: Obsolete file.
10218 * config/m32r/m32r.mt: Obsolete file.
10219 * config/m32r/tm-m32r.h: Obsolete file.
10220 * m32r-stub.c: Obsolete file.
10221 * m32r-tdep.c: Obsolete file.
10223 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10225 * NEWS: Mention that the z8k-zilog-none is obsolete.
10226 * MAINTAINERS: Mark z8k as obsolete.
10227 * configure.tgt: Obsolete the z8k-*-coff* target.
10228 * config/z8k/z8k.mt: Obsolete file.
10229 * config/z8k/tm-z8k.h: Obsolete file.
10230 * z8k-tdep.c: Obsolete file.
10232 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10234 * NEWS: Mention that the mn10200-elf is obsolete.
10235 * configure.tgt: Obsolete mn10200-*-* target.
10236 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10237 mention that the mn10200 is obsolete.
10238 * breakpoint.h: Ditto.
10239 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10240 * config/mn10200/mn10200.mt: Obsolete file.
10241 * config/mn10200/tm-mn10200.h: Obsolete file.
10242 * mn10200-tdep.c: Obsolete file.
10244 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10246 * MAINTAINERS: Mark h8500 as obsolete.
10247 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10248 * findvar.c (value_from_register): Ditto.
10249 * h8500-tdep.c: Mark file as obsolete.
10250 * config/h8500/h8500.mt: Ditto.
10251 * config/h8500/tm-h8500.h: Ditto.
10252 * NEWS: Mention that h8500 is obsolete.
10254 2003-02-04 David Carlton <carlton@math.stanford.edu>
10256 * objfiles.c (allocate_objfile): Always set name. Add comment at
10258 * jv-lang.c (get_dynamics_objfile): Add comment.
10260 2003-02-04 David Carlton <carlton@math.stanford.edu>
10262 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10263 * printcmd.c (build_address_symbolic): Replace uses of
10264 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10265 SYMBOL_NAME, and asm_demangle.
10268 2003-02-04 David Carlton <carlton@math.stanford.edu>
10270 * linespec.c (decode_compound): Extract code into
10272 (lookup_prefix_sym): New function.
10274 2003-02-04 David Carlton <carlton@math.stanford.edu>
10276 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10277 FLOAT_COERCION_BADNESS.
10278 * gdbtypes.c (rank_one_type): Replace all uses of
10279 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10281 2003-02-04 Jim Blandy <jimb@redhat.com>
10283 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10284 section, let dwarf_macinfo_section point to it, not
10287 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10289 Pointed out by Anton Blanchard <anton@samba.org>.
10290 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10291 (ppc_linux_at_sigtramp_return_path): Use it.
10293 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10295 * defs.h (streq): Add prototype.
10296 * utils.c (streq): New function.
10298 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10299 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10300 * mdebugread.c (new_symbol): Likewise.
10301 * stabsread.c (define_symbol): Likewise.
10302 * coffread.c (process_coff_symbol): Likewise.
10303 * dwarfread.c (new_symbol): Likewise.
10305 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10306 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10308 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10309 SYMBOL_INIT_DEMANGLED_NAME.
10310 * objfiles.c: Include "hashtab.h".
10311 (allocate_objfile): Call htab_set_functions_ex for the
10312 demangled_names_hash.
10313 (free_objfile): Call htab_delete for the demangled_names_hash.
10314 * objfiles.h (struct htab): Add declaration.
10315 (struct objfile): Add demangled_names_hash.
10316 * symfile.c: Include "hashtab.h".
10317 (reread_symbols): Call htab_delete for the demangled_names_hash.
10318 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10319 SYMBOL_NAME in the bcache.
10320 * symtab.c: Include "hashtab.h". Update comments.
10321 (create_demangled_names_hash, symbol_set_names): New functions.
10322 (symbol_find_demangled_name): New function, broken out from
10323 symbol_init_demangled_names.
10324 (symbol_init_demangled_names): Use it.
10325 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10326 (SYMBOL_SET_NAMES): New macro.
10327 (symbol_set_names): Add prototype.
10329 2003-02-03 Jim Blandy <jimb@redhat.com>
10331 Use a single, consistent representation for an empty minimal
10332 symbol table in an objfile.
10333 * objfiles.c (terminate_minimal_symbol_table): New function.
10334 (allocate_objfile): Call it.
10335 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10336 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10338 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10339 objfile has minimal symbols, compare minimal_symbol_count to zero,
10340 instead of comparing msymbols with NULL.
10341 * objfiles.c (have_minimal_symbols): Same.
10342 * solib-sunos.c (solib_add_common_symbols): Call
10343 terminate_minimal_symbol_table.
10344 * symfile.c (reread_symbols): Same.
10346 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10348 * s390-tdep.c (s390_address_class_type_flags)
10349 (s390_address_class_type_flags_to_name)
10350 (s390_address_class_name_to_type_flags): New functions.
10351 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10352 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10354 2003-02-03 Michael Snyder <msnyder@redhat.com>
10356 * arm-tdep.c: Fix spell-o in comment.
10358 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10360 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10361 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10362 error messages to contain BFD filename.
10364 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10366 Fix PR gdb/742 gdb/743 gdb/877
10367 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10368 (do_mixed_source_and_assembly): Use
10369 make_cleanup_ui_out_tuple_begin_end and
10370 make_cleanup_ui_out_tuple_begin_end.
10371 (do_mixed_source_and_assembly): Ditto.
10372 * thread.c (do_captured_list_thread_ids): Ditto.
10373 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10374 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10375 ui_out_tuple_end): Delete prototypes.
10376 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10377 ui_out_list_end, ui_out_tuple_end): Delete.
10379 From Kevin Buettner <kevinb@redhat.com>:
10380 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10381 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10382 (do_cleanup_table_end): New functions.
10383 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10384 Use cleanups to invoke_ui_out_tuple_end().
10385 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10386 * cli/cli-setshow.c (cmd_show_list): Use
10387 make_cleanup_ui_out_tuple_begin_end.
10389 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10391 * frame.c (frame_unwind_register): New function.
10392 (frame_unwind_unsigned_register): Use.
10393 (frame_unwind_signed_register): Use.
10394 (frame_read_register): New function.
10395 * frame.h (frame_unwind_register): Declare.
10396 (frame_read_register): Declare.
10398 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10399 and frame_unwind_register instead of read_memory, write_register
10400 and deprecated_write_register_bytes.
10402 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10404 * frame.h: Note that namelen can be negative.
10405 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10408 * NEWS: Mention that the d10v's `regs' command is deprecated.
10409 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10410 (d10v_print_registers_info): New function.
10411 (show_regs): Call d10v_print_registers_info.
10412 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10414 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10416 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10417 lost in the previous patch.
10419 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10421 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10422 * stack.c (print_frame_info_base): Output complete FRAME tuple
10423 for synthesized frames.
10425 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10427 * mips-nat.c (zerobuf): Delete.
10428 (fetch_inferior_registers): Alloc local zerobuf.
10429 (fetch_core_registers): Alloc local zerobuf.
10430 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10431 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10432 * thread-db.c (thread_db_store_registers): Ditto.
10433 * sh-tdep.c (sh_do_register): Ditto.
10434 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10435 * remote-sim.c (gdbsim_store_register): Ditto.
10436 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10437 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10438 * monitor.c (monitor_supply_register): Ditto.
10439 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10440 * mips-nat.c (fetch_inferior_registers): Ditto.
10441 * m68klinux-nat.c (fetch_register): Ditto.
10442 * lynx-nat.c (fetch_inferior_registers): Ditto.
10443 (fetch_inferior_registers): Ditto.
10444 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10445 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10446 (hpux_thread_store_registers): Ditto.
10447 * hppah-nat.c (fetch_register): Ditto.
10448 * hppab-nat.c (fetch_register): Ditto.
10449 * hppa-tdep.c (pa_register_look_aside): Ditto.
10450 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10451 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10453 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10455 * gdbarch.sh: Explictly specify all method levels. When a
10456 variable with an empty level, provide a non-multi-arch default.
10457 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10458 * gdbarch.h: Re-generate.
10459 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10460 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10462 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10464 * defs.h (host_pointer_to_address): Delete declaration.
10465 (address_to_host_pointer): Delete declaration.
10466 * utils.c (host_pointer_to_address): Delete function.
10467 (address_to_host_pointer): Delete function.
10468 * procfs.c (procfs_address_to_host_pointer): New function.
10469 * procfs.c (proc_set_watchpoint): Use.
10470 (procfs_can_use_hw_breakpoint): Update comments.
10471 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10472 (som_solib_add): Use.
10473 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10474 * hppa-tdep.c (unwind_command): Use.
10476 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10478 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10481 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10482 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10483 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10484 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10485 (define_symbol): Update.
10486 * symfile.c (generic_load): Remove references to nindy.
10487 * symtab.c: Remove references to nindy.
10489 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10491 * infcmd.c (print_float_info): Delete code conditional on
10493 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10494 * config/m68k/nm-apollo68b.h: Ditto.
10495 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10496 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10497 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10499 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10501 * config/i386/tm-i386os9k.h: Removed.
10503 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10504 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10505 they're identical to i[3456]86-*-sysv* now.
10506 * config/i386/i386v32.mh: Removed.
10507 * config/i386/xm-i386v32.h: Removed.
10508 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10510 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10512 * config/i386/i386dgux.mh: Removed.
10513 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10515 * configure.in: Fix typo.
10516 * configure: Regenerated.
10518 2003-01-31 David Carlton <carlton@math.stanford.edu>
10520 * dwarf2read.c (dwarf2_locate_sections): Set
10521 dwarf_ranges_section.
10523 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10525 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10526 * utils.c: Update comments documenting legitimate uses of PTR.
10528 * utils.c: Re-indent.
10530 * config/djgpp/fnchange.lst: Delete nindy files.
10531 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10532 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10533 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10534 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10535 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10536 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10537 * Makefile.in (init.c): Remove nindy references.
10538 (saber_gdb): Delete rule.
10539 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10540 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10542 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10543 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10544 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10545 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10546 nindy-share/stop.h.
10547 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10548 * saber.suppress: Delete file.
10550 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10552 * dbxread.c (stabs_data): New static variable.
10553 (fill_symbuf): Support an in-memory buffer for stabs data.
10554 (stabs_seek): New function.
10555 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10556 (read_ofile_symtab): Use stabs_seek.
10557 (elfstab_build_psymtabs): Take an asection* instead of
10558 an offset and size. Relocate the stabs data if necessary.
10559 Save the section* for dbx_psymtab_to_symtab.
10560 * dwarf2read.c: Add section variables for each debug section.
10561 (dwarf2_locate_sections): Fill them in.
10562 (dwarf2_read_section): Take an asection* argument.
10563 Relocate the section contents if necessary.
10564 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10565 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10566 it to dwarf2_read_section.
10567 (dwarf2_build_frame_info): Update callers.
10568 * elfread.c (elf_symfile_read): Update call to
10569 elfstab_build_psymtabs.
10570 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10571 (DBX_STAB_SECTION): New macro.
10572 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10573 * symfile.c (symfile_dummy_outputs): New function.
10574 (symfile_relocate_debug_section): New function.
10575 * symfile.h (symfile_relocate_debug_section): Add prototype.
10577 2003-01-31 Richard Henderson <rth@redhat.com>
10579 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10580 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10581 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10582 * alpha-tdep.c (alpha_register_name): Add "unique".
10583 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10584 (ALPHA_UNIQUE_REGNUM): New.
10585 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10587 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10589 * README: Remove reference to Ericsson 1800 monitor.
10590 * Makefile.in (remote-es.o): Delete rule.
10591 (ALLDEPFILES): Delete remote-es.c.
10592 * remote-es.c: Delete file.
10593 * config/m68k/es1800.mt: Delete file.
10594 * config/djgpp/fnchange.lst: Update.
10595 * configure.tgt: Delete m68*-ericsson-* target.
10597 2003-01-31 Adam Fedor <fedor@gnu.org>
10599 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10600 Remove duplicate/shadowing variable of same name.
10602 2003-01-30 Jim Blandy <jimb@redhat.com>
10604 * symfile.c (find_separate_debug_file): Assert that the objfile's
10605 directory name we compute ends with a slash, and then assume that
10606 that's so everywhere we use it.
10608 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10610 * valops.c (value_assign): Flush frame cache after stores to memory
10613 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10615 * Makefile.in (mon960-rom.o): Delete rule.
10616 * mon960-rom.c: Delete file.
10618 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10620 * d10v-tdep.c: Include "frame-unwind.h".
10621 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10623 (next_addr, uses_frame): Delete.
10624 (struct d10v_unwind_cache): Define.
10625 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10626 Use info instead of next_addr and uses_frame globals.
10627 (d10v_frame_init_saved_regs): Delete function.
10628 (d10v_init_extra_frame_info): Delete function.
10629 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10630 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10631 init_frame_pc or frame_saved_pc.
10632 (d10v_pop_frame): Delete function.
10633 (do_d10v_pop_frame): Delete function.
10634 (d10v_frame_chain): Delete function.
10635 (d10v_frame_chain_valid): Delete function.
10636 (d10v_frame_pc_unwind): New function.
10637 (d10v_frame_id_unwind): New function.
10638 (saved_regs_unwinder): New function.
10639 (d10v_frame_register_unwind): New function.
10640 (d10v_frame_pop): New function.
10641 (d10v_frame_unwind): New variable.
10642 (d10v_frame_p): New function.
10643 (d10v_frame_saved_pc): Delete function.
10644 * Makefile.in (d10v-tdep.o): Update dependencies.
10646 2003-01-30 J. Brobecker <brobecker@gnat.com>
10648 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10649 causing some regressions due to a change in the default value
10652 2003-01-29 Richard Henderson <rth@redhat.com>
10653 Elena Zannoni <ezannoni@redhat.com>
10654 Daniel Jacobowitz <drow@mvista.com>
10657 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10659 (RANGES_SECTION): New.
10660 (dwarf_ranges_buffer): New variable.
10661 (struct comp_unit_head): Add member "die".
10662 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10663 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10664 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10665 (dwarf2_locate_sections): Likewise.
10666 (dwarf2_build_psymtabs): Read .debug_ranges.
10667 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10668 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10669 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10670 Look for DW_AT_ranges and return the bounding box.
10672 2003-01-29 Brian Ford <ford@vss.fsi.com>
10674 * win32-nat.c (cygwin_pid): Removed as unused.
10675 (child_attach): Try fall back to Cygwin pid.
10677 2003-01-29 Jim Blandy <jimb@redhat.com>
10679 * objfiles.h (struct objfile): Doc fix.
10681 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10683 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10684 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10685 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10686 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10687 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10688 (FRAME_SAVED_PC): Change to a function with predicate.
10689 * gdbarch.h, gdbarch.c: Re-generate.
10691 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10693 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10695 * complaints.c (complain): Delete function.
10696 * complaints.h (struct deprecated_complaint): Delete definition.
10697 (complain): Delete declaration.
10699 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10701 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10704 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10706 * sentinel-frame.h, sentinel-frame.c: New files.
10707 * Makefile.in (frame.o): Update dependencies.
10708 (SFILES): Add sentinel-frame.c.
10709 (sentinel_frame_h): Define.
10710 (COMMON_OBS): Add sentinel-frame.o.
10711 (sentinel-frame.o): Specify dependencies.
10712 * frame.c: Include "sentinel-frame.h".
10713 (frame_register_unwind): Rewrite assuming that there is always a a
10715 (frame_register, generic_unwind_get_saved_register): Ditto.
10716 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10717 (create_sentinel_frame, unwind_to_current_frame): New functions.
10718 (get_current_frame): Rewrite using create_sentinel_frame and
10719 unwind_to_current_frame. When possible, always create a frame.
10720 (create_new_frame): Set next to the sentinel frame.
10721 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10722 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10723 ID cache when necessary.
10724 (frame_saved_regs_id_unwind): Use frame_relative_level.
10725 (deprecated_generic_get_saved_register): Use frame_relative_level,
10726 get_frame_saved_regs, get_frame_pc, get_frame_base and
10728 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10731 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10733 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10735 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10737 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10738 (maintenance_set_profile_cmd): Use error () instead of warning ().
10740 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10742 * configure.in: Check that -pg works if using --enable-profiling.
10743 Check for monstartup and _mcleanup regardless of --enable-profiling.
10744 * maint.c: Check for monstartup and _mcleanup before using them.
10745 * config.in: Regenerated.
10746 * configure: Regenerated.
10748 2003-01-24 Nick Clifton <nickc@redhat.com>
10750 * Add sh2e support:
10752 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10754 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10755 (sh2e_show_regs): New.
10756 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10757 * config/sh/tm-sh.h: Added sh2e to comments.
10759 2003-01-23 Jim Blandy <jimb@redhat.com>
10761 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10762 symbols found)" message here; we haven't checked for a separate
10763 debug info file yet, so we don't know yet.
10764 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10765 we've looked everywhere. Also, there's no need to print a special
10766 message when we're loading the separate debug info file: the one
10767 symbol_file_add prints is fine.
10769 2003-01-23 Alexander Larsson <alexl@redhat.com>
10770 Jim Blandy <jimb@redhat.com>
10772 Add support for executables whose debug info has been separated
10773 out into a separate file, leaving only a link behind.
10774 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10775 and separate_debug_objfile_backlink.
10776 (put_objfile_before): New declaration.
10777 * symfile.c: #include "filenames.h".
10778 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10779 debug info in a separate file, read that, too. Save the addrs
10780 argument, so we can use it again to read the separated debug info;
10781 syms_from_objfile modifies the table we pass it.
10782 (reread_symbols): After re-reading an objfile, call
10783 reread_separate_symbols to refresh its separate debug info
10784 objfile, if it has one.
10785 (reread_separate_symbols, find_separate_debug_file,
10786 get_debug_link_info, separate_debug_file_exists): New functions.
10787 (debug_file_directory): New global var.
10788 (_initialize_symfile): Initialize debug_file_directory, and
10789 provide the new `set debug-file-directory' command to let the user
10791 * objfiles.c (free_objfile): If this objfile has its debug info in
10792 a separate objfile, free that one too. If this is itself a
10793 separate debug info objfile, clear our parent's backlink.
10794 (put_objfile_before): New function.
10795 * utils.c (gnu_debuglink_crc32): New function.
10796 * defs.h (gnu_debuglink_crc32): New declaration.
10797 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10798 * configure.in: Handle --with-separate-debug-dir config option.
10799 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10800 * acconfig.h (DEBUGDIR): New macro.
10801 * configure, aclocal.m4, config.in: Regenerated.
10803 2003-01-22 Jim Blandy <jimb@redhat.com>
10805 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10806 like the old symbol_file_add, but taking new arguments: you can
10807 now pass in either a `struct section_addr_info' list to say where
10808 each section is loaded, or a `struct section_offsets' table. Pass
10809 these new arguments through to syms_from_objfile as appropriate.
10810 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10811 with the appropriate quiescent values for the new arguments.
10813 * symfile.c: #include "gdb_assert.h".
10814 (syms_from_objfile): Add the ability to pass in a section offset
10815 table directly, as an alternative to the section_addr_info table.
10816 Document arguments better.
10817 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10818 * symfile.h (syms_from_objfile): Update declaration.
10819 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10821 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10823 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10825 Original patch by Tom Tromey <tromey@cygnus.com> and
10826 Jason Molenda <jmolenda@apple.com>.
10827 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10828 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10829 * NEWS: Mention profiling.
10830 * configure.in (--enable-gdbtk): Fix typo.
10831 (--enable-profiling): New. Set PROFILE_CFLAGS.
10832 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10834 (profiling_state): New variable.
10835 (mcleanup_wrapper): New function.
10836 (_initialize_maint): Remove NOTYET, fix call to
10837 add_setshow_boolean_cmd for "maint set profile".
10838 * configure: Regenerated.
10840 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10842 * Makefile.in (install-gdbtk): Install PNG images too.
10844 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10846 * exec.c (text_start): Delete global variable.
10847 (exec_file_attach): Make text_start local to the function.
10848 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10849 * valops.c (hand_function_call): Delete code that handles
10850 BEFORE_TEXT_END and AFTER_TEXT_END.
10851 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10852 of CALL_DUMMY_LOCATION.
10853 * gdbarch.c: Regenerate.
10854 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10855 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10856 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10857 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10858 (text_end): Delete extern declaration.
10860 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10862 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10863 * blockframe.c (backtrace_below_main): Move to "frame.c".
10864 (frame_chain_valid): Delete check for backtrace_below_main.
10865 (_initialize_blockframe): Delete initialization, move ``set
10866 backtrace-below-main'' command to "frame.c".
10867 (do_flush_frames_sfunc): Delete function.
10868 * frame.c: Include "command.h" and "gdbcmd.h".
10869 (frame_type_from_pc): New function.
10870 (create_new_frame): Use frame_type_from_pc.
10871 (legacy_get_prev_frame): New function.
10872 (get_prev_frame): Rewrite. When an old style frame, call
10873 legacy_get_prev_frame. Otherwize, unwind the PC first.
10874 (_initialize_frame): Add ``set backtrace-below-main'' command.
10875 * Makefile.in (frame.o): Update dependencies.
10877 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10879 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10880 DEPRECATED_REGISTERS_INFO.
10882 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10884 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10885 Maintainers'. Update `Various Maintainers'.
10887 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10889 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10890 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10891 Suppress actual parameters when `-'.
10892 * gdbarch.h, gdbarch.c: Regenerate.
10894 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10896 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10897 code handling dummy frames.
10899 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10901 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10902 (struct frame_unwind): Add field pop.
10903 * frame.h (frame_pop): Declare.
10904 * frame.c (frame_saved_regs_pop): New function.
10905 (trad_frame_unwinder): Add frame_saved_regs_pop.
10906 (frame_pop): New function.
10907 * dummy-frame.c (dummy_frame_pop): New function.
10908 (discard_innermost_dummy): New function.
10909 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10910 (dummy_frame_unwind): Add dummy_frame_pop.
10911 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10912 * valops.c (hand_function_call): Ditto.
10913 * stack.c (return_command): Ditto.
10915 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10917 * cris-tdep.c: Fix function declaration indentation.
10918 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10919 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10920 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10921 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10922 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10923 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10925 2003-01-18 Michael Chastain <mec@shout.net>
10927 * README (Unpacking and Installation -- quick overview):
10928 Warn against ".../gdb-5.3/gdb/configure".
10930 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10932 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10933 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10934 (struct frame_unwind): Declare opaque.
10935 (dummy_frame_p): Declare function.
10936 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10937 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10938 * dummy-frame.c: Include "frame-unwind.h".
10939 (dummy_frame_p): New function.
10940 (dummy_frame_unwind): New variable.
10941 * frame.c: Include "frame-unwind.h".
10942 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10943 to use the new unwind field.
10944 (set_unwind_by_pc): Delete function.
10945 (create_new_frame, get_prev_frame): Set unwind field using
10946 frame_unwind_find_by_pc.
10947 (trad_frame_unwind, trad_frame_unwinder): New variables.
10948 * frame.h (trad_frame_unwind): Declare variable.
10949 (frame_id_unwind_ftype): Delete declaration.
10950 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10951 (struct frame_unwind): Declare opaque.
10952 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10953 register_unwind with a single unwind pointer.
10954 * frame-unwind.h, frame-unwind.c: New files.
10955 * Makefile.in (SFILES): Add frame-unwind.c.
10956 (frame_unwind_h): Define.
10957 (COMMON_OBS): Add frame-unwind.o.
10958 (frame-unwind.o): Specify dependencies.
10959 (frame.o, dummy-frame.o): Update dependencies.
10961 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10963 * ada-valprint.c: Eliminate PTR.
10964 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10965 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10966 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10967 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10968 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10969 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10970 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10972 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10974 * main.c (captured_main): Don't use PTR.
10975 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10976 * gdbtypes.c (lookup_primitive_typename): Ditto.
10977 (lookup_struct_elt_type): Ditto.
10978 * f-valprint.c (info_common_command): Ditto.
10979 (list_all_visible_commons): Ditto.
10980 * jv-typeprint.c (java_type_print_base): Ditto.
10982 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10983 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10984 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10985 i386-interix-nat.c and i386-interix-tdep.c. Rename
10986 m68klinux-nat.c and m68klinux-tdep.c. Rename
10987 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10988 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10989 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10990 * main.c (captured_main): Use xfree, not free.
10992 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10994 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10995 ID back using a parameter.
10996 * frame.c (frame_id_unwind): Update call.
10997 (frame_saved_regs_id_unwind): Update.
10998 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10999 * dummy-frame.h (struct frame_id): Add opaque declaration.
11000 (dummy_frame_id_unwind): Update declaration.
11002 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11004 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11006 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11008 * MAINTAINERS (Stephen P. Smith): Updated email address.
11010 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11013 * breakpoint.c (until_break_command): Add new argument. Use it to
11014 decide whether to stop only at the current frame or not.
11015 * breakpoint.h (until_break_command): Update prototype.
11016 * infcmd.c (until_command): Add new argument to until_break_command
11018 (advance_command): New function.
11019 (_initialize_infcmd): Update help string for 'until' command.
11020 Add new 'advance' command.
11022 2003-01-14 David Carlton <carlton@math.stanford.edu>
11024 * linespec.c (decode_line_1): Normalize comments.
11025 (set_flags): Ditto.
11026 (locate_first_half): Ditto.
11027 (decode_compound): Ditto.
11028 (symtab_from_filename): Ditto.
11029 (decode_all_digits): Ditto.
11030 (decode_dollar): Ditto.
11031 (find_methods): Ditto.
11032 (find_toplevel_char): Ditto.
11034 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11036 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11037 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11038 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11039 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11040 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11041 * language.c, language.h, m32r-tdep.c: Update copyright.
11042 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11043 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11044 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11045 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11046 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11047 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11049 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11051 * stabsread.h (process_later, resolve_cfront_continuation):
11053 Update copyright years.
11054 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11055 Update copyright year.
11056 * dbxread.c(struct cont_elem): Obsolete.
11057 (process_later, process_now): Obsolete functions.
11058 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11059 Update copyright year.
11060 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11061 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11062 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11063 (parse_partial_symbols): Obsolete cfront support.
11065 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11067 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11068 read_cfront_baseclasses, read_cfront_member_functions,
11069 resolve_cfront_continuation,read_cfront_static_fields,
11070 copy_cfront_struct_fields): Obsolete functions.
11071 (define_symbol, read_one_struct_field): Obsolete cfront support.
11072 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11073 Update Copyright year.
11075 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11077 * stack.c (print_frame_info, print_stack_frame_base_stub,
11078 print_stack_frame_base, show_and_print_stack_frame_stub,
11079 show_and_print_stack_frame, print_only_stack_frame_stub,
11080 print_only_stack_frame): Delete functions.
11081 (print_stack_frame_stub): Call print_frame_info instead of
11082 print_frame_info_base.
11083 (print_frame_info_base): Rename to print_frame_info.
11084 (backtrace_command_1): Call print_frame_info, instead of
11085 print_frame_info_base.
11086 (current_frame_command): Call print_stack_frame, instead of
11087 print_only_stack_frame.
11088 (frame_command): Call print_stack_frame, instead of
11089 show_and_print_stack_frame.
11090 (up_command): Ditto.
11091 (down_command): Ditto.
11092 * frame.h (print_only_stack_frame): Delete prototype.
11093 * infrun.c (normal_stop): Call print_stack_frame, instead of
11094 show_and_print_stack_frame.
11095 * thread.c (info_threads_command): Call print_stack_frame, instead
11096 of print_only_stack_frame.
11098 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11100 * README (Graphical interface to GDB): Update URL. Point at
11103 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11106 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11108 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11111 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11113 * thread-db.c (attach_thread): Prototype.
11114 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11115 thread information (ti), and valid flags (th_valid, ti_valid).
11116 (attach_thread): Move target_pid_to_str call to after the thread
11117 is added to GDB's list. Initialize the cache.
11118 (thread_get_info_callback, thread_db_map_id2thr)
11119 (thread_db_get_info): New functions.
11120 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11121 (thread_db_store_registers, thread_db_thread_alive)
11122 (thread_db_get_thread_local_address): Use them.
11123 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11124 of calling error() for threads in unknown state.
11126 (clear_lwpid_callback): New function.
11127 (thread_db_resume): Use it to clear the cache.
11129 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11131 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11132 (resume_callback): Remove dead code.
11134 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11136 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11138 * gdbarch.h, gdbarch.c: Regenerate.
11139 * stack.c (frame_info): Only initialize the saved registers when
11140 FRAME_INIT_SAVED_REGS_P.
11141 * frame.c (frame_saved_regs_register_unwind): Assert
11142 FRAME_INIT_SAVED_REGS_P.
11143 (deprecated_generic_get_saved_register): Ditto.
11145 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11147 * source.c (openp): Squelch warning about "filename".
11149 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11151 * source.c (openp): If the file does not exist don't necessarily
11154 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11157 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11158 (integer_types_same_name_p): New function.
11159 (rank_one_type): Use it.
11160 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11162 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11164 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11166 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11167 * configure.in: Add --with-sysroot.
11168 * configure: Regenerated.
11169 * main.c (gdb_sysroot): New variable.
11170 (captured_main): Initialize gdb_sysroot.
11171 * defs.h (gdb_sysroot): New extern declaration.
11172 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11174 2003-01-12 Michael Chastain <mec@shout.net>
11176 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11178 2003-01-12 Michael Chastain <mec@shout.net>
11180 * top.c (print_gdb_version): Bump copyright year to 2003.
11182 2003-01-12 David Carlton <carlton@bactrian.org>
11184 * linespec.c (symtab_from_filename): Rename variable 's' to
11187 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11189 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11191 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11193 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11195 * d10v-tdep.c: Include "gdb_assert.h".
11196 (d10v_store_return_value): Rewrite to match current interface.
11197 (d10v_extract_struct_value_address): Ditto.
11198 (d10v_extract_return_value): Ditto.
11199 (d10v_gdbarch_init): Set store_restore_value,
11200 extract_struct_value_address and extract_return_value.
11202 2003-01-12 J. Brobecker <brobecker@gnat.com>
11204 * hpread.c (set_namestring): New procedure replacing the
11205 SET_NAMESTRING macro.
11206 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11207 by calls to set_namestring.
11209 2003-01-11 J. Brobecker <brobecker@gnat.com>
11211 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11212 a compilation warning.
11213 (hpread_process_one_debug_symbol): Likewise.
11215 2003-01-10 David Carlton <carlton@math.stanford.edu>
11217 * linespec.c (decode_line_1): Rename variable 's' to
11219 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11220 (decode_dollar): Ditto.
11221 (decode_variable): Ditto.
11222 (symbol_found): Ditto.
11224 2003-01-09 Michael Chastain <mec@shout.net>
11226 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11228 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11230 * win32-nat.c (set_process_privilege): New function.
11231 (child_attach): Call set_process_privilege() to enable the
11232 SE_DEBUG_NAME user privilege if available in process token.
11234 2003-01-10 J. Brobecker <brobecker@gnat.com>
11236 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11237 compilation error in the previous revision.
11239 2003-01-09 David Carlton <carlton@math.stanford.edu>
11241 * linespec.c: Update copyright.
11243 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11245 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11246 than inferior_ptid.
11247 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11249 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11251 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11253 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11254 (frame_saved_regs_zalloc): Update.
11255 (frame_saved_regs_register_unwind): Update.
11256 (create_new_frame): Update.
11257 (get_prev_frame): Update.
11258 (frame_extra_info_zalloc): Update.
11259 (deprecated_get_frame_saved_regs): Update.
11260 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11261 * cris-tdep.c: Update comment.
11263 * somsolib.h: Fix function indentation.
11264 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11265 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11266 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11267 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11268 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11270 * infrun.c (follow_fork): Use ISO C definition.
11271 * expprint.c (print_subexp): Use xfree instead of free.
11272 * charset.c: Include "gdb_string.h" instead of <string.h>.
11273 (register_iconv_charsets): Use ISO C definition.
11274 (host_charset, target_charset): Ditto.
11275 * Makefile.in (charset.o): Update dependencies.
11276 (mi-cmd-env.o): Update dependencies.
11278 2003-01-08 Andrew Cagney <cagney@redhat.com>
11280 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11283 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11285 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11286 build directories. Save edited gdb output in Mbuild.log. If a
11287 build fails, remove any final GDB executable.
11289 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11291 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11292 replacing hex constants with function names and stripping leading
11293 file name directory prefixes.
11295 2003-01-08 Andrew Cagney <cagney@redhat.com>
11297 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11300 2003-01-08 David Carlton <carlton@math.stanford.edu>
11302 * linespec.c (decode_line_1): Move code into decode_variable.
11303 (decode_variable): New function.
11305 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11307 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11309 2003-01-08 Andrew Cagney <cagney@redhat.com>
11311 * cris-tdep.c (cris_frame_init_saved_regs): Use
11312 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11314 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11315 (sh64_nofp_frame_init_saved_regs): Ditto.
11316 (sh_fp_frame_init_saved_regs): Ditto.
11317 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11318 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11319 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11320 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11322 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11324 * minsyms.c (lookup_minimal_symbol): Update comment.
11325 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11326 (lookup_minimal_symbol_solib_trampoline): Likewise.
11328 2003-01-08 Andrew Cagney <cagney@redhat.com>
11330 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11331 frame_relative_level.
11333 * alpha-tdep.c: Use get_frame_extra_info.
11334 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11335 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11336 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11337 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11339 * alpha-tdep.c: Use get_next_frame.
11340 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11341 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11342 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11343 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11344 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11345 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11346 * xstormy16-tdep.c: Ditto.
11348 2003-01-07 Andrew Cagney <cagney@redhat.com>
11350 * alpha-tdep.c: Use get_frame_base.
11351 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11352 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11353 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11354 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11355 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11356 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11357 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11358 * config/sparc/tm-sparc.h: Ditto.
11360 2003-01-07 Andrew Cagney <cagney@redhat.com>
11362 * frame.c (deprecated_get_frame_context): New function.
11363 (deprecated_set_frame_context): New function.
11364 * frame.h (deprecated_get_frame_context): Declare.
11365 (deprecated_set_frame_context): Declare.
11366 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11367 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11369 2003-01-07 Andrew Cagney <cagney@redhat.com>
11371 * frame.c (deprecated_set_frame_next_hack): New function.
11372 (deprecated_set_frame_prev_hack): New function.
11373 * frame.h (deprecated_set_frame_next_hack): Declare.
11374 (deprecated_set_frame_prev_hack): Declare.
11375 * mcore-tdep.c (analyze_dummy_frame): Use
11376 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11377 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11379 2003-01-07 David Carlton <carlton@math.stanford.edu>
11381 * linespec.c (decode_line_1): Move code into decode_dollar.
11382 (decode_dollar): New function.
11384 2003-01-07 Andrew Cagney <cagney@redhat.com>
11386 * arm-tdep.c (arm_init_extra_frame_info): Use
11387 deprecated_update_frame_base_hack.
11388 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11389 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11390 (fix_frame_pointer): Ditto.
11391 (mn10300_analyze_prologue): Ditto.
11393 2003-01-07 Andrew Cagney <cagney@redhat.com>
11395 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11396 extra_info using frame_extra_info_zalloc.
11397 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11398 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11399 (sh64_init_extra_frame_info): Ditto.
11400 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11401 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11402 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11403 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11404 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11405 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11406 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11407 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11408 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11409 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11410 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11411 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11413 * mn10300-tdep.c (analyze_dummy_frame): Use
11414 deprecated_set_frame_extra_info_hack.
11415 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11417 2003-01-07 J. Brobecker <brobecker@gnat.com>
11419 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11420 class is not scText. These do not define "real" procedures.
11421 (parse_partial_symbols): Likewise.
11423 2003-01-06 Michael Snyder <msnyder@redhat.com>
11425 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11427 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11429 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11430 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11431 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11432 deprecated_frame_xmalloc_with_cleanup.
11433 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11434 deprecated_frame_xmalloc.
11435 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11436 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11438 2003-01-06 Andrew Cagney <cagney@redhat.com>
11440 * x86-64-linux-tdep.c: Include "osabi.h".
11441 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11443 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11445 2003-01-06 Andrew Cagney <cagney@redhat.com>
11447 * MAINTAINERS (Target Instruction Set Architectures): Update
11448 arm-elf. Can be built with -Werror, has been multiarched.
11450 * value.h (unpack_long): Make buffer parameter constant.
11451 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11452 * scm-lang.h (scm_parse): Ditto.
11453 * defs.h (extract_typed_address, extract_address): Ditto.
11454 (extract_long_unsigned_integer): Ditto.
11455 * inferior.h (unsigned_pointer_to_address): Ditto.
11456 (signed_pointer_to_address): Ditto.
11457 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11458 * gdbarch.h, gdbarch.c: Regenerate.
11459 * findvar.c (extract_long_unsigned_integer): Update.
11460 (extract_address): Update.
11461 (extract_typed_address): Update.
11462 (unsigned_pointer_to_address): Update.
11463 * values.c (unpack_long): Update.
11464 (unpack_double): Update.
11465 (unpack_pointer): Update.
11466 (unpack_field_as_long): Update.
11467 * d10v-tdep.c (d10v_pointer_to_address): Update.
11468 * avr-tdep.c (avr_pointer_to_address): Update.
11469 * scm-lang.c (scm_unpack): Update.
11470 * findvar.c (signed_pointer_to_address): Update.
11472 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11474 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11475 since it is in i386-tdep.c.
11477 2003-01-06 J. Brobecker <brobecker@gnat.com>
11479 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11480 failure introduced in the previous change.
11482 2003-01-05 Michael Chastain <mec@shout.net>
11484 * README: Remove references to deleted remote-*.c files:
11485 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11486 remote-nrom.c, remote-os9k.c, remote-udi.c.
11488 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11490 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11491 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11492 i386_get_longjmp_target.
11494 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11496 * arm-tdep.c (prologue_cache): Change to a pointer.
11497 (_initialize_arm_tdep): Allocate prologue_cache.
11498 (check_prologue_cache): Update.
11499 (save_prologue_cache): Update.
11500 (arm_gdbarch_init): Update.
11502 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11504 * stabsread.c (update_method_name_from_physname): Call complaint()
11507 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11509 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11510 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11511 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11513 * blockframe.c: Include "gdbcmd.h" and "command.h".
11514 (backtrace_below_main): New variable.
11515 (file_frame_chain_valid, func_frame_chain_valid)
11516 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11517 (generic_func_frame_chain_valid): Remove functions.
11518 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11519 (_initialize_blockframe): New function.
11520 * Makefile.in (blockframe.o): Update dependencies.
11521 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11522 comment. Call frame_chain_valid ().
11523 * frame.h: Remove old prototypes. Add prototype for
11524 frame_chain_valid and update comments to match.
11525 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11526 Remove old comment.
11527 * gdbarch.h: Regenerated.
11528 * gdbarch.c: Regenerated.
11530 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11531 set_gdbarch_frame_chain_valid.
11532 * avr-tdep.c (avr_gdbarch_init): Likewise.
11533 * cris-tdep.c (cris_gdbarch_init): Likewise.
11534 * frv-tdep.c (frv_gdbarch_init): Likewise.
11535 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11536 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11537 (i386_nw_init_abi): Likewise.
11538 (i386_gdbarch_init): Likewise.
11539 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11541 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11542 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11543 * mips-tdep.c (mips_gdbarch_init): Likewise.
11544 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11545 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11546 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11547 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11548 * s390-tdep.c (s390_gdbarch_init): Likewise.
11549 * sh-tdep.c (sh_gdbarch_init): Likewise.
11550 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11551 * v850-tdep.c (v850_gdbarch_init): Likewise.
11552 * vax-tdep.c (vax_gdbarch_init): Likewise.
11553 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11555 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11556 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11557 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11558 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11559 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11560 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11561 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11562 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11564 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11566 * Makefile.in (acconfig_h): Remove incorrect macro.
11567 (config_h): Define.
11568 (osabi.o): Update dependencies.
11569 * configure.tgt: Set gdb_osabi based on target triplet.
11570 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11571 * configure: Regenerated.
11572 * config.in: Regenerated.
11573 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11574 (GDB_OSABI_DEFAULT): Define if not already defined.
11575 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11576 (set_osabi_string): New variables.
11577 (gdbarch_register_osabi): Add new OS ABI to
11578 gdb_osabi_available_names.
11579 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11580 (set_osabi, show_osabi): New functions.
11581 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11583 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11585 * arch-utils.c (gdbarch_info_init): Set osabi to
11586 GDB_OSABI_UNINITIALIZED.
11587 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11588 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11589 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11590 * gdbarch.c: Regenerated.
11591 * gdbarch.h: Regenerated.
11592 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11594 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11595 * osabi.h (enum gdb_osabi): Move to defs.h.
11596 (gdbarch_init_osabi): Update prototype.
11597 * defs.h (enum gdb_osabi): Moved here.
11598 * Makefile.in: Update dependencies.
11600 * alpha-tdep.h: Don't include "osabi.h".
11601 (struct gdbarch_tdep): Remove osabi member.
11602 * alpha-tdep.c: Include "osabi.h".
11603 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11604 iterate over arches. Update call to gdbarch_init_osabi.
11605 (alpha_dump_tdep): Don't dump osabi.
11606 * alpha-linux-tdep.c: Include "osabi.h".
11607 * alpha-osf1-tdep.c: Include "osabi.h".
11608 * alphafbsd-tdep.c: Include "osabi.h".
11609 * alphanbsd-tdep.c: Include "osabi.h".
11611 * arm-tdep.h: Don't include "osabi.h".
11612 (struct gdbarch_tdep): Remove osabi member.
11613 * arm-tdep.c: Include "osabi.h".
11614 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11615 iterate over arches. Update call to gdbarch_init_osabi.
11616 (arm_dump_tdep): Don't dump osabi.
11617 * arm-linux-tdep.c: Include "osabi.h".
11618 * armnbsd-tdep.c: Include "osabi.h".
11620 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11621 Update call to gdbarch_init_osabi.
11623 * i386-tdep.h: Don't include "osabi.h".
11624 (struct gdbarch_tdep): Remove osabi member.
11625 * i386-tdep.c: Include "osabi.h".
11626 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11627 iterate over arches. Update call to gdbarch_init_osabi.
11628 (i386_dump_tdep): Don't dump osabi.
11629 * i386-linux-tdep.c: Include "osabi.h".
11630 * i386-sol2-tdep.c: Include "osabi.h".
11631 * i386bsd-tdep.c: Include "osabi.h".
11632 * i386gnu-tdep.c: Include "osabi.h".
11633 * i386ly-tdep.c: Include "osabi.h".
11634 * i386nbsd-tdep.c: Include "osabi.h".
11635 * i386obsd-tdep.c: Include "osabi.h".
11637 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11638 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11639 check osabi when iterating over arches. Update call to
11640 gdbarch_init_osabi.
11641 (mips_dump_tdep): Don't dump osabi.
11643 * ns32k-tdep.h: Don't include "osabi.h".
11644 (struct gdbarch_tdep): Remove.
11645 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11646 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11647 allocate tdep. Update call to gdbarch_init_osabi.
11648 (ns32k_dump_tdep): Remove.
11649 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11650 * ns32knbsd-tdep.c: Include "osabi.h".
11652 * ppc-tdep.h: Don't include "osabi.h".
11653 (struct gdbarch_tdep): Remove osabi member.
11654 * rs6000-tdep.c: Include "osabi.h".
11655 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11656 osabi when iterating over arches. Update call to
11657 gdbarch_init_osabi.
11658 (rs6000_dump_tdep): Don't dump osabi.
11659 * ppc-linux-tdep.c: Include "osabi.h".
11660 * ppcnbsd-tdep.c: Include "osabi.h".
11662 * sh-tdep.h: Don't include "osabi.h".
11663 (struct gdbarch_tdep): Remove osabi member.
11664 * sh-tdep.c: Include "osabi.h".
11665 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11666 iterate over arches. Update call to gdbarch_init_osabi.
11667 (sh_dump_tdep): Don't dump osabi.
11668 * shnbsd-tdep.c: Include "osabi.h".
11670 * sparc-tdep.c: Include "osabi.h".
11671 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11672 iterate over arches. Update call to gdbarch_init_osabi.
11673 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11676 * vax-tdep.h: Don't include "osabi.h".
11677 (struct gdbarch_tdep): Remove.
11678 * vax-tdep.c: Include "osabi.h".
11679 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11680 iterate over arches. Don't allocate tdep. Update call
11681 to gdbarch_init_osabi.
11682 (vax_dump_tdep): Remove.
11683 (_initialize_vax_tdep): Update call to gdbarch_register.
11685 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11687 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11689 (breakpoint_re_set_one): Don't fetch the value for a disabled
11692 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11694 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11695 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11696 (COERCE_FLOAT_TO_DOUBLE): Remove.
11697 * gdbarch.c: Regenerate.
11698 * gdbarch.h: Regenerate.
11699 * Makefile.in: Remove value_h from gdbarch_h.
11700 * valops.c (coerce_float_to_double): New variable.
11701 (default_coerce_float_to_double): Remove.
11702 (standard_coerce_float_to_double): Remove.
11703 (value_arg_coerce): Use coerce_float_to_double.
11704 (_initialize_valops): Add "set coerce-float-to-double".
11705 * value.h (default_coerce_float_to_double): Remove prototype.
11706 (standard_coerce_float_to_double): Remove prototype.
11708 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11710 * mdebugread.c (parse_symbol): Likewise.
11711 * stabsread.c (define_symbol): Mark all functions as prototyped.
11713 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11714 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11715 set_gdbarch_coerce_float_to_double.
11716 * arm-tdep.c (arm_gdbarch_init): Likewise.
11717 * frv-tdep.c (frv_gdbarch_init): Likewise.
11718 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11719 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11720 * mips-tdep.c (mips_gdbarch_init): Likewise.
11721 (mips_coerce_float_to_double): Remove.
11722 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11723 (rs6000_coerce_float_to_double): Remove.
11724 * s390-tdep.c (s390_gdbarch_init): Likewise.
11725 * sh-tdep.c (sh_gdbarch_init): Likewise.
11726 (sh_coerce_float_to_double): Remove.
11727 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11728 (sparc_coerce_float_to_double): Remove.
11729 * v850-tdep.c (v850_gdbarch_init): Likewise.
11730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11731 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11732 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11733 (hppa_coerce_float_to_double): Remove prototype.
11734 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11736 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11738 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11740 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11742 Suggested by Stewart Brown <sb24@avaya.com>:
11743 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11744 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11745 (c_type_print_varspec_suffix): Likewise.
11747 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11749 * configure.in: Don't set and AC_SUBST SUBDIRS.
11750 * configure: Regenerated.
11752 * configure.in: Remove code dealing with shared libraries.
11753 * Makefile.in: Remove HLDFLAGS and HLDENV.
11754 * configure: Regenerated.
11756 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11758 * frame.c (deprecated_frame_xmalloc): New function.
11759 (deprecated_set_frame_saved_regs_hack): New function.
11760 (deprecated_set_frame_extra_info_hack): New function.
11761 * frame.h (deprecated_frame_xmalloc): Declare.
11762 (deprecated_set_frame_saved_regs_hack): Declare.
11763 (deprecated_set_frame_extra_info_hack): Declare.
11765 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11767 * configure.in: Move code that provides the --enable-gdbtk option
11768 right after the code that handles the --enable-tui option, and
11769 polish it somewhat.
11770 * configure: Regenerated.
11772 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11773 AC_CHECK_FUNCS and remove the old check for pread64.
11774 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11775 * acconfig.h (_GNU_SOURCE): Add.
11776 (HAVE_PREAD64): Remove.
11777 * configure, aclocal.m4, config.in: Regenerated.
11779 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11781 * alpha-tdep.c: Use get_frame_saved_regs.
11782 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11783 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11784 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11785 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11786 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11788 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11790 * configure.in: Remove all use of the SUBDIRS variable; add
11791 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11792 code providing the --enable-multi-ice option, and move it right in
11793 front of the code that checks whether gdbserver is supported.
11795 * configure: Regenerated.
11796 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11799 2003-01-03 Andrew Cagney <cagney@redhat.com>
11801 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11802 * avr-tdep.c, cris-tdep.c: Ditto.
11803 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11804 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11806 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11808 * configure.in: Remove --enable-netrom option.
11809 * configure: Regenerated.
11811 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11813 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11814 declaration for `struct re_pattern_buffer' instead.
11815 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11817 2003-01-03 J. Brobecker <brobecker@gnat.com>
11819 * mdebugread.c (parse_symbol): Count until the stEnd matching
11820 the structure name.
11822 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11824 * configure.in: Remove --with-cpu option.
11825 subscripts. Remove evil changequotes here.
11826 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11827 * config.in, configure: Regenerated.
11829 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11830 * configure.in: Cleanup section that sources GDB and BFD configure
11831 subscripts. Remove evil changequotes here.
11832 * config.in, configure: Regenerated.
11834 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11836 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11837 frame accessor methods.
11838 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11839 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11840 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11841 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11842 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11843 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11844 * z8k-tdep.c: Ditto.
11846 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11848 * configure.in: Remove UI_OUT configuration code.
11849 * ada-lang.c: Update assuming UI_OUT is always true.
11850 * Makefile.in (UIOUT_CFLAGS): Remove.
11851 * configure: Regenerated.
11852 * TODO: Remove blurb about elimination of -DUI_OUT.
11854 * configure.in: Move code that provides the --enable-gdbcli,
11855 --enable-gdbmi options right before the code that handles the
11856 --enable-tui option. Polish a bit.
11857 * configure: Regenerated.
11859 * configure.in: Rewrite check for GNU regex and the
11860 --without-included regex option, and move it into the "Checks for
11861 library functions" section. This makes us use the system regex
11862 again by default on systems with version 2 of the GNU C library.
11863 This was apparently broken.
11864 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11865 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11866 * config.in, configure: Regenerated.
11868 * configure.in: Move code that provides the --enable-tui option
11869 before the "Checks for libraries" section. Polish the code
11870 somewhat and set need_curses to yes if we build the TUI. Rewrite
11871 code that looks for a library providing termcap functionality to
11872 match more closely what's done in the Readline library, and move
11873 it into to the "Checks for libraries" section.
11874 * configure: Regenerated.
11875 * Makefile.in (TERMCAP): Remove variable.
11876 * config/i386/go32.mh (TERMCAP): Remove variable.
11878 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11880 * MAINTAINERS: Mention gdb_mbuild.sh.
11881 * gdb_mbuild.sh: Rewrite.
11883 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11885 * configure.in: Fix typo in last change.
11886 * config.in, configure: Regenerated.
11888 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11890 * valarith.c (value_binop): Delete obsolete code and comments.
11891 * configure.host: Ditto.
11892 * buildsym.h (make_blockvector): Ditto.
11893 * buildsym.c (make_blockvector): Ditto.
11894 * defs.h (enum language): Ditto.
11895 (chill_demangle): Ditto.
11896 * elfread.c (elf_symtab_read): Ditto.
11897 * dwarfread.c (CHILL_PRODUCER): Ditto.
11898 (set_cu_language): Ditto.
11899 (handle_producer): Ditto.
11900 * expprint.c (print_subexp): Ditto.
11901 * gdbtypes.c (chill_varying_type): Ditto.
11902 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11903 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11904 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11905 (chill_varying_type): Ditto.
11906 * language.h (_LANG_chill): Ditto.
11907 * language.c (binop_result_type, integral_type): Ditto.
11908 (character_type, string_type, structured_type): Ditto.
11909 (lang_bool_type, binop_type_check): Ditto.
11910 * stabsread.h (os9k_stabs): Ditto.
11911 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11912 (define_symbol, read_type, read_struct_fields): Ditto.
11913 (read_array_type, read_enum_type, read_huge_number): Ditto.
11914 (read_range_type, start_stabs): Ditto.
11915 * symfile.c (init_filename_language_table): Ditto.
11916 (add_psymbol_with_dem_name_to_list): Ditto.
11917 * symtab.c (symbol_init_language_specific): Ditto.
11918 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11919 * symtab.h (struct general_symbol_info): Ditto.
11920 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11921 * typeprint.c (typedef_print): Ditto.
11922 * utils.c (fprintf_symbol_filtered): Ditto.
11923 * valops.c (value_cast, search_struct_field, value_slice): Delete
11925 (varying_to_slice): Delete function.
11926 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11927 (varying_to_slice): Delete declaration.
11928 * MAINTAINERS: Update.
11930 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11932 * configure.in: Reorganize "Checks for library functions section"
11933 a bit. Remove check for `btowc' and `isascii' functions.
11934 * configure: Regenerated.
11936 * acconfig.h (_MSE_INT_H): Remove.
11937 * configure.in: Create "Checks for header files" section, and move
11938 appropriate tests there. Don't check for objlist.h, wchar.h,
11939 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11940 misdetection fix. Also add "Checks for types", "Checks for
11941 compiler characteristics" and "Checks for library functions"
11943 * config.in, configure: Regenerated.
11945 * configure.in: Create "Checks for programs" section, and move
11946 appropriate tests there.
11948 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11950 * configure.in: Create "Checks for libraries" section, and move
11951 appropriate tests there. Cleanup check for wctype in libw. Use
11952 AC_SEARCH_LIBS to see whether we need libsocket.
11953 * configure: Regenerated.
11955 For older changes see ChangeLog-2002
11961 version-control: never