* dbxread.c (read_dbx_symtab): Don't report an internal error if
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-09-12  Jim Blandy  <jimb@redhat.com>
2
3         * dbxread.c (read_dbx_symtab): Don't report an internal error if
4         the file has no .data, .bss, or .rodata sections.  Instead wait
5         until we see a variable alleged to live in one of those sections.
6
7         * dbxread.c (read_dbx_symtab): If we have no .data section and no
8         .bss section, presume that any variables we find live in the
9         .rodata section.
10
11         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
12         offsets for global and static variables.
13
14         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
15         symbol types are, by definition, in the .data section, so it is
16         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
17         If there is no .data section, there should be no N_DATA or N_DATA
18         | N_EXT symbols.
19
20 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
21
22         * amd64fbsd-tdep.c: Fix sigtramp recognition.
23         (amd64fbsd_sigcontext_addr): Rewrite.
24         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
25         with correct values.
26         (amd64fbsd_sc_reg_offset): Initialize with correct values.
27         (amd64fbsd_init_abi): Fix typo.
28
29 2003-09-12  Andrew Cagney  <cagney@redhat.com>
30
31         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
32         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
33
34 2003-09-12  Andrew Cagney  <cagney@redhat.com>
35
36         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
37         "entry_file_highpc".  Update comments.
38         * defs.h (deprecated_inside_entry_file): Rename
39         "inside_entry_file".
40         * blockframe.c (deprecated_inside_entry_file): Rename
41         "inside_entry_file".
42         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
43         * vax-tdep.c (vax_frame_chain): Update.
44         * sh64-tdep.c (sh64_frame_chain): Update.
45         * sh-tdep.c (sh_frame_chain): Update.
46         * rs6000-tdep.c (rs6000_frame_chain): Update.
47         * ns32k-tdep.c (ns32k_frame_chain): Update.
48         * mips-tdep.c (mips_frame_chain): Update.
49         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
50         * m32r-tdep.c (m32r_frame_this_id): Update.
51         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
52         * frv-tdep.c (frv_frame_this_id): Update.
53         * d10v-tdep.c (d10v_frame_this_id): Update.
54         * cris-tdep.c (cris_frame_chain): Update.
55         * blockframe.c (legacy_frame_chain_valid): Update.
56         * avr-tdep.c (avr_frame_this_id): Update.
57         * arm-tdep.c (arm_prologue_this_id): Update.
58         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
59         * objfiles.c (objfile_relocate): Update.
60         * mipsread.c (mipscoff_symfile_read): Update.
61         (mipscoff_symfile_read): Update.
62         * mdebugread.c (parse_partial_symbols): Update.
63         * dwarfread.c (read_file_scope): Update.
64         * dwarf2read.c (read_file_scope): Update.
65         * dbxread.c (read_dbx_symtab): Update.
66         (read_dbx_symtab): Update.
67         * coffread.c (complete_symtab): Update.
68
69 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
70
71         * top.c (quit_target): New static helper function.
72         (quit_force): Moved code to quit_target().  Call quit_target()
73         via catch_errors() to catch errors during quit.
74
75 2003-09-11  David Carlton  <carlton@kealia.com>
76
77         * buildsym.c (finish_block): Use allocate_block to allocate the
78         block.
79         * mdebugread.c (new_block): Add FIXME.
80
81 2003-09-11  David Carlton  <carlton@kealia.com>
82
83         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
84         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
85         (recursive_dump_type): Ditto.
86         * printcmd.c (print_formatted): Ditto.
87         * typeprint.c (print_type_scalar): Ditto.
88         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
89         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
90         * cp-support.h: Declare cp_check_possible_namespace_symbols,
91         maint_cplus_cmd_list.
92         * cp-support.c: Make maint_cplus_cmd_list extern.
93         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
94         command.h.
95         (lookup_symbol_file): Look in possible namespace blocks when
96         appropriate.
97         (initialize_namespace_symtab): New.
98         (get_possible_namespace_block, free_namespace_block)
99         (check_possible_namespace_symbols)
100         (check_possible_namespace_symbols_loop)
101         (check_one_possible_namespace_symbol)
102         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
103         (_initialize_cp_namespace): Ditto.
104         * block.h: Declare allocate_block.
105         * block.c (allocate_block): New.
106         * jv-lang.c (get_java_class_symtab): Allocate blocks via
107         allocate_block.
108         * symfile.h: Update declaration of add_psymbol_to_list.
109         * symfile.c (add_psymbol_to_list): Return the partial symbol in
110         question.
111         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
112         scan_partial_symbols_call.
113         (scan_partial_symbols): Add NAMESPACE argument; update calls to
114         helper functions.
115         (add_partial_symbol): If necessary, scan mangled names for names
116         of namespaces.
117         (add_partial_namespace): Add NAMESPACE argument; generate partial
118         symbols associated  to namespaces.
119         (add_partial_enumeration): Add NAMESPACE argument.
120         (new_symbol): Allow namespace syms.
121         (read_namespace): Generate namespace syms.
122         * objfiles.h: Add opaque declaration of struct symtab.
123         (struct objfile): Add cp_namespace_symtab member.
124         * objfiles.c (allocate_objfile): Set
125         objfile->cp_namespace_symtab.
126         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
127         dictionary_h, command_h.
128
129 2003-09-11  Andrew Cagney  <cagney@redhat.com>
130
131         * rs6000-tdep.c (rs6000_push_dummy_call): Use
132         regcache_raw_write_signed to set SP_REGNUM, move the operation to
133         near the function's end.
134         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
135         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
136         regcache_raw_write_signed to set SP_REGNUM.
137
138 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
139
140         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
141         orig_addrs is set up properly.
142
143 2003-09-11  Andrew Cagney  <cagney@redhat.com>
144
145         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
146         * gdbarch.h, gdbarch.c: Re-generate.
147         * infcall.c (call_function_by_hand): Update.
148         * hppa-tdep.c (hppa_push_arguments): Update.
149         * ada-lang.c (place_on_stack): Update.
150         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
151         * sparc-tdep.c (sparc_gdbarch_init): Update.
152         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
153         * hppa-tdep.c (hppa_gdbarch_init): Update.
154         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
155         stack_align.
156
157 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
158
159         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
160         register do need a frame.
161
162 2003-09-11  Andrew Cagney  <cagney@redhat.com>
163
164         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
165         buildable since GDB 5.0.
166         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
167         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
168         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
169         * irix4-nat.c: Delete file.
170         * config/mips/irix4.mh: Delete file.
171         * config/mips/irix3.mh: Delete file.
172         * config/mips/irix3.mt: Delete file.
173         * config/mips/tm-irix3.h: Delete file.
174         * config/mips/nm-irix3.h: Delete file.
175         * config/mips/xm-irix3.h: Delete file.
176         * config/mips/nm-irix4.h: Delete file.
177         * config/mips/xm-irix4.h: Delete file.
178         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
179
180 2003-09-10  J. Brobecker  <brobecker@gnat.com>
181
182         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
183         * Makefile.in (hppa-tdep.o): Update dependencies.
184
185 2003-09-10  James E Wilson  <wilson@specifixinc.com>
186
187         * MAINTAINERS: Change my e-mail address.  Move to paper trail
188         section.
189
190 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
191
192         * MAINTAINERS (frv): New ISA entry.
193
194 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
195
196         * frv-tdep.c (dis-asm.h): Include.
197         * Makefile.in (frv-tdep.o): Update dependencies.
198
199 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
200
201         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
202         Fix typo for high range of floating registers.
203
204 2003-09-09  David Carlton  <carlton@kealia.com>
205
206         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
207         highpc initialization here out of scan_partial_symbols.
208         (scan_partial_symbols): Restructure into a recursive version,
209         calling add_partial_namespace and add_partial_enumeration when
210         appropriate.
211         (add_partial_namespace): New.
212         (add_partial_enumeration, locate_pdi_sibling): Ditto.
213
214 2003-09-09  Andrew Cagney  <cagney@redhat.com>
215
216         * rs6000-tdep.c (ppc_push_return_address): Delete function.
217         (rs6000_push_dummy_call): Set LR to BP_ADDR.
218         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
219         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
220
221         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
222         (rs6000_push_dummy_call): Set the "TOC" register.
223
224         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
225         methods "max_register_raw_size", "max_register_virtual_size" or
226         "register_virtual_size".
227
228 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
229
230         * MAINTAINERS: Update my e-mail address.
231
232 2003-09-09  Andrew Cagney  <cagney@redhat.com>
233
234         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
235         (rs6000_push_dummy_call): Store the struct return address.
236         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
237
238 2003-09-09  Andrew Cagney  <cagney@redhat.com>
239
240         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
241         "ppc_sysv_abi_push_arguments".
242         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
243         "ppc_sysv_abi_push_arguments".
244         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
245         instead of "push_arguments".
246         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
247
248 2003-09-09  Andrew Cagney  <cagney@redhat.com>
249
250         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
251         instead of CALL_DUMMY_ADDRESS.
252
253 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
254
255         * p-lang.c: Eliminate "register".
256         * c-lang.c: Ditto.
257         * expprint.c: Ditto.
258         * f-lang.c: Ditto.
259         * jv-lang.c: Ditto.
260         * language.c: Ditto.
261         * m2-lang.c: Ditto.
262         * parse.c: Ditto.
263         * scm-lang.c: Ditto.
264         * objc-lang.c: Ditto.
265
266 2003-09-09  Nick Clifton  <nickc@redhat.com>
267
268         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
269
270 2003-09-04  Andrew Cagney  <cagney@redhat.com>
271
272         * avr-tdep.c: Include "dis-asm.h".
273         * cris-tdep.c: Include "dis-asm.h".
274         (cris_delayed_get_disassembler): Use "struct disassemble_info"
275         instead of corresponding typedef.
276         * h8300-tdep.c: Include "dis-asm.h".
277         * ia64-tdep.c: Include "dis-asm.h".
278         * i386-tdep.c: Include "dis-asm.h".
279         (i386_print_insn): Use "struct disassemble_info" instead of
280         corresponding typedef.
281         * m68k-tdep.c: Include "dis-asm.h".
282         * mcore-tdep.c: Include "dis-asm.h".
283         * mips-tdep.c: Include "dis-asm.h".
284         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
285         instead of corresponding typedef.
286         * ns32k-tdep.c: Include "dis-asm.h".
287         * s390-tdep.c: Include "dis-asm.h".
288         * sparc-tdep.c: Include "dis-asm.h".
289         * vax-tdep.c: Include "dis-asm.h".
290         * v850-tdep.c: Include "dis-asm.h".
291         * mn10300-tdep.c: Include "dis-asm.h".
292         * rs6000-tdep.c: Include "dis-asm.h".
293         * xstormy16-tdep.c: Include "dis-asm.h".
294         (_initialize_xstormy16_tdep): Delete "extern" declaration of
295         print_insn_xstormy16.
296         * Makefile.in (v850-tdep.o): Update dependencies.
297         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
298         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
299         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
300         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
301         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
302         (gdbarch_h): Remove $(dis_asm_h).
303         * disasm.c: Include "dis-asm.h".
304         (dis_asm_read_memory): Use "struct disassemble_info" instead of
305         corresponding typedef.
306         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
307         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
308         * gdbarch.sh: Do not include "dis-asm.h".
309         (struct disassemble_info): Declare opaque.
310         (TARGET_PRINT_INSN): Update declaration.
311         * gdbarch.h, gdbarch.c: Re-generate.
312
313 2003-09-08  Andrew Cagney  <cagney@redhat.com>
314
315         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
316         CALL_DUMMY_ADDRESS, change to a predicate.
317         * gdbarch.h, gdbarch.c: Re-generate.
318         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
319         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
320         * infcall.c (call_function_by_hand): Ditto.
321         * sparc-tdep.c (sparc_push_return_address): Ditto.
322         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
323         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
324         CALL_DUMMY_ADDRESS with entry_point_address.
325         * v850-tdep.c (v850_push_return_address): Ditto.
326         * s390-tdep.c (s390_push_return_address): Ditto.
327         * rs6000-tdep.c (ppc_push_return_address): Ditto.
328         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
329         * mcore-tdep.c (mcore_push_return_address): Ditto.
330         * cris-tdep.c (cris_push_return_address): Ditto.
331         * arm-tdep.c (arm_push_return_address): Ditto.
332
333 2003-09-08  Andrew Cagney  <cagney@redhat.com>
334
335         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
336         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
337         and REG_UNMODIFIED to REG_SAME_VALUE.
338         (execute_cfa_program): Update.
339         (dwarf2_frame_cache): Update.  Initialize table to
340         REG_UNSPECIFIED, complain if CFI fails to specify a register's
341         location.
342         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
343
344 2003-09-08  Andrew Cagney  <cagney@redhat.com>
345
346         * gnu-nat.c: Remove "inline" function attribute.
347         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
348
349 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
350
351         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
352         target.
353
354 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
355
356         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
357         (frame_extra_info): Rename this struct to frv_unwind_cache.
358         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
359         Add fields ``prev_sp'' and ``base''.
360         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
361         (frv_saved_pc_after_call, frv_init_extra_frame_info)
362         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
363         Delete.
364         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
365         Revise all callers.  Fill in the unwind cache argument and make
366         other adjustments to account for new frame mechanisms.
367         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
368         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
369         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
370         (frv_frame_unwind, frv_frame_base): New structs.
371         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
372         additional arguments expected by this method and adjust function
373         body accordingly.
374         (frv_gdbarch_init): Remove calls to the following functions:
375         set_gdbarch_deprecated_init_frame_pc(),
376         set_gdbarch_deprecated_saved_pc_after_call(),
377         set_gdbarch_deprecated_frame_chain(),
378         set_gdbarch_deprecated_frame_saved_pc(),
379         set_gdbarch_deprecated_frame_init_saved_regs(),
380         set_gdbarch_deprecated_push_arguments(),
381         set_gdbarch_deprecated_push_return_address(),
382         set_gdbarch_deprecated_pop_frame(),
383         set_gdbarch_deprecated_call_dummy_words(),
384         set_gdbarch_deprecated_sizeof_call_dummy_words(),
385         set_gdbarch_deprecated_init_extra_frame_info(),
386         set_gdbarch_deprecated_dummy_write_sp(), and
387         set_gdbarch_deprecated_pc_in_call_dummy().
388         Add calls to the following functions:
389         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
390         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
391         frame_base_set_default().
392         * Makefile.in (frv-tdep.o): Update dependencies.
393         
394 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
395
396         * dwarf2-frame.c (read_encoded_value): Add support for
397         DW_EH_PE_aligned encoding.
398
399 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
400
401         * infrun.c (normal_stop): Don't print a message if the inferior
402         has exited.
403
404 2003-09-08  Jim Blandy  <jimb@redhat.com>
405
406         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
407         * dbxread.c: #include "gdb_assert.h".
408         (read_dbx_symtab): If the objfile has no .data section, use the
409         section index for the .bss section instead.
410
411 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
412
413         * frame.c (deprecated_safe_get_selected_frame): New function.
414         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
415         * findvar.c (read_var_value): Call it.
416
417 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
418
419         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
420         (sh64-tdep.o): Add dependencies.
421         * configure.tgt: Add FIXME to sh-*-linux*.
422         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
423         (sh_gdbarch_init): Always set correct sh_show_regs function
424         pointer.  Call sh64_gdbarch_init() if machine type is sh5. 
425         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
426         * sh64-tdep.c: New file, containing all sh64 related code from
427         sh-tdep.c.
428         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
429         * config/sh/linux.mt (TDEPFILES): Ditto.
430         * config/sh/nbsd.mt (TDEPFILES): Ditto. 
431         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
432         * config/sh/wince.mt (TDEPFILES): Ditto.
433
434 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
435
436         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
437         (stop_wait_callback): Handle !lp->signalled also.
438         (lin_lwp_has_pending, flush_callback): New functions.
439         (lin_lwp_wait): Call flush_callback.
440         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
441         (linux_proc_pending_signals): New function.
442         * linux-nat.h (linux_proc_pending_signals): Add prototype.
443
444 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
445
446         From Nick Kelsey <nickk@ubicom.com>:
447         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
448         when the stop PC is at the beginning of a function also.
449
450 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
451
452         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
453         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
454
455 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
456
457         * sol-thread.c: Include "gdb_string.h".
458
459 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
460
461         * gcore.c: Reorder include files in alphabetical order.  Include
462         "gdb_assert.h".  Various coding style fixes.
463         (derive_stack_segment, derive_heap_segment): Replace check for
464         non-null BOTTOM and TOP with gdb_assert.
465         (derive_heap_segment): Replace check for successful creation of
466         ZERO with gdb_assert.
467         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
468
469 2003-09-04  Andrew Cagney  <cagney@redhat.com>
470
471         * thread-db.c (verbose_dlsym): New function.
472         (thread_db_load): Use verbose_dlsym
473         (thread_db_new_objfile): Print that libthread_db was loaded, and
474         that thread debugging was enabled.
475
476 2003-09-04  Andrew Cagney  <cagney@redhat.com>
477
478         * configure.tgt: Add "mips64*-*-*" target.  Delete
479         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
480         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
481         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
482         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
483         mips*-sony-*, and mips64*-*-elf* targets.
484         * config/mips/embedl.mt: Delete file.
485         * config/mips/embedl64.mt: Delete file.
486         * config/mips/mips.mt: Delete file.
487         * config/mips/mips64.mt: Delete file.
488         * config/mips/tm-embed.h: Delete file.
489         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
490         * config/mips/embed64.mt: Delete out-of-date comment.
491
492 2003-09-04  Andrew Cagney  <cagney@redhat.com>
493
494         * hppa-tdep.c (hppa_gdbarch_init): Set
495         "have_nonsteppable_watchpoint".
496         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
497         * mips-tdep.c (mips_dump_tdep): Do not print
498         HAVE_NONSTEPPABLE_WATCHPOINT.
499         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
500         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
501         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
502         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
503
504 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
505
506         * breakpoint.c (watchpoint_check): Remove accidentally checked in
507         unused code.  Add comment.
508
509 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
510
511         * breakpoint.c (watchpoint_check): Check for pc being in an
512         epilogue if watchpoint frame couldn't be found.
513
514 2003-09-04  Andrew Cagney  <cagney@redhat.com>
515
516         * Makefile.in: Re-generate all dependencies.
517
518 2003-09-03  Andrew Cagney  <cagney@redhat.com>
519
520         * arch-utils.h (legacy_print_insn): Delete declaration.
521         * arch-utils.c (legacy_print_insn): Delete function.
522         * disasm.c (deprecated_tm_print_insn_info): Delete.
523         (_initialize_disasm): Delete function, contained code initializing
524         deprecated_tm_print_insn_info.
525         * gdbarch.sh (deprecated_tm_print_insn): Delete.
526         (deprecated_tm_print_insn_info): Delete.
527         (TARGET_PRINT_INSN): Do not provide a default.
528         * gdbarch.h, gdbarch.c: Re-generate.
529
530 2003-09-03  Andrew Cagney  <cagney@redhat.com>
531
532         * disasm.c (fprintf_disasm): New function.
533         (gdb_disassemble_info): Call "init_disassemble_info", instead of
534         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
535         reverts 2003-08-14 change.
536         (_initialize_disasm): Call "init_disassemble_info", instead of
537         INIT_DISASSEMBLE_INFO_NO_ARCH.
538
539 2003-09-03  Michael Snyder  <msnyder@redhat.com>
540
541         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
542
543 2003-09-03  Andrew Cagney  <cagney@redhat.com>
544
545         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
546         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
547         * symfile.c (syms_from_objfile): Update.
548         (reread_symbols): `Update
549         * exec.c (exec_file_attach): Update.
550         (exec_file_attach): Update.
551         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
552         2003-08-29 change.
553         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
554
555 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
556
557         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
558         trad-frame.h.
559         (arm_get_cache): Delete macro.
560         (struct arm_prologue_cache): Update comments.  Make saved_regs into
561         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
562         to prev_sp.
563         (thumb_scan_prologue): Update for cache changes.  Don't call
564         DEPRECATED_PC_IN_CALL_DUMMY.
565         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
566         argument and use it in desperation search for our prologue.  Do not
567         search past the specified PC.
568         (arm_make_prologue_cache): Simplify.
569
570         (arm_prologue_this_id, arm_prologue_prev_register)
571         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
572         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
573         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
574         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
575         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
576
577         (arm_frame_chain_valid, arm_find_callers_reg)
578         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
579         (arm_pop_frame): Delete obsolete methods.
580         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
581
582         (arm_gdbarch_init): Update for new frame methods.  Register prologue
583         and sigtramp unwinders.  Set the default frame base method.
584
585         * Makefile.in (arm-tdep.o): Update dependencies.
586         * varobj.c (find_frame_addr_in_frame_chain): Call
587         get_frame_base_address.
588         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
589
590 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
591
592         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
593         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
594         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
595         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
596         Take NEXT_FRAME and CACHE arguments.  Call
597         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
598         Set unwound_pc in CACHE instead of modifying the frame argument.
599         Don't bother checking the frame type when looking for sigtramp
600         frames.
601         (arm_make_prologue_cache, arm_frame_chain)
602         (arm_init_extra_frame_info): New functions.
603
604 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
605
606         * arm-tdep.c (arm_get_cache): Define.
607         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
608         unwound_sp, unwound_pc, and saved_regs.
609         (thumb_scan_prologue): Take a cache instead of the frame.
610         (arm_scan_prologue): Likewise.
611         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
612         instead of a temporary frame.
613         (arm_init_extra_frame_info): Allocate and use a cache.
614         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
615
616 2003-09-03  Andrew Cagney  <cagney@redhat.com>
617
618         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
619         * config/mips/wince.mt (TM_CLIBS): Ditto.
620         * config/sh/wince.mt (TM_CLIBS): Ditto.
621         * config/pa/hppa64.mt (TM_CLIBS): Delete.
622         * config/sparc/sp64.mt (CC): Delete.
623
624 2003-09-03  Andrew Cagney  <cagney@redhat.com>
625
626         * defs.h: Do not include "arch-utils.h".
627         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
628         GDB_MULTI_ARCH_PURE.
629         * configure.in (GDB_MULTI_ARCH): Do not define.
630         * configure, config.in: Regenerate.
631         * configure.tgt: Do not set variable "gdb_multi_arch".
632         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
633         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
634         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
635         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
636         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
637         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
638         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
639         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
640         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
641         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
642         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
643         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
644         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
645         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
646         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
647         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
648         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
649         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
650         
651 2003-08-30  Michael Chastain  <mec@shout.net>
652
653         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
654         * config/m68k/nm-hp300hpux.h: Delete.
655         * config/m68k/tm-hp300hpux.h: Delete.
656         * config/m68k/xm-hp300hpux.h: Delete.
657         * config/m68k/xm-hp300bsd.h: Delete.
658         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
659         tm-hp300hpux.h, xm-hp300hpux.h.
660         * somsolib.c: Remove comment about hp300 shared libraries.
661
662 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
663
664         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
665         Only define PTRACE_GET_THREAD_AREA is not already defined.
666         Various style fixes in code and comments and some additional
667         spelling fixes in comments.  Move after functions dealing with
668         debug registers.
669         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
670         Fix coding-style.
671
672         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
673         frame_unwind_register_unsigned instead of
674         frame_unwind_unsigned_register.
675
676 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
677
678         * configure.in: Search for gethostbyname in libnsl.
679         * configure: Regenerated.
680
681 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
682
683         * configure.in: Remove redundant AC_MSG_RESULT in check for
684         uintptr_t in stdint.h.
685         * configure: Regenerated.
686
687         * amd64-nat.h (struct regcache): Add opaque declaration.
688
689         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
690         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
691         Change "register array" to "register cache" in comments.
692         (x86_64_linux_gregset64_reg_offset): New variable.
693         (GETREGS_SUPPLIES): Remove macro.
694         (supply_gregset): Call amd64_supply_native_gregset instead of
695         x86_64_linux_supply_gregset.
696         (fill_gregset): Rename `regno' to `regnum'.  Call
697         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
698         (store_regs): Rename `regno' to `regnum'.
699         (store_fpregs): Rename `regno' to `regnum'.
700         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
701         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
702         Reorganize function a bit.
703         (store_inferior_registers): Rename `regno' to `regnum'.  Use
704         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
705         Reorganize function a bit.
706         (_initialize_x86_64_linux_nat): New function.
707         * config/i386/x86-64linux.mh.
708
709 2003-08-29  Andrew Cagney  <cagney@redhat.com>
710
711         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
712         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
713         (target_remove_watchpoint): Delete macro.
714         (target_insert_watchpoint): Delete macro.
715         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
716         (remote_mips_stopped_by_watchpoint): Delete declaration.
717         (remote_mips_remove_watchpoint): Delete declaration.
718         (remote_mips_set_watchpoint): Delete declaration.
719         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
720         * remote-mips.c (_initialize_remote_mips): Set
721         "to_insert_watchpoint", "to_stopped_by_watchpoint",
722         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
723         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
724         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
725         (mips_stopped_by_watchpoint): Rename
726         remote_mips_stopped_by_watchpoint.
727         (mips_can_hardware_watchpoint): Rename
728         remote_mips_can_use_hardware_watchpoint, update function
729         signature.
730
731 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
732
733         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
734         USER_DS.  We haven't given them a register number yet.
735
736         * amd64-nat.h: New file.
737         * amd64-nat.c: New file.
738         * amd64fbsd-nat.c: Include "amd64-nat.h".
739         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
740         (amd64fbsd32_r_reg_offset): New variable.
741         (supply_gregset): Simply call amd64_supply_native_gregset.
742         (fill_gregset): Rename `regno' to `regnum'.  Simply call
743         amd64_collect_native_gregset.
744         (fill_fpregset): Rename `regno' to `regnum'.
745         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
746         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
747         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
748         `fpregset_t'.  Call amd64_supply_native_gregset instead of
749         supply_gregset.  Call x86_64_supply_fxsave instead of
750         supply_fpregset.
751         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
752         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
753         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
754         `fpregset_t'.  Call amd64_collect_native_gregset instead of
755         fill_gregset.  Call x86_64_collect_fxsave instead of
756         fill_fpregset.
757         (_initialize_am64fbsd_nat): Initialize
758         amd64_native_gregset32_reg_offset and
759         amd64_native_gregset64_reg_offset.
760         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
761
762         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
763         null pointer.  Fix typo in comment.
764
765         * regcache.c (supply_register): Reimplement to call
766         regcache_raw_supply.
767         (regcache_collect): Reimplement by calling regcache_raw_collect.
768
769 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
770
771         * regcache.c (register_buffer): Consitify first argument.
772         (regcache_raw_supply, regcache_raw_collect): New
773         functions.
774
775 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
776
777         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
778         by Nathan J. Williams.
779
780 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
781
782         * lin-lwp.c (wait_lwp): New function, copied from
783         stop_wait_callback.  Clean up.
784         (stop_wait_callback): Use wait_lwp.
785
786 2003-08-28  Andrew Cagney  <cagney@redhat.com>
787
788         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
789         flavour and disassembler options.
790         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
791         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
792         deprecated_tm_print_insn_info.
793         
794 2003-08-27  Andrew Cagney  <cagney@redhat.com>
795
796         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
797         Use target_read_memory.
798         (s390_get_frame_info): Update.  Do not reference
799         deprecated_tm_print_insn_info.
800         (s390_check_function_end, s390_is_sigreturn): Ditto.
801
802 2003-08-27  Andrew Cagney  <cagney@redhat.com>
803
804         * Makefile.in (cris-tdep.o): Update dependencies.
805         * cris-tdep.c: Include "gdb_assert.h".
806         (cris_gdbarch_init): Set print_insn.
807         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
808         (cris_delayed_get_disassembler): Simplify, directly call the
809         disassembler returned by cris_get_disassembler.
810         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
811         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
812         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
813         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
814         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
815         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
816         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
817         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
818         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
819         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
820         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
821         (gdb_print_insn_sparc): Delete function.
822         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
823         deprecated_tm_print_insn_info.
824         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
825         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
826         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
827         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
828         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
829         * s390-tdep.c (gdb_print_insn_s390): Delete function.
830         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
831         (s390_gdbarch_init): Set print_insn.
832
833 2003-08-27  Andrew Cagney  <cagney@redhat.com>
834
835         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
836         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
837         * infcall.c (call_function_by_hand): Convert the entry point
838         address into a code address.
839
840 2003-08-27  Andrew Cagney  <cagney@redhat.com>
841
842         * dsrec.c: Include "gdb_string.h".
843         * Makefile.in (dsrec.o): Update dependencies.
844
845 2003-08-27  Michael Chastain  <mec@shout.net>
846
847         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
848
849 2003-08-27  Andrew Cagney  <cagney@redhat.com>
850
851         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
852         (alpha_osf1_init_abi): Do not set call_dummy_address.
853
854 2003-08-27  David Carlton  <carlton@kealia.com>
855
856         From Randolph Chung  <tausq@debian.org>:
857         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
858         compiles with -Wformat-nonliteral -Werror.
859
860 2003-08-26  Jim Blandy  <jimb@redhat.com>
861
862         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
863         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
864         bfd_lookup_symbol, since we only want symbols in code sections.
865         (look_for_base): Pass zero as the SECT_FLAGS argument to
866         bfd_lookup_symbol, since we're not concerned about which section
867         the symbol is in.
868
869 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
870
871         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
872         we are frameless or the return address register is already known. 
873
874 2003-08-26  Andrew Cagney  <cagney@redhat.com>
875
876         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
877         in size.  Add comments.
878
879 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
880
881         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
882         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr(). 
883
884 2003-08-26  Jason Merrill  <jason@redhat.com>
885
886         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
887         case out of #ifdef MIPS block.
888
889 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
890
891         PR java/1322
892         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
893         available before calling SECT_OFF_TEXT.
894         * PROBLEMS: Remove description of java/1322.
895
896 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
897
898         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63, 
899         bof, and nat0-nat127 as pseudo-registers.
900         (ia64_frame_cache): New struct used to cache frame info.
901         (ia64_register_reggroup_p): New routine used to override default
902         register grouping so registers without names are still saved and 
903         restored.
904         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their 
905         pseudo values.
906         (ia64_pseudo_register_read): New routine to read pseudo-registers.
907         (ia64_pseudo_register_write): New routine to write pseudo-registers.
908         (ia64_alloc_frame_cache): New routine to create a new 
909         ia64_frame_cache.
910         (examine_prologue): Change prototype to add next_frame pointer.
911         Assume frameless until otherwise proven.  Verify that the cfm for
912         current frame matches the cfm that should occur for the prologues 
913         alloc insn and if equal, mark as not frameless.  At end of routine,
914         if not frameless, calculate registers for the previous frame and store
915         in the cache, if a cache is provided.
916         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
917         and pass 0 for next_frame.
918         (ia64_store_return_value): Change to use convert_typed_floating()
919         instead of calling ia64_convert_to_raw().
920         (ia64_extract_return_value): Change to use convert_typed_floating()
921         instead of calling ia64_convert_to_virtual().
922         (ia64_frame_cache): New routine to support new frame model.
923         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
924         (ia64_frame_sniffer): Ditto.
925         (ia64_sigtramp_frame_init_saved_regs): Ditto.
926         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
927         (ia64_sigtramp_frame_prev_register): Ditto.
928         (ia64_sigtramp_frame_sniffer): Ditto.
929         (ia64_frame_base_address): Ditto.
930         (ia64_extract_struct_value_address): Change to issue error message.
931         (ia64_frame_align): New routine to align sp.
932         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
933         (ia64_push_arguments): Removed.  Logic moved to 
934         ia64_push_dummy_call().
935         (ia64_push_return_address): Ditto.
936         (ia64_unwind_dummy_id): New function.
937         (ia64_unwind_pc): Ditto.
938         (ia64_convert_register_p): Ditto.
939         (ia64_register_to_value): Ditto.
940         (ia64_value_to_register): Ditto.
941         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
942         (ia64_register_byte, ia64_register_raw_size): Ditto.
943         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
944         (ia64_saved_pc_after_call): Ditto.
945         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
946         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
947         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
948         (ia64_register_convert_to_raw): Ditto.
949         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
950         (ia64_init_extra_frame_info): Ditto.
951         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
952         (ia64_gdbarch_init): Remove registering of deprecated functions that
953         are no longer used.  Add registration of new gdbarch functions.
954         Remove registering deprecated_write_sp.  Replace
955         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
956         Delete set_gdbarch_deprecated_register_convertible(),
957         set_gdbarch_deprecated_register_convert_to_virtual(), and
958         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
959         set_gdbarch_deprecated_register_size(),
960         set_gdbarch_deprecated_register_bytes(),
961         set_gdbarch_pcregnum(),
962         set_gdbarch_deprecated_register_byte(),
963         set_gdbarch_deprecated_register_raw_size(),
964         set_gdbarch_deprecated_max_register_raw_size(),
965         set_gdbarch_deprecated_register_virtual_size(),
966         and set_gdbarch_deprecated_max_register_virtual_size() calls.
967         Replace set_gdbarch_deprecated_extract_return_value() with
968         set_gdbarch_extract_return_value().  Remove calls to:
969         set_gdbarch_deprecated_saved_pc_after_call();
970         set_gdbarch_deprecated_frame_chain(),
971         set_gdbarch_deprecated_frame_saved_pc(),
972         set_gdbarch_deprecated_frame_init_saved_regs(),
973         set_gdbarch_deprecated_get_saved_register(),
974         set_gdbarch_deprecated_call_dummy_words(),
975         set_gdbarch_deprecated_sizeof_call_dummy_words(),
976         set_gdbarch_deprecated_init_extra_frame_info(),
977         set_gdbarch_deprecated_frame_args_address(),
978         set_gdbarch_deprecated_frame_locals_address(),
979         and set_gdbarch_deprecated_dummy_write_sp().
980         Add set_gdbarch_convert_register_p(),
981         set_gdbarch_register_to_value(),
982         set_gdbarch_value_to_register(),
983         set_gdbarch_push_dummy_call(),
984         set_gdbarch_frame_align(),
985         set_gdbarch_unwind_dummy_id(),
986         set_gdbarch_unwind_pc(),
987         frame_unwind_append_sniffer(),
988         frame_unwind_append_sniffer(),
989         and frame_base_set_default().
990
991 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
992
993         * configure.tgt: Document need for special "mipsisa64" handling.
994         (mipsisa64*-*-linux64): Handle as target linux64.
995         (mipsisa64*-*-*): Handle as target embed64.
996
997 2003-08-18  Michael Chastain  <mec@shout.net>
998
999         * PROBLEMS: Document pr gdb/1322, the Java anonymous
1000         objfile bug.
1001
1002 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
1003
1004         * i387-tdep.h: Update copyright date.
1005         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1006
1007         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1008         CFLAGS games to reflect reality.
1009
1010 2003-08-24  Andrew Cagney  <cagney@redhat.com>
1011
1012         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1013         GDB_MULTI_ARCH is always non-zero.
1014         * osabi.c (_initialize_gdb_osabi): Ditto.
1015         (gdbarch_init_osabi): Ditto.
1016         * sparc-tdep.c: Ditto for #if code.
1017
1018 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1019
1020         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1021         Update comments.
1022         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
1023         comments.
1024         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1025         x86_64_supply_fxsave.
1026         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1027         x86_64_supply_fxsave.
1028         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1029         x86_64_supply_fxsave.
1030
1031 2003-08-23  Andreas Jaeger  <aj@suse.de>
1032
1033         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1034         i387_supply_fxsave.
1035
1036 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1037
1038         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1039         i387_supply_register.
1040         (go32_fetch_registers): Adjust call to i387_supply_fsave.
1041         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1042         i387_supply_fsave.
1043         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1044         i387_supply_fxsave.
1045         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1046         i387_supply_fsave.
1047         * i386bsd-nat.c (supply_fpregset): Adjust call to
1048         i387_supply_fsave.
1049         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
1050         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
1051         supply_fpregset.
1052         (store_inferior_registers): Remove extraneous whitespace.  Call
1053         i387_fill_fsave instead of fill_fpregset.
1054         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1055         (supply_fpregset): Likewise.
1056         * i386v4-nat.c (supply_fpregset): Adjust call to
1057         i387_supply_fsave.
1058         * i386-interix-nat.c (supply_fpregset): Adjust call to
1059         i387_supply_fsave.
1060         * i386-linux-nat.c (supply_fpregset): Adjust call to
1061         i387_supply_fsave.
1062         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1063         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1064         i387supply_fsave and i387_supply_fxsave.
1065         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1066         Incorporate code from `i387_supply_register.
1067         (i387_supply_register): Remove.
1068         (i387_supply_fxsave): Add `regnum' argument.
1069         Update comments.
1070         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1071         prototype.
1072         (i387_supply_register): remove prototype.
1073         Update comments.
1074         
1075 2003-08-22  Michael Chastain  <mec@shout.net>
1076
1077         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1078         Add lines for files in gdb/testsuite/gdb.cp/* that are
1079         still not 8.3 unique.
1080
1081 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
1082
1083         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1084         TYPE_VPTR_FIELDNO is valid.
1085
1086 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
1087
1088         * utils.c (set_width_command): Remove prototypes.
1089         (set_screen_size): New prototype.
1090         (init_page_info): Simplify by fetching the screen size from
1091         Readline.  Call set_screen_size.
1092         (set_screen_size): New function.
1093         (set_width): Add missing whitespace in comment.
1094         (set_width_command): Call set_screen_size.
1095         (set_height_command): New function.
1096         (initialize_utils): Fix formatting.  Make "set height" command
1097         call set_height_command.  Remove redundant code that turns off
1098         pagination if output isn't a terminal.  Remove redundant call to
1099         set_width_command.
1100         
1101 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
1102
1103         * sparc64-tdep.h (sparc64_regnum): Fix comment.
1104         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1105         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1106         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1107         `case' keyword.
1108         (sparc64_register_info): Give the reister with number
1109         SPARC64_STATE_REGNUM a name.
1110         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1111         %asi and %ccr.
1112         (sparc64_push_dummy_call): Take BIAS into account when checking
1113         stcak alignment.
1114         (sparc_software_single_step): Remove assertions that check whether
1115         NPC and NNPC were zero.
1116         (sparc_supply_rwindow): Make public.  Merge functionality with
1117         sparc64_supply_rwindow.
1118         (sparc_fill_rwindow): Make public.  Merge functionality with
1119         sparc64_fill_rwindow.
1120         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1121         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1122         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1123         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1124         sparc_supply_rwindow instead of sparc64_supply_rwindow.
1125
1126         * reggroups.c: Add whitespace after declarations of local
1127         variables in functions.
1128
1129 2003-08-21  Michael Chastain  <mec@shout.net>
1130
1131         * gdbtypes.h: Change array bound type from an int to enum.
1132
1133 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1134
1135         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1136         * config/sparc/tm-sparc.h: Ditto.
1137         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1138         unconditionally.
1139         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1140
1141 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
1142
1143         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1144         (register_objfile_data, set_objfile_data, objfile_data): New
1145         prototypes.
1146         * objfiles.c (objfile_alloc_data, objfile_free_data): New
1147         prototypes.
1148         (allocate_objfile): Call objfile_alloc_data.
1149         (free_objfile): Call objfile_free_data.
1150         (struct objfile_data): New.
1151         (struct objfile_data_registration): New.
1152         (struct objfile_data_registry): New.
1153         (objfile_data_registry): New variable.
1154         (register_objfile_data): New function.
1155         (objfile_alloc_data, objfile_free_data): New functions.
1156         (set_objfile_data, objfile_data): New functions.
1157         * dwarf2-frame.c (dwarf2_frame_data): New variable.
1158         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1159         (_initialize_dwarf2_frame): New function and prototype.
1160
1161 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1162
1163         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1164         a specific architecture.
1165         * arch-utils.h (set_architecture_from_arch_mach): Delete
1166         declaration.
1167         (target_architecture_hook): Delete declaration.
1168         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1169         (default_float_format): Assume GDB_MULTI_ARCH.
1170         (default_double_format): Assume GDB_MULTI_ARCH.
1171         (set_endian_from_file): Delete function.
1172         (arch_ok): Delete function.
1173         (set_arch): Delete function.
1174         (set_architecture_from_arch_mach): Delete function.
1175         (set_architecture_from_file): Delete function.
1176         (set_architecture): Assume GDB_MULTI_ARCH.
1177         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1178
1179 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
1180
1181         Rewrite FreeBSD/sparc64 native configuration.
1182         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1183         * sparc64fbsd-nat.c: New file.
1184         * sparc64fbsd-tdep.c: New file.
1185         * sparc64-tdep.c sparc64-tdep.h: New files.
1186         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1187         sparc64fbsd-tdep.o): New dependencies.
1188         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1189         and sparc64fbsd-tdep.c.
1190         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1191         * config/sparc/fbsd.mh: Remove copyright notice.
1192         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1193         sparcbsd-nat.o.
1194         * config/sparc/fbsd.mt: Remove copyright notice.
1195         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1196         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1197         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1198         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1199         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1200         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1201         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1202         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1203         "sparc/tm-sp64.h".
1204         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1205         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1206
1207 2003-08-21  Michael Chastain  <mec@shout.net>
1208
1209         * symtab.h: Add doco on the space critical structures and
1210         some measurements of space usage.
1211
1212 2003-08-21  Michael Snyder  <msnyder@redhat.com>
1213
1214         * tracepoint.c (trace_dump_command): Trace break address
1215         is subject to DECR_PC_AFTER_BREAK.
1216         (set_traceframe_context): Make "trace_line" an int.
1217         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
1218         
1219 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1220
1221         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1222         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
1223         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
1224         argument passing.
1225         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
1226         functions, replace sh_push_dummy_call.
1227         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1228
1229 2003-08-20  Michael Chastain  <mec@shout.net>
1230
1231         * gdbtypes.h (struct main_type): Rearrange to save space.
1232
1233 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1234
1235         * trad-frame.c: Comment typo fix.
1236
1237 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1238             Kevin Buettner  <kevinb@redhat.com>
1239
1240         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1241         (frv_frame_init_saved_regs): Add declaration.
1242         (frame_extra_info): Add new field ``saved_regs''.
1243         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1244         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1245         Update frame related code.
1246         (frv_extract_struct_value_address): Adjust formatting.
1247         * Makefile.in (frv-tdep.o): Update dependencies.
1248         * config/frv/tm-frv.h (target_insert_watchpoint)
1249         (target_remove_watchpoint, target_insert_hw_breakpoint)
1250         (target_remove_hw_breakpoint): Delete these macros.
1251         (remote_insert_watchpoint, remote_remove_watchpoint)
1252         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1253         these declarations.
1254
1255 2003-08-20  Michael Chastain  <mec@shout.net>
1256
1257         * defs.h (ENUM_BITFIELD): New macro.
1258         * symtab.h (ENUM_BITFIELD): Use it.
1259         (BYTE_BITFIELD): Remove old macro, which was already disabled.
1260
1261 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
1262
1263         * MAINTAINERS (write after approval): Add myself.
1264         
1265 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1266
1267         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1268         * gdbarch.h, gdbarch.c: Re-generate.
1269         * infcall.c (call_function_by_hand): Adjust the SP by
1270         frame_red_zone_size before allocating any stack space.
1271         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1272         * x86-64-tdep.c (x86_64_frame_align): New function.
1273         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1274
1275         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1276         Remove code adjusting SP so that it skips over the Red Zone.
1277
1278 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1279
1280         * NEWS (New native configurations): Mention FreeBSD/amd64.
1281
1282 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1283
1284         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1285         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
1286         "m68k_frame_p".
1287         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1288
1289 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1290
1291         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1292
1293 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
1294
1295         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1296         Define.
1297         * i386-linux-nat.c: Include "linux-nat.h".
1298         (child_post_startup_inferior): New function.
1299         
1300 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1301
1302         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1303         at the start of a frameless function.  This probably fixes PR
1304         backtrace/1338.
1305
1306 2003-08-17  Michael Chastain  <mec@shout.net>
1307
1308         * symfile.c (find_sym_fns): Remove special case for apollo target.
1309
1310 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1311
1312         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1313         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1314         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1315         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1316         (linux_supports_tracevforkdone): New function.
1317         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1318         TRACEVFORKDONE.
1319         (child_follow_fork): Handle vfork.
1320         (linux_handle_extended_wait): Likewise.  Also handle exec.
1321         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1322         * NEWS: Mention fork tracing.
1323
1324 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1325
1326         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1327
1328 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1329
1330         * Makefile.in (i386-linux-nat.o): Update dependencies.
1331         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1332         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1333         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1334         * i386-linux-nat.c: Include "linux-nat.h".
1335         (child_post_startup_inferior): New function.
1336         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1337         * infptrace.c (kill_inferior): Wrap in #ifdef.
1338         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1339         attaching to each LWP.
1340         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1341         (init_lin_lwp_ops): Fill in some more operations.
1342         * linux-nat.h (linux_enable_event_reporting)
1343         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1344         prototypes.
1345         * linux-nat.c (linux_enable_event_reporting): New function.
1346         (child_post_attach, linux_child_post_startup_inferior)
1347         (child_post_startup_inferior, child_follow_fork)
1348         (linux_handle_extended_wait, kill_inferior): New functions.
1349
1350 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1351
1352         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1353         * gdbarch.h, gdbarch.c: Re-generate.
1354
1355 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
1356
1357         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1358
1359 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1360
1361         * NEWS: Mention that "set prompt-escape-char" was deleted.
1362         * top.c (get_prompt_1): Delete function.
1363         (gdb_prompt_escape):
1364         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
1365         prompt-escape-char" command.
1366         (MAX_PROMPT_SIZE): Delete macro.
1367         (get_prompt): Simplify, do not call get_prompt_1.
1368
1369 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1370
1371         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1372         -Werror.  -Wformat-nonliteral problems.
1373
1374 2003-08-15  J. Brobecker  <brobecker@gnat.com>
1375
1376         Further multiarching work mostly for hppa64-*-hpux11:
1377         * hppa-tdep.h: New file.
1378         * hppa-tdep.c: #include hppa-tdep.c.
1379         (hppa32_num_regs): Renamed from hppa_num_regs.
1380         (hppa64_num_regs): New constant.
1381         (hppa64_call_dummy_breakpoint_offset): New constant.
1382         (hppa32_call_dummy_length): New constant.
1383         (hppa64_call_dummy_length): New constant.
1384         (hppa32_stack_align): Make name 32bit explicit.
1385         (hppa32_register_virtual_type): Likewise.
1386         (hppa32_extract_return_value): Likewise.
1387         (hppa32_use_struct_convention): Likewise.
1388         (hppa32_store_return_value): Likewise.
1389         (hppa64_register_virtual_type): New function.
1390         (hppa64_extract_return_value): New function.
1391         (hppa64_use_struct_convention): New function.
1392         (hppa64_store_return_value): New function.
1393         (hppa_frame_locals_address): Remove declaration, function does
1394         not exist anymore.
1395         (hppa_register_byte): Add support for PA64 ABI.
1396         (hppa_gdbarch_init): Add support for PA64 ABI.
1397         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1398         Make name 32bit explicit.
1399         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1400         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1401         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1402         (hppa64_hpux_frame_base_before_sigtramp): New function.
1403         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1404         * config/pa/tm-hppa64.h: Remove macros that are no longer
1405         necessary now that the gdbarch vector is properly setup.
1406         Transform some macros into function calls. Some minor cleanup. 
1407         * config/pa/tm-hppah.h: Update function calls in macros
1408         following the function renaming in hppa-hpux-tdep.c.
1409         * Makefile.in (hppa_tdep_h): New variable.
1410         (hppa-tdep.o): Add dependency over hppa_tdep_h.
1411
1412 2003-08-14  Michael Snyder  <msnyder@redhat.com>
1413
1414         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1415
1416 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1417
1418         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1419         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1420         routine.
1421
1422 2003-08-13  Michael Snyder  <msnyder@redhat.com>
1423
1424         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1425         (frv_saved_pc_after_call): Use deprecated ftype.
1426         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1427         (frv_remote_translate_xfer_address): Remove.
1428         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1429
1430 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1431
1432         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1433         initialization after the common gdbarch initialization, not before.
1434
1435 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1436
1437         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1438         (ADDR_BITS_REMOVE): Remove, redundant.
1439
1440 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1441
1442         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1443         gdbarch method to clear the 2 low bits of text addresses.
1444
1445 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1446
1447         * Makefile.in (dsrec.o): Update dependencies.
1448         * dsrec.c: Include "gdb_assert.h".
1449         (make_srec): Use snprintf instead of sprintf, use a literal format
1450         string.
1451
1452 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1453
1454         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1455         FRAME_OBSTACK_ZALLOC.
1456
1457 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
1458
1459         * i386-tdep.c (i386_gdbarch_init): Enable default support for
1460         SSE registers.
1461
1462 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1463
1464         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1465         amd64fbsd_sc_reg_offset): Add extern declarations.
1466         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1467         declarations.
1468
1469 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
1470
1471         * MAINTAINERS (write after approval): Update my mail address.
1472
1473 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1474
1475         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1476
1477 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1478
1479         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1480         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1481         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1482         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1483         i386bsd_sc_reg_offset): Add extern declarations.
1484         * i386obsd-nat.c: Include "i386-tdep.h"
1485         (_initialize_i386obsd_nat): Remove extern declarations.
1486         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1487         declarations.
1488         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1489         declarations.
1490
1491         * i386-tdep.c (i386_register_to_value): Use get_frame_register
1492         instead of frame_read_register.
1493         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1494         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
1495         SP_REGNUM.
1496         (i386_frame_prev_register): Use frame_unwind_register_unsigned
1497         instead of frame_unwind_unsigned_register.  Use
1498         I386_EFLAGS_REGISTER instead of PS_REGNUM.
1499         (i386_get_longjmp_target): Use regcache_read_unsigned_register
1500         instead of read_register.  Use builtin_type_void_data_ptr instead
1501         of builtin_type_void_func_ptr when extracting the address of the
1502         jmp_buf.
1503         (i386_extract_return_value, i386_store_return_value,
1504         i386_pseudo_register_read, i386_pseudo_register_write): Use
1505         register_size instead REGISTER_RAW_SIZE.
1506
1507 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1508
1509         * infcall.c (call_function_by_hand): Use xstrprintf instead of
1510         sprintf.  Make "name" constant.
1511
1512 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1513
1514         * i387-tdep.c (i387_register_to_value): Use get_frame_register
1515         instead of frame_read_register.
1516         (i387_print_float_info): Use get_frame_register and
1517         get_frame_register_unsigned instead of frame_register_read.
1518
1519         * i386fbsd-nat.c: Include "i386-tdep.h".
1520         (child_resume): Make `eflags' an ULONGEST.  Use
1521         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1522         instead of register_read and register_write.
1523
1524         * i386bsd-nat.c (fetch_inferior_registers,
1525         store_inferior_registers): Don't use && at the end of a line.
1526         (_initialize_i386bsd_nat): Fix typo.
1527
1528         * frame.c (_initialize_frame): Add missing backslash.
1529
1530         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1531         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1532         and supply_register instead of manipulating the register buffer
1533         directly.
1534
1535         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1536         * config/i386/nm-i386sol2.h
1537         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1538
1539         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1540         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1541         instructions that GCC likes to mingle into the prologue.  Fixes
1542         gdb/1253 and gdb/1255.
1543
1544 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1545
1546         Fix GDB PR cli/926.
1547         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1548         * command.h (add_setshow_uinteger_cmd): Declare.
1549         * frame.c (set_backtrace_cmd): New function.
1550         (show_backtrace_cmd): New function.
1551         * frame.c (_initialize_frame): Replace "set/show
1552         backtrace-below-main" with "set/show backtrace past-main".  Add
1553         command "set/show backtrace limit".
1554         (backtrace_past_main): Rename "backtrace_below_main".
1555         (backtrace_limit): New variable.
1556         (get_prev_frame): Update.  Check the backtrace_limit.
1557
1558 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1559
1560         * defs.h (xstrprintf): Declare.
1561         * utils.c (xstrprintf): New function.
1562         * breakpoint.c (insert_breakpoints): Replace sprintf and
1563         non-literal format strings, with xstrprintf and cleanups.
1564         (delete_breakpoint,breakpoint_re_set): Ditto.
1565         (commands_command, insert_breakpoints): Ditto.
1566         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1567         (break_at_finish_command_1): Ditto.
1568
1569 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1570
1571         * MAINTAINERS (language support): List Adam Fedor as Objective C
1572         maintainer.
1573
1574 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1575
1576         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1577         are now multiarched.
1578
1579 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1580
1581         * config/pa/tm-hppa64.h: Remove lots of macros that are no
1582         longer necessary now that hppa64 is partially multiarch'ed.
1583
1584 2003-08-08  Andrew Cagney  <cagney@redhat.com>
1585
1586         * interps.c (interp_set): Check for a NULL "old_interp".
1587
1588 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1589
1590         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1591         (install-only): Support DESTDIR.
1592         (uninstall): Likewise.
1593         (install-gdbtk): Likewise.
1594
1595 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
1596
1597         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1598         contains something meaningful at all times.
1599
1600 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1601
1602         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1603
1604 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1605
1606         * MAINTAINERS (write after approval): Added self.
1607
1608 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1609
1610         * inferior.h (AT_SYMBOL): Define.
1611         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1612         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1613         * mips-tdep.c (mips_call_dummy_address): Delete function.
1614         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1615         set call_dummy_address.
1616
1617 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1618
1619         * language.c (op_error): Delete function.
1620         (binop_type_check): Delete function.
1621         * language.h (type_op_error, range_op_error): Delete macros.
1622         (op_error): Delete declaration.
1623
1624 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1625
1626         * interps.h (INTERP_MI2, INTERP_MI3): Define.
1627
1628 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
1629
1630         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1631         (x86_64_push_arguments): Skip the red zone.
1632
1633 2003-08-05  Andrew Cagney  <cagney@redhat.com>
1634
1635         * reggroups.c (reggroup_next): Check for the final entry.
1636
1637 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1638
1639         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1640         * cli/cli-script.c (define_command): Call query directly, instead
1641         of passing it a buffer.
1642         * ocd.c (ocd_error): Pass error a constant format string.
1643         * remote-mips.c (mips_error): Use fputs_filtered.
1644
1645         * solib-svr4.c (_initialize_svr4_solib): Update
1646         register_gdbarch_data call.
1647         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1648
1649         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1650         (register_gdbarch_data): Delete "free" parameter.  Update
1651         comments.
1652         * gdbarch.h, gdbarch.c: Re-generate.
1653         * reggroups.c (_initialize_reggroup): Update.
1654         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1655         * frame-base.c (_initialize_frame_base): Update.
1656         * frame-unwind.c (_initialize_frame_unwind): Update.
1657         * user-regs.c (_initialize_user_regs): Update.
1658         * remote.c (_initialize_remote): Update.
1659         * regcache.c (_initialize_regcache): Update.
1660
1661         * regcache.c (xfree_regcache_descr): Delete function.
1662         (_initialize_regcache): Update call to register_gdbarch_data.
1663         (init_regcache_descr, init_legacy_regcache_descr): Use
1664         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1665
1666         * remote.c (free_remote_state): Delete function.
1667         (_initialize_remote): Update register_gdbarch_data.
1668         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1669         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1670
1671 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1672
1673         * reggroups.c (struct reggroup_el): Define.
1674         (struct reggroups): Delete field "nr_group".  Replace array
1675         "group" with a "first" to "last" linked list.
1676         (reggroups_init): Update.  Allocate using gdbarch's obstack.
1677         (reggroups_free): Delete function.
1678         (add_group): Update.  Add "el" parameter.
1679         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1680         (default_groups): Update.
1681         (reggroup_next): Replace reggroups.
1682         (reggroups_dump): Update.
1683         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1684         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1685         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1686
1687 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
1688
1689         * Makefile.in (tui-interp.o): Update dependencies.
1690
1691 2003-08-04  David Carlton  <carlton@kealia.com>
1692
1693         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1694         to internal_error call.
1695         * source.c (forward_search_command): Add "%s" format argument.
1696         (reverse_search_command): Ditto.
1697         * top.c (quit_confirm): Ditto.
1698         * cli/cli-setshow.c (do_setshow_command): Ditto.
1699         * cp-valprint.c (cp_print_class_method): Replace
1700         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1701         (cp_print_class_member): Ditto.
1702         * event-top.c (command_line_handler): Ditto.
1703         * linux-proc.c (linux_info_proc_cmd): Ditto.
1704         * p-typeprint.c (pascal_type_print_base): Ditto.
1705         * p-valprint.c (pascal_object_print_class_method): Ditto.
1706         (pascal_object_print_class_member): Ditto.
1707         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1708         * remote.c (remote_cisco_section_offsets): Ditto.
1709         * top.c (command_line_input): Ditto.
1710         * utils.c (vwarning,error_stream,quit): Ditto.
1711         * valprint.c (print_floating,print_binary_chars)
1712         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1713
1714 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1715
1716         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1717
1718 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1719
1720         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1721         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1722         amd64fbsd-nat.c.
1723
1724 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1725
1726         * Makefile.in: Update all dependencies and definitions.
1727
1728 2003-08-02  Adam Fedor  <fedor@gnu.org>
1729
1730         * linespec.c (is_objc_method_format): New function
1731         (decode_line_1, locate_first_half): Use it.
1732         Fixes PR objc/1298
1733
1734 2003-08-01  Andrew Cagney  <cagney@redhat.com>
1735
1736         * NEWS: Mention that m32r is multi-arch.
1737         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1738         * configure.tgt: Recognize m32r-*-*.
1739         * config/m32r/tm-m32r.h: Delete file.
1740         * config/m32r/m32r.mt: New file.
1741         * m32r-rom.c (m32r_upload_command): Use hostent only when 
1742         gethostname succeeds, in order to avoid a compilation
1743         warning.
1744         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1745         compiler warning.
1746
1747 2003-08-01  Michael Snyder  <msnyder@redhat.com>
1748
1749         * sh-tdep.c (sh_frame_align): New gdbarch method.
1750         (sh_gdbarch_init): Set up frame_align method.
1751
1752 2003-07-31  Michael Snyder  <msnyder@redhat.com>
1753
1754         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1755         which is already covered by the new frames infrastructure.
1756
1757 2003-07-31  Andrew Cagney  <cagney@redhat.com>
1758
1759         * user-regs.c (struct user_reg): Add "next" link.
1760         (struct user_regs): Replace "user" with "first" and "last" links.
1761         (append_user_reg): Add pre-allocated "reg" parameter.
1762         (builtin_user_regs): Provide initial value for "last".
1763         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1764         (user_regs_init): Allocate memory from the gdbarch obstack.
1765         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1766         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1767         linked list.
1768         (usernum_to_user_reg): New function.
1769         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1770         (value_of_user_reg): Use usernum_to_user_reg.
1771         (user_regs_free): Delete function.
1772         (_initialize_user_regs): Update register_gdbarch_data call.
1773
1774 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
1775
1776         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1777
1778 2003-07-30  Michael Snyder  <msnyder@redhat.com>
1779
1780         * value.h (value_being_returned): Add a struct_addr argument.
1781         * infcall.c (call_function_by_hand): Pass struct_addr to 
1782         value_being_returned.
1783         * infcmd.c (print_return_value): Pass zero as struct_addr.
1784         * values.c (value_being_returned): If struct_addr is passed,
1785         use it instead of trying to recover it from the inferior.
1786
1787 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
1788
1789         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1790         the prologue analyzer won't need to attempt to extract the pc
1791         value from the woefully incomplete dummy frame.
1792         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1793         possible.  Disable code which modifies the frame.
1794
1795 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1796
1797         * annotate.c (annotate_breakpoints_headers): Restrict annotation
1798         to level 2.
1799         (annotate_breakpoints_table, annotate_record): Ditto.
1800         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1801         (annotate_field_name_end, annotate_field_value): Ditto.
1802         (annotate_field_end, annotate_frame_source_begin): Ditto.
1803         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1804         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1805         (annotate_frame_begin, annotate_frame_function_name): Ditto.
1806         (annotate_frame_address_end, annotate_frame_address): Ditto.
1807         (annotate_frame_args, annotate_frame_end): Ditto.
1808         (annotate_frame_where, annotate_arg_begin): Ditto.
1809         (annotate_arg_name_end, annotate_arg_value): Ditto.
1810         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1811         (annotate_function_call, annotate_signal_name): Ditto.
1812         (annotate_signal_string, annotate_signal_name_end): Ditto.
1813         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1814         (annotate_value_begin, annotate_value_history_value): Ditto.
1815         (annotate_value_history_end, annotate_value_end): Ditto.
1816         (annotate_display_begin, annotate_display_number_end): Ditto.
1817         (annotate_display_format, annotate_display_expression): Ditto.
1818         (annotate_display_expression_end, annotate_display_value): Ditto.
1819         (annotate_display_end, annotate_array_section_begin): Ditto.
1820         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1821         (annotate_elt, annotate_array_section_end): Ditto.
1822
1823 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1824
1825         * regcache.c (struct regcache_descr): Update comments on
1826         nr_raw_registers.
1827         (init_legacy_regcache_descr): Don't set nr_raw_registers or
1828         sizeof_raw_register_valid_p.
1829         (init_regcache_descr): Set nr_raw_registers and
1830         sizeof_raw_register_valid_p before calling
1831         init_legacy_regcache_descr.
1832
1833 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1834
1835         * mips-tdep.c (print_gp_register_row): Print the GPR's register
1836         MOD NUM_REGS.
1837
1838 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
1839
1840         * thread.c (info_threads_command): Use get_selected_frame ().
1841         Check that there is at least one non-sentinel frame.
1842
1843 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1844
1845         * m68hc11-tdep.c (struct frame_extra_info): Remove.
1846         (m68hc11_pop_frame): Remove.
1847         (m68hc11_frame_saved_pc): Remove.
1848         (m68hc11_frame_chain): Remove.
1849         (m68hc11_frame_init_saved_regs): Remove.
1850         (m68hc11_init_extra_frame_info): Remove.
1851         (m68hc11_store_struct_return): Remove.
1852         (m68hc11_saved_pc_after_call): Remove.
1853
1854 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1855
1856         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1857         frame unwind information.
1858         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1859         and adapted for frame unwinding.
1860         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1861         (m68hc11_unwind_pc): New function.
1862         (m68hc11_frame_unwind_cache): New function to analyze frames.
1863         (m68hc11_frame_this_id): New function to create new frame struct.
1864         (m68hc11_frame_prev_register): New function to unwind a register from
1865         the frame.
1866         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1867         (m68hc11_frame_p): New function for the above.
1868         (m68hc11_frame_base_address): New function to return fp of frame.
1869         (m68hc11_frame_args_address): Update for frame.
1870         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1871         (m68hc11_unwind_sp): New function.
1872         (m68hc11_unwind_dummy_id): New function.
1873         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1874         calls.
1875
1876 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1877
1878         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1879         (m68hc11_guess_from_prologue): Advance the pc and frame size only
1880         when we are beyond the current pc.
1881
1882 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1883
1884         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1885         from m68hc11_push_arguments.
1886         (m68hc11_push_arguments): Remove.
1887         (m68hc11_push_return_address): Remove.
1888         (m68hc11_gdbarch_init): Install the above; remove above deprecated
1889         handlers; remove deprecated_extra_stack_alignment_needed.
1890
1891 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1892
1893         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1894         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1895         REAL_PC and not the pointer.
1896         * hppa-hpux-tdep.c: Include frame.h
1897
1898 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1899
1900         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1901         GDB_MULTI_ACH_PARTIAL.
1902
1903 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1904
1905         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1906         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1907         operator at start and not end of line.
1908         (decode_prologue): Ditto.
1909         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1910         frame_unwind_register_unsigned instead of
1911         frame_unwind_unsigned_register.
1912         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1913         read_register.
1914         (m32r_push_dummy_call): Use register_size instead of
1915         REGISTER_RAW_SIZE.
1916         (m32r_frame_sniffer): Replace m32r_frame_p.
1917         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1918         * m32r-rom.c (report_transfer_performance): Delete extern
1919         declaration.
1920         (m32r_load, m32r_upload_command): Use print_transfer_performance
1921         instead of report_transfer_performance.
1922         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1923         / add_show_from_set.
1924
1925 2003-07-26  Andrew Cagney  <cagney@redhat.com>
1926
1927         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1928         store_return_value and extract_struct_value_address.
1929
1930 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
1931
1932         PR c++/1267
1933         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1934         NULL, default to the section containing PC.
1935
1936 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
1937
1938         * NEWS: Mention "regs" deprecated for m68hc11 too.
1939
1940         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1941         (m68hc11_print_register): New function to print out one register.
1942         (m68hc11_print_registers_info): New function to print registers.
1943         (show_regs): Deprecate and use the above.
1944         (m68hc11_gdbarch_init): Install the print_registers_info.
1945
1946 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
1947
1948         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1949         that we have a SIGTRAP before returning non-zero.
1950
1951 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
1952             Elena Zannoni  <ezannoni@redhat.com>
1953
1954         * linespec.c (decode_line_2): Avoid crash if 
1955         find_function_start_sal() returns empty record.
1956
1957 2003-07-23  Andreas Schwab  <schwab@suse.de>
1958
1959         * ia64-tdep.c (ia64_print_insn): New function.
1960         (ia64_gdbarch_init): Set print_insn to it.
1961         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1962         deprecated_tm_print_insn_info.
1963
1964 2003-07-22  Michael Snyder  <msnyder@redhat.com>
1965
1966         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1967         handle 8-bit returns (long long).
1968         (h8300h_extract_return_value): Ditto.
1969         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1970
1971 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1972
1973         * gdbarch.c Include "gdb_obstack.h".
1974         (struct gdbarch): Add an "obstack".
1975         (alloc_gdbarch_data): Allocate the gdbarch data using
1976         GDBARCH_OBSTACK_CALLOC.
1977         (free_gdbarch_data): Delete function.
1978         (gdbarch_obstack_zalloc): New function.
1979         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1980         Assert that the architecture is not initialized.
1981         (gdbarch_alloc): Allocate an obstack, allocate the architecture
1982         vector from the obstack.
1983         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1984         architecture obstack.
1985         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1986         (set_gdbarch_data): Assert that the data is not initialized.
1987         (struct gdbarch_data): Delete member "free".
1988         (register_gdbarch_data): Do not initialize "free".
1989         * gdbarch.h, gdbarch.c: Re-generate.
1990         
1991 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1992
1993         * configure.in (build_warnings): Add -Wformat-nonliteral.
1994         * configure: Re-generate.
1995
1996 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
1997
1998         * dwarf2loc.c (locexpr_describe_location): Fix typos.
1999
2000 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
2001
2002         * findvar.c (read_var_value): Remove case for thread local storage
2003         variables.  It is now entirely handled by the dwarf2 location
2004         expression code.
2005         * printcmd.c (address_info): Ditto.
2006         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2007         enumeration value.
2008         (struct symbol): Remove objfile field, which was used by
2009         LOC_THREAD_LOCAL_STATIC only.
2010         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2011         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2012         usage of objfile pointer.
2013         * dwarf2loc.c (locexpr_describe_location): Add case to handle
2014         thread local variables.
2015         Add include of objfiles.h.
2016         * dwarf2expr.c (execute_stack_op): Add comments about thread local
2017         storage variables.
2018         * Makefile.in (dwarf2loc.o): Update dependencies.
2019
2020 2003-07-22  Andrew Cagney  <cagney@redhat.com>
2021
2022         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2023         get_frame_base.
2024         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2025         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2026         (struct value): Add opaque declaration.
2027         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2028
2029 2003-07-21  Andrew Cagney  <cagney@redhat.com>
2030
2031         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2032         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2033
2034 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2035
2036         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
2037         regcache_cooked_read_unsigned instead of read_register.
2038         (m68hc11_saved_pc_after_call): Likewise.
2039         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2040         instead of write_register.
2041         (m68hc11_register_type): New function.
2042         (m68hc11_register_virtual_type): Remove.
2043         (m68hc11_store_return_value): Convert to use the regcache.
2044         (m68hc11_extract_struct_value_address): Likewise.
2045         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2046         m68hc11_register_type; undeprecate store_return_value and
2047         extract_struct_value_address.
2048
2049 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2050
2051         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2052         and translate to use regcache.
2053         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2054
2055 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2056
2057         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2058         * gdbarch.h, gdbarch.c: Re-generate.
2059         * i386-tdep.c (i386_gdbarch_init): Do not set
2060         DWARF2_BUILD_FRAME_INFO.
2061         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2062         unconditionally.
2063         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2064         DWARF2_BUILD_FRAME_INFO.
2065
2066 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2067
2068         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2069         * disasm.c (gdb_disassemble_info): Initilize di.arch.
2070
2071 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2072
2073         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2074         frame_unwind_address_in_block, instead of frame_pc_unwind.
2075         (dwarf2_frame_cache): Ditto.
2076
2077 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2078
2079         * user-regs.h (struct gdbarch): Declare opaque.
2080         * ui-out.h (struct ui_file): Declare opaque.
2081         * dwarf2-frame.h (struct frame_info): Declare opaque.
2082
2083 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
2084
2085         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
2086         #include "...".
2087         (procfs_meminfo): Change strerror to safe_strerror.
2088         (procfs_can_run): Remove K&R badness.
2089
2090 2003-07-17  Michael Snyder  <msnyder@redhat.com>
2091
2092         * remote-sim.c: Comment typo fix.
2093
2094 2003-07-17  Andrew Cagney  <cagney@redhat.com>
2095
2096         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
2097         configure.
2098         * sparc-tdep.c (sparc_intreg_size): Make non-static.
2099         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2100         GDB_MULTI_ARCH_PARTIAL.
2101
2102 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
2103
2104         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2105         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
2106         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2107
2108 2003-07-16  Theodore A. Roth  <troth@openavr.org>
2109
2110         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2111         found.
2112         (avr_frame_unwind_cache): Don't unwind FP for main.
2113         Update a comment.
2114         Save the computed prev_sp.
2115         (avr_saved_regs_unwinder): Remove function.
2116         (avr_frame_prev_register): Use PC unwind logic from 
2117         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2118
2119 2003-07-16  Andrew Cagney  <cagney@redhat.com>
2120
2121         * frame-base.h (frame_base_p_ftype): Delete definition.
2122         (frame_base_append_predicate): Delete declaration.
2123         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2124         (frame_unwind_append_predicate): Delete declaration.
2125         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2126         (append_predicate): Delete parameter "p".
2127         (frame_unwind_append_predicate): Delete function.
2128         (frame_unwind_append_sniffer): Update call to append_predicate.
2129         (frame_unwind_free): Delete function.
2130         (_initialize_frame_unwind): Pass NULL as "free" to
2131         register_gdbarch_data.
2132         (frame_unwind_init): Append the dummy_frame_sniffer.
2133         (frame_unwind_find_by_frame): Simplify.
2134         * frame-base.c (struct frame_base_table): Delete field "p".
2135         (append_predicate): Delete parameter "p".
2136         (frame_base_append_predicate): Delete function.
2137         (frame_base_append_sniffer): Update call to append_predicate.
2138         (frame_base_free): Delete function.
2139         (frame_base_find_by_frame): Simplify.
2140         (_initialize_frame_base): Pass NULL as "free" to
2141         register_gdbarch_data.
2142         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2143         (x86_64_sigtramp_frame_sniffer): Replace
2144         "x86_64_sigtramp_frame_p".
2145         (x86_64_init_abi): Set the frame unwind sniffers.
2146         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2147         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2148         (m68k_gdbarch_init): Set the frame unwind sniffers.
2149         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2150         "i386_sigtramp_frame_p".
2151         (i386_frame_sniffer): Replace "i386_frame_p".
2152         (i386_gdbarch_init): Set the frame unwind sniffers.
2153         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2154         (avr_gdbarch_init): Set the frame unwind sniffers.
2155         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2156         "alpha_sigtramp_frame_p"
2157         (alpha_heuristic_frame_sniffer): Replace
2158         "alpha_heuristic_frame_p".
2159         (alpha_gdbarch_init): Set the frame unwind sniffers.
2160         (alpha_dwarf2_init_abi): Ditto.
2161         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2162         "alpha_debug_frame_p".
2163         (alpha_mdebug_frame_base_sniffer): Replace
2164         "alpha_mdebug_frame_base_p".
2165         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2166         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2167         (d10v_gdbarch_init): Set the frame unwind sniffer.
2168         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2169         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2170         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2171         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2172         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2173         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2174
2175 2003-07-16  Michael Snyder  <msnyder@redhat.com>
2176
2177         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2178         should go thru sh_dsp_register_sim_regno, else the dsp regs
2179         will not get the right values.
2180
2181 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2182
2183         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2184         deprecated_store_floating by call to store_typed_floating.
2185         (sh_sh4_register_convert_to_raw): Substitute call to
2186         deprecated_extract_floating by call to extract_typed_floating.
2187
2188 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2189
2190         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2191
2192 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2193
2194         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2195         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2196         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
2197         as possible.
2198         (do_pseudo_register): Remove.
2199         (sh_push_dummy_code): New function.
2200         (sh64_store_struct_return): Rename from sh_store_struct_return.
2201         Only called for sh64 now.
2202         (sh_extract_struct_value_address): Regcache'ify.
2203         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
2204         and accomodate new tasks.
2205         (sh64_push_return_address): Rename from sh_push_return_address.
2206         Only called for sh64 now.
2207         (sh_default_extract_return_value): Rename from sh_extract_return_value.
2208         Regcache'ify.
2209         (sh3e_sh4_extract_return_value): Regcache'ify.
2210         (sh_default_store_return_value): Ditto.
2211         (sh3e_sh4_store_return_value): Ditto.
2212         (sh_default_register_byte): Remove.
2213         (sh_sh4_register_byte): Remove.
2214         (sh_default_register_raw_size): Remove.
2215         (sh_sh4_register_raw_size): Remove.
2216         (sh_register_virtual_size): Remove.
2217         (sh_sh3e_register_virtual_type): Remove.
2218         (sh_sh3e_register_type): New function.
2219         (sh_sh4_register_virtual_type): Remove.
2220         (sh_sh4_register_type): New function.
2221         (sh_default_register_virtual_type): Remove.
2222         (sh_default_register_type): New function.
2223         (do_fv_register_info): Add parameters to accomodate call from
2224         sh_print_registers_info.
2225         (do_dr_register_info): Ditto.
2226         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2227         Add parameters to accomodate call from sh_print_registers_info.
2228         (sh_do_fp_register): Ditto.
2229         (sh64_do_pseudo_register): Call do_dr_register_info,
2230         do_fv_register_info and sh_do_fp_register with default parameters.
2231         (sh_do_register): Add parameters to accomodate call from
2232         sh_print_registers_info.
2233         (sh_print_register): Ditto.
2234         (sh_print_registers_info): Rename from sh_do_registers_info.
2235         Add parameters to be used as gdbarch_print_registers_info
2236         implementation.  Accomodate removed do_pseudo_register function
2237         pointer.
2238         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2239         function pointer. Call sh_print_register with default parameters.
2240         (sh64_do_registers_info): Call sh_print_registers_info instead of
2241         sh_do_registers_info.
2242         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2243         detection of deprecated vs. non-deprecated functionality.
2244         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
2245         function pointer assignments by direct function calls.
2246
2247 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2248
2249         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2250         (frame_register_unwind, create_new_frame): Ditto.
2251         (legacy_get_prev_frame, get_frame_type): Ditto.
2252         (get_frame_base_address): Use frame_base_find_by_frame.
2253         (get_frame_locals_address): Use frame_base_find_by_frame.
2254         (get_frame_args_address): Use frame_base_find_by_frame.
2255         * frame-base.h (frame_base_sniffer_ftype): Declare.
2256         (frame_base_append_sniffer): Declare.
2257         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2258         * frame-base.c (append_predicate): Add a "sniffer" parameter.
2259         (frame_base_append_sniffer): New function.
2260         (frame_base_append_predicate): Add a NULL sniffer.
2261         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2262         (struct frame_base_table): Add "sniffer".
2263         (frame_base_free): Free the "sniffer" table.
2264         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2265         (frame_unwind_append_sniffer): Declare.
2266         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2267         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2268         (struct frame_unwind_table): Add "sniffer", delete "middle".
2269         (append_predicate): Add "sniffer" parameter, append the sniffer.
2270         (frame_unwind_init): Update append_predicate call.
2271         (frame_unwind_append_sniffer): New function.
2272         (frame_unwind_append_predicate): Update append_predicate call.
2273         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2274
2275 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2276
2277         * frame.c (get_prev_frame): Move disabled inside_entry_func to
2278         before code inhibiting repeated unwind attempts.  Add to
2279         commentary on that test's problems.
2280         * blockframe.c (inside_main_func): Look for "main" in the minimal
2281         symbol table.
2282         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2283         identical.
2284
2285 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2286
2287         * complaints.c (struct explanation): Define.
2288         (struct complaints): Change type of "explanation" to "struct
2289         explanation".
2290         (symfile_explanations): Convert to a "struct explanation" table.
2291         (vcomplaint): Update.
2292
2293 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
2294
2295         * x86-64-linux-nat.c (regmap): Removed.
2296         (supply_gregset, fill_gregset): Call 
2297         x86_64_linux_(fill,supply)_gregset functions.
2298         * x86-64-linux-tdep.c (USER_*): New defines.
2299         (user_to_gdb_regmap, x86_64_core_fns): New structure.
2300         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2301         New functions.
2302         (fetch_core_registers): Ditto.
2303         (_initialize_x86_64_linux_tdep): Call add_core_fns().
2304         * x86-64-linux-tdep.h: New file.
2305         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2306         and core-regset.o.
2307         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2308
2309 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2310
2311         * x86-64-tdep.c (x86_64_store_return_value): Use
2312         regcache_cooked_write_part instead of regcache_cooked_write.
2313
2314         * configure.host: Add x86_64-*-freebsd*.
2315         * configure.tgt: Add x86_64-*-freebsd*.
2316         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2317         * amd64fbsd-nat.c: New file.
2318         * amd64fbsd-tdep.c: New file.
2319         * config/i386/nm-fbsd64.h: New file.
2320         * config/i386/fbsd64.mh: New file.
2321         * config/i386/fbsd64.mt: New file.
2322
2323 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
2324
2325         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2326         `sc_regs_offset' and `sc_fpregs_offset'.
2327         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2328         SIGFRAME_FPREGSAVE_OFF): Remove defines.
2329         (alpha_sigtramp_register_address): Rewrite to use new members of
2330         `struct gdbarch_tdep'.
2331         (alpha_gdbarch_init): Initialize new members of struct
2332         gdbarch_tdep'.
2333         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2334         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2335         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2336         (alphafbsd_pc_in_sigtramp): Implement.
2337         (alphafbsd_sigtramp_offset): New function.
2338         (alphafbsd_sigcontext_addr): New function.
2339         (alphafbsd_init_abi): Initialize signal trampoline related members
2340         of `struct gdbarch_tdep'.
2341         (_initialize_alphafbsd_tdep): Add prototype.
2342
2343 2003-07-11  Theodore A. Roth  <troth@openavr.org>
2344
2345         * Makefile.in (install-only): Quote sed expression when generating
2346         transformed_name.
2347
2348 2003-07-11  Richard Henderson  <rth@redhat.com>
2349
2350         * Makefile.in (dwarf2-frame.o): Add complaints_h.
2351         * dwarf2-frame.c: Include complaints.h.
2352         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2353         variable initialization; return NULL on error.
2354         (decode_frame_entry): New.
2355
2356 2003-07-11  Andrew Cagney  <cagney@redhat.com>
2357
2358         * frame.h (frame_address_in_block): Delete declaration.
2359         * blockframe.c (frame_address_in_block): Delete function.
2360         (get_frame_block): Use get_frame_address_in_block.
2361         (block_innermost_frame): Ditto.
2362         * stack.c (print_frame, backtrace_command_1): Ditto.
2363
2364         * frame.h (get_frame_address_in_block): Declare.
2365         (frame_unwind_address_in_block): Declare.
2366         * frame.c (frame_unwind_address_in_block): New function.
2367         (get_frame_address_in_block): New function.
2368
2369 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2370
2371         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
2372         pre-default.   Note: re-generate has no effect.
2373         
2374 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2375
2376         * gdbarch.sh: When a variable, but not a function, compare against
2377         0.  Fix problem in previous patch.
2378         * gdbarch.c: Re-generate.
2379         
2380 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2381
2382         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
2383         functions against NULL, not 0.
2384         * gdbarch.c: Re-generate.
2385         
2386 2003-07-10  Fred Fish  <fnf@ninemoons.com>
2387
2388         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2389         null string instead of a null pointer.
2390         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2391
2392 2003-07-09  Michael Snyder  <msnyder@redhat.com>
2393
2394         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2395
2396 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
2397
2398         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2399         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2400         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2401         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2402         * x86-64-tdep.c: ... from here.
2403
2404 2003-07-09  Andreas Schwab  <schwab@suse.de>
2405
2406         * m68k-tdep.h (enum struct_return): Define.
2407         (struct gdbarch_tdep): Add struct_return.
2408         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2409         bytes are padded to the right, not to the left.  Pass struct value
2410         address in register %a1, not on stack.
2411         (m68k_use_struct_convention): New function.
2412         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
2413         struct_return in tdep to pcc_struct_return.
2414         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2415         reg_struct_return.
2416
2417 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
2418
2419         * somread.c (som_symfile_offsets): Fix compilation error.   
2420
2421 2003-07-09  Andrew Cagney  <cagney@redhat.com>
2422
2423         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2424         Add comments about the checks.
2425
2426 2003-07-08  Andrew Cagney  <cagney@redhat.com>
2427
2428         * Makefile.in: Make dependency section headers consistent.
2429         (config_h): Move to $BUILD headers section.
2430         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2431         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2432         (ada-exp.tab.c): Move to YACC/LEX section.
2433         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2434         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2435
2436 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
2437
2438         * nto-procfs.c: Cleaned up a bunch of ARI hits.
2439         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2440         of strerror with safe_strerror, use ISO C function definitions,
2441         and replace instances of sprintf with snprintf.
2442
2443 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2444
2445         * frame.c (get_prev_frame): Enable check for identical frames.
2446         Update comments.  Update error messages.
2447
2448 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2449
2450         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2451
2452 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2453
2454         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2455         sort_symtab_syms, no longer necessary.
2456
2457 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2458
2459         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2460
2461 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2462
2463         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2464         (mips_register_byte): Likewise.
2465
2466 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2467
2468         * Makefile.in (sparc_tdep_h): New.
2469         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2470         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2471         * sparc-linux-nat.c: Include "sparc-tdep.h".
2472         * sparc-nat.c: Likewise.
2473         * sparc-tdep.c: Likewise.
2474         * sparc64nbsd-nat.c: Likewise.
2475         * sparcnbsd-nat.c: Likewise.
2476         * sparcnbsd-tdep.c: Likewise.
2477         * sparc-tdep.h: New file.
2478         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2479         and sparc_npc_regnum.
2480
2481 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2482
2483         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2484         (mips_linux_cannot_store_register): List supported instead of
2485         unsupported registers.
2486
2487 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2488
2489         * disasm.c (dump_insns): Separate instructions from addresses.
2490
2491 2003-07-07  Andreas Schwab  <schwab@suse.de>
2492
2493         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2494         dependencies.
2495         * m68k-tdep.c (NUM_FREGS): Delete.
2496         (SIG_PC_FP_OFFSET): Delete.
2497         (TARGET_M68K): Delete.
2498         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2499         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2500         P_MOVEL_SP, P_MOVEML_SP): Define.
2501         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2502         P_TRAP): Delete.
2503         (m68k_register_raw_size): Delete.
2504         (m68k_register_virtual_size): Delete.
2505         (m68k_register_type): Renamed from m68k_register_virtual_type and
2506         add gdbarch argument.
2507         (m68k_store_struct_return): Delete.
2508         (m68k_deprecated_extract_return_value): Delete.
2509         (m68k_deprecated_extract_struct_value_address): Delete.
2510         (m68k_frame_chain): Delete.
2511         (m68k_frame_saved_pc): Delete.
2512         (m68k_fix_call_dummy): Delete.
2513         (m68k_push_dummy_frame): Delete.
2514         (m68k_pop_frame): Delete.
2515         (m68k_extract_return_value): New function.
2516         (m68k_store_return_value): Rewrite using regcache.
2517         (m68k_extract_struct_value_address): Rewrite using regcache.
2518         (m68k_push_dummy_call): New function.
2519         (struct m68k_frame_cache): Define.
2520         (m68k_alloc_frame_cache): New function.
2521         (m68k_analyze_frame_setup): New function.
2522         (m68k_analyze_register_saves): New function.
2523         (m68k_analyze_prologue): New function.
2524         (m68k_skip_prologue): Rewrite using above functions.
2525         (m68k_unwind_pc): New function.
2526         (m68k_frame_cache): New function.
2527         (m68k_frame_this_id): New function.
2528         (m68k_frame_prev_register): New function.
2529         (m68k_frame_unwind): New variable.
2530         (m68k_frame_p): New function.
2531         (m68k_sigtramp_frame_cache): New function.
2532         (m68k_sigtramp_frame_this_id): New function.
2533         (m68k_sigtramp_frame_prev_register): New function.
2534         (m68k_sigtramp_frame_unwind): New variable.
2535         (m68k_sigtramp_frame_p): New function.
2536         (m68k_frame_base_address): New function.
2537         (m68k_frame_base): New function.
2538         (m68k_unwind_dummy_id): New function.
2539         (fill_gregset): Use regcache_collect.
2540         (fill_fpregset): Likewise.
2541         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2542         defined.
2543         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
2544         deprecated_init_frame_pc, deprecated_store_struct_return,
2545         deprecated_extract_return_value, deprecated_store_return_value,
2546         deprecated_frame_chain, deprecated_frame_saved_pc,
2547         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2548         deprecated_register_virtual_size,
2549         deprecated_max_register_raw_size,
2550         deprecated_max_register_virtual_size,
2551         deprecated_register_virtual_type, deprecated_register_size,
2552         deprecated_register_byte, deprecated_register_bytes,
2553         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2554         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2555         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2556         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2557         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2558         deprecated_push_dummy_frame, deprecated_pop_frame,
2559         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
2560         only if SYSCALL_TRAP is defined.  Set extract_return_value,
2561         store_return_value, extract_struct_value_address, register_type,
2562         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
2563         predicates.
2564         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2565         M68K_MAX_REGISTER_SIZE): Define.
2566         (struct m68k_sigtramp_info): Define.
2567         (struct gdbarch_tdep): Add get_sigtramp_info.
2568         * m68klinux-nat.c (fetch_register): Use register_size instead of
2569         REGISTER_RAW_SIZE.  Don't put assignment in if.
2570         (store_register): Likewise.
2571         (fetch_inferior_registers): Likewise.
2572         (store_inferior_registers): Likewise.
2573         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2574         (m68k_linux_frame_saved_pc): Delete.
2575         (m68k_linux_sigcontext_reg_offset,
2576         m68k_linux_ucontext_reg_offset): Define.
2577         (m68k_linux_get_sigtramp_info): New function.
2578         (m68k_linux_extract_return_value): Rewrite using regcache.
2579         (m68k_linux_store_return_value): Likewise.
2580         (m68k_linux_extract_struct_value_address): Likewise.
2581         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2582         Don't set deprecated_frame_saved_pc,
2583         deprecated_extract_return_value, deprecated_store_return_value,
2584         deprecated_extract_struct_value_address.  Set
2585         extract_return_value, store_return_value,
2586         extract_struct_value_address.
2587
2588 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2589
2590         * expprint.c: Include "user-regs.h" instead of "frame.h".
2591         (print_subexp): Use user_reg_map_regnum_to_name, instead of
2592         frame_map_regnum_to_name.
2593         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2594         (frame_map_name_to_regnum): Simplify, call
2595         user_reg_map_name_to_regnum.
2596         (frame_map_regnum_to_name): Simplify, call
2597         user_reg_map_regnum_to_name.
2598         (frame_register_unwind): Update.
2599         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2600         (_initialize_frame_reg): Call user_reg_add_builtin.
2601         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2602         (value_of_register): Use value_of_user_reg.
2603         * eval.c (evaluate_subexp_standard): Update.
2604         * parse.c (write_dollar_variable): Update.
2605         * d10v-tdep.c (d10v_print_registers_info): Update.
2606         * infcmd.c (registers_info): Update.
2607         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2608         (builtin_regs_h): Delete macro.
2609         (user_regs_h): Define.
2610         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2611         (builtin-regs.o): Delete target.
2612         (user-regs.o): Specify dependencies.
2613         (expprint.o): Update dependencies.
2614         (findvar.o): Update dependencies.
2615         (frame.o): Update dependencies.
2616         (std-regs.o): Update dependencies.
2617
2618 2003-07-06  Christopher Faylor  <cgf@redhat.com>
2619
2620         * win32-nat.c (solib_symbols_add): Use one variable for all section
2621         address stuff.  Pass variable rather than address of variable to
2622         safe_symbol_file_add.
2623
2624 2003-07-06  Andreas Schwab  <schwab@suse.de>
2625
2626         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2627
2628 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
2629
2630         * rs6000-nat.c (vmap_symtab): Fix compilation error.
2631
2632 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2633
2634         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2635
2636 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2637
2638         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
2639         * config/i386/nto.mh: New file.
2640         * config/i386/nm-nto.h: New file.
2641         * configure.host: Add i[3456]86-*-nto*.
2642
2643 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
2644
2645         * remote-vx.c (vx_add_symbols): Fix compilation error.
2646
2647 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2648
2649         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2650         * gdbarch.h, gdbarch.c: Re-generate.
2651         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2652         (legacy_register_name): Declare.
2653         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2654         (REGISTER_NAME): Define.
2655         * sparc-tdep.c (legacy_register_name): New function.
2656         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2657         (REGISTER_NAME): Define.
2658         (hppa64_register_name): Declare.
2659         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2660         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2661         (hppa64_register_name): New function.
2662         (hppa_register_name): New function.
2663         * arch-utils.c (legacy_register_name): Delete.
2664         * arch-utils.h (legacy_register_name): Delete.
2665
2666 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
2667
2668         * cli/cli-interp.c (cli_interpreter_resume): Update the
2669         cli_uiout's stream to gdb_stdout.
2670
2671 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2672
2673         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2674         predicate.
2675         * gdbarch.h, gdbarch.c: Re-generate.
2676         * regcache.c (init_regcache_descr): Use legacy code when either
2677         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2678
2679 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2680
2681         * NEWS: Move "set logging" entry into GDB 6.0 section.
2682
2683 2003-07-02  Jim Blandy  <jimb@redhat.com>
2684
2685         * s390-tdep.c (struct frame_extra_info): new member:
2686         'stack_bought_valid'.
2687         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2688         initialize fextra_info->stack_bought.
2689         (s390_frameless_function_invocation): Don't trust the value of
2690         fextra_info_ptr->stack_bought unless
2691         fextra_info->stack_bought_valid is set.
2692
2693         New S390 prologue analyzer.
2694         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2695         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2696         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2697         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2698         compute_x_addr, s390_on_stack, s390_store,
2699         s390_get_signal_frame_info): New functions.
2700         (S390_NUM_SPILL_SLOTS): New macro.
2701         (s390_get_frame_info): Rewritten.
2702         (is_arg_reg): Deleted.
2703
2704         Break out the decoding of S/390 instructions into separate
2705         functions, to make it more legible, and easier to check
2706         against the spec.
2707         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2708         is_rx, is_rxe): New functions.
2709         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2710         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2711         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2712         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2713         enums for opcode values.  (Is this an improvement?)
2714
2715 2003-07-02  Andrew Cagney  <cagney@redhat.com>
2716
2717         * i386-tdep.c: Revert change committed as part of trad-frame code
2718         below.
2719
2720 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2721
2722         * breakpoint.c (insert_catchpoint): Make static.
2723
2724 2003-07-02  Andreas Schwab  <schwab@suse.de>
2725
2726         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2727         former ia64_push_arguments and ia64_push_return_address, and use
2728         regcache functions instead of read/write_register.
2729         (ia64_gdbarch_init): Set push_dummy_call instead of
2730         deprecated_push_arguments and deprecated_push_return_address.
2731
2732 2003-07-01  Andreas Jaeger  <aj@suse.de>
2733
2734         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2735         before the call.
2736         Set %rax only to number of SSE registers used.
2737
2738 2003-07-01  Andrew Cagney  <cagney@redhat.com>
2739
2740         * trad-frame.h: Update comments, a -1 .addr is reserved.
2741         (trad_frame_value_p, trad_frame_addr_p): Declare.
2742         (trad_frame_reg_p): Declare.
2743         (trad_frame_set_value): Rename trad_frame_register_value.
2744         (trad_frame_set_unknown): Declare.
2745         * trad-frame.c (trad_frame_realreg_p): New function.
2746         (trad_frame_addr_p, trad_frame_value_p): New function.
2747         (trad_frame_set_unknown): New function.
2748         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2749         (trad_frame_prev_register): Use trad_frame_realreg_p,
2750         trad_frame_addr_p and trad_frame_value_p.
2751         (trad_frame_set_value): Rename trad_frame_register_value.
2752         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2753         and trad_frame_set_value.
2754
2755 2003-06-30  Jim Blandy  <jimb@redhat.com>
2756
2757         Patch from IBM (authors unspecified, probably Ulrich Weigand and
2758         Gerhard Tonn) for argument passing on the S/390 and S/390x:
2759         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2760         for 16 registers, and then 32 more bytes.
2761         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2762         New macros.
2763         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2764         Move up in the file, since it's now used by is_simple_arg.
2765         (is_simple_arg): Don't assume registers are four bytes long.
2766         Exclude all double arguments.  Extended floats are not simple
2767         args.
2768         (is_power_of_two): New function.
2769         (pass_by_copy_ref): Call is_power_of_two, and check that the
2770         length fits in a register, rather than listing all the acceptable
2771         sizes.  Extended floats are not passed by reference.
2772         (s390_push_arguments): Don't assume registers are four bytes long.
2773         Reserve an argument register to point to the buffer for structures
2774         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
2775         S390_STACK_FRAME_OVERHEAD.
2776
2777 2003-06-30  Andreas Schwab  <schwab@suse.de>
2778
2779         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2780         format error message.
2781
2782 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
2783
2784         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2785
2786 2003-06-30  David Carlton  <carlton@kealia.com>
2787
2788         Band-aid for PR c++/1245.
2789         * Makefile.in (cp-support.o): Depend on complaints_h.
2790         * cp-support.c: Include complaints.h.  Add declaration for
2791         find_last_component.
2792         (cp_find_first_component): Separate code into
2793         cp_find_first_component_aux.
2794         (cp_find_first_component_aux): Call demangled_name_complaint.
2795         (demangled_name_complaint): New.
2796
2797 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2798
2799         * remote.c (remote_write_bytes): Explicitly compute and then use
2800         the payload size.  Update comments to reflect.  Fixes problem of
2801         GDB not sending small packets as found by Fred Fish.
2802
2803 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2804
2805         * remote.c (remote_async_wait): Fix -Wformat problem.
2806
2807 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2808
2809         * remote.c (remote_wait): Call error, and not warning, when the
2810         packet is corrupt.
2811         (remote_async_wait): Ditto.
2812
2813 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2814
2815         * sparc-tdep.c (sparc_y_regnum): Make external again.
2816
2817 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2818
2819         * cli/cli-logging.c (pop_output_files): Add void to function
2820         definition.
2821
2822 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2823
2824         * frame.c (frame_register_unwind): Use unsigned char when dumping
2825         the buffer contents.
2826
2827 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
2828
2829         * cli/cli-logging.c: New file.
2830         * cli-out.c (struct ui_out_data): Add original_stream.
2831         (cli_redirect): New function.
2832         (cli_ui_out_impl): Add cli_redirect.
2833         (cli_out_new): Initialize original_stream.
2834         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2835         (uo_redirect, ui_out_redirect): New.
2836         * ui-out.h (struct ui_out_impl): Add redirect member.
2837         (redirect_ftype): New.
2838         (ui_out_redirect): Add prototype.
2839         * Makefile.in: Add rules for cli-logging.c.
2840         * NEWS: Mention "set logging".
2841
2842 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2843
2844         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2845
2846 2003-06-27  Andrew Cagney  <cagney@redhat.com>
2847
2848         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2849         (m68hc11_gdbarch_init): Do not set call_dummy_address.
2850         * avr-tdep.c (avr_call_dummy_address): Delete function.
2851         (avr_gdbarch_init): Do not set call_dummy_address.
2852
2853 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2854
2855         * symfile.c (syms_from_objfile): Move variables to inner block.
2856         Move the checks for the non-mainline case a bit earlier to avoid
2857         doing some useless computations.
2858
2859 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2860
2861         * dwarfread.c (decode_modified_type): Gag new compiler warning.
2862
2863 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
2864
2865         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2866         sections.
2867
2868 2003-06-26  Michael Chastain  <mec@shout.net>
2869
2870         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2871         gdb/testsuite/gdb.c++/pr-1210.exp.
2872
2873 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2874
2875         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2876         altivec_expression.h and altivec_registers.h.
2877
2878 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2879
2880         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2881         info->mach when MIPS16.  Patch suggested by Fred Fish.
2882
2883 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2884
2885         * utils.c (internal_vproblem): Print the problem to a reason
2886         buffer and then pass to query.  Make the msg variable more local.
2887
2888 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2889
2890         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
2891         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
2892         * gdbarch.h, gdbarch.c: Re-generate.
2893         * frame-base.c (default_frame_args_address): Update.  Use
2894         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2895         not available.
2896         (default_frame_locals_address): Ditto for
2897         DEPRECATED_FRAME_LOCALS_ADDRESS.
2898         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2899         (vax_frame_num_args): Update.
2900         (vax_gdbarch_init): Update.
2901         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2902         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2903         * mcore-tdep.c (mcore_gdbarch_init): Update.
2904         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2905         * ia64-tdep.c (ia64_gdbarch_init): Update.
2906         * symtab.h (address_class): Update comments.
2907         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2908         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2909         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2910         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2911         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2912         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2913         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2914         * alpha-mdebug-tdep.c: Update.
2915         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2916
2917 2003-06-26  Andreas Jaeger  <aj@suse.de>
2918
2919         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2920         of SSE registers so that varargs functions work.  Rework handling
2921         of passing arguments on the stack.
2922         (x86_64_store_return_value): Return double and float values in SSE
2923         register.
2924
2925 2003-06-24  Michael Chastain  <mec@shout.net>
2926
2927         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2928         the "constructor breakpoints ignored" bug.
2929
2930 2003-06-25  David Carlton  <carlton@kealia.com>
2931
2932         * MAINTAINERS: Update e-mail address.
2933
2934 2003-06-24  Jim Blandy  <jimb@redhat.com>
2935
2936         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2937
2938         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2939         function.
2940         (ppc_linux_init_abi): Register it as the
2941         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2942
2943         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2944         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2945         method.
2946
2947         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2948         (ppc64_standard_linkage_target): Use it.
2949
2950 2003-06-23  Andrew Cagney  <cagney@redhat.com>
2951
2952         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2953         for 0 "int0" and 4 "int32" sized registers.
2954         * gdbtypes.c (builtin_type_int0): Define.
2955         (build_gdbtypes): Initialize builtin_type_int0.
2956         * gdbtypes.h (builtin_type_int0): Declare.
2957
2958 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
2959
2960         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2961         as characters are unsigned.
2962
2963 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2964
2965         PR gdb/1179
2966         * dwarfread.c (struct_type): Skip static fields without crashing.
2967
2968 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2969
2970         GDB 6.0 branch created.
2971         * README: Update.
2972         * PROBLEMS: Update.  Empty.
2973         * NEWS: Update.
2974
2975 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2976
2977         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2978         Suggested by Nick Hibma <n_hibma@webweaving.org>.
2979
2980 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2981
2982         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2983         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
2984         Velikov.
2985
2986 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2987
2988         * cli/cli-cmds.c (shell_escape): Silence warnings from old
2989         compilers.
2990
2991 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
2992
2993         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2994         argument of val_print.
2995         * cp-valprint.c (cp_print_value): Don't add the offset parameter
2996         to the address argument of baseclass_offset or target_read_memory.
2997         Do add it to the argument of cp_print_value_fields.
2998
2999 2003-06-21  Andrew Cagney  <cagney@redhat.com>
3000
3001         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3002         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3003         instead of 0..NUM_REGS.
3004         (mips_register_reggroup_p): New function.
3005         (mips_pseudo_register_write): New function.
3006         (mips_pseudo_register_read): New function.
3007         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3008         based on the register's type.
3009         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
3010         cooked.
3011         (mips_get_saved_register): Simplify.  Assert that REGNO is a
3012         pseudo / cooked.
3013         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
3014         (mips_register_type): Replace mips_register_virtual_type.  Map
3015         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
3016         when available.
3017         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
3018         that the register is cooked / virtual.
3019         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3020         Only get the extra info when needed.
3021         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3022         (mips32_heuristic_proc_desc): Fetch the cooked register.
3023         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3024         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3025         (mips_print_register): Use gdbarch_register_type, instead of
3026         REGISTER_VIRTUAL_TYPE.
3027         (print_gp_register_row): Use gdbarch_register_type, instead of
3028         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
3029         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3030         Print the pseudo / cooked registers.
3031         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3032         Print the pseudo / cooked registers.
3033         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
3034         REG_NUM is pseudo / cooked.
3035         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3036         (mips_n32n64_xfer_return_value): Ditto.
3037         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3038         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3039         (mips_register_sim_regno): New function.
3040         (mips_gdbarch_init): Set deprecated_register_byte,
3041         register_group_p, pseudo_register_write, pseudo_register_read,
3042         register_sim_regno, and num_pseudo_regs.  Set register_type,
3043         instead of register_virtual_type.
3044         * Makefile.in (mips-tdep.o): Update dependencies.
3045         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3046         REGISTER_VIRTUAL_TYPE.
3047         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3048         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3049         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3050         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3051         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3052
3053 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
3054
3055         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3056         * cli/cli-cmds.c: Include "gdb_vfork.h".
3057         (shell_escape): Use vfork.
3058
3059 2003-06-21  Andrew Cagney  <cagney@redhat.com>
3060
3061         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3062         32 bit floating-point register saves.
3063
3064         * frame.h (deprecated_unwind_get_saved_register): Delete.
3065         * frame.c (deprecated_unwind_get_saved_register): Delete function.
3066         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3067         and deprecated_get_next_frame_hack instead of
3068         deprecated_unwind_get_saved_register.
3069
3070         * mips-tdep.c (mips_dump_tdep): Do not print
3071         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3072
3073         * frame.c (get_frame_register): New function.
3074         (frame_unwind_register_signed): New function.
3075         (get_frame_register_signed): New function.
3076         (frame_unwind_register_unsigned): New function.
3077         (get_frame_register_unsigned): New function.
3078         * frame.h: Add comments on naming schema.
3079         (get_frame_register, frame_unwind_register_signed): Declare.
3080         (get_frame_register_signed, get_frame_register_signed): Declare.
3081         (frame_unwind_register_unsigned): Declare.
3082         (get_frame_register_unsigned): Declare.
3083
3084 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3085
3086         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3087
3088 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3089
3090         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3091         (avr_read_sp): Ditto.
3092
3093 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
3094
3095         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3096         * config/arm/nm-linux.h: Likewise.
3097         * config/arm/tm-linux.h: Likewise.
3098         * config/ia64/nm-linux.h: Likewise.
3099         * config/ia64/tm-ia64.h: Likewise.
3100         * config/s390/tm-linux.h: Likewise.
3101         * config/s390/tm-s390.h: Likewise.
3102         * s390-nat.c: Likewise.
3103         * s390-tdep.c: Likewise.
3104
3105         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3106         * config/ia64/linux.mt: Likewise.
3107         * config/m68k/linux.mh: Likewise.
3108         * config/mips/linux.mt: Likewise.
3109         * config/powerpc/linux.mh: Likewise.
3110         * config/sh/linux.mt: Likewise.
3111
3112 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
3113
3114         * solib.c (solib_open): Change tests for whether to search
3115         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
3116         comments.
3117
3118 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3119
3120         * avr-tdep.c (avr_frame_address): Delete function.
3121         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3122         set_gdbarch_frame_args_address.
3123
3124 2003-06-19  Andrew Cagney  <cagney@redhat.com>
3125
3126         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3127         (REGISTER_CONVERT_FROM_TYPE): Delete.
3128         (mips_register_convert_to_type): Delete declaration.
3129         (mips_register_convert_from_type): Delete declaration.
3130         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
3131         kernel/.
3132
3133 2003-06-19  Michael Snyder  <msnyder@redhat.com>
3134
3135         * linux-nat.h: New file.
3136         * linux-nat.c: Include linux-nat.h.
3137         * lin-lwp.c: Include linux-nat.h.
3138         Move struct lwp_info def to linux-nat.h.
3139         * linux-proc.c: Include linux-nat.h.
3140         (linux_make_note_section): Iterate over lwps instead of threads.
3141         (linux_do_thread_registers): Use lwp instead of merged pid.
3142         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3143         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3144         Add dependency on linux_nat_h.
3145
3146 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3147
3148         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3149
3150 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3151
3152         * varobj.c (get_type, get_target_type): Use check_typedef.
3153
3154 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3155
3156         * breakpoint.c (insert_catchpoint): Call internal_error.
3157
3158 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3159
3160         * avr-tdep.c (avr_push_dummy_code): Delete function.
3161         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3162
3163 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3164
3165         * arch-utils.c (default_prepare_to_proceed): Remove.
3166         (generic_prepare_to_proceed): Remove.
3167         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3168         (generic_prepare_to_proceed): Remove prototype.
3169         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3170         * gdbarch.c: Regenerate.
3171         * gdbarch.h: Regenerate.
3172         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3173         * hppah-nat.c (hppa_switched_threads): Remove.
3174         * infrun.c (prepare_to_proceed): New static function, copied from
3175         generic_prepare_to_proceed.  Remove select_it argument.
3176         (proceed): Call prepare_to_proceed.
3177         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3178         variables.
3179         (ptrace_wait): Don't set the removed variables.
3180         (hppa_switched_threads): Remove.
3181         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3182         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3183         (lin_lwp_prepare_to_proceed): Remove prototype.
3184         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3185         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3186
3187 2003-06-18  Theodore A. Roth  <troth@openavr.org>
3188
3189         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3190         trad-frame.h.
3191         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3192         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3193         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3194         (AVR_PROLOGUE_*): Enumerate prologue types.
3195         (struct frame_extra_info): Remove.
3196         (struct avr_unwind_cache): Define.
3197         (avr_write_sp): Delete function.
3198         (avr_read_fp): Ditto.
3199         (avr_init_extra_frame_info): Ditto.
3200         (avr_pop_frame): Ditto.
3201         (avr_frame_saved_pc): Ditto.
3202         (avr_saved_pc_after_call): Ditto.
3203         (avr_push_return_address): Ditto.
3204         (avr_frame_chain): Ditto.
3205         (avr_store_struct_return): Ditto.
3206         (avr_push_arguments): Ditto.
3207         (avr_scan_prologue): Update comments. Changed to set up the info for
3208         cache unwinding. Now returns end of prologue PC.
3209         (avr_skip_prologue): Better handling of functions lacking a prologue
3210         by using avr_scan_prologue.
3211         (avr_scan_arg_moves): New function.
3212         (avr_saved_regs_unwinder): Ditto.
3213         (avr_frame_unwind_cache): Ditto.
3214         (avr_unwind_pc): Ditto.
3215         (avr_frame_this_id): Ditto.
3216         (avr_frame_prev_register): Ditto.
3217         (avr_frame_p): Ditto.
3218         (avr_frame_base_address ): Ditto.
3219         (avr_unwind_dummy_id): Ditto.
3220         (avr_push_dummy_code): Ditto.
3221         (push_stack_item): Ditto.
3222         (pop_stack_item): Ditto.
3223         (avr_push_dummy_call): Ditto.
3224         (struct stack_item): Define.
3225         (avr_frame_unwind): Declare structure.
3226         (avr_frame_base): Ditto.
3227         (avr_gdbarch_init): Remove calls to
3228         set_gdbarch_deprecated_init_frame_pc,
3229         set_gdbarch_deprecated_target_read_fp,
3230         set_gdbarch_deprecated_dummy_write_sp,
3231         set_gdbarch_deprecated_fp_regnum,
3232         set_gdbarch_deprecated_push_arguments,
3233         set_gdbarch_deprecated_push_return_address,
3234         set_gdbarch_deprecated_pop_frame,
3235         set_gdbarch_deprecated_store_struct_return,
3236         set_gdbarch_deprecated_frame_init_saved_regs,
3237         set_gdbarch_deprecated_init_extra_frame_info,
3238         set_gdbarch_deprecated_frame_chain,
3239         set_gdbarch_deprecated_frame_saved_pc,
3240         set_gdbarch_deprecated_saved_pc_after_call.
3241         Add calls to set_gdbarch_push_dummy_call,
3242         set_gdbarch_push_dummy_code,
3243         frame_unwind_append_predicate,
3244         frame_base_set_default,
3245         set_gdbarch_unwind_dummy_id,
3246         set_gdbarch_unwind_pc.
3247         Wrap a long line.
3248
3249 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
3250
3251         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3252         registers for H8/300S.
3253         (h8300_print_registers_info): Ditto.
3254         (h8300_gdbarch_init): Accommodate register count for H8/300S.
3255
3256 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
3257
3258         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3259         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3260         (lin_lwp_wait): Likewise.  Update comments.
3261         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3262         (pull_pid_from_list, linux_record_stopped_pid): New.
3263
3264 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3265
3266         * ada-lang.c (scan_discrim_bound): Name first argument.
3267         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3268         declared by ALL_BLOCK_SYMBOLS.
3269
3270 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3271
3272         * ada-tasks.c (find_function_in_inferior): Don't declare it.
3273         ("regcache.h"): Include it.
3274         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3275
3276 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3277
3278         * NEWS: Mention gdbserver detach change and "disconnect" command.
3279         * infcmd.c (disconnect_command): New function.
3280         (_initialize_infcmd): Add ``disconnect'' command.
3281         * remote.c (remote_async_detach): Delete.
3282         (remote_detach): Merge remote_async_detach.
3283         (remote_disconnect): New.
3284         (init_remote_ops): Set to_disconnect.
3285         (init_remote_cisco_ops): Likewise.
3286         (init_remote_async_ops): Likewise.  Use remote_detach.
3287         * target.c (cleanup_target): Default to_disconnect.
3288         (update_current_target): Inherit to_disconnect.
3289         (target_disconnect, debug_to_disconnect): New functions.
3290         (setup_target_debug): Set to_disconnect.
3291         * target.h (struct target_ops): Add to_disconnect.
3292         (target_disconnect): Add prototype.
3293
3294 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3295
3296         * breakpoint.c (insert_catchpoint): New function.
3297         (insert_breakpoints): Use catch_exceptions to call
3298         insert_catchpoint.  Disable catchpoints if they fail to insert.
3299
3300 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3301
3302         * symfile.c (reread_symbols): Clear sym_private.
3303
3304 2003-06-17  Andrew Cagney  <cagney@redhat.com>
3305
3306         * trad-frame.h (struct frame_info): Add opaque declaration.
3307         * remote-fileio.h (struct cmd_list_element): Add opaque
3308         declaration.
3309         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3310         comments.
3311
3312 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3313
3314         * remote.c (remote_prepare_to_store): Replace call to
3315         deprecated_read_register_bytes with multiple regcache_raw_read
3316         calls.
3317
3318 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3319
3320         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3321         (nto_find_and_open_solib): Likewise.
3322         (nto_init_solib_absolute_prefix): Likewise.
3323         (_initialize_nto_tdep): Fix indentation.
3324
3325 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3326
3327         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3328
3329 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3330
3331         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3332
3333 2003-06-17  Jim Blandy  <jimb@redhat.com>
3334
3335         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3336
3337 2003-06-16  Theodore A. Roth  <troth@openavr.org>
3338
3339         * avr-tdep.c (avr_extract_return_value): New function.
3340         (avr_gdbarch_init): Set extract_return_value method.
3341
3342 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3343
3344         * frame.h (deprecated_get_next_frame_hack): Declare.
3345         * frame.c (legacy_saved_regs_prev_register): Only require
3346         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
3347         there are always saved regs.
3348         (deprecated_generic_get_saved_register): Do not require
3349         DEPRECATED_FRAME_INIT_SAVED_REGS.
3350         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3351         use frame ID unwind instead.
3352         (deprecated_get_next_frame_hack): New function.
3353
3354 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3355
3356         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
3357         (h8300_push_dummy_call): ...this function.  Some minor optimization.
3358         (h8300_push_return_address): Remove.
3359         (h8300_gdbarch_init): Remove calls to
3360         set_gdbarch_deprecated_dummy_write_sp,
3361         set_gdbarch_deprecated_push_arguments and
3362         set_gdbarch_deprecated_push_return_address.
3363         Add call to set_gdbarch_push_dummy_call.
3364
3365 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3366
3367         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3368         (E_PSEUDO_EXR_REGNUM): Ditto.
3369         (h8300_is_argument_spill): Check for instructions moving argument
3370         registers into safe registers.
3371         (h8300_skip_prologue): Check for stm instruction to push registers
3372         used for register variables onto stack.
3373         (gdb_print_insn_h8300): Remove.
3374         (h8300_examine_prologue): Add a comment.
3375         (h8300_register_name): Take pseudo registers into account.
3376         (h8300s_register_name): Ditto.
3377         (h8300sx_register_name): Ditto.
3378         (h8300_print_register): Ditto.
3379         (h8300_print_registers_info): Define "nice" printing order.
3380         (h8300_saved_pc_after_call): Take pseudo registers into account.
3381         (h8300_register_type): Ditto.  Return type used for remote connection
3382         when requesting real CCR or EXR register, return actual type when
3383         requesting pseudo CCR or EXR.
3384         (h8300_pseudo_register_read): New function.
3385         (h8300_pseudo_register_write): Ditto.
3386         (h8300_dbg_reg_to_regnum): Ditto.
3387         (h8300s_dbg_reg_to_regnum): Ditto.
3388         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3389         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3390         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3391         set_gdbarch_print_insn architecture dependent.
3392         Call set_gdbarch_pseudo_register_read and
3393         set_gdbarch_pseudo_register_write.
3394         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3395
3396 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3397
3398         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3399         * gdbarch.h, gdbarch.c: Re-generate.
3400         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3401         * s390-tdep.c (s390_gdbarch_init): Update.
3402         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3403         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3404         * mips-tdep.c (mips_gdbarch_init): Update.
3405         * mcore-tdep.c (mcore_gdbarch_init): Update.
3406         * cris-tdep.c (cris_gdbarch_init): Update.
3407         * infcall.c (call_function_by_hand): Update.
3408         * ia64-tdep.c (ia64_push_arguments): Update comment.
3409         * frame.c (legacy_get_prev_frame): Do not assume
3410         SAVE_DUMMY_FRAME_TOS_P.
3411         * dummy-frame.c (find_dummy_frame): Update comment.
3412
3413 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3414
3415         * regcache.c (do_cooked_read): Do not use register_valid_p.
3416
3417 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3418
3419         * avr-tdep.c (avr_register_type): Remove a blank line.
3420         (avr_scan_prologue): Correct some comments.
3421
3422 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3423
3424         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3425         prologue types.
3426         Properly scan prologues generated by gcc with the -mcall-prologues
3427         option.
3428         Add code to scan -mcall-prologues for mega devices.
3429
3430 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3431
3432         * avr-tdep.c (avr_register_byte): Delete function.
3433         (avr_register_raw_size): Delete function.
3434         (avr_register_virtual_size): Delete function.
3435         (avr_register_virtual_type): Delete function.
3436         (avr_register_type): New function.
3437         (avr_address_to_pointer): Remove unused code.
3438         (avr_read_fp): Need to read FP as two separate bytes due to change to
3439         avr_register_type() usage.
3440         (avr_gdbarch_init): Don't set deprecated_register_size.
3441         Don't set deprecated_register_bytes.
3442         Don't set deprecated_register_byte.
3443         Don't set deprecated_register_raw_size.
3444         Don't set deprecated_max_register_raw_size.
3445         Don't set deprecated_register_virtual_size.
3446         Don't set deprecated_max_register_virtual_size.
3447         Don't set deprecated_register_virtual_type.
3448         Set register_type method.
3449
3450 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
3451
3452         * Makefile.in (linux-nat.o): Add rule.
3453         * linux-nat.c: New file.
3454         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3455         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3456         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3457         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3458         * config/arm/linux.mh (NATDEPFILES): Likewise.
3459         * config/i386/linux.mh (NATDEPFILES): Likewise.
3460         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3461         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3462         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3463         * config/mips/linux.mh (NATDEPFILES): Likewise.
3464         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3465         * config/s390/s390.mh (NATDEPFILES): Likewise.
3466         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3467
3468 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3469
3470         * i387-tdep.c: Reorder includes, fix some whitespace issues and
3471         replace out-of-date comment.
3472
3473 2003-06-15  Andrew Cagney  <cagney@redhat.com>
3474
3475         * rdi-share/host.h (Fail): Change to a varargs function.
3476         * remote-rdi.c (Fail): Update.
3477
3478 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3479
3480         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3481         (i386_convert_register_p, i386_register_to_value,
3482         i386_register_from_value): Handle types longer than 8 bytes.
3483
3484 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3485
3486         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3487         Move floating-point code to new function in i387-tdep.c.
3488         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3489         New functions containing code moved here from i386-tdep.c.
3490         * i387-tdep.h: Add opaque declaration for `struct type'.
3491         (i387_register_to_value, i387_value_to_register): New prototypes.
3492         * x86-64-tdep.c (x86_64_convert_register_p): New function.
3493         (x86_64_init_abi): Set convert_register_p, register_to_value and
3494         value_to_register here.
3495
3496 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3497
3498         * mips-tdep.c (mips_register_to_value): Make static.
3499         (mips_value_to_register): Make static.
3500         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3501         * ia64-tdep.c (ia64_register_raw_size): Make static.
3502         (ia64_register_virtual_size): Make static.
3503         (ia64_register_byte): Make static.
3504         * i387-tdep.c: Include "i387-tdep.h".
3505         (print_387_control_word): Delete function.
3506         (print_387_status_word): Delete function.
3507         (print_387_status_bits): Delete function.
3508         (print_387_control_bits): Delete function.
3509         * Makefile.in (i387-tdep.o): Update dependencies.
3510         * rdi-share/host.h (Fail): Declare.
3511         * remote-rdi.c (Fail): Update to match declaration.
3512
3513 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3514
3515         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3516         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3517         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3518         * config/djgpp/fnchange.lst: Delete "remote-array.c".
3519         * README: Delete reference to remote-array.
3520         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3521         (remote-array.o): Delete target.
3522         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3523         * remote-array.c: Delete file.
3524
3525 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3526             Mark Kettenis  <kettenis@gnu.org>
3527
3528         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3529         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3530         parameter with "frame".
3531         * gdbarch.h, gdbarch.c: Re-generate.
3532         * frame.h (put_frame_register): Declare.
3533         * frame.c (put_frame_register): New function.
3534         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3535         (legacy_register_to_value): Rewrite, use "frame" to get the
3536         register value.
3537         (legacy_value_to_register): Rewrite, use "frame" to find the
3538         register's location before storing.
3539         * arch-utils.h (legacy_convert_register_p): Update.
3540         (legacy_register_to_value, legacy_value_to_register): Update.
3541         * findvar.c (value_from_register): Rewrite, eliminate use of
3542         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3543         "frame" to REGISTER_TO_VALUE.
3544         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3545         lval_reg_frame_relative + lval_register branch of the switch.  Do
3546         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
3547         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3548         I386_EDI_REGNUM): New defines.
3549         (i386_next_regnum, i386_convert_register_p,
3550         i386_register_to_value, i386_value_to_register): New functions.
3551         (i386_register_convertible, i386_register_convert_to_virtual,
3552         i386_convert_to_raw): Remove functions.
3553         (i386_gdbarch_init): Set convert_register_p, register_to_value and
3554         value_to_register instead of register_convertible,
3555         register_convert_to_virtual and register_convert_to_raw.
3556         * mips-tdep.c (mips_convert_register_p): New function.
3557         (mips_value_to_register): Replace mips_register_convert_from_type.
3558         (mips_register_to_value): Replace mips_register_convert_to_type.
3559         (mips_gdbarch_init): Set conver_register_p, value_to_register and
3560         register_to_value.
3561         * alpha-tdep.c (alpha_convert_register_p): Update.
3562         (alpha_value_to_register): Update, store the register.
3563         (alpha_register_to_value): Update, fetch the register.
3564
3565 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3566
3567         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3568         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3569         Don't set deprecated_call_dummy_words.
3570         Remove commented out set_gdbarch_believe_pcc_promotion() call.
3571         Don't set remote_translate_xfer_address.
3572         (avr_io_reg_read_command): Remove commented out debug printf.
3573         Wrap a long line.
3574
3575 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3576
3577         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3578         causes gdb to seg fault.
3579
3580 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
3581
3582         * sparc-nat.c (fetch_inferior_registers): Correct
3583         a reference to "registers".
3584
3585 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
3586
3587         * Makefile.in (exc_request_U_h): Define
3588         (exc_request_S_h): Likewise.
3589         (msg_reply_S_h): Likewise.
3590         (msg_U_h): Likewise.
3591         (notify_S_h): Likewise.
3592         (process_reply_S_h): Likewise.
3593         (gnu-nat.o): Depend on gdb_obstack_h
3594         * gnu-nat.c: Include "gdb_obstack.h".
3595
3596 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3597
3598         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3599         * gdbarch.h, gdbarch.c: Re-generate.
3600
3601 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3602
3603         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
3604         when deprecated REGISTER macros can be deleted.
3605         * gdbarch.h, gdbarch.c: Re-generate.
3606
3607 2003-06-13  Jim Blandy  <jimb@redhat.com>
3608
3609         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3610         Linux entry point symbols for _dl_debug_state, too.
3611
3612 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3613
3614         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3615         available, do not use the FP register, and always save the TOS.
3616         * dummy-frame.c (dummy_frame_this_id): Do not assert
3617         SAVE_DUMMY_FRAME_TOS.
3618         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3619         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3620         (i386_push_dummy_call): Add 8 to the returned SP.
3621         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3622         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3623         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3624         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3625         (x86_64_push_dummy_call): Return "sp + 16".
3626         (x86_64_init_abi): Do not set save_dummy_frame_tos.
3627         * alpha-tdep.c (alpha_gdbarch_init): Do not set
3628         save_dummy_frame_tos.
3629
3630 2003-06-13  Jim Blandy  <jimb@redhat.com>
3631
3632         * frv-tdep.c (frv_use_struct_convention): Delete static
3633         declaration for function deleted in my change of 2003-06-12.
3634
3635 2003-06-13  Theodore A. Roth  <troth@openavr.org>
3636
3637         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3638         (avr_pointer_to_address): Shift code addrs left 1 bit.
3639         (avr_convert_from_func_ptr_addr): Delete function since operation is
3640         better handled by avr_address_to_pointer and avr_pointer_to_address.
3641         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3642
3643 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
3644
3645         From Kelley Cook  <kelleycook@wideopenwest.com>:
3646         * configure.host: Accept i[34567]86 variants.
3647         * configure.tgt: Likewise.
3648         * nlm/configure.in: Likewise.
3649         * nlm/configure: Regenerated.
3650
3651 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3652
3653         * arm-tdep.c (solib-svr4.h): Dont' include it.
3654         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3655         * arm-linux-tdep.c: ... here.  Make static.
3656         (arm_linux_init_abi): Register it.
3657         (solib-svr4.h): Include it.
3658         * Makefile.in: Update dependencies.
3659         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3660         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3661
3662 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3663
3664         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3665         indicate registers used for return values.
3666         (struct frame_extra_info): Drop args_pointer and locals_pointer.
3667         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3668         members.
3669         (h8300_init_extra_frame_info): Ditto.
3670         (h8300_frame_locals_address): Removed.
3671         (h8300_frame_args_address): Removed.
3672         (h8300_extract_return_value): Use new regcache structure. Only care
3673         for 16 bit CPUs.
3674         (h8300h_extract_return_value): Same function for 32 bit CPUs.
3675         (h8300_store_return_value): Use new regcache structure. Only care
3676         for 16 bit CPUs.
3677         (h8300h_store_return_value): Same function for 32 bit CPUs.
3678         (h8300_store_struct_return): Removed.
3679         (h8300_extract_struct_value_address): Use new regcache structure.
3680         (h8300h_extract_struct_value_address): Removed.
3681         (h8300_push_dummy_code): New function.
3682         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3683         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
3684         set_gdbarch_store_return_value architecture dependent.
3685         Call set_gdbarch_push_dummy_code and
3686         set_gdbarch_extract_struct_value_address.
3687         Remove calls to set_gdbarch_frame_args_address,
3688         set_gdbarch_frame_locals_address,
3689         set_gdbarch_deprecated_store_struct_return,
3690         set_gdbarch_deprecated_extract_return_value,
3691         set_gdbarch_deprecated_extract_struct_value_address,
3692         set_gdbarch_deprecated_call_dummy_words and
3693         set_gdbarch_deprecated_sizeof_call_dummy_words.
3694
3695 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3696
3697         * h8300-tdep.c (h8300_register_byte): Remove.
3698         (h8300h_register_byte): Remove.
3699         (h8300_register_virtual_type): Remove.  Substitute by...
3700         (h8300_register_type): New function.
3701         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3702         (h8300h_extract_struct_value_address): Ditto.
3703         (h8300_gdbarch_init): Drop calls to
3704         set_gdbarch_deprecated_register_byte and
3705         set_gdbarch_deprecated_register_virtual_type.
3706         Add call to set_gdbarch_register_type.
3707
3708 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3709
3710         * gdbarch.sh: Update comments on registers.
3711         (deprecated_register_byte): Rename register_byte.
3712         (deprecated_register_raw_size): Rename register_raw_size.
3713         (deprecated_register_virtual_size): Rename register_virtual_size.
3714         (deprecated_register_virtual_type): Rename register_virtual_type.
3715         * gdbarch.h, gdbarch.c: Re-generate.
3716         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3717         * vax-tdep.c (vax_gdbarch_init): Update.
3718         * v850-tdep.c (v850_gdbarch_init): Update.
3719         * sparc-tdep.c (sparc_gdbarch_init): Update.
3720         * sh-tdep.c (sh_gdbarch_init): Update.
3721         * s390-tdep.c (s390_gdbarch_init): Update.
3722         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3723         * ns32k-tdep.c: Update.
3724         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3725         * mips-tdep.c (mips_gdbarch_init): Update.
3726         * mcore-tdep.c (mcore_gdbarch_init): Update.
3727         * m68k-tdep.c (m68k_gdbarch_init): Update.
3728         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3729         * ia64-tdep.c (ia64_gdbarch_init): Update.
3730         * hppa-tdep.c (hppa_gdbarch_init): Update.
3731         * h8300-tdep.c (h8300_gdbarch_init): Update.
3732         * frv-tdep.c (frv_gdbarch_init): Update.
3733         * cris-tdep.c (cris_gdbarch_init): Update.
3734         * avr-tdep.c (avr_gdbarch_init): Update.
3735         * alpha-tdep.c (alpha_gdbarch_init): Update.
3736         * arm-tdep.c (arm_gdbarch_init): Update.
3737
3738 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3739
3740         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3741         mips_o32_use_struct_convention with always_use_struct_convention.
3742
3743 2003-06-12  David Carlton  <carlton@kealia.com>
3744
3745         * cp-namespace.c (cp_set_block_scope): Comment out
3746         processing_has_namespace_info branch.
3747
3748 2003-06-12  Jim Blandy  <jimb@redhat.com>
3749
3750         Recognize and skip 64-bit PowerPC Linux linkage functions.
3751         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3752         insn_pattern, insns_match_pattern, d_field, ds_field): New
3753         functions, macros, and types for working with PPC instructions.
3754         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3755         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3756         ppc64_skip_trampoline_code): New functions, variables, and macros
3757         for recognizing and skipping linkage functions.
3758         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3759         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3760
3761         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3762         register offsets for both the 32- and 64-bit interfaces.
3763
3764         Actually finish the job started by my change of 2003-05-29.
3765         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3766         other #definition of this.
3767         (ppc_linux_skip_trampoline_code): Remove declaration.
3768         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3769         static.
3770         (ppc_linux_init_abi): Register it as the skip_trampoline_code
3771         method for GDBARCH.
3772
3773         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3774         'long' on ppc64-*-linux*.
3775
3776         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3777         isn't #defined, assume the register doesn't exist: act as if
3778         tdep->ppc_mq_regnum were -1.
3779
3780         * configure.host, configure.tgt: Add entries for
3781         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3782         powerpc/linux.mt.
3783         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3784         New files.
3785
3786         * arch-utils.c (always_use_struct_convention): New function.
3787         * arch-utils.h (always_use_struct_convention): New prototype.
3788         * alpha-tdep.c (alpha_use_struct_convention): Delete.
3789         (alpha_gdbarch_init): Register always_use_struct_convention,
3790         instead of alpha_use_struct_convention.
3791         * cris-tdep.c (cris_use_struct_convention): Delete.
3792         (cris_gdbarch_init): Register always_use_struct_convention,
3793         instead of cris_use_struct_convention.
3794         * frv-tdep.c (frv_use_struct_convention): Delete.
3795         (frv_gdbarch_init): Register always_use_struct_convention,
3796         instead of frv_use_struct_convention.
3797         * h8300-tdep.c (h8300_use_struct_convention): Delete.
3798         (h8300_gdbarch_init): Register always_use_struct_convention,
3799         instead of h8300_use_struct_convention.
3800         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3801         (mips_o32_gdbarch_init): Register always_use_struct_convention,
3802         instead of mips_o32_use_struct_convention.
3803
3804 2003-06-12  Andrew Cagney  <cagney@redhat.com>
3805
3806         * wince.c: Include "mips-tdep.h".
3807         * mips-tdep.h (mips_next_pc): Declare.
3808         * mcore-tdep.c: Make more local functions static.
3809         * Makefile.in (wince.o): Update dependencies.
3810
3811 2003-06-12  David Carlton  <carlton@kealia.com>
3812
3813         * symtab.c (lookup_symbol_aux_minsyms): Replace
3814         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3815         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3816         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3817         SYMBOL_NATURAL_NAME.
3818
3819 2003-06-12  Andreas Schwab  <schwab@suse.de>
3820
3821         * Makefile.in (tuiDisassem.o): Update dependencies.
3822
3823 2003-06-12  David Carlton  <carlton@bactrian.org>
3824
3825         * symtab.h: Delete declaration of make_symbol_overload_list.
3826         Add declaration of lookup_partial_symbol.
3827         * symtab.c (remove_params): Move to cp-support.c.
3828         (overload_list_add_symbol, make_symbol_overload_list)
3829         (sym_return_val_size, sym_return_val_index): Ditto.
3830         (lookup_partial_symbol): Make extern.
3831         * cp-support.h: Add declaration of make_symbol_overload_list.
3832         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3833         symtab.h, and block.h.
3834         (remove_params): Move here from symtab.c.
3835         (overload_list_add_symbol, make_symbol_overload_list)
3836         (sym_return_val_size, sym_return_val_index): Ditto.
3837         * valops.c: Include cp-support.h.
3838         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3839         frame_h, and block_h.
3840         (valops.o): Depend on cp_support_h.
3841
3842 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
3843
3844         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3845         substitute by NUM_REGS throughout.
3846         (h8300_register_name): Only care for H8/300 and H8/300H registers.
3847         (h8300s_register_name): New function for H8S registers.
3848         (h8300sx_register_name): Ditto for H8SX registers.
3849         (h8300_print_register): Revise register printing, avoid depending
3850         on 32 bit long.
3851         (h8300_register_byte): Only care for H8/300 registers.
3852         (h8300h_register_byte): New function for any other architecture.
3853         (h8300_register_raw_size): Remove.
3854         (h8300_register_virtual_type): Revise to return actually useful
3855         type.
3856         (h8300_extract_struct_value_address): Only care for H8/300 registers.
3857         (h8300h_extract_struct_value_address): New function for any other
3858         architecture.
3859         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
3860         set_gdbarch_register_name, set_gdbarch_register_byte,
3861         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3862         Remove calls to set_gdbarch_deprecated_register_size,
3863         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3864         set_gdbarch_deprecated_max_register_raw_size,
3865         set_gdbarch_register_virtual_size and
3866         set_gdbarch_deprecated_max_register_virtual_size entirely.
3867         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3868         set_gdbarch_long_double_bit.
3869
3870 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3871
3872         * doublest.c (convert_doublest_to_floatformat): When dealing
3873         with the implied integer bit, only alter mant_bits if we are
3874         processing a full 32 bits of mantissa.
3875
3876 2003-06-11  David Carlton  <carlton@bactrian.org>
3877
3878         * dictionary.h: New.
3879         * dictionary.c: New.
3880         * block.h: Add opaque declaration for struct dictionary.
3881         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3882         'sym' members.
3883         (BLOCK_DICT): New macro.
3884         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3885         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3886         BLOCK_SHOULD_SORT.
3887         (ALL_BLOCK_SYMBOLS): Update definition.
3888         * Makefile.in (SFILES): Add dictionary.c.
3889         (dictionary_h): New.
3890         (COMMON_OBS): Add dictionary.o.
3891         (dictionary.o): New.
3892         (ada-lang.o): Depend on dictionary_h.
3893         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3894         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3895         (mi-cmd-stack.o): Ditto.
3896         (gdbtk-cmds.o): Update dependencies.
3897         (gdbtk-stack.o): Ditto.
3898         * ada-lang.c: Include dictionary.h.
3899         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3900         (fill_in_ada_prototype, debug_print_block): Ditto.
3901         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3902         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
3903         'is_sorted'.
3904         * mdebugread.c: Include dictionary.h.
3905         (struct parse_stack): Delete 'maxsyms' member.
3906         (parse_symbol): Update calls to new_block.  Delete calls to
3907         shrink_block.  Use dictionary methods.
3908         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3909         Update calls to new_symtab.  Don't maintain maxsyms data.
3910         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3911         (add_symbol): Just call dict_add_symbol.
3912         (new_symtab): Delete 'maxsyms' argument.
3913         (new_symtab): Update calls to new_block.
3914         (new_block): Delete 'maxsyms' argument; add 'function' argument.
3915         (shrink_block): Delete function.
3916         (fixup_sigtramp): Update call to new_block.  Add symbol via
3917         dict_add_symbol.
3918         * jv-lang.c: Include dictionary.h.
3919         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3920         appropriately.  Set class_symtab->free_func.  Make sure the
3921         blockvector is big enough to hold two blocks.
3922         (add_class_symtab_symbol): Use dictionary methods.
3923         (free_class_block): New function.
3924         (type_from_class): Replace explicit iteration by
3925         ALL_BLOCK_SYMBOLS.
3926         * symtab.h (struct symtab): Replace 'free_ptr' method by
3927         'free_func'.
3928         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3929         sort_symtab_syms.
3930         * dwarfread.c (psymtab_to_symtab_1): Delete call to
3931         sort_symtab_syms.
3932         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3933         Include dictionary.h.
3934         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3935         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3936         sort_symtab_syms.
3937         * objfiles.c: Include dictionary.h.
3938         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3939         * buildsym.c: Include dictionary.h.
3940         (finish_block): Use dictionary methods.
3941         (end_symtab): Set free_func to NULL, not free_ptr.
3942         * tracepoint.c: Include dictionary.h.
3943         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3944         (scope_info): Ditto.
3945         * stack.c: Include dictionary.h.
3946         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3947         (print_block_frame_labels, print_frame_arg_vars)
3948         (print_frame_args): Ditto.
3949         * symmisc.c (free_symtab_block): Use dictionary methods.
3950         (dump_symtab): Ditto.
3951         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3952         Include dictionary.h.
3953         * symfile.h: Delete declarations of sort_block_syms,
3954         sort_symtab_syms.
3955         * symfile.c (sort_block_syms): Delete.
3956         (sort_symtab_syms): Delete.
3957         * symtab.c: Include dictionary.h.
3958         (lookup_block_symbol): Use dictionary iterators.
3959         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3960         (search_symbols, make_symbol_completion_list): Ditto.
3961         (make_symbol_overload_list): Ditto.
3962         * valops.c (value_of_local): Use dict_empty.
3963         Include dictionary.h.
3964
3965 2003-06-11  J. Brobecker  <brobecker@gnat.com>
3966
3967         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3968
3969 2003-06-11  David Carlton  <carlton@bactrian.org>
3970
3971         * block.h (BLOCK_SHOULD_SORT): Delete.
3972         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3973         blocks.
3974         * ada-lang.c (ada_add_block_symbols): Ditto.
3975         * symfile.c (sort_block_syms): Delete.
3976         (sort_symtab_syms): Ditto.
3977         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3978         declarations.
3979         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3980         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3981         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3982         * dwarfread.c (psymtab_to_symtab_1): Ditto.
3983         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3984         * mdebugread.c (psymtab_to_symtab_1): Ditto.
3985         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3986
3987 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3988
3989         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3990         bits to 128.
3991
3992 2003-06-11  Andrew Cagney  <cagney@redhat.com>
3993
3994         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3995         REGISTER_CONVERTIBLE.
3996         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3997         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3998         * gdbarch.h, gdbarch.c: Re-generate.
3999         * arch-utils.h (deprecated_register_convertible_not): Rename
4000         generic_register_convertible_not.
4001         * arch-utils.c (deprecated_register_convertible_not): Rename
4002         generic_register_convertible.
4003         (legacy_convert_register_p, legacy_register_to_value): Update.
4004         * sh-tdep.c (sh64_push_arguments): Update.
4005         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4006         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4007         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4008         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4009         * arch-utils.c (legacy_value_to_register): Update.
4010         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4011         (rs6000_register_convert_to_raw): Make parameter "from" const.
4012         * mips-tdep.c (mips_gdbarch_init): Update.
4013         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
4014         * infcmd.c (default_print_registers_info): Update.
4015         * ia64-tdep.c (ia64_gdbarch_init): Update.
4016         (ia64_register_convert_to_raw): Make parameter "from" const.
4017         * i386-tdep.c (i386_gdbarch_init): Update.
4018         (i386_register_convert_to_raw): Update.
4019
4020 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4021
4022         * remote-fileio.c: Include "remote-fileio.h".
4023         * Makefile.in (remote-fileio.o): Update dependencies.
4024         (remote_fileio_h): Fix typo.
4025
4026 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4027
4028         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4029         (xstormy16_save_dummy_frame_tos): Make static.
4030         (_initialize_xstormy16_tdep): Add declaration.
4031         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4032         * v850-tdep.c: Make local functions static.
4033         (_initialize_v850_tdep): Add declaration.
4034         * sparc-tdep.c: Make local functions static.
4035         (_initialize_sparc_tdep): Add declaration.
4036         * sh-tdep.c: Make local functions static.
4037         (_initialize_sh_tdep): Add declaration.
4038         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4039         * s390-tdep.c: Make local functions static.
4040         (_initialize_s390_tdep): Add declaration.
4041         * dbxread.c (find_stab_function_addr): Make static.
4042         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4043         * ocd.c (_initialize_remote_ocd): Add declaration.
4044         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4045         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4046         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4047         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4048         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4049         * remote-array.c (_initialize_array): Add declaration.
4050         (_initialize_remote_monitors): Add declaration.
4051         * remote-mips.c: Make local functions static.
4052         (_initialize_remote_mips): Add declaration.
4053         * mcore-tdep.c: Make all local functions static.
4054         (_initialize_mcore_tdep): Add declaration.
4055         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4056         * abug-rom.c (_initialize_abug_rom): Add declaration.
4057         * rom68k-rom.c (_initialize_rom68k): Add declaration.
4058         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4059         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4060         * remote-est.c (_initialize_est): Add declaration.
4061         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4062         (m68hc11_call_dummy_address): Make static.
4063         * ia64-tdep.c: Make local functions static.
4064         (_initialize_ia64_tdep): Add declaration.
4065         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4066         * monitor.c (monitor_wait_filter): Make static.
4067         (_initialize_remote_monitors): Add declaration.
4068         * remote-hms.c (_initialize_remote_hms): Add declaration.
4069         * remote-e7000.c (fetch_regs_from_dump): Make static.
4070         (expect_n): Make static.
4071         (_initialize_remote_e7000): Add declaration.
4072         * ser-e7kpc.c: Always include "defs.h".
4073         (_initialize_ser_e7000pc): Add declaration.
4074         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4075         * cris-tdep.c: Make all but one function static.
4076         (_initialize_cris_tdep): Add declaration.
4077         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4078         * solib.c (update_solib_list): Make static.
4079         (_initialize_solib): Add declaration.
4080         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4081         (_initialize_avr_tdep): Add declaration.
4082         * remote-rdi.c (voiddummy): Make static.
4083         (_initialize_remote_rdi): Add declaration.
4084         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4085         * remote-rdp.c (send_rdp): Make static.
4086         (_initialize_remote_rdp): Add declaration.
4087         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4088
4089 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
4090
4091         * remote-fileio.c: Make ari happy.
4092
4093 2003-06-10  J. Brobecker  <brobecker@gnat.com>
4094
4095         * rs6000-nat.c (child_xfer_memory): Compute the right address when
4096         fetching the trailing bytes of the buffer we are about to write.
4097
4098 2003-06-10  Andrew Cagney  <cagney@redhat.com>
4099
4100         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4101         * Makefile.in (remote-fileio.o): Update dependencies.
4102         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
4103         include <setjmp.h>, or <sys/types.h> conditional on USG.
4104         (remote_fio_jmp_buf): Delete global variable.
4105
4106 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
4107             Martin M. Hunt  <hunt@redhat.com>
4108
4109         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4110         (SFILES): Add remote-fileio.c.
4111         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
4112         dependencies for building remote.o.
4113         * remote-fileio.c: New file implementing the remote File-I/O protocol.
4114         * remote-fileio.h: New header file defining remote File-I/O interface.
4115         * remote.c (remote_write_bytes, remote_read_bytes): Remove
4116         static storage class.
4117         (remote_wait, remote_async_wait): Call remote_fileio_request() on
4118         'F' packet.
4119         (_initialize_remote): Call initialize_remote_fileio().
4120         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4121         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4122         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4123         (captured_main): Initialize new ui_files.
4124         * ui-file.c: Add read and fgets input functions.
4125         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4126         (null_file_read): New function.
4127         (ui_file_read): New function.
4128         (set_ui_file_read): New function.
4129         (stdio_file_read): New function.
4130         * ui-file.h: New type ui_file_read_ftype.
4131         (set_ui_file_read): Declare.
4132         (ui_file_read): Declare.
4133
4134 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4135
4136         * frame.h (deprecated_unwind_get_saved_register): Rename
4137         generic_unwind_get_saved_register, update comments.
4138         * mips-tdep.c (mips_get_saved_register): Update.
4139         * frame.c (deprecated_unwind_get_saved_register): Update.
4140
4141 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4142
4143         * vax-tdep.c (vax_frame_locals_address): Delete function.
4144         (vax_gdbarch_init): Do not set frame_locals_address.
4145         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4146         (m68hc11_gdbarch_init): Do not set frame_locals_address.
4147         * s390-tdep.c (s390_frame_args_address): Delete function.
4148         (s390_gdbarch_init): Do not set frame_args_address or
4149         frame_locals_address.
4150         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4151         (ns32k_gdbarch_init): Do not set frame_locals_address.
4152         * hppa-tdep.c (hppa_frame_args_address): Delete function.
4153         (hppa_frame_locals_address): Delete function.
4154         (hppa_gdbarch_init): Do not set frame_args_address, or
4155         frame_locals_address.
4156         * arm-tdep.c (arm_frame_args_address): Delete.
4157         (arm_frame_locals_address): Delete.
4158         (arm_gdbarch_init): Do not set frame_args_address, or
4159         frame_locals_address.
4160
4161 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4162
4163         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4164         * gdbarch.h, gdbarch.c: Re-generate.
4165         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4166         * arch-utils.c (frame_num_args_unknown): Delete function.
4167         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4168         (frame_info): Use FRAME_NUM_ARGS_P.
4169         * arm-tdep.c (arm_frame_num_args): Delete function.
4170         (arm_gdbarch_init): Do not set frame_num_args.
4171         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4172         * hppa-tdep.c (hppa_frame_num_args): Delete function.
4173         (hppa_gdbarch_init): Do not set frame_num_args.
4174         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4175         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4176         frame_num_args to default frame_num_args_unknown.
4177         * v850-tdep.c (v850_gdbarch_init): Ditto.
4178         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4179         * sh-tdep.c (sh_gdbarch_init): Ditto.
4180         * s390-tdep.c (s390_gdbarch_init): Ditto.
4181         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4182         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4183         * mips-tdep.c (mips_gdbarch_init): Ditto.
4184         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4185         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4186         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4187         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4188         * i386-tdep.c (i386_gdbarch_init): Ditto.
4189         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4190         * frv-tdep.c (frv_gdbarch_init): Ditto.
4191         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4192         * cris-tdep.c (cris_gdbarch_init): Ditto.
4193         * avr-tdep.c (avr_gdbarch_init): Ditto.
4194         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4195
4196 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4197
4198         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4199         (print_frame_args): Moved to "stack.c".
4200         * stack.c: Include "gdb_assert.h".
4201         (print_frame_nameless_args): Moved from "printcmd.c", made static.
4202         (print_frame_args): Moved from "printcmd.c".
4203         * frame.h (print_frame_args): Delete declaration.
4204         * Makefile.in (stack.o): Update dependencies.
4205
4206 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4207
4208         * frame.c (get_prev_frame): Remove reference to
4209         frame_args_address_correct in comments.
4210         * frame-base.c (default_frame_args_address): Delete code
4211         conditional on FRAME_ARGS_ADDRESS_CORRECT.
4212         * vax-tdep.c (vax_frame_args_address_correct): Delete.
4213         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4214         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4215         (vax_frame_args_address_correct): Delete declaration.
4216
4217 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4218
4219         * gdbarch.sh (UNWIND_SP): Add.
4220         * gdbarch.h, gdbarch.c: Re-generate.
4221         * frame.c (frame_sp_unwind): New function.
4222         (get_frame_sp): New function.
4223         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4224         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4225         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4226         value.
4227         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4228         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4229
4230 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4231
4232         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4233         REMOTE_BREAKPOINT.
4234         * remote.c: Update.
4235         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4236         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4237         * config/m68k/tm-sun3.h: Update.
4238         * config/m68k/tm-m68klynx.h: Update.
4239         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4240
4241         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4242         trad_frame".  Update comments.
4243         * d10v-tdep.c (struct d10v_unwind_cache): Update.
4244         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4245         (trad_frame_register_value, trad_frame_prev_register): Update.
4246
4247 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4248
4249         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4250         from GCC's acinclude.m4.
4251         * configure.in: Check for getopt's delcaration.
4252         * aclocal.m4, config.in, configure: Re-generate.
4253         * main.c (error_init): Delete declaration.
4254         * defs.h (error_init): Declare.
4255         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4256         (rs6000_convert_from_func_ptr_addr): Make static.
4257         (_initialize_rs6000_tdep): Add declaration.
4258         * cli/cli-cmds.c (dont_repeat): Delete declaration.
4259         (show_commands, set_verbose, show_history): Delete declaration.
4260         * top.h (set_verbose): Add declaration.
4261         (show_history, set_history, show_commands): Add declaration.
4262         (do_restore_instream_cleanup): Add declaration.
4263         * objc-lang.c (specialcmp): Make static.
4264         (print_object_command): Make static.
4265         (find_objc_msgsend): Make static.
4266         (find_objc_msgcall_submethod_helper): Make static.
4267         (find_objc_msgcall_submethod): Make static.
4268         (_initialize_objc_language): Add declaration.
4269         (find_implementation_from_class): Make static.
4270         (find_implementation): Make static.
4271         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4272         * objc-lang.h (lookup_struct_typedef): Add declaration.
4273         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4274         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4275         (do_restore_user_call_depth): Make static.
4276         (do_restore_instream_cleanup): Delete declaration.
4277         (dont_repeat): Delete declaration.
4278         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4279         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4280         * reggroups.c (_initialize_reggroup): Add declaration.
4281         * cp-support.c (_initialize_cp_support): Add declaration.
4282         * cp-abi.c (_initialize_cp_abi): Add declaration.
4283         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4284         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4285         (_initialize_gnu_v3_abi): Add declaration.
4286         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4287         (_initialize_gnu_v2_abi): Add declaration.
4288         * frame-base.c (_initialize_frame_base): Add declaration.
4289         * doublest.c (floatformat_from_length): Make static.
4290         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4291         * frame.c (create_sentinel_frame): Make static.
4292         (_initialize_frame): Add declaration.
4293         * top.c (do_catch_errors): Make static.
4294         (gdb_rl_operate_and_get_next_completion): Make static.
4295         * typeprint.c: Include "typeprint.h".
4296         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4297         (sentinel_frame_this_id): Make static.
4298         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4299         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4300         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4301         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4302         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4303         * maint.c (maintenance_print_architecture): Make static.
4304         * signals/signals.c (_initialize_signals): Add declaration.
4305         * std-regs.c (_initialize_frame_reg): Add declaration.
4306         * jv-exp.y (push_variable): ISO C definition.
4307         (push_qualified_expression_name): Ditto.
4308         * memattr.c (_initialize_mem): Add declaration.
4309         * remote.c (remote_check_watch_resources): Make static.
4310         (remote_stopped_by_watchpoint): Make static.
4311         (remote_stopped_data_address): Make static.
4312         * d10v-tdep.c (nr_dmap_regs): Make static.
4313         (a0_regnum): Make static.
4314         (d10v_frame_unwind_cache): Make static.
4315         (d10v_frame_p): Make static.
4316         * osabi.c (show_osabi): Make static.
4317         (_initialize_gdb_osabi): Add extern declaration.
4318         * gdbtypes.c (make_qualified_type): Make static.
4319         (safe_parse_type): Make static.
4320         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4321         * macrotab.c (macro_bcache_free): Make static.
4322         * interps.c (interp_set_quiet): Make static.
4323         (interpreter_exec_cmd): Make static.
4324         * stack.h (select_frame_command): New file.
4325         * stack.c: Include "stack.h".
4326         (select_frame_command_wrapper): Delete function.
4327         (select_frame_command): Make global.
4328         * infcall.c: Include "infcall.h".
4329         * linespec.c: Include "linespec.h".
4330         * symfile.c (sections_overlap): Make static.
4331         * cp-support.h (cp_initialize_namespace): ISO C declaration.
4332         * charset.c (_initialize_charset): Add missing prototype.
4333         * regcache.c (init_legacy_regcache_descr): Make static.
4334         (do_regcache_xfree): Make static.
4335         (regcache_xfer_part): Make static.
4336         (_initialize_regcache): Add missing prototype.
4337         * breakpoint.c (parse_breakpoint_sals): Make static.
4338         (breakpoint_sals_to_pc): Make static.
4339         * interps.h (clear_interpreter_hooks): ISO C declaration.
4340         * Makefile.in (stack_h): Define.
4341         (stack.o, typeprint.o, mi-main.o): Update dependencies.
4342         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4343
4344 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4345
4346         * Makefile.in (d10v-tdep.o): Update dependencies.
4347         (SFILES): Add trad-frame.c.
4348         (trad_frame_h): Define.
4349         (COMMON_OBS): Add trad-frame.o.
4350         (trad-frame.o): Specify dependencies.
4351         * d10v-tdep.c: Include "trad-frame.h".
4352         (saved_regs_unwinder): Delete function.
4353         (d10v_frame_prev_register): Use trad_frame_prev_register.
4354         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4355         trad_frame", delete "regs" and "prev_sp".
4356         (prologue_find_regs): Use trad-frame.
4357         * trad-frame.h, trad-frame.c: New files.
4358
4359 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
4360
4361         * dwarf2cfi.c, dwarf2cfi.h: Remove.
4362
4363 2003-06-07  Adam Fedor  <fedor@gnu.org>
4364
4365         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4366         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4367         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4368         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4369         resolve_msgsend_super, resolve_msgsend_super_stret):
4370         Use it.
4371
4372 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4373
4374         * symfile.h: Re-indent, clean up comments.
4375
4376 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4377
4378         * inferior.h (deprecated_write_sp): Replace
4379         generic_target_write_sp.
4380         * regcache.c (deprecated_write_sp): Replace
4381         generic_target_write_sp.
4382         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4383         * vax-tdep.c (vax_gdbarch_init): Update.
4384         * v850-tdep.c (v850_gdbarch_init): Update.
4385         * sparc-tdep.c (sparc_gdbarch_init): Update.
4386         * sh-tdep.c (sh_gdbarch_init): Update.
4387         * s390-tdep.c (s390_gdbarch_init): Update.
4388         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4389         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4390         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4391         * mcore-tdep.c (mcore_gdbarch_init): Update.
4392         * m68k-tdep.c (m68k_gdbarch_init): Update.
4393         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4394         * ia64-tdep.c (ia64_gdbarch_init): Update.
4395         * h8300-tdep.c (h8300_gdbarch_init): Update.
4396         * frv-tdep.c (frv_gdbarch_init): Update.
4397         * cris-tdep.c (cris_gdbarch_init): Update.
4398         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4399
4400 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4401
4402         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4403         Assert that PC_REGNUM is valid.
4404         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4405
4406 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4407
4408         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4409         * gdbarch.h, gdbarch.c: Regenerate.
4410         * mn10300-tdep.c: Include "gdb_assert.h".
4411         (mn10300_read_fp): New function.
4412         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4413         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
4414         * ia64-tdep.c: Include "gdb_assert.h".
4415         (ia64_read_fp): New function.
4416         (ia64_gdbarch_init): Set deprecated_target_read_fp to
4417         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
4418         * regcache.c (generic_target_read_sp): Delete function.
4419         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4420         * inferior.h (generic_target_read_sp): Delete declaration.
4421         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4422         generic_target_read_sp.
4423         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4424         * sparc-tdep.c (sparc_gdbarch_init): Ditto
4425         * sh-tdep.c (sh_gdbarch_init): Ditto.
4426         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4427         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4428
4429 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4430
4431         * gdbarch.sh: Comment each field of startup_gdbarch.
4432         * gdbarch.h, gdbarch.c: Re-generate.
4433
4434 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4435
4436         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4437         * gdbarch.h, gdbarch.c: Re-generate.
4438         * regcache.c: Update comments on read_pc et.al.
4439         (generic_target_read_pc): Delete function.
4440         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4441         * inferior.h (generic_target_read_pc): Delete declaration.
4442         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4443         generic_target_read_pc.
4444         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4445         * sh-tdep.c (sh_gdbarch_init): Ditto.
4446         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4447         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4448
4449 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4450
4451         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4452         "index" with "special_local_sect".  Use strcmp instead of STREQ.
4453         Append period to coments.
4454
4455 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
4456
4457         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4458         (elfstab_offset_sections): Likewise.
4459         * gdb-stabs.h (stab_section_info): Likewise.
4460         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4461         * objfiles.c (objfile_relocate): Likewise.
4462         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4463         * remote.c (get_offsets): Likewise.
4464         (remote_cisco_objfile_relocate): Likewise.
4465         * somread.c (som_symfile_offsets): Likewise.
4466         * symfile.c (alloc_section_addr_info): New function.
4467         (build_section_addr_info_from_section_tab): Use it.
4468         (free_section_addr_info): Adjust.
4469         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4470         (syms_from_objfile): Allocate local_addr dynamically.
4471         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4472         dynamically.
4473         (add_symbol_file_command): Allocate sect_opts dynamically.
4474         (reread_symbols): Avoid use of SECT_OFF_MAX.
4475         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4476         (alloc_section_addr_info): Declare it.
4477         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4478         * win32-nat.c (solib_symbols_add): Allocate section_addrs
4479         dynamically.
4480         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4481
4482 2003-06-06  Andrew Cagney  <cagney@redhat.com>
4483
4484         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4485         (d10v_frame_unwind_cache): Do not set "return_pc".
4486
4487 2003-06-06  Michael Snyder  <msnyder@redhat.com>
4488
4489         * h8300-tdep.c: Make tidy (long lines).
4490
4491 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
4492
4493         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4494         to regcache_collect().
4495
4496 2003-06-05  J. Brobecker  <brobecker@gnat.com>
4497
4498         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4499         pc_in_sigtramp multiarch method.
4500         (hppa_hpux_som_init_abi): Use it.
4501         (hppa_hpux_elf_init_abi): Likewise.
4502         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4503         macro has been multiarched.
4504         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4505         macro here, as hppa64 isn't multiarched yet.
4506
4507 2003-06-05  Andrew Cagney  <cagney@redhat.com>
4508
4509         * Makefile.in (value_h): Add $(frame_h).
4510         * value.h: Include "frame.h".
4511         (struct value): Replace "frame_addr" with "frame_id".
4512         (VALUE_FRAME_ID): Replace VALUE_FRAME.
4513         * values.c (allocate_value): Use VALUE_FRAME_ID.
4514         (value_copy): Use VALUE_FRAME_ID.
4515         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4516         * valops.c (value_assign): Update.  Use frame_find_by_id.
4517
4518 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
4519
4520         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4521         in each pass.
4522
4523 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
4524
4525         * thread-db.c (check_event): For create/death event breakpoints,
4526         loop through all messages to ensure that we read the message
4527         corresponding to the breakpoint we are at.
4528
4529 2003-06-04  Michael Snyder  <msnyder@redhat.com>
4530
4531         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4532
4533 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
4534
4535         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4536         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4537         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4538         when handling .eh_frame sections.
4539
4540 2003-06-04  J. Brobecker  <brobecker@gnat.com>
4541
4542         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4543         prepare_to_proceed procedure instead of the hppa-specific one.
4544         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4545
4546 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4547
4548         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4549         * config.in: Regenerated.
4550         * configure.in: Add test for syscall function and check for
4551         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4552         * configure: Regenerated.
4553         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4554         <sys/syscall.h>.
4555         (kill_lwp): New function that uses tkill syscall or
4556         uses kill, depending on whether threading model is nptl or not.
4557         All callers of kill() changed to use kill_lwp().
4558         (lin_lwp_wait): Make special check when WIFEXITED occurs to
4559         see if all threads have already exited in the nptl model.
4560         (stop_and_resume_callback): New callback function used by the
4561         lin_lwp_wait thread exit handling code.
4562         (stop_wait_callback): Check for threads already having exited and
4563         delete such threads fromt the lwp list when discovered.
4564         (stop_callback): Don't assert retcode of kill call.
4565
4566         Roland McGrath  <roland@redhat.com>
4567         * i386-linux-nat.c (ps_get_thread_area): New function needed by
4568         nptl libthread_db.
4569
4570 2003-06-03  Richard Henderson  <rth@redhat.com>
4571
4572         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4573         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4574         (alpha_sigtramp_frame_prev_register): Likewise.
4575         (alpha_heuristic_frame_prev_register): Likewise.
4576         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4577
4578         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4579         alpha-specific register id names.
4580         (alpha_mdebug_frame_unwind_cache): Likewise.
4581         (alpha_mdebug_frame_prev_register): Likewise.
4582
4583 2003-06-03  Richard Henderson  <rth@redhat.com>
4584
4585         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4586         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4587         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4588         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4589         unwind routines.
4590         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4591         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4592         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4593
4594         * alpha-linux-tdep.c: Remove unnecessary includes.
4595         * Makefile.in (alpha-linux-tdep.o): Update.
4596
4597 2003-06-03  Richard Henderson  <rth@redhat.com>
4598
4599         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4600         (alphabsd_fill_fpreg): Likewise.
4601
4602 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4603
4604         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
4605         references to struct frame_info fields by calls to the equivalent
4606         accessors. Necessary now that frame_info is opaque.
4607
4608 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4609
4610         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4611         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4612         structure, field no longer exists.
4613
4614 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4615
4616         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4617         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4618
4619 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4620
4621         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4622         references to struct frame_info fields by calls to the equivalent
4623         accessors. Necessary now that frame_info is opaque.
4624
4625 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4626
4627         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4628         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4629         structure, field no longer exists.
4630
4631 2003-06-03  Theodore A. Roth  <troth@openavr.org>
4632
4633         * remote.c (init_remote_state): Compute sizeof_g_packet by
4634         accumulation of the size of all registers instead of blindly using
4635         DEPRECATED_REGISTER_BYTES.
4636
4637 2003-06-03  Michael Snyder  <msnyder@redhat.com>
4638
4639         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4640         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4641         for h8300sx.
4642
4643 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4644
4645         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4646         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4647
4648 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4649
4650         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4651         (sparc_convert_to_raw): Delete function.
4652         (sparc_gdbarch_init): Do not set register_convert_to_raw or
4653         register_convert_to_virtual.
4654
4655 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4656
4657         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4658         layer if not dealing with a statically-linked threaded program.
4659
4660 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
4661
4662         * solib.c (solib_open): Update comment to reflect actual search order.
4663
4664 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4665
4666         * frame.c (get_frame_memory_signed): New function.
4667         (get_frame_memory, get_frame_memory_unsigned): New function.
4668         (get_frame_arch): New function.
4669         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4670         (get_frame_memory, get_frame_unsigned_memory): Declare.
4671         * d10v-tdep.c (d10v_frame_unwind_cache): Use
4672         get_frame_memory_unsigned and get_frame_arch.
4673         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4674
4675 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
4676
4677         * MAINTAINERS (write after approval): Add myself.
4678
4679 2003-06-03  Jim Blandy  <jimb@redhat.com>
4680
4681         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4682         elements of gregset_t are 64 bits each, but access registers
4683         are still 32 bits, so they're packed two per gregset_t
4684         element.  Unpack/pack them properly.
4685
4686 2003-06-02  David Carlton  <carlton@bactrian.org>
4687
4688         * linespec.c (find_methods): Break out code into
4689         add_matching_methods and add_constructors.
4690         (add_matching_methods): New.
4691         (add_constructors): Ditto.
4692
4693 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4694
4695         * sparc-tdep.c (sparc_print_registers): Delete call to
4696         REGISTER_CONVERTIBLE.
4697         (sparc_gdbarch_init): Do not set register_convertible.
4698         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4699         * frv-tdep.c (frv_gdbarch_init): Ditto.
4700         * cris-tdep.c (cris_gdbarch_init): Ditto.
4701
4702 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
4703
4704         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4705         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4706         (syms_from_objfile): Ditto.
4707
4708 2003-06-03  Andreas Schwab  <schwab@suse.de>
4709
4710         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4711         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4712
4713 2003-06-02  Richard Henderson  <rth@redhat.com>
4714
4715         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4716         a member of all_reggroup.
4717
4718 2003-06-02  Richard Henderson  <rth@redhat.com>
4719
4720         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4721         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4722         (alpha_lds, alpha_sts): New.
4723         (alpha_convert_register_p): Change from _register_convertible.
4724         (alpha_register_to_value): Change from _convert_to_virtual;
4725         restructure and fail for type sizes other than 4 or 8.
4726         (alpha_value_to_register): Similarly.
4727         (alpha_extract_return_value): Use alpha_sts.
4728         (alpha_store_return_value): Use alpha_lds.
4729         (alpha_gdbarch_init): Update hooks.
4730
4731 2003-06-02  Richard Henderson  <rth@redhat.com>
4732
4733         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4734         regnum identifiers.
4735         (alpha_sigtramp_register_address): Likewise.
4736
4737 2003-06-02  Richard Henderson  <rth@redhat.com>
4738
4739         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4740         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4741         * alpha-tdep.h: Declare them.
4742
4743         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4744         Remove zerobuf.  Don't error on UNIQUE.
4745         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4746         (ALPHA_REGSET_UNIQUE): Provide default.
4747         (supply_gregset): Use alpha_supply_int_regs.
4748         (fill_gregset): Use alpha_fill_int_regs.
4749         (supply_fpregset): Use alpha_supply_fp_regs.
4750         (fill_fpregset): Use alpha_fill_fp_regs.
4751         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4752         (alphabsd_supply_reg): Use alpha_supply_int_regs.
4753         (alphabsd_fill_reg): Use alpha_fill_int_regs.
4754         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4755         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4756         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4757
4758 2003-06-02  Richard Henderson  <rth@redhat.com>
4759
4760         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4761
4762         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4763         (alpha_store_return_value): Likewise.
4764
4765 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4766
4767         * block.c (contained_in): Add 'const' to arguments.
4768         (block_function): Ditto.
4769         * block.h: Update declarations for block_function and
4770         contained_in.
4771
4772 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4773
4774         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4775         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4776         * p-valprint.c (pascal_val_print): Ditto.
4777         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4778
4779 2003-06-02  Richard Henderson  <rth@redhat.com>
4780
4781         * alpha-tdep.c (alpha_push_dummy_call): Use
4782         builtin_type_ieee_double_little instead of builtin_type_double.
4783
4784         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4785         sign-extension of 32-bit values.
4786         (alpha_store_return_value): Similarly.
4787
4788         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4789         (alpha_extract_return_value): Likewise.
4790         (alpha_store_return_value): Likewise.
4791
4792         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4793         (alpha_store_return_value): Error on IEEE Quad floats.
4794
4795         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4796         (alpha_extract_struct_value_address): Likewise.
4797         (alpha_store_return_value): Likewise.
4798         (alpha_store_struct_return): Remove.
4799         (alpha_gdbarch_init): Update hook registration to match.
4800
4801         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4802         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4803         macros where appropriate.
4804         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
4805         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4806
4807         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4808         for SP, GP; void_func_ptr for PC; non-language-specific types
4809         for all others.
4810         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4811
4812 2003-06-02  Richard Henderson  <rth@redhat.com>
4813
4814         * top.h (lim_at_start): Declare.
4815         * main.c (captured_main): Set it.
4816         * top.c (lim_at_start): Define.
4817         (command_loop): Use it instead of &environ.
4818         * event-top.c (command_handler): Likewise.
4819
4820 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
4821
4822         * mipsnbsd-tdep.c: Update copyright years.
4823         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4824
4825 2003-06-01  Richard Henderson  <rth@redhat.com>
4826
4827         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4828         (alpha-linux-tdep.o): Update dependencies.
4829         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4830         * alpha-mdebug-tdep.c: Remove unneeded includes.
4831
4832 2003-06-01  Richard Henderson  <rth@redhat.com>
4833
4834         * alpha-tdep.c (alpha_register_reggroup_p): New.
4835         (alpha_gdbarch_init): Register it.
4836
4837 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4838
4839         * dwarfread.c: Eliminate "register"
4840         (decode_die_type): Eliminate assignment within "if".
4841         (struct_type, decode_array_element_type): Ditto.
4842         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4843         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4844         (decode_modified_type, completedieinfo): Ditto.
4845         * block.c: Eliminate "register".
4846         (blockvector_for_pc_sect): Eliminate assignment within "if".
4847         * cp-support.h (struct symbol): Opaque declaration.
4848         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4849
4850 2003-06-01  Richard Henderson  <rth@redhat.com>
4851
4852         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4853         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4854
4855 2003-06-01  Adam Fedor  <fedor@gnu.org>
4856
4857         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4858         * gdbarch.[ch]: Regenerate.
4859         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4860         (hppa_gdbarch_init): Set it in the gdbarch vector.
4861         * i386-tdep.c (i386_fetch_pointer_argument): New
4862         (i386_gdbarch_init): Set it into gdbarch.
4863         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4864         (rs6000_gdbarch_init): Set it in gdbarch.
4865         * sparc-tdep.c (sparc_fetch_pointer_argument): New
4866         (sparc_gdbarch_init): Set it in gdbarch.
4867
4868 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4869
4870         * defs.h (extract_address): Delete declaration.
4871         * findvar.c (extract_address): Delete function.
4872         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4873         extract_address with the inline equivalent,
4874         extract_unsigned_integer.
4875         (xstormy16_extract_struct_value_address): Ditto.
4876         (xstormy16_pointer_to_address): Ditto.
4877         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4878         * v850-tdep.c (v850_push_arguments): Ditto.
4879         (v850_extract_return_value): Ditto.
4880         (v850_extract_struct_value_address): Ditto.
4881         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4882         (sparcnbsd_get_longjmp_target_64): Ditto.
4883         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4884         (get_longjmp_target): Ditto.
4885         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4886         (sh64_extract_struct_value_address): Ditto.
4887         (sh_push_arguments): Ditto.
4888         (sh64_push_arguments): Ditto.
4889         * remote-vxsparc.c (vx_read_register): Ditto.
4890         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4891         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4892         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4893         * mipsv4-nat.c (get_longjmp_target): Ditto.
4894         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4895         * mips-nat.c (get_longjmp_target): Ditto.
4896         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4897         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4898         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4899         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4900         * irix5-nat.c (get_longjmp_target): Ditto.
4901         * irix4-nat.c (get_longjmp_target): Ditto.
4902         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4903         (ia64_push_arguments): Ditto.
4904         * hpux-thread.c (hpux_thread_store_registers): Ditto.
4905         * h8300-tdep.c (h8300_push_arguments): Ditto.
4906         (h8300_store_return_value): Ditto.
4907         (h8300_extract_struct_value_address): Ditto.
4908         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4909         (frv_push_arguments): Ditto.
4910         * avr-tdep.c (avr_pointer_to_address): Ditto.
4911         (avr_push_arguments): Ditto.
4912         * arm-tdep.c (arm_push_dummy_call): Ditto.
4913         (arm_get_longjmp_target): Ditto.
4914         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4915         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4916         (alpha_get_longjmp_target): Ditto.
4917
4918         * solib-irix.c (extract_mips_address): Inline extract_address,
4919         replacing it with extract_signed_integer.
4920         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4921         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4922         (first_link_map_member, open_symbol_file_object): Ditto.
4923         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4924         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4925         (LM_NEXT, LM_NAME): Ditto.
4926
4927 2003-06-01  Richard Henderson  <rth@redhat.com>
4928
4929         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4930         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4931         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4932         (alpha_cannot_store_register): Likewise.
4933         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4934         * alpha-nat.c (supply_gregset): Likewise.
4935         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4936
4937 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4938
4939         * infcall.c (call_function_by_hand): Update comment on
4940         DEPRECATED_DUMMY_WRITE_SP.
4941
4942         * mips-tdep.c (mips_gdbarch_init): Do not set
4943         deprecated_dummy_write_sp.
4944         (mips_eabi_push_dummy_call): Set the SP register.
4945         (mips_o64_push_dummy_call): Set the SP register.
4946         (mips_o32_push_dummy_call): Set the SP register.
4947         (mips_n32n64_push_dummy_call): Set the SP register.
4948
4949 2003-06-01  Richard Henderson  <rth@redhat.com>
4950
4951         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4952         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4953         (supply_gregset): Likewise.
4954         * alpha-tdep.c (alpha_store_return_value): Likewise.
4955         (alpha_get_longjmp_target): Likewise.
4956         (alpha_register_name): Constify array.
4957         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4958         deprecated_register_size, deprecated_register_bytes,
4959         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4960         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4961         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4962
4963 2003-06-01  Richard Henderson  <rth@redhat.com>
4964
4965         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
4966         from arg_reg_buffer to regcache to avoid double conversion.
4967
4968 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
4969
4970         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4971         SP_REGNUM.
4972         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4973         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4974
4975 2003-06-01  Richard Henderson  <rth@redhat.com>
4976
4977         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4978         (decode_frame_entry): Set it.  Skip FDE augmentation.
4979
4980 2003-06-01  Richard Henderson  <rth@redhat.com>
4981
4982         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4983         not overlapping PC_REGNUM.
4984
4985 2003-06-01  Richard Henderson  <rth@redhat.com>
4986
4987         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4988         alpha_push_arguments.  Don't dump argument register data to
4989         the target stack.  Fix float and 128-bit long double semantics.
4990         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
4991         (alpha_fix_call_dummy): Remove.
4992         (alpha_call_dummy_words): Remove.
4993         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4994
4995 2003-06-01  Richard Henderson  <rth@redhat.com>
4996
4997         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4998
4999 2003-06-01  Andrew Cagney  <cagney@redhat.com>
5000
5001         * mips-tdep.c (is_mips16_addr): New function.
5002         (make_mips16_addr, unmake_mips16_addr): New functions.
5003         (pc_is_mips16, mips_fetch_instruction): Use.
5004         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5005         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5006         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5007         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5008         TARGET_MIPS.
5009         * config/mips/tm-mips.h: Update copyright.
5010         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5011         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5012         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5013         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5014         (TM_PRINT_INSN_MACH): Delete.
5015         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5016
5017         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5018         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5019         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5020         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5021         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
5022         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
5023         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
5024         mips*-*-riscos* and mips*-*-sysv* onto mips.
5025         * config/mips/mips64.mt: New file.
5026         * config/mips/mips.mt: New file.
5027         * config/mips/littlemips.mt: Delete file.
5028         * config/mips/decstation.mt: Delete file.
5029         * config/mips/vr4300el.mt: Delete file.
5030         * config/mips/vr5000el.mt: Delete file.
5031         * config/mips/vr5000.mt: Delete file.
5032         * config/mips/vr4100.mt: Delete file.
5033         * config/mips/vr4xxxel.mt: Delete file.
5034         * config/mips/vr4300.mt: Delete file.
5035         * config/mips/vr4xxx.mt: Delete file.
5036         * config/mips/bigmips.mt: Delete file.
5037         * config/mips/bigmips64.mt: Delete file.
5038         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5039         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5040         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5041         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5042         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5043         "tm-bigmips.h".
5044         * config/mips/tm-irix3.h: Ditto.
5045         * config/mips/tm-mipsv4.h: Ditto.
5046         * config/mips/tm-embed.h: Ditto.
5047         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5048         "tm-bigmips64.h".
5049         * config/mips/tm-vr5000el.h: Delete file.
5050         * config/mips/tm-tx39l.h: Delete file.
5051         * config/mips/tm-vr4300el.h: Delete file.
5052         * config/mips/tm-vr4xxxel.h: Delete file.
5053         * config/mips/tm-vr4300.h: Delete file.
5054         * config/mips/tm-vr4100.h: Delete file.
5055         * config/mips/tm-vr4xxx.h: Delete file.
5056         * config/mips/tm-vr5000.h: Delete file.
5057         * config/mips/tm-embedl64.h: Delete file.
5058         * config/mips/tm-embedl.h: Delete file.
5059         * config/mips/tm-embed64.h: Delete file.
5060         * config/mips/tm-bigmips64.h: Delete file.
5061         * config/mips/tm-bigmips.h: Delete file.
5062
5063 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
5064
5065         Fix gdb/1216.
5066         * shnbsd-nat.c: Include "sh-tdep.h".
5067
5068         From Richard Henderson  <rth@redhat.com>:
5069         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5070
5071 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5072
5073         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
5074         forward declaration.
5075         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5076         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5077         (mips_find_saved_regs): Use set_reg_offset.
5078         (mips_frame_init_saved_regs): Delete function.
5079         (mips_pop_frame): Call mips_find_saved_regs instead of
5080         DEPRECATED_FRAME_INIT_SAVED_REGS.
5081
5082 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5083
5084         * mips-tdep.c (mips_gdbarch_init): Do not set
5085         deprecated_max_register_raw_size, register_virtual_size, and
5086         deprecated_max_register_virtual_size.
5087
5088 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5089
5090         * i386-tdep.c: Include "dwarf2-frame.h".
5091         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5092         * Makefile.in (i386-tdep.o): Update dependencies.
5093
5094         * dwarf2-frame.c, dwarf2-frame.h: New files.
5095         * Makefile.in (SFILES): Add dwarf2-frame.c.
5096         (dwarf2_frame_h): Define.
5097         (COMMON_OBS): Add dwarf2-frame.o.
5098         (dwarf2-frame.o): Add dependencies.
5099
5100 2003-05-31  Andreas Jaeger  <aj@suse.de>
5101
5102         * x86-64-linux-nat.c: Fix comment.
5103
5104 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5105
5106         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5107         function signature.
5108
5109         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5110         have a sigcontext_addr handler.
5111         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5112         sigcontext_addr handler.
5113
5114 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5115
5116         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5117         (print_fp_register_row): Replace do_fp_register_row.
5118         (mips_print_fp_register): Add "file" and "frame" parameters.
5119         (mips_print_register): Add "file" and "frame" parameters.
5120         (mips_print_registers_info): Replace mips_do_registers_info.
5121         (mips_gdbarch_init): Set print_registers_info instead of
5122         deprecated_do_registers_info.
5123         (mips_read_fp_register_single): Add "frame" parameter.
5124         (mips_read_fp_register_double): Add "frame" parameter.
5125
5126 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5127
5128         * i386-tdep.c (i386_register_name): Check for MMX registers first.
5129         Fixes a bug where GDB would print the wrong register names for
5130         targets without SSE.
5131
5132         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5133         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5134         registers.
5135
5136         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5137         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5138         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5139         TDEP->sc_sp_offset.
5140
5141         From Michal Ludvig  <mludvig@suse.cz>:
5142         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5143         and `sc_num_regs'.
5144         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5145         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5146         I386_ST0_REGNUM): Move here from...
5147         * i386-tdep.c: ... here.
5148         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5149         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5150         registers if possible.
5151         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5152         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5153         Remove variables.
5154         (i386bsd_sc_reg_offset): New variable.
5155         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5156         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5157         TDEP->sc_sp_offset.
5158         (i386fbsd_sc_reg_offset): New variable.
5159         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5160         TDEP->sc_num_regs.
5161         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5162         variables.
5163         (i386fbsd4_sc_reg_offset): New variable.
5164         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5165         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5166         TDEP->sc_sp_offset.
5167         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5168         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5169         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5170         Remove variables.
5171         (i386nbsd_sc_reg_offset): New variable.
5172         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5173         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5174         TDEP->sc_sp_offset.
5175         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5176         Remove variables.
5177         (i386obsd_sc_reg_offset): New variable.
5178         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5179         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5180         TDEP->sc_sp_offset.
5181         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5182         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
5183         for frame pointer offset in `struct sigcontext'.
5184
5185 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5186
5187         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5188         architecture methods call_dummy_words, sizeof_call_dummy_words,
5189         push_return_address, store_struct_return, and fix_call_dummy.  Set
5190         push_dummy_call instead of deprecated_push_arguments.
5191         (mips_store_struct_return): Delete function.
5192         (mips_fix_call_dummy): Delete function.
5193         (mips_push_return_address): Delete function.
5194         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5195         RA_REGNUM and T9_REGNUM.
5196         (mips_n32n64_push_dummy_call): Ditto for
5197         mips_n32n64_push_arguments.
5198         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5199         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5200
5201 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5202
5203         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
5204         "dummy_addr" to "bp_addr".
5205         * infcall.c (call_function_by_hand): Pass "funaddr" to
5206         gdbarch_push_dummy_call.
5207         * gdbarch.h, gdbarch.c: Re-generate.
5208         * i386-tdep.c (i386_push_dummy_call): Update.
5209         * arm-tdep.c (arm_push_dummy_call): Update.
5210         * d10v-tdep.c (d10v_push_dummy_call): Update.
5211
5212 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5213
5214         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5215         variable declarations.
5216         (x86_64_register_number, x86_64_register_name): Remove prototypes.
5217         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5218         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5219         x86_64_init_frame_pc, x86_64_init_frame_pc,
5220         x86_64_function_has_prologue): Remove prototypes.
5221         (X86_64_NUM_GREGS): New define.
5222         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5223         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
5224         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5225         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5226         XMM1_REGNUM): Remove defines.
5227         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5228         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5229         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5230         X86_64_XMM1_REGNUM): New defines.
5231         (struct x86_64_register_info): Renamed from `struct
5232         register_info'.  Remove `size' member.
5233         (x86_64_register_info_table): Remove variable.
5234         (x86_64_register_info): New variable.
5235         (X86_64_NUM_REGS): New define.
5236         (X86_64_NUM_GREGS): Remove define.
5237         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5238         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5239         Remove variables.
5240         (x86_54_dwarf2_reg_to_regnum): Remove function.
5241         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5242         (x86_64_dwarf_reg_to_regnum): New function.
5243         (x86_64_register_name): Rewrite.
5244         (x86_64_register_raw_size): Remove function.
5245         (x86_64_register_byte_table): Remove variable.
5246         (x86_64_register_byte): Remove function.
5247         (x86_64_register_virtual_type): Remove function.
5248         (x86_64_register_type): New function.
5249         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5250         x86_64_register_convert_to_raw): Remove functions.
5251         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5252         (x86_64_use_struct_convention): Make static.  Adjust for renamed
5253         defines.
5254         (x86_64_frame_init_saved_regs): Remove function.
5255         (x86_64_push_arguments): Make static.  Change to accept a regcache
5256         as argument.
5257         (x86_64_store_return_value, x86_64_extract_return_value): Make
5258         static.  Rewrite based on i386 counterparts.
5259         (x86_64_push_dummy_call): New function.
5260         (X86_64_NUM_SAVED_REGS): New define.
5261         (x86_64_register_number): Remove function.
5262         (x86_64_store_struct_return): Remove function.
5263         (x86_64_frameless_function_invocation,
5264         x86_64_function_has_prologue): Remove functions.
5265         (PROLOG_BUFSIZE): Remove define.
5266         (struct x86_64_frame_cache): New structure.
5267         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5268         x86_64_frame_cache, x86_64_frame_this_id,
5269         x86_64_frame_prev_register, x86_64_frame_p,
5270         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5271         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5272         functions.
5273         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5274         variables.
5275         (x86_64_skip_prologue): Rewrite in terms of
5276         x86_64_analyze_prologue.
5277         (x86_64_frame_base_address): New function.
5278         (x86_64_frame_base): New variable.
5279         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5280         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
5281         set deprecated_fp_regnum, deprecated_register_size,
5282         deprecated_register_bytes, register_raw_size, register_byte,
5283         register_virtual_type, register_convertiable,
5284         register_convert_to_virtual, convert_to_raw,
5285         deprecated_get_saved_register, deprecated_target_read_fp,
5286         deprecated_push_arguments, deprecated_push_return_address,
5287         deprecated_pop_frame, deprecated_store_struct_return,
5288         deprecated_frame_init_saved_regs, deprecated_frame_chain,
5289         frameless_function_invocation, deprecated_frame_saved_pc,
5290         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5291         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5292         deprecated_init_frame_pc and virtual_frame_pointer.  Call
5293         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5294         and x86_64_frame_p.  Call frame_base_set_default to register
5295         x86_64_frame_base.
5296         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5297         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5298         (_initialize_x86_64_tdep): Remove function.
5299         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5300         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5301         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5302         define.
5303         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5304         (x86_64_linux_sigcontext_addr): Rewrite.
5305         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5306         x86_64_linux_frame_saved_pc): Remove functions.
5307         (x86_64_linux_pc_in_sigtramp): Renamed from
5308         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
5309         trampoline.
5310         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5311         Remove_functions.
5312         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
5313         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5314         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5315         (x86_64_regmap): Rename to regmap.
5316         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5317         x86_64_num_gregs.
5318         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
5319         x86_64_regmap.
5320         (x86_64_fxsave_offset): Remove function.
5321         (supply_fpregset): Simply call x86_64_supply_fxsave.
5322         (fill_fpregset): Simply call x86_64_fill_fxsave.
5323         (fetch_inferior_registers, store_inferior_registers): Avoid
5324         asignment in if-statement.
5325         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5326         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5327         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5328         (fetch_core_registers): Remove function.
5329         (linux_elf_core_fns): Remove.
5330         (offsetoff): Don't define.
5331         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5332         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5333         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5334         add core-regset.o.
5335         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5336         protection against multiple includes instead of NM_X86_64_h.  Add
5337         various comments.  Include "config/nm-linux.h".  Don't include
5338         <signal.h>.
5339         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5340         GET_THREAD_SIGNALS): Remove defines.
5341         (x86_64_register_u_addr, kernel_u_size,
5342         lin_thread_get_thread_signals): Remove prototypes.
5343         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5344         [HAVE_LINK_H]: Don't include "solib.h".
5345         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5346         * config/i386/tm-x86-64linux.h: Fix comments.
5347         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5348         x86-64-tdep.o): Update dependencies.
5349
5350 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5351
5352         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5353         Change parameter type to a "struct regcache *".
5354
5355         * gdbarch.sh: Regardless of the multi-arch level, always define
5356         the macro when not already defined.
5357         * gdbarch.h, gdbarch.c: Re-generate.
5358
5359 2003-05-30  Richard Henderson  <rth@redhat.com>
5360
5361         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5362         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5363         (alpha_mdebug_frame_this_id): Likewise.
5364         (alpha_mdebug_frame_prev_register): Likewise.
5365         (alpha_mdebug_frame_base_address): Likewise.
5366         (alpha_mdebug_frame_locals_address): Likewise.
5367         (alpha_mdebug_frame_args_address): Likewise.
5368         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5369         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5370         (alpha_heuristic_frame_unwind_cache): Make static; add missing
5371         loop increment.
5372         (alpha_heuristic_frame_this_id): Make static.
5373         (alpha_heuristic_frame_prev_register): Likewise.
5374         (alpha_heuristic_frame_base_address): Likewise.
5375         * alpha-tdep.h: Update.
5376
5377 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
5378
5379         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5380         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5381         defenitions.
5382         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5383         * i386-tdep.c: Mark functions that are 64-bit safe as such.
5384         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5385         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5386         I386_ST0_REGNUM): New defines.
5387         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5388         codestream_get): Remove define.
5389         (codestream_next_addr, condestream_addr, condestream_buf,
5390         codestream_off, codestream_cnt): Remove variables.
5391         (codestream_fill, codestream_seek, codestream_read): Remove
5392         functions.
5393         (i386_follow_jump): Rewrite to avoid usage of removed codestream
5394         functionality.
5395         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5396         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5397         i386_frame_saved_pc, i386_saved_pc_after_call,
5398         i386_frame_num_args, i386_frame_init_saved_regs,
5399         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5400         i386_push_arguments): Remove functions.
5401         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5402         functionality.  Use i386_analyze_prologue instead of
5403         i386_get_frame_setup.
5404         (I386_NUM_SAVED_REGS): New define.
5405         (struct i386_frame_cache): New structure.
5406         (i386_alloc_frame_cache, i386_analyze_struct_return,
5407         i386_skip_probe, i386_analyze_frame_setup,
5408         i386_analyze_register_saves, i386_analyze_prologue,
5409         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5410         i386_frame_prev_register, i386_sigtramp_frame_cache,
5411         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5412         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5413         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5414         New functions.
5415         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5416         New variables.
5417         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5418         I386_EAX_REGNUM and I386_EDX_REGNUM.
5419         (i386_extract_return_value, i386_store_return_value): Use
5420         I386_ST0_REGNUM where appropriate.
5421         (i386_extract_struct_value_address): Rewrite to use extract_address.
5422         (i386_svr4_pc_in_sigtramp): Add comment.
5423         (i386_svr4_sigcontext_addr): Rewrite.
5424         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5425         TDEP->sc_sp_offset.
5426         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
5427         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5428         of new defines.  Set push_dummy_call, don't set
5429         deprecated_push_arguments, deprecated_push_return_address,
5430         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
5431         deprecated_frame_chain, deprecated_frame_saved_pc,
5432         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
5433         save_dummy_frame_tos, unwind_pc.  Call
5434         frame_unwind_append_predicate and frame_base_set_default.  Don't
5435         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
5436         Don't set frameless_function_invocation.  Don't set
5437         deprecated_register_bytes, deprecated_register_size,
5438         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5439         * i386-linux-tdep.c: Fix formatting in some comments.
5440         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5441         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5442         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5443         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5444         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5445         redundant parentheses.
5446         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5447         (i386_linux_sigcontext_addr): Use it.  Rewrite.
5448         (find_minsym_and_objfile): Change name of second argument.
5449         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
5450         changed.  Use frame_pc_unwind instead of
5451         DEPRECATED_SAVED_PC_AFTER_CALL.
5452         (i386_linux_init_abi): Don't set deprecated_register_bytes.
5453         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5454         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5455         unwinder.
5456         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5457         "dummy-frame.h".
5458         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5459         (_initialize_i386_cygwin_tdep): New prototype.
5460         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5461         deprecated_frame_chain_valid.
5462         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5463         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5464         Rely on the SVR4 defaults.
5465         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5466         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5467
5468 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5469
5470         * infcall.c (call_function_by_hand): Always call
5471         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5472
5473 2003-05-30  Richard Henderson  <rth@redhat.com>
5474
5475         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5476         increment.
5477
5478 2003-05-29  Jim Blandy  <jimb@redhat.com>
5479
5480         Use gdbarch methods for solib stuff on PowerPC Linux.
5481         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5482         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5483         show through.
5484         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5485         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5486         giving the same effect as the #definitions above.
5487
5488 2003-05-29  Adam Fedor  <fedor@gnu.org>
5489
5490         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5491         (find_implementation_from_class): Replace it with the standard
5492         case i.e. do nothing.
5493
5494 2003-05-29  Richard Henderson  <rth@redhat.com>
5495
5496         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5497         (alpha_linux_sigtramp_offset): Use it.  Make static.
5498         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5499         update for new frame model.
5500         * alpha-mdebug-tdep.c: New file.
5501         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5502         (alpha_osf1_init_abi): Install it.
5503         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5504         (linked_proc_desc_table): Remove.
5505         (alpha_frame_past_sigtramp_frame): Remove.
5506         (alpha_dynamic_sigtramp_offset): Remove.
5507         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5508         (alpha_proc_desc_is_dyn_sigtramp): Remove.
5509         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5510         (push_sigtramp_desc): Remove.
5511         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5512         (alpha_cannot_store_register): Likewise.
5513         (alpha_sigcontext_addr): Remove.
5514         (alpha_find_saved_regs): Remove.
5515         (alpha_frame_init_saved_regs): Remove.
5516         (alpha_init_frame_pc_first): Remove.
5517         (read_next_frame_reg): Remove.
5518         (alpha_frame_saved_pc): Remove.
5519         (alpha_saved_pc_after_call): Remove.
5520         (temp_proc_desc, temp_saved_regs): Remove.
5521         (alpha_about_to_return): Remove.
5522         (cached_proc_desc): Remove.
5523         (alpha_frame_chain): Remove.
5524         (alpha_print_extra_frame_info): Remove.
5525         (alpha_init_extra_frame_info): Remove.
5526         (alpha_frame_locals_address): Remove.
5527         (alpha_frame_args_address): Remove.
5528         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5529         (alpha_push_dummy_frame): Remove.
5530         (alpha_pop_frame): Remove.
5531         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5532         (alpha_read_insn): New.
5533         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5534         for different insn encodings.
5535         (alpha_in_lenient_prologue): Remove.
5536         (struct alpha_sigtramp_unwind_cache): New.
5537         (alpha_sigtramp_frame_unwind_cache): New.
5538         (alpha_sigtramp_register_address): New.
5539         (alpha_sigtramp_frame_this_id): New.
5540         (alpha_sigtramp_frame_prev_register): New.
5541         (alpha_sigtramp_frame_unwind): New.
5542         (alpha_sigtramp_frame_p): New.
5543         (struct alpha_heuristic_unwind_cache): New.
5544         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5545         don't count nop insns that occur between functions.
5546         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5547         heuristic_proc_desc, but without the mdebug wrapping.
5548         (alpha_heuristic_frame_this_id): New.
5549         (alpha_heuristic_frame_prev_register): New.
5550         (alpha_heuristic_frame_unwind): New.
5551         (alpha_heuristic_frame_p): New.
5552         (alpha_heuristic_frame_base_address): New.
5553         (alpha_heuristic_frame_base): New.
5554         (alpha_unwind_dummy_id): New.
5555         (alpha_unwind_pc): New.
5556         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
5557         frame related deprecated initializations; install replacements.
5558         (alpha_dump_tdep): Remove.
5559         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5560         (alpha_read_insn, alpha_after_prologue,
5561         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5562         alpha_heuristic_frame_prev_register,
5563         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5564         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5565         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5566         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5567
5568 2003-05-29  Andrew Cagney  <cagney@redhat.com>
5569
5570         * gdb_assert.h (gdb_assert_fail): Provide different definitions
5571         dependant on the availability of ASSERT_FUNCTION.
5572         (ASSERT_FUNCTION): Do not define when there is no function name.
5573
5574 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
5575
5576         From Jimi X <jimix@watson.ibm.com>:
5577         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5578
5579 2003-05-28  Jim Blandy  <jimb@redhat.com>
5580
5581         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5582         argument to ptrace to int; the system headers should give it the
5583         right type, and pointers don't fit in ints on powerpc64-*-*.
5584
5585 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
5586
5587         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5588         DW_TAG_catch_block.
5589
5590 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5591
5592         * stabsread.c (dbx_lookup_type): Make static.
5593         (read_type): Ditto.
5594         (add_undefined_type): Ditto.
5595         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5596         not export.
5597
5598 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5599
5600         * hpread.c (hpread_has_name): Make static.
5601         (hpread_psymtab_to_symtab): Ditto.
5602         (file_exists): Ditto.
5603         (hpread_call_pxdb): Ditto.
5604         (hpread_pxdb_needed): Ditto.
5605         (hpread_quick_traverse): Ditto.
5606         (hpread_get_header): Ditto.
5607         (hpread_get_lntt): Ditto.
5608         (hpread_get_slt): Ditto.
5609         (class_of): Ditto.
5610
5611 2003-05-25  Andreas Schwab  <schwab@suse.de>
5612
5613         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5614         stack_align and deprecated_extra_stack_alignment_needed.
5615         (m68k_stack_align): Delete.
5616
5617         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5618         (m68k_register_virtual_size): Likewise.
5619         (altos_skip_prologue): Remove obsolete function.
5620         (isi_frame_num_args): Likewise.
5621         (news_frame_num_args): Likewise.
5622         (m68k_fix_call_dummy): Make static.
5623         (m68k_push_dummy_frame): Likewise.
5624         (m68k_pop_frame): Likewise.
5625         (m68k_skip_prologue): Likewise.
5626         (m68k_frame_init_saved_regs): Likewise.
5627         (m68k_saved_pc_after_call): Likewise.
5628         (m68k_get_longjmp_target): Make multi-arch.
5629         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5630         structure.  Register m68k_get_longjmp_target if enabled.
5631         * m68k-tdep.h (struct gdbarch_tdep): Define.
5632         * config/m68k/tm-m68k.h: Don't include "regcache.h".
5633
5634         * Makefile.in (config.status): Also depend on configure.tgt
5635         and configure.host.
5636         (m68klinux-tdep.o): Update dependencies.
5637         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5638         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5639         (M68K_LINUX_JB_PC): Define.
5640         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5641         and take additional parameter.
5642         (m68k_linux_sigtramp_saved_pc): Update.
5643         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
5644         m68k_linux_pc_in_sigtramp, in_plt_section,
5645         find_solib_trampoline_target.
5646         * config/m68k/tm-linux.h: Don't include any tm headers.
5647         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5648         (JB_ELEMENT_SIZE): Likewise.
5649         (JB_PC): Likewise.
5650         (GET_LONGJMP_TARGET): Likewise.
5651         (IN_SIGTRAMP): Likewise.
5652         (SVR4_SHARED_LIBS): Define this and include "solib.h".
5653
5654 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5655
5656         * sparc-tdep.c (sparc32_do_push_arguments): New function.
5657         (sparc32_push_arguments): Re-implement by calling
5658         sparc32_do_push_arguments.
5659
5660 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5661
5662         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5663         SPARC_O1_REGNUM): New defines.
5664         (sparc32_extract_return_value): Rewrite to operate on a regcache.
5665         (sparc32_store_return_value): New function.
5666         (sparc_extract_struct_value_address): Rewrite to operate on a
5667         regcache.
5668         (sparc_gdbarch_init): Don't set
5669         deprecated_extract_struct_value_address.  Set
5670         extract_struct_value_address instead. Don't set
5671         deprecated_extract_return_value and deprecated_store_return_value
5672         for 32-bit targets.  Set extract_return_value and
5673         store_return_value instead.
5674         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5675         DEPRECTAED_EXTRACT_RETURN_VALUE,
5676         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5677         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5678         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5679         (sparc_store_return_value): Remove prototype.
5680         (sparc32_store_return_value): New prototype.
5681         (sparc32_extract_return_value, sparc_extract_struct_value_address):
5682         Adjust prototypes.
5683
5684 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
5685
5686         * sparcnbsd-tdep.c: Include "gdb_string.h".
5687
5688 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5689
5690         * p-valprint.c (pascal_val_print): Replace extract_address with
5691         the inline equivalent extract_unsigned_integer.
5692         * jv-valprint.c (java_value_print): Ditto.
5693         * ada-valprint.c (ada_val_print_1): Ditto.
5694         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5695
5696 2003-05-23  Theodore A. Roth  <troth@openavr.org>
5697
5698         * blockframe.c (frameless_look_for_prologue): Remove unused
5699         after_prologue variable.
5700
5701 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
5702
5703         * blockframe.c (get_pc_function_start): Rewrite to avoid
5704         asignments in if-statements.
5705
5706 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
5707
5708         Committed by Elena Zannoni  <ezannoni@redhat.com>.
5709         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5710         files, don't relocate absolute symbols (and do use mst_abs).
5711
5712 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5713
5714         * objc-lang.c: Include "gdb_assert.h".
5715         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5716         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5717         (gdb_check, gdb_check_fatal): Delete functions.
5718         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5719         gdb_assert.
5720         (parse_selector, parse_method, find_methods, find_imps): Ditto.
5721         * Makefile.in (objc-lang.o): Update dependencies.
5722
5723 2003-05-22  Ian Lance Taylor  <ian@airs.com>
5724
5725         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5726         with fprintf_filtered, not fprintf_unfiltered.
5727
5728 2003-05-22  Andrew Cagney  <cagney@redhat.com>
5729
5730         * stack.c (frame_info): Inline extract_address, replacing it with
5731         extract_unsigned_integer.
5732         * findvar.c (unsigned_pointer_to_address): Ditto.
5733         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5734         * dwarf2expr.c (dwarf2_read_address): Ditto.
5735         * frame.c (frame_pc_unwind): Update comment.
5736         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5737
5738 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
5739
5740         * infptrace.c (detach): Call print_sys_errmsg rather than
5741         perror_with_name to issue warning message when errno is non-zero
5742         after calling ptrace detach.
5743
5744 2003-05-21  J. Brobecker  <brobecker@gnat.com>
5745
5746         * config/pa/tm-hppa.h: Delete some unused macros. Move some
5747         macro definitions from here...
5748         * hppa-tdep.c: ...to there.
5749
5750 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
5751
5752         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5753         register_ptrace_addr().  Fix all callers.
5754
5755 2003-05-21  Andreas Schwab  <schwab@suse.de>
5756
5757         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5758         dependencies.
5759         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5760         end.
5761         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5762         (_initialize_m68k_linux_tdep): New function.
5763         (m68k_linux_frame_saved_pc): Make static.
5764         (m68k_linux_extract_return_value): Likewise.
5765         (m68k_linux_store_return_value): Likewise.
5766         (m68k_linux_extract_struct_value_address): Likewise.
5767         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5768         Remove.
5769         (DEPRECATED_STORE_RETURN_VALUE): Remove.
5770         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5771         (DEPRECATED_FRAME_SAVED_PC): Remove.
5772
5773 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
5774
5775         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5776         regset numbering rather than our own.
5777
5778 2003-05-19  David Carlton  <carlton@bactrian.org>
5779
5780         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5781
5782 2003-05-19  David Carlton  <carlton@bactrian.org>
5783
5784         Partial fix for PR c++/827.
5785         * cp-support.h: Include symtab.h.
5786         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5787         * cp-namespace.c: Update contributors.
5788         (cp_lookup_symbol_nonlocal): New.
5789         (lookup_namespace_scope, cp_lookup_symbol_namespace)
5790         (lookup_symbol_file): Ditto.
5791         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5792         * block.h: Declare block_scope, block_using, block_global_block.
5793         * block.c (block_scope): New.
5794         (block_using, block_global_block): Ditto.
5795         * Makefile.in (cp_support_h): Depend on symtab_h.
5796         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5797
5798 2003-05-19  David Carlton  <carlton@bactrian.org>
5799
5800         * language.h (struct language_defn): Add 'la_value_of_this'
5801         and 'la_lookup_symbol_nonlocal' members.
5802         * symtab.h: Declare basic_lookup_symbol_nonlocal,
5803         lookup_symbol_static, lookup_symbol_global,
5804         lookup_symbol_aux_block.
5805         * symtab.c (lookup_symbol_aux): Call language hooks to determine
5806         if we should search fields of this and how to do static/global
5807         lookup.
5808         (lookup_symbol_aux_block): Make extern.
5809         (basic_lookup_symbol_nonlocal): New.
5810         (lookup_symbol_static, lookup_symbol_global): Ditto.
5811         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5812         'la_lookup_symbol_nonlocal' members.
5813         * c-lang.c (c_language_defn, cplus_language_defn)
5814         (asm_language_defn, minimal_language_defn): Ditto.
5815         * jv-lang.c (java_language_defn): Ditto.
5816         * language.c (unknown_language_defn, auto_language_defn)
5817         (local_language_defn): Ditto.
5818         * m2-lang.c (m2_language_defn): Ditto.
5819         * objc-lang.c (objc_language_defn): Ditto.
5820         * scm-lang.c (scm_language_defn): Ditto.
5821         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5822         * p-lang.c (pascal_language_defn): Ditto for both.
5823         * Makefile.in (f-lang.o): Depend on value_h.
5824         (p-lang.o): Ditto.
5825
5826 2003-05-19  David Carlton  <carlton@bactrian.org>
5827
5828         * block.h: Declare block_static_block.
5829         * block.c (block_static_block): New.
5830         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5831         lookup_symbol_aux_local, calling block_static_block instead.
5832         (lookup_symbol_aux_local): Delete 'static_block' argument.
5833
5834 2003-05-19  David Carlton  <carlton@bactrian.org>
5835
5836         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5837
5838 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
5839
5840         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5841         register numbers mapping.
5842
5843 2003-05-18  Adam Fedor  <fedor@gnu.org>
5844
5845         * symtab.c (completion_list_objc_symbol): New function.
5846         (make_symbol_completion_list): Use it to add ObjC symbols
5847         when looking though the list.
5848         (language_search_unquoted_string): New function.
5849         (make_file_symbol_completion_list): Use it.
5850
5851 2003-05-18  Andreas Schwab  <schwab@suse.de>
5852
5853         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5854         dependencies.
5855         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5856         as m68k_linux_extract_return_value.
5857         (DEPRECATED_STORE_RETURN_VALUE): Define as
5858         m68k_linux_store_return_value.
5859         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5860         m68k_linux_extract_struct_value_address.
5861         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5862         get_next_frame, get_frame_base, get_frame_pc.
5863         (m68k_linux_frame_saved_pc): Use get_frame_base.
5864         (m68k_linux_extract_return_value): New function.
5865         (m68k_linux_store_return_value): New function.
5866         (m68k_linux_extract_struct_value_address): New function.
5867         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5868
5869         * c-exp.y (typebase): Remove duplicate occurence of
5870         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
5871         of lookup_signed_typename.
5872
5873 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
5874
5875         * dwarf2loc.c (find_location_expression): Change type of second
5876         argument to `size_t *'.
5877         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5878         for size variable.
5879
5880 2003-05-18  David Carlton  <carlton@bactrian.org>
5881
5882         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5883         'linkage_name'.  Add comment.
5884         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5885         'linkage_name'.
5886         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5887         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5888         (lookup_block_symbol): Ditto.
5889
5890 2003-05-16  Andrew Cagney  <cagney@redhat.com>
5891
5892         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5893         * gdbarch.h, gdbarch.c: Re-generate.
5894         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5895         * TODO (REGISTER_BYTES): Delete reference.
5896         * alpha-tdep.c (alpha_gdbarch_init): Update.
5897         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5898         * x86-64-tdep.c (x86_64_init_abi): Update.
5899         * vax-tdep.c (vax_gdbarch_init): Update.
5900         * v850-tdep.c (v850_gdbarch_init): Update.
5901         * sparc-tdep.c (sparc_gdbarch_init): Update.
5902         * sh-tdep.c (sh_gdbarch_init): Update.
5903         * s390-tdep.c (s390_gdbarch_init): Update.
5904         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5905         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5906         (ns32k_gdbarch_init_32382): Update.
5907         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5908         * mcore-tdep.c (mcore_gdbarch_init): Update.
5909         * m68k-tdep.c (m68k_gdbarch_init): Update.
5910         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5911         * ia64-tdep.c (ia64_gdbarch_init): Update.
5912         * i386-tdep.c (i386_gdbarch_init): Update.
5913         * i386-linux-tdep.c (i386_linux_init_abi): Update.
5914         * hppa-tdep.c (hppa_gdbarch_init): Update.
5915         * h8300-tdep.c (h8300_gdbarch_init): Update.
5916         * frv-tdep.c (frv_gdbarch_init): Update.
5917         * cris-tdep.c (cris_gdbarch_init): Update.
5918         * avr-tdep.c (avr_gdbarch_init): Update.
5919         * arm-tdep.c (arm_gdbarch_init): Update.
5920         * sparc-tdep.c (sparc_pop_frame): Update.
5921         * rs6000-tdep.c (rs6000_pop_frame): Update.
5922         * remote.c (init_remote_state): Update.
5923         (remote_prepare_to_store): Update.
5924         * remote-vx.c (vx_prepare_to_store): Update.
5925         * remote-sds.c (sds_fetch_registers): Update.
5926         (sds_prepare_to_store): Update.
5927         * remote-array.c: Update.
5928         * regcache.c (init_legacy_regcache_descr): Update.
5929         (init_regcache_descr): Update.
5930         * mips-tdep.c (mips_eabi_extract_return_value): Update.
5931         (mips_o64_extract_return_value): Update.
5932         * irix5-nat.c (fetch_core_registers): Update.
5933         * irix4-nat.c (fetch_core_registers): Update.
5934         * i386-tdep.h: Update.
5935         * hppa-tdep.c (pa_do_registers_info): Update.
5936         (pa_do_strcat_registers_info): Update.
5937         * cris-tdep.c (cris_register_bytes_ok): Update.
5938         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5939         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5940         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5941         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5942         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5943         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5944         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5945         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5946         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5947         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5948         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5949         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5950         (REGISTER_BYTES_OK): Update.
5951         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5952         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5953
5954 2003-05-16  Ian Lance Taylor  <ian@airs.com>
5955
5956         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5957         (vax_print_insn, print_insn_arg): Remove static functions.
5958         (vax_gdbarch_init): Call set_gdbarch_print_insn with
5959         print_insn_vax from opcodes library.
5960         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5961
5962 2003-05-15  Andrew Cagney  <cagney@redhat.com>
5963
5964         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5965         * target.h (memory_breakpoint_from_pc): Delete declaration.
5966         * mem-break.c (memory_breakpoint_from_pc): Delete function.
5967         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5968         * monitor.c (monitor_insert_breakpoint): Use
5969         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5970         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5971         * gdbarch.h, gdbarch.c: Re-generate.
5972         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5973         (sparc_gdbarch_init): Set breakpoint_from_pc to
5974         sparc_breakpoint_from_pc.
5975         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5976         (BREAKPOINT_FROM_PC): Define.
5977         (sparc_breakpoint_from_pc): Declare.
5978         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5979         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5980         (BREAKPOINT_FROM_PC): Define.
5981         (BREAKPOINT): Delete macro.
5982         * target.h: Update comment.
5983         * s390-tdep.c (s390_gdbarch_init): Update comments.
5984         * remote.c: Update comments.
5985         * remote-mips.c: Update comments.
5986         * proc-api.c (write_with_trace): Do not check for a breakpoint.
5987         * mem-break.c: Update comment.
5988         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5989         (ia64_memory_insert_breakpoint): Update.
5990         * config/sparc/tm-sparc.h: Update comment.
5991         * config/pa/tm-hppa64.h: Update comment.
5992         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5993         (rs6000_breakpoint_from_pc): Update.
5994         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5995         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5996         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5997         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5998         (mips_breakpoint_from_pc): Update.
5999         (mips_dump_tdep): Update.
6000
6001         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6002         * minsyms.c (lookup_minimal_symbol): Inline
6003         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
6004
6005         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6006         * p-valprint.c (pascal_object_print_value_fields): Ditto.
6007         * p-lang.c (pascal_printstr): Ditto.
6008         * objc-lang.c (objc_printstr): Ditto.
6009         * m2-lang.c (m2_printstr): Ditto.
6010         * jv-valprint.c (java_print_value_fields): Ditto.
6011         * f-lang.c (f_printstr): Ditto.
6012         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
6013         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6014         for repeat_count_threshold.
6015         * Makefile.in (cp-valprint.o): Update dependencies.
6016
6017 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
6018
6019         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6020         (examine_prologue): Support looking through leaf functions, knowing
6021         they start with mov r2,r12.  Support skipping over indirect stores
6022         of the input registers.  Upon hitting a non-nop branch instruction
6023         or predicated instruction, bail out by setting lim_pc to the current
6024         pc value in the loop.  At the end, if the lim_pc value is still
6025         beyond our calculated value and we have trust_limit set,
6026         use the lim_pc value.
6027
6028 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6029
6030         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6031         generic_find_dummy_frame.
6032         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6033         (deprecated_generic_find_dummy_frame): Update.
6034         (deprecated_read_register_dummy): Update.
6035         * frame.c (deprecated_generic_get_saved_register): Update.
6036
6037 2003-05-15  Theodore A. Roth  <troth@openavr.org>
6038
6039         * avr-tdep.c (avr_breakpoint_from_pc): New function.
6040         (avr_gdbarch_init): Set breakpoint_from_pc method.
6041
6042 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6043
6044         * regcache.c (build_regcache): Set deprecated_register_valid
6045         directly.
6046         (deprecated_grub_regcache_for_register_valid): Delete function.
6047         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6048         declaration.
6049
6050 2003-05-15  David Carlton  <carlton@bactrian.org>
6051
6052         Committed by Elena Zannoni <ezannoni@redhat.com>
6053         * symtab.c (lookup_symbol_aux): Delete calls to
6054         lookup_symbol_aux_minsyms.
6055         (lookup_symbol_aux_minsyms): Comment out function and
6056         prototype. Delete lookup by mangled name.
6057
6058 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
6059
6060         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6061         correctly indicate an empty stack and ``stack_allocated'' to the
6062         indicate the number of elements initially allocated.
6063         (dwarf_expr_grow_stack): Simplify method for computing new
6064         stack size.  Don't loop infinitely if ``stack_len'' is zero.
6065         (execute_stack_op): Move ``ctx->in_reg'' initialization
6066         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6067         be used in conjuction with DW_OP_piece.  Revise error message
6068         accordingly.
6069
6070 2003-05-14  Theodore A. Roth  <troth@openavr.org>
6071
6072         * MAINTAINERS: Update my email address.
6073         * avr-tdep.c: Ditto.
6074
6075 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
6076
6077         * symtab.h (enum domain_enum): Rename from namespace_enum.
6078         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6079         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6080         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6081         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6082         TYPES_NAMESPACE, METHODS_NAMESPACE.
6083         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6084         (struct symbol, struct partial_symbol): Rename field
6085         'namespace_enum namespace' to 'domain_enum domain'.
6086         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6087         Delete old define kludge for namespace.
6088
6089         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6090         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6091         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6092         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6093         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6094         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6095         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6096         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6097         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6098         occurrences of the above.
6099
6100 2003-05-14  Ian Lance Taylor  <ian@airs.com>
6101
6102         * Makefile.in (install-only): Use $(SHELL) when running
6103         mkinstalldirs.
6104
6105 2003-05-13  Ian Lance Taylor  <ian@airs.com>
6106
6107         * MAINTAINERS (write after approval): Add myself.
6108
6109         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6110         second and third arguments.
6111         * ser-tcp.c (_initialize_ser_tcp): Likewise.
6112         * ser-unix.c (_initialize_ser_hardwire): Likewise.
6113
6114 2003-05-13  Andrew Cagney  <cagney@redhat.com>
6115
6116         * defs.h (store_address): Delete declaration.
6117         findvar.c (store_address): Delete function.
6118         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6119         store_unsigned_integer.
6120         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6121         * v850-tdep.c (v850_push_arguments): Ditto.
6122         * sparc-tdep.c (sparc_get_saved_register): Ditto.
6123         * sh-tdep.c (sh64_get_saved_register): Ditto.
6124         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6125         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6126         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6127         (mips_get_saved_register): Ditto.
6128         * ia64-tdep.c (ia64_get_saved_register): Ditto.
6129         (find_func_descr, ia64_push_arguments): Ditto.
6130         * i386-tdep.c (i386_push_arguments): Ditto.
6131         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6132         * frv-tdep.c (frv_push_arguments): Ditto.
6133         * frame.c (legacy_saved_regs_prev_register): Ditto.
6134         (deprecated_generic_get_saved_register): Ditto.
6135         * findvar.c (unsigned_address_to_pointer): Ditto.
6136         * dwarf2read.c (dwarf2_const_value): Ditto.
6137         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6138         * alpha-tdep.c (alpha_push_arguments): Ditto.
6139
6140 2003-05-12  J. Brobecker  <brobecker@gnat.com>
6141
6142         * NEWS: Mention that the hppa-hpux port has been partially
6143         multiarched (32bit ABIT only, so far).
6144
6145 2003-05-11  Andrew Cagney  <cagney@redhat.com>
6146
6147         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6148         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6149         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6150         sim/testsuite/sim/arm/misaligned2.ms, and
6151         sim/testsuite/sim/arm/misaligned3.ms.
6152         * disasm.h (struct ui_file): Add opaque struct declaration.
6153         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6154         * frame.h (struct ui_file): Ditto.
6155
6156 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
6157
6158         * value.h: Pretty print.
6159
6160 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
6161
6162         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6163
6164 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6165
6166         * regcache.h (max_register_size): Delete declaration.
6167         * regcache.c (max_register_size): Delete function.
6168         (struct regcache_descr): Delete field "max_register_size".
6169         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6170         registers fit in MAX_REGISTER_SIZE.
6171         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6172         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6173         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6174         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6175         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6176         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6177         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6178         * dve3900-rom.c, hppa-tdep.c: Ditto.
6179
6180 2003-05-08  David Carlton  <carlton@math.stanford.edu>
6181
6182         * valops.c (push_word): Fix typo.
6183
6184 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6185
6186         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6187         * gdbarch.h: Re-generate.
6188         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6189         (legacy_max_register_raw_size): Delete declaration.
6190         * regcache.c (legacy_max_register_raw_size): Delete function.
6191         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6192         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6193         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6194         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6195         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6196         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6197         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6198         * findvar.c, dwarf2cfi.c: Ditto.
6199
6200 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6201
6202         * mips-tdep.c (read_signed_register): New function, moved to here
6203         from "regcache.c".
6204         (read_signed_register_pid): Ditto.
6205         * regcache.c (read_signed_register_pid): Delete function, moved to
6206         "mips-tdep.c".
6207         (read_signed_register): Ditto.
6208         * regcache.h (read_signed_register): Delete declaration.
6209         (read_signed_register_pid): Delete declaration.
6210
6211 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6212
6213         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6214         * gdbarch.h: Re-generate.
6215         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6216         (legacy_max_register_virtual_size): Delete declaration.
6217         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6218         * d10v-tdep.c (d10v_print_registers_info): Ditto.
6219         * tracepoint.c (memrange_sortmerge): Ditto.
6220         * sparc-tdep.c (sparc_print_registers): Ditto.
6221         * regcache.c (legacy_max_register_virtual_size): Delete function.
6222
6223 2002-05-08  J. Brobecker  <brobecker@gnat.com>
6224
6225         * fork-child.c (escape_bang_in_quoted_argument): New function.
6226         (fork_inferior): Escape '!' characters in quoted arguments
6227         only when needed.
6228
6229 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6230
6231         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6232         the language of the CU is not currently supported by GDB.
6233
6234 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6235
6236         * defs.h (language): Add language_minimal enum value.
6237         * c-lang.c (minimal_language_defn): New language definition.
6238         (_initialize_c_language): Add the new minimal language to the list
6239         of languages known to GDB.
6240
6241 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
6242
6243         * frame.c (get_frame_type): Don't attempt to lazily initialize
6244         frame's unwinder for legacy frames.
6245
6246 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6247
6248         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6249         and "regcache" parameters.
6250         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6251
6252 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6253
6254         * dwarf2read.c (dwarf_decode_lines): Only use output of
6255         check_cu_functions() when calling record_line().  Do not update
6256         the current address.
6257
6258 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6259
6260         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6261         code.
6262
6263 2003-05-07  Jim Blandy  <jimb@redhat.com>
6264
6265         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6266         'maint info symtabs' and 'maint info psymtabs'.
6267         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6268         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6269         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6270         Declarations updated.
6271         * maint.c (maintenance_list_command): Delete.
6272         (_initialize_maint_cmds): Update calls to add_cmd.
6273         * gdbcmd.h (maintenancelistlist): Delete declaration.
6274         * cli/cli-cmds.c (maintenancelistlist): Delete.
6275         (init_cmd_lists): Don't initialize it.
6276         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6277
6278 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6279
6280         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6281         "regcache".
6282         (d10v_print_registers_info): Update.
6283         (d10v_dmap_register, d10v_imap_register): Delete functions.
6284         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6285         and "imap_register".
6286         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6287         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6288         * arch-utils.c (generic_remote_translate_xfer_address): Add
6289         "regcache" and "gdbarch" parameters.
6290         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6291         parameter.  Change class to multi-arch.
6292         * gdbarch.h, gdbarch.c: Re-generate.
6293         * remote.c (remote_xfer_memory): Use
6294         gdbarch_remote_translate_xfer_address.
6295
6296 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6297
6298         * infrun.c (prev_pc): Move declaration ahead of proceed().
6299         (proceed): Refresh prev_pc value before resuming.
6300         (stop_stepping): Remove code to refresh prev_pc.
6301
6302 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6303
6304         * nto-tdep.c: Removed stray comment.
6305
6306 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6307
6308         * i386-nto-tdep.c: Fix old K&R function definitions.
6309         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6310         Also change add_show_from_set() call to add_setshow_cmd().
6311         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6312
6313 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6314
6315         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6316         (fprint_dummy_frames): New function.
6317         (maintenance_print_dummy_frames): New function.
6318         (_initialize_dummy_frame): Add command "maint print dummy-frames".
6319         * frame.c (fprint_frame_id): Make global.
6320         * frame.h (fprint_frame_id): Declare.
6321         * Makefile.in (dummy-frame.o): Update dependencies.
6322
6323 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6324
6325         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6326         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6327         SIZEOF_CALL_DUMMY_WORDS.
6328         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6329         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6330         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6331         CALL_DUMMY_BREAKPOINT_OFFSET.
6332         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6333         CALL_DUMMY_START_OFFSET.
6334         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6335         * gdbarch.h, gdbarch.c: Re-generate.
6336         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6337         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6338         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6339         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6340         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6341         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6342         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6343         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6344         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6345         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6346         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6347         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6348         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6349         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6350         * config/sparc/tm-sparc.h: Update.
6351
6352 2003-05-05  Kris Warkentin <kewarken@qnx.com>
6353
6354         * configure.tgt: Add i[3456]86-*-nto*.
6355         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
6356         * nto-tdep.c: New file. Neutrino target support routines.
6357         * nto-tdep.h: New file. Neutrino target header.
6358         * config/tm-qnxnto.h: New file.
6359         * config/i386/i386nto.mt: New file.
6360         * config/i386/tm-i386nto.h: New file.
6361
6362 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6363
6364         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6365         (load_infrun_state): Ditto.
6366         (struct thread_info): Drop "prev_func_name" field.
6367         * thread.c (load_infrun_state): Update.
6368         (save_infrun_state): Update.
6369         * infrun.c (prev_func_name): Delete variable.
6370         (init_wait_for_inferior): Do not clear prev_func_name.
6371         (stop_stepping, keep_going, context_switch): Do not swap
6372         prev_func_name.
6373         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6374         instead of PC_IN_SIGTRAMP.
6375
6376 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6377
6378         * sentinel-frame.c (sentinel_frame_prev_register): Replace
6379         REGISTER_BYTE with register_offset_hack.
6380         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6381         that REGISTER_BYTE is consistent with the regcache.
6382         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6383         * gdbarch.h, gdbarch.c: Regenerate.
6384
6385 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
6386
6387         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6388         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6389
6390         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6391
6392 2003-05-03  J. Brobecker  <brobecker@gnat.com>
6393
6394         From Thierry Schneider <tpschneider1@yahoo.com>
6395         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6396         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6397         (mi-cmd-symbol.o): Add rule.
6398
6399 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6400
6401         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6402         comments noteing that it replaces the old FIX_CALL_DUMMY code.
6403         * gdbarch.h, gdbarch.c: Re-generate.
6404         * d10v-tdep.c (d10v_push_dummy_code): New function.
6405         (d10v_gdbarch_init): Set push_dummy_code.
6406         * infcall.c (legacy_push_dummy_code): New function.
6407         (generic_push_dummy_code): New function.
6408         (push_dummy_code): New function.
6409         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
6410         instead of dummy_addr, to push_dummy_call.  Move call to
6411         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6412         switch.
6413         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6414
6415 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6416
6417         * disasm.h (print_insn): Declare.
6418         * disasm.c (init_gdb_disassemble_info): New function.
6419         (gdb_disassembly): Call init_gdb_disassemble_info.
6420         (gdb_print_insn): New function.
6421         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6422         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
6423         * mcore-tdep.c: Include "disasm.h"
6424         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6425         * d10v-tdep.c: Include "disasm.h".
6426         (display_trace): Call gdb_print_insn, instead of print_insn.
6427         (print_insn): Delete function.
6428         * printcmd.c: Include "disasm.h".
6429         (print_insn): Delete function.
6430         (print_formatted): Call gdb_print_insn, instead of print_insn.
6431         * Makefile.in (printcmd.o): Update dependencies.
6432         (mcore-tdep.o, d10v-tdep.o): Ditto.
6433
6434 2003-05-02  Andrew Cagney  <cagney@redhat.com>
6435
6436         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6437         PC_REGNUM, re-indent.
6438         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6439         PC_REGNUM isn't set.
6440
6441         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6442         * gdbarch.h, gdbarch.c: Re-generate.
6443         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6444         register_virtual_size, pc_regnum, or register_bytes.
6445         (D10V_PC_REGNUM): Rename _PC_REGNUM.
6446         (d10v_register_type): Use D10V_PC_REGNUM.
6447         (d10v_print_registers_info, d10v_read_pc): Ditto.
6448         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6449         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6450
6451 2003-05-02  David Carlton  <carlton@bactrian.org>
6452
6453         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6454         the name with mstrsave.
6455
6456 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
6457
6458         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6459         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6460         (host_charset_name, target_charset_name): New vars for use by
6461         set/show commands.
6462         (host_charset_enum, target_charset_enum): New enums for set/show
6463         commands.
6464         (set_charset_sfunc, set_host_charset_sfunc,
6465         set_target_charset_sfunc): New functions.
6466         (set_host_charset, set_target_charset): Make static.
6467         (list_charsets, set_host_charset_command,
6468         set_target_charset_command): Delete functions.
6469         (show_charset_command): Rewrite as....
6470         (show_charset): Hook this up with the set/show command mechanism.
6471         (_initialize_charset): Change names of charsets to match the
6472         set/show enums. Use host_charset_name and target_charset_name.
6473         Use set/show mechanism for charset, host-charset, target-charset
6474         commands. Do not make 'show host-charset' and 'show
6475         target-charset' be aliases of 'show charset'.
6476
6477         * charset.h (set_host_charset, set_target_charset): Don't export,
6478         they are not used outside the file.
6479
6480 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6481
6482         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6483         (gdb_disassembly): Make "di" non static, always initialize and
6484         cleanup.  Always use dis_asm_read_memory.
6485         (gdb_dis_asm_read_memory): Delete function.
6486
6487 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6488
6489         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6490         (d10v_gdbarch_init): Set frame_align instead of stack_align.
6491
6492 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6493
6494         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6495         "tm_print_insn_info".
6496         (TARGET_PRINT_INSN_INFO): Delete macro.
6497         (dis_asm_read_memory): Delete function declaration.
6498         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6499         (tm_print_insn_info): Delete variable definition.
6500         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6501         * gdbarch.h, gdbarch.c: Re-generate.
6502         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6503         "deprecated_tm_print_insn_info".
6504         * mcore-tdep.c (mcore_dump_insn): Ditto.
6505         * mips-tdep.c (mips_gdbarch_init): Ditto.
6506         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6507         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6508         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6509         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6510         instead of TARGET_PRINT_INSN_INFO, add comment.
6511         * s390-tdep.c (s390_get_frame_info): Instead of
6512         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6513         (s390_check_function_end, s390_is_sigreturn): Ditto.
6514         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6515         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6516         * disasm.c: Include "gdbcore.h".
6517         (_initialize_disasm): New function, initialize
6518         "deprecated_tm_print_insn_info".
6519         (deprecated_tm_print_insn_info): New variable.
6520         (dis_asm_read_memory): Moved from "corefile.c", made static.
6521         (dis_asm_print_address, dis_asm_memory_error): Ditto.
6522         * Makefile.in (disasm.o): Update dependencies.
6523
6524 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6525
6526         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6527
6528 2003-04-29  Adam Fedor  <fedor@gnu.org>
6529
6530         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6531         * infcall.c (find_function_addr): Make non-static.
6532         * infcall.h (find_function_addr): Declare.
6533         * Makefile.in (eval.o): Update dependencies.
6534
6535 2003-04-28  Adam Fedor  <fedor@gnu.org>
6536
6537         * symtab.c (symbol_find_demangled_name): Check for and demangle
6538         ObjC symbols.
6539         (symbol_init_demangled_name): Init for language_objc as well.
6540
6541 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6542
6543         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6544         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6545         * gdbarch.h, gdbarch.c: Re-generate.
6546         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6547         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6548         * inferior.h (deprecated_read_fp): Rename read_fp.
6549         (generic_target_read_fp): Delete declaration.
6550         * regcache.c (generic_target_read_fp): Delete function.
6551         (deprecated_read_fp): Replace read_fp, use
6552         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6553         * d10v-tdep.c (d10v_read_fp): Delete function.
6554         (d10v_gdbarch_init): Do not set deprecated_read_fp.
6555
6556         * sparc-tdep.c (sparc_gdbarch_init): Do not set
6557         deprecated_target_read_fp to generic_target_read_fp.
6558         * sh-tdep.c (sh_gdbarch_init): Ditto.
6559         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6560         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6561         * frv-tdep.c (frv_gdbarch_init): Ditto.
6562
6563         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6564         deprecated_fp_regnum.
6565         * x86-64-tdep.c (x86_64_init_abi): Ditto.
6566         * vax-tdep.c (vax_gdbarch_init): Ditto.
6567         * v850-tdep.c (v850_gdbarch_init): Ditto.
6568         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6569         * sh-tdep.c (sh_gdbarch_init): Ditto.
6570         * s390-tdep.c (s390_gdbarch_init): Ditto.
6571         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6572         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6573         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6574         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6575         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6576         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6577         * i386-tdep.c (i386_gdbarch_init): Ditto.
6578         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6579         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6580         * frv-tdep.c (frv_gdbarch_init): Ditto.
6581         * cris-tdep.c (cris_gdbarch_init): Ditto.
6582         * avr-tdep.c (avr_gdbarch_init): Ditto.
6583         * arm-tdep.c (arm_gdbarch_init): Ditto.
6584         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6585
6586         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6587         * v850-tdep.c (v850_gdbarch_init): Ditto.
6588         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6589         * sh-tdep.c (sh_gdbarch_init): Ditto.
6590         * s390-tdep.c (s390_gdbarch_init): Ditto.
6591         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6592         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6593         * mips-tdep.c (mips_gdbarch_init): Ditto.
6594         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6595         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6596         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6597         * frv-tdep.c (frv_gdbarch_init): Ditto.
6598         * avr-tdep.c (avr_gdbarch_init): Ditto.
6599         * arm-tdep.c (arm_gdbarch_init): Ditto.
6600
6601         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6602         DEPRECATED_FP_REGNUM.
6603         (vax_push_dummy_frame, vax_pop_frame): Ditto.
6604         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6605         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6606         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6607         (sparc32_register_virtual_type): Ditto.
6608         * sh-tdep.c (sh64_frame_chain): Ditto.
6609         (sh64_get_saved_register, sh64_pop_frame): Ditto.
6610         (sh_nofp_frame_init_saved_regs): Ditto.
6611         (sh64_nofp_frame_init_saved_regs): Ditto.
6612         (sh_fp_frame_init_saved_regs): Ditto.
6613         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6614         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6615         * procfs.c (procfs_fetch_registers): Ditto.
6616         (procfs_store_registers): Ditto.
6617         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6618         (store_inferior_registers, fetch_core_registers): Ditto.
6619         (fetch_kcore_registers, clear_regs): Ditto.
6620         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6621         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6622         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6623         * nlm/i386.c (do_status): Ditto.
6624         * mipsv4-nat.c (supply_gregset): Ditto.
6625         * mips-tdep.c: Ditto for comments.
6626         * mips-nat.c (fetch_inferior_registers): Ditto.
6627         (store_inferior_registers, fetch_core_registers): Ditto.
6628         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6629         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6630         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6631         (i386_do_pop_frame, i386_register_type): Ditto.
6632         * hppa-tdep.c (hppa_frame_chain): Ditto.
6633         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6634         (hppa_pop_frame, hppa_read_fp): Ditto.
6635         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6636         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6637         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6638         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6639         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6640         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6641         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6642         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6643         * blockframe.c: Ditto for comments.
6644         * arch-utils.h: Ditto for comments.
6645         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6646         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6647         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6648         * alpha-tdep.h: Ditto for comments.
6649         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6650         (alpha_cannot_store_register): Ditto.
6651         (alpha_push_dummy_frame): Ditto.
6652         * alpha-nat.c (supply_gregset): Ditto.
6653
6654         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6655         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6656         * config/sparc/tm-sparc.h: Update comment.
6657
6658         * hppa-tdep.c (hppa_init_extra_frame_info): Use
6659         deprecated_read_fp instead of TARGET_READ_FP.
6660         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6661         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6662         * sparc-tdep.c (sparc_init_extra_frame_info): Use
6663         deprecated_read_fp instead of read_fp.
6664         * s390-tdep.c (s390_push_arguments): Ditto.
6665         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6666         * frame.h: Ditto in comments.
6667         * frame.c (legacy_get_prev_frame): Ditto.
6668         * dummy-frame.c (dummy_frame_this_id): Ditto.
6669         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6670
6671 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6672
6673         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6674         * gdbarch.h, gdbarch.c: Re-generate.
6675         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6676         * vax-tdep.c (_initialize_vax_tdep): Update.
6677         * v850-tdep.c (_initialize_v850_tdep): Update.
6678         * sparc-tdep.c (_initialize_sparc_tdep): Update.
6679         * s390-tdep.c (_initialize_s390_tdep): Update.
6680         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6681         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6682         * mips-tdep.c (_initialize_mips_tdep): Update.
6683         * mcore-tdep.c (_initialize_mcore_tdep): Update.
6684         * m68k-tdep.c (_initialize_m68k_tdep): Update.
6685         * ia64-tdep.c (_initialize_ia64_tdep): Update.
6686         * hppa-tdep.c (_initialize_hppa_tdep): Update.
6687         * h8300-tdep.c (_initialize_h8300_tdep): Update.
6688         * frv-tdep.c (_initialize_frv_tdep): Update.
6689         * cris-tdep.c (cris_delayed_get_disassembler): Update.
6690         (_initialize_cris_tdep): Update.
6691         * arch-utils.c (legacy_print_insn): Update.
6692         * alpha-tdep.c (_initialize_alpha_tdep): Update.
6693
6694 2003-04-26  Adam Fedor  <fedor@gnu.org>
6695
6696         * linespec.c (decode_objc): New function to decode ObjC calls
6697         (decode_line_1): Check for ObjC calls (using decode_objc)
6698         * Makefile (linespec.o): Update dependencies.
6699
6700 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
6701
6702         * breakpoint.h (struct breakpoint_ops): New.
6703         (struct breakpoint): Add ops member.
6704
6705         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6706         (mention): Use new breakpoint ops member.
6707         (set_raw_breakpoint): Initialize ops field to NULL.
6708         (print_exception_catchpoint, print_one_exception_catchpoint)
6709         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6710         (gnu_v3_exception_catchpoint_ops): New.
6711         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6712
6713 2003-04-25  Adam Fedor  <fedor@gnu.org>
6714
6715         * Makefile.in (COMMON_OBS): Add objc-lang.o
6716
6717 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6718
6719         * d10v-tdep.c (print_insn): Delete function.
6720         (display_trace): Use TARGET_PRINT_INSN.
6721         (_initialize_d10v_tdep): Do not set tm_print_insn.
6722         (d10v_gdbarch_init): Set print_insn.
6723
6724 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6725
6726         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6727         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6728         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6729         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6730         (nr_dmap_regs, a0_regnum): ... new functions.
6731         (d10v_print_registers_info): Use a0_regnum, use register_size.
6732         (d10v_register_byte): Delete function.
6733         (d10v_register_raw_size): Delete function.
6734         (d10v_register_type): Use a0_regnum.
6735         (d10v_print_registers_info): Use a0_regnum.
6736         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6737         (d10v_gdbarch_init): Do not set register_byte or
6738         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6739         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6740         extract_address.
6741         (trace_command): Use XCALLOC.
6742         (print_insn): Delete reference to tm_print_insn.
6743         (saved_regs_unwinder): Use store_unsigned_integer instead of
6744         store_address.
6745         * frame.h (FRAME_OBSTACK_CALLOC): Define
6746
6747 2003-04-25  David Carlton  <carlton@bactrian.org>
6748
6749         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6750
6751 2003-04-24  Adam Fedor  <fedor@gnu.org>
6752
6753         * objc-lang.c: Include "valprint.h"
6754         * Makefile.in (objc-lang.o): Update dependencies.
6755
6756 2003-04-24  Adam Fedor  <fedor@gnu.org>
6757
6758         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6759         architecture dependant compilation and mark as unimplemented
6760         (until they get put in the gdbarch vector).
6761
6762 2003-04-23  David Carlton  <carlton@bactrian.org>
6763
6764         * cp-support.c (cp_find_first_component): Accept 'operator' in
6765         more locations.
6766
6767 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6768
6769         * infcall.c (call_function_by_hand): Eliminate redundant
6770         indentation.  Move "saved_async" and "old_cleanups" to where they
6771         are needed.
6772
6773 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6774
6775         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6776         and "buffer".  Move the "name" code to where it is needed.
6777
6778 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6779
6780         * infcall.c (call_function_by_hand): Move variables "start_sp",
6781         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6782         code to ON_STACK switch branch.
6783
6784 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6785
6786         * infcall.c (call_function_by_hand): Make declaration of "i",
6787         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
6788         lint.
6789
6790 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6791
6792         * infcall.c (call_function_by_hand): Delete variable
6793         "n_method_args".  Localize "param_type"'s declaration to the loop
6794         that it is used.  Reinstate code assigning to said variable -
6795         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
6796         Rationalize code using "param_type".
6797
6798 2003-04-22  Andrew Cagney  <cagney@redhat.com>
6799
6800         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6801         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
6802         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
6803         to DEPRECATED_PUSH_RETURN_ADDRESS.
6804
6805 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
6806
6807         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6808         on the DWARF2 register number prior to fetching a register.
6809
6810 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6811
6812         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6813         Update all the tests using SOFT_FLOAT considering the fact that
6814         this macro was always set to 0.
6815         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6816         considering the fact that this macro was always set to 0.
6817         * hppa-tdep.h (hppa_store_return_value): Likewise.
6818         (hppa_extract_return_value): Likewise.
6819
6820 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6821
6822         * config/pa/tm-hppa.h: Remove obsolete code, was used by
6823         the hppa-pro target only.
6824
6825 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6826
6827         Ongoing multi-arch conversion effort for HP/UX:
6828         * config/pa/tm-hppa.h: Move all macro that are no longer
6829         defined now that GDB_MULTI_ARCH is now set to 1 from here...
6830         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6831
6832 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6833
6834         * config/pa/tm-hppa.h: Obsolete a section that was only used
6835         for hppa-pro.
6836
6837 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6838
6839         Ongoing multi-arch conversion for HP/UX.
6840         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6841         if already defined (allows hppa64 to stay non-multiarched for now).
6842         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6843
6844 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6845
6846         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6847
6848 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6849
6850         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6851         "i386_num_mmx_regs".
6852
6853 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6854
6855         * infcall.c: New file.
6856         * infcall.h: New file.
6857         * valarith.c: Include "infcall.h".
6858         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6859         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6860         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6861         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6862         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6863         (SFILES): Add "infcall.c"
6864         (COMMON_OBS): Add "infcall.o".
6865         (infcall.o): Specify dependencies.
6866         * value.h (call_function_by_hand): Delete declaration.
6867         * inferior.h (run_stack_dummy): Delete declaration.
6868         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6869         (run_stack_dummy): Move to "infcall.c", merged into
6870         call_function_by_hand.
6871         * valops.c (call_function_by_hand): Moved to "infcall.c".
6872         (find_function_addr, value_arg_coerce): Ditto.
6873         (unwindonsignal_p, coerce_float_to_double): Ditto.
6874         (_initialize_valops): Move "set/show coerce-float-to-double", and
6875         "set/show unwindonsignal" commands to "infcall.c".
6876         * v850-tdep.c, target.h: Update comments.
6877         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6878         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6879         (sh64_init_extra_frame_info): Update comments.
6880         * mn10300-tdep.c: Update comments.
6881         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6882         * config/sparc/tm-sparc.h: Update comments.
6883         * breakpoint.h: Update comments.
6884         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6885         * arm-tdep.c: Update comment.
6886
6887 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6888
6889         * i386-tdep.c (i386_num_register_names): New variable.
6890         (i386_num_mmx_regs): Renamed from mmx_num_regs.
6891         (MM0_REGNUM): Remove redundant parentheses in define.
6892         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6893         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6894         i386_mxcsr_regnum_p): Remove redundant parentheses.
6895         (i386_register_name): Use i386_num_register_names.
6896
6897         * i386-tdep.c (i386_extract_return_value,
6898         i386_store_return_value): Correct check for availability of
6899         floating-point registers.
6900
6901         * i386-tdep.c (i386_frame_num_args): Remove function.
6902         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6903
6904         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6905         mmx_regnum_to_fp_regnum.  Adjust all callers.
6906
6907         * i386-tdep.c (i386_get_longjmp_target): Use
6908         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6909         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
6910         extract_address.
6911
6912 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6913
6914         * core-regset.c: Update comments to reflect reality.  Re-order
6915         includes.
6916         (fetch_core_registers): Use switch instead of if.  Remove
6917         redundant prototype.
6918
6919 2003-04-18  Jim Blandy  <jimb@redhat.com>
6920
6921         * s390-tdep.c (s390_frame_align): New function.
6922         (s390_gdbarch_init): Register it with the gdbarch object.
6923
6924 2003-04-17  Richard Henderson  <rth@redhat.com>
6925
6926         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6927
6928 2003-04-17  Michael Snyder  <msnyder@redhat.com>
6929             Karen Bennet  <bennet@redhat.com>
6930
6931         Committed by Elena Zannoni  <ezannoni@redhat.com>
6932         * gdb_gcore.sh: New script to create a core dump of a process.
6933
6934 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
6935
6936         * values.c (value_being_returned): Don't fetch the return
6937         value if the return type is void.
6938
6939 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6940
6941         * thread-db.c: Reindented.
6942
6943 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6944
6945         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6946         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6947         as types.
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
6974
6975         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6976         the size of ``long double'' to 16, instead of 8.
6977
6978 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
6979
6980         * i386-linux-nat.c: Add some whitespace to make things more
6981         readable.
6982         (fetch_register, store_register, fetch_inferior_registers,
6983         store_inferior_registers): Get rid of assignment in if-statement.
6984         (store_register): Fix typo in error message.
6985
6986 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6987
6988         * utils.c (xmmalloc): Always allocate something, matches
6989         libiberty/xmalloc's semantics.
6990         (xmrealloc, xmcalloc): Ditto.
6991
6992 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6993
6994         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6995         update comments.
6996         (get_frame_type): Initialize unwind and type when needed.
6997         (get_frame_id, frame_register_unwind): Ditto.
6998
6999 2003-04-16  Andrew Cagney  <cagney@redhat.com>
7000
7001         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7002         obsolete.
7003         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7004         * sparcl-stub.c: Obsolete file.
7005         * config/sparc/tm-sparclet.h: Obsolete file.
7006         * sparclet-stub.c: Obsolete file.
7007         * sparclet-rom.c: Obsolete file.
7008         * sparcl-tdep.c: Obsolete file.
7009         * config/sparc/tm-sparclite.h: Obsolete file.
7010         * config/sparc/sparclite.mt: Obsolete file.
7011         * config/sparc/sparclet.mt: Obsolete file.
7012         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7013         sparc86x-*-* obsolete.
7014
7015 2003-04-15  David Carlton  <carlton@math.stanford.edu>
7016
7017         * Makefile.in (SFILES): Add cp-namespace.c.
7018         (COMMON_OBS): Add cp-namespace.o.
7019         (block.o): Depend on gdb_obstack_h and cp_support_h.
7020         (buildsym.o): Depend on cp_support_h.
7021         (cp-namespace.o): New.
7022         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7023         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7024         (dwarf2read.o): Depend on cp_support_h.
7025         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7026         * dwarf2read.c (process_die): Set processing_has_namespace_info,
7027         processing_current_namespace.
7028         (read_namespace): Update processing_current_namespace; check for
7029         anonymous namespaces.
7030         (dwarf2_name): New function.
7031         (dwarf2_extension): Ditto.
7032         * cp-support.h: Update copyright, contributors.
7033         Add inclusion guards.
7034         Add opaque declaration for structs obstack, block, symbol.
7035         (struct using_direct): New struct.
7036         Add declarations for cp_find_first_component,
7037         cp_entire_prefix_len, processing_has_namespace_info,
7038         processing_current_namespace, cp_is_anonymous,
7039         cp_add_using_directive, cp_initialize_namespace,
7040         cp_finalize_namespace, cp_set_block_scope,
7041         cp_scan_for_anonymous_namespaces.
7042         * cp-namespace.c: New file.
7043         * cp-support.c: Update copyright.
7044         Include ctype.h, gdb_assert.h, gdbcmd.h.
7045         New variable maint_cplus_cmd_list.
7046         (cp_find_first_component): New function.
7047         (cp_entire_prefix_len, maint_cplus_command)
7048         (first_component_command, _initialize_cp_support): Ditto.
7049         * buildsym.c: Include cp-support.h.
7050         New variable using_list.
7051         (add_symbol_to_list): Check for anonymous namespaces.
7052         (finish_block): Set block's scope.
7053         (start_symtab): Initialize C++ namespace support.
7054         (end_symtab): Finalize C++ namespace support.
7055         * block.h: Add opaque declarations for structs
7056         block_namespace_info, using_direct, and obstack.
7057         Add declarations for block_set_scope and block_set_using.
7058         (struct block): Add 'language_specific' member.
7059         (BLOCK_NAMESPACE): New macro.
7060         * block.c: Include gdb_obstack.h and cp-support.h.
7061         (struct block_namespace_info): New struct.
7062         (block_set_scope): New function.
7063         (block_set_using, block_initialize_namespace): Ditto.
7064
7065 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
7066
7067         * solib-svr4.c (svr4_have_link_map_offsets): New function.
7068         (locate_base): Return early if there aren't any link map offsets.
7069         (svr4_solib_create_inferior_hook): Warn if shared library support
7070         is unavailable.
7071
7072 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7073
7074         * symtab.c (symbol_set_names): Add prefix when storing Java names
7075         in hash table.  Fix for PR java/1039.
7076
7077 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7078
7079         * symtab.c (symbol_set_names): Rename 'name' arg to
7080         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7081         * symtab.h: Change 'name' argument in declaration of
7082         symbol_set_names to 'linkage_name'.
7083         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7084
7085 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7086
7087         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7088         return the fully sign-extended register value.
7089         (get_frame_pointer): Ditto.
7090         (mips_pop_frame): Initialize "proc_desc" after checking for a
7091         dummy frame.
7092
7093 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7094
7095         * mips-tdep.c (mips_push_dummy_frame): Delete function.
7096         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7097         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7098         (mips_push_register): Delete function.
7099         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7100         PUSH_FP_REGNUM.
7101
7102 2003-04-14  Jim Blandy  <jimb@redhat.com>
7103
7104         * symmisc.c: #include "gdb_regex.h".
7105         (maintenance_list_symtabs, maintenance_list_psymtabs): New
7106         functions.
7107         * maint.c (maintenance_list_command): New function.
7108         (_initialize_maint_cmds): Register the above as commands.
7109         * symtab.h (maintenance_list_symtabs,
7110         maintenance_list_psymtabs): New declarations.
7111         * cli/cli-cmds.c (maintenancelistlist): New variable.
7112         (init_cmd_lists): Initialize it.
7113         * cli/cli-cmds.h (maintenancelistlist): New declaration.
7114         * gdbcmd.h (maintenancelistlist): New declaration.
7115         * Makefile.in (symmisc.o): Update dependencies.
7116
7117 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
7118
7119         * s390-nat.c: Include asm/types.h for addr_t.
7120
7121 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
7122
7123         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7124         actually incoming type.
7125
7126 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7127
7128         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7129         get_next_frame and get_frame_saved_regs.
7130
7131 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7132
7133         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7134         of gdbarch_num_regs.
7135
7136 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7137
7138         * frame.h: Mention what replaced what in "struct frame_info".
7139         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7140         deprecated_update_frame_base_hack and
7141         deprecated_update_frame_pc_hack.
7142         * hppa-tdep.c: Ditto.
7143
7144 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7145
7146         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7147         to read_reg and update its comment.  Remove regnum member.
7148         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7149         Don't call read_reg when setting in_reg.  Call read_reg to get
7150         the frame base if it's in a register.  Return the register number
7151         on the stack instead of in the context.  Remove extra arguments
7152         to read_reg.
7153         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7154         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
7155         the register number on the expression stack.
7156         (needs_frame_read_reg): Remove extra arguments.
7157
7158 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7159
7160         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7161         made non-static.
7162         (execute_stack_op): All callers updated.
7163         * dwarf2expr.h: Add prototype for dwarf2_read_address.
7164         * dwarf2loc.c (find_location_expression): New function.
7165         (dwarf_expr_frame_base): Call it.
7166         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7167         (dwarf2_tracepoint_var_ref): New function, broken out from
7168         locexpr_tracepoint_var_ref.
7169         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7170         Make static.
7171         (loclist_read_variable, loclist_read_needs_frame): New functions.
7172         (loclist_describe_location, loclist_tracepoint_var_ref): New
7173         functions.
7174         (dwarf2_loclist_funcs): New struct location_funcs.
7175         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7176         (struct dwarf2_locexpr_baton): Add comments.
7177         (dwarf2_loclist_funcs): New extern.
7178         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7179         base_address and base_known.
7180         (dwarf_loc_buffer): New variable.
7181         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7182         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7183         (dwarf2_has_info): Initialize dwarf_loc_offset.
7184         (dwarf2_build_psymtabs): Read in .debug_loc.
7185         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7186         DWARF_LOC_SIZE.
7187         (psymtab_to_symtab_1): Likewise.  Move base address calculation
7188         here, from...
7189         (dwarf2_get_pc_bounds): ... here.  Use the base address from
7190         cu_header.
7191         (dwarf2_symbol_mark_computed): Handle location lists.
7192
7193 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7194
7195         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7196         if the linkage name demangled successfully.
7197
7198 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7199
7200         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7201         disassmbly_flavour): Removed.
7202
7203         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7204
7205 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7206
7207         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7208
7209 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7210
7211         * frame.h (struct frame_info): Move definition from here ...
7212         * frame.c (struct frame_info): ... to here.
7213
7214 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7215
7216         * gdbthread.h (save_infrun_state): Delete parameter
7217         "prev_func_start".
7218         (struct thread_info): Delete field "prev_func_start".
7219         (load_infrun_state): Ditto.
7220         * thread.c (load_infrun_state, save_infrun_state): Update.
7221         * infrun.c (prev_func_start): Delete variable.
7222         (context_switch, init_wait_for_inferior): Update.
7223         (stop_stepping, keep_going): Update.
7224
7225 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7226
7227         * gdbarch.sh: Add missing opaque declarations.
7228         * gdbarch.h: Regnerate.
7229         * symtab.h: Add missing opaque declarations.
7230         * value.h, target.h, symfile.h, stabsread.h: Ditto.
7231         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7232         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7233         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7234         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7235         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7236         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7237         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7238         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7239         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7240         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7241         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7242         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7243
7244 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7245
7246         * frame.c (get_frame_id): Return this frame's "id".
7247         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7248         function start.
7249         (legacy_saved_regs_this_id): Replace function body with
7250         internal-error.
7251         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7252         FRAME_OBSTACK_ZALLOC.
7253         (create_new_frame): Mark the frame ID as valid.
7254
7255 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7256
7257         * Makefile.in (libbfd_h): Added missing setting.
7258         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7259         according to the selected ABI.
7260
7261 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
7262
7263         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7264
7265 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7266
7267         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7268         SAVED_PC_AFTER_CALL.
7269         * gdbarch.h, gdbarch.c: Regenerate.
7270         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7271         * x86-64-tdep.c (x86_64_init_abi): Update.
7272         * vax-tdep.c (vax_gdbarch_init): Update.
7273         * v850-tdep.c (v850_gdbarch_init): Update.
7274         * sparc-tdep.c (sparc_gdbarch_init): Update.
7275         * sh-tdep.c (sh_gdbarch_init): Update.
7276         * s390-tdep.c (s390_gdbarch_init): Update.
7277         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7278         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7279         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7280         * mips-tdep.c (mips_gdbarch_init): Update.
7281         * mcore-tdep.c (mcore_gdbarch_init): Update.
7282         * m68k-tdep.c (m68k_gdbarch_init): Update.
7283         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7284         * ia64-tdep.c (ia64_gdbarch_init): Update.
7285         (ia64_saved_pc_after_call): Update declaration.
7286         * i386ly-tdep.c (i386lynx_init_abi): Update.
7287         * i386-tdep.c (i386_gdbarch_init): Update.
7288         * hppa-tdep.c (hppa_gdbarch_init): Update.
7289         * h8300-tdep.c (h8300_gdbarch_init): Update.
7290         * frv-tdep.c (frv_gdbarch_init): Update.
7291         * cris-tdep.c (cris_gdbarch_init): Update.
7292         * avr-tdep.c (avr_gdbarch_init): Update.
7293         * arm-tdep.c (arm_gdbarch_init): Update.
7294         * alpha-tdep.c (alpha_gdbarch_init): Update.
7295         * ns32knbsd-nat.c (frame_num_args): Update.
7296         * ns32k-tdep.c (umax_frame_num_args): Update.
7297         * mips-tdep.c (mips_init_frame_pc_first): Update.
7298         * infrun.c (step_over_function): Update.
7299         * i386-linux-tdep.c (skip_hurd_resolver): Update.
7300         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7301         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7302         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7303         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7304         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7305         * arm-linux-tdep.c (skip_hurd_resolver): Update.
7306         * arch-utils.c (init_frame_pc_default): Update.
7307         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7308         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7309         declaration.
7310
7311 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7312
7313         * i387-tdep.c: Update copyright.
7314         (i387_to_double): Delete function.
7315         (double_to_i387): Delete function.
7316
7317 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7318
7319         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7320         frame's function's address.  Simplify.
7321         (d10v_frame_unwind_cache): Check that the frame's function is
7322         non-zero.
7323
7324 2003-04-10  Jim Blandy  <jimb@redhat.com>
7325
7326         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7327         call to set_gdbarch_deprecated_push_arguments.
7328
7329 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7330
7331         * frame.c (fprint_frame_id): New function.
7332         (fprint_frame_type, fprint_frame): New function.
7333         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7334         (create_sentinel_frame, get_frame_id): Ditto.
7335         (frame_id_p, frame_id_eq): Ditto.
7336         (frame_id_inner, create_new_frame): Ditto.
7337         (legacy_get_prev_frame, get_prev_frame): Ditto.
7338         (deprecated_update_frame_pc_hack): Ditto.
7339         (frame_register_unwind): Ditto.
7340         (deprecated_update_frame_base_hack): Ditto.
7341
7342 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7343
7344         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7345         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7346         frame_chain function.
7347         * Makefile.in: Add dependencies due to above change.
7348
7349 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7350
7351         * blockframe.c (legacy_frame_chain_valid): Move call to
7352         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7353         inside_entry_file.
7354
7355 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7356
7357         * frame.h (struct frame_id): Replace "pc" and "base" with
7358         "stack_addr" and "code_addr".  Update comments.
7359         (frame_id_build): Update parameter names and comment.
7360         (struct frame_info): Replace "id_p" and "id" with "this_id".
7361         * dummy-frame.c (dummy_frame_this_id): Update.
7362         * breakpoint.c (print_one_breakpoint): Update.
7363         * frame.c (get_frame_id): Update.
7364         (get_frame_base, frame_id_build): Update.
7365         (create_sentinel_frame, legacy_get_prev_frame): Update.
7366         (deprecated_update_frame_base_hack): Update.
7367         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7368         (frame_id_inner): Ditto.
7369
7370 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7371
7372         * defs.h (gdb_print_host_address): Make "addr" parameter a
7373         pointer constant.
7374         * utils.c (gdb_print_host_address): Update.
7375
7376 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
7377
7378         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7379         register number for R0 is 0.
7380
7381 2003-04-09  J. Brobecker  <brobecker@gnat.com>
7382
7383         * frame.h (struct gdbarch): Add opaque structure definition
7384         to avoid a compilation warning on LynxOS 4.0.
7385
7386 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7387
7388         * frame.h (struct frame_info): Delete field "pc".  Replace
7389         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7390         structure.
7391         * frame.c (frame_pc_unwind): Update.
7392         (create_sentinel_frame): Do not set "pc".
7393         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
7394         (get_frame_pc): Call frame_pc_unwind.
7395         (deprecated_update_frame_pc_hack): Update.
7396         (create_new_frame): Use "pc" not "->pc".
7397
7398 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7399
7400         * frame.c (get_frame_id): Eliminate code updating "frame".
7401         (legacy_get_prev_frame): Ditto.
7402         (get_frame_base): Return id.base directly.
7403         (deprecated_update_frame_base_hack): Update "id.base".
7404         * frame.h (struct frame_info): Delete field "frame".
7405
7406 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7407
7408         * NEWS: Mention that the "Sequent family" is obsolete.
7409         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7410         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7411         * configure.host: Obsolete i[3456]86-sequent-bsd*,
7412         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7413         * config/i386/tm-ptx4.h: Obsolete file.
7414         * config/i386/tm-ptx.h: Obsolete file.
7415         * symm-tdep.c: Obsolete file.
7416         * config/i386/symmetry.mt: Obsolete file.
7417         * config/i386/tm-symmetry.h: Obsolete file.
7418         * symm-nat.c: Obsolete file.
7419         * config/i386/nm-symmetry.h: Obsolete file.
7420         * config/i386/xm-symmetry.h: Obsolete file.
7421         * config/i386/symmetry.mh: Obsolete file.
7422         * config/i386/nm-ptx4.h: Obsolete file.
7423         * config/i386/ptx4.mh: Obsolete file.
7424         * config/i386/ptx.mt: Obsolete file.
7425         * config/i386/ptx.mh: Obsolete file.
7426         * config/i386/xm-ptx4.h: Obsolete file.
7427         * config/i386/xm-ptx.h: Obsolete file.
7428
7429 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7430
7431         Obsolete mips*-*-mach3*.
7432         * NEWS: Mention that mips*-*-mach3* is obsolete.
7433         * m3-nat.c: Obsolete file.
7434         * config/nm-m3.h: Obsolete file.
7435         * config/mips/tm-mipsm3.h: Obsolete file.
7436         * config/mips/mipsm3.mt: Obsolete file.
7437         * config/mips/mipsm3.mh: Obsolete file.
7438         * config/mips/xm-mipsm3.h: Obsolete file.
7439         * mipsm3-nat.c: Obsolete file.
7440         * configure.host: Obsolete mips-dec-mach3*.
7441         * configure.tgt: Obsolete mips*-*-mach3*.
7442
7443 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7444
7445         * doublest.h: Update copyright.
7446         (deprecated_store_floating, deprecated_extract_floating): Rename
7447         store_floating and extract_floating.  Update comments.
7448         * doublest.c: Update copyright.
7449         (extract_floating_by_length): Replace extract_floating.
7450         (store_floating_by_length): Replace store_floating.
7451         (deprecated_extract_floating): New function.
7452         (deprecated_store_floating): New function.
7453         (extract_typed_floating): Call extract_floating_by_length.
7454         (store_typed_floating): Call store_floating_by_length.
7455         * x86-64-tdep.c (x86_64_store_return_value): Update.
7456         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7457         (sh64_extract_return_value): Update.
7458         (sh_sh4_register_convert_to_virtual): Update.
7459         (sh_sh64_register_convert_to_virtual): Update.
7460         (sh_sh4_register_convert_to_raw): Update.
7461         (sh_sh64_register_convert_to_raw): Update.
7462         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7463         (rs6000_register_convert_to_raw): Update.
7464         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7465         (ia64_register_convert_to_raw): Update.
7466         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7467         (REGISTER_CONVERT_TO_VIRTUAL): Update.
7468         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7469         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7470         (alpha_register_convert_to_raw): Update.
7471
7472 2003-04-08  Andrew Cagney  <cagney@redhat.com>
7473
7474         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7475         * gdbarch.h, gdbarch.c: Re-generate.
7476         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7477         (d10v_gdbarch_init): Do not set saved_pc_after_call.
7478         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7479         conditionally, use frame_pc_unwind as an alternative.  Add
7480         comments.
7481         * arch-utils.c (init_frame_pc_default): Only call
7482         SAVED_PC_AFTER_CALL when available.
7483
7484 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7485
7486         * infrun.c (stop_soon): Rename from stop_soon_quietly.
7487         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7488         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7489         (start_remote): Ditto.
7490         (handle_inferior_event): Ditto.
7491         (save_inferior_status): Ditto.
7492         (restore_inferior_status): Ditto.
7493         * infcmd.c (attach_command): Ditto.
7494         * fork-child.c (startup_inferior): Ditto.
7495         * inferior.h (stop_soon): Rename from stop_soon_quietly.
7496         * alpha-tdep.c (heuristic_proc_start): Ditto.
7497         * mips-tdep.c (heuristic_proc_start): Ditto.
7498         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7499         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7500         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7501         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7502         * remote-vx.c (vx_create_inferior): Ditto.
7503
7504 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7505
7506         * infrun.c (stop_soon_quietly): Make it an enum, to better
7507         override the default behavior of handle_inferior_event.
7508         (clear_proceed_status): Update uses of stop_soon_quietly to
7509         reflect that it is now an enum.
7510         (start_remote): Ditto.
7511         (handle_inferior_event): Change logic a bit if stop_soon_quietly
7512         is set to handle the new GNU/Linux kernel behavior for
7513         attach/sigstop.  Update uses of stop_soon_quietly.
7514         * inferior.h (enum stop_kind): New enum.
7515         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7516         Reset normal handle_inferior_event behavior, afterwards.
7517         * fork-child.c (startup_inferior): Update.
7518         * alpha-tdep.c (heuristic_proc_start): Update.
7519         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7520         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7521         * solib-osf.c (osf_solib_create_inferior_hook): Update.
7522         * solib-irix.c (irix_solib_create_inferior_hook): Update.
7523         * remote-vx.c (vx_create_inferior): Update.
7524         * mips-tdep.c (heuristic_proc_start): Update.
7525
7526 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
7527
7528         * disasm.c (dump_insns):  Move variables inside loop, or they will
7529         be freed more than once, causing wild memory corruptions.
7530         (gdb_disassembly): Look for the substring "-thread",
7531         instead of "-threads" in the target name, to make sure to find
7532         the 'multi-thread' target.  Also, make sure we do the right thing
7533         with the "core" target.
7534
7535 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
7536
7537         * mips-tdep.c (mips_print_fp_register): New function, created from
7538         do_fp_register_row().  Registers are now (also) printed as hex.
7539         Only one register is printed per row.
7540         (mips_print_register, do_fp_register_row): Print floating point
7541         registers with mips_print_fp_register().
7542
7543 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7544
7545         * valprint.h (inspect_it): Add extern declaration.
7546         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7547         (selectors_info, classes_info): Ditto.
7548         (find_objc_msgcall): Fix indentation.
7549         (objc_printstr): Delete extern declarations.
7550
7551         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7552
7553 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7554
7555         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7556         Update comment.
7557         * frame.c (legacy_saved_regs_this_id): Update.
7558         (legacy_get_prev_frame): Update.
7559         * xstormy16-tdep.c: Update comment.
7560         * sparc-tdep.c (sparc_frame_chain): Update comment.
7561         * blockframe.c (legacy_frame_chain_valid): Update.
7562
7563 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7564
7565         * valprint.c (val_print_type_code_int): Delete #ifdef
7566         PRINT_TYPELESS_INTEGER code.
7567
7568         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7569         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7570         multi-arch definition.
7571         * gdbarch.h: Re-generate.
7572
7573 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7574
7575         Eliminate FRAME_FIND_SAVED_REGS.
7576         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7577         Change FSR parameter to a pointer.
7578         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7579         Assume FSR parameter is a pointer.
7580         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7581         Make fsr a pointer.
7582         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7583         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
7584         saved_regs a pointer.
7585         (hppa_frame_saved_pc): Ditto.
7586         (find_dummy_frame_regs): Make frame_saved_regs a pointer
7587         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
7588         pointer.
7589         (restore_pc_queue): Make fsr a pointer.
7590         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7591         (hppa_frame_chain): Make saved_regs a pointer, call
7592         hppa_frame_init_saved_regs.
7593         * sparc-tdep.c: Include "gdb_assert.h".
7594         (sparc_frame_find_saved_regs): Replace internal_error with
7595         gdb_assert.
7596         * remote-vxsparc.c (vx_read_register): Delete reference to
7597         FRAME_FIND_SAVED_REGS.
7598         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7599         * gdbarch.h: Regenerate.
7600         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7601         (deprecated_get_frame_saved_regs): Delete declaration.
7602         (struct frame_saved_regs): Delete definition.
7603         * frame.c (deprecated_get_frame_saved_regs): Delete function.
7604         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7605         (hppa_frame_find_saved_regs): Delete declaration.
7606         (FRAME_FIND_SAVED_REGS): Delete macro.
7607         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7608         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7609         FRAME_FIND_SAVED_REGS in comment.
7610
7611 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7612
7613         * frame.c (frame_func_unwind, get_frame_func): New functions.
7614         * frame.h (get_frame_func, frame_func_unwind): Declare.
7615         (struct frame_info): Add field "prev_func" for caching the
7616         previous frame's function address.
7617         * arm-tdep.c (arm_frameless_function_invocation): Combine
7618         get_pc_function_start and get_frame_pc into get_frame_func.
7619         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7620         (sh64_nofp_frame_init_saved_regs): Ditto.
7621         * s390-tdep.c (s390_function_start): Ditto.
7622         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7623         (rs6000_frameless_function_invocation): Ditto.
7624         (rs6000_frame_saved_pc): Ditto.
7625         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7626         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7627         * i386-tdep.c (i386_frameless_signal_p): Ditto.
7628         (i386_frame_init_saved_regs): Ditto.
7629         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7630         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7631         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7632         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7633         * blockframe.c (frameless_look_for_prologue): Ditto.
7634
7635 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7636
7637         * frame.c (legacy_get_prev_frame): Link prev to next at the
7638         function start.  Update comments.
7639
7640 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7641
7642         * frame.c (get_frame_id): Update comment.
7643         (legacy_get_prev_frame): Update comment.
7644         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7645         * gdbarch.h: Regenerate.
7646         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7647         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7648
7649 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7650
7651         * stack.c (print_frame_info): Use get_frame_pc.
7652
7653 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7654
7655         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
7656         the frame's type from the unwinder.
7657         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7658         (create_new_frame, legacy_get_prev_frame): When the unwinder's
7659         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7660         (get_frame_base_address): Use get_frame_type.
7661         (get_frame_locals_address, get_frame_args_address): Ditto.
7662         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7663         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7664         (struct frame_info): Add comment explaining why the frame contains
7665         a "type" field.
7666         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7667         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7668         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7669         NORMAL_FRAME.
7670         * frame-unwind.h: Include "frame.h".
7671         (struct frame_unwind): Add "type" field.
7672         * Makefile.in (frame_unwind_h): Add $(frame_h).
7673
7674 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7675
7676         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7677         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7678         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7679         get_frame_base.
7680         (d10v_unwind_dummy_id): Use frame_id_build.
7681         * frame.c (find_frame_sal): Use get_frame_pc.
7682         (create_new_frame): Use deprecated_update_frame_pc_hack and
7683         deprecated_update_frame_base_hack.
7684         (create_sentinel_frame): Add comment about ->pc going away.
7685         (get_prev_frame): Add comment about ->pc going away.
7686         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7687         frame_id_build, deprecated_update_frame_pc_hack and
7688         deprecated_update_frame_base_hack.
7689         (select_frame): Use get_frame_pc.
7690         (legacy_saved_regs_this_id): Use frame_id_build.
7691
7692 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
7693
7694         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7695         signed integer case.
7696         (classify_argument): Handle enumerations and references.
7697
7698 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7699
7700         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7701         ID to NULL.
7702
7703 2003-04-01  Adam Fedor  <fedor@gnu.org>
7704
7705         * gdb/objc-lang.c (selectors_info): Replace calls to
7706         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7707         SYMBOL_NATURAL_NAME.
7708         (classes_info, find_methods): Likewise.
7709
7710 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
7711
7712         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7713         ``mach'' to the value determined by bfd_default_set_arch_mach().
7714
7715 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
7716
7717         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7718         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7719         (mi-cmd-file.o): Update dependencies.
7720
7721 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
7722
7723         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7724         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7725
7726 2003-04-01  Adam Fedor  <fedor@gnu.org>
7727
7728         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7729         * language.h (struct language_defn): Add la_demangle.
7730         (language_demangle): Declare.
7731         * language.c (language_demangle): New function.
7732         (unk_lang_demangle): Likewise.
7733         (unknown_language_defn, auto_language_defn, local_language_defn):
7734         Add ukn_lang_demangle.
7735         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7736         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7737         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7738         (cplus_language_defn): Add cplus_demangle for la_demangle element.
7739         * jv-lang.c (java_demangle): New function
7740         (java_language_defn): Use it for la_demangle element.
7741         * objc-lang.c (objc_demangle): Add options argument
7742         (objc_language_defn): Use objc_demangle for la_demangle element.
7743         * maint.c (maintenance_demangle): Replace switch with
7744         call to language_demangle.
7745         * utils.c (fprintf_symbol_filtered): Likewise.
7746
7747 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7748
7749         * printcmd.c (print_frame_nameless_args): Delete #ifdef
7750         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7751         PRINT_TYPELESS_INTEGER.
7752         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7753         PUSH_RETURN_ADDRESS.
7754
7755 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7756
7757         * Makefile.in (d10v-tdep.o): Update dependencies.
7758         * d10v-tdep.c: Include "frame-base.h".
7759         (d10v_frame_unwind): Make constant.
7760         (d10v_frame_base_address): New function.
7761         (d10v_frame_base): New variable.
7762         (d10v_gdbarch_init): Set frame_base default.
7763         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
7764         comment for base.
7765         (d10v_frame_unwind_cache): Set and use "prev_sp".
7766         (d10v_frame_this_id): Use the previous frame's inner most stack
7767         address and this frame's func address for the frame ID.  Use
7768         frame_id_build.  Don't analyze beyond the current instruction.
7769
7770 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7771
7772         * frame.h (get_frame_locals_address, get_frame_args_address):
7773         Refer to the base address, instead of the address of the first
7774         local or parameter.
7775
7776 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7777
7778         Add frame debug info addresses:
7779         * frame-base.c: New file.
7780         * frame-base.h: New file.
7781         * frame.h (struct frame_base): Add opaque declaration.
7782         (get_frame_base): Update comment.
7783         (get_frame_base_address): Declare.
7784         (get_frame_locals_address): Declare.
7785         (get_frame_args_address): Declare.
7786         (struct frame_info): Add "base" and "base_cache".  Update
7787         comments on the unwinder.
7788         * frame.c: Include "frame-base.h".
7789         (get_frame_locals_address): New function.
7790         (get_frame_base_address): New function.
7791         (get_frame_args_address): New function.
7792         * findvar.c (read_var_value): Use get_frame_locals_address and
7793         get_frame_args_address.
7794         * stack.c (frame_info): Use get_frame_locals_address and
7795         get_frame_args_address.
7796         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7797         moved to "frame-base.c".
7798         * printcmd.c (print_frame_nameless_args): Ditto.
7799         * symtab.h (address_class): Update comments.
7800         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7801         get_frame_base_address.
7802         * dwarf2expr.c (execute_stack_op): Ditto.
7803         * Makefile.in (frame_base_h): Define.
7804         (frame.o): Update dependencies.
7805         (frame-base.o): Add dependencies.
7806         (SFILES): Add frame-base.c.
7807         (COMMON_OBS): Add frame-base.o.
7808
7809 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7810
7811         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7812         CALL_DUMMY_LENGTH): Ditto.
7813         * gdbarch.c: Re-generate.
7814         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7815         (CALL_DUMMY_LENGTH): Delete macro.
7816         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7817         * arm-tdep.c (arm_gdbarch_init): Ditto.
7818         * avr-tdep.c (avr_gdbarch_init): Ditto.
7819         * cris-tdep.c (cris_gdbarch_init): Ditto.
7820         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7821         * frv-tdep.c (frv_gdbarch_init): Ditto.
7822         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7823         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7824         * i386-tdep.c (i386_gdbarch_init): Ditto.
7825         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7826         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7827         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7828         * mips-tdep.c (mips_gdbarch_init): Ditto.
7829         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7830         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7831         * s390-tdep.c (s390_gdbarch_init): Ditto.
7832         * sh-tdep.c (sh_gdbarch_init): Ditto.
7833         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7834         * v850-tdep.c (v850_gdbarch_init): Ditto.
7835         * vax-tdep.c (vax_gdbarch_init): Ditto.
7836         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7837
7838 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
7839
7840         * frame.c (get_prev_frame): Disable call to inside_entry_file().
7841
7842 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7843
7844         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7845         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7846         * gdbarch.h, gdbarch.c: Re-generate.
7847         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7848         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7849         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7850         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7851         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7852         * infcmd.c (run_stack_dummy): Simplify assuming
7853         CALL_DUMMY_BREAKPOINT_OFFSET_P.
7854         * infrun.c (handle_inferior_event): Ditto.
7855         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7856         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7857         * arm-tdep.c (arm_gdbarch_init): Ditto.
7858         * avr-tdep.c (avr_gdbarch_init): Ditto.
7859         * cris-tdep.c (cris_gdbarch_init): Ditto.
7860         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7861         * frv-tdep.c (frv_gdbarch_init): Ditto.
7862         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7863         * i386-tdep.c (i386_gdbarch_init): Ditto.
7864         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7865         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7866         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7867         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7868         * mips-tdep.c (mips_gdbarch_init): Ditto.
7869         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7870         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7871         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7872         * s390-tdep.c (s390_gdbarch_init): Ditto.
7873         * sh-tdep.c (sh_gdbarch_init): Ditto.
7874         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7875         * v850-tdep.c (v850_gdbarch_init): Ditto.
7876         * vax-tdep.c (vax_gdbarch_init): Ditto.
7877         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7878
7879 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
7880
7881         * symfile.c (symfile_relocate_debug_section): Update call to
7882         bfd_simple_get_relocated_section_contents.
7883
7884 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7885
7886         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7887         * gdbarch.h, gdbarch.c: Regenerate.
7888         * inferior.h (FIX_CALL_DUMMY): Delete macro.
7889         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7890         available.
7891         * frame.h (generic_fix_call_dummy): Delete declaration.
7892         * dummy-frame.h: Update comment.
7893         * dummy-frame.c (generic_fix_call_dummy): Delete function.
7894         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7895         fix_call_dummy.
7896         * sh-tdep.c (sh_gdbarch_init): Ditto.
7897         * s390-tdep.c (s390_gdbarch_init): Ditto.
7898         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7899         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7900         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7901         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7902         * i386-tdep.c (i386_gdbarch_init): Ditto.
7903         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7904         * frv-tdep.c (frv_gdbarch_init): Ditto.
7905         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7906         * cris-tdep.c (cris_gdbarch_init): Ditto.
7907         * avr-tdep.c (avr_gdbarch_init): Ditto.
7908         * arm-tdep.c (arm_gdbarch_init): Ditto.
7909
7910 2003-03-31  J. Brobecker  <brobecker@gnat.com>
7911
7912         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7913         (INIT_FRAME_AP): Likewise.
7914         (EXTRA_FRAME_INFO): Likewise.
7915
7916 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7917
7918         * gdbarch.sh: Include "symfile.h".
7919         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7920         * gdbarch.h, gdbarch.c: Re-generate.
7921         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7922         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7923         call_dummy_address, the default is at entry_point_address.
7924         * v850-tdep.c (v850_gdbarch_init): Ditto.
7925         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7926         * sh-tdep.c (sh_gdbarch_init): Ditto.
7927         * s390-tdep.c (s390_gdbarch_init): Ditto.
7928         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7929         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7930         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7931         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7932         * i386-tdep.c (i386_gdbarch_init): Ditto.
7933         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7934         * frv-tdep.c (frv_gdbarch_init): Ditto.
7935         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7936         * cris-tdep.c (cris_gdbarch_init): Ditto.
7937         * arm-tdep.c (arm_gdbarch_init): Ditto.
7938
7939 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7940
7941         * gdbarch.sh (CALL_DUMMY_P): Delete.
7942         * gdbarch.h, gdbarch.c: Re-generate.
7943         * inferior.h (CALL_DUMMY_P): Delete macro.
7944         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7945         * vax-tdep.c (vax_gdbarch_init): Update.
7946         * v850-tdep.c (v850_gdbarch_init): Update.
7947         * sparc-tdep.c (sparc_gdbarch_init): Update.
7948         * sh-tdep.c (sh_gdbarch_init): Update.
7949         * s390-tdep.c (s390_gdbarch_init): Update.
7950         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7951         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7952         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7953         * mips-tdep.c (mips_gdbarch_init): Update.
7954         * mcore-tdep.c (mcore_gdbarch_init): Update.
7955         * m68k-tdep.c (m68k_gdbarch_init): Update.
7956         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7957         * ia64-tdep.c (ia64_gdbarch_init): Update.
7958         * i386-tdep.c (i386_gdbarch_init): Update.
7959         * h8300-tdep.c (h8300_gdbarch_init): Update.
7960         * frv-tdep.c (frv_gdbarch_init): Update.
7961         * d10v-tdep.c (d10v_gdbarch_init): Update.
7962         * cris-tdep.c (cris_gdbarch_init): Update.
7963         * breakpoint.c (deprecated_frame_in_dummy): Update.
7964         * avr-tdep.c (avr_gdbarch_init): Update.
7965         * alpha-tdep.c (alpha_gdbarch_init): Update.
7966         * arm-tdep.c (arm_gdbarch_init): Update.
7967         * dummy-frame.c (dummy_frame_this_id): Update comments.
7968         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7969         * frame.c (legacy_get_prev_frame): Ditto.
7970         * valops.c (call_function_by_hand): Delete function.
7971         (hand_function_call): Rename to call_function_by_hand
7972
7973 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7974
7975         2002-11-10 Klee Dienes <kdienes@apple.com>
7976         * value.h (struct value): Update comment.
7977
7978 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7979
7980         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7981         D10V_FP_REGNUM.
7982         (d10v_gdbarch_init): Do not set fp_regnum.
7983
7984         * frame.c (get_frame_base): Force ID initialization.
7985         (get_prev_frame): Move computation of the frame ID from here ...
7986         (get_frame_id): ... to here.
7987         (legacy_get_prev_frame): Mark the frame ID as valid.
7988         * frame.h (struct frame_info): Add field "id_p".
7989
7990 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
7991
7992         * i386-tdep.c (i386_store_struct_return): Removed.
7993         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7994
7995 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7996
7997         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7998         * gdbarch.h, gdbarch.c: Regenerate.
7999         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8000         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8001         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8002         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8003         * i386-tdep.c (i386_gdbarch_init): Ditto.
8004         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8005         * cris-tdep.c (cris_gdbarch_init): Ditto.
8006         * vax-tdep.c (vax_gdbarch_init): Ditto.
8007         * s390-tdep.c (s390_gdbarch_init): Ditto.
8008         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8009         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8010         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8011         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8012         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8013         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8014         * sparc-tdep.c (sparc_gdbarch_init): Update.
8015         * sh-tdep.c (sh_gdbarch_init): Update.
8016         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8017         * mips-tdep.c (mips_gdbarch_init): Update.
8018         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8019         * ia64-tdep.c (ia64_gdbarch_init): Update.
8020         * frv-tdep.c (frv_gdbarch_init): Update.
8021         * avr-tdep.c (avr_gdbarch_init): Update.
8022         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8023         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
8024         instead of when push_dummy_call is not available.
8025
8026 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8027
8028         * infttrace.c: Include "gdbthread.h".
8029         (parent_attach_all): Fix function signature.
8030         (call_ptrace): Update call.
8031         * Makefile.in (infttrace.o): Update dependencies.
8032
8033 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8034
8035         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8036         PUSH_RETURN_ADDRESS.
8037         * gdbarch.h, gdbarch.c: Regenerate.
8038         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8039         * x86-64-tdep.c (x86_64_init_abi): Update.
8040         * v850-tdep.c (v850_gdbarch_init): Update.
8041         * sparc-tdep.c (sparc_gdbarch_init): Update.
8042         * sh-tdep.c (sh_gdbarch_init): Update.
8043         * s390-tdep.c (s390_gdbarch_init): Update.
8044         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8045         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8046         * mips-tdep.c (mips_gdbarch_init): Update.
8047         * mcore-tdep.c (mcore_gdbarch_init): Update.
8048         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8049         * ia64-tdep.c (ia64_gdbarch_init): Update.
8050         * i386-tdep.c (i386_gdbarch_init): Update.
8051         * h8300-tdep.c (h8300_gdbarch_init): Update.
8052         * frv-tdep.c (frv_gdbarch_init): Update.
8053         * cris-tdep.c (cris_gdbarch_init): Update.
8054         * avr-tdep.c (avr_gdbarch_init): Update.
8055         * arm-tdep.c (arm_gdbarch_init): Update.
8056         * valops.c (hand_function_call): Update.
8057
8058 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8059
8060         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8061         sizeof_call_dummy_words.
8062         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8063         define.
8064         * gdbarch.h: Regenerate.
8065
8066 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8067
8068         * infttrace.h: New file.
8069         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8070         (hpread_get_textlow): Detect an uninitialized dn_bufp.
8071         (hpread_read_doc_function_type): Detect an initialized type1.
8072         (hpread_quick_traverse): Initialize mod_name_string.
8073         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8074         (som_solib_get_solib_by_pc): Declare.
8075         (so_lib_thread_start_addr): Declare.
8076         (no_shared_libraries): Declare.
8077         * somread.c (init_import_symbols): Make static.  Add forward
8078         declaration.
8079         * config/pa/nm-hppah.h: Include "infttrace.h" for
8080         parent_attach_all.
8081         (hppa_insert_hw_watchpoint): Declare.
8082         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8083         * hppah-nat.c: Include "gdb_string.h".
8084         (parent_attach_all): Delete extern declaration, moved to
8085         "infttrace.h".
8086         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8087         int.
8088         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8089         * Makefile.in (infttrace_h): Define.
8090         (hpread.o): Update dependencies.
8091         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8092         * hppa-hpux-tdep.c: Include "gdb_string.h".
8093         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8094         * infrun.c (handle_inferior_event): Always initialize
8095         stepped_after_stopped_by_watchpoint.  Add default and remove
8096         fallthrough in switch statement.
8097         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8098         parameter to int.
8099         (hppa_remove_hw_watchpoint): Ditto.
8100
8101 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8102
8103         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8104         offset.
8105
8106 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
8107
8108         * arm-tdep.c (arm_push_arguments): Delete.
8109         (struct stack_item): New type.
8110         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8111         (arm_store_struct_return): Delte.
8112         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
8113         arm_push_arguments or arm_store_struct_return.
8114
8115 2003-03-28  Andrew Cagney  <cagney@redhat.com>
8116
8117         * Makefile.in (d10v-tdep.o): Update dependencies.
8118         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8119         * d10v-tdep.c: Include "remote.h".
8120         (target_resume_hook): Delete extern declaration.
8121         (target_wait_loop_hook): Ditto.
8122         (tdisassemble_command): Eliminate assignment in "if" conditional.
8123         (d10v_ts2_register_sim_regno): Eliminate call to
8124         legacy_register_sim_regno.
8125         (d10v_ts3_register_sim_regno): Ditto.
8126
8127 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
8128
8129         * thread.c: Reindented.
8130         * lin-lwp.c: Ditto.
8131         * linux-proc.c: Ditto.
8132
8133 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
8134
8135         * MAINTAINERS (write after approval): Add myself.
8136
8137 2003-03-27  Theodore A. Roth  <troth@openavr.org>
8138
8139         * objc-exp.y: Add missing semi-colons.
8140
8141 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8142
8143         * regcache.c (write_sp): Delete function and references.
8144         * inferior.h (write_sp): Delete declaration.
8145         * valops.c (hand_function_call): Replace write_sp with
8146         TARGET_WRITE_SP.
8147         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8148         (sparc_pop_frame): Ditto.
8149
8150 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8151
8152         * NEWS: Mention removal of support for hppa*-*-bsd* and
8153         hppa*-*-osf* natives, and hppa*-*-pro* target.
8154         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8155         * config/pa/xm-pa.h: Obsolete file.
8156         * config/pa/xm-hppab.h: Obsolete file.
8157         * config/pa/nm-hppab.h: Obsolete file.
8158         * config/pa/tm-hppab.h: Obsolete file.
8159         * config/pa/tm-hppao.h: Obsolete file.
8160         * config/pa/nm-hppao.h: Obsolete file.
8161         * config/pa/tm-pro.h: Obsolete file.
8162         * config/pa/hppaosf.mt: Obsolete file.
8163         * config/pa/hppaosf.mh: Obsolete file.
8164         * config/pa/hppapro.mt: Obsolete file.
8165         * config/pa/hppabsd.mt: Obsolete file.
8166         * config/pa/hppabsd.mh: Obsolete file.
8167         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8168         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8169         hppa*-*-osf*.
8170
8171 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8172
8173         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8174         push_arguments.  Don't set push_return_address or write_sp.
8175         (d10v_push_dummy_call): Replace d10v_push_arguments.
8176         (d10v_push_return_address, d10v_write_sp): Delete function,
8177         handled by push_dummy_call.
8178
8179 2003-03-26  Andrew Cagney  <cagney@redhat.com>
8180
8181         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8182         (push_dummy_call): New pure multi-arch replacement with gdbarch,
8183         regcache and dummy_addr parameters.
8184         * gdbarch.h, gdbarch.c: Re-generate.
8185         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8186         available; assume it will handle stack alignment and return
8187         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
8188         legacy_push_arguments.
8189         (legacy_push_arguments): Rename default_push_arguments.
8190         * value.h (legacy_push_arguments): Rename default_push_arguments.
8191         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8192         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8193         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8194         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8195         * config/i386/tm-symmetry.h: Update.
8196         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8197         * x86-64-tdep.c (x86_64_init_abi): Update.
8198         * v850-tdep.c (v850_gdbarch_init): Update.
8199         * sparc-tdep.c (sparc_gdbarch_init): Update.
8200         * sh-tdep.c (sh_gdbarch_init): Update.
8201         * s390-tdep.c (s390_gdbarch_init): Update.
8202         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8203         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8204         * mips-tdep.c (mips_gdbarch_init): Update.
8205         * mcore-tdep.c (mcore_gdbarch_init): Update.
8206         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8207         * ia64-tdep.c (ia64_gdbarch_init): Update.
8208         * i386-tdep.c (i386_gdbarch_init): Update.
8209         * hppa-tdep.c (hppa_gdbarch_init): Update.
8210         * h8300-tdep.c (h8300_gdbarch_init): Update.
8211         * frv-tdep.c (frv_gdbarch_init): Update.
8212         * d10v-tdep.c (d10v_gdbarch_init): Update.
8213         * cris-tdep.c (cris_gdbarch_init): Update.
8214         * avr-tdep.c (avr_gdbarch_init): Update.
8215         * arm-tdep.c (arm_gdbarch_init): Update.
8216         * arm-linux-tdep.c (arm_linux_init_abi): Update.
8217         * alpha-tdep.c (alpha_gdbarch_init): Update.
8218
8219 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8220
8221         * signals/signals.c (do_target_signal_to_host): Correct realtime
8222         signal range test.
8223
8224 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8225
8226         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8227         (struct sal_chain, map_catch_names): Remove.
8228         (catch_exception_command_1): Don't call
8229         handle_gnu_4_16_catch_command.
8230
8231 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8232
8233         From Mark Dettinger <dettinge@de.ibm.com>:
8234         * dwarf2cfi.c (read_2u): Increment pointer by two.
8235
8236 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8237
8238         * signals/signals.c: Fix typos in last change.
8239
8240 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8241
8242         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8243         not already defined.  Use __SIGRTMIN if available.
8244         (target_signal_from_host): Remove SIGRTMIN block.
8245         (do_target_signal_to_host): Remove SIGRTMIN block; check that
8246         the signal is within the realtime range.
8247
8248 2003-03-25  Adam Fedor  <fedor@gnu.org>
8249
8250         * Makefile.in (infrun.o): Add $(language_h)
8251         * infrun.c (handle_inferior_event): Use skip_language_trampoline
8252         for language specific trampolines.
8253         * language.h (struct language_defn): Add skip_trampoline.
8254         (skip_language_trampoline): Declare.
8255         * language.c (unk_lang_trampoline, skip_language_trampoline):
8256         New functions.
8257         (unknown_language_defn, auto_language_defn, local_language_defn):
8258         Add ukn_lang_trampoline.
8259         * ada-lang.c (ada_language_defn): Add NULL for language
8260         specific skip_trampoline.
8261         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8262         scm-lang.c: Likewise.
8263         * objc-lang.c (objc_skip_trampoline): New function.
8264         (objc_language_defn): Add objc_skip_trampoline.
8265
8266 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8267
8268         * frame.c (get_prev_frame): Delay validating a frame's ID -
8269         non-NULL, didn't go backwards - until an attempt to unwind it to
8270         the previous frame.
8271
8272 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8273
8274         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8275         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
8276         * gdbarch.h, gdbarch.c: Re-generate.
8277         * config/sparc/tm-sparc.h
8278         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8279         * sparc-tdep.c (sparc_gdbarch_init): Set
8280         deprecated_extra_stack_alignment_needed.
8281         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8282         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8283         extra_stack_alignment_needed.
8284         * v850-tdep.c (v850_gdbarch_init): Ditto.
8285         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8286         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8287         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8288         * cris-tdep.c (cris_gdbarch_init): Ditto.
8289         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8290         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8291
8292 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8293
8294         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8295         STORE_STRUCT_RETURN.
8296         * gdbarch.h, gdbarch.c: Regenerate.
8297         * d10v-tdep.c (d10v_store_struct_return): Delete function.
8298         (d10v_push_arguments): Set the struct return register.
8299         (d10v_gdbarch_init): Update.
8300         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8301         * x86-64-tdep.c (x86_64_init_abi): Update.
8302         * vax-tdep.c (vax_gdbarch_init): Update.
8303         * v850-tdep.c (v850_gdbarch_init): Update.
8304         * sparc-tdep.c (sparc_gdbarch_init): Update.
8305         * sh-tdep.c (sh_gdbarch_init): Update.
8306         * s390-tdep.c (s390_gdbarch_init): Update.
8307         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8308         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8309         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8310         * mips-tdep.c (mips_gdbarch_init): Update.
8311         * mcore-tdep.c (mcore_gdbarch_init): Update.
8312         * m68k-tdep.c (m68k_gdbarch_init): Update.
8313         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8314         * ia64-tdep.c (ia64_gdbarch_init): Update.
8315         * i386-tdep.c (i386_gdbarch_init): Update.
8316         * hppa-tdep.c (hppa_gdbarch_init): Update.
8317         * h8300-tdep.c (h8300_gdbarch_init): Update.
8318         * frv-tdep.c (frv_gdbarch_init): Update.
8319         * cris-tdep.c (cris_gdbarch_init): Update.
8320         * avr-tdep.c (avr_gdbarch_init): Update.
8321         * arm-tdep.c (arm_gdbarch_init): Update.
8322         * alpha-tdep.c (alpha_gdbarch_init): Update.
8323
8324 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8325
8326         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8327         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8328         CALL_DUMMY_STACK_ADJUST with a predicate variable.
8329         * gdbarch.h, gdbarch.c: Regenerate.
8330         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8331         call_dummy_stack_adjust_p.
8332         * vax-tdep.c (vax_gdbarch_init): Ditto.
8333         * v850-tdep.c (v850_gdbarch_init): Ditto.
8334         * sh-tdep.c (sh_gdbarch_init): Ditto.
8335         * s390-tdep.c (s390_gdbarch_init): Ditto.
8336         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8337         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8338         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8339         * mips-tdep.c (mips_gdbarch_init): Ditto.
8340         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8341         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8342         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8343         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8344         * i386-tdep.c (i386_gdbarch_init): Ditto.
8345         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8346         * frv-tdep.c (frv_gdbarch_init): Ditto.
8347         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8348         * cris-tdep.c (cris_gdbarch_init): Ditto.
8349         * avr-tdep.c (avr_gdbarch_init): Ditto.
8350         * arm-tdep.c (arm_gdbarch_init): Ditto.
8351         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8352         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8353         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8354         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8355         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
8356         call_dummy_stack_adjust_p.
8357         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8358         (CALL_DUMMY_STACK_ADJUST): Delete macro.
8359         * sparc-tdep.c (sparc32_push_arguments): Update.
8360         * valops.c (hand_function_call): Update.
8361
8362 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
8363
8364         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8365         set_gdbarch_char_signed.
8366
8367 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8368
8369         PR cli/548
8370         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8371
8372 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8373
8374         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8375         (_initialize_arm_tdep): Don't set tm_print_insn.
8376
8377 2003-03-24  Adam Fedor  <fedor@gnu.org>
8378
8379         * Makefile.in (YYOBJ): Add objc-exp.tab.o
8380         * objc-lang.h: Add multiple inclusion protection.
8381         (start_msglist, add_msglist, end_msglist): Additional declarations.
8382
8383 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
8384
8385         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8386         value was renamed to ARM_FLOAT_SOFT_FPA.
8387
8388 2003-03-23  Andrew Cagney  <cagney@redhat.com>
8389
8390         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8391         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8392         * gdbarch.h, gdbarch.c: Regenerate.
8393         * valops.c (hand_function_call): Update.
8394         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8395         * frame.c (legacy_saved_regs_this_id): Update.
8396         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8397         * dummy-frame.h: Update.
8398         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8399         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8400         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8401         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8402         * config/m68k/tm-sun3.h: Update.
8403         * blockframe.c (inside_main_func, frame_chain_valid): Update.
8404         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8405         * x86-64-tdep.c (x86_64_init_abi): Update.
8406         * vax-tdep.c (vax_gdbarch_init): Update.
8407         * v850-tdep.c (v850_gdbarch_init): Update.
8408         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8409         * sh-tdep.c (sh_gdbarch_init): Update.
8410         * s390-tdep.c (s390_gdbarch_init): Update.
8411         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8412         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8413         (frame_get_saved_regs): Update.
8414         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8415         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8416         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8417         * mips-tdep.c (mips_gdbarch_init): Update.
8418         * mcore-tdep.c (mcore_gdbarch_init): Update.
8419         * m68k-tdep.c (m68k_gdbarch_init): Update.
8420         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8421         * ia64-tdep.c (ia64_gdbarch_init): Update.
8422         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8423         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8424         (i386_interix_back_one_frame): Update.
8425         * hppa-tdep.c (hppa_gdbarch_init): Update.
8426         (hppa_init_extra_frame_info): Update.
8427         * h8300-tdep.c (h8300_gdbarch_init): Update.
8428         * frv-tdep.c (frv_gdbarch_init): Update.
8429         * cris-tdep.c (cris_gdbarch_init): Update.
8430         * avr-tdep.c (avr_gdbarch_init): Update.
8431         * arm-tdep.c (arm_gdbarch_init): Update.
8432         * alpha-tdep.c (alpha_gdbarch_init): Update.
8433
8434 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8435
8436         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8437         (arm_get_fp_model): Declare.
8438         * arm-tdep.c (fp_model_strings): New string array.
8439         (arm_fp_model, current_fp_model): New variables.
8440         (arm_get_fp_model): New function.
8441         (arm_set_fp): New function.
8442         (set_fp_model_sfunc): New function.
8443         (show_fp_model): New function.
8444         (_initialize_arm_tdep): Add new command to set/show the FPU.
8445         (arm_extract_return_value): Use arm_get_fp_model.
8446         (arm_store_return_value): Likewise.
8447         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
8448         to initialize the floating-point data types.
8449         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8450         model is FPA.
8451
8452 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8453
8454         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
8455         the current setting of each value.
8456         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8457         new_set and new_show.  Use add_setshow_cmd_full and
8458         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
8459         commands and add new version as subcommands of "set/show arm".
8460
8461 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8462
8463         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8464         (set_arm_command, show_arm_command): New functions.
8465         (_initialize_arm_tdep): Add them.
8466         (num_disassembly_options): Renamed from num_flavor_options.
8467         (valid_disassembly_styles): Renamed from valid_flavors.
8468         (disassembly_style): Renamed from disassembly_flavor.
8469         (set_disassembly_style_sfunc): Renamed from
8470         set_disassembly_flavor_sfunc.
8471         (set_disassembly_style): Renamed from set_disassembly_flavor.
8472         (arm_othernames): Updated.
8473         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8474         command.  Add "set/show arm disassembly" commands.  Deprecate
8475         "othernames" command.
8476
8477 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8478
8479         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8480         (arm-tdep.o): Depend on elf_arm_h.
8481
8482 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8483
8484         * Makefile.in (coff_internal_h): Define.
8485         (arm-tdep.o): Update dependencies.
8486
8487 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8488
8489         * arm-tdep.c (prologue_cache): Delete.
8490         (check_prologue_cache, save_prologue_cache): Delete.
8491         (arm_scan_prologue): Don't check or update the prologue_cache.
8492         (arm_gdb_arch_init): Don't initialize it.
8493         (_initialize_arm_tdep): Likewise.
8494
8495 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
8496
8497         * MAINTAINERS (tui): Maintainer of tui code.
8498
8499 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
8500
8501         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8502         (i386-cygwin-tdep.o): Add dependencies.
8503         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8504         * i386-cygwin-tdep.c: New file.
8505         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8506         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8507
8508 2003-03-20  Andrew Cagney  <cagney@redhat.com>
8509
8510         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8511         (handle_inferior_event): Remove code calling
8512         DYNAMIC_TRAMPOLINE_NEXTPC.
8513
8514         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8515         already has a full path.
8516
8517         * main.c (gdb_main): Return 1.
8518         (captured_main): Call error to report an invalid interpreter.
8519
8520         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8521         * alpha-osf1-tdep.c: Include "gdb_string.h".
8522
8523 2003-03-19  J. Brobecker  <brobecker@gnat.com>
8524
8525         Continuing work to convert the hppa targets to multiarch partial.
8526
8527         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8528         method, now that hppa_push_dummy_frame has a conformant prototype.
8529         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8530         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8531         for the switch to multiarch partial.
8532
8533 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
8534
8535         * mdebugread.c (parse_symbol): For stEnd, we're done counting
8536         when iss is issNull.
8537
8538 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8539
8540         * mips-tdep.c (mips_register_name): Fix fencepost error involving
8541         NUM_REGS bounds check.
8542
8543 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8544
8545         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8546         * mips-tdep.c (gdb_assert.h): Include.
8547         (mips_generic_reg_names, mips_processor_reg_names): Make static.
8548         (mips_register_name): Handle integer registers explicitly.  Add
8549         bounds checking.
8550         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8551         (mips_lsi33k_reg_names): Don't list integer registers; they're
8552         handled by mips_register_name() now.
8553         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8554         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8555         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8556         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8557         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8558
8559 2003-03-18  Andrew Cagney  <cagney@redhat.com>
8560
8561         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8562         a void pointer.
8563         * gdbtypes.h (print_scalar_formatted): Update declaration.
8564         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8565
8566 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8567
8568         * infrun.c (observer.h): Add #include.
8569         (normal_stop): Add call to observer_notify_normal_stop.
8570         * Makefile.in (infrun.o): Add dependency on observer.h.
8571
8572 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8573
8574         Continuing work to convert the hppa targets to multiarch partial.
8575         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8576         parameter. Reformat comment.
8577         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8578         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8579         to match new profile.
8580
8581 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8582
8583         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8584         appear to be working in any case.
8585
8586 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8587
8588         * observer.c (observer_test_first_observer): New static variable.
8589         (observer_test_second_observer): Likewise.
8590         (observer_test_third_observer): Likewise.
8591         (observer_test_first_notification_function): New static function.
8592         (observer_test_second_notification_function): Likewise.
8593         (observer_test_third_notification_function): Likewise.
8594
8595 2003-03-17  J. Brobecker  <brobecker@gnat.com>
8596
8597         * hppa-tdep.c (gdb_assert.h): Add missing #include.
8598         * somsolib.c (gdb_assert.h): Likewise.
8599         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8600         (somsolib.o): Likewise.
8601
8602 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8603
8604         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8605         BFD.  Simplify setting of di.endian.
8606
8607 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8608
8609         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8610         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8611
8612         From Elena Zannoni  <ezannoni@redhat.com>
8613         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8614         vector and floating-point parameters.
8615         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8616         convention.
8617         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8618
8619 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
8620
8621         * MAINTAINERS: Remove my name from several maintainership roles.
8622
8623 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8624
8625         Fix frame off-by-one bug.
8626         * frame-unwind.h (frame_this_id_ftype): Replace
8627         frame_unwind_id_ftype.
8628         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8629         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
8630         with "prev_register".
8631         * frame-unwind.c (frame_unwind_find_by_pc): Return
8632         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
8633         comment.
8634         * dummy-frame.c (cached_find_dummy_frame): Delete function.
8635         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8636         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8637         (dummy_frame_unwind): Update.
8638         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8639         sentinel_frame_register_unwind.
8640         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8641         (sentinel_frame_unwinder): Update.
8642         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8643         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8644         * frame.c (create_sentinel_frame): Update. Initialize
8645         "prologue_cache" instead of "unwind_cache".
8646         (frame_register_unwind): Call this frame's prev_register with the
8647         next frame and this frame's prologue cache.
8648         (get_prev_frame): Simplify.  Always call prev frame's this_id with
8649         this frame and prev frame's prologue cache.  Document that this
8650         call is shifted one to the left when compared to the
8651         frame_register_unwind call.
8652         (legacy_saved_regs_prev_register): Replace
8653         frame_saved_regs_register_unwind.
8654         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8655         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8656         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8657         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8658         (d10v_frame_unwind): Update.
8659         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8660         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8661         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8662         "saved_regs" with "this_saved_regs".
8663
8664 2003-03-16  Andrew Cagney  <cagney@redhat.com>
8665
8666         * frame.c (frame_pop): Don't call target_store_registers.  Fix
8667         problem reported by Mark Kettenis.
8668
8669 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
8670
8671         * i386-tdep.c (i386_register_type): Renamed from
8672         i386_register_virtual_type.  Adjust function signature.
8673         (i386_gdbarch_init): Set register_type instead of
8674         deprecated_max_register_raw_size,
8675         deprecated_max_register_virtual_size and register_virtual_type.
8676
8677 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8678
8679         * frame.c (get_prev_frame): When a legacy frame, always call
8680         legacy_get_prev_frame.  Simplify unwind code using assumption that
8681         the unwinder is new.
8682         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8683         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8684         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8685
8686 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8687
8688         * frame.c (get_saved_register): Delete function.
8689         * frame.h (get_saved_register): Delete declaration.
8690         * xstormy16-tdep.c: Update comment.
8691         * regcache.h: Update comments.
8692         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8693         get_saved_register and extract_address, use
8694         frame_read_unsigned_register.
8695         (sparc_frame_saved_pc): Ditto.
8696         (sparc_get_saved_register): Instead of get_saved_register, use
8697         frame_register.
8698         (sparc_pop_frame): Ditto.
8699         * findvar.c: Update comments.
8700         (value_of_register): Call frame_register instead of
8701         get_saved_register.
8702         (value_from_register): Ditto.
8703         * config/sparc/tm-sparc.h: Update comment.
8704         * breakpoint.c: Update comment.
8705
8706 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8707
8708         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8709         GET_SAVED_REGISTER.
8710         * gdbarch.h, gdbarch.c: Re-generate.
8711         * frame.h: Update comments.
8712         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8713         * x86-64-tdep.c (x86_64_init_abi): Update.
8714         * sparc-tdep.c (sparc_gdbarch_init): Update.
8715         * sh-tdep.c (sh_gdbarch_init): Update.
8716         * mips-tdep.c (mips_gdbarch_init): Update.
8717         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8718         * cris-tdep.c (cris_gdbarch_init): Update.
8719         * ia64-tdep.c (ia64_gdbarch_init): Update.
8720         * frame.c (frame_register): Update.
8721         (get_saved_register): Update.
8722         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8723
8724 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8725
8726         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8727         * gdbarch.h, gdbarch.c: Regenerate.
8728         * valops.c (hand_function_call): Update comment.
8729         * stack.c (return_command): Update comment.
8730         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8731         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8732         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8733         * x86-64-tdep.c (x86_64_init_abi): Update.
8734         * vax-tdep.c (vax_gdbarch_init): Update.
8735         * v850-tdep.c (v850_gdbarch_init): Update.
8736         * sparc-tdep.c (sparc_gdbarch_init): Update.
8737         * sh-tdep.c (sh_gdbarch_init): Update.
8738         * s390-tdep.c (s390_gdbarch_init): Update.
8739         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8740         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8741         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8742         * mips-tdep.c (mips_gdbarch_init): Update.
8743         * mcore-tdep.c (mcore_gdbarch_init): Update.
8744         * m68k-tdep.c (m68k_gdbarch_init): Update.
8745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8746         * ia64-tdep.c (ia64_gdbarch_init): Update.
8747         * i386-tdep.c (i386_gdbarch_init): Update.
8748         * hppa-tdep.c (hppa_gdbarch_init): Update.
8749         * h8300-tdep.c (h8300_gdbarch_init): Update.
8750         * frv-tdep.c (frv_gdbarch_init): Update.
8751         * cris-tdep.c (cris_gdbarch_init): Update.
8752         * avr-tdep.c (avr_gdbarch_init): Update.
8753         * arm-tdep.c (arm_gdbarch_init): Update.
8754         * alpha-tdep.c (alpha_gdbarch_init): Update.
8755
8756 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8757
8758         * frame.c (legacy_frame_p): New function.
8759         (get_prev_frame): Use legacy_frame_p.
8760         * frame.h (legacy_frame_p): Declare.
8761
8762 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8763
8764         * MAINTAINERS (write after approval): Alphabetically
8765         listing corrected.
8766
8767 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8768
8769         * MAINTAINERS (write after approval): Add myself.
8770
8771 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8772
8773         * frame.c (get_prev_frame): Rename the frame parameter to
8774         "this_frame".
8775         (get_next_frame, legacy_get_prev_frame): Ditto.
8776
8777 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8778
8779         * frame.c (get_current_frame): Check target_has_registers before
8780         checking target_has_stack.
8781         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8782         instead of deprecated_selected_frame.
8783         * findvar.c (value_of_register): Pass "frame", not
8784         deprecated_selected_frame, to value_of_builtin_reg.
8785
8786 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8787
8788         * regcache.c (regcache_cooked_write_signed): New function.
8789         (regcache_cooked_write_unsigned): New function.
8790         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8791         (regcache_cooked_read_signed): Fix regnum in range assertion.
8792         * regcache.h (regcache_cooked_write_signed): Declare.
8793         (regcache_cooked_write_unsigned): Declare.
8794
8795 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8796
8797         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8798         * gdbarch.h, gdbarch.c: Re-generate.
8799         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8800         * x86-64-tdep.h: Update.
8801         * x86-64-tdep.c (x86_64_init_abi): Update.
8802         * v850-tdep.c (v850_gdbarch_init): Update.
8803         * sparc-tdep.c (sparc_gdbarch_init): Update.
8804         * sh-tdep.c (sh_gdbarch_init): Update.
8805         * s390-tdep.c (s390_gdbarch_init): Update.
8806         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8807         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8808         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8809         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8810         * mips-tdep.c (mips_gdbarch_init): Update.
8811         * mcore-tdep.c (mcore_gdbarch_init): Update.
8812         * m68k-tdep.c (m68k_gdbarch_init): Update.
8813         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8814         * ia64-tdep.c (ia64_gdbarch_init): Update.
8815         * i386-tdep.c (i386_gdbarch_init): Update.
8816         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8817         * hppa-tdep.c (hppa_gdbarch_init): Update.
8818         * h8300-tdep.c (h8300_gdbarch_init): Update.
8819         * frv-tdep.c (frv_gdbarch_init): Update.
8820         * cris-tdep.c (cris_gdbarch_init): Update.
8821         * avr-tdep.c (avr_gdbarch_init): Update.
8822         * arm-tdep.c (arm_gdbarch_init): Update.
8823         * alpha-tdep.c (alpha_gdbarch_init): Update.
8824         * sh-tdep.c (sh_init_extra_frame_info): Update.
8825         (sh64_init_extra_frame_info): Update.
8826         * ns32knbsd-nat.c (frame_num_args): Update.
8827         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8828         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8829         (xstormy16_frame_chain_valid): Update.
8830         * vax-tdep.c (vax_saved_pc_after_call): Update.
8831         * v850-tdep.c (v850_frame_chain): Update.
8832         (v850_pop_frame): Update.
8833         (v850_init_extra_frame_info): Update.
8834         * sparc-tdep.c (setup_arbitrary_frame): Update.
8835         * ns32k-tdep.c (umax_frame_num_args): Update.
8836         * s390-tdep.c (s390_pop_frame_regular): Update.
8837         * mn10300-tdep.c (mn10300_frame_chain): Update.
8838         (mn10300_pop_frame_regular): Update.
8839         (mn10300_init_extra_frame_info): Update.
8840         * mips-tdep.c (mips_init_frame_pc_first): Update.
8841         (mips_frame_chain): Update.
8842         (mips_pop_frame): Update.
8843         * mcore-tdep.c (mcore_frame_chain): Update.
8844         (mcore_pop_frame): Update.
8845         (mcore_init_extra_frame_info): Update.
8846         * arch-utils.c (init_frame_pc_default): Update.
8847         * m68k-tdep.c (isi_frame_num_args): Update.
8848         (delta68_frame_num_args): Update.
8849         (news_frame_num_args): Update.
8850         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8851         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8852         (alpha_frame_chain): Update.
8853         (alpha_pop_frame): Update.
8854         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8855         (hppa_init_extra_frame_info): Update.
8856         (hppa_frame_chain): Update.
8857         (hppa_frame_chain_valid): Update.
8858         * cris-tdep.c (cris_init_extra_frame_info): Update.
8859         * avr-tdep.c (avr_init_extra_frame_info): Update.
8860         * arm-tdep.c (arm_frame_chain_valid): Update.
8861         (arm_init_extra_frame_info): Update.
8862         (arm_pop_frame): Update.
8863         * frame.c (frame_pc_unwind): Update.
8864         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8865         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8866         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8867         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8868         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8869         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8870
8871 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8872
8873         Eliminate the need for POP_FRAME.
8874         * frame.c (do_frame_unwind_register): New function.
8875         (frame_pop): When no POP_FRAME, pop the frame using register
8876         unwind and a scratch regcache.
8877         (frame_saved_regs_pop): Delete function.
8878         (trad_frame_unwinder): Update.
8879         * d10v-tdep.c (d10v_frame_pop): Delete function.
8880         (d10v_frame_unwind): Update.
8881         * sentinel-frame.c (sentinel_frame_pop): Delete function.
8882         (sentinel_frame_unwinder): Update.
8883         * dummy-frame.c (dummy_frame_pop): Delete function.
8884         (dummy_frame_unwind): Update.
8885         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8886         (struct frame_unwind): Update.
8887
8888 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
8889
8890         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8891         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8892         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8893         Do range checks on register number obtained from debugging info.
8894         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8895         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
8896         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8897         mapping function.
8898         (do_fp_register_row): Fix typo which caused double type to be
8899         used when attempting to unpack a float.
8900
8901 2003-03-11  J. Brobecker  <brobecker@gnat.com>
8902
8903         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8904
8905 2003-03-11  Andrew Cagney  <cagney@redhat.com>
8906
8907         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8908         frame.  Problem found by Corinna Vinschen.
8909
8910 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
8911
8912         * doublest.c (floatformat_from_length): Accept also
8913         the real size of 'long double' type.
8914
8915 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
8916
8917         From Klee Dienes <kdienes@apple.com>:
8918         * breakpoint.c (bpstat_copy): Copy the command lines as well
8919         as the old value, to match what is freed in bpstat_clear.
8920
8921 2003-03-10  David Carlton  <carlton@math.stanford.edu>
8922
8923         * minsyms.c (add_minsym_to_hash_table): Replace
8924         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8925         (compare_minimal_symbols, compact_minimal_symbols)
8926         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8927         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8928         of DEPRECATED_SYMBOL_MATCHES_NAME.
8929         (lookup_minimal_symbol_solib_trampoline): Ditto.
8930
8931 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8932
8933         * regcache.h (regcache_cooked_read_ftype): Define.
8934         (regcache_save, regcache_restore): Add a cooked_read parameter.
8935         * regcache.c (regcache_save, regcache_restore): Update.
8936         (do_cooked_read): New function.
8937         (regcache_cpy): Pass do_cooked_read to regcache_save and
8938         regcache_restore.
8939
8940 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8941
8942         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8943         * gdbarch.h, gdbarch.c: Re-generate.
8944         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8945         * x86-64-tdep.h: Update.
8946         * x86-64-tdep.c (x86_64_init_abi): Update.
8947         * v850-tdep.c (v850_gdbarch_init): Update.
8948         * sparc-tdep.c (sparc_gdbarch_init): Update.
8949         * sh-tdep.c (sh_gdbarch_init): Update.
8950         * s390-tdep.c (s390_gdbarch_init): Update.
8951         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8952         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8953         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8954         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8955         * mips-tdep.c (mips_gdbarch_init): Update.
8956         * mcore-tdep.c (mcore_gdbarch_init): Update.
8957         * m68k-tdep.c (m68k_gdbarch_init): Update.
8958         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8959         * ia64-tdep.c (ia64_gdbarch_init): Update.
8960         * i386-tdep.c (i386_gdbarch_init): Update.
8961         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8962         * hppa-tdep.c (hppa_gdbarch_init): Update.
8963         * h8300-tdep.c (h8300_gdbarch_init): Update.
8964         * frv-tdep.c (frv_gdbarch_init): Update.
8965         * cris-tdep.c (cris_gdbarch_init): Update.
8966         * avr-tdep.c (avr_gdbarch_init): Update.
8967         * arm-tdep.c (arm_gdbarch_init): Update.
8968         * alpha-tdep.c (alpha_gdbarch_init): Update.
8969         * sh-tdep.c (sh_init_extra_frame_info): Update.
8970         (sh64_init_extra_frame_info): Update.
8971         * ns32knbsd-nat.c (frame_num_args): Update.
8972         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8973         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8974         (xstormy16_frame_chain_valid): Update.
8975         * vax-tdep.c (vax_saved_pc_after_call): Update.
8976         * v850-tdep.c (v850_frame_chain): Update.
8977         (v850_pop_frame): Update.
8978         (v850_init_extra_frame_info): Update.
8979         * sparc-tdep.c (setup_arbitrary_frame): Update.
8980         * ns32k-tdep.c (umax_frame_num_args): Update.
8981         * s390-tdep.c (s390_pop_frame_regular): Update.
8982         * mn10300-tdep.c (mn10300_frame_chain): Update.
8983         (mn10300_pop_frame_regular): Update.
8984         (mn10300_init_extra_frame_info): Update.
8985         * mips-tdep.c (mips_init_frame_pc_first): Update.
8986         (mips_frame_chain): Update.
8987         (mips_pop_frame): Update.
8988         * mcore-tdep.c (mcore_frame_chain): Update.
8989         (mcore_pop_frame): Update.
8990         (mcore_init_extra_frame_info): Update.
8991         * arch-utils.c (init_frame_pc_default): Update.
8992         * m68k-tdep.c (isi_frame_num_args): Update.
8993         (delta68_frame_num_args): Update.
8994         (news_frame_num_args): Update.
8995         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8996         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8997         (alpha_frame_chain): Update.
8998         (alpha_pop_frame): Update.
8999         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9000         (hppa_init_extra_frame_info): Update.
9001         (hppa_frame_chain): Update.
9002         (hppa_frame_chain_valid): Update.
9003         * cris-tdep.c (cris_init_extra_frame_info): Update.
9004         * avr-tdep.c (avr_init_extra_frame_info): Update.
9005         * arm-tdep.c (arm_frame_chain_valid): Update.
9006         (arm_init_extra_frame_info): Update.
9007         (arm_pop_frame): Update.
9008         * frame.c (frame_pc_unwind): Update.
9009         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9010         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9011         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9012         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9013         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9014         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9015
9016 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9017
9018         * gdbarch.sh (gdbarch_unwind_pc): New method.
9019         * gdbarch.h, gdbarch.c: Regenerate.
9020         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
9021         but use read_pc and FRAME_SAVED_PC as fall backs.
9022         (frame_saved_regs_pc_unwind): Delete function.
9023         (trad_frame_unwinder): Update.
9024         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9025         (struct frame_unwind): Update.
9026         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9027         (dummy_frame_unwind): Update.
9028         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9029         (sentinel_frame_unwinder): Update.
9030         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9031         (d10v_frame_unwind): Update.
9032         (d10v_unwind_pc): New function.
9033         (d10v_gdbarch_init): Set unwind_pc.
9034
9035 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9036
9037         * gdbarch.h: Re-generate.
9038
9039         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9040         PC.
9041         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9042         the PC register.
9043
9044 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
9045
9046         * gdbarch.sh (save_dummy_frame_tos): Add comment.
9047
9048 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9049
9050         * cli-out.c: Update copyright.
9051         (cli_out_data): Define typedef.  Use instead of ui_out_data.
9052
9053 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9054
9055         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9056         the result.
9057
9058 2003-03-07  Andrew Cagney  <cagney@redhat.com>
9059
9060         * gdbarch.sh: Don't generate two macro definitions when an
9061         undefined macro taking no arguments.
9062         * gdbarch.h: Regenerate.
9063
9064 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
9065
9066         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9067         (x86_64_unwind_dummy_id): New functions.
9068         (x86_64_init_abi): Register these two new functions.
9069
9070 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
9071
9072         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9073         (x86_64_skip_prologue): Move prologue detection to
9074         separate function.
9075         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9076
9077 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9078
9079         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9080         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9081         * frame.c (get_prev_frame): Restructure the frame ID unwind code
9082         to use unwind_dummy_id when a dummy frame.
9083         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9084         predicate.
9085         * gdbarch.h, gdbarch.c: Regneerate.
9086
9087 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9088
9089         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9090         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9091         Do not use d10v_read_sp or d10v_read_fp when obtaining register
9092         values.
9093
9094 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9095
9096         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9097         (struct d10v_unwind_cache): Delete field "frameless".  Replace
9098         "next_addr" with "sp_offset".  Add "r11_offset".
9099         (d10v_frame_unwind_cache): Update.
9100         (prologue_find_regs): Update.  When "mv r11, sp", save the
9101         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
9102         RN was saved in r11_offset.
9103
9104 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9105
9106         * frame.c (deprecated_update_frame_pc_hack): Also update the the
9107         cached PC value in the next frame.
9108
9109 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9110
9111         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9112         "id_unwind_cache" with "id".
9113         (frame_id_unwind): Delete declaration.
9114         * frame.c (frame_id_unwind): Delete function.
9115         (get_prev_frame): Call the frame id unwind method directly.  Store
9116         the returned next frame's ID value in NEXT_FRAME.  Note that there
9117         is a problem with the wrong unwind ID being called with the wrong
9118         unwind cache.
9119
9120 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9121
9122         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9123
9124 2003-03-05  James Ingham <jingham@apple.com>
9125             Daniel Jacobowitz  <drow@mvista.com>
9126
9127         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9128         (auto_cp_abi): New variable.
9129         (current_cp_abi, num_cp_abis): Make static.
9130         (CP_ABI_MAX): Define.
9131         (cp_abis): Turn into an array.
9132         (value_virtual_fn_field): Fix formatting.
9133         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
9134         takes a pointer.
9135         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9136         (list_cp_abis, _initialize_cp_abi): New functions.
9137         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
9138         declarations for cp_abis, num_cp_abis, current_cp_abi, and
9139         switch_to_cp_abi.  Update prototype for register_cp_abi.
9140         * Makefile.in (cp-abi.o): Update dependencies.
9141         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9142         instead of switch_to_cp_abi.
9143         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
9144         register_cp_abi.
9145         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9146         register_cp_abi.
9147         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9148
9149 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9150
9151         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9152         * dwarf2loc.c: Include "regcache.h".
9153         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
9154         register_size.
9155         * Makefile.in (dwarf2loc.o): Update dependencies.
9156
9157 2003-03-04  Theodore A. Roth  <troth@openavr.org>
9158
9159         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9160         number of io registers reported by remote target is not a multiple of
9161         step.
9162
9163 2003-03-04  David Carlton  <carlton@math.stanford.edu>
9164
9165         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9166         (lookup_symbol_aux_psymtabs): Update call to
9167         lookup_partial_symbol.
9168         (lookup_transparent_type, find_main_psymtab)
9169         (make_symbol_overload_list): Ditto.
9170
9171 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9172
9173         * MAINTAINERS (Write after approval): Update my email address.
9174
9175 2003-03-03  Andrew Cagney  <cagney@redhat.com>
9176
9177         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9178         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9179         predicate.  Replace MAX_REGISTER_RAW_SIZE.
9180         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9181         MAX_REGISTER_VIRTUAL_SIZE.
9182         * regcache.c (legacy_max_register_raw_size): New function.
9183         (legacy_max_register_virtual_size): New function.
9184         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9185         (MAX_REGISTER_RAW_SIZE): Define.
9186         (legacy_max_register_raw_size): Declare.
9187         (legacy_max_register_virtual_size): Declare.
9188         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9189         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9190         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9191         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9192         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9193         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9194         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9195         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9196         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9197         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9198         * vax-tdep.c (vax_gdbarch_init): Update.
9199         * v850-tdep.c (v850_gdbarch_init): Update.
9200         * sparc-tdep.c (sparc_gdbarch_init): Update.
9201         * sh-tdep.c (sh_gdbarch_init): Update.
9202         * s390-tdep.c (s390_gdbarch_init): Update.
9203         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9204         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9205         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9206         * mips-tdep.c (mips_gdbarch_init): Update.
9207         * mcore-tdep.c (mcore_gdbarch_init): Update.
9208         * m68k-tdep.c (m68k_gdbarch_init): Update.
9209         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9210         * ia64-tdep.c (ia64_gdbarch_init): Update.
9211         * i386-tdep.c (i386_gdbarch_init): Update.
9212         * hppa-tdep.c (hppa_gdbarch_init): Update.
9213         * h8300-tdep.c (h8300_gdbarch_init): Update.
9214         * frv-tdep.c (frv_gdbarch_init): Update.
9215         * cris-tdep.c (cris_gdbarch_init): Update.
9216         * avr-tdep.c (avr_gdbarch_init): Update.
9217         * arm-tdep.c (arm_gdbarch_init): Update.
9218         * alpha-tdep.c (alpha_gdbarch_init): Update.
9219         * d10v-tdep.c (d10v_gdbarch_init): Do not set
9220         max_register_raw_size or max_register_virtual_size.
9221
9222 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9223
9224         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9225         SYMBOL_MATCHES_NAME, add comment.
9226         (SYMBOL_MATCHES_NATURAL_NAME): New.
9227         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9228         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9229         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9230         * symtab.c (lookup_partial_symbol): Use
9231         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
9232         unhelpful comment.
9233         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9234         SYMBOL_MATCHES_NAME.
9235         Fix for PR c++/33.
9236
9237 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9238
9239         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9240         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9241         by regexp matching against SYMBOL_NATURAL_NAME.
9242
9243 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9244
9245         * linespec.c (find_method): Extract code into collect_methods.
9246         (collect_methods): New.
9247
9248 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
9249
9250         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9251         get_frame_base.
9252
9253         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9254         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9255
9256 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9257
9258         * arch-utils.c (generic_register_byte): Fix to use the loop index
9259         and not regnum when summing the size of all registers up to regnum.
9260
9261 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9262
9263         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9264         FRAME_INIT_SAVED_REGS.
9265         * gdbarch.h, gdbarch.c: Regenerate.
9266         * stack.c (frame_info): Update.
9267         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9268         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9269         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9270         * ns32k-tdep.c (ns32k_pop_frame): Update.
9271         * mips-tdep.c (mips_pop_frame): Update.
9272         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9273         * ia64-tdep.c (ia64_frame_chain): Update.
9274         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9275         (ia64_frameless_function_invocation): Update.
9276         (ia64_init_extra_frame_info): Update.
9277         (ia64_pop_frame_regular): Update.
9278         * frame.h (struct frame_info): Update comment.
9279         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9280         * frame.c (frame_saved_regs_register_unwind): Update.
9281         (frame_saved_regs_register_unwind): Update.
9282         (deprecated_generic_get_saved_register): Update.
9283         * cris-tdep.c: Update comment.
9284         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9285         Rename macro.
9286         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9287         * x86-64-tdep.c (x86_64_init_abi): Update.
9288         * vax-tdep.c (vax_gdbarch_init): Update.
9289         * v850-tdep.c (v850_gdbarch_init): Update.
9290         * sparc-tdep.c (sparc_gdbarch_init): Update.
9291         * sh-tdep.c (sh_gdbarch_init): Update.
9292         * s390-tdep.c (s390_gdbarch_init): Update.
9293         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9294         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9295         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9296         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9297         * mips-tdep.c (mips_gdbarch_init): Update.
9298         * mcore-tdep.c (mcore_gdbarch_init): Update.
9299         * m68k-tdep.c (m68k_gdbarch_init): Update.
9300         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9301         * ia64-tdep.c (ia64_gdbarch_init): Update.
9302         * i386-tdep.c (i386_gdbarch_init): Update.
9303         * frv-tdep.c (frv_gdbarch_init): Update.
9304         * avr-tdep.c (avr_gdbarch_init): Update.
9305         * arm-tdep.c (arm_gdbarch_init): Update.
9306         * alpha-tdep.c (alpha_gdbarch_init): Update.
9307
9308 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9309
9310         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9311         option enum and switch.  When no windows, set the interpreter to
9312         INTERP_CONSOLE.
9313
9314 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9315
9316         * main.c (captured_main): Replace magic option characters with an
9317         enum.
9318
9319 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9320
9321         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9322         INIT_EXTRA_FRAME_INFO.
9323         * gdbarch.h, gdbarch.c: Regenerate.
9324         * arm-tdep.c: Update comments.
9325         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9326         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9327         * frame.h, avr-tdep.c: Ditto.
9328         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9329         (create_new_frame, legacy_get_prev_frame): Ditto.
9330         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9331         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9332         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9333         deprecated_init_extra_frame_info instead of init_extra_frame_info.
9334         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9335         * v850-tdep.c (v850_gdbarch_init): Ditto.
9336         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9337         * sh-tdep.c (sh_gdbarch_init): Ditto.
9338         * s390-tdep.c (s390_gdbarch_init): Ditto.
9339         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9340         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9341         * mips-tdep.c (mips_gdbarch_init): Ditto.
9342         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9343         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9344         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9345         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9346         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9347         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9348         * frv-tdep.c (frv_gdbarch_init): Ditto.
9349         * cris-tdep.c (cris_gdbarch_init): Ditto.
9350         * avr-tdep.c (avr_gdbarch_init): Ditto.
9351         * arm-tdep.c (arm_gdbarch_init): Ditto.
9352         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9353         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9354
9355 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9356
9357         * gdbarch.sh (register_type): New function with predicate.
9358         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9359         * gdbarch.h, gdbarch.c: Re-generate.
9360         * arch-utils.c (generic_register_byte): Use generic_register_size.
9361         (generic_register_size): When available, use
9362         gdbarch_register_type.
9363         * regcache.c (init_regcache_descr): When available, initialize the
9364         register type array using gdbarch_register_type.  If the
9365         architecture supplies gdbarch_register_type, do not use the legacy
9366         regcache layout.
9367         * d10v-tdep.c (d10v_register_type): Replace
9368         d10v_register_virtual_type.
9369         (d10v_gdbarch_init): Set register_type instead of
9370         register_virtual_type.
9371
9372 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9373
9374         * Makefile.in (ax-gdb.o): Update dependencies.
9375         * ax-gdb.c: Include "regcache.h".
9376         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9377         * findvar.c (value_of_register): Ditto.
9378         * infcmd.c (default_print_registers_info): Ditto.
9379
9380 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9381
9382         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9383         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9384
9385 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9386
9387         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9388         of STREQ.
9389
9390 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
9391
9392         * Makefile.in (dwarf2loc.o): Update dependencies.
9393         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9394         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9395         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9396         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9397         (locexpr_tracepoint_var_ref): New function.
9398         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9399
9400 2003-02-28  Andrew Cagney  <cagney@redhat.com>
9401
9402         * regcache.c (register_size): New function.
9403         * regcache.h (register_size): Declare
9404         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9405         max_register_size instead of MAX_REGISTER_RAW_SIZE.
9406
9407 2003-02-28  David Carlton  <carlton@math.stanford.edu>
9408
9409         * linespec.c (decode_compound): Extract code into find_method.
9410         (find_method): New.
9411
9412 2003-02-28  J. Brobecker  <brobecker@gnat.com>
9413
9414         * Makefile.in: Add rules to build and link in observer.o.
9415
9416 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9417
9418         * observer.c: Minor comments edits.
9419
9420 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9421
9422         * observer.h, observer.c: New file.
9423
9424 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9425
9426         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9427
9428 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
9429
9430         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9431         (M6812_OP_STS_EXT): Likewise.
9432         (m6811_prologue): Use the above to recognize prologue.
9433         (m6812_prologue): Likewise.
9434
9435 2003-02-27  David Carlton  <carlton@math.stanford.edu>
9436
9437         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9438         SYMBOL_PRINT_NAME.
9439         (compare_psymbols): Ditto.
9440         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9441
9442 2003-02-27  Michael Snyder  <msnyder@redhat.com>
9443
9444         * f-lang.c (build_fortran_types): New function.
9445         (_initialize_f_language): Gdbarch-register built-in fortran types.
9446         * doublest.c (extract_floating): Fix warning text.
9447
9448 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9449
9450         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9451         predicate.  Replaces PUSH_DUMMY_FRAME.
9452         * gdbarch.h, gdbarch.c: Regnerate.
9453         * valops.c (hand_function_call): Update.  Call
9454         generic_push_dummy_frame directly.
9455         * vax-tdep.c (vax_gdbarch_init): Update.
9456         * sparc-tdep.c (sparc_gdbarch_init): Update.
9457         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9458         * m68k-tdep.c (m68k_gdbarch_init): Update.
9459         * hppa-tdep.c (hppa_gdbarch_init): Update.
9460         * alpha-tdep.c (alpha_gdbarch_init): Update.
9461         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9462         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9463         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9464         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9465         push_dummy_frame to generic_push_dummy_frame.
9466         * v850-tdep.c (v850_gdbarch_init): Ditto.
9467         * sh-tdep.c (sh_gdbarch_init): Ditto.
9468         * s390-tdep.c (s390_gdbarch_init): Ditto.
9469         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9470         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9471         * mips-tdep.c (mips_gdbarch_init): Ditto.
9472         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9473         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9474         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9475         * i386-tdep.c (i386_gdbarch_init): Ditto.
9476         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9477         * frv-tdep.c (frv_gdbarch_init): Ditto.
9478         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9479         * cris-tdep.c (cris_gdbarch_init): Ditto.
9480         * avr-tdep.c (avr_gdbarch_init): Ditto.
9481         * arm-tdep.c (arm_gdbarch_init): Ditto.
9482
9483 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
9484
9485         * mips-tdep.c (show_mips_abi): New function.
9486         (_initialize_mips_tdep): Use show_mips_abi() to implement the
9487         command ``show mips abi''.
9488
9489 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9490
9491         From Elena Zannoni  <ezannoni@redhat.com>
9492         * dbxread.c (process_one_symbol): Only record line 0 if one or
9493         more sline entries have been seen for the function.
9494
9495 2003-02-26  Michael Chastain  <mec@shout.net>
9496
9497         * configure: Regenerate with autoconf 000227.
9498
9499 2003-02-26  Michael Chastain  <mec@shout.net>
9500
9501         Close PR build/660.
9502         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9503         for old libc5/glibc.
9504         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9505
9506 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
9507
9508         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9509         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9510
9511 2003-02-26  Michael Chastain  <mec@shout.net>
9512
9513         * configure.in: New variable HAVE_UINTPTR_T.
9514         * configure, config.in: Regenerated.
9515
9516 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
9517
9518         Fix PR build/1097.
9519         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9520
9521 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9522
9523         * frame.c (get_prev_frame): Add comment on check for
9524         inside_entry_func. Only check for inside_entry_file when not a
9525         dummy and not a sentinel.  Check that the new frame is not inner
9526         to the old frame.
9527
9528 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9529
9530         * frame.c (frame_debug): New variable.
9531         (_initialize_frame): Add "set/show debug frame" command.
9532         (get_prev_frame): When frame_debug, print reason why unwind
9533         failed.
9534
9535 2003-02-25  Michael Chastain  <mec@shout.net>
9536
9537         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9538         to avoid uintptr_t definition problems.
9539
9540 2003-02-25  David Carlton  <carlton@math.stanford.edu>
9541
9542         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9543         (SYMBOL_LINKAGE_NAME): Ditto.
9544         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9545         SYMBOL_LINKAGE_NAME.
9546         (struct general_symbol_info): Expand comment.
9547         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9548         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9549         (SYMBOL_MATCHES_REGEXP): Ditto.
9550         * symtab.c (symbol_natural_name): New function.
9551         * objfiles.h: Replace all uses of SYMBOL_NAME by
9552         DEPRECATED_SYMBOL_NAME.
9553         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9554         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9555         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9556         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9557         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9558         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9559         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9560         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9561         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9562         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9563         * ada-exp.y: Ditto.
9564         * ada-exp.y: Update copyright.
9565         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9566         * cp-valprint.c: Ditto.
9567
9568 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
9569
9570         * infptrace.c (detach): Do not flag error if ptrace detach fails
9571         and errno is set to ESRCH.
9572
9573 2003-02-24  Andrew Cagney  <cagney@redhat.com>
9574
9575         * infptrace.c (udot_info): Change type of udot_off to long.  Use
9576         paddr when printing udot_off's value.
9577
9578 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9579
9580         * symtab.c (make_symbol_overload_list): Only read in partial
9581         symtabs containing a matching partial symbol.
9582
9583 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9584
9585         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9586         do the comparison, not strcmp.
9587         * symfile.c (compare_psymbols): Ditto.
9588         * defs.h: Declare strcmp_iw_ordered.
9589         * utils.c (strcmp_iw_ordered): New function.
9590
9591 2003-02-24  Jim Blandy  <jimb@redhat.com>
9592
9593         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9594         support, shared libs): Remove my name from here, to better reflect
9595         reality.
9596
9597 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9598
9599         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9600         (target_ops): Add to_have_continuable_watchpoint.
9601         * target.c (update_current_target): Add INHERIT line for
9602         to_have_continuable_watchpoint.
9603         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9604         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9605         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9606         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9607
9608 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
9609
9610         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9611         maintainership.
9612
9613 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9614
9615         * solib.c (solib_open): Call target defined search function after
9616         failing with solib-search-path.
9617         * solist.h (target_so_ops): Add find_and_open_solib function hook and
9618         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9619
9620 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9621
9622         * MAINTAINERS: Add myself to Write After section.
9623
9624 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
9625
9626         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9627
9628 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
9629
9630         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9631         (m68hc11_add_reggroups): New function.
9632         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9633         (m68hc11_gdbarch_init): Install the reggroups.
9634         (_initialize_m68hc11_tdep): Initialize them.
9635
9636 2003-02-21  James E Wilson  <wilson@tuliptree.org>
9637
9638         * MAINTAINERS: Update my email address.
9639
9640 2003-02-21  David Carlton  <carlton@math.stanford.edu>
9641
9642         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9643
9644 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
9645
9646         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9647         * symtab.h: Add opaque declarations of struct axs_value and
9648         struct agent_expr.
9649         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9650         (struct location_funcs): New type.
9651         (struct symbol): Add "loc" to aux_value.
9652         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9653         * dwarf2read.c: Include "dwarf2expr.h".
9654         (dwarf2_symbol_mark_computed): New function.
9655         (read_func_scope): Use it.
9656         (var_decode_location): New function.
9657         (new_symbol): Use it.
9658         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9659
9660         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9661         (dwarf2expr_h, dwarf2loc_h): New variables.
9662         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9663         (dwarf2expr.o, dwarf2loc.o): New rules.
9664         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9665         * buildsym.c (finish_block): Handle LOC_COMPUTED and
9666         LOC_COMPUTED_ARG.
9667         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9668         * m2-exp.y (yylex): Likewise.
9669         * printcmd.c (address_info, print_frame_args): Likewise.
9670         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9671         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9672         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9673         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9674         * symtab.c (lookup_block_symbol): Likewise.
9675
9676 2003-02-20  Adam Fedor  <fedor@gnu.org>
9677
9678         * symtab.h: Remove objc_specific struct
9679         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9680         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9681         Have language_objc use cplus_specific struct.
9682
9683 2003-02-20  Tom Tromey  <tromey@redhat.com>
9684
9685         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9686         TYPE_NAME, when printing a String value.  PR java/1075.
9687
9688 2003-02-20  Adam Fedor  <fedor@gnu.org>
9689
9690         * objc-lang.h (find_methods): Remove declaration.
9691         * objc-lang.c (find_methods): Make static.
9692
9693 2003-02-20  Christopher Faylor  <cgf@redhat.com>
9694
9695         * win32-nat.c (get_image_name): Check return value from
9696         ReadProcessMemory.
9697         (child_xfer_memory): Ditto.
9698
9699 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
9700
9701         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9702         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9703         '${exec_prefix}' (in addition to the expansion thereof) as
9704         relocatable.
9705         * configure: Rebuilt.
9706
9707 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9708
9709         * symtab.c (search_symbols): Revert the search_symbols part of my
9710         2002-12-23 patch.  Add comment.
9711
9712 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9713
9714         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9715         * dbxread.c (elfstab_build_psymtabs): Don't call
9716         install_minimal_symbols.
9717         (stabsect_build_psymtabs): Likewise.
9718         * elfread.c (elf_symfile_read): Call install_minimal_symbols
9719         earlier.
9720         * somread.c (som_symfile_read): Call install_minimal_symbols
9721         and do_cleanups earlier.
9722         * nlmread.c (nlm_symfile_read): Likewise.
9723         * mdebugread.c (elfmdebug_build_psymtabs): Call
9724         install_minimal_symbols and make appropriate cleanups.
9725
9726 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9727
9728         * solib.c (reload_shared_libraries): New function.
9729         (_initialize_solib): Add callbacks for ``set solib-search-path''
9730         and ``set solib-absolute-prefix''.
9731
9732 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9733
9734         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9735         expand comment.
9736         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9737         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9738         * ada-typeprint.c (ada_typedef_print): Ditto.
9739         * ax-gdb.c (gen_var_ref): Ditto.
9740         * breakpoint.c (print_one_breakpoint): Ditto.
9741         * buildsym.c (finish_block): Ditto.
9742         * c-valprint.c (c_val_print): Ditto.
9743         * expprint.c (print_subexp): Ditto.
9744         * findvar.c (locate_var_value): Ditto.
9745         * infcmd.c (jump_command): Ditto.
9746         * linespec.c (decode_line_2, decode_compound): Ditto.
9747         * maint.c (maintenance_translate_address): Ditto.
9748         * objc-lang.c (compare_selectors, compare_classes): Ditto.
9749         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9750         Ditto.
9751         * p-valprint.c (pascal_val_print): Ditto.
9752         * stabsread.c (define_symbol): Ditto.
9753         * stack.c (print_frame, frame_info, print_block_frame_locals)
9754         (print_frame_arg_vars, return_command): Ditto.
9755         * symfile.c (compare_symbols, compare_psymbols): Ditto.
9756         * symmisc.c (print_symbol): Ditto.
9757         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9758         (compare_search_syms, print_symbol_info, print_msymbol_info)
9759         (rbreak_command): Ditto.
9760         * tracepoint.c (tracepoints_info): Ditto.
9761         * typeprint.c (typedef_print): Ditto.
9762         * valops.c (value_of_variable, hand_function_call): Ditto.
9763         * cli/cli-cmds.c (edit_command, list_command): Ditto.
9764         * ada-typeprint.c: Update Copyright.
9765         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9766         * tracepoint.c, cli/cli-cmds.c: Ditto.
9767
9768 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9769
9770         * frame.c (generic_unwind_get_saved_register): Make non-static.
9771         * frame.h (generic_unwind_get_saved_register): Declare.
9772         * mips-tdep.c (read_next_frame_reg): Fetch register from
9773         current regcache when frame is NULL.
9774         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9775         that must be NULL.
9776         (mips_get_saved_register): Call generic_unwind_get_saved_register()
9777         instead of frame_register_unwind().
9778
9779 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9780
9781         * remote-sim.c (gdbsim_insert_breakpoint)
9782         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9783         code.
9784
9785 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9786
9787         * remote.c (_initialize_remote): Add commands "set/show remote
9788         hardware-watchpoint-limit" and "set/show remote
9789         hardware-breakpoint-limit".
9790         (remote_hw_watchpoint_limit): Initialize to -1.
9791         (remote_hw_breakpoint_limit): Ditto.
9792         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9793
9794 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
9795
9796         * coff-pe-read.c: New file - support reading of minimal symbols from a
9797         portable executable using the export table.
9798         * coff-pe-read.h: New file.
9799         * coffread.c: Include coff-pe-read.h.
9800         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9801         debugging symbols found.
9802         * Makefile.in (SFILES): Add coff-pe-read.o.
9803         (coff_pe_read_h): Define.
9804         (COMMON_OBS): Add coff-pe-read.o.
9805         (coffread.o): Add coff_pe_read_h dependency.
9806         (coff-pe-read.o): New target.
9807
9808 2003-02-19  David Carlton  <carlton@math.stanford.edu>
9809
9810         * Makefile.in (SFILES): Add block.c.
9811         (block_h): New.
9812         (COMMON_OBS): Add block.o.
9813         (block.o): New.
9814         (x86-64-tdep.o): Add $(block_h).
9815         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9816         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9817         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9818         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9819         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9820         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9821         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9822         * value.h: Add opaque declaration for struct block.
9823         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9824         * ada-lang.h: Ditto.
9825         * x86-64-tdep.c: #include "block.h"
9826         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9827         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9828         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9829         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9830         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9831         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9832         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9833         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9834         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9835         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9836         * symtab.c (block_function): Ditto.
9837         (contained_in): Ditto.
9838         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9839         block.h.  Add opaque declaration for struct block.
9840         * symtab.h: Move block_function and contained_in declarations to
9841         block.h.  Add opaque declarations for struct block, struct
9842         blockvector.
9843         (struct block): Move to block.h.
9844         (struct blockvector): Ditto.
9845         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9846         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9847         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9848         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9849         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9850         Ditto.
9851         * block.c: New file.
9852         * block.h: New file.
9853
9854 2003-02-19  Theodore A. Roth  <troth@openavr.org>
9855
9856         * avr-tdep.c (avr_extract_return_value): Remove function.
9857         (avr_store_return_value): Remove function.
9858         (avr_extract_struct_value_address): Remove function.
9859         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9860
9861 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
9862
9863         * rs6000-tdep.c: Include "gdb_assert.h".
9864         (registers_e500): Add "acc" and "spefscr".
9865         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9866         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9867         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
9868         really is "r0".
9869         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9870
9871 2003-02-18  Keith Seitz  <keiths@redhat.com>
9872
9873         * Makefile.in: Add gdbtk-interps.c.
9874
9875 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
9876
9877         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9878         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9879
9880 2003-02-18  Andrew Cagney  <cagney@redhat.com>
9881
9882         * symtab.h (struct objfile): Add opaque declaration.
9883
9884 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
9885
9886         From Jim Ingham   <jingham@apple.com>:
9887         * dbxread.c (process_one_symbol): Use last_function_start rather
9888         than function_start_offset to find the real beginning of the
9889         current function.  The latter is just the text section offset on
9890         some systems, the former is always the real function start.
9891
9892 2003-02-17  Andrew Cagney  <cagney@redhat.com>
9893
9894         * configure.in: Revert ${target} != ${host}.
9895
9896 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
9897
9898         * configure.in (Makefile): Use the test ${target} != ${host},
9899         instead of the absence of the "nm.h" file, to determine of the
9900         configuration non-native.
9901         * configure: Regenerate.
9902
9903 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
9904
9905         From Brian Ford  <ford@vss.fsi.com>
9906
9907         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9908         conditionalize tui_active test.
9909         (lookup_cmd_1): Ditto.
9910
9911 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
9912
9913         * configure.in: Add check for _etext.
9914         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9915         available.
9916         * config.in, configure: regenerated.
9917
9918 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
9919
9920         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9921
9922 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
9923
9924         * main.c (tui_version): Delete variable.
9925         (captured_main): When --tui, set interpreter_p to "tui" instead of
9926         enabling tui_version.
9927         * printcmd.c (display_command) [TUI]: Test tui_active instead of
9928         tui_version.
9929         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9930         * cli/cli-cmds.c (disassemble_command): Ditto.
9931         * defs.h (tui_version): Delete declaration.
9932         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9933         (tui-interp.o): Add rules.
9934         (SUBDIR_TUI_OBS): Add "tui-interp.o".
9935
9936 2003-02-14  Christopher Faylor  <cgf@redhat.com>
9937
9938         * win32-nat.c (register_loaded_dll): Correctly set address range for
9939         just-loaded dll.
9940
9941 2003-02-12  Jason Molenda  (jmolenda@apple.com)
9942
9943         * symmisc.c (print_objfile_statistics): Include information about
9944         the number of psymtabs and symtabs in each object file.
9945
9946 2003-02-13  Keith R Seitz  <keiths@redhat.com>
9947
9948         * main.h (struct captured_main_args): Add interpreter_p.
9949         * main.c (captured_main): Initialize interpreter_p from context.
9950         * gdb.c (main): Set interpreter_p argument.
9951         * Makefile.in (gdb.o): Add dependency for interps.h.
9952
9953 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9954
9955         * event-top.c (cli_command_loop): Delete declaration.
9956         (_initialize_event_loop): Delete function setting event_loop_hook.
9957         * event-top.h (cli_command_loop): Declare.  Update copyright.
9958         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
9959         * interps.c (current_interp_command_loop): When event_loop_p, call
9960         cli_command_loop.
9961
9962 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9963
9964         * interps.h (interp_command_loop_ftype): Change return type to
9965         void.
9966
9967 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
9968
9969         * x86-64-tdep.c (x86_64_extract_return_value)
9970         (x86_64_store_return_value): Use regcache instead of regbuf.
9971         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9972         * x86-64-linux-nat.c (fill_gregset): Use regcache.
9973
9974 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
9975
9976         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9977         * aclocal.m4: Regenerate.
9978         * configure: Regenerate.
9979
9980         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9981         TCL_LD_SEARCH_FLAGS.
9982
9983 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
9984
9985         * dwarf2cfi.c: Reindented.
9986
9987 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
9988
9989         * interps.c (clear_interpreter_hooks): Convert function definition
9990         to ISO C.
9991
9992 2003-02-07  David Carlton  <carlton@math.stanford.edu>
9993
9994         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9995
9996 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
9997
9998         * gdbtypes.h (struct main_type): Move ``length'' field from here...
9999         (struct type): ...to here.
10000         (TYPE_LENGTH): Adjust to reflect different location of ``length''
10001         field.
10002         * gdbtypes.c (make_qualified_type): Set length on newly created type.
10003         (replace_type): Set length on all type variants for a given type.
10004
10005 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
10006
10007         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10008         <sys/stat.h>.
10009         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10010
10011 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
10012
10013         * Makefile.in (symm-nat.o): Update dependencies.
10014         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10015         (lynx-nat.o, ia64-linux-nat.): Ditto.
10016         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10017         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10018         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10019
10020         * Makefile.in (inflow_h): Define.
10021         (procfs.o, inflow.o, procfs.o): Update dependencies.
10022         * inftarg.c (child_stop): Delete extern declaration of
10023         inferior_process_group.  Include "inflow.h".
10024         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
10025         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10026         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
10027         (our_process_group, inferior_process_group): Extern declarations.
10028
10029         * procfs.c: Include "gdb_assert.h".
10030
10031         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10032         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10033         * jv-typeprint.c (java_type_print_base): Ditto.
10034         * typeprint.c (typedef_print): Eliminate STREQ.
10035         * cli/cli-script.c (define_command, define_command): Ditto.
10036         * main.c (captured_main): Ditto.
10037         * values.c (lookup_internalvar): Ditto.
10038         * utils.c (safe_strerror, parse_escape): Eliminate assignment
10039         within `if' conditional.
10040         * linespec.c (decode_line_2): Ditto.
10041         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10042         (bfd_openw_with_cleanup): Ditto.
10043
10044 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
10045
10046         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10047         legacy_extract_return_value and store_return_value to
10048         legacy_return_value.
10049
10050 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
10051
10052         * win32-nat.c (get_relocated_section_addrs): New function.  Find
10053         section load addresses for symbol handling in relocated DLLs.
10054         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10055
10056 2003-02-05  Fred Fish  <fnf@intrinsity.com>
10057
10058         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10059         '=' and '!='.
10060         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10061         with '&' and '=='.
10062         (angel_RDI_info): Ditto.
10063         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10064         with '&' and '!='.
10065         (threads_continue_all_with_signals): Ditto.
10066
10067 2003-02-05  Jim Ingham <jingham@apple.com>
10068             Keith Seitz  <keiths@redhat.com>
10069             Elena Zannoni  <ezannoni@redhat.com>
10070             Andrew Cagney  <ac131313@redhat.com>
10071
10072         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10073         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10074         (SUBDIR_MI_OBS): Add "mi-interp.o".
10075         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10076         (SFILES): Add "interps.c".
10077         (COMMON_OBS): Add "interps.o".
10078         (interps_h, mi_main_h): Define.
10079         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10080         (mi-main.o, main.o, event-top.o): Update dependencies.
10081         * cli/cli-interp.c: New file.
10082         * interps.h, interps.c: New files.
10083         * top.c: (gdb_init): Don't install the default interpreter, handed
10084         by captured_main.
10085         * main.c: Include "interps.h".
10086         (interpreter_p): Note that it should malloc'ed.
10087         (captured_command_loop): Call current_interp_command_loop.
10088         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
10089         xfree and xstrdup when updating interpreter_p.  Install the
10090         default interpreter.  Add hack to stop mi1's copyright notice
10091         being encoded.
10092         * event-top.h (gdb_setup_readline): Declare.
10093         (gdb_disable_readline): Declare.
10094         * event-top.c: Include "interps.h".
10095         (display_gdb_prompt): Call current_interp_display_prompt_p.
10096         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10097         gdb_stdlog, and gdb_stdtarg.
10098         (_initialize_event_loop): Don't call gdb_setup_readline.
10099         * cli-out.c (cli_out_set_stream): New function.
10100         * cli-out.h (cli_out_set_stream): Declare.
10101
10102 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
10103
10104         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10105         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
10106         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10107         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10108         config/i386/i386v42mp.mt: Removed.
10109
10110 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
10111
10112         * configure.tgt (*-*-solaris*): Set gdb_osabi to
10113         GDB_OSABI_SOLARIS.
10114
10115 2003-02-05  Michael Chastain  <mec@shout.net>
10116
10117         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10118         2.12.1 and earlier versions.
10119
10120 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
10121
10122         Remove orphaned hosts, targets and files.
10123         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10124         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10125         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10126         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10127         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10128         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10129         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10130         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10131         * config/sparc/tm-sp64sim.h: Delete.
10132         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10133         hosts.
10134         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10135         mips*-dec-mach3* targets.
10136
10137 2003-02-04  Michael Chastain  <mec@shout.net>
10138
10139         * NEWS: Fix typo: sepcifying -> specifying.
10140
10141 2003-02-04  Michael Chastain  <mec@shout.net>
10142
10143         * dwarfread.c: Add documentation on the state of dwarf-1,
10144         looking towards obsoletion.
10145
10146 2003-02-03  Michael Chastain  <mec@shout.net>
10147
10148         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10149         gdb/testsuite/gdb.c++/pr-1023.exp.
10150
10151 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10152
10153         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10154         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10155
10156         * utils.c (init_page_info): Delete reference to MPW in comments.
10157         * main.c (captured_main): Delete #ifdef MPW.
10158
10159 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10160
10161         * NEWS: Note that the m32r-*-elf* is obsolete.
10162         * monitor.c (monitor_expect): Obsolete reference to m32r.
10163         * configure.tgt: Mark m32r-*-elf* as obsolete.
10164         * MAINTAINERS: Mark m32k as obsolete.
10165         * m32r-rom.c: Obsolete file.
10166         * config/m32r/m32r.mt: Obsolete file.
10167         * config/m32r/tm-m32r.h: Obsolete file.
10168         * m32r-stub.c: Obsolete file.
10169         * m32r-tdep.c: Obsolete file.
10170
10171 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10172
10173         * NEWS: Mention that the z8k-zilog-none is obsolete.
10174         * MAINTAINERS: Mark z8k as obsolete.
10175         * configure.tgt: Obsolete the z8k-*-coff* target.
10176         * config/z8k/z8k.mt: Obsolete file.
10177         * config/z8k/tm-z8k.h: Obsolete file.
10178         * z8k-tdep.c: Obsolete file.
10179
10180 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10181
10182         * NEWS: Mention that the mn10200-elf is obsolete.
10183         * configure.tgt: Obsolete mn10200-*-* target.
10184         * breakpoint.c (update_breakpoints_after_exec): Update comment to
10185         mention that the mn10200 is obsolete.
10186         * breakpoint.h: Ditto.
10187         * MAINTAINERS: Mark the mn10200-elf as obsolete.
10188         * config/mn10200/mn10200.mt: Obsolete file.
10189         * config/mn10200/tm-mn10200.h: Obsolete file.
10190         * mn10200-tdep.c: Obsolete file.
10191
10192 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10193
10194         * MAINTAINERS: Mark h8500 as obsolete.
10195         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10196         * findvar.c (value_from_register): Ditto.
10197         * h8500-tdep.c: Mark file as obsolete.
10198         * config/h8500/h8500.mt: Ditto.
10199         * config/h8500/tm-h8500.h: Ditto.
10200         * NEWS: Mention that h8500 is obsolete.
10201
10202 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10203
10204         * objfiles.c (allocate_objfile): Always set name.  Add comment at
10205         start of function.
10206         * jv-lang.c (get_dynamics_objfile): Add comment.
10207
10208 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10209
10210         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10211         * printcmd.c (build_address_symbolic): Replace uses of
10212         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10213         SYMBOL_NAME, and asm_demangle.
10214         Update copyright.
10215
10216 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10217
10218         * linespec.c (decode_compound): Extract code into
10219         lookup_prefix_sym.
10220         (lookup_prefix_sym): New function.
10221
10222 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10223
10224         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10225         FLOAT_COERCION_BADNESS.
10226         * gdbtypes.c (rank_one_type): Replace all uses of
10227         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10228
10229 2003-02-04  Jim Blandy  <jimb@redhat.com>
10230
10231         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10232         section, let dwarf_macinfo_section point to it, not
10233         dwarf_loc_section.
10234
10235 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10236
10237         Pointed out by Anton Blanchard <anton@samba.org>.
10238         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10239         (ppc_linux_at_sigtramp_return_path): Use it.
10240
10241 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10242
10243         * defs.h (streq): Add prototype.
10244         * utils.c (streq): New function.
10245
10246         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10247         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10248         * mdebugread.c (new_symbol): Likewise.
10249         * stabsread.c (define_symbol): Likewise.
10250         * coffread.c (process_coff_symbol): Likewise.
10251         * dwarfread.c (new_symbol): Likewise.
10252
10253         * minsyms.c (prim_record_minimal_symbol_and_info): Use
10254         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
10255         here.
10256         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10257         SYMBOL_INIT_DEMANGLED_NAME.
10258         * objfiles.c: Include "hashtab.h".
10259         (allocate_objfile): Call htab_set_functions_ex for the
10260         demangled_names_hash.
10261         (free_objfile): Call htab_delete for the demangled_names_hash.
10262         * objfiles.h (struct htab): Add declaration.
10263         (struct objfile): Add demangled_names_hash.
10264         * symfile.c: Include "hashtab.h".
10265         (reread_symbols): Call htab_delete for the demangled_names_hash.
10266         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10267         SYMBOL_NAME in the bcache.
10268         * symtab.c: Include "hashtab.h".  Update comments.
10269         (create_demangled_names_hash, symbol_set_names): New functions.
10270         (symbol_find_demangled_name): New function, broken out from
10271         symbol_init_demangled_names.
10272         (symbol_init_demangled_names): Use it.
10273         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10274         (SYMBOL_SET_NAMES): New macro.
10275         (symbol_set_names): Add prototype.
10276
10277 2003-02-03  Jim Blandy  <jimb@redhat.com>
10278
10279         Use a single, consistent representation for an empty minimal
10280         symbol table in an objfile.
10281         * objfiles.c (terminate_minimal_symbol_table): New function.
10282         (allocate_objfile): Call it.
10283         * objfiles.h (terminate_minimal_symbol_table): New declaration.
10284         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10285         non-NULL.
10286         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10287         objfile has minimal symbols, compare minimal_symbol_count to zero,
10288         instead of comparing msymbols with NULL.
10289         * objfiles.c (have_minimal_symbols): Same.
10290         * solib-sunos.c (solib_add_common_symbols): Call
10291         terminate_minimal_symbol_table.
10292         * symfile.c (reread_symbols): Same.
10293
10294 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
10295
10296         * s390-tdep.c (s390_address_class_type_flags)
10297         (s390_address_class_type_flags_to_name)
10298         (s390_address_class_name_to_type_flags): New functions.
10299         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10300         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10301
10302 2003-02-03  Michael Snyder  <msnyder@redhat.com>
10303
10304         * arm-tdep.c: Fix spell-o in comment.
10305
10306 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
10307
10308         * dwarf2cfi.c (pointer_encoding): Added new parameter.
10309         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10310         error messages to contain BFD filename.
10311
10312 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
10313
10314         Fix PR gdb/742 gdb/743 gdb/877
10315         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10316         (do_mixed_source_and_assembly): Use
10317         make_cleanup_ui_out_tuple_begin_end and
10318         make_cleanup_ui_out_tuple_begin_end.
10319         (do_mixed_source_and_assembly): Ditto.
10320         * thread.c (do_captured_list_thread_ids): Ditto.
10321         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10322         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10323         ui_out_tuple_end): Delete prototypes.
10324         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10325         ui_out_list_end, ui_out_tuple_end): Delete.
10326
10327         From Kevin Buettner  <kevinb@redhat.com>:
10328         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10329         * ui-out.c (make_cleanup_ui_out_table_begin_end)
10330         (do_cleanup_table_end):  New functions.
10331         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10332         Use cleanups to invoke_ui_out_tuple_end().
10333         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10334         * cli/cli-setshow.c (cmd_show_list): Use
10335         make_cleanup_ui_out_tuple_begin_end.
10336
10337 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10338
10339         * frame.c (frame_unwind_register): New function.
10340         (frame_unwind_unsigned_register): Use.
10341         (frame_unwind_signed_register): Use.
10342         (frame_read_register): New function.
10343         * frame.h (frame_unwind_register): Declare.
10344         (frame_read_register): Declare.
10345
10346         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10347         and frame_unwind_register instead of read_memory, write_register
10348         and deprecated_write_register_bytes.
10349
10350 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10351
10352         * frame.h: Note that namelen can be negative.
10353         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10354         NAME's length.
10355
10356         * NEWS: Mention that the d10v's `regs' command is deprecated.
10357         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10358         (d10v_print_registers_info): New function.
10359         (show_regs): Call d10v_print_registers_info.
10360         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10361
10362 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
10363
10364         * stack.c (print_frame_info): Restore call to annotate_frame_begin
10365         lost in the previous patch.
10366
10367 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10368
10369         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10370         * stack.c (print_frame_info_base): Output complete FRAME tuple
10371         for synthesized frames.
10372
10373 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10374
10375         * mips-nat.c (zerobuf): Delete.
10376         (fetch_inferior_registers): Alloc local zerobuf.
10377         (fetch_core_registers): Alloc local zerobuf.
10378         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10379         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10380         * thread-db.c (thread_db_store_registers): Ditto.
10381         * sh-tdep.c (sh_do_register): Ditto.
10382         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10383         * remote-sim.c (gdbsim_store_register): Ditto.
10384         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10385         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10386         * monitor.c (monitor_supply_register): Ditto.
10387         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10388         * mips-nat.c (fetch_inferior_registers): Ditto.
10389         * m68klinux-nat.c (fetch_register): Ditto.
10390         * lynx-nat.c (fetch_inferior_registers): Ditto.
10391         (fetch_inferior_registers): Ditto.
10392         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10393         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10394         (hpux_thread_store_registers): Ditto.
10395         * hppah-nat.c (fetch_register): Ditto.
10396         * hppab-nat.c (fetch_register): Ditto.
10397         * hppa-tdep.c (pa_register_look_aside): Ditto.
10398         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10399         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10400
10401 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10402
10403         * gdbarch.sh: Explictly specify all method levels.  When a
10404         variable with an empty level, provide a non-multi-arch default.
10405         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10406         * gdbarch.h: Re-generate.
10407         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
10408         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10409
10410 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10411
10412         * defs.h (host_pointer_to_address): Delete declaration.
10413         (address_to_host_pointer): Delete declaration.
10414         * utils.c (host_pointer_to_address): Delete function.
10415         (address_to_host_pointer): Delete function.
10416         * procfs.c (procfs_address_to_host_pointer): New function.
10417         * procfs.c (proc_set_watchpoint): Use.
10418         (procfs_can_use_hw_breakpoint): Update comments.
10419         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10420         (som_solib_add): Use.
10421         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10422         * hppa-tdep.c (unwind_command): Use.
10423
10424 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10425
10426         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10427         strlen d_name.
10428
10429         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10430         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10431         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10432         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10433         (define_symbol): Update.
10434         * symfile.c (generic_load): Remove references to nindy.
10435         * symtab.c: Remove references to nindy.
10436
10437 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10438
10439         * infcmd.c (print_float_info): Delete code conditional on
10440         FLOAT_INFO.
10441         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
10442         * config/m68k/nm-apollo68b.h: Ditto.
10443         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
10444         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10445         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10446
10447 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
10448
10449         * config/i386/tm-i386os9k.h: Removed.
10450
10451         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10452         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10453         they're identical to i[3456]86-*-sysv* now.
10454         * config/i386/i386v32.mh: Removed.
10455         * config/i386/xm-i386v32.h: Removed.
10456         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10457
10458         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10459
10460         * config/i386/i386dgux.mh: Removed.
10461         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10462
10463         * configure.in: Fix typo.
10464         * configure: Regenerated.
10465
10466 2003-01-31  David Carlton  <carlton@math.stanford.edu>
10467
10468         * dwarf2read.c (dwarf2_locate_sections): Set
10469         dwarf_ranges_section.
10470
10471 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10472
10473         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10474         * utils.c: Update comments documenting legitimate uses of PTR.
10475
10476         * utils.c: Re-indent.
10477
10478         * config/djgpp/fnchange.lst: Delete nindy files.
10479         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10480         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10481         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10482         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10483         * nindy-share/README, nindy-share/Onindy.c: Delete files.
10484         * nindy-tdep.c, nindy-share/Makefile: Delete files.
10485         * Makefile.in (init.c): Remove nindy references.
10486         (saber_gdb): Delete rule.
10487         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10488         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10489         and a68v-nat.c.
10490         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10491         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10492         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10493         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10494         nindy-share/stop.h.
10495         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10496         * saber.suppress: Delete file.
10497
10498 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
10499
10500         * dbxread.c (stabs_data): New static variable.
10501         (fill_symbuf): Support an in-memory buffer for stabs data.
10502         (stabs_seek): New function.
10503         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10504         (read_ofile_symtab): Use stabs_seek.
10505         (elfstab_build_psymtabs): Take an asection* instead of
10506         an offset and size.  Relocate the stabs data if necessary.
10507         Save the section* for dbx_psymtab_to_symtab.
10508         * dwarf2read.c: Add section variables for each debug section.
10509         (dwarf2_locate_sections): Fill them in.
10510         (dwarf2_read_section): Take an asection* argument.
10511         Relocate the section contents if necessary.
10512         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10513         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10514         it to dwarf2_read_section.
10515         (dwarf2_build_frame_info): Update callers.
10516         * elfread.c (elf_symfile_read): Update call to
10517         elfstab_build_psymtabs.
10518         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10519         (DBX_STAB_SECTION): New macro.
10520         * stabsread.h (elfstab_build_psymtabs): Update prototype.
10521         * symfile.c (symfile_dummy_outputs): New function.
10522         (symfile_relocate_debug_section): New function.
10523         * symfile.h (symfile_relocate_debug_section): Add prototype.
10524
10525 2003-01-31  Richard Henderson  <rth@redhat.com>
10526
10527         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10528         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
10529         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10530         * alpha-tdep.c (alpha_register_name): Add "unique".
10531         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10532         (ALPHA_UNIQUE_REGNUM): New.
10533         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10534
10535 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10536
10537         * README: Remove reference to Ericsson 1800 monitor.
10538         * Makefile.in (remote-es.o): Delete rule.
10539         (ALLDEPFILES): Delete remote-es.c.
10540         * remote-es.c: Delete file.
10541         * config/m68k/es1800.mt: Delete file.
10542         * config/djgpp/fnchange.lst: Update.
10543         * configure.tgt: Delete m68*-ericsson-* target.
10544
10545 2003-01-31  Adam Fedor  <fedor@gnu.org>
10546
10547         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10548         Remove duplicate/shadowing variable of same name.
10549
10550 2003-01-30  Jim Blandy  <jimb@redhat.com>
10551
10552         * symfile.c (find_separate_debug_file): Assert that the objfile's
10553         directory name we compute ends with a slash, and then assume that
10554         that's so everywhere we use it.
10555
10556 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
10557
10558         * valops.c (value_assign): Flush frame cache after stores to memory
10559         also.
10560
10561 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10562
10563         * Makefile.in (mon960-rom.o): Delete rule.
10564         * mon960-rom.c: Delete file.
10565
10566 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10567
10568         * d10v-tdep.c: Include "frame-unwind.h".
10569         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10570         list.
10571         (next_addr, uses_frame): Delete.
10572         (struct d10v_unwind_cache): Define.
10573         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10574         Use info instead of next_addr and uses_frame globals.
10575         (d10v_frame_init_saved_regs): Delete function.
10576         (d10v_init_extra_frame_info): Delete function.
10577         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10578         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10579         init_frame_pc or frame_saved_pc.
10580         (d10v_pop_frame): Delete function.
10581         (do_d10v_pop_frame): Delete function.
10582         (d10v_frame_chain): Delete function.
10583         (d10v_frame_chain_valid): Delete function.
10584         (d10v_frame_pc_unwind): New function.
10585         (d10v_frame_id_unwind): New function.
10586         (saved_regs_unwinder): New function.
10587         (d10v_frame_register_unwind): New function.
10588         (d10v_frame_pop): New function.
10589         (d10v_frame_unwind): New variable.
10590         (d10v_frame_p): New function.
10591         (d10v_frame_saved_pc): Delete function.
10592         * Makefile.in (d10v-tdep.o): Update dependencies.
10593
10594 2003-01-30  J. Brobecker  <brobecker@gnat.com>
10595
10596         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10597         causing some regressions due to a change in the default value
10598         for this macro.
10599
10600 2003-01-29  Richard Henderson  <rth@redhat.com>
10601             Elena Zannoni  <ezannoni@redhat.com>
10602             Daniel Jacobowitz  <drow@mvista.com>
10603
10604         Fix PR gdb/961.
10605         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
10606         variables.
10607         (RANGES_SECTION): New.
10608         (dwarf_ranges_buffer): New variable.
10609         (struct comp_unit_head): Add member "die".
10610         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10611         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10612         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10613         (dwarf2_locate_sections): Likewise.
10614         (dwarf2_build_psymtabs): Read .debug_ranges.
10615         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10616         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
10617         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10618         Look for DW_AT_ranges and return the bounding box.
10619
10620 2003-01-29  Brian Ford <ford@vss.fsi.com>
10621
10622         * win32-nat.c (cygwin_pid): Removed as unused.
10623         (child_attach): Try fall back to Cygwin pid.
10624
10625 2003-01-29  Jim Blandy  <jimb@redhat.com>
10626
10627         * objfiles.h (struct objfile): Doc fix.
10628
10629 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
10630
10631         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10632         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10633         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10634         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10635         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10636         (FRAME_SAVED_PC): Change to a function with predicate.
10637         * gdbarch.h, gdbarch.c: Re-generate.
10638
10639 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
10640
10641         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10642
10643         * complaints.c (complain): Delete function.
10644         * complaints.h (struct deprecated_complaint): Delete definition.
10645         (complain): Delete declaration.
10646
10647 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
10648
10649         * mips-tdep.c (mips_init_extra_frame_info): Return early for
10650         dummy frames.
10651
10652 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
10653
10654         * sentinel-frame.h, sentinel-frame.c: New files.
10655         * Makefile.in (frame.o): Update dependencies.
10656         (SFILES): Add sentinel-frame.c.
10657         (sentinel_frame_h): Define.
10658         (COMMON_OBS): Add sentinel-frame.o.
10659         (sentinel-frame.o): Specify dependencies.
10660         * frame.c: Include "sentinel-frame.h".
10661         (frame_register_unwind): Rewrite assuming that there is always a a
10662         ->next frame.
10663         (frame_register, generic_unwind_get_saved_register): Ditto.
10664         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10665         (create_sentinel_frame, unwind_to_current_frame): New functions.
10666         (get_current_frame): Rewrite using create_sentinel_frame and
10667         unwind_to_current_frame.  When possible, always create a frame.
10668         (create_new_frame): Set next to the sentinel frame.
10669         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
10670         (deprecated_update_frame_pc_hack): Update the next frame's PC and
10671         ID cache when necessary.
10672         (frame_saved_regs_id_unwind): Use frame_relative_level.
10673         (deprecated_generic_get_saved_register): Use frame_relative_level,
10674         get_frame_saved_regs, get_frame_pc, get_frame_base and
10675         get_next_frame.
10676         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10677         frame_register.
10678
10679 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10680
10681         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10682
10683 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10684
10685         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10686         (maintenance_set_profile_cmd): Use error () instead of warning ().
10687
10688 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10689
10690         * configure.in: Check that -pg works if using --enable-profiling.
10691         Check for monstartup and _mcleanup regardless of --enable-profiling.
10692         * maint.c: Check for monstartup and _mcleanup before using them.
10693         * config.in: Regenerated.
10694         * configure: Regenerated.
10695
10696 2003-01-24  Nick Clifton  <nickc@redhat.com>
10697
10698         * Add sh2e support:
10699
10700         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
10701
10702                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10703                 (sh2e_show_regs): New.
10704                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10705                 * config/sh/tm-sh.h: Added sh2e to comments.
10706
10707 2003-01-23  Jim Blandy  <jimb@redhat.com>
10708
10709         * symfile.c (syms_from_objfile): Don't print the "(no debugging
10710         symbols found)" message here; we haven't checked for a separate
10711         debug info file yet, so we don't know yet.
10712         (symbol_file_add_with_addrs_or_offsets): Print it here, after
10713         we've looked everywhere.  Also, there's no need to print a special
10714         message when we're loading the separate debug info file: the one
10715         symbol_file_add prints is fine.
10716
10717 2003-01-23  Alexander Larsson <alexl@redhat.com>
10718             Jim Blandy  <jimb@redhat.com>
10719
10720         Add support for executables whose debug info has been separated
10721         out into a separate file, leaving only a link behind.
10722         * objfiles.h (struct objfile): New fields: separate_debug_objfile
10723         and separate_debug_objfile_backlink.
10724         (put_objfile_before): New declaration.
10725         * symfile.c: #include "filenames.h".
10726         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10727         debug info in a separate file, read that, too. Save the addrs
10728         argument, so we can use it again to read the separated debug info;
10729         syms_from_objfile modifies the table we pass it.
10730         (reread_symbols): After re-reading an objfile, call
10731         reread_separate_symbols to refresh its separate debug info
10732         objfile, if it has one.
10733         (reread_separate_symbols, find_separate_debug_file,
10734         get_debug_link_info, separate_debug_file_exists): New functions.
10735         (debug_file_directory): New global var.
10736         (_initialize_symfile): Initialize debug_file_directory, and
10737         provide the new `set debug-file-directory' command to let the user
10738         change it.
10739         * objfiles.c (free_objfile): If this objfile has its debug info in
10740         a separate objfile, free that one too.  If this is itself a
10741         separate debug info objfile, clear our parent's backlink.
10742         (put_objfile_before): New function.
10743         * utils.c (gnu_debuglink_crc32): New function.
10744         * defs.h (gnu_debuglink_crc32): New declaration.
10745         * Makefile.in (symfile.o): Note dependency on "filenames.h".
10746         * configure.in: Handle --with-separate-debug-dir config option.
10747         * acinclude.m4 (AC_DEFINE_DIR): New macro.
10748         * acconfig.h (DEBUGDIR): New macro.
10749         * configure, aclocal.m4, config.in: Regenerated.
10750
10751 2003-01-22  Jim Blandy  <jimb@redhat.com>
10752
10753         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10754         like the old symbol_file_add, but taking new arguments: you can
10755         now pass in either a `struct section_addr_info' list to say where
10756         each section is loaded, or a `struct section_offsets' table.  Pass
10757         these new arguments through to syms_from_objfile as appropriate.
10758         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10759         with the appropriate quiescent values for the new arguments.
10760
10761         * symfile.c: #include "gdb_assert.h".
10762         (syms_from_objfile): Add the ability to pass in a section offset
10763         table directly, as an alternative to the section_addr_info table.
10764         Document arguments better.
10765         (symbol_file_add): Pass extra arguments to syms_from_objfile.
10766         * symfile.h (syms_from_objfile): Update declaration.
10767         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10768         syms_from_objfile.
10769         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10770
10771 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
10772
10773         Original patch by Tom Tromey <tromey@cygnus.com> and
10774         Jason Molenda <jmolenda@apple.com>.
10775         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10776         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10777         * NEWS: Mention profiling.
10778         * configure.in (--enable-gdbtk): Fix typo.
10779         (--enable-profiling): New.  Set PROFILE_CFLAGS.
10780         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10781         Fill in function.
10782         (profiling_state): New variable.
10783         (mcleanup_wrapper): New function.
10784         (_initialize_maint): Remove NOTYET, fix call to
10785         add_setshow_boolean_cmd for "maint set profile".
10786         * configure: Regenerated.
10787
10788 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
10789
10790         * Makefile.in (install-gdbtk): Install PNG images too.
10791
10792 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10793
10794         * exec.c (text_start): Delete global variable.
10795         (exec_file_attach): Make text_start local to the function.
10796         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10797         * valops.c (hand_function_call): Delete code that handles
10798         BEFORE_TEXT_END and AFTER_TEXT_END.
10799         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10800         of CALL_DUMMY_LOCATION.
10801         * gdbarch.c: Regenerate.
10802         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10803         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10804         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10805         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10806         (text_end): Delete extern declaration.
10807
10808 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10809
10810         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10811         * blockframe.c (backtrace_below_main): Move to "frame.c".
10812         (frame_chain_valid): Delete check for backtrace_below_main.
10813         (_initialize_blockframe): Delete initialization, move ``set
10814         backtrace-below-main'' command to "frame.c".
10815         (do_flush_frames_sfunc): Delete function.
10816         * frame.c: Include "command.h" and "gdbcmd.h".
10817         (frame_type_from_pc): New function.
10818         (create_new_frame): Use frame_type_from_pc.
10819         (legacy_get_prev_frame): New function.
10820         (get_prev_frame): Rewrite.  When an old style frame, call
10821         legacy_get_prev_frame.  Otherwize, unwind the PC first.
10822         (_initialize_frame): Add ``set backtrace-below-main'' command.
10823         * Makefile.in (frame.o): Update dependencies.
10824
10825 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10826
10827         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10828         DEPRECATED_REGISTERS_INFO.
10829
10830 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10831
10832         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10833         Maintainers'.  Update `Various Maintainers'.
10834
10835 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10836
10837         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10838         * gdbarch.sh (POP_FRAME): Change to function with predicate.
10839         Suppress actual parameters when `-'.
10840         * gdbarch.h, gdbarch.c: Regenerate.
10841
10842 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10843
10844         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10845         code handling dummy frames.
10846
10847 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10848
10849         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10850         (struct frame_unwind): Add field pop.
10851         * frame.h (frame_pop): Declare.
10852         * frame.c (frame_saved_regs_pop): New function.
10853         (trad_frame_unwinder): Add frame_saved_regs_pop.
10854         (frame_pop): New function.
10855         * dummy-frame.c (dummy_frame_pop): New function.
10856         (discard_innermost_dummy): New function.
10857         (generic_pop_dummy_frame): Use discard_innermost_dummy.
10858         (dummy_frame_unwind): Add dummy_frame_pop.
10859         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10860         * valops.c (hand_function_call): Ditto.
10861         * stack.c (return_command): Ditto.
10862
10863 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10864
10865         * cris-tdep.c: Fix function declaration indentation.
10866         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10867         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10868         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10869         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10870         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10871         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10872
10873 2003-01-18  Michael Chastain  <mec@shout.net>
10874
10875         * README (Unpacking and Installation -- quick overview):
10876         Warn against ".../gdb-5.3/gdb/configure".
10877
10878 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10879
10880         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10881         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10882         (struct frame_unwind): Declare opaque.
10883         (dummy_frame_p): Declare function.
10884         * dummy-frame.c (dummy_frame_id_unwind): Make static.
10885         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10886         * dummy-frame.c: Include "frame-unwind.h".
10887         (dummy_frame_p): New function.
10888         (dummy_frame_unwind): New variable.
10889         * frame.c: Include "frame-unwind.h".
10890         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10891         to use the new unwind field.
10892         (set_unwind_by_pc): Delete function.
10893         (create_new_frame, get_prev_frame): Set unwind field using
10894         frame_unwind_find_by_pc.
10895         (trad_frame_unwind, trad_frame_unwinder): New variables.
10896         * frame.h (trad_frame_unwind): Declare variable.
10897         (frame_id_unwind_ftype): Delete declaration.
10898         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10899         (struct frame_unwind): Declare opaque.
10900         (struct frame_info): Replace the fields id_unwind, pc_unwind and
10901         register_unwind with a single unwind pointer.
10902         * frame-unwind.h, frame-unwind.c: New files.
10903         * Makefile.in (SFILES): Add frame-unwind.c.
10904         (frame_unwind_h): Define.
10905         (COMMON_OBS): Add frame-unwind.o.
10906         (frame-unwind.o): Specify dependencies.
10907         (frame.o, dummy-frame.o): Update dependencies.
10908
10909 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10910
10911         * ada-valprint.c: Eliminate PTR.
10912         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10913         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10914         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10915         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10916         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10917         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10918         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10919
10920 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
10921
10922         * main.c (captured_main): Don't use PTR.
10923         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10924         * gdbtypes.c (lookup_primitive_typename): Ditto.
10925         (lookup_struct_elt_type): Ditto.
10926         * f-valprint.c (info_common_command): Ditto.
10927         (list_all_visible_commons): Ditto.
10928         * jv-typeprint.c (java_type_print_base): Ditto.
10929
10930         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10931         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10932         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
10933         i386-interix-nat.c and i386-interix-tdep.c.  Rename
10934         m68klinux-nat.c and m68klinux-tdep.c.  Rename
10935         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
10936         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
10937         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10938         * main.c (captured_main): Use xfree, not free.
10939
10940 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
10941
10942         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10943         ID back using a parameter.
10944         * frame.c (frame_id_unwind): Update call.
10945         (frame_saved_regs_id_unwind): Update.
10946         * dummy-frame.c (dummy_frame_id_unwind): Update function.
10947         * dummy-frame.h (struct frame_id): Add opaque declaration.
10948         (dummy_frame_id_unwind): Update declaration.
10949
10950 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
10951
10952         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10953
10954 2003-01-15  Stephen P. Smith <ischis2@cox.net>
10955
10956         * MAINTAINERS (Stephen P. Smith): Updated email address.
10957
10958 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
10959
10960         Fix PR gdb/898
10961         * breakpoint.c (until_break_command): Add new argument.  Use it to
10962         decide whether to stop only at the current frame or not.
10963         * breakpoint.h (until_break_command): Update prototype.
10964         * infcmd.c (until_command): Add new argument to until_break_command
10965         call.
10966         (advance_command): New function.
10967         (_initialize_infcmd): Update help string for 'until' command.
10968         Add new 'advance' command.
10969
10970 2003-01-14  David Carlton  <carlton@math.stanford.edu>
10971
10972         * linespec.c (decode_line_1): Normalize comments.
10973         (set_flags): Ditto.
10974         (locate_first_half): Ditto.
10975         (decode_compound): Ditto.
10976         (symtab_from_filename): Ditto.
10977         (decode_all_digits): Ditto.
10978         (decode_dollar): Ditto.
10979         (find_methods): Ditto.
10980         (find_toplevel_char): Ditto.
10981
10982 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
10983
10984         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10985         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10986         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10987         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10988         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10989         * language.c, language.h, m32r-tdep.c: Update copyright.
10990         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10991         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10992         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10993         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10994         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10995         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10996
10997 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
10998
10999         * stabsread.h (process_later, resolve_cfront_continuation):
11000         Obsolete.
11001         Update copyright years.
11002         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11003         Update copyright year.
11004         * dbxread.c(struct cont_elem): Obsolete.
11005         (process_later, process_now): Obsolete functions.
11006         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11007         Update copyright year.
11008         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11009         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11010         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11011         (parse_partial_symbols): Obsolete cfront support.
11012         * stabsread.c
11013         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11014         macros.
11015         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11016         read_cfront_baseclasses, read_cfront_member_functions,
11017         resolve_cfront_continuation,read_cfront_static_fields,
11018         copy_cfront_struct_fields): Obsolete functions.
11019         (define_symbol, read_one_struct_field): Obsolete cfront support.
11020         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11021         Update Copyright year.
11022
11023 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
11024
11025         * stack.c (print_frame_info, print_stack_frame_base_stub,
11026         print_stack_frame_base, show_and_print_stack_frame_stub,
11027         show_and_print_stack_frame, print_only_stack_frame_stub,
11028         print_only_stack_frame): Delete functions.
11029         (print_stack_frame_stub): Call print_frame_info instead of
11030         print_frame_info_base.
11031         (print_frame_info_base): Rename to print_frame_info.
11032         (backtrace_command_1): Call print_frame_info, instead of
11033         print_frame_info_base.
11034         (current_frame_command): Call print_stack_frame, instead of
11035         print_only_stack_frame.
11036         (frame_command): Call print_stack_frame, instead of
11037         show_and_print_stack_frame.
11038         (up_command): Ditto.
11039         (down_command): Ditto.
11040         * frame.h (print_only_stack_frame): Delete prototype.
11041         * infrun.c (normal_stop): Call print_stack_frame, instead of
11042         show_and_print_stack_frame.
11043         * thread.c (info_threads_command): Call print_stack_frame, instead
11044         of print_only_stack_frame.
11045
11046 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11047
11048         * README (Graphical interface to GDB): Update URL.  Point at
11049         gdb/links/.
11050
11051         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
11052         version match.
11053
11054 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11055
11056         * symtab.c (find_pc_sect_line): Don't consider end-of-function
11057         lines.
11058
11059 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11060
11061         * thread-db.c (attach_thread): Prototype.
11062         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
11063         thread information (ti), and valid flags (th_valid, ti_valid).
11064         (attach_thread): Move target_pid_to_str call to after the thread
11065         is added to GDB's list.  Initialize the cache.
11066         (thread_get_info_callback, thread_db_map_id2thr)
11067         (thread_db_get_info): New functions.
11068         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11069         (thread_db_store_registers, thread_db_thread_alive)
11070         (thread_db_get_thread_local_address): Use them.
11071         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
11072         of calling error() for threads in unknown state.
11073
11074         (clear_lwpid_callback): New function.
11075         (thread_db_resume): Use it to clear the cache.
11076
11077 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11078
11079         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11080         (resume_callback): Remove dead code.
11081
11082 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11083
11084         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11085         predicate.
11086         * gdbarch.h, gdbarch.c: Regenerate.
11087         * stack.c (frame_info): Only initialize the saved registers when
11088         FRAME_INIT_SAVED_REGS_P.
11089         * frame.c (frame_saved_regs_register_unwind): Assert
11090         FRAME_INIT_SAVED_REGS_P.
11091         (deprecated_generic_get_saved_register): Ditto.
11092
11093 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11094
11095         * source.c (openp): Squelch warning about "filename".
11096
11097 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11098
11099         * source.c (openp): If the file does not exist don't necessarily
11100         search the path.
11101
11102 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11103
11104         Fix PR gdb/872.
11105         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11106         (integer_types_same_name_p): New function.
11107         (rank_one_type): Use it.
11108         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11109
11110 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11111
11112         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11113         variables.
11114         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11115         * configure.in: Add --with-sysroot.
11116         * configure: Regenerated.
11117         * main.c (gdb_sysroot): New variable.
11118         (captured_main): Initialize gdb_sysroot.
11119         * defs.h (gdb_sysroot): New extern declaration.
11120         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11121
11122 2003-01-12  Michael Chastain  <mec@shout.net>
11123
11124         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11125
11126 2003-01-12  Michael Chastain  <mec@shout.net>
11127
11128         * top.c (print_gdb_version): Bump copyright year to 2003.
11129
11130 2003-01-12  David Carlton  <carlton@bactrian.org>
11131
11132         * linespec.c (symtab_from_filename): Rename variable 's' to
11133         'file_symtab'.
11134
11135 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11136
11137         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11138         dummy frame.
11139         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11140
11141 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11142
11143         * d10v-tdep.c: Include "gdb_assert.h".
11144         (d10v_store_return_value): Rewrite to match current interface.
11145         (d10v_extract_struct_value_address): Ditto.
11146         (d10v_extract_return_value): Ditto.
11147         (d10v_gdbarch_init): Set store_restore_value,
11148         extract_struct_value_address and extract_return_value.
11149
11150 2003-01-12  J. Brobecker  <brobecker@gnat.com>
11151
11152         * hpread.c (set_namestring): New procedure replacing the
11153         SET_NAMESTRING macro.
11154         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11155         by calls to set_namestring.
11156
11157 2003-01-11  J. Brobecker  <brobecker@gnat.com>
11158
11159         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11160         a compilation warning.
11161         (hpread_process_one_debug_symbol): Likewise.
11162
11163 2003-01-10  David Carlton  <carlton@math.stanford.edu>
11164
11165         * linespec.c (decode_line_1): Rename variable 's' to
11166         'file_symtab'.
11167         (decode_all_digits): Rename argument 's' to 'file_symtab'.
11168         (decode_dollar): Ditto.
11169         (decode_variable): Ditto.
11170         (symbol_found): Ditto.
11171
11172 2003-01-09  Michael Chastain  <mec@shout.net>
11173
11174         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11175
11176 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
11177
11178         * win32-nat.c (set_process_privilege): New function.
11179         (child_attach): Call set_process_privilege() to enable the
11180         SE_DEBUG_NAME user privilege if available in process token.
11181
11182 2003-01-10  J. Brobecker  <brobecker@gnat.com>
11183
11184         * hpread.c (hpread_process_one_debug_symbol): Fix a small
11185         compilation error in the previous revision.
11186
11187 2003-01-09  David Carlton  <carlton@math.stanford.edu>
11188
11189         * linespec.c: Update copyright.
11190
11191 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
11192
11193         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11194         than inferior_ptid.
11195         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11196
11197 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
11198
11199         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11200         Update comments.
11201         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11202         (frame_saved_regs_zalloc): Update.
11203         (frame_saved_regs_register_unwind): Update.
11204         (create_new_frame): Update.
11205         (get_prev_frame): Update.
11206         (frame_extra_info_zalloc): Update.
11207         (deprecated_get_frame_saved_regs): Update.
11208         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11209         * cris-tdep.c: Update comment.
11210
11211         * somsolib.h: Fix function indentation.
11212         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11213         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11214         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11215         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11216         * somsolib.c, inftarg.c: Remove assignment in if conditional.
11217
11218         * infrun.c (follow_fork): Use ISO C definition.
11219         * expprint.c (print_subexp): Use xfree instead of free.
11220         * charset.c: Include "gdb_string.h" instead of <string.h>.
11221         (register_iconv_charsets): Use ISO C definition.
11222         (host_charset, target_charset): Ditto.
11223         * Makefile.in (charset.o): Update dependencies.
11224         (mi-cmd-env.o): Update dependencies.
11225
11226 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11227
11228         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11229         get_frame_base.
11230
11231 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11232
11233         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
11234         build directories.  Save edited gdb output in Mbuild.log.  If a
11235         build fails, remove any final GDB executable.
11236
11237 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11238
11239         * gdb_mbuild.sh: Edit the output of `maint print architecture'
11240         replacing hex constants with function names and stripping leading
11241         file name directory prefixes.
11242
11243 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11244
11245         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11246         get_frame_base.
11247
11248 2003-01-08  David Carlton  <carlton@math.stanford.edu>
11249
11250         * linespec.c (decode_line_1): Move code into decode_variable.
11251         (decode_variable): New function.
11252
11253 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11254
11255         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11256
11257 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11258
11259         * cris-tdep.c (cris_frame_init_saved_regs): Use
11260         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11261         saved_regs buffer.
11262         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11263         (sh64_nofp_frame_init_saved_regs): Ditto.
11264         (sh_fp_frame_init_saved_regs): Ditto.
11265         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11266         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11267         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11268         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11269
11270 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
11271
11272         * minsyms.c (lookup_minimal_symbol): Update comment.
11273         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
11274         (lookup_minimal_symbol_solib_trampoline): Likewise.
11275
11276 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11277
11278         * d10v-tdep.c (d10v_init_extra_frame_info): Use
11279         frame_relative_level.
11280
11281         * alpha-tdep.c: Use get_frame_extra_info.
11282         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11283         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11284         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11285         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11286
11287         * alpha-tdep.c: Use get_next_frame.
11288         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11289         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11290         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11291         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11292         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11293         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11294         * xstormy16-tdep.c: Ditto.
11295
11296 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11297
11298         * alpha-tdep.c: Use get_frame_base.
11299         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11300         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11301         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11302         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11303         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11304         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11305         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11306         * config/sparc/tm-sparc.h: Ditto.
11307
11308 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11309
11310         * frame.c (deprecated_get_frame_context): New function.
11311         (deprecated_set_frame_context): New function.
11312         * frame.h (deprecated_get_frame_context): Declare.
11313         (deprecated_set_frame_context): Declare.
11314         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11315         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11316
11317 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11318
11319         * frame.c (deprecated_set_frame_next_hack): New function.
11320         (deprecated_set_frame_prev_hack): New function.
11321         * frame.h (deprecated_set_frame_next_hack): Declare.
11322         (deprecated_set_frame_prev_hack): Declare.
11323         * mcore-tdep.c (analyze_dummy_frame): Use
11324         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11325         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11326
11327 2003-01-07  David Carlton  <carlton@math.stanford.edu>
11328
11329         * linespec.c (decode_line_1): Move code into decode_dollar.
11330         (decode_dollar): New function.
11331
11332 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11333
11334         * arm-tdep.c (arm_init_extra_frame_info): Use
11335         deprecated_update_frame_base_hack.
11336         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11337         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11338         (fix_frame_pointer): Ditto.
11339         (mn10300_analyze_prologue): Ditto.
11340
11341 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11342
11343         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11344         extra_info using frame_extra_info_zalloc.
11345         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11346         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11347         (sh64_init_extra_frame_info): Ditto.
11348         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11349         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11350         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11351         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11352         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11353         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11354         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11355         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11356         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11357         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11358         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11359         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11360
11361         * mn10300-tdep.c (analyze_dummy_frame): Use
11362         deprecated_set_frame_extra_info_hack.
11363         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11364
11365 2003-01-07  J. Brobecker  <brobecker@gnat.com>
11366
11367         * mdebugread.c (parse_symbol): Skip stProc entries which storage
11368         class is not scText. These do not define "real" procedures.
11369         (parse_partial_symbols): Likewise.
11370
11371 2003-01-06  Michael Snyder  <msnyder@redhat.com>
11372
11373         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11374
11375 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
11376
11377         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11378         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11379         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11380         deprecated_frame_xmalloc_with_cleanup.
11381         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11382         deprecated_frame_xmalloc.
11383         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11384         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11385
11386 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11387
11388         * x86-64-linux-tdep.c: Include "osabi.h".
11389         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11390
11391         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11392
11393 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11394
11395         * MAINTAINERS (Target Instruction Set Architectures): Update
11396         arm-elf.  Can be built with -Werror, has been multiarched.
11397
11398         * value.h (unpack_long): Make buffer parameter constant.
11399         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11400         * scm-lang.h (scm_parse): Ditto.
11401         * defs.h (extract_typed_address, extract_address): Ditto.
11402         (extract_long_unsigned_integer): Ditto.
11403         * inferior.h (unsigned_pointer_to_address): Ditto.
11404         (signed_pointer_to_address): Ditto.
11405         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11406         * gdbarch.h, gdbarch.c: Regenerate.
11407         * findvar.c (extract_long_unsigned_integer): Update.
11408         (extract_address): Update.
11409         (extract_typed_address): Update.
11410         (unsigned_pointer_to_address): Update.
11411         * values.c (unpack_long): Update.
11412         (unpack_double): Update.
11413         (unpack_pointer): Update.
11414         (unpack_field_as_long): Update.
11415         * d10v-tdep.c (d10v_pointer_to_address): Update.
11416         * avr-tdep.c (avr_pointer_to_address): Update.
11417         * scm-lang.c (scm_unpack): Update.
11418         * findvar.c (signed_pointer_to_address): Update.
11419
11420 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
11421
11422         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11423         since it is in i386-tdep.c.
11424
11425 2003-01-06  J. Brobecker  <brobecker@gnat.com>
11426
11427         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11428         failure introduced in the previous change.
11429
11430 2003-01-05  Michael Chastain  <mec@shout.net>
11431
11432         * README: Remove references to deleted remote-*.c files:
11433         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11434         remote-nrom.c, remote-os9k.c, remote-udi.c.
11435
11436 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
11437
11438         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11439         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11440         i386_get_longjmp_target.
11441
11442 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
11443
11444         * arm-tdep.c (prologue_cache): Change to a pointer.
11445         (_initialize_arm_tdep): Allocate prologue_cache.
11446         (check_prologue_cache): Update.
11447         (save_prologue_cache): Update.
11448         (arm_gdbarch_init): Update.
11449
11450 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11451
11452         * stabsread.c (update_method_name_from_physname): Call complaint()
11453         instead of error.
11454
11455 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11456
11457         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
11458         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11459         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11460
11461         * blockframe.c: Include "gdbcmd.h" and "command.h".
11462         (backtrace_below_main): New variable.
11463         (file_frame_chain_valid, func_frame_chain_valid)
11464         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11465         (generic_func_frame_chain_valid): Remove functions.
11466         (frame_chain_valid, do_flush_frames_sfunc): New functions.
11467         (_initialize_blockframe): New function.
11468         * Makefile.in (blockframe.o): Update dependencies.
11469         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11470         comment.  Call frame_chain_valid ().
11471         * frame.h: Remove old prototypes.  Add prototype for
11472         frame_chain_valid and update comments to match.
11473         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11474         Remove old comment.
11475         * gdbarch.h: Regenerated.
11476         * gdbarch.c: Regenerated.
11477
11478         * alpha-tdep.c (alpha_gdbarch_init): Don't call
11479         set_gdbarch_frame_chain_valid.
11480         * avr-tdep.c (avr_gdbarch_init): Likewise.
11481         * cris-tdep.c (cris_gdbarch_init): Likewise.
11482         * frv-tdep.c (frv_gdbarch_init): Likewise.
11483         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11484         * i386-tdep.c (i386_svr4_init_abi): Likewise.
11485         (i386_nw_init_abi): Likewise.
11486         (i386_gdbarch_init): Likewise.
11487         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11488         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11489         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11490         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11491         * mips-tdep.c (mips_gdbarch_init): Likewise.
11492         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11493         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11494         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11495         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11496         * s390-tdep.c (s390_gdbarch_init): Likewise.
11497         * sh-tdep.c (sh_gdbarch_init): Likewise.
11498         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11499         * v850-tdep.c (v850_gdbarch_init): Likewise.
11500         * vax-tdep.c (vax_gdbarch_init): Likewise.
11501         * x86-64-tdep.c (x86_64_init_abi): Likewise.
11502
11503         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11504         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11505         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11506         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11507         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11508         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11509         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11510         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11511
11512 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11513
11514         * Makefile.in (acconfig_h): Remove incorrect macro.
11515         (config_h): Define.
11516         (osabi.o): Update dependencies.
11517         * configure.tgt: Set gdb_osabi based on target triplet.
11518         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11519         * configure: Regenerated.
11520         * config.in: Regenerated.
11521         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11522         (GDB_OSABI_DEFAULT): Define if not already defined.
11523         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11524         (set_osabi_string): New variables.
11525         (gdbarch_register_osabi): Add new OS ABI to
11526         gdb_osabi_available_names.
11527         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11528         (set_osabi, show_osabi): New functions.
11529         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11530
11531 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11532
11533         * arch-utils.c (gdbarch_info_init): Set osabi to
11534         GDB_OSABI_UNINITIALIZED.
11535         * gdbarch.sh: Add osabi to struct gdbarch and to struct
11536         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
11537         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11538         * gdbarch.c: Regenerated.
11539         * gdbarch.h: Regenerated.
11540         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11541         there's no BFD.
11542         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11543         * osabi.h (enum gdb_osabi): Move to defs.h.
11544         (gdbarch_init_osabi): Update prototype.
11545         * defs.h (enum gdb_osabi): Moved here.
11546         * Makefile.in: Update dependencies.
11547
11548         * alpha-tdep.h: Don't include "osabi.h".
11549         (struct gdbarch_tdep): Remove osabi member.
11550         * alpha-tdep.c: Include "osabi.h".
11551         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11552         iterate over arches.  Update call to gdbarch_init_osabi.
11553         (alpha_dump_tdep): Don't dump osabi.
11554         * alpha-linux-tdep.c: Include "osabi.h".
11555         * alpha-osf1-tdep.c: Include "osabi.h".
11556         * alphafbsd-tdep.c: Include "osabi.h".
11557         * alphanbsd-tdep.c: Include "osabi.h".
11558
11559         * arm-tdep.h: Don't include "osabi.h".
11560         (struct gdbarch_tdep): Remove osabi member.
11561         * arm-tdep.c: Include "osabi.h".
11562         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11563         iterate over arches.  Update call to gdbarch_init_osabi.
11564         (arm_dump_tdep): Don't dump osabi.
11565         * arm-linux-tdep.c: Include "osabi.h".
11566         * armnbsd-tdep.c: Include "osabi.h".
11567
11568         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11569         Update call to gdbarch_init_osabi.
11570
11571         * i386-tdep.h: Don't include "osabi.h".
11572         (struct gdbarch_tdep): Remove osabi member.
11573         * i386-tdep.c: Include "osabi.h".
11574         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11575         iterate over arches.  Update call to gdbarch_init_osabi.
11576         (i386_dump_tdep): Don't dump osabi.
11577         * i386-linux-tdep.c: Include "osabi.h".
11578         * i386-sol2-tdep.c: Include "osabi.h".
11579         * i386bsd-tdep.c: Include "osabi.h".
11580         * i386gnu-tdep.c: Include "osabi.h".
11581         * i386ly-tdep.c: Include "osabi.h".
11582         * i386nbsd-tdep.c: Include "osabi.h".
11583         * i386obsd-tdep.c: Include "osabi.h".
11584
11585         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11586         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11587         check osabi when iterating over arches.  Update call to
11588         gdbarch_init_osabi.
11589         (mips_dump_tdep): Don't dump osabi.
11590
11591         * ns32k-tdep.h: Don't include "osabi.h".
11592         (struct gdbarch_tdep): Remove.
11593         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11594         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
11595         allocate tdep.  Update call to gdbarch_init_osabi.
11596         (ns32k_dump_tdep): Remove.
11597         (_initialize_ns32k_tdep): Update call to gdbarch_register.
11598         * ns32knbsd-tdep.c: Include "osabi.h".
11599
11600         * ppc-tdep.h: Don't include "osabi.h".
11601         (struct gdbarch_tdep): Remove osabi member.
11602         * rs6000-tdep.c: Include "osabi.h".
11603         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
11604         osabi when iterating over arches.  Update call to
11605         gdbarch_init_osabi.
11606         (rs6000_dump_tdep): Don't dump osabi.
11607         * ppc-linux-tdep.c: Include "osabi.h".
11608         * ppcnbsd-tdep.c: Include "osabi.h".
11609
11610         * sh-tdep.h: Don't include "osabi.h".
11611         (struct gdbarch_tdep): Remove osabi member.
11612         * sh-tdep.c: Include "osabi.h".
11613         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11614         iterate over arches.  Update call to gdbarch_init_osabi.
11615         (sh_dump_tdep): Don't dump osabi.
11616         * shnbsd-tdep.c: Include "osabi.h".
11617
11618         * sparc-tdep.c: Include "osabi.h".
11619         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11620         iterate over arches.  Update call to gdbarch_init_osabi.
11621         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
11622         tdep structure.
11623
11624         * vax-tdep.h: Don't include "osabi.h".
11625         (struct gdbarch_tdep): Remove.
11626         * vax-tdep.c: Include "osabi.h".
11627         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11628         iterate over arches.  Don't allocate tdep.  Update call
11629         to gdbarch_init_osabi.
11630         (vax_dump_tdep): Remove.
11631         (_initialize_vax_tdep): Update call to gdbarch_register.
11632
11633 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11634
11635         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11636         entirely.
11637         (breakpoint_re_set_one): Don't fetch the value for a disabled
11638         watchpoint.
11639
11640 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11641
11642         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11643         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11644         (COERCE_FLOAT_TO_DOUBLE): Remove.
11645         * gdbarch.c: Regenerate.
11646         * gdbarch.h: Regenerate.
11647         * Makefile.in: Remove value_h from gdbarch_h.
11648         * valops.c (coerce_float_to_double): New variable.
11649         (default_coerce_float_to_double): Remove.
11650         (standard_coerce_float_to_double): Remove.
11651         (value_arg_coerce): Use coerce_float_to_double.
11652         (_initialize_valops): Add "set coerce-float-to-double".
11653         * value.h (default_coerce_float_to_double): Remove prototype.
11654         (standard_coerce_float_to_double): Remove prototype.
11655
11656         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11657         prototyped.
11658         * mdebugread.c (parse_symbol): Likewise.
11659         * stabsread.c (define_symbol): Mark all functions as prototyped.
11660
11661         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11662         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11663         set_gdbarch_coerce_float_to_double.
11664         * arm-tdep.c (arm_gdbarch_init): Likewise.
11665         * frv-tdep.c (frv_gdbarch_init): Likewise.
11666         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11667         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11668         * mips-tdep.c (mips_gdbarch_init): Likewise.
11669         (mips_coerce_float_to_double): Remove.
11670         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11671         (rs6000_coerce_float_to_double): Remove.
11672         * s390-tdep.c (s390_gdbarch_init): Likewise.
11673         * sh-tdep.c (sh_gdbarch_init): Likewise.
11674         (sh_coerce_float_to_double): Remove.
11675         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11676         (sparc_coerce_float_to_double): Remove.
11677         * v850-tdep.c (v850_gdbarch_init): Likewise.
11678         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11679         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11680         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11681         (hppa_coerce_float_to_double): Remove prototype.
11682         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11683
11684 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11685
11686         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11687
11688 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11689
11690         Suggested by Stewart Brown <sb24@avaya.com>:
11691         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11692         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
11693         (c_type_print_varspec_suffix): Likewise.
11694
11695 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11696
11697         * configure.in: Don't set and AC_SUBST SUBDIRS.
11698         * configure: Regenerated.
11699
11700         * configure.in: Remove code dealing with shared libraries.
11701         * Makefile.in: Remove HLDFLAGS and HLDENV.
11702         * configure: Regenerated.
11703
11704 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
11705
11706         * frame.c (deprecated_frame_xmalloc): New function.
11707         (deprecated_set_frame_saved_regs_hack): New function.
11708         (deprecated_set_frame_extra_info_hack): New function.
11709         * frame.h (deprecated_frame_xmalloc): Declare.
11710         (deprecated_set_frame_saved_regs_hack): Declare.
11711         (deprecated_set_frame_extra_info_hack): Declare.
11712
11713 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11714
11715         * configure.in: Move code that provides the --enable-gdbtk option
11716         right after the code that handles the --enable-tui option, and
11717         polish it somewhat.
11718         * configure: Regenerated.
11719
11720         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
11721         AC_CHECK_FUNCS and remove the old check for pread64.
11722         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11723         * acconfig.h (_GNU_SOURCE): Add.
11724         (HAVE_PREAD64): Remove.
11725         * configure, aclocal.m4, config.in: Regenerated.
11726
11727 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
11728
11729         * alpha-tdep.c: Use get_frame_saved_regs.
11730         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11731         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11732         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11733         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11734         * vax-tdep.c, xstormy16-tdep.c: Ditto.
11735
11736 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11737
11738         * configure.in: Remove all use of the SUBDIRS variable; add
11739         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
11740         code providing the --enable-multi-ice option, and move it right in
11741         front of the code that checks whether gdbserver is supported.
11742         Polish that too.
11743         * configure: Regenerated.
11744         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11745         @SUBDIRS@.
11746
11747 2003-01-03  Andrew Cagney  <cagney@redhat.com>
11748
11749         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11750         * avr-tdep.c, cris-tdep.c: Ditto.
11751         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11752         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11753
11754 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11755
11756         * configure.in: Remove --enable-netrom option.
11757         * configure: Regenerated.
11758
11759 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11760
11761         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11762         declaration for `struct re_pattern_buffer' instead.
11763         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11764
11765 2003-01-03  J. Brobecker  <brobecker@gnat.com>
11766
11767         * mdebugread.c (parse_symbol): Count until the stEnd matching
11768         the structure name.
11769
11770 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11771
11772         * configure.in: Remove --with-cpu option.
11773         subscripts.  Remove evil changequotes here.
11774         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11775         * config.in, configure: Regenerated.
11776
11777         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11778         * configure.in: Cleanup section that sources GDB and BFD configure
11779         subscripts.  Remove evil changequotes here.
11780         * config.in, configure: Regenerated.
11781
11782 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11783
11784         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11785         frame accessor methods.
11786         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11787         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11788         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11789         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11790         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11791         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11792         * z8k-tdep.c: Ditto.
11793
11794 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11795
11796         * configure.in: Remove UI_OUT configuration code.
11797         * ada-lang.c: Update assuming UI_OUT is always true.
11798         * Makefile.in (UIOUT_CFLAGS): Remove.
11799         * configure: Regenerated.
11800         * TODO: Remove blurb about elimination of -DUI_OUT.
11801
11802         * configure.in: Move code that provides the --enable-gdbcli,
11803         --enable-gdbmi options right before the code that handles the
11804         --enable-tui option.  Polish a bit.
11805         * configure: Regenerated.
11806
11807         * configure.in: Rewrite check for GNU regex and the
11808         --without-included regex option, and move it into the "Checks for
11809         library functions" section.  This makes us use the system regex
11810         again by default on systems with version 2 of the GNU C library.
11811         This was apparently broken.
11812         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11813         * acconfig.h (USE_INCLUDED_REGEX): Remove.
11814         * config.in, configure: Regenerated.
11815
11816         * configure.in: Move code that provides the --enable-tui option
11817         before the "Checks for libraries" section.  Polish the code
11818         somewhat and set need_curses to yes if we build the TUI.  Rewrite
11819         code that looks for a library providing termcap functionality to
11820         match more closely what's done in the Readline library, and move
11821         it into to the "Checks for libraries" section.
11822         * configure: Regenerated.
11823         * Makefile.in (TERMCAP): Remove variable.
11824         * config/i386/go32.mh (TERMCAP): Remove variable.
11825
11826 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11827
11828         * MAINTAINERS: Mention gdb_mbuild.sh.
11829         * gdb_mbuild.sh: Rewrite.
11830
11831 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11832
11833         * configure.in: Fix typo in last change.
11834         * config.in, configure: Regenerated.
11835
11836 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11837
11838         * valarith.c (value_binop): Delete obsolete code and comments.
11839         * configure.host: Ditto.
11840         * buildsym.h (make_blockvector): Ditto.
11841         * buildsym.c (make_blockvector): Ditto.
11842         * defs.h (enum language): Ditto.
11843         (chill_demangle): Ditto.
11844         * elfread.c (elf_symtab_read): Ditto.
11845         * dwarfread.c (CHILL_PRODUCER): Ditto.
11846         (set_cu_language): Ditto.
11847         (handle_producer): Ditto.
11848         * expprint.c (print_subexp): Ditto.
11849         * gdbtypes.c (chill_varying_type): Ditto.
11850         * gdbtypes.h (builtin_type_chill_bool): Ditto.
11851         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11852         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11853         (chill_varying_type): Ditto.
11854         * language.h (_LANG_chill): Ditto.
11855         * language.c (binop_result_type, integral_type): Ditto.
11856         (character_type, string_type, structured_type): Ditto.
11857         (lang_bool_type, binop_type_check): Ditto.
11858         * stabsread.h (os9k_stabs): Ditto.
11859         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11860         (define_symbol, read_type, read_struct_fields): Ditto.
11861         (read_array_type, read_enum_type, read_huge_number): Ditto.
11862         (read_range_type, start_stabs): Ditto.
11863         * symfile.c (init_filename_language_table): Ditto.
11864         (add_psymbol_with_dem_name_to_list): Ditto.
11865         * symtab.c (symbol_init_language_specific): Ditto.
11866         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11867         * symtab.h (struct general_symbol_info): Ditto.
11868         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11869         * typeprint.c (typedef_print): Ditto.
11870         * utils.c (fprintf_symbol_filtered): Ditto.
11871         * valops.c (value_cast, search_struct_field, value_slice): Delete
11872         obsolete code.
11873         (varying_to_slice): Delete function.
11874         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11875         (varying_to_slice): Delete declaration.
11876         * MAINTAINERS: Update.
11877
11878 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11879
11880         * configure.in: Reorganize "Checks for library functions section"
11881         a bit.  Remove check for `btowc' and `isascii' functions.
11882         * configure: Regenerated.
11883
11884         * acconfig.h (_MSE_INT_H): Remove.
11885         * configure.in: Create "Checks for header files" section, and move
11886         appropriate tests there.  Don't check for objlist.h, wchar.h,
11887         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
11888         misdetection fix.  Also add "Checks for types", "Checks for
11889         compiler characteristics" and "Checks for library functions"
11890         sections.
11891         * config.in, configure: Regenerated.
11892
11893         * configure.in: Create "Checks for programs" section, and move
11894         appropriate tests there.
11895
11896 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
11897
11898         * configure.in: Create "Checks for libraries" section, and move
11899         appropriate tests there.  Cleanup check for wctype in libw.  Use
11900         AC_SEARCH_LIBS to see whether we need libsocket.
11901         * configure: Regenerated.
11902
11903 For older changes see ChangeLog-2002
11904 \f
11905 Local Variables:
11906 mode: change-log
11907 left-margin: 8
11908 fill-column: 74
11909 version-control: never
11910 End: