2f470b8ddbe7f2a0fd6df9502d2df8b172e98a3e
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-09-12  Jim Blandy  <jimb@redhat.com>
2
3         * dbxread.c (read_dbx_symtab): If we have no .data section and no
4         .bss section, presume that any variables we find live in the
5         .rodata section.
6
7         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
8         offsets for global and static variables.
9
10         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
11         symbol types are, by definition, in the .data section, so it is
12         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
13         If there is no .data section, there should be no N_DATA or N_DATA
14         | N_EXT symbols.
15
16 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
17
18         * amd64fbsd-tdep.c: Fix sigtramp recognition.
19         (amd64fbsd_sigcontext_addr): Rewrite.
20         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
21         with correct values.
22         (amd64fbsd_sc_reg_offset): Initialize with correct values.
23         (amd64fbsd_init_abi): Fix typo.
24
25 2003-09-12  Andrew Cagney  <cagney@redhat.com>
26
27         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
28         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
29
30 2003-09-12  Andrew Cagney  <cagney@redhat.com>
31
32         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
33         "entry_file_highpc".  Update comments.
34         * defs.h (deprecated_inside_entry_file): Rename
35         "inside_entry_file".
36         * blockframe.c (deprecated_inside_entry_file): Rename
37         "inside_entry_file".
38         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
39         * vax-tdep.c (vax_frame_chain): Update.
40         * sh64-tdep.c (sh64_frame_chain): Update.
41         * sh-tdep.c (sh_frame_chain): Update.
42         * rs6000-tdep.c (rs6000_frame_chain): Update.
43         * ns32k-tdep.c (ns32k_frame_chain): Update.
44         * mips-tdep.c (mips_frame_chain): Update.
45         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
46         * m32r-tdep.c (m32r_frame_this_id): Update.
47         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
48         * frv-tdep.c (frv_frame_this_id): Update.
49         * d10v-tdep.c (d10v_frame_this_id): Update.
50         * cris-tdep.c (cris_frame_chain): Update.
51         * blockframe.c (legacy_frame_chain_valid): Update.
52         * avr-tdep.c (avr_frame_this_id): Update.
53         * arm-tdep.c (arm_prologue_this_id): Update.
54         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
55         * objfiles.c (objfile_relocate): Update.
56         * mipsread.c (mipscoff_symfile_read): Update.
57         (mipscoff_symfile_read): Update.
58         * mdebugread.c (parse_partial_symbols): Update.
59         * dwarfread.c (read_file_scope): Update.
60         * dwarf2read.c (read_file_scope): Update.
61         * dbxread.c (read_dbx_symtab): Update.
62         (read_dbx_symtab): Update.
63         * coffread.c (complete_symtab): Update.
64
65 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
66
67         * top.c (quit_target): New static helper function.
68         (quit_force): Moved code to quit_target().  Call quit_target()
69         via catch_errors() to catch errors during quit.
70
71 2003-09-11  David Carlton  <carlton@kealia.com>
72
73         * buildsym.c (finish_block): Use allocate_block to allocate the
74         block.
75         * mdebugread.c (new_block): Add FIXME.
76
77 2003-09-11  David Carlton  <carlton@kealia.com>
78
79         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
80         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
81         (recursive_dump_type): Ditto.
82         * printcmd.c (print_formatted): Ditto.
83         * typeprint.c (print_type_scalar): Ditto.
84         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
85         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
86         * cp-support.h: Declare cp_check_possible_namespace_symbols,
87         maint_cplus_cmd_list.
88         * cp-support.c: Make maint_cplus_cmd_list extern.
89         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
90         command.h.
91         (lookup_symbol_file): Look in possible namespace blocks when
92         appropriate.
93         (initialize_namespace_symtab): New.
94         (get_possible_namespace_block, free_namespace_block)
95         (check_possible_namespace_symbols)
96         (check_possible_namespace_symbols_loop)
97         (check_one_possible_namespace_symbol)
98         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
99         (_initialize_cp_namespace): Ditto.
100         * block.h: Declare allocate_block.
101         * block.c (allocate_block): New.
102         * jv-lang.c (get_java_class_symtab): Allocate blocks via
103         allocate_block.
104         * symfile.h: Update declaration of add_psymbol_to_list.
105         * symfile.c (add_psymbol_to_list): Return the partial symbol in
106         question.
107         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
108         scan_partial_symbols_call.
109         (scan_partial_symbols): Add NAMESPACE argument; update calls to
110         helper functions.
111         (add_partial_symbol): If necessary, scan mangled names for names
112         of namespaces.
113         (add_partial_namespace): Add NAMESPACE argument; generate partial
114         symbols associated  to namespaces.
115         (add_partial_enumeration): Add NAMESPACE argument.
116         (new_symbol): Allow namespace syms.
117         (read_namespace): Generate namespace syms.
118         * objfiles.h: Add opaque declaration of struct symtab.
119         (struct objfile): Add cp_namespace_symtab member.
120         * objfiles.c (allocate_objfile): Set
121         objfile->cp_namespace_symtab.
122         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
123         dictionary_h, command_h.
124
125 2003-09-11  Andrew Cagney  <cagney@redhat.com>
126
127         * rs6000-tdep.c (rs6000_push_dummy_call): Use
128         regcache_raw_write_signed to set SP_REGNUM, move the operation to
129         near the function's end.
130         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
131         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
132         regcache_raw_write_signed to set SP_REGNUM.
133
134 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
135
136         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
137         orig_addrs is set up properly.
138
139 2003-09-11  Andrew Cagney  <cagney@redhat.com>
140
141         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
142         * gdbarch.h, gdbarch.c: Re-generate.
143         * infcall.c (call_function_by_hand): Update.
144         * hppa-tdep.c (hppa_push_arguments): Update.
145         * ada-lang.c (place_on_stack): Update.
146         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
147         * sparc-tdep.c (sparc_gdbarch_init): Update.
148         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
149         * hppa-tdep.c (hppa_gdbarch_init): Update.
150         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
151         stack_align.
152
153 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
154
155         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
156         register do need a frame.
157
158 2003-09-11  Andrew Cagney  <cagney@redhat.com>
159
160         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
161         buildable since GDB 5.0.
162         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
163         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
164         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
165         * irix4-nat.c: Delete file.
166         * config/mips/irix4.mh: Delete file.
167         * config/mips/irix3.mh: Delete file.
168         * config/mips/irix3.mt: Delete file.
169         * config/mips/tm-irix3.h: Delete file.
170         * config/mips/nm-irix3.h: Delete file.
171         * config/mips/xm-irix3.h: Delete file.
172         * config/mips/nm-irix4.h: Delete file.
173         * config/mips/xm-irix4.h: Delete file.
174         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
175
176 2003-09-10  J. Brobecker  <brobecker@gnat.com>
177
178         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
179         * Makefile.in (hppa-tdep.o): Update dependencies.
180
181 2003-09-10  James E Wilson  <wilson@specifixinc.com>
182
183         * MAINTAINERS: Change my e-mail address.  Move to paper trail
184         section.
185
186 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
187
188         * MAINTAINERS (frv): New ISA entry.
189
190 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
191
192         * frv-tdep.c (dis-asm.h): Include.
193         * Makefile.in (frv-tdep.o): Update dependencies.
194
195 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
196
197         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
198         Fix typo for high range of floating registers.
199
200 2003-09-09  David Carlton  <carlton@kealia.com>
201
202         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
203         highpc initialization here out of scan_partial_symbols.
204         (scan_partial_symbols): Restructure into a recursive version,
205         calling add_partial_namespace and add_partial_enumeration when
206         appropriate.
207         (add_partial_namespace): New.
208         (add_partial_enumeration, locate_pdi_sibling): Ditto.
209
210 2003-09-09  Andrew Cagney  <cagney@redhat.com>
211
212         * rs6000-tdep.c (ppc_push_return_address): Delete function.
213         (rs6000_push_dummy_call): Set LR to BP_ADDR.
214         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
215         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
216
217         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
218         (rs6000_push_dummy_call): Set the "TOC" register.
219
220         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
221         methods "max_register_raw_size", "max_register_virtual_size" or
222         "register_virtual_size".
223
224 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
225
226         * MAINTAINERS: Update my e-mail address.
227
228 2003-09-09  Andrew Cagney  <cagney@redhat.com>
229
230         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
231         (rs6000_push_dummy_call): Store the struct return address.
232         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
233
234 2003-09-09  Andrew Cagney  <cagney@redhat.com>
235
236         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
237         "ppc_sysv_abi_push_arguments".
238         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
239         "ppc_sysv_abi_push_arguments".
240         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
241         instead of "push_arguments".
242         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
243
244 2003-09-09  Andrew Cagney  <cagney@redhat.com>
245
246         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
247         instead of CALL_DUMMY_ADDRESS.
248
249 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
250
251         * p-lang.c: Eliminate "register".
252         * c-lang.c: Ditto.
253         * expprint.c: Ditto.
254         * f-lang.c: Ditto.
255         * jv-lang.c: Ditto.
256         * language.c: Ditto.
257         * m2-lang.c: Ditto.
258         * parse.c: Ditto.
259         * scm-lang.c: Ditto.
260         * objc-lang.c: Ditto.
261
262 2003-09-09  Nick Clifton  <nickc@redhat.com>
263
264         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
265
266 2003-09-04  Andrew Cagney  <cagney@redhat.com>
267
268         * avr-tdep.c: Include "dis-asm.h".
269         * cris-tdep.c: Include "dis-asm.h".
270         (cris_delayed_get_disassembler): Use "struct disassemble_info"
271         instead of corresponding typedef.
272         * h8300-tdep.c: Include "dis-asm.h".
273         * ia64-tdep.c: Include "dis-asm.h".
274         * i386-tdep.c: Include "dis-asm.h".
275         (i386_print_insn): Use "struct disassemble_info" instead of
276         corresponding typedef.
277         * m68k-tdep.c: Include "dis-asm.h".
278         * mcore-tdep.c: Include "dis-asm.h".
279         * mips-tdep.c: Include "dis-asm.h".
280         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
281         instead of corresponding typedef.
282         * ns32k-tdep.c: Include "dis-asm.h".
283         * s390-tdep.c: Include "dis-asm.h".
284         * sparc-tdep.c: Include "dis-asm.h".
285         * vax-tdep.c: Include "dis-asm.h".
286         * v850-tdep.c: Include "dis-asm.h".
287         * mn10300-tdep.c: Include "dis-asm.h".
288         * rs6000-tdep.c: Include "dis-asm.h".
289         * xstormy16-tdep.c: Include "dis-asm.h".
290         (_initialize_xstormy16_tdep): Delete "extern" declaration of
291         print_insn_xstormy16.
292         * Makefile.in (v850-tdep.o): Update dependencies.
293         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
294         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
295         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
296         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
297         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
298         (gdbarch_h): Remove $(dis_asm_h).
299         * disasm.c: Include "dis-asm.h".
300         (dis_asm_read_memory): Use "struct disassemble_info" instead of
301         corresponding typedef.
302         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
303         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
304         * gdbarch.sh: Do not include "dis-asm.h".
305         (struct disassemble_info): Declare opaque.
306         (TARGET_PRINT_INSN): Update declaration.
307         * gdbarch.h, gdbarch.c: Re-generate.
308
309 2003-09-08  Andrew Cagney  <cagney@redhat.com>
310
311         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
312         CALL_DUMMY_ADDRESS, change to a predicate.
313         * gdbarch.h, gdbarch.c: Re-generate.
314         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
315         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
316         * infcall.c (call_function_by_hand): Ditto.
317         * sparc-tdep.c (sparc_push_return_address): Ditto.
318         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
319         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
320         CALL_DUMMY_ADDRESS with entry_point_address.
321         * v850-tdep.c (v850_push_return_address): Ditto.
322         * s390-tdep.c (s390_push_return_address): Ditto.
323         * rs6000-tdep.c (ppc_push_return_address): Ditto.
324         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
325         * mcore-tdep.c (mcore_push_return_address): Ditto.
326         * cris-tdep.c (cris_push_return_address): Ditto.
327         * arm-tdep.c (arm_push_return_address): Ditto.
328
329 2003-09-08  Andrew Cagney  <cagney@redhat.com>
330
331         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
332         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
333         and REG_UNMODIFIED to REG_SAME_VALUE.
334         (execute_cfa_program): Update.
335         (dwarf2_frame_cache): Update.  Initialize table to
336         REG_UNSPECIFIED, complain if CFI fails to specify a register's
337         location.
338         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
339
340 2003-09-08  Andrew Cagney  <cagney@redhat.com>
341
342         * gnu-nat.c: Remove "inline" function attribute.
343         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
344
345 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
346
347         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
348         target.
349
350 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
351
352         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
353         (frame_extra_info): Rename this struct to frv_unwind_cache.
354         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
355         Add fields ``prev_sp'' and ``base''.
356         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
357         (frv_saved_pc_after_call, frv_init_extra_frame_info)
358         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
359         Delete.
360         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
361         Revise all callers.  Fill in the unwind cache argument and make
362         other adjustments to account for new frame mechanisms.
363         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
364         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
365         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
366         (frv_frame_unwind, frv_frame_base): New structs.
367         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
368         additional arguments expected by this method and adjust function
369         body accordingly.
370         (frv_gdbarch_init): Remove calls to the following functions:
371         set_gdbarch_deprecated_init_frame_pc(),
372         set_gdbarch_deprecated_saved_pc_after_call(),
373         set_gdbarch_deprecated_frame_chain(),
374         set_gdbarch_deprecated_frame_saved_pc(),
375         set_gdbarch_deprecated_frame_init_saved_regs(),
376         set_gdbarch_deprecated_push_arguments(),
377         set_gdbarch_deprecated_push_return_address(),
378         set_gdbarch_deprecated_pop_frame(),
379         set_gdbarch_deprecated_call_dummy_words(),
380         set_gdbarch_deprecated_sizeof_call_dummy_words(),
381         set_gdbarch_deprecated_init_extra_frame_info(),
382         set_gdbarch_deprecated_dummy_write_sp(), and
383         set_gdbarch_deprecated_pc_in_call_dummy().
384         Add calls to the following functions:
385         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
386         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
387         frame_base_set_default().
388         * Makefile.in (frv-tdep.o): Update dependencies.
389         
390 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
391
392         * dwarf2-frame.c (read_encoded_value): Add support for
393         DW_EH_PE_aligned encoding.
394
395 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
396
397         * infrun.c (normal_stop): Don't print a message if the inferior
398         has exited.
399
400 2003-09-08  Jim Blandy  <jimb@redhat.com>
401
402         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
403         * dbxread.c: #include "gdb_assert.h".
404         (read_dbx_symtab): If the objfile has no .data section, use the
405         section index for the .bss section instead.
406
407 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
408
409         * frame.c (deprecated_safe_get_selected_frame): New function.
410         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
411         * findvar.c (read_var_value): Call it.
412
413 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
414
415         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
416         (sh64-tdep.o): Add dependencies.
417         * configure.tgt: Add FIXME to sh-*-linux*.
418         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
419         (sh_gdbarch_init): Always set correct sh_show_regs function
420         pointer.  Call sh64_gdbarch_init() if machine type is sh5. 
421         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
422         * sh64-tdep.c: New file, containing all sh64 related code from
423         sh-tdep.c.
424         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
425         * config/sh/linux.mt (TDEPFILES): Ditto.
426         * config/sh/nbsd.mt (TDEPFILES): Ditto. 
427         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
428         * config/sh/wince.mt (TDEPFILES): Ditto.
429
430 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
431
432         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
433         (stop_wait_callback): Handle !lp->signalled also.
434         (lin_lwp_has_pending, flush_callback): New functions.
435         (lin_lwp_wait): Call flush_callback.
436         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
437         (linux_proc_pending_signals): New function.
438         * linux-nat.h (linux_proc_pending_signals): Add prototype.
439
440 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
441
442         From Nick Kelsey <nickk@ubicom.com>:
443         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
444         when the stop PC is at the beginning of a function also.
445
446 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
447
448         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
449         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
450
451 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
452
453         * sol-thread.c: Include "gdb_string.h".
454
455 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
456
457         * gcore.c: Reorder include files in alphabetical order.  Include
458         "gdb_assert.h".  Various coding style fixes.
459         (derive_stack_segment, derive_heap_segment): Replace check for
460         non-null BOTTOM and TOP with gdb_assert.
461         (derive_heap_segment): Replace check for successful creation of
462         ZERO with gdb_assert.
463         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
464
465 2003-09-04  Andrew Cagney  <cagney@redhat.com>
466
467         * thread-db.c (verbose_dlsym): New function.
468         (thread_db_load): Use verbose_dlsym
469         (thread_db_new_objfile): Print that libthread_db was loaded, and
470         that thread debugging was enabled.
471
472 2003-09-04  Andrew Cagney  <cagney@redhat.com>
473
474         * configure.tgt: Add "mips64*-*-*" target.  Delete
475         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
476         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
477         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
478         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
479         mips*-sony-*, and mips64*-*-elf* targets.
480         * config/mips/embedl.mt: Delete file.
481         * config/mips/embedl64.mt: Delete file.
482         * config/mips/mips.mt: Delete file.
483         * config/mips/mips64.mt: Delete file.
484         * config/mips/tm-embed.h: Delete file.
485         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
486         * config/mips/embed64.mt: Delete out-of-date comment.
487
488 2003-09-04  Andrew Cagney  <cagney@redhat.com>
489
490         * hppa-tdep.c (hppa_gdbarch_init): Set
491         "have_nonsteppable_watchpoint".
492         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
493         * mips-tdep.c (mips_dump_tdep): Do not print
494         HAVE_NONSTEPPABLE_WATCHPOINT.
495         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
496         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
497         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
498         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
499
500 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
501
502         * breakpoint.c (watchpoint_check): Remove accidentally checked in
503         unused code.  Add comment.
504
505 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
506
507         * breakpoint.c (watchpoint_check): Check for pc being in an
508         epilogue if watchpoint frame couldn't be found.
509
510 2003-09-04  Andrew Cagney  <cagney@redhat.com>
511
512         * Makefile.in: Re-generate all dependencies.
513
514 2003-09-03  Andrew Cagney  <cagney@redhat.com>
515
516         * arch-utils.h (legacy_print_insn): Delete declaration.
517         * arch-utils.c (legacy_print_insn): Delete function.
518         * disasm.c (deprecated_tm_print_insn_info): Delete.
519         (_initialize_disasm): Delete function, contained code initializing
520         deprecated_tm_print_insn_info.
521         * gdbarch.sh (deprecated_tm_print_insn): Delete.
522         (deprecated_tm_print_insn_info): Delete.
523         (TARGET_PRINT_INSN): Do not provide a default.
524         * gdbarch.h, gdbarch.c: Re-generate.
525
526 2003-09-03  Andrew Cagney  <cagney@redhat.com>
527
528         * disasm.c (fprintf_disasm): New function.
529         (gdb_disassemble_info): Call "init_disassemble_info", instead of
530         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
531         reverts 2003-08-14 change.
532         (_initialize_disasm): Call "init_disassemble_info", instead of
533         INIT_DISASSEMBLE_INFO_NO_ARCH.
534
535 2003-09-03  Michael Snyder  <msnyder@redhat.com>
536
537         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
538
539 2003-09-03  Andrew Cagney  <cagney@redhat.com>
540
541         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
542         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
543         * symfile.c (syms_from_objfile): Update.
544         (reread_symbols): `Update
545         * exec.c (exec_file_attach): Update.
546         (exec_file_attach): Update.
547         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
548         2003-08-29 change.
549         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
550
551 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
552
553         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
554         trad-frame.h.
555         (arm_get_cache): Delete macro.
556         (struct arm_prologue_cache): Update comments.  Make saved_regs into
557         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
558         to prev_sp.
559         (thumb_scan_prologue): Update for cache changes.  Don't call
560         DEPRECATED_PC_IN_CALL_DUMMY.
561         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
562         argument and use it in desperation search for our prologue.  Do not
563         search past the specified PC.
564         (arm_make_prologue_cache): Simplify.
565
566         (arm_prologue_this_id, arm_prologue_prev_register)
567         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
568         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
569         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
570         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
571         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
572
573         (arm_frame_chain_valid, arm_find_callers_reg)
574         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
575         (arm_pop_frame): Delete obsolete methods.
576         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
577
578         (arm_gdbarch_init): Update for new frame methods.  Register prologue
579         and sigtramp unwinders.  Set the default frame base method.
580
581         * Makefile.in (arm-tdep.o): Update dependencies.
582         * varobj.c (find_frame_addr_in_frame_chain): Call
583         get_frame_base_address.
584         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
585
586 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
587
588         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
589         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
590         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
591         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
592         Take NEXT_FRAME and CACHE arguments.  Call
593         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
594         Set unwound_pc in CACHE instead of modifying the frame argument.
595         Don't bother checking the frame type when looking for sigtramp
596         frames.
597         (arm_make_prologue_cache, arm_frame_chain)
598         (arm_init_extra_frame_info): New functions.
599
600 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
601
602         * arm-tdep.c (arm_get_cache): Define.
603         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
604         unwound_sp, unwound_pc, and saved_regs.
605         (thumb_scan_prologue): Take a cache instead of the frame.
606         (arm_scan_prologue): Likewise.
607         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
608         instead of a temporary frame.
609         (arm_init_extra_frame_info): Allocate and use a cache.
610         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
611
612 2003-09-03  Andrew Cagney  <cagney@redhat.com>
613
614         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
615         * config/mips/wince.mt (TM_CLIBS): Ditto.
616         * config/sh/wince.mt (TM_CLIBS): Ditto.
617         * config/pa/hppa64.mt (TM_CLIBS): Delete.
618         * config/sparc/sp64.mt (CC): Delete.
619
620 2003-09-03  Andrew Cagney  <cagney@redhat.com>
621
622         * defs.h: Do not include "arch-utils.h".
623         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
624         GDB_MULTI_ARCH_PURE.
625         * configure.in (GDB_MULTI_ARCH): Do not define.
626         * configure, config.in: Regenerate.
627         * configure.tgt: Do not set variable "gdb_multi_arch".
628         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
629         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
630         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
631         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
632         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
633         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
634         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
635         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
636         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
637         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
638         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
639         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
640         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
641         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
642         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
643         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
644         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
645         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
646         
647 2003-08-30  Michael Chastain  <mec@shout.net>
648
649         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
650         * config/m68k/nm-hp300hpux.h: Delete.
651         * config/m68k/tm-hp300hpux.h: Delete.
652         * config/m68k/xm-hp300hpux.h: Delete.
653         * config/m68k/xm-hp300bsd.h: Delete.
654         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
655         tm-hp300hpux.h, xm-hp300hpux.h.
656         * somsolib.c: Remove comment about hp300 shared libraries.
657
658 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
659
660         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
661         Only define PTRACE_GET_THREAD_AREA is not already defined.
662         Various style fixes in code and comments and some additional
663         spelling fixes in comments.  Move after functions dealing with
664         debug registers.
665         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
666         Fix coding-style.
667
668         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
669         frame_unwind_register_unsigned instead of
670         frame_unwind_unsigned_register.
671
672 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
673
674         * configure.in: Search for gethostbyname in libnsl.
675         * configure: Regenerated.
676
677 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
678
679         * configure.in: Remove redundant AC_MSG_RESULT in check for
680         uintptr_t in stdint.h.
681         * configure: Regenerated.
682
683         * amd64-nat.h (struct regcache): Add opaque declaration.
684
685         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
686         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
687         Change "register array" to "register cache" in comments.
688         (x86_64_linux_gregset64_reg_offset): New variable.
689         (GETREGS_SUPPLIES): Remove macro.
690         (supply_gregset): Call amd64_supply_native_gregset instead of
691         x86_64_linux_supply_gregset.
692         (fill_gregset): Rename `regno' to `regnum'.  Call
693         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
694         (store_regs): Rename `regno' to `regnum'.
695         (store_fpregs): Rename `regno' to `regnum'.
696         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
697         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
698         Reorganize function a bit.
699         (store_inferior_registers): Rename `regno' to `regnum'.  Use
700         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
701         Reorganize function a bit.
702         (_initialize_x86_64_linux_nat): New function.
703         * config/i386/x86-64linux.mh.
704
705 2003-08-29  Andrew Cagney  <cagney@redhat.com>
706
707         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
708         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
709         (target_remove_watchpoint): Delete macro.
710         (target_insert_watchpoint): Delete macro.
711         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
712         (remote_mips_stopped_by_watchpoint): Delete declaration.
713         (remote_mips_remove_watchpoint): Delete declaration.
714         (remote_mips_set_watchpoint): Delete declaration.
715         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
716         * remote-mips.c (_initialize_remote_mips): Set
717         "to_insert_watchpoint", "to_stopped_by_watchpoint",
718         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
719         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
720         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
721         (mips_stopped_by_watchpoint): Rename
722         remote_mips_stopped_by_watchpoint.
723         (mips_can_hardware_watchpoint): Rename
724         remote_mips_can_use_hardware_watchpoint, update function
725         signature.
726
727 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
728
729         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
730         USER_DS.  We haven't given them a register number yet.
731
732         * amd64-nat.h: New file.
733         * amd64-nat.c: New file.
734         * amd64fbsd-nat.c: Include "amd64-nat.h".
735         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
736         (amd64fbsd32_r_reg_offset): New variable.
737         (supply_gregset): Simply call amd64_supply_native_gregset.
738         (fill_gregset): Rename `regno' to `regnum'.  Simply call
739         amd64_collect_native_gregset.
740         (fill_fpregset): Rename `regno' to `regnum'.
741         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
742         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
743         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
744         `fpregset_t'.  Call amd64_supply_native_gregset instead of
745         supply_gregset.  Call x86_64_supply_fxsave instead of
746         supply_fpregset.
747         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
748         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
749         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
750         `fpregset_t'.  Call amd64_collect_native_gregset instead of
751         fill_gregset.  Call x86_64_collect_fxsave instead of
752         fill_fpregset.
753         (_initialize_am64fbsd_nat): Initialize
754         amd64_native_gregset32_reg_offset and
755         amd64_native_gregset64_reg_offset.
756         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
757
758         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
759         null pointer.  Fix typo in comment.
760
761         * regcache.c (supply_register): Reimplement to call
762         regcache_raw_supply.
763         (regcache_collect): Reimplement by calling regcache_raw_collect.
764
765 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
766
767         * regcache.c (register_buffer): Consitify first argument.
768         (regcache_raw_supply, regcache_raw_collect): New
769         functions.
770
771 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
772
773         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
774         by Nathan J. Williams.
775
776 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
777
778         * lin-lwp.c (wait_lwp): New function, copied from
779         stop_wait_callback.  Clean up.
780         (stop_wait_callback): Use wait_lwp.
781
782 2003-08-28  Andrew Cagney  <cagney@redhat.com>
783
784         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
785         flavour and disassembler options.
786         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
787         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
788         deprecated_tm_print_insn_info.
789         
790 2003-08-27  Andrew Cagney  <cagney@redhat.com>
791
792         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
793         Use target_read_memory.
794         (s390_get_frame_info): Update.  Do not reference
795         deprecated_tm_print_insn_info.
796         (s390_check_function_end, s390_is_sigreturn): Ditto.
797
798 2003-08-27  Andrew Cagney  <cagney@redhat.com>
799
800         * Makefile.in (cris-tdep.o): Update dependencies.
801         * cris-tdep.c: Include "gdb_assert.h".
802         (cris_gdbarch_init): Set print_insn.
803         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
804         (cris_delayed_get_disassembler): Simplify, directly call the
805         disassembler returned by cris_get_disassembler.
806         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
807         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
808         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
809         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
810         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
811         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
812         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
813         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
814         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
815         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
816         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
817         (gdb_print_insn_sparc): Delete function.
818         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
819         deprecated_tm_print_insn_info.
820         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
821         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
822         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
823         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
824         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
825         * s390-tdep.c (gdb_print_insn_s390): Delete function.
826         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
827         (s390_gdbarch_init): Set print_insn.
828
829 2003-08-27  Andrew Cagney  <cagney@redhat.com>
830
831         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
832         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
833         * infcall.c (call_function_by_hand): Convert the entry point
834         address into a code address.
835
836 2003-08-27  Andrew Cagney  <cagney@redhat.com>
837
838         * dsrec.c: Include "gdb_string.h".
839         * Makefile.in (dsrec.o): Update dependencies.
840
841 2003-08-27  Michael Chastain  <mec@shout.net>
842
843         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
844
845 2003-08-27  Andrew Cagney  <cagney@redhat.com>
846
847         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
848         (alpha_osf1_init_abi): Do not set call_dummy_address.
849
850 2003-08-27  David Carlton  <carlton@kealia.com>
851
852         From Randolph Chung  <tausq@debian.org>:
853         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
854         compiles with -Wformat-nonliteral -Werror.
855
856 2003-08-26  Jim Blandy  <jimb@redhat.com>
857
858         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
859         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
860         bfd_lookup_symbol, since we only want symbols in code sections.
861         (look_for_base): Pass zero as the SECT_FLAGS argument to
862         bfd_lookup_symbol, since we're not concerned about which section
863         the symbol is in.
864
865 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
866
867         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
868         we are frameless or the return address register is already known. 
869
870 2003-08-26  Andrew Cagney  <cagney@redhat.com>
871
872         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
873         in size.  Add comments.
874
875 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
876
877         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
878         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr(). 
879
880 2003-08-26  Jason Merrill  <jason@redhat.com>
881
882         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
883         case out of #ifdef MIPS block.
884
885 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
886
887         PR java/1322
888         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
889         available before calling SECT_OFF_TEXT.
890         * PROBLEMS: Remove description of java/1322.
891
892 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
893
894         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63, 
895         bof, and nat0-nat127 as pseudo-registers.
896         (ia64_frame_cache): New struct used to cache frame info.
897         (ia64_register_reggroup_p): New routine used to override default
898         register grouping so registers without names are still saved and 
899         restored.
900         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their 
901         pseudo values.
902         (ia64_pseudo_register_read): New routine to read pseudo-registers.
903         (ia64_pseudo_register_write): New routine to write pseudo-registers.
904         (ia64_alloc_frame_cache): New routine to create a new 
905         ia64_frame_cache.
906         (examine_prologue): Change prototype to add next_frame pointer.
907         Assume frameless until otherwise proven.  Verify that the cfm for
908         current frame matches the cfm that should occur for the prologues 
909         alloc insn and if equal, mark as not frameless.  At end of routine,
910         if not frameless, calculate registers for the previous frame and store
911         in the cache, if a cache is provided.
912         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
913         and pass 0 for next_frame.
914         (ia64_store_return_value): Change to use convert_typed_floating()
915         instead of calling ia64_convert_to_raw().
916         (ia64_extract_return_value): Change to use convert_typed_floating()
917         instead of calling ia64_convert_to_virtual().
918         (ia64_frame_cache): New routine to support new frame model.
919         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
920         (ia64_frame_sniffer): Ditto.
921         (ia64_sigtramp_frame_init_saved_regs): Ditto.
922         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
923         (ia64_sigtramp_frame_prev_register): Ditto.
924         (ia64_sigtramp_frame_sniffer): Ditto.
925         (ia64_frame_base_address): Ditto.
926         (ia64_extract_struct_value_address): Change to issue error message.
927         (ia64_frame_align): New routine to align sp.
928         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
929         (ia64_push_arguments): Removed.  Logic moved to 
930         ia64_push_dummy_call().
931         (ia64_push_return_address): Ditto.
932         (ia64_unwind_dummy_id): New function.
933         (ia64_unwind_pc): Ditto.
934         (ia64_convert_register_p): Ditto.
935         (ia64_register_to_value): Ditto.
936         (ia64_value_to_register): Ditto.
937         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
938         (ia64_register_byte, ia64_register_raw_size): Ditto.
939         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
940         (ia64_saved_pc_after_call): Ditto.
941         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
942         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
943         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
944         (ia64_register_convert_to_raw): Ditto.
945         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
946         (ia64_init_extra_frame_info): Ditto.
947         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
948         (ia64_gdbarch_init): Remove registering of deprecated functions that
949         are no longer used.  Add registration of new gdbarch functions.
950         Remove registering deprecated_write_sp.  Replace
951         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
952         Delete set_gdbarch_deprecated_register_convertible(),
953         set_gdbarch_deprecated_register_convert_to_virtual(), and
954         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
955         set_gdbarch_deprecated_register_size(),
956         set_gdbarch_deprecated_register_bytes(),
957         set_gdbarch_pcregnum(),
958         set_gdbarch_deprecated_register_byte(),
959         set_gdbarch_deprecated_register_raw_size(),
960         set_gdbarch_deprecated_max_register_raw_size(),
961         set_gdbarch_deprecated_register_virtual_size(),
962         and set_gdbarch_deprecated_max_register_virtual_size() calls.
963         Replace set_gdbarch_deprecated_extract_return_value() with
964         set_gdbarch_extract_return_value().  Remove calls to:
965         set_gdbarch_deprecated_saved_pc_after_call();
966         set_gdbarch_deprecated_frame_chain(),
967         set_gdbarch_deprecated_frame_saved_pc(),
968         set_gdbarch_deprecated_frame_init_saved_regs(),
969         set_gdbarch_deprecated_get_saved_register(),
970         set_gdbarch_deprecated_call_dummy_words(),
971         set_gdbarch_deprecated_sizeof_call_dummy_words(),
972         set_gdbarch_deprecated_init_extra_frame_info(),
973         set_gdbarch_deprecated_frame_args_address(),
974         set_gdbarch_deprecated_frame_locals_address(),
975         and set_gdbarch_deprecated_dummy_write_sp().
976         Add set_gdbarch_convert_register_p(),
977         set_gdbarch_register_to_value(),
978         set_gdbarch_value_to_register(),
979         set_gdbarch_push_dummy_call(),
980         set_gdbarch_frame_align(),
981         set_gdbarch_unwind_dummy_id(),
982         set_gdbarch_unwind_pc(),
983         frame_unwind_append_sniffer(),
984         frame_unwind_append_sniffer(),
985         and frame_base_set_default().
986
987 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
988
989         * configure.tgt: Document need for special "mipsisa64" handling.
990         (mipsisa64*-*-linux64): Handle as target linux64.
991         (mipsisa64*-*-*): Handle as target embed64.
992
993 2003-08-18  Michael Chastain  <mec@shout.net>
994
995         * PROBLEMS: Document pr gdb/1322, the Java anonymous
996         objfile bug.
997
998 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
999
1000         * i387-tdep.h: Update copyright date.
1001         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1002
1003         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1004         CFLAGS games to reflect reality.
1005
1006 2003-08-24  Andrew Cagney  <cagney@redhat.com>
1007
1008         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1009         GDB_MULTI_ARCH is always non-zero.
1010         * osabi.c (_initialize_gdb_osabi): Ditto.
1011         (gdbarch_init_osabi): Ditto.
1012         * sparc-tdep.c: Ditto for #if code.
1013
1014 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1015
1016         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1017         Update comments.
1018         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
1019         comments.
1020         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1021         x86_64_supply_fxsave.
1022         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1023         x86_64_supply_fxsave.
1024         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1025         x86_64_supply_fxsave.
1026
1027 2003-08-23  Andreas Jaeger  <aj@suse.de>
1028
1029         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1030         i387_supply_fxsave.
1031
1032 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
1033
1034         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1035         i387_supply_register.
1036         (go32_fetch_registers): Adjust call to i387_supply_fsave.
1037         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1038         i387_supply_fsave.
1039         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1040         i387_supply_fxsave.
1041         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1042         i387_supply_fsave.
1043         * i386bsd-nat.c (supply_fpregset): Adjust call to
1044         i387_supply_fsave.
1045         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
1046         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
1047         supply_fpregset.
1048         (store_inferior_registers): Remove extraneous whitespace.  Call
1049         i387_fill_fsave instead of fill_fpregset.
1050         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1051         (supply_fpregset): Likewise.
1052         * i386v4-nat.c (supply_fpregset): Adjust call to
1053         i387_supply_fsave.
1054         * i386-interix-nat.c (supply_fpregset): Adjust call to
1055         i387_supply_fsave.
1056         * i386-linux-nat.c (supply_fpregset): Adjust call to
1057         i387_supply_fsave.
1058         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1059         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1060         i387supply_fsave and i387_supply_fxsave.
1061         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1062         Incorporate code from `i387_supply_register.
1063         (i387_supply_register): Remove.
1064         (i387_supply_fxsave): Add `regnum' argument.
1065         Update comments.
1066         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1067         prototype.
1068         (i387_supply_register): remove prototype.
1069         Update comments.
1070         
1071 2003-08-22  Michael Chastain  <mec@shout.net>
1072
1073         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1074         Add lines for files in gdb/testsuite/gdb.cp/* that are
1075         still not 8.3 unique.
1076
1077 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
1078
1079         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1080         TYPE_VPTR_FIELDNO is valid.
1081
1082 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
1083
1084         * utils.c (set_width_command): Remove prototypes.
1085         (set_screen_size): New prototype.
1086         (init_page_info): Simplify by fetching the screen size from
1087         Readline.  Call set_screen_size.
1088         (set_screen_size): New function.
1089         (set_width): Add missing whitespace in comment.
1090         (set_width_command): Call set_screen_size.
1091         (set_height_command): New function.
1092         (initialize_utils): Fix formatting.  Make "set height" command
1093         call set_height_command.  Remove redundant code that turns off
1094         pagination if output isn't a terminal.  Remove redundant call to
1095         set_width_command.
1096         
1097 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
1098
1099         * sparc64-tdep.h (sparc64_regnum): Fix comment.
1100         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1101         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1102         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1103         `case' keyword.
1104         (sparc64_register_info): Give the reister with number
1105         SPARC64_STATE_REGNUM a name.
1106         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1107         %asi and %ccr.
1108         (sparc64_push_dummy_call): Take BIAS into account when checking
1109         stcak alignment.
1110         (sparc_software_single_step): Remove assertions that check whether
1111         NPC and NNPC were zero.
1112         (sparc_supply_rwindow): Make public.  Merge functionality with
1113         sparc64_supply_rwindow.
1114         (sparc_fill_rwindow): Make public.  Merge functionality with
1115         sparc64_fill_rwindow.
1116         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1117         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1118         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1119         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1120         sparc_supply_rwindow instead of sparc64_supply_rwindow.
1121
1122         * reggroups.c: Add whitespace after declarations of local
1123         variables in functions.
1124
1125 2003-08-21  Michael Chastain  <mec@shout.net>
1126
1127         * gdbtypes.h: Change array bound type from an int to enum.
1128
1129 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1130
1131         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1132         * config/sparc/tm-sparc.h: Ditto.
1133         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1134         unconditionally.
1135         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1136
1137 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
1138
1139         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1140         (register_objfile_data, set_objfile_data, objfile_data): New
1141         prototypes.
1142         * objfiles.c (objfile_alloc_data, objfile_free_data): New
1143         prototypes.
1144         (allocate_objfile): Call objfile_alloc_data.
1145         (free_objfile): Call objfile_free_data.
1146         (struct objfile_data): New.
1147         (struct objfile_data_registration): New.
1148         (struct objfile_data_registry): New.
1149         (objfile_data_registry): New variable.
1150         (register_objfile_data): New function.
1151         (objfile_alloc_data, objfile_free_data): New functions.
1152         (set_objfile_data, objfile_data): New functions.
1153         * dwarf2-frame.c (dwarf2_frame_data): New variable.
1154         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1155         (_initialize_dwarf2_frame): New function and prototype.
1156
1157 2003-08-21  Andrew Cagney  <cagney@redhat.com>
1158
1159         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1160         a specific architecture.
1161         * arch-utils.h (set_architecture_from_arch_mach): Delete
1162         declaration.
1163         (target_architecture_hook): Delete declaration.
1164         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1165         (default_float_format): Assume GDB_MULTI_ARCH.
1166         (default_double_format): Assume GDB_MULTI_ARCH.
1167         (set_endian_from_file): Delete function.
1168         (arch_ok): Delete function.
1169         (set_arch): Delete function.
1170         (set_architecture_from_arch_mach): Delete function.
1171         (set_architecture_from_file): Delete function.
1172         (set_architecture): Assume GDB_MULTI_ARCH.
1173         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1174
1175 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
1176
1177         Rewrite FreeBSD/sparc64 native configuration.
1178         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1179         * sparc64fbsd-nat.c: New file.
1180         * sparc64fbsd-tdep.c: New file.
1181         * sparc64-tdep.c sparc64-tdep.h: New files.
1182         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1183         sparc64fbsd-tdep.o): New dependencies.
1184         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1185         and sparc64fbsd-tdep.c.
1186         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1187         * config/sparc/fbsd.mh: Remove copyright notice.
1188         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1189         sparcbsd-nat.o.
1190         * config/sparc/fbsd.mt: Remove copyright notice.
1191         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1192         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1193         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1194         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1195         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1196         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1197         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1198         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1199         "sparc/tm-sp64.h".
1200         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1201         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1202
1203 2003-08-21  Michael Chastain  <mec@shout.net>
1204
1205         * symtab.h: Add doco on the space critical structures and
1206         some measurements of space usage.
1207
1208 2003-08-21  Michael Snyder  <msnyder@redhat.com>
1209
1210         * tracepoint.c (trace_dump_command): Trace break address
1211         is subject to DECR_PC_AFTER_BREAK.
1212         (set_traceframe_context): Make "trace_line" an int.
1213         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
1214         
1215 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1216
1217         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1218         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set 
1219         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for 
1220         argument passing.
1221         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New 
1222         functions, replace sh_push_dummy_call.
1223         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1224
1225 2003-08-20  Michael Chastain  <mec@shout.net>
1226
1227         * gdbtypes.h (struct main_type): Rearrange to save space.
1228
1229 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1230
1231         * trad-frame.c: Comment typo fix.
1232
1233 2003-08-20  Michael Snyder  <msnyder@redhat.com>
1234             Kevin Buettner  <kevinb@redhat.com>
1235
1236         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1237         (frv_frame_init_saved_regs): Add declaration.
1238         (frame_extra_info): Add new field ``saved_regs''.
1239         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1240         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1241         Update frame related code.
1242         (frv_extract_struct_value_address): Adjust formatting.
1243         * Makefile.in (frv-tdep.o): Update dependencies.
1244         * config/frv/tm-frv.h (target_insert_watchpoint)
1245         (target_remove_watchpoint, target_insert_hw_breakpoint)
1246         (target_remove_hw_breakpoint): Delete these macros.
1247         (remote_insert_watchpoint, remote_remove_watchpoint)
1248         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1249         these declarations.
1250
1251 2003-08-20  Michael Chastain  <mec@shout.net>
1252
1253         * defs.h (ENUM_BITFIELD): New macro.
1254         * symtab.h (ENUM_BITFIELD): Use it.
1255         (BYTE_BITFIELD): Remove old macro, which was already disabled.
1256
1257 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
1258
1259         * MAINTAINERS (write after approval): Add myself.
1260         
1261 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1262
1263         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1264         * gdbarch.h, gdbarch.c: Re-generate.
1265         * infcall.c (call_function_by_hand): Adjust the SP by
1266         frame_red_zone_size before allocating any stack space.
1267         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1268         * x86-64-tdep.c (x86_64_frame_align): New function.
1269         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1270
1271         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1272         Remove code adjusting SP so that it skips over the Red Zone.
1273
1274 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1275
1276         * NEWS (New native configurations): Mention FreeBSD/amd64.
1277
1278 2003-08-18  Andrew Cagney  <cagney@redhat.com>
1279
1280         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1281         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
1282         "m68k_frame_p".
1283         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1284
1285 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1286
1287         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1288
1289 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
1290
1291         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1292         Define.
1293         * i386-linux-nat.c: Include "linux-nat.h".
1294         (child_post_startup_inferior): New function.
1295         
1296 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
1297
1298         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1299         at the start of a frameless function.  This probably fixes PR
1300         backtrace/1338.
1301
1302 2003-08-17  Michael Chastain  <mec@shout.net>
1303
1304         * symfile.c (find_sym_fns): Remove special case for apollo target.
1305
1306 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1307
1308         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1309         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1310         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1311         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1312         (linux_supports_tracevforkdone): New function.
1313         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1314         TRACEVFORKDONE.
1315         (child_follow_fork): Handle vfork.
1316         (linux_handle_extended_wait): Likewise.  Also handle exec.
1317         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1318         * NEWS: Mention fork tracing.
1319
1320 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1321
1322         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1323
1324 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
1325
1326         * Makefile.in (i386-linux-nat.o): Update dependencies.
1327         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1328         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1329         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1330         * i386-linux-nat.c: Include "linux-nat.h".
1331         (child_post_startup_inferior): New function.
1332         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1333         * infptrace.c (kill_inferior): Wrap in #ifdef.
1334         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1335         attaching to each LWP.
1336         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1337         (init_lin_lwp_ops): Fill in some more operations.
1338         * linux-nat.h (linux_enable_event_reporting)
1339         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1340         prototypes.
1341         * linux-nat.c (linux_enable_event_reporting): New function.
1342         (child_post_attach, linux_child_post_startup_inferior)
1343         (child_post_startup_inferior, child_follow_fork)
1344         (linux_handle_extended_wait, kill_inferior): New functions.
1345
1346 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1347
1348         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1349         * gdbarch.h, gdbarch.c: Re-generate.
1350
1351 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
1352
1353         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1354
1355 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1356
1357         * NEWS: Mention that "set prompt-escape-char" was deleted.
1358         * top.c (get_prompt_1): Delete function.
1359         (gdb_prompt_escape):
1360         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
1361         prompt-escape-char" command.
1362         (MAX_PROMPT_SIZE): Delete macro.
1363         (get_prompt): Simplify, do not call get_prompt_1.
1364
1365 2003-08-16  Andrew Cagney  <cagney@redhat.com>
1366
1367         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1368         -Werror.  -Wformat-nonliteral problems.
1369
1370 2003-08-15  J. Brobecker  <brobecker@gnat.com>
1371
1372         Further multiarching work mostly for hppa64-*-hpux11:
1373         * hppa-tdep.h: New file.
1374         * hppa-tdep.c: #include hppa-tdep.c.
1375         (hppa32_num_regs): Renamed from hppa_num_regs.
1376         (hppa64_num_regs): New constant.
1377         (hppa64_call_dummy_breakpoint_offset): New constant.
1378         (hppa32_call_dummy_length): New constant.
1379         (hppa64_call_dummy_length): New constant.
1380         (hppa32_stack_align): Make name 32bit explicit.
1381         (hppa32_register_virtual_type): Likewise.
1382         (hppa32_extract_return_value): Likewise.
1383         (hppa32_use_struct_convention): Likewise.
1384         (hppa32_store_return_value): Likewise.
1385         (hppa64_register_virtual_type): New function.
1386         (hppa64_extract_return_value): New function.
1387         (hppa64_use_struct_convention): New function.
1388         (hppa64_store_return_value): New function.
1389         (hppa_frame_locals_address): Remove declaration, function does
1390         not exist anymore.
1391         (hppa_register_byte): Add support for PA64 ABI.
1392         (hppa_gdbarch_init): Add support for PA64 ABI.
1393         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1394         Make name 32bit explicit.
1395         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1396         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1397         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1398         (hppa64_hpux_frame_base_before_sigtramp): New function.
1399         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1400         * config/pa/tm-hppa64.h: Remove macros that are no longer
1401         necessary now that the gdbarch vector is properly setup.
1402         Transform some macros into function calls. Some minor cleanup. 
1403         * config/pa/tm-hppah.h: Update function calls in macros
1404         following the function renaming in hppa-hpux-tdep.c.
1405         * Makefile.in (hppa_tdep_h): New variable.
1406         (hppa-tdep.o): Add dependency over hppa_tdep_h.
1407
1408 2003-08-14  Michael Snyder  <msnyder@redhat.com>
1409
1410         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1411
1412 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1413
1414         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1415         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1416         routine.
1417
1418 2003-08-13  Michael Snyder  <msnyder@redhat.com>
1419
1420         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1421         (frv_saved_pc_after_call): Use deprecated ftype.
1422         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1423         (frv_remote_translate_xfer_address): Remove.
1424         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1425
1426 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1427
1428         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1429         initialization after the common gdbarch initialization, not before.
1430
1431 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1432
1433         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1434         (ADDR_BITS_REMOVE): Remove, redundant.
1435
1436 2003-08-13  J. Brobecker  <brobecker@gnat.com>
1437
1438         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1439         gdbarch method to clear the 2 low bits of text addresses.
1440
1441 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1442
1443         * Makefile.in (dsrec.o): Update dependencies.
1444         * dsrec.c: Include "gdb_assert.h".
1445         (make_srec): Use snprintf instead of sprintf, use a literal format
1446         string.
1447
1448 2003-08-12  Andrew Cagney  <cagney@redhat.com>
1449
1450         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1451         FRAME_OBSTACK_ZALLOC.
1452
1453 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
1454
1455         * i386-tdep.c (i386_gdbarch_init): Enable default support for
1456         SSE registers.
1457
1458 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1459
1460         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1461         amd64fbsd_sc_reg_offset): Add extern declarations.
1462         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1463         declarations.
1464
1465 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
1466
1467         * MAINTAINERS (write after approval): Update my mail address.
1468
1469 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1470
1471         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1472
1473 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1474
1475         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1476         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1477         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1478         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1479         i386bsd_sc_reg_offset): Add extern declarations.
1480         * i386obsd-nat.c: Include "i386-tdep.h"
1481         (_initialize_i386obsd_nat): Remove extern declarations.
1482         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1483         declarations.
1484         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1485         declarations.
1486
1487         * i386-tdep.c (i386_register_to_value): Use get_frame_register
1488         instead of frame_read_register.
1489         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1490         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
1491         SP_REGNUM.
1492         (i386_frame_prev_register): Use frame_unwind_register_unsigned
1493         instead of frame_unwind_unsigned_register.  Use
1494         I386_EFLAGS_REGISTER instead of PS_REGNUM.
1495         (i386_get_longjmp_target): Use regcache_read_unsigned_register
1496         instead of read_register.  Use builtin_type_void_data_ptr instead
1497         of builtin_type_void_func_ptr when extracting the address of the
1498         jmp_buf.
1499         (i386_extract_return_value, i386_store_return_value,
1500         i386_pseudo_register_read, i386_pseudo_register_write): Use
1501         register_size instead REGISTER_RAW_SIZE.
1502
1503 2003-08-10  Andrew Cagney  <cagney@redhat.com>
1504
1505         * infcall.c (call_function_by_hand): Use xstrprintf instead of
1506         sprintf.  Make "name" constant.
1507
1508 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
1509
1510         * i387-tdep.c (i387_register_to_value): Use get_frame_register
1511         instead of frame_read_register.
1512         (i387_print_float_info): Use get_frame_register and
1513         get_frame_register_unsigned instead of frame_register_read.
1514
1515         * i386fbsd-nat.c: Include "i386-tdep.h".
1516         (child_resume): Make `eflags' an ULONGEST.  Use
1517         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1518         instead of register_read and register_write.
1519
1520         * i386bsd-nat.c (fetch_inferior_registers,
1521         store_inferior_registers): Don't use && at the end of a line.
1522         (_initialize_i386bsd_nat): Fix typo.
1523
1524         * frame.c (_initialize_frame): Add missing backslash.
1525
1526         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1527         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1528         and supply_register instead of manipulating the register buffer
1529         directly.
1530
1531         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1532         * config/i386/nm-i386sol2.h
1533         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1534
1535         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1536         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1537         instructions that GCC likes to mingle into the prologue.  Fixes
1538         gdb/1253 and gdb/1255.
1539
1540 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1541
1542         Fix GDB PR cli/926.
1543         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1544         * command.h (add_setshow_uinteger_cmd): Declare.
1545         * frame.c (set_backtrace_cmd): New function.
1546         (show_backtrace_cmd): New function.
1547         * frame.c (_initialize_frame): Replace "set/show
1548         backtrace-below-main" with "set/show backtrace past-main".  Add
1549         command "set/show backtrace limit".
1550         (backtrace_past_main): Rename "backtrace_below_main".
1551         (backtrace_limit): New variable.
1552         (get_prev_frame): Update.  Check the backtrace_limit.
1553
1554 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1555
1556         * defs.h (xstrprintf): Declare.
1557         * utils.c (xstrprintf): New function.
1558         * breakpoint.c (insert_breakpoints): Replace sprintf and
1559         non-literal format strings, with xstrprintf and cleanups.
1560         (delete_breakpoint,breakpoint_re_set): Ditto.
1561         (commands_command, insert_breakpoints): Ditto.
1562         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1563         (break_at_finish_command_1): Ditto.
1564
1565 2003-08-09  Andrew Cagney  <cagney@redhat.com>
1566
1567         * MAINTAINERS (language support): List Adam Fedor as Objective C
1568         maintainer.
1569
1570 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1571
1572         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1573         are now multiarched.
1574
1575 2003-08-08  J. Brobecker  <brobecker@gnat.com>
1576
1577         * config/pa/tm-hppa64.h: Remove lots of macros that are no
1578         longer necessary now that hppa64 is partially multiarch'ed.
1579
1580 2003-08-08  Andrew Cagney  <cagney@redhat.com>
1581
1582         * interps.c (interp_set): Check for a NULL "old_interp".
1583
1584 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
1585
1586         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1587         (install-only): Support DESTDIR.
1588         (uninstall): Likewise.
1589         (install-gdbtk): Likewise.
1590
1591 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
1592
1593         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1594         contains something meaningful at all times.
1595
1596 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1597
1598         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1599
1600 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
1601
1602         * MAINTAINERS (write after approval): Added self.
1603
1604 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1605
1606         * inferior.h (AT_SYMBOL): Define.
1607         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1608         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1609         * mips-tdep.c (mips_call_dummy_address): Delete function.
1610         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1611         set call_dummy_address.
1612
1613 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1614
1615         * language.c (op_error): Delete function.
1616         (binop_type_check): Delete function.
1617         * language.h (type_op_error, range_op_error): Delete macros.
1618         (op_error): Delete declaration.
1619
1620 2003-08-07  Andrew Cagney  <cagney@redhat.com>
1621
1622         * interps.h (INTERP_MI2, INTERP_MI3): Define.
1623
1624 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
1625
1626         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1627         (x86_64_push_arguments): Skip the red zone.
1628
1629 2003-08-05  Andrew Cagney  <cagney@redhat.com>
1630
1631         * reggroups.c (reggroup_next): Check for the final entry.
1632
1633 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1634
1635         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1636         * cli/cli-script.c (define_command): Call query directly, instead
1637         of passing it a buffer.
1638         * ocd.c (ocd_error): Pass error a constant format string.
1639         * remote-mips.c (mips_error): Use fputs_filtered.
1640
1641         * solib-svr4.c (_initialize_svr4_solib): Update
1642         register_gdbarch_data call.
1643         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1644
1645         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1646         (register_gdbarch_data): Delete "free" parameter.  Update
1647         comments.
1648         * gdbarch.h, gdbarch.c: Re-generate.
1649         * reggroups.c (_initialize_reggroup): Update.
1650         * gnu-v3-abi.c (init_gnuv3_ops): Update.
1651         * frame-base.c (_initialize_frame_base): Update.
1652         * frame-unwind.c (_initialize_frame_unwind): Update.
1653         * user-regs.c (_initialize_user_regs): Update.
1654         * remote.c (_initialize_remote): Update.
1655         * regcache.c (_initialize_regcache): Update.
1656
1657         * regcache.c (xfree_regcache_descr): Delete function.
1658         (_initialize_regcache): Update call to register_gdbarch_data.
1659         (init_regcache_descr, init_legacy_regcache_descr): Use
1660         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1661
1662         * remote.c (free_remote_state): Delete function.
1663         (_initialize_remote): Update register_gdbarch_data.
1664         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1665         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1666
1667 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1668
1669         * reggroups.c (struct reggroup_el): Define.
1670         (struct reggroups): Delete field "nr_group".  Replace array
1671         "group" with a "first" to "last" linked list.
1672         (reggroups_init): Update.  Allocate using gdbarch's obstack.
1673         (reggroups_free): Delete function.
1674         (add_group): Update.  Add "el" parameter.
1675         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1676         (default_groups): Update.
1677         (reggroup_next): Replace reggroups.
1678         (reggroups_dump): Update.
1679         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1680         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1681         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1682
1683 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
1684
1685         * Makefile.in (tui-interp.o): Update dependencies.
1686
1687 2003-08-04  David Carlton  <carlton@kealia.com>
1688
1689         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1690         to internal_error call.
1691         * source.c (forward_search_command): Add "%s" format argument.
1692         (reverse_search_command): Ditto.
1693         * top.c (quit_confirm): Ditto.
1694         * cli/cli-setshow.c (do_setshow_command): Ditto.
1695         * cp-valprint.c (cp_print_class_method): Replace
1696         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1697         (cp_print_class_member): Ditto.
1698         * event-top.c (command_line_handler): Ditto.
1699         * linux-proc.c (linux_info_proc_cmd): Ditto.
1700         * p-typeprint.c (pascal_type_print_base): Ditto.
1701         * p-valprint.c (pascal_object_print_class_method): Ditto.
1702         (pascal_object_print_class_member): Ditto.
1703         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1704         * remote.c (remote_cisco_section_offsets): Ditto.
1705         * top.c (command_line_input): Ditto.
1706         * utils.c (vwarning,error_stream,quit): Ditto.
1707         * valprint.c (print_floating,print_binary_chars)
1708         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1709
1710 2003-08-04  Andrew Cagney  <cagney@redhat.com>
1711
1712         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1713
1714 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1715
1716         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1717         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1718         amd64fbsd-nat.c.
1719
1720 2003-08-02  Andrew Cagney  <cagney@redhat.com>
1721
1722         * Makefile.in: Update all dependencies and definitions.
1723
1724 2003-08-02  Adam Fedor  <fedor@gnu.org>
1725
1726         * linespec.c (is_objc_method_format): New function
1727         (decode_line_1, locate_first_half): Use it.
1728         Fixes PR objc/1298
1729
1730 2003-08-01  Andrew Cagney  <cagney@redhat.com>
1731
1732         * NEWS: Mention that m32r is multi-arch.
1733         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1734         * configure.tgt: Recognize m32r-*-*.
1735         * config/m32r/tm-m32r.h: Delete file.
1736         * config/m32r/m32r.mt: New file.
1737         * m32r-rom.c (m32r_upload_command): Use hostent only when 
1738         gethostname succeeds, in order to avoid a compilation
1739         warning.
1740         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1741         compiler warning.
1742
1743 2003-08-01  Michael Snyder  <msnyder@redhat.com>
1744
1745         * sh-tdep.c (sh_frame_align): New gdbarch method.
1746         (sh_gdbarch_init): Set up frame_align method.
1747
1748 2003-07-31  Michael Snyder  <msnyder@redhat.com>
1749
1750         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1751         which is already covered by the new frames infrastructure.
1752
1753 2003-07-31  Andrew Cagney  <cagney@redhat.com>
1754
1755         * user-regs.c (struct user_reg): Add "next" link.
1756         (struct user_regs): Replace "user" with "first" and "last" links.
1757         (append_user_reg): Add pre-allocated "reg" parameter.
1758         (builtin_user_regs): Provide initial value for "last".
1759         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1760         (user_regs_init): Allocate memory from the gdbarch obstack.
1761         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1762         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1763         linked list.
1764         (usernum_to_user_reg): New function.
1765         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1766         (value_of_user_reg): Use usernum_to_user_reg.
1767         (user_regs_free): Delete function.
1768         (_initialize_user_regs): Update register_gdbarch_data call.
1769
1770 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
1771
1772         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1773
1774 2003-07-30  Michael Snyder  <msnyder@redhat.com>
1775
1776         * value.h (value_being_returned): Add a struct_addr argument.
1777         * infcall.c (call_function_by_hand): Pass struct_addr to 
1778         value_being_returned.
1779         * infcmd.c (print_return_value): Pass zero as struct_addr.
1780         * values.c (value_being_returned): If struct_addr is passed,
1781         use it instead of trying to recover it from the inferior.
1782
1783 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
1784
1785         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1786         the prologue analyzer won't need to attempt to extract the pc
1787         value from the woefully incomplete dummy frame.
1788         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1789         possible.  Disable code which modifies the frame.
1790
1791 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1792
1793         * annotate.c (annotate_breakpoints_headers): Restrict annotation
1794         to level 2.
1795         (annotate_breakpoints_table, annotate_record): Ditto.
1796         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1797         (annotate_field_name_end, annotate_field_value): Ditto.
1798         (annotate_field_end, annotate_frame_source_begin): Ditto.
1799         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1800         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1801         (annotate_frame_begin, annotate_frame_function_name): Ditto.
1802         (annotate_frame_address_end, annotate_frame_address): Ditto.
1803         (annotate_frame_args, annotate_frame_end): Ditto.
1804         (annotate_frame_where, annotate_arg_begin): Ditto.
1805         (annotate_arg_name_end, annotate_arg_value): Ditto.
1806         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1807         (annotate_function_call, annotate_signal_name): Ditto.
1808         (annotate_signal_string, annotate_signal_name_end): Ditto.
1809         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1810         (annotate_value_begin, annotate_value_history_value): Ditto.
1811         (annotate_value_history_end, annotate_value_end): Ditto.
1812         (annotate_display_begin, annotate_display_number_end): Ditto.
1813         (annotate_display_format, annotate_display_expression): Ditto.
1814         (annotate_display_expression_end, annotate_display_value): Ditto.
1815         (annotate_display_end, annotate_array_section_begin): Ditto.
1816         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1817         (annotate_elt, annotate_array_section_end): Ditto.
1818
1819 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1820
1821         * regcache.c (struct regcache_descr): Update comments on
1822         nr_raw_registers.
1823         (init_legacy_regcache_descr): Don't set nr_raw_registers or
1824         sizeof_raw_register_valid_p.
1825         (init_regcache_descr): Set nr_raw_registers and
1826         sizeof_raw_register_valid_p before calling
1827         init_legacy_regcache_descr.
1828
1829 2003-07-28  Andrew Cagney  <cagney@redhat.com>
1830
1831         * mips-tdep.c (print_gp_register_row): Print the GPR's register
1832         MOD NUM_REGS.
1833
1834 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
1835
1836         * thread.c (info_threads_command): Use get_selected_frame ().
1837         Check that there is at least one non-sentinel frame.
1838
1839 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1840
1841         * m68hc11-tdep.c (struct frame_extra_info): Remove.
1842         (m68hc11_pop_frame): Remove.
1843         (m68hc11_frame_saved_pc): Remove.
1844         (m68hc11_frame_chain): Remove.
1845         (m68hc11_frame_init_saved_regs): Remove.
1846         (m68hc11_init_extra_frame_info): Remove.
1847         (m68hc11_store_struct_return): Remove.
1848         (m68hc11_saved_pc_after_call): Remove.
1849
1850 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1851
1852         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1853         frame unwind information.
1854         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1855         and adapted for frame unwinding.
1856         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1857         (m68hc11_unwind_pc): New function.
1858         (m68hc11_frame_unwind_cache): New function to analyze frames.
1859         (m68hc11_frame_this_id): New function to create new frame struct.
1860         (m68hc11_frame_prev_register): New function to unwind a register from
1861         the frame.
1862         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1863         (m68hc11_frame_p): New function for the above.
1864         (m68hc11_frame_base_address): New function to return fp of frame.
1865         (m68hc11_frame_args_address): Update for frame.
1866         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1867         (m68hc11_unwind_sp): New function.
1868         (m68hc11_unwind_dummy_id): New function.
1869         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1870         calls.
1871
1872 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1873
1874         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1875         (m68hc11_guess_from_prologue): Advance the pc and frame size only
1876         when we are beyond the current pc.
1877
1878 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
1879
1880         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1881         from m68hc11_push_arguments.
1882         (m68hc11_push_arguments): Remove.
1883         (m68hc11_push_return_address): Remove.
1884         (m68hc11_gdbarch_init): Install the above; remove above deprecated
1885         handlers; remove deprecated_extra_stack_alignment_needed.
1886
1887 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1888
1889         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1890         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1891         REAL_PC and not the pointer.
1892         * hppa-hpux-tdep.c: Include frame.h
1893
1894 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1895
1896         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1897         GDB_MULTI_ACH_PARTIAL.
1898
1899 2003-07-27  Andrew Cagney  <cagney@redhat.com>
1900
1901         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1902         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1903         operator at start and not end of line.
1904         (decode_prologue): Ditto.
1905         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1906         frame_unwind_register_unsigned instead of
1907         frame_unwind_unsigned_register.
1908         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1909         read_register.
1910         (m32r_push_dummy_call): Use register_size instead of
1911         REGISTER_RAW_SIZE.
1912         (m32r_frame_sniffer): Replace m32r_frame_p.
1913         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1914         * m32r-rom.c (report_transfer_performance): Delete extern
1915         declaration.
1916         (m32r_load, m32r_upload_command): Use print_transfer_performance
1917         instead of report_transfer_performance.
1918         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1919         / add_show_from_set.
1920
1921 2003-07-26  Andrew Cagney  <cagney@redhat.com>
1922
1923         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1924         store_return_value and extract_struct_value_address.
1925
1926 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
1927
1928         PR c++/1267
1929         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1930         NULL, default to the section containing PC.
1931
1932 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
1933
1934         * NEWS: Mention "regs" deprecated for m68hc11 too.
1935
1936         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1937         (m68hc11_print_register): New function to print out one register.
1938         (m68hc11_print_registers_info): New function to print registers.
1939         (show_regs): Deprecate and use the above.
1940         (m68hc11_gdbarch_init): Install the print_registers_info.
1941
1942 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
1943
1944         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1945         that we have a SIGTRAP before returning non-zero.
1946
1947 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
1948             Elena Zannoni  <ezannoni@redhat.com>
1949
1950         * linespec.c (decode_line_2): Avoid crash if 
1951         find_function_start_sal() returns empty record.
1952
1953 2003-07-23  Andreas Schwab  <schwab@suse.de>
1954
1955         * ia64-tdep.c (ia64_print_insn): New function.
1956         (ia64_gdbarch_init): Set print_insn to it.
1957         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1958         deprecated_tm_print_insn_info.
1959
1960 2003-07-22  Michael Snyder  <msnyder@redhat.com>
1961
1962         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1963         handle 8-bit returns (long long).
1964         (h8300h_extract_return_value): Ditto.
1965         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1966
1967 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1968
1969         * gdbarch.c Include "gdb_obstack.h".
1970         (struct gdbarch): Add an "obstack".
1971         (alloc_gdbarch_data): Allocate the gdbarch data using
1972         GDBARCH_OBSTACK_CALLOC.
1973         (free_gdbarch_data): Delete function.
1974         (gdbarch_obstack_zalloc): New function.
1975         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1976         Assert that the architecture is not initialized.
1977         (gdbarch_alloc): Allocate an obstack, allocate the architecture
1978         vector from the obstack.
1979         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1980         architecture obstack.
1981         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1982         (set_gdbarch_data): Assert that the data is not initialized.
1983         (struct gdbarch_data): Delete member "free".
1984         (register_gdbarch_data): Do not initialize "free".
1985         * gdbarch.h, gdbarch.c: Re-generate.
1986         
1987 2003-07-22  Andrew Cagney  <cagney@redhat.com>
1988
1989         * configure.in (build_warnings): Add -Wformat-nonliteral.
1990         * configure: Re-generate.
1991
1992 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
1993
1994         * dwarf2loc.c (locexpr_describe_location): Fix typos.
1995
1996 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
1997
1998         * findvar.c (read_var_value): Remove case for thread local storage
1999         variables.  It is now entirely handled by the dwarf2 location
2000         expression code.
2001         * printcmd.c (address_info): Ditto.
2002         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2003         enumeration value.
2004         (struct symbol): Remove objfile field, which was used by
2005         LOC_THREAD_LOCAL_STATIC only.
2006         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2007         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2008         usage of objfile pointer.
2009         * dwarf2loc.c (locexpr_describe_location): Add case to handle
2010         thread local variables.
2011         Add include of objfiles.h.
2012         * dwarf2expr.c (execute_stack_op): Add comments about thread local
2013         storage variables.
2014         * Makefile.in (dwarf2loc.o): Update dependencies.
2015
2016 2003-07-22  Andrew Cagney  <cagney@redhat.com>
2017
2018         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2019         get_frame_base.
2020         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2021         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2022         (struct value): Add opaque declaration.
2023         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2024
2025 2003-07-21  Andrew Cagney  <cagney@redhat.com>
2026
2027         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2028         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2029
2030 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2031
2032         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use 
2033         regcache_cooked_read_unsigned instead of read_register.
2034         (m68hc11_saved_pc_after_call): Likewise.
2035         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2036         instead of write_register.
2037         (m68hc11_register_type): New function.
2038         (m68hc11_register_virtual_type): Remove.
2039         (m68hc11_store_return_value): Convert to use the regcache.
2040         (m68hc11_extract_struct_value_address): Likewise.
2041         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2042         m68hc11_register_type; undeprecate store_return_value and
2043         extract_struct_value_address.
2044
2045 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
2046
2047         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2048         and translate to use regcache.
2049         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2050
2051 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2052
2053         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2054         * gdbarch.h, gdbarch.c: Re-generate.
2055         * i386-tdep.c (i386_gdbarch_init): Do not set
2056         DWARF2_BUILD_FRAME_INFO.
2057         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2058         unconditionally.
2059         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2060         DWARF2_BUILD_FRAME_INFO.
2061
2062 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2063
2064         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2065         * disasm.c (gdb_disassemble_info): Initilize di.arch.
2066
2067 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2068
2069         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2070         frame_unwind_address_in_block, instead of frame_pc_unwind.
2071         (dwarf2_frame_cache): Ditto.
2072
2073 2003-07-18  Andrew Cagney  <cagney@redhat.com>
2074
2075         * user-regs.h (struct gdbarch): Declare opaque.
2076         * ui-out.h (struct ui_file): Declare opaque.
2077         * dwarf2-frame.h (struct frame_info): Declare opaque.
2078
2079 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
2080
2081         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
2082         #include "...".
2083         (procfs_meminfo): Change strerror to safe_strerror.
2084         (procfs_can_run): Remove K&R badness.
2085
2086 2003-07-17  Michael Snyder  <msnyder@redhat.com>
2087
2088         * remote-sim.c: Comment typo fix.
2089
2090 2003-07-17  Andrew Cagney  <cagney@redhat.com>
2091
2092         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
2093         configure.
2094         * sparc-tdep.c (sparc_intreg_size): Make non-static.
2095         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2096         GDB_MULTI_ARCH_PARTIAL.
2097
2098 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
2099
2100         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2101         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
2102         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2103
2104 2003-07-16  Theodore A. Roth  <troth@openavr.org>
2105
2106         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2107         found.
2108         (avr_frame_unwind_cache): Don't unwind FP for main.
2109         Update a comment.
2110         Save the computed prev_sp.
2111         (avr_saved_regs_unwinder): Remove function.
2112         (avr_frame_prev_register): Use PC unwind logic from 
2113         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2114
2115 2003-07-16  Andrew Cagney  <cagney@redhat.com>
2116
2117         * frame-base.h (frame_base_p_ftype): Delete definition.
2118         (frame_base_append_predicate): Delete declaration.
2119         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2120         (frame_unwind_append_predicate): Delete declaration.
2121         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2122         (append_predicate): Delete parameter "p".
2123         (frame_unwind_append_predicate): Delete function.
2124         (frame_unwind_append_sniffer): Update call to append_predicate.
2125         (frame_unwind_free): Delete function.
2126         (_initialize_frame_unwind): Pass NULL as "free" to
2127         register_gdbarch_data.
2128         (frame_unwind_init): Append the dummy_frame_sniffer.
2129         (frame_unwind_find_by_frame): Simplify.
2130         * frame-base.c (struct frame_base_table): Delete field "p".
2131         (append_predicate): Delete parameter "p".
2132         (frame_base_append_predicate): Delete function.
2133         (frame_base_append_sniffer): Update call to append_predicate.
2134         (frame_base_free): Delete function.
2135         (frame_base_find_by_frame): Simplify.
2136         (_initialize_frame_base): Pass NULL as "free" to
2137         register_gdbarch_data.
2138         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2139         (x86_64_sigtramp_frame_sniffer): Replace
2140         "x86_64_sigtramp_frame_p".
2141         (x86_64_init_abi): Set the frame unwind sniffers.
2142         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2143         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2144         (m68k_gdbarch_init): Set the frame unwind sniffers.
2145         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2146         "i386_sigtramp_frame_p".
2147         (i386_frame_sniffer): Replace "i386_frame_p".
2148         (i386_gdbarch_init): Set the frame unwind sniffers.
2149         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2150         (avr_gdbarch_init): Set the frame unwind sniffers.
2151         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2152         "alpha_sigtramp_frame_p"
2153         (alpha_heuristic_frame_sniffer): Replace
2154         "alpha_heuristic_frame_p".
2155         (alpha_gdbarch_init): Set the frame unwind sniffers.
2156         (alpha_dwarf2_init_abi): Ditto.
2157         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2158         "alpha_debug_frame_p".
2159         (alpha_mdebug_frame_base_sniffer): Replace
2160         "alpha_mdebug_frame_base_p".
2161         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2162         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2163         (d10v_gdbarch_init): Set the frame unwind sniffer.
2164         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2165         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2166         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2167         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2168         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2169         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2170
2171 2003-07-16  Michael Snyder  <msnyder@redhat.com>
2172
2173         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2174         should go thru sh_dsp_register_sim_regno, else the dsp regs
2175         will not get the right values.
2176
2177 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2178
2179         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2180         deprecated_store_floating by call to store_typed_floating.
2181         (sh_sh4_register_convert_to_raw): Substitute call to
2182         deprecated_extract_floating by call to extract_typed_floating.
2183
2184 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2185
2186         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2187
2188 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
2189
2190         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2191         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2192         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
2193         as possible.
2194         (do_pseudo_register): Remove.
2195         (sh_push_dummy_code): New function.
2196         (sh64_store_struct_return): Rename from sh_store_struct_return.
2197         Only called for sh64 now.
2198         (sh_extract_struct_value_address): Regcache'ify.
2199         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
2200         and accomodate new tasks.
2201         (sh64_push_return_address): Rename from sh_push_return_address.
2202         Only called for sh64 now.
2203         (sh_default_extract_return_value): Rename from sh_extract_return_value.
2204         Regcache'ify.
2205         (sh3e_sh4_extract_return_value): Regcache'ify.
2206         (sh_default_store_return_value): Ditto.
2207         (sh3e_sh4_store_return_value): Ditto.
2208         (sh_default_register_byte): Remove.
2209         (sh_sh4_register_byte): Remove.
2210         (sh_default_register_raw_size): Remove.
2211         (sh_sh4_register_raw_size): Remove.
2212         (sh_register_virtual_size): Remove.
2213         (sh_sh3e_register_virtual_type): Remove.
2214         (sh_sh3e_register_type): New function.
2215         (sh_sh4_register_virtual_type): Remove.
2216         (sh_sh4_register_type): New function.
2217         (sh_default_register_virtual_type): Remove.
2218         (sh_default_register_type): New function.
2219         (do_fv_register_info): Add parameters to accomodate call from
2220         sh_print_registers_info.
2221         (do_dr_register_info): Ditto.
2222         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2223         Add parameters to accomodate call from sh_print_registers_info.
2224         (sh_do_fp_register): Ditto.
2225         (sh64_do_pseudo_register): Call do_dr_register_info,
2226         do_fv_register_info and sh_do_fp_register with default parameters.
2227         (sh_do_register): Add parameters to accomodate call from
2228         sh_print_registers_info.
2229         (sh_print_register): Ditto.
2230         (sh_print_registers_info): Rename from sh_do_registers_info.
2231         Add parameters to be used as gdbarch_print_registers_info
2232         implementation.  Accomodate removed do_pseudo_register function
2233         pointer.
2234         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2235         function pointer. Call sh_print_register with default parameters.
2236         (sh64_do_registers_info): Call sh_print_registers_info instead of
2237         sh_do_registers_info.
2238         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2239         detection of deprecated vs. non-deprecated functionality.
2240         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
2241         function pointer assignments by direct function calls.
2242
2243 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2244
2245         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2246         (frame_register_unwind, create_new_frame): Ditto.
2247         (legacy_get_prev_frame, get_frame_type): Ditto.
2248         (get_frame_base_address): Use frame_base_find_by_frame.
2249         (get_frame_locals_address): Use frame_base_find_by_frame.
2250         (get_frame_args_address): Use frame_base_find_by_frame.
2251         * frame-base.h (frame_base_sniffer_ftype): Declare.
2252         (frame_base_append_sniffer): Declare.
2253         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2254         * frame-base.c (append_predicate): Add a "sniffer" parameter.
2255         (frame_base_append_sniffer): New function.
2256         (frame_base_append_predicate): Add a NULL sniffer.
2257         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2258         (struct frame_base_table): Add "sniffer".
2259         (frame_base_free): Free the "sniffer" table.
2260         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2261         (frame_unwind_append_sniffer): Declare.
2262         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2263         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2264         (struct frame_unwind_table): Add "sniffer", delete "middle".
2265         (append_predicate): Add "sniffer" parameter, append the sniffer.
2266         (frame_unwind_init): Update append_predicate call.
2267         (frame_unwind_append_sniffer): New function.
2268         (frame_unwind_append_predicate): Update append_predicate call.
2269         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2270
2271 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2272
2273         * frame.c (get_prev_frame): Move disabled inside_entry_func to
2274         before code inhibiting repeated unwind attempts.  Add to
2275         commentary on that test's problems.
2276         * blockframe.c (inside_main_func): Look for "main" in the minimal
2277         symbol table.
2278         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2279         identical.
2280
2281 2003-07-15  Andrew Cagney  <cagney@redhat.com>
2282
2283         * complaints.c (struct explanation): Define.
2284         (struct complaints): Change type of "explanation" to "struct
2285         explanation".
2286         (symfile_explanations): Convert to a "struct explanation" table.
2287         (vcomplaint): Update.
2288
2289 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
2290
2291         * x86-64-linux-nat.c (regmap): Removed.
2292         (supply_gregset, fill_gregset): Call 
2293         x86_64_linux_(fill,supply)_gregset functions.
2294         * x86-64-linux-tdep.c (USER_*): New defines.
2295         (user_to_gdb_regmap, x86_64_core_fns): New structure.
2296         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2297         New functions.
2298         (fetch_core_registers): Ditto.
2299         (_initialize_x86_64_linux_tdep): Call add_core_fns().
2300         * x86-64-linux-tdep.h: New file.
2301         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2302         and core-regset.o.
2303         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2304
2305 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2306
2307         * x86-64-tdep.c (x86_64_store_return_value): Use
2308         regcache_cooked_write_part instead of regcache_cooked_write.
2309
2310         * configure.host: Add x86_64-*-freebsd*.
2311         * configure.tgt: Add x86_64-*-freebsd*.
2312         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2313         * amd64fbsd-nat.c: New file.
2314         * amd64fbsd-tdep.c: New file.
2315         * config/i386/nm-fbsd64.h: New file.
2316         * config/i386/fbsd64.mh: New file.
2317         * config/i386/fbsd64.mt: New file.
2318
2319 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
2320
2321         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2322         `sc_regs_offset' and `sc_fpregs_offset'.
2323         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2324         SIGFRAME_FPREGSAVE_OFF): Remove defines.
2325         (alpha_sigtramp_register_address): Rewrite to use new members of
2326         `struct gdbarch_tdep'.
2327         (alpha_gdbarch_init): Initialize new members of struct
2328         gdbarch_tdep'.
2329         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2330         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2331         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2332         (alphafbsd_pc_in_sigtramp): Implement.
2333         (alphafbsd_sigtramp_offset): New function.
2334         (alphafbsd_sigcontext_addr): New function.
2335         (alphafbsd_init_abi): Initialize signal trampoline related members
2336         of `struct gdbarch_tdep'.
2337         (_initialize_alphafbsd_tdep): Add prototype.
2338
2339 2003-07-11  Theodore A. Roth  <troth@openavr.org>
2340
2341         * Makefile.in (install-only): Quote sed expression when generating
2342         transformed_name.
2343
2344 2003-07-11  Richard Henderson  <rth@redhat.com>
2345
2346         * Makefile.in (dwarf2-frame.o): Add complaints_h.
2347         * dwarf2-frame.c: Include complaints.h.
2348         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2349         variable initialization; return NULL on error.
2350         (decode_frame_entry): New.
2351
2352 2003-07-11  Andrew Cagney  <cagney@redhat.com>
2353
2354         * frame.h (frame_address_in_block): Delete declaration.
2355         * blockframe.c (frame_address_in_block): Delete function.
2356         (get_frame_block): Use get_frame_address_in_block.
2357         (block_innermost_frame): Ditto.
2358         * stack.c (print_frame, backtrace_command_1): Ditto.
2359
2360         * frame.h (get_frame_address_in_block): Declare.
2361         (frame_unwind_address_in_block): Declare.
2362         * frame.c (frame_unwind_address_in_block): New function.
2363         (get_frame_address_in_block): New function.
2364
2365 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2366
2367         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
2368         pre-default.   Note: re-generate has no effect.
2369         
2370 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2371
2372         * gdbarch.sh: When a variable, but not a function, compare against
2373         0.  Fix problem in previous patch.
2374         * gdbarch.c: Re-generate.
2375         
2376 2003-07-10  Andrew Cagney  <cagney@redhat.com>
2377
2378         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
2379         functions against NULL, not 0.
2380         * gdbarch.c: Re-generate.
2381         
2382 2003-07-10  Fred Fish  <fnf@ninemoons.com>
2383
2384         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2385         null string instead of a null pointer.
2386         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2387
2388 2003-07-09  Michael Snyder  <msnyder@redhat.com>
2389
2390         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2391
2392 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
2393
2394         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2395         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2396         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2397         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2398         * x86-64-tdep.c: ... from here.
2399
2400 2003-07-09  Andreas Schwab  <schwab@suse.de>
2401
2402         * m68k-tdep.h (enum struct_return): Define.
2403         (struct gdbarch_tdep): Add struct_return.
2404         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2405         bytes are padded to the right, not to the left.  Pass struct value
2406         address in register %a1, not on stack.
2407         (m68k_use_struct_convention): New function.
2408         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
2409         struct_return in tdep to pcc_struct_return.
2410         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2411         reg_struct_return.
2412
2413 2003-07-09  Joel Brobecker  <brobecker@gnat.com>      
2414
2415         * somread.c (som_symfile_offsets): Fix compilation error.   
2416
2417 2003-07-09  Andrew Cagney  <cagney@redhat.com>
2418
2419         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2420         Add comments about the checks.
2421
2422 2003-07-08  Andrew Cagney  <cagney@redhat.com>
2423
2424         * Makefile.in: Make dependency section headers consistent.
2425         (config_h): Move to $BUILD headers section.
2426         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2427         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2428         (ada-exp.tab.c): Move to YACC/LEX section.
2429         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2430         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2431
2432 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
2433
2434         * nto-procfs.c: Cleaned up a bunch of ARI hits.
2435         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2436         of strerror with safe_strerror, use ISO C function definitions,
2437         and replace instances of sprintf with snprintf.
2438
2439 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2440
2441         * frame.c (get_prev_frame): Enable check for identical frames.
2442         Update comments.  Update error messages.
2443
2444 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2445
2446         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2447
2448 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2449
2450         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2451         sort_symtab_syms, no longer necessary.
2452
2453 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2454
2455         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2456
2457 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
2458
2459         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2460         (mips_register_byte): Likewise.
2461
2462 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2463
2464         * Makefile.in (sparc_tdep_h): New.
2465         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2466         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2467         * sparc-linux-nat.c: Include "sparc-tdep.h".
2468         * sparc-nat.c: Likewise.
2469         * sparc-tdep.c: Likewise.
2470         * sparc64nbsd-nat.c: Likewise.
2471         * sparcnbsd-nat.c: Likewise.
2472         * sparcnbsd-tdep.c: Likewise.
2473         * sparc-tdep.h: New file.
2474         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2475         and sparc_npc_regnum.
2476
2477 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2478
2479         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2480         (mips_linux_cannot_store_register): List supported instead of
2481         unsupported registers.
2482
2483 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
2484
2485         * disasm.c (dump_insns): Separate instructions from addresses.
2486
2487 2003-07-07  Andreas Schwab  <schwab@suse.de>
2488
2489         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2490         dependencies.
2491         * m68k-tdep.c (NUM_FREGS): Delete.
2492         (SIG_PC_FP_OFFSET): Delete.
2493         (TARGET_M68K): Delete.
2494         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2495         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2496         P_MOVEL_SP, P_MOVEML_SP): Define.
2497         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2498         P_TRAP): Delete.
2499         (m68k_register_raw_size): Delete.
2500         (m68k_register_virtual_size): Delete.
2501         (m68k_register_type): Renamed from m68k_register_virtual_type and
2502         add gdbarch argument.
2503         (m68k_store_struct_return): Delete.
2504         (m68k_deprecated_extract_return_value): Delete.
2505         (m68k_deprecated_extract_struct_value_address): Delete.
2506         (m68k_frame_chain): Delete.
2507         (m68k_frame_saved_pc): Delete.
2508         (m68k_fix_call_dummy): Delete.
2509         (m68k_push_dummy_frame): Delete.
2510         (m68k_pop_frame): Delete.
2511         (m68k_extract_return_value): New function.
2512         (m68k_store_return_value): Rewrite using regcache.
2513         (m68k_extract_struct_value_address): Rewrite using regcache.
2514         (m68k_push_dummy_call): New function.
2515         (struct m68k_frame_cache): Define.
2516         (m68k_alloc_frame_cache): New function.
2517         (m68k_analyze_frame_setup): New function.
2518         (m68k_analyze_register_saves): New function.
2519         (m68k_analyze_prologue): New function.
2520         (m68k_skip_prologue): Rewrite using above functions.
2521         (m68k_unwind_pc): New function.
2522         (m68k_frame_cache): New function.
2523         (m68k_frame_this_id): New function.
2524         (m68k_frame_prev_register): New function.
2525         (m68k_frame_unwind): New variable.
2526         (m68k_frame_p): New function.
2527         (m68k_sigtramp_frame_cache): New function.
2528         (m68k_sigtramp_frame_this_id): New function.
2529         (m68k_sigtramp_frame_prev_register): New function.
2530         (m68k_sigtramp_frame_unwind): New variable.
2531         (m68k_sigtramp_frame_p): New function.
2532         (m68k_frame_base_address): New function.
2533         (m68k_frame_base): New function.
2534         (m68k_unwind_dummy_id): New function.
2535         (fill_gregset): Use regcache_collect.
2536         (fill_fpregset): Likewise.
2537         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2538         defined.
2539         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
2540         deprecated_init_frame_pc, deprecated_store_struct_return,
2541         deprecated_extract_return_value, deprecated_store_return_value,
2542         deprecated_frame_chain, deprecated_frame_saved_pc,
2543         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2544         deprecated_register_virtual_size,
2545         deprecated_max_register_raw_size,
2546         deprecated_max_register_virtual_size,
2547         deprecated_register_virtual_type, deprecated_register_size,
2548         deprecated_register_byte, deprecated_register_bytes,
2549         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2550         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2551         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2552         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2553         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2554         deprecated_push_dummy_frame, deprecated_pop_frame,
2555         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
2556         only if SYSCALL_TRAP is defined.  Set extract_return_value,
2557         store_return_value, extract_struct_value_address, register_type,
2558         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
2559         predicates.
2560         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2561         M68K_MAX_REGISTER_SIZE): Define.
2562         (struct m68k_sigtramp_info): Define.
2563         (struct gdbarch_tdep): Add get_sigtramp_info.
2564         * m68klinux-nat.c (fetch_register): Use register_size instead of
2565         REGISTER_RAW_SIZE.  Don't put assignment in if.
2566         (store_register): Likewise.
2567         (fetch_inferior_registers): Likewise.
2568         (store_inferior_registers): Likewise.
2569         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2570         (m68k_linux_frame_saved_pc): Delete.
2571         (m68k_linux_sigcontext_reg_offset,
2572         m68k_linux_ucontext_reg_offset): Define.
2573         (m68k_linux_get_sigtramp_info): New function.
2574         (m68k_linux_extract_return_value): Rewrite using regcache.
2575         (m68k_linux_store_return_value): Likewise.
2576         (m68k_linux_extract_struct_value_address): Likewise.
2577         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2578         Don't set deprecated_frame_saved_pc,
2579         deprecated_extract_return_value, deprecated_store_return_value,
2580         deprecated_extract_struct_value_address.  Set
2581         extract_return_value, store_return_value,
2582         extract_struct_value_address.
2583
2584 2003-07-07  Andrew Cagney  <cagney@redhat.com>
2585
2586         * expprint.c: Include "user-regs.h" instead of "frame.h".
2587         (print_subexp): Use user_reg_map_regnum_to_name, instead of
2588         frame_map_regnum_to_name.
2589         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2590         (frame_map_name_to_regnum): Simplify, call
2591         user_reg_map_name_to_regnum.
2592         (frame_map_regnum_to_name): Simplify, call
2593         user_reg_map_regnum_to_name.
2594         (frame_register_unwind): Update.
2595         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2596         (_initialize_frame_reg): Call user_reg_add_builtin.
2597         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2598         (value_of_register): Use value_of_user_reg.
2599         * eval.c (evaluate_subexp_standard): Update.
2600         * parse.c (write_dollar_variable): Update.
2601         * d10v-tdep.c (d10v_print_registers_info): Update.
2602         * infcmd.c (registers_info): Update.
2603         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2604         (builtin_regs_h): Delete macro.
2605         (user_regs_h): Define.
2606         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2607         (builtin-regs.o): Delete target.
2608         (user-regs.o): Specify dependencies.
2609         (expprint.o): Update dependencies.
2610         (findvar.o): Update dependencies.
2611         (frame.o): Update dependencies.
2612         (std-regs.o): Update dependencies.
2613
2614 2003-07-06  Christopher Faylor  <cgf@redhat.com>
2615
2616         * win32-nat.c (solib_symbols_add): Use one variable for all section
2617         address stuff.  Pass variable rather than address of variable to
2618         safe_symbol_file_add.
2619
2620 2003-07-06  Andreas Schwab  <schwab@suse.de>
2621
2622         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2623
2624 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
2625
2626         * rs6000-nat.c (vmap_symtab): Fix compilation error.
2627
2628 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2629
2630         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2631
2632 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
2633
2634         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
2635         * config/i386/nto.mh: New file.
2636         * config/i386/nm-nto.h: New file.
2637         * configure.host: Add i[3456]86-*-nto*.
2638
2639 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
2640
2641         * remote-vx.c (vx_add_symbols): Fix compilation error.
2642
2643 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2644
2645         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2646         * gdbarch.h, gdbarch.c: Re-generate.
2647         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2648         (legacy_register_name): Declare.
2649         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2650         (REGISTER_NAME): Define.
2651         * sparc-tdep.c (legacy_register_name): New function.
2652         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2653         (REGISTER_NAME): Define.
2654         (hppa64_register_name): Declare.
2655         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2656         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2657         (hppa64_register_name): New function.
2658         (hppa_register_name): New function.
2659         * arch-utils.c (legacy_register_name): Delete.
2660         * arch-utils.h (legacy_register_name): Delete.
2661
2662 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
2663
2664         * cli/cli-interp.c (cli_interpreter_resume): Update the
2665         cli_uiout's stream to gdb_stdout.
2666
2667 2003-07-03  Andrew Cagney  <cagney@redhat.com>
2668
2669         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2670         predicate.
2671         * gdbarch.h, gdbarch.c: Re-generate.
2672         * regcache.c (init_regcache_descr): Use legacy code when either
2673         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2674
2675 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2676
2677         * NEWS: Move "set logging" entry into GDB 6.0 section.
2678
2679 2003-07-02  Jim Blandy  <jimb@redhat.com>
2680
2681         * s390-tdep.c (struct frame_extra_info): new member:
2682         'stack_bought_valid'.
2683         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2684         initialize fextra_info->stack_bought.
2685         (s390_frameless_function_invocation): Don't trust the value of
2686         fextra_info_ptr->stack_bought unless
2687         fextra_info->stack_bought_valid is set.
2688
2689         New S390 prologue analyzer.
2690         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2691         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2692         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2693         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2694         compute_x_addr, s390_on_stack, s390_store,
2695         s390_get_signal_frame_info): New functions.
2696         (S390_NUM_SPILL_SLOTS): New macro.
2697         (s390_get_frame_info): Rewritten.
2698         (is_arg_reg): Deleted.
2699
2700         Break out the decoding of S/390 instructions into separate
2701         functions, to make it more legible, and easier to check
2702         against the spec.
2703         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2704         is_rx, is_rxe): New functions.
2705         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2706         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2707         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2708         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2709         enums for opcode values.  (Is this an improvement?)
2710
2711 2003-07-02  Andrew Cagney  <cagney@redhat.com>
2712
2713         * i386-tdep.c: Revert change committed as part of trad-frame code
2714         below.
2715
2716 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
2717
2718         * breakpoint.c (insert_catchpoint): Make static.
2719
2720 2003-07-02  Andreas Schwab  <schwab@suse.de>
2721
2722         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2723         former ia64_push_arguments and ia64_push_return_address, and use
2724         regcache functions instead of read/write_register.
2725         (ia64_gdbarch_init): Set push_dummy_call instead of
2726         deprecated_push_arguments and deprecated_push_return_address.
2727
2728 2003-07-01  Andreas Jaeger  <aj@suse.de>
2729
2730         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2731         before the call.
2732         Set %rax only to number of SSE registers used.
2733
2734 2003-07-01  Andrew Cagney  <cagney@redhat.com>
2735
2736         * trad-frame.h: Update comments, a -1 .addr is reserved.
2737         (trad_frame_value_p, trad_frame_addr_p): Declare.
2738         (trad_frame_reg_p): Declare.
2739         (trad_frame_set_value): Rename trad_frame_register_value.
2740         (trad_frame_set_unknown): Declare.
2741         * trad-frame.c (trad_frame_realreg_p): New function.
2742         (trad_frame_addr_p, trad_frame_value_p): New function.
2743         (trad_frame_set_unknown): New function.
2744         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2745         (trad_frame_prev_register): Use trad_frame_realreg_p,
2746         trad_frame_addr_p and trad_frame_value_p.
2747         (trad_frame_set_value): Rename trad_frame_register_value.
2748         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2749         and trad_frame_set_value.
2750
2751 2003-06-30  Jim Blandy  <jimb@redhat.com>
2752
2753         Patch from IBM (authors unspecified, probably Ulrich Weigand and
2754         Gerhard Tonn) for argument passing on the S/390 and S/390x:
2755         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2756         for 16 registers, and then 32 more bytes.
2757         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2758         New macros.
2759         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2760         Move up in the file, since it's now used by is_simple_arg.
2761         (is_simple_arg): Don't assume registers are four bytes long.
2762         Exclude all double arguments.  Extended floats are not simple
2763         args.
2764         (is_power_of_two): New function.
2765         (pass_by_copy_ref): Call is_power_of_two, and check that the
2766         length fits in a register, rather than listing all the acceptable
2767         sizes.  Extended floats are not passed by reference.
2768         (s390_push_arguments): Don't assume registers are four bytes long.
2769         Reserve an argument register to point to the buffer for structures
2770         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
2771         S390_STACK_FRAME_OVERHEAD.
2772
2773 2003-06-30  Andreas Schwab  <schwab@suse.de>
2774
2775         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2776         format error message.
2777
2778 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
2779
2780         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2781
2782 2003-06-30  David Carlton  <carlton@kealia.com>
2783
2784         Band-aid for PR c++/1245.
2785         * Makefile.in (cp-support.o): Depend on complaints_h.
2786         * cp-support.c: Include complaints.h.  Add declaration for
2787         find_last_component.
2788         (cp_find_first_component): Separate code into
2789         cp_find_first_component_aux.
2790         (cp_find_first_component_aux): Call demangled_name_complaint.
2791         (demangled_name_complaint): New.
2792
2793 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2794
2795         * remote.c (remote_write_bytes): Explicitly compute and then use
2796         the payload size.  Update comments to reflect.  Fixes problem of
2797         GDB not sending small packets as found by Fred Fish.
2798
2799 2003-06-30  Andrew Cagney  <cagney@redhat.com>
2800
2801         * remote.c (remote_async_wait): Fix -Wformat problem.
2802
2803 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2804
2805         * remote.c (remote_wait): Call error, and not warning, when the
2806         packet is corrupt.
2807         (remote_async_wait): Ditto.
2808
2809 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2810
2811         * sparc-tdep.c (sparc_y_regnum): Make external again.
2812
2813 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
2814
2815         * cli/cli-logging.c (pop_output_files): Add void to function
2816         definition.
2817
2818 2003-06-29  Andrew Cagney  <cagney@redhat.com>
2819
2820         * frame.c (frame_register_unwind): Use unsigned char when dumping
2821         the buffer contents.
2822
2823 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
2824
2825         * cli/cli-logging.c: New file.
2826         * cli-out.c (struct ui_out_data): Add original_stream.
2827         (cli_redirect): New function.
2828         (cli_ui_out_impl): Add cli_redirect.
2829         (cli_out_new): Initialize original_stream.
2830         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2831         (uo_redirect, ui_out_redirect): New.
2832         * ui-out.h (struct ui_out_impl): Add redirect member.
2833         (redirect_ftype): New.
2834         (ui_out_redirect): Add prototype.
2835         * Makefile.in: Add rules for cli-logging.c.
2836         * NEWS: Mention "set logging".
2837
2838 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2839
2840         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2841
2842 2003-06-27  Andrew Cagney  <cagney@redhat.com>
2843
2844         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2845         (m68hc11_gdbarch_init): Do not set call_dummy_address.
2846         * avr-tdep.c (avr_call_dummy_address): Delete function.
2847         (avr_gdbarch_init): Do not set call_dummy_address.
2848
2849 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2850
2851         * symfile.c (syms_from_objfile): Move variables to inner block.
2852         Move the checks for the non-mainline case a bit earlier to avoid
2853         doing some useless computations.
2854
2855 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
2856
2857         * dwarfread.c (decode_modified_type): Gag new compiler warning.
2858
2859 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
2860
2861         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2862         sections.
2863
2864 2003-06-26  Michael Chastain  <mec@shout.net>
2865
2866         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2867         gdb/testsuite/gdb.c++/pr-1210.exp.
2868
2869 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2870
2871         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2872         altivec_expression.h and altivec_registers.h.
2873
2874 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2875
2876         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2877         info->mach when MIPS16.  Patch suggested by Fred Fish.
2878
2879 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2880
2881         * utils.c (internal_vproblem): Print the problem to a reason
2882         buffer and then pass to query.  Make the msg variable more local.
2883
2884 2003-06-26  Andrew Cagney  <cagney@redhat.com>
2885
2886         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
2887         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
2888         * gdbarch.h, gdbarch.c: Re-generate.
2889         * frame-base.c (default_frame_args_address): Update.  Use
2890         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2891         not available.
2892         (default_frame_locals_address): Ditto for
2893         DEPRECATED_FRAME_LOCALS_ADDRESS.
2894         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2895         (vax_frame_num_args): Update.
2896         (vax_gdbarch_init): Update.
2897         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2898         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2899         * mcore-tdep.c (mcore_gdbarch_init): Update.
2900         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2901         * ia64-tdep.c (ia64_gdbarch_init): Update.
2902         * symtab.h (address_class): Update comments.
2903         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2904         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2905         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2906         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2907         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2908         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2909         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2910         * alpha-mdebug-tdep.c: Update.
2911         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2912
2913 2003-06-26  Andreas Jaeger  <aj@suse.de>
2914
2915         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2916         of SSE registers so that varargs functions work.  Rework handling
2917         of passing arguments on the stack.
2918         (x86_64_store_return_value): Return double and float values in SSE
2919         register.
2920
2921 2003-06-24  Michael Chastain  <mec@shout.net>
2922
2923         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2924         the "constructor breakpoints ignored" bug.
2925
2926 2003-06-25  David Carlton  <carlton@kealia.com>
2927
2928         * MAINTAINERS: Update e-mail address.
2929
2930 2003-06-24  Jim Blandy  <jimb@redhat.com>
2931
2932         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2933
2934         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2935         function.
2936         (ppc_linux_init_abi): Register it as the
2937         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2938
2939         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2940         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2941         method.
2942
2943         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2944         (ppc64_standard_linkage_target): Use it.
2945
2946 2003-06-23  Andrew Cagney  <cagney@redhat.com>
2947
2948         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2949         for 0 "int0" and 4 "int32" sized registers.
2950         * gdbtypes.c (builtin_type_int0): Define.
2951         (build_gdbtypes): Initialize builtin_type_int0.
2952         * gdbtypes.h (builtin_type_int0): Declare.
2953
2954 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
2955
2956         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2957         as characters are unsigned.
2958
2959 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2960
2961         PR gdb/1179
2962         * dwarfread.c (struct_type): Skip static fields without crashing.
2963
2964 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2965
2966         GDB 6.0 branch created.
2967         * README: Update.
2968         * PROBLEMS: Update.  Empty.
2969         * NEWS: Update.
2970
2971 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2972
2973         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2974         Suggested by Nick Hibma <n_hibma@webweaving.org>.
2975
2976 2003-06-22  Andrew Cagney  <cagney@redhat.com>
2977
2978         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2979         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
2980         Velikov.
2981
2982 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
2983
2984         * cli/cli-cmds.c (shell_escape): Silence warnings from old
2985         compilers.
2986
2987 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
2988
2989         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2990         argument of val_print.
2991         * cp-valprint.c (cp_print_value): Don't add the offset parameter
2992         to the address argument of baseclass_offset or target_read_memory.
2993         Do add it to the argument of cp_print_value_fields.
2994
2995 2003-06-21  Andrew Cagney  <cagney@redhat.com>
2996
2997         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2998         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2999         instead of 0..NUM_REGS.
3000         (mips_register_reggroup_p): New function.
3001         (mips_pseudo_register_write): New function.
3002         (mips_pseudo_register_read): New function.
3003         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3004         based on the register's type.
3005         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
3006         cooked.
3007         (mips_get_saved_register): Simplify.  Assert that REGNO is a
3008         pseudo / cooked.
3009         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
3010         (mips_register_type): Replace mips_register_virtual_type.  Map
3011         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
3012         when available.
3013         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
3014         that the register is cooked / virtual.
3015         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3016         Only get the extra info when needed.
3017         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3018         (mips32_heuristic_proc_desc): Fetch the cooked register.
3019         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3020         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3021         (mips_print_register): Use gdbarch_register_type, instead of
3022         REGISTER_VIRTUAL_TYPE.
3023         (print_gp_register_row): Use gdbarch_register_type, instead of
3024         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
3025         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3026         Print the pseudo / cooked registers.
3027         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3028         Print the pseudo / cooked registers.
3029         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
3030         REG_NUM is pseudo / cooked.
3031         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3032         (mips_n32n64_xfer_return_value): Ditto.
3033         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3034         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3035         (mips_register_sim_regno): New function.
3036         (mips_gdbarch_init): Set deprecated_register_byte,
3037         register_group_p, pseudo_register_write, pseudo_register_read,
3038         register_sim_regno, and num_pseudo_regs.  Set register_type,
3039         instead of register_virtual_type.
3040         * Makefile.in (mips-tdep.o): Update dependencies.
3041         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3042         REGISTER_VIRTUAL_TYPE.
3043         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3044         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3045         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3046         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3047         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3048
3049 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
3050
3051         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3052         * cli/cli-cmds.c: Include "gdb_vfork.h".
3053         (shell_escape): Use vfork.
3054
3055 2003-06-21  Andrew Cagney  <cagney@redhat.com>
3056
3057         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3058         32 bit floating-point register saves.
3059
3060         * frame.h (deprecated_unwind_get_saved_register): Delete.
3061         * frame.c (deprecated_unwind_get_saved_register): Delete function.
3062         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3063         and deprecated_get_next_frame_hack instead of
3064         deprecated_unwind_get_saved_register.
3065
3066         * mips-tdep.c (mips_dump_tdep): Do not print
3067         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3068
3069         * frame.c (get_frame_register): New function.
3070         (frame_unwind_register_signed): New function.
3071         (get_frame_register_signed): New function.
3072         (frame_unwind_register_unsigned): New function.
3073         (get_frame_register_unsigned): New function.
3074         * frame.h: Add comments on naming schema.
3075         (get_frame_register, frame_unwind_register_signed): Declare.
3076         (get_frame_register_signed, get_frame_register_signed): Declare.
3077         (frame_unwind_register_unsigned): Declare.
3078         (get_frame_register_unsigned): Declare.
3079
3080 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3081
3082         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3083
3084 2003-06-20  Theodore A. Roth  <troth@openavr.org>
3085
3086         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3087         (avr_read_sp): Ditto.
3088
3089 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
3090
3091         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3092         * config/arm/nm-linux.h: Likewise.
3093         * config/arm/tm-linux.h: Likewise.
3094         * config/ia64/nm-linux.h: Likewise.
3095         * config/ia64/tm-ia64.h: Likewise.
3096         * config/s390/tm-linux.h: Likewise.
3097         * config/s390/tm-s390.h: Likewise.
3098         * s390-nat.c: Likewise.
3099         * s390-tdep.c: Likewise.
3100
3101         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3102         * config/ia64/linux.mt: Likewise.
3103         * config/m68k/linux.mh: Likewise.
3104         * config/mips/linux.mt: Likewise.
3105         * config/powerpc/linux.mh: Likewise.
3106         * config/sh/linux.mt: Likewise.
3107
3108 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
3109
3110         * solib.c (solib_open): Change tests for whether to search
3111         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
3112         comments.
3113
3114 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3115
3116         * avr-tdep.c (avr_frame_address): Delete function.
3117         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3118         set_gdbarch_frame_args_address.
3119
3120 2003-06-19  Andrew Cagney  <cagney@redhat.com>
3121
3122         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3123         (REGISTER_CONVERT_FROM_TYPE): Delete.
3124         (mips_register_convert_to_type): Delete declaration.
3125         (mips_register_convert_from_type): Delete declaration.
3126         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
3127         kernel/.
3128
3129 2003-06-19  Michael Snyder  <msnyder@redhat.com>
3130
3131         * linux-nat.h: New file.
3132         * linux-nat.c: Include linux-nat.h.
3133         * lin-lwp.c: Include linux-nat.h.
3134         Move struct lwp_info def to linux-nat.h.
3135         * linux-proc.c: Include linux-nat.h.
3136         (linux_make_note_section): Iterate over lwps instead of threads.
3137         (linux_do_thread_registers): Use lwp instead of merged pid.
3138         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3139         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3140         Add dependency on linux_nat_h.
3141
3142 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3143
3144         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3145
3146 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3147
3148         * varobj.c (get_type, get_target_type): Use check_typedef.
3149
3150 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3151
3152         * breakpoint.c (insert_catchpoint): Call internal_error.
3153
3154 2003-06-19  Theodore A. Roth  <troth@openavr.org>
3155
3156         * avr-tdep.c (avr_push_dummy_code): Delete function.
3157         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3158
3159 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
3160
3161         * arch-utils.c (default_prepare_to_proceed): Remove.
3162         (generic_prepare_to_proceed): Remove.
3163         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3164         (generic_prepare_to_proceed): Remove prototype.
3165         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3166         * gdbarch.c: Regenerate.
3167         * gdbarch.h: Regenerate.
3168         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3169         * hppah-nat.c (hppa_switched_threads): Remove.
3170         * infrun.c (prepare_to_proceed): New static function, copied from
3171         generic_prepare_to_proceed.  Remove select_it argument.
3172         (proceed): Call prepare_to_proceed.
3173         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3174         variables.
3175         (ptrace_wait): Don't set the removed variables.
3176         (hppa_switched_threads): Remove.
3177         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3178         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3179         (lin_lwp_prepare_to_proceed): Remove prototype.
3180         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3181         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3182
3183 2003-06-18  Theodore A. Roth  <troth@openavr.org>
3184
3185         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3186         trad-frame.h.
3187         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3188         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3189         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3190         (AVR_PROLOGUE_*): Enumerate prologue types.
3191         (struct frame_extra_info): Remove.
3192         (struct avr_unwind_cache): Define.
3193         (avr_write_sp): Delete function.
3194         (avr_read_fp): Ditto.
3195         (avr_init_extra_frame_info): Ditto.
3196         (avr_pop_frame): Ditto.
3197         (avr_frame_saved_pc): Ditto.
3198         (avr_saved_pc_after_call): Ditto.
3199         (avr_push_return_address): Ditto.
3200         (avr_frame_chain): Ditto.
3201         (avr_store_struct_return): Ditto.
3202         (avr_push_arguments): Ditto.
3203         (avr_scan_prologue): Update comments. Changed to set up the info for
3204         cache unwinding. Now returns end of prologue PC.
3205         (avr_skip_prologue): Better handling of functions lacking a prologue
3206         by using avr_scan_prologue.
3207         (avr_scan_arg_moves): New function.
3208         (avr_saved_regs_unwinder): Ditto.
3209         (avr_frame_unwind_cache): Ditto.
3210         (avr_unwind_pc): Ditto.
3211         (avr_frame_this_id): Ditto.
3212         (avr_frame_prev_register): Ditto.
3213         (avr_frame_p): Ditto.
3214         (avr_frame_base_address ): Ditto.
3215         (avr_unwind_dummy_id): Ditto.
3216         (avr_push_dummy_code): Ditto.
3217         (push_stack_item): Ditto.
3218         (pop_stack_item): Ditto.
3219         (avr_push_dummy_call): Ditto.
3220         (struct stack_item): Define.
3221         (avr_frame_unwind): Declare structure.
3222         (avr_frame_base): Ditto.
3223         (avr_gdbarch_init): Remove calls to
3224         set_gdbarch_deprecated_init_frame_pc,
3225         set_gdbarch_deprecated_target_read_fp,
3226         set_gdbarch_deprecated_dummy_write_sp,
3227         set_gdbarch_deprecated_fp_regnum,
3228         set_gdbarch_deprecated_push_arguments,
3229         set_gdbarch_deprecated_push_return_address,
3230         set_gdbarch_deprecated_pop_frame,
3231         set_gdbarch_deprecated_store_struct_return,
3232         set_gdbarch_deprecated_frame_init_saved_regs,
3233         set_gdbarch_deprecated_init_extra_frame_info,
3234         set_gdbarch_deprecated_frame_chain,
3235         set_gdbarch_deprecated_frame_saved_pc,
3236         set_gdbarch_deprecated_saved_pc_after_call.
3237         Add calls to set_gdbarch_push_dummy_call,
3238         set_gdbarch_push_dummy_code,
3239         frame_unwind_append_predicate,
3240         frame_base_set_default,
3241         set_gdbarch_unwind_dummy_id,
3242         set_gdbarch_unwind_pc.
3243         Wrap a long line.
3244
3245 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
3246
3247         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3248         registers for H8/300S.
3249         (h8300_print_registers_info): Ditto.
3250         (h8300_gdbarch_init): Accommodate register count for H8/300S.
3251
3252 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
3253
3254         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3255         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3256         (lin_lwp_wait): Likewise.  Update comments.
3257         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3258         (pull_pid_from_list, linux_record_stopped_pid): New.
3259
3260 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3261
3262         * ada-lang.c (scan_discrim_bound): Name first argument.
3263         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3264         declared by ALL_BLOCK_SYMBOLS.
3265
3266 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
3267
3268         * ada-tasks.c (find_function_in_inferior): Don't declare it.
3269         ("regcache.h"): Include it.
3270         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3271
3272 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3273
3274         * NEWS: Mention gdbserver detach change and "disconnect" command.
3275         * infcmd.c (disconnect_command): New function.
3276         (_initialize_infcmd): Add ``disconnect'' command.
3277         * remote.c (remote_async_detach): Delete.
3278         (remote_detach): Merge remote_async_detach.
3279         (remote_disconnect): New.
3280         (init_remote_ops): Set to_disconnect.
3281         (init_remote_cisco_ops): Likewise.
3282         (init_remote_async_ops): Likewise.  Use remote_detach.
3283         * target.c (cleanup_target): Default to_disconnect.
3284         (update_current_target): Inherit to_disconnect.
3285         (target_disconnect, debug_to_disconnect): New functions.
3286         (setup_target_debug): Set to_disconnect.
3287         * target.h (struct target_ops): Add to_disconnect.
3288         (target_disconnect): Add prototype.
3289
3290 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3291
3292         * breakpoint.c (insert_catchpoint): New function.
3293         (insert_breakpoints): Use catch_exceptions to call
3294         insert_catchpoint.  Disable catchpoints if they fail to insert.
3295
3296 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3297
3298         * symfile.c (reread_symbols): Clear sym_private.
3299
3300 2003-06-17  Andrew Cagney  <cagney@redhat.com>
3301
3302         * trad-frame.h (struct frame_info): Add opaque declaration.
3303         * remote-fileio.h (struct cmd_list_element): Add opaque
3304         declaration.
3305         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3306         comments.
3307
3308 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
3309
3310         * remote.c (remote_prepare_to_store): Replace call to
3311         deprecated_read_register_bytes with multiple regcache_raw_read
3312         calls.
3313
3314 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3315
3316         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3317         (nto_find_and_open_solib): Likewise.
3318         (nto_init_solib_absolute_prefix): Likewise.
3319         (_initialize_nto_tdep): Fix indentation.
3320
3321 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3322
3323         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3324
3325 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
3326
3327         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3328
3329 2003-06-17  Jim Blandy  <jimb@redhat.com>
3330
3331         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3332
3333 2003-06-16  Theodore A. Roth  <troth@openavr.org>
3334
3335         * avr-tdep.c (avr_extract_return_value): New function.
3336         (avr_gdbarch_init): Set extract_return_value method.
3337
3338 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3339
3340         * frame.h (deprecated_get_next_frame_hack): Declare.
3341         * frame.c (legacy_saved_regs_prev_register): Only require
3342         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
3343         there are always saved regs.
3344         (deprecated_generic_get_saved_register): Do not require
3345         DEPRECATED_FRAME_INIT_SAVED_REGS.
3346         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3347         use frame ID unwind instead.
3348         (deprecated_get_next_frame_hack): New function.
3349
3350 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3351
3352         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
3353         (h8300_push_dummy_call): ...this function.  Some minor optimization.
3354         (h8300_push_return_address): Remove.
3355         (h8300_gdbarch_init): Remove calls to
3356         set_gdbarch_deprecated_dummy_write_sp,
3357         set_gdbarch_deprecated_push_arguments and
3358         set_gdbarch_deprecated_push_return_address.
3359         Add call to set_gdbarch_push_dummy_call.
3360
3361 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
3362
3363         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3364         (E_PSEUDO_EXR_REGNUM): Ditto.
3365         (h8300_is_argument_spill): Check for instructions moving argument
3366         registers into safe registers.
3367         (h8300_skip_prologue): Check for stm instruction to push registers
3368         used for register variables onto stack.
3369         (gdb_print_insn_h8300): Remove.
3370         (h8300_examine_prologue): Add a comment.
3371         (h8300_register_name): Take pseudo registers into account.
3372         (h8300s_register_name): Ditto.
3373         (h8300sx_register_name): Ditto.
3374         (h8300_print_register): Ditto.
3375         (h8300_print_registers_info): Define "nice" printing order.
3376         (h8300_saved_pc_after_call): Take pseudo registers into account.
3377         (h8300_register_type): Ditto.  Return type used for remote connection
3378         when requesting real CCR or EXR register, return actual type when
3379         requesting pseudo CCR or EXR.
3380         (h8300_pseudo_register_read): New function.
3381         (h8300_pseudo_register_write): Ditto.
3382         (h8300_dbg_reg_to_regnum): Ditto.
3383         (h8300s_dbg_reg_to_regnum): Ditto.
3384         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3385         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3386         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3387         set_gdbarch_print_insn architecture dependent.
3388         Call set_gdbarch_pseudo_register_read and
3389         set_gdbarch_pseudo_register_write.
3390         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3391
3392 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3393
3394         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3395         * gdbarch.h, gdbarch.c: Re-generate.
3396         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3397         * s390-tdep.c (s390_gdbarch_init): Update.
3398         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3399         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3400         * mips-tdep.c (mips_gdbarch_init): Update.
3401         * mcore-tdep.c (mcore_gdbarch_init): Update.
3402         * cris-tdep.c (cris_gdbarch_init): Update.
3403         * infcall.c (call_function_by_hand): Update.
3404         * ia64-tdep.c (ia64_push_arguments): Update comment.
3405         * frame.c (legacy_get_prev_frame): Do not assume
3406         SAVE_DUMMY_FRAME_TOS_P.
3407         * dummy-frame.c (find_dummy_frame): Update comment.
3408
3409 2003-06-16  Andrew Cagney  <cagney@redhat.com>
3410
3411         * regcache.c (do_cooked_read): Do not use register_valid_p.
3412
3413 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3414
3415         * avr-tdep.c (avr_register_type): Remove a blank line.
3416         (avr_scan_prologue): Correct some comments.
3417
3418 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3419
3420         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3421         prologue types.
3422         Properly scan prologues generated by gcc with the -mcall-prologues
3423         option.
3424         Add code to scan -mcall-prologues for mega devices.
3425
3426 2003-06-15  Theodore A. Roth  <troth@openavr.org>
3427
3428         * avr-tdep.c (avr_register_byte): Delete function.
3429         (avr_register_raw_size): Delete function.
3430         (avr_register_virtual_size): Delete function.
3431         (avr_register_virtual_type): Delete function.
3432         (avr_register_type): New function.
3433         (avr_address_to_pointer): Remove unused code.
3434         (avr_read_fp): Need to read FP as two separate bytes due to change to
3435         avr_register_type() usage.
3436         (avr_gdbarch_init): Don't set deprecated_register_size.
3437         Don't set deprecated_register_bytes.
3438         Don't set deprecated_register_byte.
3439         Don't set deprecated_register_raw_size.
3440         Don't set deprecated_max_register_raw_size.
3441         Don't set deprecated_register_virtual_size.
3442         Don't set deprecated_max_register_virtual_size.
3443         Don't set deprecated_register_virtual_type.
3444         Set register_type method.
3445
3446 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
3447
3448         * Makefile.in (linux-nat.o): Add rule.
3449         * linux-nat.c: New file.
3450         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3451         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3452         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3453         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3454         * config/arm/linux.mh (NATDEPFILES): Likewise.
3455         * config/i386/linux.mh (NATDEPFILES): Likewise.
3456         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3457         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3458         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3459         * config/mips/linux.mh (NATDEPFILES): Likewise.
3460         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3461         * config/s390/s390.mh (NATDEPFILES): Likewise.
3462         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3463
3464 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3465
3466         * i387-tdep.c: Reorder includes, fix some whitespace issues and
3467         replace out-of-date comment.
3468
3469 2003-06-15  Andrew Cagney  <cagney@redhat.com>
3470
3471         * rdi-share/host.h (Fail): Change to a varargs function.
3472         * remote-rdi.c (Fail): Update.
3473
3474 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3475
3476         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3477         (i386_convert_register_p, i386_register_to_value,
3478         i386_register_from_value): Handle types longer than 8 bytes.
3479
3480 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
3481
3482         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3483         Move floating-point code to new function in i387-tdep.c.
3484         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3485         New functions containing code moved here from i386-tdep.c.
3486         * i387-tdep.h: Add opaque declaration for `struct type'.
3487         (i387_register_to_value, i387_value_to_register): New prototypes.
3488         * x86-64-tdep.c (x86_64_convert_register_p): New function.
3489         (x86_64_init_abi): Set convert_register_p, register_to_value and
3490         value_to_register here.
3491
3492 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3493
3494         * mips-tdep.c (mips_register_to_value): Make static.
3495         (mips_value_to_register): Make static.
3496         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3497         * ia64-tdep.c (ia64_register_raw_size): Make static.
3498         (ia64_register_virtual_size): Make static.
3499         (ia64_register_byte): Make static.
3500         * i387-tdep.c: Include "i387-tdep.h".
3501         (print_387_control_word): Delete function.
3502         (print_387_status_word): Delete function.
3503         (print_387_status_bits): Delete function.
3504         (print_387_control_bits): Delete function.
3505         * Makefile.in (i387-tdep.o): Update dependencies.
3506         * rdi-share/host.h (Fail): Declare.
3507         * remote-rdi.c (Fail): Update to match declaration.
3508
3509 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3510
3511         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3512         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3513         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3514         * config/djgpp/fnchange.lst: Delete "remote-array.c".
3515         * README: Delete reference to remote-array.
3516         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3517         (remote-array.o): Delete target.
3518         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3519         * remote-array.c: Delete file.
3520
3521 2003-06-14  Andrew Cagney  <cagney@redhat.com>
3522             Mark Kettenis  <kettenis@gnu.org>
3523
3524         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3525         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3526         parameter with "frame".
3527         * gdbarch.h, gdbarch.c: Re-generate.
3528         * frame.h (put_frame_register): Declare.
3529         * frame.c (put_frame_register): New function.
3530         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3531         (legacy_register_to_value): Rewrite, use "frame" to get the
3532         register value.
3533         (legacy_value_to_register): Rewrite, use "frame" to find the
3534         register's location before storing.
3535         * arch-utils.h (legacy_convert_register_p): Update.
3536         (legacy_register_to_value, legacy_value_to_register): Update.
3537         * findvar.c (value_from_register): Rewrite, eliminate use of
3538         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3539         "frame" to REGISTER_TO_VALUE.
3540         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3541         lval_reg_frame_relative + lval_register branch of the switch.  Do
3542         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
3543         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3544         I386_EDI_REGNUM): New defines.
3545         (i386_next_regnum, i386_convert_register_p,
3546         i386_register_to_value, i386_value_to_register): New functions.
3547         (i386_register_convertible, i386_register_convert_to_virtual,
3548         i386_convert_to_raw): Remove functions.
3549         (i386_gdbarch_init): Set convert_register_p, register_to_value and
3550         value_to_register instead of register_convertible,
3551         register_convert_to_virtual and register_convert_to_raw.
3552         * mips-tdep.c (mips_convert_register_p): New function.
3553         (mips_value_to_register): Replace mips_register_convert_from_type.
3554         (mips_register_to_value): Replace mips_register_convert_to_type.
3555         (mips_gdbarch_init): Set conver_register_p, value_to_register and
3556         register_to_value.
3557         * alpha-tdep.c (alpha_convert_register_p): Update.
3558         (alpha_value_to_register): Update, store the register.
3559         (alpha_register_to_value): Update, fetch the register.
3560
3561 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3562
3563         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3564         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3565         Don't set deprecated_call_dummy_words.
3566         Remove commented out set_gdbarch_believe_pcc_promotion() call.
3567         Don't set remote_translate_xfer_address.
3568         (avr_io_reg_read_command): Remove commented out debug printf.
3569         Wrap a long line.
3570
3571 2003-06-14  Theodore A. Roth  <troth@openavr.org>
3572
3573         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3574         causes gdb to seg fault.
3575
3576 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
3577
3578         * sparc-nat.c (fetch_inferior_registers): Correct
3579         a reference to "registers".
3580
3581 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
3582
3583         * Makefile.in (exc_request_U_h): Define
3584         (exc_request_S_h): Likewise.
3585         (msg_reply_S_h): Likewise.
3586         (msg_U_h): Likewise.
3587         (notify_S_h): Likewise.
3588         (process_reply_S_h): Likewise.
3589         (gnu-nat.o): Depend on gdb_obstack_h
3590         * gnu-nat.c: Include "gdb_obstack.h".
3591
3592 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3593
3594         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3595         * gdbarch.h, gdbarch.c: Re-generate.
3596
3597 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3598
3599         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
3600         when deprecated REGISTER macros can be deleted.
3601         * gdbarch.h, gdbarch.c: Re-generate.
3602
3603 2003-06-13  Jim Blandy  <jimb@redhat.com>
3604
3605         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3606         Linux entry point symbols for _dl_debug_state, too.
3607
3608 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3609
3610         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3611         available, do not use the FP register, and always save the TOS.
3612         * dummy-frame.c (dummy_frame_this_id): Do not assert
3613         SAVE_DUMMY_FRAME_TOS.
3614         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3615         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3616         (i386_push_dummy_call): Add 8 to the returned SP.
3617         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3618         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3619         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3620         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3621         (x86_64_push_dummy_call): Return "sp + 16".
3622         (x86_64_init_abi): Do not set save_dummy_frame_tos.
3623         * alpha-tdep.c (alpha_gdbarch_init): Do not set
3624         save_dummy_frame_tos.
3625
3626 2003-06-13  Jim Blandy  <jimb@redhat.com>
3627
3628         * frv-tdep.c (frv_use_struct_convention): Delete static
3629         declaration for function deleted in my change of 2003-06-12.
3630
3631 2003-06-13  Theodore A. Roth  <troth@openavr.org>
3632
3633         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3634         (avr_pointer_to_address): Shift code addrs left 1 bit.
3635         (avr_convert_from_func_ptr_addr): Delete function since operation is
3636         better handled by avr_address_to_pointer and avr_pointer_to_address.
3637         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3638
3639 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
3640
3641         From Kelley Cook  <kelleycook@wideopenwest.com>:
3642         * configure.host: Accept i[34567]86 variants.
3643         * configure.tgt: Likewise.
3644         * nlm/configure.in: Likewise.
3645         * nlm/configure: Regenerated.
3646
3647 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
3648
3649         * arm-tdep.c (solib-svr4.h): Dont' include it.
3650         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3651         * arm-linux-tdep.c: ... here.  Make static.
3652         (arm_linux_init_abi): Register it.
3653         (solib-svr4.h): Include it.
3654         * Makefile.in: Update dependencies.
3655         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3656         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3657
3658 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3659
3660         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3661         indicate registers used for return values.
3662         (struct frame_extra_info): Drop args_pointer and locals_pointer.
3663         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3664         members.
3665         (h8300_init_extra_frame_info): Ditto.
3666         (h8300_frame_locals_address): Removed.
3667         (h8300_frame_args_address): Removed.
3668         (h8300_extract_return_value): Use new regcache structure. Only care
3669         for 16 bit CPUs.
3670         (h8300h_extract_return_value): Same function for 32 bit CPUs.
3671         (h8300_store_return_value): Use new regcache structure. Only care
3672         for 16 bit CPUs.
3673         (h8300h_store_return_value): Same function for 32 bit CPUs.
3674         (h8300_store_struct_return): Removed.
3675         (h8300_extract_struct_value_address): Use new regcache structure.
3676         (h8300h_extract_struct_value_address): Removed.
3677         (h8300_push_dummy_code): New function.
3678         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3679         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
3680         set_gdbarch_store_return_value architecture dependent.
3681         Call set_gdbarch_push_dummy_code and
3682         set_gdbarch_extract_struct_value_address.
3683         Remove calls to set_gdbarch_frame_args_address,
3684         set_gdbarch_frame_locals_address,
3685         set_gdbarch_deprecated_store_struct_return,
3686         set_gdbarch_deprecated_extract_return_value,
3687         set_gdbarch_deprecated_extract_struct_value_address,
3688         set_gdbarch_deprecated_call_dummy_words and
3689         set_gdbarch_deprecated_sizeof_call_dummy_words.
3690
3691 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
3692
3693         * h8300-tdep.c (h8300_register_byte): Remove.
3694         (h8300h_register_byte): Remove.
3695         (h8300_register_virtual_type): Remove.  Substitute by...
3696         (h8300_register_type): New function.
3697         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3698         (h8300h_extract_struct_value_address): Ditto.
3699         (h8300_gdbarch_init): Drop calls to
3700         set_gdbarch_deprecated_register_byte and
3701         set_gdbarch_deprecated_register_virtual_type.
3702         Add call to set_gdbarch_register_type.
3703
3704 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3705
3706         * gdbarch.sh: Update comments on registers.
3707         (deprecated_register_byte): Rename register_byte.
3708         (deprecated_register_raw_size): Rename register_raw_size.
3709         (deprecated_register_virtual_size): Rename register_virtual_size.
3710         (deprecated_register_virtual_type): Rename register_virtual_type.
3711         * gdbarch.h, gdbarch.c: Re-generate.
3712         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3713         * vax-tdep.c (vax_gdbarch_init): Update.
3714         * v850-tdep.c (v850_gdbarch_init): Update.
3715         * sparc-tdep.c (sparc_gdbarch_init): Update.
3716         * sh-tdep.c (sh_gdbarch_init): Update.
3717         * s390-tdep.c (s390_gdbarch_init): Update.
3718         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3719         * ns32k-tdep.c: Update.
3720         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3721         * mips-tdep.c (mips_gdbarch_init): Update.
3722         * mcore-tdep.c (mcore_gdbarch_init): Update.
3723         * m68k-tdep.c (m68k_gdbarch_init): Update.
3724         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3725         * ia64-tdep.c (ia64_gdbarch_init): Update.
3726         * hppa-tdep.c (hppa_gdbarch_init): Update.
3727         * h8300-tdep.c (h8300_gdbarch_init): Update.
3728         * frv-tdep.c (frv_gdbarch_init): Update.
3729         * cris-tdep.c (cris_gdbarch_init): Update.
3730         * avr-tdep.c (avr_gdbarch_init): Update.
3731         * alpha-tdep.c (alpha_gdbarch_init): Update.
3732         * arm-tdep.c (arm_gdbarch_init): Update.
3733
3734 2003-06-13  Andrew Cagney  <cagney@redhat.com>
3735
3736         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3737         mips_o32_use_struct_convention with always_use_struct_convention.
3738
3739 2003-06-12  David Carlton  <carlton@kealia.com>
3740
3741         * cp-namespace.c (cp_set_block_scope): Comment out
3742         processing_has_namespace_info branch.
3743
3744 2003-06-12  Jim Blandy  <jimb@redhat.com>
3745
3746         Recognize and skip 64-bit PowerPC Linux linkage functions.
3747         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3748         insn_pattern, insns_match_pattern, d_field, ds_field): New
3749         functions, macros, and types for working with PPC instructions.
3750         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3751         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3752         ppc64_skip_trampoline_code): New functions, variables, and macros
3753         for recognizing and skipping linkage functions.
3754         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3755         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3756
3757         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3758         register offsets for both the 32- and 64-bit interfaces.
3759
3760         Actually finish the job started by my change of 2003-05-29.
3761         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3762         other #definition of this.
3763         (ppc_linux_skip_trampoline_code): Remove declaration.
3764         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3765         static.
3766         (ppc_linux_init_abi): Register it as the skip_trampoline_code
3767         method for GDBARCH.
3768
3769         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3770         'long' on ppc64-*-linux*.
3771
3772         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3773         isn't #defined, assume the register doesn't exist: act as if
3774         tdep->ppc_mq_regnum were -1.
3775
3776         * configure.host, configure.tgt: Add entries for
3777         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3778         powerpc/linux.mt.
3779         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3780         New files.
3781
3782         * arch-utils.c (always_use_struct_convention): New function.
3783         * arch-utils.h (always_use_struct_convention): New prototype.
3784         * alpha-tdep.c (alpha_use_struct_convention): Delete.
3785         (alpha_gdbarch_init): Register always_use_struct_convention,
3786         instead of alpha_use_struct_convention.
3787         * cris-tdep.c (cris_use_struct_convention): Delete.
3788         (cris_gdbarch_init): Register always_use_struct_convention,
3789         instead of cris_use_struct_convention.
3790         * frv-tdep.c (frv_use_struct_convention): Delete.
3791         (frv_gdbarch_init): Register always_use_struct_convention,
3792         instead of frv_use_struct_convention.
3793         * h8300-tdep.c (h8300_use_struct_convention): Delete.
3794         (h8300_gdbarch_init): Register always_use_struct_convention,
3795         instead of h8300_use_struct_convention.
3796         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3797         (mips_o32_gdbarch_init): Register always_use_struct_convention,
3798         instead of mips_o32_use_struct_convention.
3799
3800 2003-06-12  Andrew Cagney  <cagney@redhat.com>
3801
3802         * wince.c: Include "mips-tdep.h".
3803         * mips-tdep.h (mips_next_pc): Declare.
3804         * mcore-tdep.c: Make more local functions static.
3805         * Makefile.in (wince.o): Update dependencies.
3806
3807 2003-06-12  David Carlton  <carlton@kealia.com>
3808
3809         * symtab.c (lookup_symbol_aux_minsyms): Replace
3810         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3811         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3812         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3813         SYMBOL_NATURAL_NAME.
3814
3815 2003-06-12  Andreas Schwab  <schwab@suse.de>
3816
3817         * Makefile.in (tuiDisassem.o): Update dependencies.
3818
3819 2003-06-12  David Carlton  <carlton@bactrian.org>
3820
3821         * symtab.h: Delete declaration of make_symbol_overload_list.
3822         Add declaration of lookup_partial_symbol.
3823         * symtab.c (remove_params): Move to cp-support.c.
3824         (overload_list_add_symbol, make_symbol_overload_list)
3825         (sym_return_val_size, sym_return_val_index): Ditto.
3826         (lookup_partial_symbol): Make extern.
3827         * cp-support.h: Add declaration of make_symbol_overload_list.
3828         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3829         symtab.h, and block.h.
3830         (remove_params): Move here from symtab.c.
3831         (overload_list_add_symbol, make_symbol_overload_list)
3832         (sym_return_val_size, sym_return_val_index): Ditto.
3833         * valops.c: Include cp-support.h.
3834         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3835         frame_h, and block_h.
3836         (valops.o): Depend on cp_support_h.
3837
3838 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
3839
3840         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3841         substitute by NUM_REGS throughout.
3842         (h8300_register_name): Only care for H8/300 and H8/300H registers.
3843         (h8300s_register_name): New function for H8S registers.
3844         (h8300sx_register_name): Ditto for H8SX registers.
3845         (h8300_print_register): Revise register printing, avoid depending
3846         on 32 bit long.
3847         (h8300_register_byte): Only care for H8/300 registers.
3848         (h8300h_register_byte): New function for any other architecture.
3849         (h8300_register_raw_size): Remove.
3850         (h8300_register_virtual_type): Revise to return actually useful
3851         type.
3852         (h8300_extract_struct_value_address): Only care for H8/300 registers.
3853         (h8300h_extract_struct_value_address): New function for any other
3854         architecture.
3855         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
3856         set_gdbarch_register_name, set_gdbarch_register_byte,
3857         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3858         Remove calls to set_gdbarch_deprecated_register_size,
3859         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3860         set_gdbarch_deprecated_max_register_raw_size,
3861         set_gdbarch_register_virtual_size and
3862         set_gdbarch_deprecated_max_register_virtual_size entirely.
3863         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3864         set_gdbarch_long_double_bit.
3865
3866 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3867
3868         * doublest.c (convert_doublest_to_floatformat): When dealing
3869         with the implied integer bit, only alter mant_bits if we are
3870         processing a full 32 bits of mantissa.
3871
3872 2003-06-11  David Carlton  <carlton@bactrian.org>
3873
3874         * dictionary.h: New.
3875         * dictionary.c: New.
3876         * block.h: Add opaque declaration for struct dictionary.
3877         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3878         'sym' members.
3879         (BLOCK_DICT): New macro.
3880         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3881         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3882         BLOCK_SHOULD_SORT.
3883         (ALL_BLOCK_SYMBOLS): Update definition.
3884         * Makefile.in (SFILES): Add dictionary.c.
3885         (dictionary_h): New.
3886         (COMMON_OBS): Add dictionary.o.
3887         (dictionary.o): New.
3888         (ada-lang.o): Depend on dictionary_h.
3889         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3890         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3891         (mi-cmd-stack.o): Ditto.
3892         (gdbtk-cmds.o): Update dependencies.
3893         (gdbtk-stack.o): Ditto.
3894         * ada-lang.c: Include dictionary.h.
3895         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3896         (fill_in_ada_prototype, debug_print_block): Ditto.
3897         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3898         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
3899         'is_sorted'.
3900         * mdebugread.c: Include dictionary.h.
3901         (struct parse_stack): Delete 'maxsyms' member.
3902         (parse_symbol): Update calls to new_block.  Delete calls to
3903         shrink_block.  Use dictionary methods.
3904         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3905         Update calls to new_symtab.  Don't maintain maxsyms data.
3906         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3907         (add_symbol): Just call dict_add_symbol.
3908         (new_symtab): Delete 'maxsyms' argument.
3909         (new_symtab): Update calls to new_block.
3910         (new_block): Delete 'maxsyms' argument; add 'function' argument.
3911         (shrink_block): Delete function.
3912         (fixup_sigtramp): Update call to new_block.  Add symbol via
3913         dict_add_symbol.
3914         * jv-lang.c: Include dictionary.h.
3915         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3916         appropriately.  Set class_symtab->free_func.  Make sure the
3917         blockvector is big enough to hold two blocks.
3918         (add_class_symtab_symbol): Use dictionary methods.
3919         (free_class_block): New function.
3920         (type_from_class): Replace explicit iteration by
3921         ALL_BLOCK_SYMBOLS.
3922         * symtab.h (struct symtab): Replace 'free_ptr' method by
3923         'free_func'.
3924         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3925         sort_symtab_syms.
3926         * dwarfread.c (psymtab_to_symtab_1): Delete call to
3927         sort_symtab_syms.
3928         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3929         Include dictionary.h.
3930         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3931         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3932         sort_symtab_syms.
3933         * objfiles.c: Include dictionary.h.
3934         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3935         * buildsym.c: Include dictionary.h.
3936         (finish_block): Use dictionary methods.
3937         (end_symtab): Set free_func to NULL, not free_ptr.
3938         * tracepoint.c: Include dictionary.h.
3939         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3940         (scope_info): Ditto.
3941         * stack.c: Include dictionary.h.
3942         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3943         (print_block_frame_labels, print_frame_arg_vars)
3944         (print_frame_args): Ditto.
3945         * symmisc.c (free_symtab_block): Use dictionary methods.
3946         (dump_symtab): Ditto.
3947         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3948         Include dictionary.h.
3949         * symfile.h: Delete declarations of sort_block_syms,
3950         sort_symtab_syms.
3951         * symfile.c (sort_block_syms): Delete.
3952         (sort_symtab_syms): Delete.
3953         * symtab.c: Include dictionary.h.
3954         (lookup_block_symbol): Use dictionary iterators.
3955         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3956         (search_symbols, make_symbol_completion_list): Ditto.
3957         (make_symbol_overload_list): Ditto.
3958         * valops.c (value_of_local): Use dict_empty.
3959         Include dictionary.h.
3960
3961 2003-06-11  J. Brobecker  <brobecker@gnat.com>
3962
3963         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3964
3965 2003-06-11  David Carlton  <carlton@bactrian.org>
3966
3967         * block.h (BLOCK_SHOULD_SORT): Delete.
3968         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3969         blocks.
3970         * ada-lang.c (ada_add_block_symbols): Ditto.
3971         * symfile.c (sort_block_syms): Delete.
3972         (sort_symtab_syms): Ditto.
3973         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3974         declarations.
3975         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3976         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3977         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3978         * dwarfread.c (psymtab_to_symtab_1): Ditto.
3979         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3980         * mdebugread.c (psymtab_to_symtab_1): Ditto.
3981         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3982
3983 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
3984
3985         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3986         bits to 128.
3987
3988 2003-06-11  Andrew Cagney  <cagney@redhat.com>
3989
3990         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3991         REGISTER_CONVERTIBLE.
3992         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3993         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3994         * gdbarch.h, gdbarch.c: Re-generate.
3995         * arch-utils.h (deprecated_register_convertible_not): Rename
3996         generic_register_convertible_not.
3997         * arch-utils.c (deprecated_register_convertible_not): Rename
3998         generic_register_convertible.
3999         (legacy_convert_register_p, legacy_register_to_value): Update.
4000         * sh-tdep.c (sh64_push_arguments): Update.
4001         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4002         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4003         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4004         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4005         * arch-utils.c (legacy_value_to_register): Update.
4006         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4007         (rs6000_register_convert_to_raw): Make parameter "from" const.
4008         * mips-tdep.c (mips_gdbarch_init): Update.
4009         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
4010         * infcmd.c (default_print_registers_info): Update.
4011         * ia64-tdep.c (ia64_gdbarch_init): Update.
4012         (ia64_register_convert_to_raw): Make parameter "from" const.
4013         * i386-tdep.c (i386_gdbarch_init): Update.
4014         (i386_register_convert_to_raw): Update.
4015
4016 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4017
4018         * remote-fileio.c: Include "remote-fileio.h".
4019         * Makefile.in (remote-fileio.o): Update dependencies.
4020         (remote_fileio_h): Fix typo.
4021
4022 2003-06-11  Andrew Cagney  <cagney@redhat.com>
4023
4024         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4025         (xstormy16_save_dummy_frame_tos): Make static.
4026         (_initialize_xstormy16_tdep): Add declaration.
4027         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4028         * v850-tdep.c: Make local functions static.
4029         (_initialize_v850_tdep): Add declaration.
4030         * sparc-tdep.c: Make local functions static.
4031         (_initialize_sparc_tdep): Add declaration.
4032         * sh-tdep.c: Make local functions static.
4033         (_initialize_sh_tdep): Add declaration.
4034         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4035         * s390-tdep.c: Make local functions static.
4036         (_initialize_s390_tdep): Add declaration.
4037         * dbxread.c (find_stab_function_addr): Make static.
4038         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4039         * ocd.c (_initialize_remote_ocd): Add declaration.
4040         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4041         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4042         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4043         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4044         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4045         * remote-array.c (_initialize_array): Add declaration.
4046         (_initialize_remote_monitors): Add declaration.
4047         * remote-mips.c: Make local functions static.
4048         (_initialize_remote_mips): Add declaration.
4049         * mcore-tdep.c: Make all local functions static.
4050         (_initialize_mcore_tdep): Add declaration.
4051         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4052         * abug-rom.c (_initialize_abug_rom): Add declaration.
4053         * rom68k-rom.c (_initialize_rom68k): Add declaration.
4054         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4055         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4056         * remote-est.c (_initialize_est): Add declaration.
4057         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4058         (m68hc11_call_dummy_address): Make static.
4059         * ia64-tdep.c: Make local functions static.
4060         (_initialize_ia64_tdep): Add declaration.
4061         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4062         * monitor.c (monitor_wait_filter): Make static.
4063         (_initialize_remote_monitors): Add declaration.
4064         * remote-hms.c (_initialize_remote_hms): Add declaration.
4065         * remote-e7000.c (fetch_regs_from_dump): Make static.
4066         (expect_n): Make static.
4067         (_initialize_remote_e7000): Add declaration.
4068         * ser-e7kpc.c: Always include "defs.h".
4069         (_initialize_ser_e7000pc): Add declaration.
4070         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4071         * cris-tdep.c: Make all but one function static.
4072         (_initialize_cris_tdep): Add declaration.
4073         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4074         * solib.c (update_solib_list): Make static.
4075         (_initialize_solib): Add declaration.
4076         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4077         (_initialize_avr_tdep): Add declaration.
4078         * remote-rdi.c (voiddummy): Make static.
4079         (_initialize_remote_rdi): Add declaration.
4080         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4081         * remote-rdp.c (send_rdp): Make static.
4082         (_initialize_remote_rdp): Add declaration.
4083         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4084
4085 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
4086
4087         * remote-fileio.c: Make ari happy.
4088
4089 2003-06-10  J. Brobecker  <brobecker@gnat.com>
4090
4091         * rs6000-nat.c (child_xfer_memory): Compute the right address when
4092         fetching the trailing bytes of the buffer we are about to write.
4093
4094 2003-06-10  Andrew Cagney  <cagney@redhat.com>
4095
4096         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4097         * Makefile.in (remote-fileio.o): Update dependencies.
4098         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
4099         include <setjmp.h>, or <sys/types.h> conditional on USG.
4100         (remote_fio_jmp_buf): Delete global variable.
4101
4102 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
4103             Martin M. Hunt  <hunt@redhat.com>
4104
4105         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4106         (SFILES): Add remote-fileio.c.
4107         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
4108         dependencies for building remote.o.
4109         * remote-fileio.c: New file implementing the remote File-I/O protocol.
4110         * remote-fileio.h: New header file defining remote File-I/O interface.
4111         * remote.c (remote_write_bytes, remote_read_bytes): Remove
4112         static storage class.
4113         (remote_wait, remote_async_wait): Call remote_fileio_request() on
4114         'F' packet.
4115         (_initialize_remote): Call initialize_remote_fileio().
4116         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4117         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4118         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4119         (captured_main): Initialize new ui_files.
4120         * ui-file.c: Add read and fgets input functions.
4121         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4122         (null_file_read): New function.
4123         (ui_file_read): New function.
4124         (set_ui_file_read): New function.
4125         (stdio_file_read): New function.
4126         * ui-file.h: New type ui_file_read_ftype.
4127         (set_ui_file_read): Declare.
4128         (ui_file_read): Declare.
4129
4130 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4131
4132         * frame.h (deprecated_unwind_get_saved_register): Rename
4133         generic_unwind_get_saved_register, update comments.
4134         * mips-tdep.c (mips_get_saved_register): Update.
4135         * frame.c (deprecated_unwind_get_saved_register): Update.
4136
4137 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4138
4139         * vax-tdep.c (vax_frame_locals_address): Delete function.
4140         (vax_gdbarch_init): Do not set frame_locals_address.
4141         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4142         (m68hc11_gdbarch_init): Do not set frame_locals_address.
4143         * s390-tdep.c (s390_frame_args_address): Delete function.
4144         (s390_gdbarch_init): Do not set frame_args_address or
4145         frame_locals_address.
4146         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4147         (ns32k_gdbarch_init): Do not set frame_locals_address.
4148         * hppa-tdep.c (hppa_frame_args_address): Delete function.
4149         (hppa_frame_locals_address): Delete function.
4150         (hppa_gdbarch_init): Do not set frame_args_address, or
4151         frame_locals_address.
4152         * arm-tdep.c (arm_frame_args_address): Delete.
4153         (arm_frame_locals_address): Delete.
4154         (arm_gdbarch_init): Do not set frame_args_address, or
4155         frame_locals_address.
4156
4157 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4158
4159         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4160         * gdbarch.h, gdbarch.c: Re-generate.
4161         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4162         * arch-utils.c (frame_num_args_unknown): Delete function.
4163         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4164         (frame_info): Use FRAME_NUM_ARGS_P.
4165         * arm-tdep.c (arm_frame_num_args): Delete function.
4166         (arm_gdbarch_init): Do not set frame_num_args.
4167         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4168         * hppa-tdep.c (hppa_frame_num_args): Delete function.
4169         (hppa_gdbarch_init): Do not set frame_num_args.
4170         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4171         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4172         frame_num_args to default frame_num_args_unknown.
4173         * v850-tdep.c (v850_gdbarch_init): Ditto.
4174         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4175         * sh-tdep.c (sh_gdbarch_init): Ditto.
4176         * s390-tdep.c (s390_gdbarch_init): Ditto.
4177         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4178         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4179         * mips-tdep.c (mips_gdbarch_init): Ditto.
4180         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4181         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4182         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4183         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4184         * i386-tdep.c (i386_gdbarch_init): Ditto.
4185         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4186         * frv-tdep.c (frv_gdbarch_init): Ditto.
4187         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4188         * cris-tdep.c (cris_gdbarch_init): Ditto.
4189         * avr-tdep.c (avr_gdbarch_init): Ditto.
4190         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4191
4192 2003-06-09  Andrew Cagney  <cagney@redhat.com>
4193
4194         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4195         (print_frame_args): Moved to "stack.c".
4196         * stack.c: Include "gdb_assert.h".
4197         (print_frame_nameless_args): Moved from "printcmd.c", made static.
4198         (print_frame_args): Moved from "printcmd.c".
4199         * frame.h (print_frame_args): Delete declaration.
4200         * Makefile.in (stack.o): Update dependencies.
4201
4202 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4203
4204         * frame.c (get_prev_frame): Remove reference to
4205         frame_args_address_correct in comments.
4206         * frame-base.c (default_frame_args_address): Delete code
4207         conditional on FRAME_ARGS_ADDRESS_CORRECT.
4208         * vax-tdep.c (vax_frame_args_address_correct): Delete.
4209         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4210         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4211         (vax_frame_args_address_correct): Delete declaration.
4212
4213 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4214
4215         * gdbarch.sh (UNWIND_SP): Add.
4216         * gdbarch.h, gdbarch.c: Re-generate.
4217         * frame.c (frame_sp_unwind): New function.
4218         (get_frame_sp): New function.
4219         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4220         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4221         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4222         value.
4223         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4224         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4225
4226 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4227
4228         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4229         REMOTE_BREAKPOINT.
4230         * remote.c: Update.
4231         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4232         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4233         * config/m68k/tm-sun3.h: Update.
4234         * config/m68k/tm-m68klynx.h: Update.
4235         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4236
4237         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4238         trad_frame".  Update comments.
4239         * d10v-tdep.c (struct d10v_unwind_cache): Update.
4240         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4241         (trad_frame_register_value, trad_frame_prev_register): Update.
4242
4243 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4244
4245         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4246         from GCC's acinclude.m4.
4247         * configure.in: Check for getopt's delcaration.
4248         * aclocal.m4, config.in, configure: Re-generate.
4249         * main.c (error_init): Delete declaration.
4250         * defs.h (error_init): Declare.
4251         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4252         (rs6000_convert_from_func_ptr_addr): Make static.
4253         (_initialize_rs6000_tdep): Add declaration.
4254         * cli/cli-cmds.c (dont_repeat): Delete declaration.
4255         (show_commands, set_verbose, show_history): Delete declaration.
4256         * top.h (set_verbose): Add declaration.
4257         (show_history, set_history, show_commands): Add declaration.
4258         (do_restore_instream_cleanup): Add declaration.
4259         * objc-lang.c (specialcmp): Make static.
4260         (print_object_command): Make static.
4261         (find_objc_msgsend): Make static.
4262         (find_objc_msgcall_submethod_helper): Make static.
4263         (find_objc_msgcall_submethod): Make static.
4264         (_initialize_objc_language): Add declaration.
4265         (find_implementation_from_class): Make static.
4266         (find_implementation): Make static.
4267         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4268         * objc-lang.h (lookup_struct_typedef): Add declaration.
4269         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4270         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4271         (do_restore_user_call_depth): Make static.
4272         (do_restore_instream_cleanup): Delete declaration.
4273         (dont_repeat): Delete declaration.
4274         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4275         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4276         * reggroups.c (_initialize_reggroup): Add declaration.
4277         * cp-support.c (_initialize_cp_support): Add declaration.
4278         * cp-abi.c (_initialize_cp_abi): Add declaration.
4279         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4280         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4281         (_initialize_gnu_v3_abi): Add declaration.
4282         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4283         (_initialize_gnu_v2_abi): Add declaration.
4284         * frame-base.c (_initialize_frame_base): Add declaration.
4285         * doublest.c (floatformat_from_length): Make static.
4286         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4287         * frame.c (create_sentinel_frame): Make static.
4288         (_initialize_frame): Add declaration.
4289         * top.c (do_catch_errors): Make static.
4290         (gdb_rl_operate_and_get_next_completion): Make static.
4291         * typeprint.c: Include "typeprint.h".
4292         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4293         (sentinel_frame_this_id): Make static.
4294         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4295         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4296         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4297         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4298         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4299         * maint.c (maintenance_print_architecture): Make static.
4300         * signals/signals.c (_initialize_signals): Add declaration.
4301         * std-regs.c (_initialize_frame_reg): Add declaration.
4302         * jv-exp.y (push_variable): ISO C definition.
4303         (push_qualified_expression_name): Ditto.
4304         * memattr.c (_initialize_mem): Add declaration.
4305         * remote.c (remote_check_watch_resources): Make static.
4306         (remote_stopped_by_watchpoint): Make static.
4307         (remote_stopped_data_address): Make static.
4308         * d10v-tdep.c (nr_dmap_regs): Make static.
4309         (a0_regnum): Make static.
4310         (d10v_frame_unwind_cache): Make static.
4311         (d10v_frame_p): Make static.
4312         * osabi.c (show_osabi): Make static.
4313         (_initialize_gdb_osabi): Add extern declaration.
4314         * gdbtypes.c (make_qualified_type): Make static.
4315         (safe_parse_type): Make static.
4316         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4317         * macrotab.c (macro_bcache_free): Make static.
4318         * interps.c (interp_set_quiet): Make static.
4319         (interpreter_exec_cmd): Make static.
4320         * stack.h (select_frame_command): New file.
4321         * stack.c: Include "stack.h".
4322         (select_frame_command_wrapper): Delete function.
4323         (select_frame_command): Make global.
4324         * infcall.c: Include "infcall.h".
4325         * linespec.c: Include "linespec.h".
4326         * symfile.c (sections_overlap): Make static.
4327         * cp-support.h (cp_initialize_namespace): ISO C declaration.
4328         * charset.c (_initialize_charset): Add missing prototype.
4329         * regcache.c (init_legacy_regcache_descr): Make static.
4330         (do_regcache_xfree): Make static.
4331         (regcache_xfer_part): Make static.
4332         (_initialize_regcache): Add missing prototype.
4333         * breakpoint.c (parse_breakpoint_sals): Make static.
4334         (breakpoint_sals_to_pc): Make static.
4335         * interps.h (clear_interpreter_hooks): ISO C declaration.
4336         * Makefile.in (stack_h): Define.
4337         (stack.o, typeprint.o, mi-main.o): Update dependencies.
4338         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4339
4340 2003-06-08  Andrew Cagney  <cagney@redhat.com>
4341
4342         * Makefile.in (d10v-tdep.o): Update dependencies.
4343         (SFILES): Add trad-frame.c.
4344         (trad_frame_h): Define.
4345         (COMMON_OBS): Add trad-frame.o.
4346         (trad-frame.o): Specify dependencies.
4347         * d10v-tdep.c: Include "trad-frame.h".
4348         (saved_regs_unwinder): Delete function.
4349         (d10v_frame_prev_register): Use trad_frame_prev_register.
4350         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4351         trad_frame", delete "regs" and "prev_sp".
4352         (prologue_find_regs): Use trad-frame.
4353         * trad-frame.h, trad-frame.c: New files.
4354
4355 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
4356
4357         * dwarf2cfi.c, dwarf2cfi.h: Remove.
4358
4359 2003-06-07  Adam Fedor  <fedor@gnu.org>
4360
4361         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4362         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4363         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4364         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4365         resolve_msgsend_super, resolve_msgsend_super_stret):
4366         Use it.
4367
4368 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4369
4370         * symfile.h: Re-indent, clean up comments.
4371
4372 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4373
4374         * inferior.h (deprecated_write_sp): Replace
4375         generic_target_write_sp.
4376         * regcache.c (deprecated_write_sp): Replace
4377         generic_target_write_sp.
4378         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4379         * vax-tdep.c (vax_gdbarch_init): Update.
4380         * v850-tdep.c (v850_gdbarch_init): Update.
4381         * sparc-tdep.c (sparc_gdbarch_init): Update.
4382         * sh-tdep.c (sh_gdbarch_init): Update.
4383         * s390-tdep.c (s390_gdbarch_init): Update.
4384         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4385         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4386         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4387         * mcore-tdep.c (mcore_gdbarch_init): Update.
4388         * m68k-tdep.c (m68k_gdbarch_init): Update.
4389         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4390         * ia64-tdep.c (ia64_gdbarch_init): Update.
4391         * h8300-tdep.c (h8300_gdbarch_init): Update.
4392         * frv-tdep.c (frv_gdbarch_init): Update.
4393         * cris-tdep.c (cris_gdbarch_init): Update.
4394         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4395
4396 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4397
4398         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4399         Assert that PC_REGNUM is valid.
4400         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4401
4402 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4403
4404         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4405         * gdbarch.h, gdbarch.c: Regenerate.
4406         * mn10300-tdep.c: Include "gdb_assert.h".
4407         (mn10300_read_fp): New function.
4408         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4409         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
4410         * ia64-tdep.c: Include "gdb_assert.h".
4411         (ia64_read_fp): New function.
4412         (ia64_gdbarch_init): Set deprecated_target_read_fp to
4413         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
4414         * regcache.c (generic_target_read_sp): Delete function.
4415         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4416         * inferior.h (generic_target_read_sp): Delete declaration.
4417         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4418         generic_target_read_sp.
4419         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4420         * sparc-tdep.c (sparc_gdbarch_init): Ditto
4421         * sh-tdep.c (sh_gdbarch_init): Ditto.
4422         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4423         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4424
4425 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4426
4427         * gdbarch.sh: Comment each field of startup_gdbarch.
4428         * gdbarch.h, gdbarch.c: Re-generate.
4429
4430 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4431
4432         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4433         * gdbarch.h, gdbarch.c: Re-generate.
4434         * regcache.c: Update comments on read_pc et.al.
4435         (generic_target_read_pc): Delete function.
4436         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4437         * inferior.h (generic_target_read_pc): Delete declaration.
4438         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4439         generic_target_read_pc.
4440         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4441         * sh-tdep.c (sh_gdbarch_init): Ditto.
4442         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4443         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4444
4445 2003-06-07  Andrew Cagney  <cagney@redhat.com>
4446
4447         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4448         "index" with "special_local_sect".  Use strcmp instead of STREQ.
4449         Append period to coments.
4450
4451 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
4452
4453         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4454         (elfstab_offset_sections): Likewise.
4455         * gdb-stabs.h (stab_section_info): Likewise.
4456         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4457         * objfiles.c (objfile_relocate): Likewise.
4458         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4459         * remote.c (get_offsets): Likewise.
4460         (remote_cisco_objfile_relocate): Likewise.
4461         * somread.c (som_symfile_offsets): Likewise.
4462         * symfile.c (alloc_section_addr_info): New function.
4463         (build_section_addr_info_from_section_tab): Use it.
4464         (free_section_addr_info): Adjust.
4465         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4466         (syms_from_objfile): Allocate local_addr dynamically.
4467         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4468         dynamically.
4469         (add_symbol_file_command): Allocate sect_opts dynamically.
4470         (reread_symbols): Avoid use of SECT_OFF_MAX.
4471         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4472         (alloc_section_addr_info): Declare it.
4473         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4474         * win32-nat.c (solib_symbols_add): Allocate section_addrs
4475         dynamically.
4476         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4477
4478 2003-06-06  Andrew Cagney  <cagney@redhat.com>
4479
4480         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4481         (d10v_frame_unwind_cache): Do not set "return_pc".
4482
4483 2003-06-06  Michael Snyder  <msnyder@redhat.com>
4484
4485         * h8300-tdep.c: Make tidy (long lines).
4486
4487 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
4488
4489         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4490         to regcache_collect().
4491
4492 2003-06-05  J. Brobecker  <brobecker@gnat.com>
4493
4494         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4495         pc_in_sigtramp multiarch method.
4496         (hppa_hpux_som_init_abi): Use it.
4497         (hppa_hpux_elf_init_abi): Likewise.
4498         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4499         macro has been multiarched.
4500         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4501         macro here, as hppa64 isn't multiarched yet.
4502
4503 2003-06-05  Andrew Cagney  <cagney@redhat.com>
4504
4505         * Makefile.in (value_h): Add $(frame_h).
4506         * value.h: Include "frame.h".
4507         (struct value): Replace "frame_addr" with "frame_id".
4508         (VALUE_FRAME_ID): Replace VALUE_FRAME.
4509         * values.c (allocate_value): Use VALUE_FRAME_ID.
4510         (value_copy): Use VALUE_FRAME_ID.
4511         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4512         * valops.c (value_assign): Update.  Use frame_find_by_id.
4513
4514 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
4515
4516         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4517         in each pass.
4518
4519 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
4520
4521         * thread-db.c (check_event): For create/death event breakpoints,
4522         loop through all messages to ensure that we read the message
4523         corresponding to the breakpoint we are at.
4524
4525 2003-06-04  Michael Snyder  <msnyder@redhat.com>
4526
4527         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4528
4529 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
4530
4531         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4532         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4533         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4534         when handling .eh_frame sections.
4535
4536 2003-06-04  J. Brobecker  <brobecker@gnat.com>
4537
4538         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4539         prepare_to_proceed procedure instead of the hppa-specific one.
4540         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4541
4542 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
4543
4544         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4545         * config.in: Regenerated.
4546         * configure.in: Add test for syscall function and check for
4547         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4548         * configure: Regenerated.
4549         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4550         <sys/syscall.h>.
4551         (kill_lwp): New function that uses tkill syscall or
4552         uses kill, depending on whether threading model is nptl or not.
4553         All callers of kill() changed to use kill_lwp().
4554         (lin_lwp_wait): Make special check when WIFEXITED occurs to
4555         see if all threads have already exited in the nptl model.
4556         (stop_and_resume_callback): New callback function used by the
4557         lin_lwp_wait thread exit handling code.
4558         (stop_wait_callback): Check for threads already having exited and
4559         delete such threads fromt the lwp list when discovered.
4560         (stop_callback): Don't assert retcode of kill call.
4561
4562         Roland McGrath  <roland@redhat.com>
4563         * i386-linux-nat.c (ps_get_thread_area): New function needed by
4564         nptl libthread_db.
4565
4566 2003-06-03  Richard Henderson  <rth@redhat.com>
4567
4568         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4569         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4570         (alpha_sigtramp_frame_prev_register): Likewise.
4571         (alpha_heuristic_frame_prev_register): Likewise.
4572         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4573
4574         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4575         alpha-specific register id names.
4576         (alpha_mdebug_frame_unwind_cache): Likewise.
4577         (alpha_mdebug_frame_prev_register): Likewise.
4578
4579 2003-06-03  Richard Henderson  <rth@redhat.com>
4580
4581         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4582         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4583         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4584         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4585         unwind routines.
4586         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4587         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4588         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4589
4590         * alpha-linux-tdep.c: Remove unnecessary includes.
4591         * Makefile.in (alpha-linux-tdep.o): Update.
4592
4593 2003-06-03  Richard Henderson  <rth@redhat.com>
4594
4595         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4596         (alphabsd_fill_fpreg): Likewise.
4597
4598 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4599
4600         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
4601         references to struct frame_info fields by calls to the equivalent
4602         accessors. Necessary now that frame_info is opaque.
4603
4604 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4605
4606         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4607         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4608         structure, field no longer exists.
4609
4610 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4611
4612         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4613         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4614
4615 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4616
4617         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4618         references to struct frame_info fields by calls to the equivalent
4619         accessors. Necessary now that frame_info is opaque.
4620
4621 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4622
4623         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4624         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4625         structure, field no longer exists.
4626
4627 2003-06-03  Theodore A. Roth  <troth@openavr.org>
4628
4629         * remote.c (init_remote_state): Compute sizeof_g_packet by
4630         accumulation of the size of all registers instead of blindly using
4631         DEPRECATED_REGISTER_BYTES.
4632
4633 2003-06-03  Michael Snyder  <msnyder@redhat.com>
4634
4635         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4636         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4637         for h8300sx.
4638
4639 2003-06-03  J. Brobecker  <brobecker@gnat.com>
4640
4641         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4642         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4643
4644 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4645
4646         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4647         (sparc_convert_to_raw): Delete function.
4648         (sparc_gdbarch_init): Do not set register_convert_to_raw or
4649         register_convert_to_virtual.
4650
4651 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
4652
4653         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4654         layer if not dealing with a statically-linked threaded program.
4655
4656 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
4657
4658         * solib.c (solib_open): Update comment to reflect actual search order.
4659
4660 2003-06-03  Andrew Cagney  <cagney@redhat.com>
4661
4662         * frame.c (get_frame_memory_signed): New function.
4663         (get_frame_memory, get_frame_memory_unsigned): New function.
4664         (get_frame_arch): New function.
4665         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4666         (get_frame_memory, get_frame_unsigned_memory): Declare.
4667         * d10v-tdep.c (d10v_frame_unwind_cache): Use
4668         get_frame_memory_unsigned and get_frame_arch.
4669         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4670
4671 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
4672
4673         * MAINTAINERS (write after approval): Add myself.
4674
4675 2003-06-03  Jim Blandy  <jimb@redhat.com>
4676
4677         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4678         elements of gregset_t are 64 bits each, but access registers
4679         are still 32 bits, so they're packed two per gregset_t
4680         element.  Unpack/pack them properly.
4681
4682 2003-06-02  David Carlton  <carlton@bactrian.org>
4683
4684         * linespec.c (find_methods): Break out code into
4685         add_matching_methods and add_constructors.
4686         (add_matching_methods): New.
4687         (add_constructors): Ditto.
4688
4689 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4690
4691         * sparc-tdep.c (sparc_print_registers): Delete call to
4692         REGISTER_CONVERTIBLE.
4693         (sparc_gdbarch_init): Do not set register_convertible.
4694         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4695         * frv-tdep.c (frv_gdbarch_init): Ditto.
4696         * cris-tdep.c (cris_gdbarch_init): Ditto.
4697
4698 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
4699
4700         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4701         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4702         (syms_from_objfile): Ditto.
4703
4704 2003-06-03  Andreas Schwab  <schwab@suse.de>
4705
4706         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4707         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4708
4709 2003-06-02  Richard Henderson  <rth@redhat.com>
4710
4711         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4712         a member of all_reggroup.
4713
4714 2003-06-02  Richard Henderson  <rth@redhat.com>
4715
4716         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4717         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4718         (alpha_lds, alpha_sts): New.
4719         (alpha_convert_register_p): Change from _register_convertible.
4720         (alpha_register_to_value): Change from _convert_to_virtual;
4721         restructure and fail for type sizes other than 4 or 8.
4722         (alpha_value_to_register): Similarly.
4723         (alpha_extract_return_value): Use alpha_sts.
4724         (alpha_store_return_value): Use alpha_lds.
4725         (alpha_gdbarch_init): Update hooks.
4726
4727 2003-06-02  Richard Henderson  <rth@redhat.com>
4728
4729         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4730         regnum identifiers.
4731         (alpha_sigtramp_register_address): Likewise.
4732
4733 2003-06-02  Richard Henderson  <rth@redhat.com>
4734
4735         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4736         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4737         * alpha-tdep.h: Declare them.
4738
4739         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4740         Remove zerobuf.  Don't error on UNIQUE.
4741         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4742         (ALPHA_REGSET_UNIQUE): Provide default.
4743         (supply_gregset): Use alpha_supply_int_regs.
4744         (fill_gregset): Use alpha_fill_int_regs.
4745         (supply_fpregset): Use alpha_supply_fp_regs.
4746         (fill_fpregset): Use alpha_fill_fp_regs.
4747         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4748         (alphabsd_supply_reg): Use alpha_supply_int_regs.
4749         (alphabsd_fill_reg): Use alpha_fill_int_regs.
4750         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4751         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4752         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4753
4754 2003-06-02  Richard Henderson  <rth@redhat.com>
4755
4756         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4757
4758         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4759         (alpha_store_return_value): Likewise.
4760
4761 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4762
4763         * block.c (contained_in): Add 'const' to arguments.
4764         (block_function): Ditto.
4765         * block.h: Update declarations for block_function and
4766         contained_in.
4767
4768 2003-06-02  David Carlton  <carlton@math.stanford.edu>
4769
4770         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4771         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4772         * p-valprint.c (pascal_val_print): Ditto.
4773         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4774
4775 2003-06-02  Richard Henderson  <rth@redhat.com>
4776
4777         * alpha-tdep.c (alpha_push_dummy_call): Use
4778         builtin_type_ieee_double_little instead of builtin_type_double.
4779
4780         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4781         sign-extension of 32-bit values.
4782         (alpha_store_return_value): Similarly.
4783
4784         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4785         (alpha_extract_return_value): Likewise.
4786         (alpha_store_return_value): Likewise.
4787
4788         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4789         (alpha_store_return_value): Error on IEEE Quad floats.
4790
4791         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4792         (alpha_extract_struct_value_address): Likewise.
4793         (alpha_store_return_value): Likewise.
4794         (alpha_store_struct_return): Remove.
4795         (alpha_gdbarch_init): Update hook registration to match.
4796
4797         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4798         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4799         macros where appropriate.
4800         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
4801         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4802
4803         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4804         for SP, GP; void_func_ptr for PC; non-language-specific types
4805         for all others.
4806         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4807
4808 2003-06-02  Richard Henderson  <rth@redhat.com>
4809
4810         * top.h (lim_at_start): Declare.
4811         * main.c (captured_main): Set it.
4812         * top.c (lim_at_start): Define.
4813         (command_loop): Use it instead of &environ.
4814         * event-top.c (command_handler): Likewise.
4815
4816 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
4817
4818         * mipsnbsd-tdep.c: Update copyright years.
4819         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4820
4821 2003-06-01  Richard Henderson  <rth@redhat.com>
4822
4823         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4824         (alpha-linux-tdep.o): Update dependencies.
4825         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4826         * alpha-mdebug-tdep.c: Remove unneeded includes.
4827
4828 2003-06-01  Richard Henderson  <rth@redhat.com>
4829
4830         * alpha-tdep.c (alpha_register_reggroup_p): New.
4831         (alpha_gdbarch_init): Register it.
4832
4833 2003-06-02  Andrew Cagney  <cagney@redhat.com>
4834
4835         * dwarfread.c: Eliminate "register"
4836         (decode_die_type): Eliminate assignment within "if".
4837         (struct_type, decode_array_element_type): Ditto.
4838         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4839         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4840         (decode_modified_type, completedieinfo): Ditto.
4841         * block.c: Eliminate "register".
4842         (blockvector_for_pc_sect): Eliminate assignment within "if".
4843         * cp-support.h (struct symbol): Opaque declaration.
4844         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4845
4846 2003-06-01  Richard Henderson  <rth@redhat.com>
4847
4848         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4849         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4850
4851 2003-06-01  Adam Fedor  <fedor@gnu.org>
4852
4853         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4854         * gdbarch.[ch]: Regenerate.
4855         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4856         (hppa_gdbarch_init): Set it in the gdbarch vector.
4857         * i386-tdep.c (i386_fetch_pointer_argument): New
4858         (i386_gdbarch_init): Set it into gdbarch.
4859         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4860         (rs6000_gdbarch_init): Set it in gdbarch.
4861         * sparc-tdep.c (sparc_fetch_pointer_argument): New
4862         (sparc_gdbarch_init): Set it in gdbarch.
4863
4864 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4865
4866         * defs.h (extract_address): Delete declaration.
4867         * findvar.c (extract_address): Delete function.
4868         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4869         extract_address with the inline equivalent,
4870         extract_unsigned_integer.
4871         (xstormy16_extract_struct_value_address): Ditto.
4872         (xstormy16_pointer_to_address): Ditto.
4873         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4874         * v850-tdep.c (v850_push_arguments): Ditto.
4875         (v850_extract_return_value): Ditto.
4876         (v850_extract_struct_value_address): Ditto.
4877         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4878         (sparcnbsd_get_longjmp_target_64): Ditto.
4879         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4880         (get_longjmp_target): Ditto.
4881         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4882         (sh64_extract_struct_value_address): Ditto.
4883         (sh_push_arguments): Ditto.
4884         (sh64_push_arguments): Ditto.
4885         * remote-vxsparc.c (vx_read_register): Ditto.
4886         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4887         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4888         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4889         * mipsv4-nat.c (get_longjmp_target): Ditto.
4890         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4891         * mips-nat.c (get_longjmp_target): Ditto.
4892         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4893         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4894         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4895         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4896         * irix5-nat.c (get_longjmp_target): Ditto.
4897         * irix4-nat.c (get_longjmp_target): Ditto.
4898         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4899         (ia64_push_arguments): Ditto.
4900         * hpux-thread.c (hpux_thread_store_registers): Ditto.
4901         * h8300-tdep.c (h8300_push_arguments): Ditto.
4902         (h8300_store_return_value): Ditto.
4903         (h8300_extract_struct_value_address): Ditto.
4904         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4905         (frv_push_arguments): Ditto.
4906         * avr-tdep.c (avr_pointer_to_address): Ditto.
4907         (avr_push_arguments): Ditto.
4908         * arm-tdep.c (arm_push_dummy_call): Ditto.
4909         (arm_get_longjmp_target): Ditto.
4910         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4911         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4912         (alpha_get_longjmp_target): Ditto.
4913
4914         * solib-irix.c (extract_mips_address): Inline extract_address,
4915         replacing it with extract_signed_integer.
4916         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4917         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4918         (first_link_map_member, open_symbol_file_object): Ditto.
4919         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4920         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4921         (LM_NEXT, LM_NAME): Ditto.
4922
4923 2003-06-01  Richard Henderson  <rth@redhat.com>
4924
4925         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4926         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4927         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4928         (alpha_cannot_store_register): Likewise.
4929         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4930         * alpha-nat.c (supply_gregset): Likewise.
4931         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4932
4933 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4934
4935         * infcall.c (call_function_by_hand): Update comment on
4936         DEPRECATED_DUMMY_WRITE_SP.
4937
4938         * mips-tdep.c (mips_gdbarch_init): Do not set
4939         deprecated_dummy_write_sp.
4940         (mips_eabi_push_dummy_call): Set the SP register.
4941         (mips_o64_push_dummy_call): Set the SP register.
4942         (mips_o32_push_dummy_call): Set the SP register.
4943         (mips_n32n64_push_dummy_call): Set the SP register.
4944
4945 2003-06-01  Richard Henderson  <rth@redhat.com>
4946
4947         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4948         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4949         (supply_gregset): Likewise.
4950         * alpha-tdep.c (alpha_store_return_value): Likewise.
4951         (alpha_get_longjmp_target): Likewise.
4952         (alpha_register_name): Constify array.
4953         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4954         deprecated_register_size, deprecated_register_bytes,
4955         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4956         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4957         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4958
4959 2003-06-01  Richard Henderson  <rth@redhat.com>
4960
4961         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
4962         from arg_reg_buffer to regcache to avoid double conversion.
4963
4964 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
4965
4966         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4967         SP_REGNUM.
4968         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4969         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4970
4971 2003-06-01  Richard Henderson  <rth@redhat.com>
4972
4973         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4974         (decode_frame_entry): Set it.  Skip FDE augmentation.
4975
4976 2003-06-01  Richard Henderson  <rth@redhat.com>
4977
4978         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4979         not overlapping PC_REGNUM.
4980
4981 2003-06-01  Richard Henderson  <rth@redhat.com>
4982
4983         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4984         alpha_push_arguments.  Don't dump argument register data to
4985         the target stack.  Fix float and 128-bit long double semantics.
4986         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
4987         (alpha_fix_call_dummy): Remove.
4988         (alpha_call_dummy_words): Remove.
4989         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4990
4991 2003-06-01  Richard Henderson  <rth@redhat.com>
4992
4993         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4994
4995 2003-06-01  Andrew Cagney  <cagney@redhat.com>
4996
4997         * mips-tdep.c (is_mips16_addr): New function.
4998         (make_mips16_addr, unmake_mips16_addr): New functions.
4999         (pc_is_mips16, mips_fetch_instruction): Use.
5000         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5001         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5002         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5003         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5004         TARGET_MIPS.
5005         * config/mips/tm-mips.h: Update copyright.
5006         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5007         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5008         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5009         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5010         (TM_PRINT_INSN_MACH): Delete.
5011         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5012
5013         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5014         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5015         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5016         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5017         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
5018         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
5019         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
5020         mips*-*-riscos* and mips*-*-sysv* onto mips.
5021         * config/mips/mips64.mt: New file.
5022         * config/mips/mips.mt: New file.
5023         * config/mips/littlemips.mt: Delete file.
5024         * config/mips/decstation.mt: Delete file.
5025         * config/mips/vr4300el.mt: Delete file.
5026         * config/mips/vr5000el.mt: Delete file.
5027         * config/mips/vr5000.mt: Delete file.
5028         * config/mips/vr4100.mt: Delete file.
5029         * config/mips/vr4xxxel.mt: Delete file.
5030         * config/mips/vr4300.mt: Delete file.
5031         * config/mips/vr4xxx.mt: Delete file.
5032         * config/mips/bigmips.mt: Delete file.
5033         * config/mips/bigmips64.mt: Delete file.
5034         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5035         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5036         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5037         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5038         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5039         "tm-bigmips.h".
5040         * config/mips/tm-irix3.h: Ditto.
5041         * config/mips/tm-mipsv4.h: Ditto.
5042         * config/mips/tm-embed.h: Ditto.
5043         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5044         "tm-bigmips64.h".
5045         * config/mips/tm-vr5000el.h: Delete file.
5046         * config/mips/tm-tx39l.h: Delete file.
5047         * config/mips/tm-vr4300el.h: Delete file.
5048         * config/mips/tm-vr4xxxel.h: Delete file.
5049         * config/mips/tm-vr4300.h: Delete file.
5050         * config/mips/tm-vr4100.h: Delete file.
5051         * config/mips/tm-vr4xxx.h: Delete file.
5052         * config/mips/tm-vr5000.h: Delete file.
5053         * config/mips/tm-embedl64.h: Delete file.
5054         * config/mips/tm-embedl.h: Delete file.
5055         * config/mips/tm-embed64.h: Delete file.
5056         * config/mips/tm-bigmips64.h: Delete file.
5057         * config/mips/tm-bigmips.h: Delete file.
5058
5059 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
5060
5061         Fix gdb/1216.
5062         * shnbsd-nat.c: Include "sh-tdep.h".
5063
5064         From Richard Henderson  <rth@redhat.com>:
5065         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5066
5067 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5068
5069         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
5070         forward declaration.
5071         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5072         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5073         (mips_find_saved_regs): Use set_reg_offset.
5074         (mips_frame_init_saved_regs): Delete function.
5075         (mips_pop_frame): Call mips_find_saved_regs instead of
5076         DEPRECATED_FRAME_INIT_SAVED_REGS.
5077
5078 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5079
5080         * mips-tdep.c (mips_gdbarch_init): Do not set
5081         deprecated_max_register_raw_size, register_virtual_size, and
5082         deprecated_max_register_virtual_size.
5083
5084 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5085
5086         * i386-tdep.c: Include "dwarf2-frame.h".
5087         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5088         * Makefile.in (i386-tdep.o): Update dependencies.
5089
5090         * dwarf2-frame.c, dwarf2-frame.h: New files.
5091         * Makefile.in (SFILES): Add dwarf2-frame.c.
5092         (dwarf2_frame_h): Define.
5093         (COMMON_OBS): Add dwarf2-frame.o.
5094         (dwarf2-frame.o): Add dependencies.
5095
5096 2003-05-31  Andreas Jaeger  <aj@suse.de>
5097
5098         * x86-64-linux-nat.c: Fix comment.
5099
5100 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5101
5102         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5103         function signature.
5104
5105         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5106         have a sigcontext_addr handler.
5107         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5108         sigcontext_addr handler.
5109
5110 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5111
5112         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5113         (print_fp_register_row): Replace do_fp_register_row.
5114         (mips_print_fp_register): Add "file" and "frame" parameters.
5115         (mips_print_register): Add "file" and "frame" parameters.
5116         (mips_print_registers_info): Replace mips_do_registers_info.
5117         (mips_gdbarch_init): Set print_registers_info instead of
5118         deprecated_do_registers_info.
5119         (mips_read_fp_register_single): Add "frame" parameter.
5120         (mips_read_fp_register_double): Add "frame" parameter.
5121
5122 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5123
5124         * i386-tdep.c (i386_register_name): Check for MMX registers first.
5125         Fixes a bug where GDB would print the wrong register names for
5126         targets without SSE.
5127
5128         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5129         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5130         registers.
5131
5132         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5133         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5134         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5135         TDEP->sc_sp_offset.
5136
5137         From Michal Ludvig  <mludvig@suse.cz>:
5138         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5139         and `sc_num_regs'.
5140         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5141         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5142         I386_ST0_REGNUM): Move here from...
5143         * i386-tdep.c: ... here.
5144         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5145         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5146         registers if possible.
5147         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5148         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5149         Remove variables.
5150         (i386bsd_sc_reg_offset): New variable.
5151         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5152         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5153         TDEP->sc_sp_offset.
5154         (i386fbsd_sc_reg_offset): New variable.
5155         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5156         TDEP->sc_num_regs.
5157         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5158         variables.
5159         (i386fbsd4_sc_reg_offset): New variable.
5160         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5161         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5162         TDEP->sc_sp_offset.
5163         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5164         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5165         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5166         Remove variables.
5167         (i386nbsd_sc_reg_offset): New variable.
5168         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5169         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5170         TDEP->sc_sp_offset.
5171         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5172         Remove variables.
5173         (i386obsd_sc_reg_offset): New variable.
5174         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5175         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5176         TDEP->sc_sp_offset.
5177         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5178         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
5179         for frame pointer offset in `struct sigcontext'.
5180
5181 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5182
5183         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5184         architecture methods call_dummy_words, sizeof_call_dummy_words,
5185         push_return_address, store_struct_return, and fix_call_dummy.  Set
5186         push_dummy_call instead of deprecated_push_arguments.
5187         (mips_store_struct_return): Delete function.
5188         (mips_fix_call_dummy): Delete function.
5189         (mips_push_return_address): Delete function.
5190         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5191         RA_REGNUM and T9_REGNUM.
5192         (mips_n32n64_push_dummy_call): Ditto for
5193         mips_n32n64_push_arguments.
5194         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5195         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5196
5197 2003-05-31  Andrew Cagney  <cagney@redhat.com>
5198
5199         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
5200         "dummy_addr" to "bp_addr".
5201         * infcall.c (call_function_by_hand): Pass "funaddr" to
5202         gdbarch_push_dummy_call.
5203         * gdbarch.h, gdbarch.c: Re-generate.
5204         * i386-tdep.c (i386_push_dummy_call): Update.
5205         * arm-tdep.c (arm_push_dummy_call): Update.
5206         * d10v-tdep.c (d10v_push_dummy_call): Update.
5207
5208 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
5209
5210         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5211         variable declarations.
5212         (x86_64_register_number, x86_64_register_name): Remove prototypes.
5213         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5214         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5215         x86_64_init_frame_pc, x86_64_init_frame_pc,
5216         x86_64_function_has_prologue): Remove prototypes.
5217         (X86_64_NUM_GREGS): New define.
5218         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5219         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
5220         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5221         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5222         XMM1_REGNUM): Remove defines.
5223         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5224         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5225         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5226         X86_64_XMM1_REGNUM): New defines.
5227         (struct x86_64_register_info): Renamed from `struct
5228         register_info'.  Remove `size' member.
5229         (x86_64_register_info_table): Remove variable.
5230         (x86_64_register_info): New variable.
5231         (X86_64_NUM_REGS): New define.
5232         (X86_64_NUM_GREGS): Remove define.
5233         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5234         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5235         Remove variables.
5236         (x86_54_dwarf2_reg_to_regnum): Remove function.
5237         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5238         (x86_64_dwarf_reg_to_regnum): New function.
5239         (x86_64_register_name): Rewrite.
5240         (x86_64_register_raw_size): Remove function.
5241         (x86_64_register_byte_table): Remove variable.
5242         (x86_64_register_byte): Remove function.
5243         (x86_64_register_virtual_type): Remove function.
5244         (x86_64_register_type): New function.
5245         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5246         x86_64_register_convert_to_raw): Remove functions.
5247         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5248         (x86_64_use_struct_convention): Make static.  Adjust for renamed
5249         defines.
5250         (x86_64_frame_init_saved_regs): Remove function.
5251         (x86_64_push_arguments): Make static.  Change to accept a regcache
5252         as argument.
5253         (x86_64_store_return_value, x86_64_extract_return_value): Make
5254         static.  Rewrite based on i386 counterparts.
5255         (x86_64_push_dummy_call): New function.
5256         (X86_64_NUM_SAVED_REGS): New define.
5257         (x86_64_register_number): Remove function.
5258         (x86_64_store_struct_return): Remove function.
5259         (x86_64_frameless_function_invocation,
5260         x86_64_function_has_prologue): Remove functions.
5261         (PROLOG_BUFSIZE): Remove define.
5262         (struct x86_64_frame_cache): New structure.
5263         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5264         x86_64_frame_cache, x86_64_frame_this_id,
5265         x86_64_frame_prev_register, x86_64_frame_p,
5266         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5267         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5268         functions.
5269         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5270         variables.
5271         (x86_64_skip_prologue): Rewrite in terms of
5272         x86_64_analyze_prologue.
5273         (x86_64_frame_base_address): New function.
5274         (x86_64_frame_base): New variable.
5275         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5276         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
5277         set deprecated_fp_regnum, deprecated_register_size,
5278         deprecated_register_bytes, register_raw_size, register_byte,
5279         register_virtual_type, register_convertiable,
5280         register_convert_to_virtual, convert_to_raw,
5281         deprecated_get_saved_register, deprecated_target_read_fp,
5282         deprecated_push_arguments, deprecated_push_return_address,
5283         deprecated_pop_frame, deprecated_store_struct_return,
5284         deprecated_frame_init_saved_regs, deprecated_frame_chain,
5285         frameless_function_invocation, deprecated_frame_saved_pc,
5286         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5287         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5288         deprecated_init_frame_pc and virtual_frame_pointer.  Call
5289         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5290         and x86_64_frame_p.  Call frame_base_set_default to register
5291         x86_64_frame_base.
5292         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5293         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5294         (_initialize_x86_64_tdep): Remove function.
5295         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5296         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5297         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5298         define.
5299         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5300         (x86_64_linux_sigcontext_addr): Rewrite.
5301         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5302         x86_64_linux_frame_saved_pc): Remove functions.
5303         (x86_64_linux_pc_in_sigtramp): Renamed from
5304         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
5305         trampoline.
5306         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5307         Remove_functions.
5308         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
5309         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5310         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5311         (x86_64_regmap): Rename to regmap.
5312         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5313         x86_64_num_gregs.
5314         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
5315         x86_64_regmap.
5316         (x86_64_fxsave_offset): Remove function.
5317         (supply_fpregset): Simply call x86_64_supply_fxsave.
5318         (fill_fpregset): Simply call x86_64_fill_fxsave.
5319         (fetch_inferior_registers, store_inferior_registers): Avoid
5320         asignment in if-statement.
5321         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5322         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5323         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5324         (fetch_core_registers): Remove function.
5325         (linux_elf_core_fns): Remove.
5326         (offsetoff): Don't define.
5327         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5328         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5329         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5330         add core-regset.o.
5331         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5332         protection against multiple includes instead of NM_X86_64_h.  Add
5333         various comments.  Include "config/nm-linux.h".  Don't include
5334         <signal.h>.
5335         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5336         GET_THREAD_SIGNALS): Remove defines.
5337         (x86_64_register_u_addr, kernel_u_size,
5338         lin_thread_get_thread_signals): Remove prototypes.
5339         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5340         [HAVE_LINK_H]: Don't include "solib.h".
5341         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5342         * config/i386/tm-x86-64linux.h: Fix comments.
5343         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5344         x86-64-tdep.o): Update dependencies.
5345
5346 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5347
5348         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5349         Change parameter type to a "struct regcache *".
5350
5351         * gdbarch.sh: Regardless of the multi-arch level, always define
5352         the macro when not already defined.
5353         * gdbarch.h, gdbarch.c: Re-generate.
5354
5355 2003-05-30  Richard Henderson  <rth@redhat.com>
5356
5357         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5358         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5359         (alpha_mdebug_frame_this_id): Likewise.
5360         (alpha_mdebug_frame_prev_register): Likewise.
5361         (alpha_mdebug_frame_base_address): Likewise.
5362         (alpha_mdebug_frame_locals_address): Likewise.
5363         (alpha_mdebug_frame_args_address): Likewise.
5364         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5365         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5366         (alpha_heuristic_frame_unwind_cache): Make static; add missing
5367         loop increment.
5368         (alpha_heuristic_frame_this_id): Make static.
5369         (alpha_heuristic_frame_prev_register): Likewise.
5370         (alpha_heuristic_frame_base_address): Likewise.
5371         * alpha-tdep.h: Update.
5372
5373 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
5374
5375         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5376         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5377         defenitions.
5378         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5379         * i386-tdep.c: Mark functions that are 64-bit safe as such.
5380         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5381         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5382         I386_ST0_REGNUM): New defines.
5383         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5384         codestream_get): Remove define.
5385         (codestream_next_addr, condestream_addr, condestream_buf,
5386         codestream_off, codestream_cnt): Remove variables.
5387         (codestream_fill, codestream_seek, codestream_read): Remove
5388         functions.
5389         (i386_follow_jump): Rewrite to avoid usage of removed codestream
5390         functionality.
5391         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5392         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5393         i386_frame_saved_pc, i386_saved_pc_after_call,
5394         i386_frame_num_args, i386_frame_init_saved_regs,
5395         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5396         i386_push_arguments): Remove functions.
5397         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5398         functionality.  Use i386_analyze_prologue instead of
5399         i386_get_frame_setup.
5400         (I386_NUM_SAVED_REGS): New define.
5401         (struct i386_frame_cache): New structure.
5402         (i386_alloc_frame_cache, i386_analyze_struct_return,
5403         i386_skip_probe, i386_analyze_frame_setup,
5404         i386_analyze_register_saves, i386_analyze_prologue,
5405         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5406         i386_frame_prev_register, i386_sigtramp_frame_cache,
5407         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5408         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5409         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5410         New functions.
5411         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5412         New variables.
5413         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5414         I386_EAX_REGNUM and I386_EDX_REGNUM.
5415         (i386_extract_return_value, i386_store_return_value): Use
5416         I386_ST0_REGNUM where appropriate.
5417         (i386_extract_struct_value_address): Rewrite to use extract_address.
5418         (i386_svr4_pc_in_sigtramp): Add comment.
5419         (i386_svr4_sigcontext_addr): Rewrite.
5420         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5421         TDEP->sc_sp_offset.
5422         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
5423         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5424         of new defines.  Set push_dummy_call, don't set
5425         deprecated_push_arguments, deprecated_push_return_address,
5426         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
5427         deprecated_frame_chain, deprecated_frame_saved_pc,
5428         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
5429         save_dummy_frame_tos, unwind_pc.  Call
5430         frame_unwind_append_predicate and frame_base_set_default.  Don't
5431         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
5432         Don't set frameless_function_invocation.  Don't set
5433         deprecated_register_bytes, deprecated_register_size,
5434         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5435         * i386-linux-tdep.c: Fix formatting in some comments.
5436         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5437         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5438         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5439         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5440         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5441         redundant parentheses.
5442         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5443         (i386_linux_sigcontext_addr): Use it.  Rewrite.
5444         (find_minsym_and_objfile): Change name of second argument.
5445         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
5446         changed.  Use frame_pc_unwind instead of
5447         DEPRECATED_SAVED_PC_AFTER_CALL.
5448         (i386_linux_init_abi): Don't set deprecated_register_bytes.
5449         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5450         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5451         unwinder.
5452         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5453         "dummy-frame.h".
5454         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5455         (_initialize_i386_cygwin_tdep): New prototype.
5456         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5457         deprecated_frame_chain_valid.
5458         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5459         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5460         Rely on the SVR4 defaults.
5461         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5462         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5463
5464 2003-05-30  Andrew Cagney  <cagney@redhat.com>
5465
5466         * infcall.c (call_function_by_hand): Always call
5467         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5468
5469 2003-05-30  Richard Henderson  <rth@redhat.com>
5470
5471         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5472         increment.
5473
5474 2003-05-29  Jim Blandy  <jimb@redhat.com>
5475
5476         Use gdbarch methods for solib stuff on PowerPC Linux.
5477         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5478         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5479         show through.
5480         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5481         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5482         giving the same effect as the #definitions above.
5483
5484 2003-05-29  Adam Fedor  <fedor@gnu.org>
5485
5486         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5487         (find_implementation_from_class): Replace it with the standard
5488         case i.e. do nothing.
5489
5490 2003-05-29  Richard Henderson  <rth@redhat.com>
5491
5492         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5493         (alpha_linux_sigtramp_offset): Use it.  Make static.
5494         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5495         update for new frame model.
5496         * alpha-mdebug-tdep.c: New file.
5497         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5498         (alpha_osf1_init_abi): Install it.
5499         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5500         (linked_proc_desc_table): Remove.
5501         (alpha_frame_past_sigtramp_frame): Remove.
5502         (alpha_dynamic_sigtramp_offset): Remove.
5503         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5504         (alpha_proc_desc_is_dyn_sigtramp): Remove.
5505         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5506         (push_sigtramp_desc): Remove.
5507         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5508         (alpha_cannot_store_register): Likewise.
5509         (alpha_sigcontext_addr): Remove.
5510         (alpha_find_saved_regs): Remove.
5511         (alpha_frame_init_saved_regs): Remove.
5512         (alpha_init_frame_pc_first): Remove.
5513         (read_next_frame_reg): Remove.
5514         (alpha_frame_saved_pc): Remove.
5515         (alpha_saved_pc_after_call): Remove.
5516         (temp_proc_desc, temp_saved_regs): Remove.
5517         (alpha_about_to_return): Remove.
5518         (cached_proc_desc): Remove.
5519         (alpha_frame_chain): Remove.
5520         (alpha_print_extra_frame_info): Remove.
5521         (alpha_init_extra_frame_info): Remove.
5522         (alpha_frame_locals_address): Remove.
5523         (alpha_frame_args_address): Remove.
5524         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5525         (alpha_push_dummy_frame): Remove.
5526         (alpha_pop_frame): Remove.
5527         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5528         (alpha_read_insn): New.
5529         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5530         for different insn encodings.
5531         (alpha_in_lenient_prologue): Remove.
5532         (struct alpha_sigtramp_unwind_cache): New.
5533         (alpha_sigtramp_frame_unwind_cache): New.
5534         (alpha_sigtramp_register_address): New.
5535         (alpha_sigtramp_frame_this_id): New.
5536         (alpha_sigtramp_frame_prev_register): New.
5537         (alpha_sigtramp_frame_unwind): New.
5538         (alpha_sigtramp_frame_p): New.
5539         (struct alpha_heuristic_unwind_cache): New.
5540         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5541         don't count nop insns that occur between functions.
5542         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5543         heuristic_proc_desc, but without the mdebug wrapping.
5544         (alpha_heuristic_frame_this_id): New.
5545         (alpha_heuristic_frame_prev_register): New.
5546         (alpha_heuristic_frame_unwind): New.
5547         (alpha_heuristic_frame_p): New.
5548         (alpha_heuristic_frame_base_address): New.
5549         (alpha_heuristic_frame_base): New.
5550         (alpha_unwind_dummy_id): New.
5551         (alpha_unwind_pc): New.
5552         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
5553         frame related deprecated initializations; install replacements.
5554         (alpha_dump_tdep): Remove.
5555         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5556         (alpha_read_insn, alpha_after_prologue,
5557         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5558         alpha_heuristic_frame_prev_register,
5559         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5560         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5561         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5562         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5563
5564 2003-05-29  Andrew Cagney  <cagney@redhat.com>
5565
5566         * gdb_assert.h (gdb_assert_fail): Provide different definitions
5567         dependant on the availability of ASSERT_FUNCTION.
5568         (ASSERT_FUNCTION): Do not define when there is no function name.
5569
5570 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
5571
5572         From Jimi X <jimix@watson.ibm.com>:
5573         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5574
5575 2003-05-28  Jim Blandy  <jimb@redhat.com>
5576
5577         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5578         argument to ptrace to int; the system headers should give it the
5579         right type, and pointers don't fit in ints on powerpc64-*-*.
5580
5581 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
5582
5583         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5584         DW_TAG_catch_block.
5585
5586 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5587
5588         * stabsread.c (dbx_lookup_type): Make static.
5589         (read_type): Ditto.
5590         (add_undefined_type): Ditto.
5591         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5592         not export.
5593
5594 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
5595
5596         * hpread.c (hpread_has_name): Make static.
5597         (hpread_psymtab_to_symtab): Ditto.
5598         (file_exists): Ditto.
5599         (hpread_call_pxdb): Ditto.
5600         (hpread_pxdb_needed): Ditto.
5601         (hpread_quick_traverse): Ditto.
5602         (hpread_get_header): Ditto.
5603         (hpread_get_lntt): Ditto.
5604         (hpread_get_slt): Ditto.
5605         (class_of): Ditto.
5606
5607 2003-05-25  Andreas Schwab  <schwab@suse.de>
5608
5609         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5610         stack_align and deprecated_extra_stack_alignment_needed.
5611         (m68k_stack_align): Delete.
5612
5613         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5614         (m68k_register_virtual_size): Likewise.
5615         (altos_skip_prologue): Remove obsolete function.
5616         (isi_frame_num_args): Likewise.
5617         (news_frame_num_args): Likewise.
5618         (m68k_fix_call_dummy): Make static.
5619         (m68k_push_dummy_frame): Likewise.
5620         (m68k_pop_frame): Likewise.
5621         (m68k_skip_prologue): Likewise.
5622         (m68k_frame_init_saved_regs): Likewise.
5623         (m68k_saved_pc_after_call): Likewise.
5624         (m68k_get_longjmp_target): Make multi-arch.
5625         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5626         structure.  Register m68k_get_longjmp_target if enabled.
5627         * m68k-tdep.h (struct gdbarch_tdep): Define.
5628         * config/m68k/tm-m68k.h: Don't include "regcache.h".
5629
5630         * Makefile.in (config.status): Also depend on configure.tgt
5631         and configure.host.
5632         (m68klinux-tdep.o): Update dependencies.
5633         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5634         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5635         (M68K_LINUX_JB_PC): Define.
5636         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5637         and take additional parameter.
5638         (m68k_linux_sigtramp_saved_pc): Update.
5639         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
5640         m68k_linux_pc_in_sigtramp, in_plt_section,
5641         find_solib_trampoline_target.
5642         * config/m68k/tm-linux.h: Don't include any tm headers.
5643         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5644         (JB_ELEMENT_SIZE): Likewise.
5645         (JB_PC): Likewise.
5646         (GET_LONGJMP_TARGET): Likewise.
5647         (IN_SIGTRAMP): Likewise.
5648         (SVR4_SHARED_LIBS): Define this and include "solib.h".
5649
5650 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5651
5652         * sparc-tdep.c (sparc32_do_push_arguments): New function.
5653         (sparc32_push_arguments): Re-implement by calling
5654         sparc32_do_push_arguments.
5655
5656 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
5657
5658         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5659         SPARC_O1_REGNUM): New defines.
5660         (sparc32_extract_return_value): Rewrite to operate on a regcache.
5661         (sparc32_store_return_value): New function.
5662         (sparc_extract_struct_value_address): Rewrite to operate on a
5663         regcache.
5664         (sparc_gdbarch_init): Don't set
5665         deprecated_extract_struct_value_address.  Set
5666         extract_struct_value_address instead. Don't set
5667         deprecated_extract_return_value and deprecated_store_return_value
5668         for 32-bit targets.  Set extract_return_value and
5669         store_return_value instead.
5670         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5671         DEPRECTAED_EXTRACT_RETURN_VALUE,
5672         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5673         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5674         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5675         (sparc_store_return_value): Remove prototype.
5676         (sparc32_store_return_value): New prototype.
5677         (sparc32_extract_return_value, sparc_extract_struct_value_address):
5678         Adjust prototypes.
5679
5680 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
5681
5682         * sparcnbsd-tdep.c: Include "gdb_string.h".
5683
5684 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5685
5686         * p-valprint.c (pascal_val_print): Replace extract_address with
5687         the inline equivalent extract_unsigned_integer.
5688         * jv-valprint.c (java_value_print): Ditto.
5689         * ada-valprint.c (ada_val_print_1): Ditto.
5690         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5691
5692 2003-05-23  Theodore A. Roth  <troth@openavr.org>
5693
5694         * blockframe.c (frameless_look_for_prologue): Remove unused
5695         after_prologue variable.
5696
5697 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
5698
5699         * blockframe.c (get_pc_function_start): Rewrite to avoid
5700         asignments in if-statements.
5701
5702 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
5703
5704         Committed by Elena Zannoni  <ezannoni@redhat.com>.
5705         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5706         files, don't relocate absolute symbols (and do use mst_abs).
5707
5708 2003-05-23  Andrew Cagney  <cagney@redhat.com>
5709
5710         * objc-lang.c: Include "gdb_assert.h".
5711         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5712         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5713         (gdb_check, gdb_check_fatal): Delete functions.
5714         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5715         gdb_assert.
5716         (parse_selector, parse_method, find_methods, find_imps): Ditto.
5717         * Makefile.in (objc-lang.o): Update dependencies.
5718
5719 2003-05-22  Ian Lance Taylor  <ian@airs.com>
5720
5721         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5722         with fprintf_filtered, not fprintf_unfiltered.
5723
5724 2003-05-22  Andrew Cagney  <cagney@redhat.com>
5725
5726         * stack.c (frame_info): Inline extract_address, replacing it with
5727         extract_unsigned_integer.
5728         * findvar.c (unsigned_pointer_to_address): Ditto.
5729         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5730         * dwarf2expr.c (dwarf2_read_address): Ditto.
5731         * frame.c (frame_pc_unwind): Update comment.
5732         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5733
5734 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
5735
5736         * infptrace.c (detach): Call print_sys_errmsg rather than
5737         perror_with_name to issue warning message when errno is non-zero
5738         after calling ptrace detach.
5739
5740 2003-05-21  J. Brobecker  <brobecker@gnat.com>
5741
5742         * config/pa/tm-hppa.h: Delete some unused macros. Move some
5743         macro definitions from here...
5744         * hppa-tdep.c: ...to there.
5745
5746 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
5747
5748         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5749         register_ptrace_addr().  Fix all callers.
5750
5751 2003-05-21  Andreas Schwab  <schwab@suse.de>
5752
5753         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5754         dependencies.
5755         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5756         end.
5757         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5758         (_initialize_m68k_linux_tdep): New function.
5759         (m68k_linux_frame_saved_pc): Make static.
5760         (m68k_linux_extract_return_value): Likewise.
5761         (m68k_linux_store_return_value): Likewise.
5762         (m68k_linux_extract_struct_value_address): Likewise.
5763         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5764         Remove.
5765         (DEPRECATED_STORE_RETURN_VALUE): Remove.
5766         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5767         (DEPRECATED_FRAME_SAVED_PC): Remove.
5768
5769 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
5770
5771         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5772         regset numbering rather than our own.
5773
5774 2003-05-19  David Carlton  <carlton@bactrian.org>
5775
5776         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5777
5778 2003-05-19  David Carlton  <carlton@bactrian.org>
5779
5780         Partial fix for PR c++/827.
5781         * cp-support.h: Include symtab.h.
5782         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5783         * cp-namespace.c: Update contributors.
5784         (cp_lookup_symbol_nonlocal): New.
5785         (lookup_namespace_scope, cp_lookup_symbol_namespace)
5786         (lookup_symbol_file): Ditto.
5787         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5788         * block.h: Declare block_scope, block_using, block_global_block.
5789         * block.c (block_scope): New.
5790         (block_using, block_global_block): Ditto.
5791         * Makefile.in (cp_support_h): Depend on symtab_h.
5792         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5793
5794 2003-05-19  David Carlton  <carlton@bactrian.org>
5795
5796         * language.h (struct language_defn): Add 'la_value_of_this'
5797         and 'la_lookup_symbol_nonlocal' members.
5798         * symtab.h: Declare basic_lookup_symbol_nonlocal,
5799         lookup_symbol_static, lookup_symbol_global,
5800         lookup_symbol_aux_block.
5801         * symtab.c (lookup_symbol_aux): Call language hooks to determine
5802         if we should search fields of this and how to do static/global
5803         lookup.
5804         (lookup_symbol_aux_block): Make extern.
5805         (basic_lookup_symbol_nonlocal): New.
5806         (lookup_symbol_static, lookup_symbol_global): Ditto.
5807         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5808         'la_lookup_symbol_nonlocal' members.
5809         * c-lang.c (c_language_defn, cplus_language_defn)
5810         (asm_language_defn, minimal_language_defn): Ditto.
5811         * jv-lang.c (java_language_defn): Ditto.
5812         * language.c (unknown_language_defn, auto_language_defn)
5813         (local_language_defn): Ditto.
5814         * m2-lang.c (m2_language_defn): Ditto.
5815         * objc-lang.c (objc_language_defn): Ditto.
5816         * scm-lang.c (scm_language_defn): Ditto.
5817         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5818         * p-lang.c (pascal_language_defn): Ditto for both.
5819         * Makefile.in (f-lang.o): Depend on value_h.
5820         (p-lang.o): Ditto.
5821
5822 2003-05-19  David Carlton  <carlton@bactrian.org>
5823
5824         * block.h: Declare block_static_block.
5825         * block.c (block_static_block): New.
5826         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5827         lookup_symbol_aux_local, calling block_static_block instead.
5828         (lookup_symbol_aux_local): Delete 'static_block' argument.
5829
5830 2003-05-19  David Carlton  <carlton@bactrian.org>
5831
5832         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5833
5834 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
5835
5836         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5837         register numbers mapping.
5838
5839 2003-05-18  Adam Fedor  <fedor@gnu.org>
5840
5841         * symtab.c (completion_list_objc_symbol): New function.
5842         (make_symbol_completion_list): Use it to add ObjC symbols
5843         when looking though the list.
5844         (language_search_unquoted_string): New function.
5845         (make_file_symbol_completion_list): Use it.
5846
5847 2003-05-18  Andreas Schwab  <schwab@suse.de>
5848
5849         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5850         dependencies.
5851         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5852         as m68k_linux_extract_return_value.
5853         (DEPRECATED_STORE_RETURN_VALUE): Define as
5854         m68k_linux_store_return_value.
5855         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5856         m68k_linux_extract_struct_value_address.
5857         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5858         get_next_frame, get_frame_base, get_frame_pc.
5859         (m68k_linux_frame_saved_pc): Use get_frame_base.
5860         (m68k_linux_extract_return_value): New function.
5861         (m68k_linux_store_return_value): New function.
5862         (m68k_linux_extract_struct_value_address): New function.
5863         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5864
5865         * c-exp.y (typebase): Remove duplicate occurence of
5866         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
5867         of lookup_signed_typename.
5868
5869 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
5870
5871         * dwarf2loc.c (find_location_expression): Change type of second
5872         argument to `size_t *'.
5873         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5874         for size variable.
5875
5876 2003-05-18  David Carlton  <carlton@bactrian.org>
5877
5878         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5879         'linkage_name'.  Add comment.
5880         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5881         'linkage_name'.
5882         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5883         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5884         (lookup_block_symbol): Ditto.
5885
5886 2003-05-16  Andrew Cagney  <cagney@redhat.com>
5887
5888         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5889         * gdbarch.h, gdbarch.c: Re-generate.
5890         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5891         * TODO (REGISTER_BYTES): Delete reference.
5892         * alpha-tdep.c (alpha_gdbarch_init): Update.
5893         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5894         * x86-64-tdep.c (x86_64_init_abi): Update.
5895         * vax-tdep.c (vax_gdbarch_init): Update.
5896         * v850-tdep.c (v850_gdbarch_init): Update.
5897         * sparc-tdep.c (sparc_gdbarch_init): Update.
5898         * sh-tdep.c (sh_gdbarch_init): Update.
5899         * s390-tdep.c (s390_gdbarch_init): Update.
5900         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5901         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5902         (ns32k_gdbarch_init_32382): Update.
5903         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5904         * mcore-tdep.c (mcore_gdbarch_init): Update.
5905         * m68k-tdep.c (m68k_gdbarch_init): Update.
5906         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5907         * ia64-tdep.c (ia64_gdbarch_init): Update.
5908         * i386-tdep.c (i386_gdbarch_init): Update.
5909         * i386-linux-tdep.c (i386_linux_init_abi): Update.
5910         * hppa-tdep.c (hppa_gdbarch_init): Update.
5911         * h8300-tdep.c (h8300_gdbarch_init): Update.
5912         * frv-tdep.c (frv_gdbarch_init): Update.
5913         * cris-tdep.c (cris_gdbarch_init): Update.
5914         * avr-tdep.c (avr_gdbarch_init): Update.
5915         * arm-tdep.c (arm_gdbarch_init): Update.
5916         * sparc-tdep.c (sparc_pop_frame): Update.
5917         * rs6000-tdep.c (rs6000_pop_frame): Update.
5918         * remote.c (init_remote_state): Update.
5919         (remote_prepare_to_store): Update.
5920         * remote-vx.c (vx_prepare_to_store): Update.
5921         * remote-sds.c (sds_fetch_registers): Update.
5922         (sds_prepare_to_store): Update.
5923         * remote-array.c: Update.
5924         * regcache.c (init_legacy_regcache_descr): Update.
5925         (init_regcache_descr): Update.
5926         * mips-tdep.c (mips_eabi_extract_return_value): Update.
5927         (mips_o64_extract_return_value): Update.
5928         * irix5-nat.c (fetch_core_registers): Update.
5929         * irix4-nat.c (fetch_core_registers): Update.
5930         * i386-tdep.h: Update.
5931         * hppa-tdep.c (pa_do_registers_info): Update.
5932         (pa_do_strcat_registers_info): Update.
5933         * cris-tdep.c (cris_register_bytes_ok): Update.
5934         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5935         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5936         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5937         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5938         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5939         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5940         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5941         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5942         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5943         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5944         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5945         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5946         (REGISTER_BYTES_OK): Update.
5947         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5948         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5949
5950 2003-05-16  Ian Lance Taylor  <ian@airs.com>
5951
5952         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5953         (vax_print_insn, print_insn_arg): Remove static functions.
5954         (vax_gdbarch_init): Call set_gdbarch_print_insn with
5955         print_insn_vax from opcodes library.
5956         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5957
5958 2003-05-15  Andrew Cagney  <cagney@redhat.com>
5959
5960         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5961         * target.h (memory_breakpoint_from_pc): Delete declaration.
5962         * mem-break.c (memory_breakpoint_from_pc): Delete function.
5963         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5964         * monitor.c (monitor_insert_breakpoint): Use
5965         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5966         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5967         * gdbarch.h, gdbarch.c: Re-generate.
5968         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5969         (sparc_gdbarch_init): Set breakpoint_from_pc to
5970         sparc_breakpoint_from_pc.
5971         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5972         (BREAKPOINT_FROM_PC): Define.
5973         (sparc_breakpoint_from_pc): Declare.
5974         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5975         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5976         (BREAKPOINT_FROM_PC): Define.
5977         (BREAKPOINT): Delete macro.
5978         * target.h: Update comment.
5979         * s390-tdep.c (s390_gdbarch_init): Update comments.
5980         * remote.c: Update comments.
5981         * remote-mips.c: Update comments.
5982         * proc-api.c (write_with_trace): Do not check for a breakpoint.
5983         * mem-break.c: Update comment.
5984         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5985         (ia64_memory_insert_breakpoint): Update.
5986         * config/sparc/tm-sparc.h: Update comment.
5987         * config/pa/tm-hppa64.h: Update comment.
5988         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5989         (rs6000_breakpoint_from_pc): Update.
5990         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5991         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5992         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5993         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5994         (mips_breakpoint_from_pc): Update.
5995         (mips_dump_tdep): Update.
5996
5997         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5998         * minsyms.c (lookup_minimal_symbol): Inline
5999         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
6000
6001         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6002         * p-valprint.c (pascal_object_print_value_fields): Ditto.
6003         * p-lang.c (pascal_printstr): Ditto.
6004         * objc-lang.c (objc_printstr): Ditto.
6005         * m2-lang.c (m2_printstr): Ditto.
6006         * jv-valprint.c (java_print_value_fields): Ditto.
6007         * f-lang.c (f_printstr): Ditto.
6008         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
6009         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6010         for repeat_count_threshold.
6011         * Makefile.in (cp-valprint.o): Update dependencies.
6012
6013 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
6014
6015         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6016         (examine_prologue): Support looking through leaf functions, knowing
6017         they start with mov r2,r12.  Support skipping over indirect stores
6018         of the input registers.  Upon hitting a non-nop branch instruction
6019         or predicated instruction, bail out by setting lim_pc to the current
6020         pc value in the loop.  At the end, if the lim_pc value is still
6021         beyond our calculated value and we have trust_limit set,
6022         use the lim_pc value.
6023
6024 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6025
6026         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6027         generic_find_dummy_frame.
6028         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6029         (deprecated_generic_find_dummy_frame): Update.
6030         (deprecated_read_register_dummy): Update.
6031         * frame.c (deprecated_generic_get_saved_register): Update.
6032
6033 2003-05-15  Theodore A. Roth  <troth@openavr.org>
6034
6035         * avr-tdep.c (avr_breakpoint_from_pc): New function.
6036         (avr_gdbarch_init): Set breakpoint_from_pc method.
6037
6038 2003-05-15  Andrew Cagney  <cagney@redhat.com>
6039
6040         * regcache.c (build_regcache): Set deprecated_register_valid
6041         directly.
6042         (deprecated_grub_regcache_for_register_valid): Delete function.
6043         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6044         declaration.
6045
6046 2003-05-15  David Carlton  <carlton@bactrian.org>
6047
6048         Committed by Elena Zannoni <ezannoni@redhat.com>
6049         * symtab.c (lookup_symbol_aux): Delete calls to
6050         lookup_symbol_aux_minsyms.
6051         (lookup_symbol_aux_minsyms): Comment out function and
6052         prototype. Delete lookup by mangled name.
6053
6054 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
6055
6056         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6057         correctly indicate an empty stack and ``stack_allocated'' to the
6058         indicate the number of elements initially allocated.
6059         (dwarf_expr_grow_stack): Simplify method for computing new
6060         stack size.  Don't loop infinitely if ``stack_len'' is zero.
6061         (execute_stack_op): Move ``ctx->in_reg'' initialization
6062         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6063         be used in conjuction with DW_OP_piece.  Revise error message
6064         accordingly.
6065
6066 2003-05-14  Theodore A. Roth  <troth@openavr.org>
6067
6068         * MAINTAINERS: Update my email address.
6069         * avr-tdep.c: Ditto.
6070
6071 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
6072
6073         * symtab.h (enum domain_enum): Rename from namespace_enum.
6074         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6075         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6076         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6077         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6078         TYPES_NAMESPACE, METHODS_NAMESPACE.
6079         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6080         (struct symbol, struct partial_symbol): Rename field
6081         'namespace_enum namespace' to 'domain_enum domain'.
6082         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6083         Delete old define kludge for namespace.
6084
6085         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6086         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6087         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6088         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6089         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6090         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6091         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6092         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6093         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6094         occurrences of the above.
6095
6096 2003-05-14  Ian Lance Taylor  <ian@airs.com>
6097
6098         * Makefile.in (install-only): Use $(SHELL) when running
6099         mkinstalldirs.
6100
6101 2003-05-13  Ian Lance Taylor  <ian@airs.com>
6102
6103         * MAINTAINERS (write after approval): Add myself.
6104
6105         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6106         second and third arguments.
6107         * ser-tcp.c (_initialize_ser_tcp): Likewise.
6108         * ser-unix.c (_initialize_ser_hardwire): Likewise.
6109
6110 2003-05-13  Andrew Cagney  <cagney@redhat.com>
6111
6112         * defs.h (store_address): Delete declaration.
6113         findvar.c (store_address): Delete function.
6114         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6115         store_unsigned_integer.
6116         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6117         * v850-tdep.c (v850_push_arguments): Ditto.
6118         * sparc-tdep.c (sparc_get_saved_register): Ditto.
6119         * sh-tdep.c (sh64_get_saved_register): Ditto.
6120         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6121         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6122         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6123         (mips_get_saved_register): Ditto.
6124         * ia64-tdep.c (ia64_get_saved_register): Ditto.
6125         (find_func_descr, ia64_push_arguments): Ditto.
6126         * i386-tdep.c (i386_push_arguments): Ditto.
6127         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6128         * frv-tdep.c (frv_push_arguments): Ditto.
6129         * frame.c (legacy_saved_regs_prev_register): Ditto.
6130         (deprecated_generic_get_saved_register): Ditto.
6131         * findvar.c (unsigned_address_to_pointer): Ditto.
6132         * dwarf2read.c (dwarf2_const_value): Ditto.
6133         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6134         * alpha-tdep.c (alpha_push_arguments): Ditto.
6135
6136 2003-05-12  J. Brobecker  <brobecker@gnat.com>
6137
6138         * NEWS: Mention that the hppa-hpux port has been partially
6139         multiarched (32bit ABIT only, so far).
6140
6141 2003-05-11  Andrew Cagney  <cagney@redhat.com>
6142
6143         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6144         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6145         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6146         sim/testsuite/sim/arm/misaligned2.ms, and
6147         sim/testsuite/sim/arm/misaligned3.ms.
6148         * disasm.h (struct ui_file): Add opaque struct declaration.
6149         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6150         * frame.h (struct ui_file): Ditto.
6151
6152 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
6153
6154         * value.h: Pretty print.
6155
6156 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
6157
6158         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6159
6160 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6161
6162         * regcache.h (max_register_size): Delete declaration.
6163         * regcache.c (max_register_size): Delete function.
6164         (struct regcache_descr): Delete field "max_register_size".
6165         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6166         registers fit in MAX_REGISTER_SIZE.
6167         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6168         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6169         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6170         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6171         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6172         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6173         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6174         * dve3900-rom.c, hppa-tdep.c: Ditto.
6175
6176 2003-05-08  David Carlton  <carlton@math.stanford.edu>
6177
6178         * valops.c (push_word): Fix typo.
6179
6180 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6181
6182         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6183         * gdbarch.h: Re-generate.
6184         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6185         (legacy_max_register_raw_size): Delete declaration.
6186         * regcache.c (legacy_max_register_raw_size): Delete function.
6187         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6188         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6189         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6190         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6191         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6192         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6193         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6194         * findvar.c, dwarf2cfi.c: Ditto.
6195
6196 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6197
6198         * mips-tdep.c (read_signed_register): New function, moved to here
6199         from "regcache.c".
6200         (read_signed_register_pid): Ditto.
6201         * regcache.c (read_signed_register_pid): Delete function, moved to
6202         "mips-tdep.c".
6203         (read_signed_register): Ditto.
6204         * regcache.h (read_signed_register): Delete declaration.
6205         (read_signed_register_pid): Delete declaration.
6206
6207 2003-05-08  Andrew Cagney  <cagney@redhat.com>
6208
6209         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6210         * gdbarch.h: Re-generate.
6211         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6212         (legacy_max_register_virtual_size): Delete declaration.
6213         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6214         * d10v-tdep.c (d10v_print_registers_info): Ditto.
6215         * tracepoint.c (memrange_sortmerge): Ditto.
6216         * sparc-tdep.c (sparc_print_registers): Ditto.
6217         * regcache.c (legacy_max_register_virtual_size): Delete function.
6218
6219 2002-05-08  J. Brobecker  <brobecker@gnat.com>
6220
6221         * fork-child.c (escape_bang_in_quoted_argument): New function.
6222         (fork_inferior): Escape '!' characters in quoted arguments
6223         only when needed.
6224
6225 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6226
6227         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6228         the language of the CU is not currently supported by GDB.
6229
6230 2003-05-08  J. Brobecker  <brobecker@gnat.com>
6231
6232         * defs.h (language): Add language_minimal enum value.
6233         * c-lang.c (minimal_language_defn): New language definition.
6234         (_initialize_c_language): Add the new minimal language to the list
6235         of languages known to GDB.
6236
6237 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
6238
6239         * frame.c (get_frame_type): Don't attempt to lazily initialize
6240         frame's unwinder for legacy frames.
6241
6242 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6243
6244         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6245         and "regcache" parameters.
6246         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6247
6248 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6249
6250         * dwarf2read.c (dwarf_decode_lines): Only use output of
6251         check_cu_functions() when calling record_line().  Do not update
6252         the current address.
6253
6254 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6255
6256         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6257         code.
6258
6259 2003-05-07  Jim Blandy  <jimb@redhat.com>
6260
6261         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6262         'maint info symtabs' and 'maint info psymtabs'.
6263         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6264         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6265         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6266         Declarations updated.
6267         * maint.c (maintenance_list_command): Delete.
6268         (_initialize_maint_cmds): Update calls to add_cmd.
6269         * gdbcmd.h (maintenancelistlist): Delete declaration.
6270         * cli/cli-cmds.c (maintenancelistlist): Delete.
6271         (init_cmd_lists): Don't initialize it.
6272         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6273
6274 2003-05-07  Andrew Cagney  <cagney@redhat.com>
6275
6276         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6277         "regcache".
6278         (d10v_print_registers_info): Update.
6279         (d10v_dmap_register, d10v_imap_register): Delete functions.
6280         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6281         and "imap_register".
6282         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6283         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6284         * arch-utils.c (generic_remote_translate_xfer_address): Add
6285         "regcache" and "gdbarch" parameters.
6286         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6287         parameter.  Change class to multi-arch.
6288         * gdbarch.h, gdbarch.c: Re-generate.
6289         * remote.c (remote_xfer_memory): Use
6290         gdbarch_remote_translate_xfer_address.
6291
6292 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
6293
6294         * infrun.c (prev_pc): Move declaration ahead of proceed().
6295         (proceed): Refresh prev_pc value before resuming.
6296         (stop_stepping): Remove code to refresh prev_pc.
6297
6298 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6299
6300         * nto-tdep.c: Removed stray comment.
6301
6302 2003-05-06  Kris Warkentin <kewarken@qnx.com>
6303
6304         * i386-nto-tdep.c: Fix old K&R function definitions.
6305         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6306         Also change add_show_from_set() call to add_setshow_cmd().
6307         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6308
6309 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6310
6311         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6312         (fprint_dummy_frames): New function.
6313         (maintenance_print_dummy_frames): New function.
6314         (_initialize_dummy_frame): Add command "maint print dummy-frames".
6315         * frame.c (fprint_frame_id): Make global.
6316         * frame.h (fprint_frame_id): Declare.
6317         * Makefile.in (dummy-frame.o): Update dependencies.
6318
6319 2003-05-05  Andrew Cagney  <cagney@redhat.com>
6320
6321         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6322         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6323         SIZEOF_CALL_DUMMY_WORDS.
6324         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6325         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6326         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6327         CALL_DUMMY_BREAKPOINT_OFFSET.
6328         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6329         CALL_DUMMY_START_OFFSET.
6330         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6331         * gdbarch.h, gdbarch.c: Re-generate.
6332         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6333         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6334         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6335         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6336         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6337         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6338         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6339         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6340         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6341         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6342         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6343         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6344         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6345         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6346         * config/sparc/tm-sparc.h: Update.
6347
6348 2003-05-05  Kris Warkentin <kewarken@qnx.com>
6349
6350         * configure.tgt: Add i[3456]86-*-nto*.
6351         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
6352         * nto-tdep.c: New file. Neutrino target support routines.
6353         * nto-tdep.h: New file. Neutrino target header.
6354         * config/tm-qnxnto.h: New file.
6355         * config/i386/i386nto.mt: New file.
6356         * config/i386/tm-i386nto.h: New file.
6357
6358 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6359
6360         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6361         (load_infrun_state): Ditto.
6362         (struct thread_info): Drop "prev_func_name" field.
6363         * thread.c (load_infrun_state): Update.
6364         (save_infrun_state): Update.
6365         * infrun.c (prev_func_name): Delete variable.
6366         (init_wait_for_inferior): Do not clear prev_func_name.
6367         (stop_stepping, keep_going, context_switch): Do not swap
6368         prev_func_name.
6369         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6370         instead of PC_IN_SIGTRAMP.
6371
6372 2003-05-04  Andrew Cagney  <cagney@redhat.com>
6373
6374         * sentinel-frame.c (sentinel_frame_prev_register): Replace
6375         REGISTER_BYTE with register_offset_hack.
6376         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6377         that REGISTER_BYTE is consistent with the regcache.
6378         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6379         * gdbarch.h, gdbarch.c: Regenerate.
6380
6381 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
6382
6383         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6384         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6385
6386         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6387
6388 2003-05-03  J. Brobecker  <brobecker@gnat.com>
6389
6390         From Thierry Schneider <tpschneider1@yahoo.com>
6391         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6392         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6393         (mi-cmd-symbol.o): Add rule.
6394
6395 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6396
6397         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6398         comments noteing that it replaces the old FIX_CALL_DUMMY code.
6399         * gdbarch.h, gdbarch.c: Re-generate.
6400         * d10v-tdep.c (d10v_push_dummy_code): New function.
6401         (d10v_gdbarch_init): Set push_dummy_code.
6402         * infcall.c (legacy_push_dummy_code): New function.
6403         (generic_push_dummy_code): New function.
6404         (push_dummy_code): New function.
6405         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
6406         instead of dummy_addr, to push_dummy_call.  Move call to
6407         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6408         switch.
6409         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6410
6411 2003-05-03  Andrew Cagney  <cagney@redhat.com>
6412
6413         * disasm.h (print_insn): Declare.
6414         * disasm.c (init_gdb_disassemble_info): New function.
6415         (gdb_disassembly): Call init_gdb_disassemble_info.
6416         (gdb_print_insn): New function.
6417         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6418         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
6419         * mcore-tdep.c: Include "disasm.h"
6420         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6421         * d10v-tdep.c: Include "disasm.h".
6422         (display_trace): Call gdb_print_insn, instead of print_insn.
6423         (print_insn): Delete function.
6424         * printcmd.c: Include "disasm.h".
6425         (print_insn): Delete function.
6426         (print_formatted): Call gdb_print_insn, instead of print_insn.
6427         * Makefile.in (printcmd.o): Update dependencies.
6428         (mcore-tdep.o, d10v-tdep.o): Ditto.
6429
6430 2003-05-02  Andrew Cagney  <cagney@redhat.com>
6431
6432         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6433         PC_REGNUM, re-indent.
6434         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6435         PC_REGNUM isn't set.
6436
6437         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6438         * gdbarch.h, gdbarch.c: Re-generate.
6439         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6440         register_virtual_size, pc_regnum, or register_bytes.
6441         (D10V_PC_REGNUM): Rename _PC_REGNUM.
6442         (d10v_register_type): Use D10V_PC_REGNUM.
6443         (d10v_print_registers_info, d10v_read_pc): Ditto.
6444         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6445         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6446
6447 2003-05-02  David Carlton  <carlton@bactrian.org>
6448
6449         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6450         the name with mstrsave.
6451
6452 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
6453
6454         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6455         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6456         (host_charset_name, target_charset_name): New vars for use by
6457         set/show commands.
6458         (host_charset_enum, target_charset_enum): New enums for set/show
6459         commands.
6460         (set_charset_sfunc, set_host_charset_sfunc,
6461         set_target_charset_sfunc): New functions.
6462         (set_host_charset, set_target_charset): Make static.
6463         (list_charsets, set_host_charset_command,
6464         set_target_charset_command): Delete functions.
6465         (show_charset_command): Rewrite as....
6466         (show_charset): Hook this up with the set/show command mechanism.
6467         (_initialize_charset): Change names of charsets to match the
6468         set/show enums. Use host_charset_name and target_charset_name.
6469         Use set/show mechanism for charset, host-charset, target-charset
6470         commands. Do not make 'show host-charset' and 'show
6471         target-charset' be aliases of 'show charset'.
6472
6473         * charset.h (set_host_charset, set_target_charset): Don't export,
6474         they are not used outside the file.
6475
6476 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6477
6478         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6479         (gdb_disassembly): Make "di" non static, always initialize and
6480         cleanup.  Always use dis_asm_read_memory.
6481         (gdb_dis_asm_read_memory): Delete function.
6482
6483 2003-05-01  Andrew Cagney  <cagney@redhat.com>
6484
6485         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6486         (d10v_gdbarch_init): Set frame_align instead of stack_align.
6487
6488 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6489
6490         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6491         "tm_print_insn_info".
6492         (TARGET_PRINT_INSN_INFO): Delete macro.
6493         (dis_asm_read_memory): Delete function declaration.
6494         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6495         (tm_print_insn_info): Delete variable definition.
6496         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6497         * gdbarch.h, gdbarch.c: Re-generate.
6498         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6499         "deprecated_tm_print_insn_info".
6500         * mcore-tdep.c (mcore_dump_insn): Ditto.
6501         * mips-tdep.c (mips_gdbarch_init): Ditto.
6502         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6503         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6504         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6505         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6506         instead of TARGET_PRINT_INSN_INFO, add comment.
6507         * s390-tdep.c (s390_get_frame_info): Instead of
6508         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6509         (s390_check_function_end, s390_is_sigreturn): Ditto.
6510         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6511         (dis_asm_memory_error, dis_asm_print_address): Ditto.
6512         * disasm.c: Include "gdbcore.h".
6513         (_initialize_disasm): New function, initialize
6514         "deprecated_tm_print_insn_info".
6515         (deprecated_tm_print_insn_info): New variable.
6516         (dis_asm_read_memory): Moved from "corefile.c", made static.
6517         (dis_asm_print_address, dis_asm_memory_error): Ditto.
6518         * Makefile.in (disasm.o): Update dependencies.
6519
6520 2003-04-30  Andrew Cagney  <cagney@redhat.com>
6521
6522         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6523
6524 2003-04-29  Adam Fedor  <fedor@gnu.org>
6525
6526         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6527         * infcall.c (find_function_addr): Make non-static.
6528         * infcall.h (find_function_addr): Declare.
6529         * Makefile.in (eval.o): Update dependencies.
6530
6531 2003-04-28  Adam Fedor  <fedor@gnu.org>
6532
6533         * symtab.c (symbol_find_demangled_name): Check for and demangle
6534         ObjC symbols.
6535         (symbol_init_demangled_name): Init for language_objc as well.
6536
6537 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6538
6539         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6540         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6541         * gdbarch.h, gdbarch.c: Re-generate.
6542         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6543         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6544         * inferior.h (deprecated_read_fp): Rename read_fp.
6545         (generic_target_read_fp): Delete declaration.
6546         * regcache.c (generic_target_read_fp): Delete function.
6547         (deprecated_read_fp): Replace read_fp, use
6548         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6549         * d10v-tdep.c (d10v_read_fp): Delete function.
6550         (d10v_gdbarch_init): Do not set deprecated_read_fp.
6551
6552         * sparc-tdep.c (sparc_gdbarch_init): Do not set
6553         deprecated_target_read_fp to generic_target_read_fp.
6554         * sh-tdep.c (sh_gdbarch_init): Ditto.
6555         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6556         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6557         * frv-tdep.c (frv_gdbarch_init): Ditto.
6558
6559         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6560         deprecated_fp_regnum.
6561         * x86-64-tdep.c (x86_64_init_abi): Ditto.
6562         * vax-tdep.c (vax_gdbarch_init): Ditto.
6563         * v850-tdep.c (v850_gdbarch_init): Ditto.
6564         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6565         * sh-tdep.c (sh_gdbarch_init): Ditto.
6566         * s390-tdep.c (s390_gdbarch_init): Ditto.
6567         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6568         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6569         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6570         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6571         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6572         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6573         * i386-tdep.c (i386_gdbarch_init): Ditto.
6574         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6575         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6576         * frv-tdep.c (frv_gdbarch_init): Ditto.
6577         * cris-tdep.c (cris_gdbarch_init): Ditto.
6578         * avr-tdep.c (avr_gdbarch_init): Ditto.
6579         * arm-tdep.c (arm_gdbarch_init): Ditto.
6580         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6581
6582         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6583         * v850-tdep.c (v850_gdbarch_init): Ditto.
6584         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6585         * sh-tdep.c (sh_gdbarch_init): Ditto.
6586         * s390-tdep.c (s390_gdbarch_init): Ditto.
6587         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6588         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6589         * mips-tdep.c (mips_gdbarch_init): Ditto.
6590         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6591         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6592         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6593         * frv-tdep.c (frv_gdbarch_init): Ditto.
6594         * avr-tdep.c (avr_gdbarch_init): Ditto.
6595         * arm-tdep.c (arm_gdbarch_init): Ditto.
6596
6597         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6598         DEPRECATED_FP_REGNUM.
6599         (vax_push_dummy_frame, vax_pop_frame): Ditto.
6600         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6601         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6602         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6603         (sparc32_register_virtual_type): Ditto.
6604         * sh-tdep.c (sh64_frame_chain): Ditto.
6605         (sh64_get_saved_register, sh64_pop_frame): Ditto.
6606         (sh_nofp_frame_init_saved_regs): Ditto.
6607         (sh64_nofp_frame_init_saved_regs): Ditto.
6608         (sh_fp_frame_init_saved_regs): Ditto.
6609         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6610         * remote-e7000.c (fetch_regs_from_dump): Ditto.
6611         * procfs.c (procfs_fetch_registers): Ditto.
6612         (procfs_store_registers): Ditto.
6613         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6614         (store_inferior_registers, fetch_core_registers): Ditto.
6615         (fetch_kcore_registers, clear_regs): Ditto.
6616         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6617         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6618         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6619         * nlm/i386.c (do_status): Ditto.
6620         * mipsv4-nat.c (supply_gregset): Ditto.
6621         * mips-tdep.c: Ditto for comments.
6622         * mips-nat.c (fetch_inferior_registers): Ditto.
6623         (store_inferior_registers, fetch_core_registers): Ditto.
6624         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6625         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6626         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6627         (i386_do_pop_frame, i386_register_type): Ditto.
6628         * hppa-tdep.c (hppa_frame_chain): Ditto.
6629         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6630         (hppa_pop_frame, hppa_read_fp): Ditto.
6631         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6632         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6633         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6634         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6635         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6636         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6637         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6638         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6639         * blockframe.c: Ditto for comments.
6640         * arch-utils.h: Ditto for comments.
6641         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6642         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6643         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6644         * alpha-tdep.h: Ditto for comments.
6645         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6646         (alpha_cannot_store_register): Ditto.
6647         (alpha_push_dummy_frame): Ditto.
6648         * alpha-nat.c (supply_gregset): Ditto.
6649
6650         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6651         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6652         * config/sparc/tm-sparc.h: Update comment.
6653
6654         * hppa-tdep.c (hppa_init_extra_frame_info): Use
6655         deprecated_read_fp instead of TARGET_READ_FP.
6656         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6657         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6658         * sparc-tdep.c (sparc_init_extra_frame_info): Use
6659         deprecated_read_fp instead of read_fp.
6660         * s390-tdep.c (s390_push_arguments): Ditto.
6661         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6662         * frame.h: Ditto in comments.
6663         * frame.c (legacy_get_prev_frame): Ditto.
6664         * dummy-frame.c (dummy_frame_this_id): Ditto.
6665         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6666
6667 2003-04-28  Andrew Cagney  <cagney@redhat.com>
6668
6669         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6670         * gdbarch.h, gdbarch.c: Re-generate.
6671         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6672         * vax-tdep.c (_initialize_vax_tdep): Update.
6673         * v850-tdep.c (_initialize_v850_tdep): Update.
6674         * sparc-tdep.c (_initialize_sparc_tdep): Update.
6675         * s390-tdep.c (_initialize_s390_tdep): Update.
6676         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6677         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6678         * mips-tdep.c (_initialize_mips_tdep): Update.
6679         * mcore-tdep.c (_initialize_mcore_tdep): Update.
6680         * m68k-tdep.c (_initialize_m68k_tdep): Update.
6681         * ia64-tdep.c (_initialize_ia64_tdep): Update.
6682         * hppa-tdep.c (_initialize_hppa_tdep): Update.
6683         * h8300-tdep.c (_initialize_h8300_tdep): Update.
6684         * frv-tdep.c (_initialize_frv_tdep): Update.
6685         * cris-tdep.c (cris_delayed_get_disassembler): Update.
6686         (_initialize_cris_tdep): Update.
6687         * arch-utils.c (legacy_print_insn): Update.
6688         * alpha-tdep.c (_initialize_alpha_tdep): Update.
6689
6690 2003-04-26  Adam Fedor  <fedor@gnu.org>
6691
6692         * linespec.c (decode_objc): New function to decode ObjC calls
6693         (decode_line_1): Check for ObjC calls (using decode_objc)
6694         * Makefile (linespec.o): Update dependencies.
6695
6696 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
6697
6698         * breakpoint.h (struct breakpoint_ops): New.
6699         (struct breakpoint): Add ops member.
6700
6701         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6702         (mention): Use new breakpoint ops member.
6703         (set_raw_breakpoint): Initialize ops field to NULL.
6704         (print_exception_catchpoint, print_one_exception_catchpoint)
6705         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6706         (gnu_v3_exception_catchpoint_ops): New.
6707         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6708
6709 2003-04-25  Adam Fedor  <fedor@gnu.org>
6710
6711         * Makefile.in (COMMON_OBS): Add objc-lang.o
6712
6713 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6714
6715         * d10v-tdep.c (print_insn): Delete function.
6716         (display_trace): Use TARGET_PRINT_INSN.
6717         (_initialize_d10v_tdep): Do not set tm_print_insn.
6718         (d10v_gdbarch_init): Set print_insn.
6719
6720 2003-04-25  Andrew Cagney  <cagney@redhat.com>
6721
6722         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6723         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6724         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6725         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6726         (nr_dmap_regs, a0_regnum): ... new functions.
6727         (d10v_print_registers_info): Use a0_regnum, use register_size.
6728         (d10v_register_byte): Delete function.
6729         (d10v_register_raw_size): Delete function.
6730         (d10v_register_type): Use a0_regnum.
6731         (d10v_print_registers_info): Use a0_regnum.
6732         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6733         (d10v_gdbarch_init): Do not set register_byte or
6734         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6735         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6736         extract_address.
6737         (trace_command): Use XCALLOC.
6738         (print_insn): Delete reference to tm_print_insn.
6739         (saved_regs_unwinder): Use store_unsigned_integer instead of
6740         store_address.
6741         * frame.h (FRAME_OBSTACK_CALLOC): Define
6742
6743 2003-04-25  David Carlton  <carlton@bactrian.org>
6744
6745         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6746
6747 2003-04-24  Adam Fedor  <fedor@gnu.org>
6748
6749         * objc-lang.c: Include "valprint.h"
6750         * Makefile.in (objc-lang.o): Update dependencies.
6751
6752 2003-04-24  Adam Fedor  <fedor@gnu.org>
6753
6754         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6755         architecture dependant compilation and mark as unimplemented
6756         (until they get put in the gdbarch vector).
6757
6758 2003-04-23  David Carlton  <carlton@bactrian.org>
6759
6760         * cp-support.c (cp_find_first_component): Accept 'operator' in
6761         more locations.
6762
6763 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6764
6765         * infcall.c (call_function_by_hand): Eliminate redundant
6766         indentation.  Move "saved_async" and "old_cleanups" to where they
6767         are needed.
6768
6769 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6770
6771         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6772         and "buffer".  Move the "name" code to where it is needed.
6773
6774 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6775
6776         * infcall.c (call_function_by_hand): Move variables "start_sp",
6777         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6778         code to ON_STACK switch branch.
6779
6780 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6781
6782         * infcall.c (call_function_by_hand): Make declaration of "i",
6783         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
6784         lint.
6785
6786 2003-04-23  Andrew Cagney  <cagney@redhat.com>
6787
6788         * infcall.c (call_function_by_hand): Delete variable
6789         "n_method_args".  Localize "param_type"'s declaration to the loop
6790         that it is used.  Reinstate code assigning to said variable -
6791         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
6792         Rationalize code using "param_type".
6793
6794 2003-04-22  Andrew Cagney  <cagney@redhat.com>
6795
6796         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6797         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
6798         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
6799         to DEPRECATED_PUSH_RETURN_ADDRESS.
6800
6801 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
6802
6803         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6804         on the DWARF2 register number prior to fetching a register.
6805
6806 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6807
6808         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6809         Update all the tests using SOFT_FLOAT considering the fact that
6810         this macro was always set to 0.
6811         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6812         considering the fact that this macro was always set to 0.
6813         * hppa-tdep.h (hppa_store_return_value): Likewise.
6814         (hppa_extract_return_value): Likewise.
6815
6816 2003-04-22  J. Brobecker  <brobecker@gnat.com>
6817
6818         * config/pa/tm-hppa.h: Remove obsolete code, was used by
6819         the hppa-pro target only.
6820
6821 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6822
6823         Ongoing multi-arch conversion effort for HP/UX:
6824         * config/pa/tm-hppa.h: Move all macro that are no longer
6825         defined now that GDB_MULTI_ARCH is now set to 1 from here...
6826         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6827
6828 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6829
6830         * config/pa/tm-hppa.h: Obsolete a section that was only used
6831         for hppa-pro.
6832
6833 2003-04-21  J. Brobecker  <brobecker@gnat.com>
6834
6835         Ongoing multi-arch conversion for HP/UX.
6836         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6837         if already defined (allows hppa64 to stay non-multiarched for now).
6838         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6839
6840 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6841
6842         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6843
6844 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6845
6846         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6847         "i386_num_mmx_regs".
6848
6849 2003-04-21  Andrew Cagney  <cagney@redhat.com>
6850
6851         * infcall.c: New file.
6852         * infcall.h: New file.
6853         * valarith.c: Include "infcall.h".
6854         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6855         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6856         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6857         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6858         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6859         (SFILES): Add "infcall.c"
6860         (COMMON_OBS): Add "infcall.o".
6861         (infcall.o): Specify dependencies.
6862         * value.h (call_function_by_hand): Delete declaration.
6863         * inferior.h (run_stack_dummy): Delete declaration.
6864         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6865         (run_stack_dummy): Move to "infcall.c", merged into
6866         call_function_by_hand.
6867         * valops.c (call_function_by_hand): Moved to "infcall.c".
6868         (find_function_addr, value_arg_coerce): Ditto.
6869         (unwindonsignal_p, coerce_float_to_double): Ditto.
6870         (_initialize_valops): Move "set/show coerce-float-to-double", and
6871         "set/show unwindonsignal" commands to "infcall.c".
6872         * v850-tdep.c, target.h: Update comments.
6873         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6874         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6875         (sh64_init_extra_frame_info): Update comments.
6876         * mn10300-tdep.c: Update comments.
6877         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6878         * config/sparc/tm-sparc.h: Update comments.
6879         * breakpoint.h: Update comments.
6880         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6881         * arm-tdep.c: Update comment.
6882
6883 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6884
6885         * i386-tdep.c (i386_num_register_names): New variable.
6886         (i386_num_mmx_regs): Renamed from mmx_num_regs.
6887         (MM0_REGNUM): Remove redundant parentheses in define.
6888         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6889         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6890         i386_mxcsr_regnum_p): Remove redundant parentheses.
6891         (i386_register_name): Use i386_num_register_names.
6892
6893         * i386-tdep.c (i386_extract_return_value,
6894         i386_store_return_value): Correct check for availability of
6895         floating-point registers.
6896
6897         * i386-tdep.c (i386_frame_num_args): Remove function.
6898         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6899
6900         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6901         mmx_regnum_to_fp_regnum.  Adjust all callers.
6902
6903         * i386-tdep.c (i386_get_longjmp_target): Use
6904         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6905         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
6906         extract_address.
6907
6908 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
6909
6910         * core-regset.c: Update comments to reflect reality.  Re-order
6911         includes.
6912         (fetch_core_registers): Use switch instead of if.  Remove
6913         redundant prototype.
6914
6915 2003-04-18  Jim Blandy  <jimb@redhat.com>
6916
6917         * s390-tdep.c (s390_frame_align): New function.
6918         (s390_gdbarch_init): Register it with the gdbarch object.
6919
6920 2003-04-17  Richard Henderson  <rth@redhat.com>
6921
6922         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6923
6924 2003-04-17  Michael Snyder  <msnyder@redhat.com>
6925             Karen Bennet  <bennet@redhat.com>
6926
6927         Committed by Elena Zannoni  <ezannoni@redhat.com>
6928         * gdb_gcore.sh: New script to create a core dump of a process.
6929
6930 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
6931
6932         * values.c (value_being_returned): Don't fetch the return
6933         value if the return type is void.
6934
6935 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6936
6937         * thread-db.c: Reindented.
6938
6939 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
6940
6941         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6942         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6943         as types.
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
6970
6971         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6972         the size of ``long double'' to 16, instead of 8.
6973
6974 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
6975
6976         * i386-linux-nat.c: Add some whitespace to make things more
6977         readable.
6978         (fetch_register, store_register, fetch_inferior_registers,
6979         store_inferior_registers): Get rid of assignment in if-statement.
6980         (store_register): Fix typo in error message.
6981
6982 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6983
6984         * utils.c (xmmalloc): Always allocate something, matches
6985         libiberty/xmalloc's semantics.
6986         (xmrealloc, xmcalloc): Ditto.
6987
6988 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6989
6990         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6991         update comments.
6992         (get_frame_type): Initialize unwind and type when needed.
6993         (get_frame_id, frame_register_unwind): Ditto.
6994
6995 2003-04-16  Andrew Cagney  <cagney@redhat.com>
6996
6997         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6998         obsolete.
6999         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7000         * sparcl-stub.c: Obsolete file.
7001         * config/sparc/tm-sparclet.h: Obsolete file.
7002         * sparclet-stub.c: Obsolete file.
7003         * sparclet-rom.c: Obsolete file.
7004         * sparcl-tdep.c: Obsolete file.
7005         * config/sparc/tm-sparclite.h: Obsolete file.
7006         * config/sparc/sparclite.mt: Obsolete file.
7007         * config/sparc/sparclet.mt: Obsolete file.
7008         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7009         sparc86x-*-* obsolete.
7010
7011 2003-04-15  David Carlton  <carlton@math.stanford.edu>
7012
7013         * Makefile.in (SFILES): Add cp-namespace.c.
7014         (COMMON_OBS): Add cp-namespace.o.
7015         (block.o): Depend on gdb_obstack_h and cp_support_h.
7016         (buildsym.o): Depend on cp_support_h.
7017         (cp-namespace.o): New.
7018         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7019         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7020         (dwarf2read.o): Depend on cp_support_h.
7021         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7022         * dwarf2read.c (process_die): Set processing_has_namespace_info,
7023         processing_current_namespace.
7024         (read_namespace): Update processing_current_namespace; check for
7025         anonymous namespaces.
7026         (dwarf2_name): New function.
7027         (dwarf2_extension): Ditto.
7028         * cp-support.h: Update copyright, contributors.
7029         Add inclusion guards.
7030         Add opaque declaration for structs obstack, block, symbol.
7031         (struct using_direct): New struct.
7032         Add declarations for cp_find_first_component,
7033         cp_entire_prefix_len, processing_has_namespace_info,
7034         processing_current_namespace, cp_is_anonymous,
7035         cp_add_using_directive, cp_initialize_namespace,
7036         cp_finalize_namespace, cp_set_block_scope,
7037         cp_scan_for_anonymous_namespaces.
7038         * cp-namespace.c: New file.
7039         * cp-support.c: Update copyright.
7040         Include ctype.h, gdb_assert.h, gdbcmd.h.
7041         New variable maint_cplus_cmd_list.
7042         (cp_find_first_component): New function.
7043         (cp_entire_prefix_len, maint_cplus_command)
7044         (first_component_command, _initialize_cp_support): Ditto.
7045         * buildsym.c: Include cp-support.h.
7046         New variable using_list.
7047         (add_symbol_to_list): Check for anonymous namespaces.
7048         (finish_block): Set block's scope.
7049         (start_symtab): Initialize C++ namespace support.
7050         (end_symtab): Finalize C++ namespace support.
7051         * block.h: Add opaque declarations for structs
7052         block_namespace_info, using_direct, and obstack.
7053         Add declarations for block_set_scope and block_set_using.
7054         (struct block): Add 'language_specific' member.
7055         (BLOCK_NAMESPACE): New macro.
7056         * block.c: Include gdb_obstack.h and cp-support.h.
7057         (struct block_namespace_info): New struct.
7058         (block_set_scope): New function.
7059         (block_set_using, block_initialize_namespace): Ditto.
7060
7061 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
7062
7063         * solib-svr4.c (svr4_have_link_map_offsets): New function.
7064         (locate_base): Return early if there aren't any link map offsets.
7065         (svr4_solib_create_inferior_hook): Warn if shared library support
7066         is unavailable.
7067
7068 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7069
7070         * symtab.c (symbol_set_names): Add prefix when storing Java names
7071         in hash table.  Fix for PR java/1039.
7072
7073 2003-04-14  David Carlton  <carlton@math.stanford.edu>
7074
7075         * symtab.c (symbol_set_names): Rename 'name' arg to
7076         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7077         * symtab.h: Change 'name' argument in declaration of
7078         symbol_set_names to 'linkage_name'.
7079         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7080
7081 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7082
7083         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7084         return the fully sign-extended register value.
7085         (get_frame_pointer): Ditto.
7086         (mips_pop_frame): Initialize "proc_desc" after checking for a
7087         dummy frame.
7088
7089 2003-04-14  Andrew Cagney  <cagney@redhat.com>
7090
7091         * mips-tdep.c (mips_push_dummy_frame): Delete function.
7092         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7093         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7094         (mips_push_register): Delete function.
7095         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7096         PUSH_FP_REGNUM.
7097
7098 2003-04-14  Jim Blandy  <jimb@redhat.com>
7099
7100         * symmisc.c: #include "gdb_regex.h".
7101         (maintenance_list_symtabs, maintenance_list_psymtabs): New
7102         functions.
7103         * maint.c (maintenance_list_command): New function.
7104         (_initialize_maint_cmds): Register the above as commands.
7105         * symtab.h (maintenance_list_symtabs,
7106         maintenance_list_psymtabs): New declarations.
7107         * cli/cli-cmds.c (maintenancelistlist): New variable.
7108         (init_cmd_lists): Initialize it.
7109         * cli/cli-cmds.h (maintenancelistlist): New declaration.
7110         * gdbcmd.h (maintenancelistlist): New declaration.
7111         * Makefile.in (symmisc.o): Update dependencies.
7112
7113 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
7114
7115         * s390-nat.c: Include asm/types.h for addr_t.
7116
7117 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
7118
7119         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7120         actually incoming type.
7121
7122 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7123
7124         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7125         get_next_frame and get_frame_saved_regs.
7126
7127 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7128
7129         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7130         of gdbarch_num_regs.
7131
7132 2003-04-13  Andrew Cagney  <cagney@redhat.com>
7133
7134         * frame.h: Mention what replaced what in "struct frame_info".
7135         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7136         deprecated_update_frame_base_hack and
7137         deprecated_update_frame_pc_hack.
7138         * hppa-tdep.c: Ditto.
7139
7140 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7141
7142         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7143         to read_reg and update its comment.  Remove regnum member.
7144         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7145         Don't call read_reg when setting in_reg.  Call read_reg to get
7146         the frame base if it's in a register.  Return the register number
7147         on the stack instead of in the context.  Remove extra arguments
7148         to read_reg.
7149         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7150         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
7151         the register number on the expression stack.
7152         (needs_frame_read_reg): Remove extra arguments.
7153
7154 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7155
7156         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7157         made non-static.
7158         (execute_stack_op): All callers updated.
7159         * dwarf2expr.h: Add prototype for dwarf2_read_address.
7160         * dwarf2loc.c (find_location_expression): New function.
7161         (dwarf_expr_frame_base): Call it.
7162         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7163         (dwarf2_tracepoint_var_ref): New function, broken out from
7164         locexpr_tracepoint_var_ref.
7165         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7166         Make static.
7167         (loclist_read_variable, loclist_read_needs_frame): New functions.
7168         (loclist_describe_location, loclist_tracepoint_var_ref): New
7169         functions.
7170         (dwarf2_loclist_funcs): New struct location_funcs.
7171         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7172         (struct dwarf2_locexpr_baton): Add comments.
7173         (dwarf2_loclist_funcs): New extern.
7174         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7175         base_address and base_known.
7176         (dwarf_loc_buffer): New variable.
7177         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7178         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7179         (dwarf2_has_info): Initialize dwarf_loc_offset.
7180         (dwarf2_build_psymtabs): Read in .debug_loc.
7181         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7182         DWARF_LOC_SIZE.
7183         (psymtab_to_symtab_1): Likewise.  Move base address calculation
7184         here, from...
7185         (dwarf2_get_pc_bounds): ... here.  Use the base address from
7186         cu_header.
7187         (dwarf2_symbol_mark_computed): Handle location lists.
7188
7189 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
7190
7191         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7192         if the linkage name demangled successfully.
7193
7194 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7195
7196         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7197         disassmbly_flavour): Removed.
7198
7199         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7200
7201 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
7202
7203         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7204
7205 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7206
7207         * frame.h (struct frame_info): Move definition from here ...
7208         * frame.c (struct frame_info): ... to here.
7209
7210 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7211
7212         * gdbthread.h (save_infrun_state): Delete parameter
7213         "prev_func_start".
7214         (struct thread_info): Delete field "prev_func_start".
7215         (load_infrun_state): Ditto.
7216         * thread.c (load_infrun_state, save_infrun_state): Update.
7217         * infrun.c (prev_func_start): Delete variable.
7218         (context_switch, init_wait_for_inferior): Update.
7219         (stop_stepping, keep_going): Update.
7220
7221 2003-04-12  Andrew Cagney  <cagney@redhat.com>
7222
7223         * gdbarch.sh: Add missing opaque declarations.
7224         * gdbarch.h: Regnerate.
7225         * symtab.h: Add missing opaque declarations.
7226         * value.h, target.h, symfile.h, stabsread.h: Ditto.
7227         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7228         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7229         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7230         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7231         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7232         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7233         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7234         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7235         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7236         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7237         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7238         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7239
7240 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7241
7242         * frame.c (get_frame_id): Return this frame's "id".
7243         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7244         function start.
7245         (legacy_saved_regs_this_id): Replace function body with
7246         internal-error.
7247         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7248         FRAME_OBSTACK_ZALLOC.
7249         (create_new_frame): Mark the frame ID as valid.
7250
7251 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
7252
7253         * Makefile.in (libbfd_h): Added missing setting.
7254         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7255         according to the selected ABI.
7256
7257 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
7258
7259         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7260
7261 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7262
7263         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7264         SAVED_PC_AFTER_CALL.
7265         * gdbarch.h, gdbarch.c: Regenerate.
7266         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7267         * x86-64-tdep.c (x86_64_init_abi): Update.
7268         * vax-tdep.c (vax_gdbarch_init): Update.
7269         * v850-tdep.c (v850_gdbarch_init): Update.
7270         * sparc-tdep.c (sparc_gdbarch_init): Update.
7271         * sh-tdep.c (sh_gdbarch_init): Update.
7272         * s390-tdep.c (s390_gdbarch_init): Update.
7273         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7274         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7275         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7276         * mips-tdep.c (mips_gdbarch_init): Update.
7277         * mcore-tdep.c (mcore_gdbarch_init): Update.
7278         * m68k-tdep.c (m68k_gdbarch_init): Update.
7279         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7280         * ia64-tdep.c (ia64_gdbarch_init): Update.
7281         (ia64_saved_pc_after_call): Update declaration.
7282         * i386ly-tdep.c (i386lynx_init_abi): Update.
7283         * i386-tdep.c (i386_gdbarch_init): Update.
7284         * hppa-tdep.c (hppa_gdbarch_init): Update.
7285         * h8300-tdep.c (h8300_gdbarch_init): Update.
7286         * frv-tdep.c (frv_gdbarch_init): Update.
7287         * cris-tdep.c (cris_gdbarch_init): Update.
7288         * avr-tdep.c (avr_gdbarch_init): Update.
7289         * arm-tdep.c (arm_gdbarch_init): Update.
7290         * alpha-tdep.c (alpha_gdbarch_init): Update.
7291         * ns32knbsd-nat.c (frame_num_args): Update.
7292         * ns32k-tdep.c (umax_frame_num_args): Update.
7293         * mips-tdep.c (mips_init_frame_pc_first): Update.
7294         * infrun.c (step_over_function): Update.
7295         * i386-linux-tdep.c (skip_hurd_resolver): Update.
7296         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7297         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7298         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7299         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7300         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7301         * arm-linux-tdep.c (skip_hurd_resolver): Update.
7302         * arch-utils.c (init_frame_pc_default): Update.
7303         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7304         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7305         declaration.
7306
7307 2003-04-11  Andrew Cagney  <cagney@redhat.com>
7308
7309         * i387-tdep.c: Update copyright.
7310         (i387_to_double): Delete function.
7311         (double_to_i387): Delete function.
7312
7313 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7314
7315         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7316         frame's function's address.  Simplify.
7317         (d10v_frame_unwind_cache): Check that the frame's function is
7318         non-zero.
7319
7320 2003-04-10  Jim Blandy  <jimb@redhat.com>
7321
7322         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7323         call to set_gdbarch_deprecated_push_arguments.
7324
7325 2003-04-10  Andrew Cagney  <cagney@redhat.com>
7326
7327         * frame.c (fprint_frame_id): New function.
7328         (fprint_frame_type, fprint_frame): New function.
7329         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7330         (create_sentinel_frame, get_frame_id): Ditto.
7331         (frame_id_p, frame_id_eq): Ditto.
7332         (frame_id_inner, create_new_frame): Ditto.
7333         (legacy_get_prev_frame, get_prev_frame): Ditto.
7334         (deprecated_update_frame_pc_hack): Ditto.
7335         (frame_register_unwind): Ditto.
7336         (deprecated_update_frame_base_hack): Ditto.
7337
7338 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7339
7340         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7341         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7342         frame_chain function.
7343         * Makefile.in: Add dependencies due to above change.
7344
7345 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
7346
7347         * blockframe.c (legacy_frame_chain_valid): Move call to
7348         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7349         inside_entry_file.
7350
7351 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7352
7353         * frame.h (struct frame_id): Replace "pc" and "base" with
7354         "stack_addr" and "code_addr".  Update comments.
7355         (frame_id_build): Update parameter names and comment.
7356         (struct frame_info): Replace "id_p" and "id" with "this_id".
7357         * dummy-frame.c (dummy_frame_this_id): Update.
7358         * breakpoint.c (print_one_breakpoint): Update.
7359         * frame.c (get_frame_id): Update.
7360         (get_frame_base, frame_id_build): Update.
7361         (create_sentinel_frame, legacy_get_prev_frame): Update.
7362         (deprecated_update_frame_base_hack): Update.
7363         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7364         (frame_id_inner): Ditto.
7365
7366 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7367
7368         * defs.h (gdb_print_host_address): Make "addr" parameter a
7369         pointer constant.
7370         * utils.c (gdb_print_host_address): Update.
7371
7372 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
7373
7374         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7375         register number for R0 is 0.
7376
7377 2003-04-09  J. Brobecker  <brobecker@gnat.com>
7378
7379         * frame.h (struct gdbarch): Add opaque structure definition
7380         to avoid a compilation warning on LynxOS 4.0.
7381
7382 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7383
7384         * frame.h (struct frame_info): Delete field "pc".  Replace
7385         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7386         structure.
7387         * frame.c (frame_pc_unwind): Update.
7388         (create_sentinel_frame): Do not set "pc".
7389         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
7390         (get_frame_pc): Call frame_pc_unwind.
7391         (deprecated_update_frame_pc_hack): Update.
7392         (create_new_frame): Use "pc" not "->pc".
7393
7394 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7395
7396         * frame.c (get_frame_id): Eliminate code updating "frame".
7397         (legacy_get_prev_frame): Ditto.
7398         (get_frame_base): Return id.base directly.
7399         (deprecated_update_frame_base_hack): Update "id.base".
7400         * frame.h (struct frame_info): Delete field "frame".
7401
7402 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7403
7404         * NEWS: Mention that the "Sequent family" is obsolete.
7405         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7406         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7407         * configure.host: Obsolete i[3456]86-sequent-bsd*,
7408         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7409         * config/i386/tm-ptx4.h: Obsolete file.
7410         * config/i386/tm-ptx.h: Obsolete file.
7411         * symm-tdep.c: Obsolete file.
7412         * config/i386/symmetry.mt: Obsolete file.
7413         * config/i386/tm-symmetry.h: Obsolete file.
7414         * symm-nat.c: Obsolete file.
7415         * config/i386/nm-symmetry.h: Obsolete file.
7416         * config/i386/xm-symmetry.h: Obsolete file.
7417         * config/i386/symmetry.mh: Obsolete file.
7418         * config/i386/nm-ptx4.h: Obsolete file.
7419         * config/i386/ptx4.mh: Obsolete file.
7420         * config/i386/ptx.mt: Obsolete file.
7421         * config/i386/ptx.mh: Obsolete file.
7422         * config/i386/xm-ptx4.h: Obsolete file.
7423         * config/i386/xm-ptx.h: Obsolete file.
7424
7425 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7426
7427         Obsolete mips*-*-mach3*.
7428         * NEWS: Mention that mips*-*-mach3* is obsolete.
7429         * m3-nat.c: Obsolete file.
7430         * config/nm-m3.h: Obsolete file.
7431         * config/mips/tm-mipsm3.h: Obsolete file.
7432         * config/mips/mipsm3.mt: Obsolete file.
7433         * config/mips/mipsm3.mh: Obsolete file.
7434         * config/mips/xm-mipsm3.h: Obsolete file.
7435         * mipsm3-nat.c: Obsolete file.
7436         * configure.host: Obsolete mips-dec-mach3*.
7437         * configure.tgt: Obsolete mips*-*-mach3*.
7438
7439 2003-04-09  Andrew Cagney  <cagney@redhat.com>
7440
7441         * doublest.h: Update copyright.
7442         (deprecated_store_floating, deprecated_extract_floating): Rename
7443         store_floating and extract_floating.  Update comments.
7444         * doublest.c: Update copyright.
7445         (extract_floating_by_length): Replace extract_floating.
7446         (store_floating_by_length): Replace store_floating.
7447         (deprecated_extract_floating): New function.
7448         (deprecated_store_floating): New function.
7449         (extract_typed_floating): Call extract_floating_by_length.
7450         (store_typed_floating): Call store_floating_by_length.
7451         * x86-64-tdep.c (x86_64_store_return_value): Update.
7452         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7453         (sh64_extract_return_value): Update.
7454         (sh_sh4_register_convert_to_virtual): Update.
7455         (sh_sh64_register_convert_to_virtual): Update.
7456         (sh_sh4_register_convert_to_raw): Update.
7457         (sh_sh64_register_convert_to_raw): Update.
7458         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7459         (rs6000_register_convert_to_raw): Update.
7460         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7461         (ia64_register_convert_to_raw): Update.
7462         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7463         (REGISTER_CONVERT_TO_VIRTUAL): Update.
7464         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7465         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7466         (alpha_register_convert_to_raw): Update.
7467
7468 2003-04-08  Andrew Cagney  <cagney@redhat.com>
7469
7470         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7471         * gdbarch.h, gdbarch.c: Re-generate.
7472         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7473         (d10v_gdbarch_init): Do not set saved_pc_after_call.
7474         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7475         conditionally, use frame_pc_unwind as an alternative.  Add
7476         comments.
7477         * arch-utils.c (init_frame_pc_default): Only call
7478         SAVED_PC_AFTER_CALL when available.
7479
7480 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7481
7482         * infrun.c (stop_soon): Rename from stop_soon_quietly.
7483         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7484         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7485         (start_remote): Ditto.
7486         (handle_inferior_event): Ditto.
7487         (save_inferior_status): Ditto.
7488         (restore_inferior_status): Ditto.
7489         * infcmd.c (attach_command): Ditto.
7490         * fork-child.c (startup_inferior): Ditto.
7491         * inferior.h (stop_soon): Rename from stop_soon_quietly.
7492         * alpha-tdep.c (heuristic_proc_start): Ditto.
7493         * mips-tdep.c (heuristic_proc_start): Ditto.
7494         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7495         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7496         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7497         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7498         * remote-vx.c (vx_create_inferior): Ditto.
7499
7500 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
7501
7502         * infrun.c (stop_soon_quietly): Make it an enum, to better
7503         override the default behavior of handle_inferior_event.
7504         (clear_proceed_status): Update uses of stop_soon_quietly to
7505         reflect that it is now an enum.
7506         (start_remote): Ditto.
7507         (handle_inferior_event): Change logic a bit if stop_soon_quietly
7508         is set to handle the new GNU/Linux kernel behavior for
7509         attach/sigstop.  Update uses of stop_soon_quietly.
7510         * inferior.h (enum stop_kind): New enum.
7511         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7512         Reset normal handle_inferior_event behavior, afterwards.
7513         * fork-child.c (startup_inferior): Update.
7514         * alpha-tdep.c (heuristic_proc_start): Update.
7515         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7516         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7517         * solib-osf.c (osf_solib_create_inferior_hook): Update.
7518         * solib-irix.c (irix_solib_create_inferior_hook): Update.
7519         * remote-vx.c (vx_create_inferior): Update.
7520         * mips-tdep.c (heuristic_proc_start): Update.
7521
7522 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
7523
7524         * disasm.c (dump_insns):  Move variables inside loop, or they will
7525         be freed more than once, causing wild memory corruptions.
7526         (gdb_disassembly): Look for the substring "-thread",
7527         instead of "-threads" in the target name, to make sure to find
7528         the 'multi-thread' target.  Also, make sure we do the right thing
7529         with the "core" target.
7530
7531 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
7532
7533         * mips-tdep.c (mips_print_fp_register): New function, created from
7534         do_fp_register_row().  Registers are now (also) printed as hex.
7535         Only one register is printed per row.
7536         (mips_print_register, do_fp_register_row): Print floating point
7537         registers with mips_print_fp_register().
7538
7539 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7540
7541         * valprint.h (inspect_it): Add extern declaration.
7542         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7543         (selectors_info, classes_info): Ditto.
7544         (find_objc_msgcall): Fix indentation.
7545         (objc_printstr): Delete extern declarations.
7546
7547         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7548
7549 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7550
7551         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7552         Update comment.
7553         * frame.c (legacy_saved_regs_this_id): Update.
7554         (legacy_get_prev_frame): Update.
7555         * xstormy16-tdep.c: Update comment.
7556         * sparc-tdep.c (sparc_frame_chain): Update comment.
7557         * blockframe.c (legacy_frame_chain_valid): Update.
7558
7559 2003-04-06  Andrew Cagney  <cagney@redhat.com>
7560
7561         * valprint.c (val_print_type_code_int): Delete #ifdef
7562         PRINT_TYPELESS_INTEGER code.
7563
7564         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7565         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7566         multi-arch definition.
7567         * gdbarch.h: Re-generate.
7568
7569 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7570
7571         Eliminate FRAME_FIND_SAVED_REGS.
7572         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7573         Change FSR parameter to a pointer.
7574         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7575         Assume FSR parameter is a pointer.
7576         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7577         Make fsr a pointer.
7578         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7579         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
7580         saved_regs a pointer.
7581         (hppa_frame_saved_pc): Ditto.
7582         (find_dummy_frame_regs): Make frame_saved_regs a pointer
7583         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
7584         pointer.
7585         (restore_pc_queue): Make fsr a pointer.
7586         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7587         (hppa_frame_chain): Make saved_regs a pointer, call
7588         hppa_frame_init_saved_regs.
7589         * sparc-tdep.c: Include "gdb_assert.h".
7590         (sparc_frame_find_saved_regs): Replace internal_error with
7591         gdb_assert.
7592         * remote-vxsparc.c (vx_read_register): Delete reference to
7593         FRAME_FIND_SAVED_REGS.
7594         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7595         * gdbarch.h: Regenerate.
7596         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7597         (deprecated_get_frame_saved_regs): Delete declaration.
7598         (struct frame_saved_regs): Delete definition.
7599         * frame.c (deprecated_get_frame_saved_regs): Delete function.
7600         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7601         (hppa_frame_find_saved_regs): Delete declaration.
7602         (FRAME_FIND_SAVED_REGS): Delete macro.
7603         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7604         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7605         FRAME_FIND_SAVED_REGS in comment.
7606
7607 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7608
7609         * frame.c (frame_func_unwind, get_frame_func): New functions.
7610         * frame.h (get_frame_func, frame_func_unwind): Declare.
7611         (struct frame_info): Add field "prev_func" for caching the
7612         previous frame's function address.
7613         * arm-tdep.c (arm_frameless_function_invocation): Combine
7614         get_pc_function_start and get_frame_pc into get_frame_func.
7615         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7616         (sh64_nofp_frame_init_saved_regs): Ditto.
7617         * s390-tdep.c (s390_function_start): Ditto.
7618         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7619         (rs6000_frameless_function_invocation): Ditto.
7620         (rs6000_frame_saved_pc): Ditto.
7621         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7622         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7623         * i386-tdep.c (i386_frameless_signal_p): Ditto.
7624         (i386_frame_init_saved_regs): Ditto.
7625         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7626         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7627         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7628         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7629         * blockframe.c (frameless_look_for_prologue): Ditto.
7630
7631 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7632
7633         * frame.c (legacy_get_prev_frame): Link prev to next at the
7634         function start.  Update comments.
7635
7636 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7637
7638         * frame.c (get_frame_id): Update comment.
7639         (legacy_get_prev_frame): Update comment.
7640         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7641         * gdbarch.h: Regenerate.
7642         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7643         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7644
7645 2003-04-05  Andrew Cagney  <cagney@redhat.com>
7646
7647         * stack.c (print_frame_info): Use get_frame_pc.
7648
7649 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7650
7651         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
7652         the frame's type from the unwinder.
7653         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7654         (create_new_frame, legacy_get_prev_frame): When the unwinder's
7655         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7656         (get_frame_base_address): Use get_frame_type.
7657         (get_frame_locals_address, get_frame_args_address): Ditto.
7658         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7659         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7660         (struct frame_info): Add comment explaining why the frame contains
7661         a "type" field.
7662         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7663         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7664         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7665         NORMAL_FRAME.
7666         * frame-unwind.h: Include "frame.h".
7667         (struct frame_unwind): Add "type" field.
7668         * Makefile.in (frame_unwind_h): Add $(frame_h).
7669
7670 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7671
7672         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7673         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7674         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7675         get_frame_base.
7676         (d10v_unwind_dummy_id): Use frame_id_build.
7677         * frame.c (find_frame_sal): Use get_frame_pc.
7678         (create_new_frame): Use deprecated_update_frame_pc_hack and
7679         deprecated_update_frame_base_hack.
7680         (create_sentinel_frame): Add comment about ->pc going away.
7681         (get_prev_frame): Add comment about ->pc going away.
7682         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7683         frame_id_build, deprecated_update_frame_pc_hack and
7684         deprecated_update_frame_base_hack.
7685         (select_frame): Use get_frame_pc.
7686         (legacy_saved_regs_this_id): Use frame_id_build.
7687
7688 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
7689
7690         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7691         signed integer case.
7692         (classify_argument): Handle enumerations and references.
7693
7694 2003-04-04  Andrew Cagney  <cagney@redhat.com>
7695
7696         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7697         ID to NULL.
7698
7699 2003-04-01  Adam Fedor  <fedor@gnu.org>
7700
7701         * gdb/objc-lang.c (selectors_info): Replace calls to
7702         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7703         SYMBOL_NATURAL_NAME.
7704         (classes_info, find_methods): Likewise.
7705
7706 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
7707
7708         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7709         ``mach'' to the value determined by bfd_default_set_arch_mach().
7710
7711 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
7712
7713         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7714         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7715         (mi-cmd-file.o): Update dependencies.
7716
7717 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
7718
7719         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7720         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7721
7722 2003-04-01  Adam Fedor  <fedor@gnu.org>
7723
7724         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7725         * language.h (struct language_defn): Add la_demangle.
7726         (language_demangle): Declare.
7727         * language.c (language_demangle): New function.
7728         (unk_lang_demangle): Likewise.
7729         (unknown_language_defn, auto_language_defn, local_language_defn):
7730         Add ukn_lang_demangle.
7731         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7732         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7733         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7734         (cplus_language_defn): Add cplus_demangle for la_demangle element.
7735         * jv-lang.c (java_demangle): New function
7736         (java_language_defn): Use it for la_demangle element.
7737         * objc-lang.c (objc_demangle): Add options argument
7738         (objc_language_defn): Use objc_demangle for la_demangle element.
7739         * maint.c (maintenance_demangle): Replace switch with
7740         call to language_demangle.
7741         * utils.c (fprintf_symbol_filtered): Likewise.
7742
7743 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7744
7745         * printcmd.c (print_frame_nameless_args): Delete #ifdef
7746         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7747         PRINT_TYPELESS_INTEGER.
7748         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7749         PUSH_RETURN_ADDRESS.
7750
7751 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7752
7753         * Makefile.in (d10v-tdep.o): Update dependencies.
7754         * d10v-tdep.c: Include "frame-base.h".
7755         (d10v_frame_unwind): Make constant.
7756         (d10v_frame_base_address): New function.
7757         (d10v_frame_base): New variable.
7758         (d10v_gdbarch_init): Set frame_base default.
7759         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
7760         comment for base.
7761         (d10v_frame_unwind_cache): Set and use "prev_sp".
7762         (d10v_frame_this_id): Use the previous frame's inner most stack
7763         address and this frame's func address for the frame ID.  Use
7764         frame_id_build.  Don't analyze beyond the current instruction.
7765
7766 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7767
7768         * frame.h (get_frame_locals_address, get_frame_args_address):
7769         Refer to the base address, instead of the address of the first
7770         local or parameter.
7771
7772 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7773
7774         Add frame debug info addresses:
7775         * frame-base.c: New file.
7776         * frame-base.h: New file.
7777         * frame.h (struct frame_base): Add opaque declaration.
7778         (get_frame_base): Update comment.
7779         (get_frame_base_address): Declare.
7780         (get_frame_locals_address): Declare.
7781         (get_frame_args_address): Declare.
7782         (struct frame_info): Add "base" and "base_cache".  Update
7783         comments on the unwinder.
7784         * frame.c: Include "frame-base.h".
7785         (get_frame_locals_address): New function.
7786         (get_frame_base_address): New function.
7787         (get_frame_args_address): New function.
7788         * findvar.c (read_var_value): Use get_frame_locals_address and
7789         get_frame_args_address.
7790         * stack.c (frame_info): Use get_frame_locals_address and
7791         get_frame_args_address.
7792         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7793         moved to "frame-base.c".
7794         * printcmd.c (print_frame_nameless_args): Ditto.
7795         * symtab.h (address_class): Update comments.
7796         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7797         get_frame_base_address.
7798         * dwarf2expr.c (execute_stack_op): Ditto.
7799         * Makefile.in (frame_base_h): Define.
7800         (frame.o): Update dependencies.
7801         (frame-base.o): Add dependencies.
7802         (SFILES): Add frame-base.c.
7803         (COMMON_OBS): Add frame-base.o.
7804
7805 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7806
7807         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7808         CALL_DUMMY_LENGTH): Ditto.
7809         * gdbarch.c: Re-generate.
7810         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7811         (CALL_DUMMY_LENGTH): Delete macro.
7812         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7813         * arm-tdep.c (arm_gdbarch_init): Ditto.
7814         * avr-tdep.c (avr_gdbarch_init): Ditto.
7815         * cris-tdep.c (cris_gdbarch_init): Ditto.
7816         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7817         * frv-tdep.c (frv_gdbarch_init): Ditto.
7818         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7819         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7820         * i386-tdep.c (i386_gdbarch_init): Ditto.
7821         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7822         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7823         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7824         * mips-tdep.c (mips_gdbarch_init): Ditto.
7825         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7826         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7827         * s390-tdep.c (s390_gdbarch_init): Ditto.
7828         * sh-tdep.c (sh_gdbarch_init): Ditto.
7829         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7830         * v850-tdep.c (v850_gdbarch_init): Ditto.
7831         * vax-tdep.c (vax_gdbarch_init): Ditto.
7832         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7833
7834 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
7835
7836         * frame.c (get_prev_frame): Disable call to inside_entry_file().
7837
7838 2003-04-01  Andrew Cagney  <cagney@redhat.com>
7839
7840         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7841         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7842         * gdbarch.h, gdbarch.c: Re-generate.
7843         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7844         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7845         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7846         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7847         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7848         * infcmd.c (run_stack_dummy): Simplify assuming
7849         CALL_DUMMY_BREAKPOINT_OFFSET_P.
7850         * infrun.c (handle_inferior_event): Ditto.
7851         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7852         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7853         * arm-tdep.c (arm_gdbarch_init): Ditto.
7854         * avr-tdep.c (avr_gdbarch_init): Ditto.
7855         * cris-tdep.c (cris_gdbarch_init): Ditto.
7856         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7857         * frv-tdep.c (frv_gdbarch_init): Ditto.
7858         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7859         * i386-tdep.c (i386_gdbarch_init): Ditto.
7860         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7861         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7862         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7863         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7864         * mips-tdep.c (mips_gdbarch_init): Ditto.
7865         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7866         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7867         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7868         * s390-tdep.c (s390_gdbarch_init): Ditto.
7869         * sh-tdep.c (sh_gdbarch_init): Ditto.
7870         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7871         * v850-tdep.c (v850_gdbarch_init): Ditto.
7872         * vax-tdep.c (vax_gdbarch_init): Ditto.
7873         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7874
7875 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
7876
7877         * symfile.c (symfile_relocate_debug_section): Update call to
7878         bfd_simple_get_relocated_section_contents.
7879
7880 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7881
7882         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7883         * gdbarch.h, gdbarch.c: Regenerate.
7884         * inferior.h (FIX_CALL_DUMMY): Delete macro.
7885         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7886         available.
7887         * frame.h (generic_fix_call_dummy): Delete declaration.
7888         * dummy-frame.h: Update comment.
7889         * dummy-frame.c (generic_fix_call_dummy): Delete function.
7890         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7891         fix_call_dummy.
7892         * sh-tdep.c (sh_gdbarch_init): Ditto.
7893         * s390-tdep.c (s390_gdbarch_init): Ditto.
7894         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7895         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7896         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7897         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7898         * i386-tdep.c (i386_gdbarch_init): Ditto.
7899         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7900         * frv-tdep.c (frv_gdbarch_init): Ditto.
7901         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7902         * cris-tdep.c (cris_gdbarch_init): Ditto.
7903         * avr-tdep.c (avr_gdbarch_init): Ditto.
7904         * arm-tdep.c (arm_gdbarch_init): Ditto.
7905
7906 2003-03-31  J. Brobecker  <brobecker@gnat.com>
7907
7908         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7909         (INIT_FRAME_AP): Likewise.
7910         (EXTRA_FRAME_INFO): Likewise.
7911
7912 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7913
7914         * gdbarch.sh: Include "symfile.h".
7915         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7916         * gdbarch.h, gdbarch.c: Re-generate.
7917         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7918         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7919         call_dummy_address, the default is at entry_point_address.
7920         * v850-tdep.c (v850_gdbarch_init): Ditto.
7921         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7922         * sh-tdep.c (sh_gdbarch_init): Ditto.
7923         * s390-tdep.c (s390_gdbarch_init): Ditto.
7924         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7925         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7926         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7927         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7928         * i386-tdep.c (i386_gdbarch_init): Ditto.
7929         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7930         * frv-tdep.c (frv_gdbarch_init): Ditto.
7931         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7932         * cris-tdep.c (cris_gdbarch_init): Ditto.
7933         * arm-tdep.c (arm_gdbarch_init): Ditto.
7934
7935 2003-03-31  Andrew Cagney  <cagney@redhat.com>
7936
7937         * gdbarch.sh (CALL_DUMMY_P): Delete.
7938         * gdbarch.h, gdbarch.c: Re-generate.
7939         * inferior.h (CALL_DUMMY_P): Delete macro.
7940         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7941         * vax-tdep.c (vax_gdbarch_init): Update.
7942         * v850-tdep.c (v850_gdbarch_init): Update.
7943         * sparc-tdep.c (sparc_gdbarch_init): Update.
7944         * sh-tdep.c (sh_gdbarch_init): Update.
7945         * s390-tdep.c (s390_gdbarch_init): Update.
7946         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7947         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7948         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7949         * mips-tdep.c (mips_gdbarch_init): Update.
7950         * mcore-tdep.c (mcore_gdbarch_init): Update.
7951         * m68k-tdep.c (m68k_gdbarch_init): Update.
7952         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7953         * ia64-tdep.c (ia64_gdbarch_init): Update.
7954         * i386-tdep.c (i386_gdbarch_init): Update.
7955         * h8300-tdep.c (h8300_gdbarch_init): Update.
7956         * frv-tdep.c (frv_gdbarch_init): Update.
7957         * d10v-tdep.c (d10v_gdbarch_init): Update.
7958         * cris-tdep.c (cris_gdbarch_init): Update.
7959         * breakpoint.c (deprecated_frame_in_dummy): Update.
7960         * avr-tdep.c (avr_gdbarch_init): Update.
7961         * alpha-tdep.c (alpha_gdbarch_init): Update.
7962         * arm-tdep.c (arm_gdbarch_init): Update.
7963         * dummy-frame.c (dummy_frame_this_id): Update comments.
7964         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7965         * frame.c (legacy_get_prev_frame): Ditto.
7966         * valops.c (call_function_by_hand): Delete function.
7967         (hand_function_call): Rename to call_function_by_hand
7968
7969 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7970
7971         2002-11-10 Klee Dienes <kdienes@apple.com>
7972         * value.h (struct value): Update comment.
7973
7974 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7975
7976         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7977         D10V_FP_REGNUM.
7978         (d10v_gdbarch_init): Do not set fp_regnum.
7979
7980         * frame.c (get_frame_base): Force ID initialization.
7981         (get_prev_frame): Move computation of the frame ID from here ...
7982         (get_frame_id): ... to here.
7983         (legacy_get_prev_frame): Mark the frame ID as valid.
7984         * frame.h (struct frame_info): Add field "id_p".
7985
7986 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
7987
7988         * i386-tdep.c (i386_store_struct_return): Removed.
7989         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7990
7991 2003-03-30  Andrew Cagney  <cagney@redhat.com>
7992
7993         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7994         * gdbarch.h, gdbarch.c: Regenerate.
7995         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7996         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7997         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7998         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7999         * i386-tdep.c (i386_gdbarch_init): Ditto.
8000         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8001         * cris-tdep.c (cris_gdbarch_init): Ditto.
8002         * vax-tdep.c (vax_gdbarch_init): Ditto.
8003         * s390-tdep.c (s390_gdbarch_init): Ditto.
8004         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8005         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8006         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8007         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8008         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8009         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8010         * sparc-tdep.c (sparc_gdbarch_init): Update.
8011         * sh-tdep.c (sh_gdbarch_init): Update.
8012         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8013         * mips-tdep.c (mips_gdbarch_init): Update.
8014         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8015         * ia64-tdep.c (ia64_gdbarch_init): Update.
8016         * frv-tdep.c (frv_gdbarch_init): Update.
8017         * avr-tdep.c (avr_gdbarch_init): Update.
8018         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8019         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
8020         instead of when push_dummy_call is not available.
8021
8022 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8023
8024         * infttrace.c: Include "gdbthread.h".
8025         (parent_attach_all): Fix function signature.
8026         (call_ptrace): Update call.
8027         * Makefile.in (infttrace.o): Update dependencies.
8028
8029 2003-03-30  Andrew Cagney  <cagney@redhat.com>
8030
8031         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8032         PUSH_RETURN_ADDRESS.
8033         * gdbarch.h, gdbarch.c: Regenerate.
8034         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8035         * x86-64-tdep.c (x86_64_init_abi): Update.
8036         * v850-tdep.c (v850_gdbarch_init): Update.
8037         * sparc-tdep.c (sparc_gdbarch_init): Update.
8038         * sh-tdep.c (sh_gdbarch_init): Update.
8039         * s390-tdep.c (s390_gdbarch_init): Update.
8040         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8041         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8042         * mips-tdep.c (mips_gdbarch_init): Update.
8043         * mcore-tdep.c (mcore_gdbarch_init): Update.
8044         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8045         * ia64-tdep.c (ia64_gdbarch_init): Update.
8046         * i386-tdep.c (i386_gdbarch_init): Update.
8047         * h8300-tdep.c (h8300_gdbarch_init): Update.
8048         * frv-tdep.c (frv_gdbarch_init): Update.
8049         * cris-tdep.c (cris_gdbarch_init): Update.
8050         * avr-tdep.c (avr_gdbarch_init): Update.
8051         * arm-tdep.c (arm_gdbarch_init): Update.
8052         * valops.c (hand_function_call): Update.
8053
8054 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8055
8056         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8057         sizeof_call_dummy_words.
8058         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8059         define.
8060         * gdbarch.h: Regenerate.
8061
8062 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8063
8064         * infttrace.h: New file.
8065         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8066         (hpread_get_textlow): Detect an uninitialized dn_bufp.
8067         (hpread_read_doc_function_type): Detect an initialized type1.
8068         (hpread_quick_traverse): Initialize mod_name_string.
8069         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8070         (som_solib_get_solib_by_pc): Declare.
8071         (so_lib_thread_start_addr): Declare.
8072         (no_shared_libraries): Declare.
8073         * somread.c (init_import_symbols): Make static.  Add forward
8074         declaration.
8075         * config/pa/nm-hppah.h: Include "infttrace.h" for
8076         parent_attach_all.
8077         (hppa_insert_hw_watchpoint): Declare.
8078         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8079         * hppah-nat.c: Include "gdb_string.h".
8080         (parent_attach_all): Delete extern declaration, moved to
8081         "infttrace.h".
8082         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8083         int.
8084         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8085         * Makefile.in (infttrace_h): Define.
8086         (hpread.o): Update dependencies.
8087         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8088         * hppa-hpux-tdep.c: Include "gdb_string.h".
8089         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8090         * infrun.c (handle_inferior_event): Always initialize
8091         stepped_after_stopped_by_watchpoint.  Add default and remove
8092         fallthrough in switch statement.
8093         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8094         parameter to int.
8095         (hppa_remove_hw_watchpoint): Ditto.
8096
8097 2003-03-29  Andrew Cagney  <cagney@redhat.com>
8098
8099         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8100         offset.
8101
8102 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
8103
8104         * arm-tdep.c (arm_push_arguments): Delete.
8105         (struct stack_item): New type.
8106         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8107         (arm_store_struct_return): Delte.
8108         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
8109         arm_push_arguments or arm_store_struct_return.
8110
8111 2003-03-28  Andrew Cagney  <cagney@redhat.com>
8112
8113         * Makefile.in (d10v-tdep.o): Update dependencies.
8114         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8115         * d10v-tdep.c: Include "remote.h".
8116         (target_resume_hook): Delete extern declaration.
8117         (target_wait_loop_hook): Ditto.
8118         (tdisassemble_command): Eliminate assignment in "if" conditional.
8119         (d10v_ts2_register_sim_regno): Eliminate call to
8120         legacy_register_sim_regno.
8121         (d10v_ts3_register_sim_regno): Ditto.
8122
8123 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
8124
8125         * thread.c: Reindented.
8126         * lin-lwp.c: Ditto.
8127         * linux-proc.c: Ditto.
8128
8129 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
8130
8131         * MAINTAINERS (write after approval): Add myself.
8132
8133 2003-03-27  Theodore A. Roth  <troth@openavr.org>
8134
8135         * objc-exp.y: Add missing semi-colons.
8136
8137 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8138
8139         * regcache.c (write_sp): Delete function and references.
8140         * inferior.h (write_sp): Delete declaration.
8141         * valops.c (hand_function_call): Replace write_sp with
8142         TARGET_WRITE_SP.
8143         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8144         (sparc_pop_frame): Ditto.
8145
8146 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8147
8148         * NEWS: Mention removal of support for hppa*-*-bsd* and
8149         hppa*-*-osf* natives, and hppa*-*-pro* target.
8150         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8151         * config/pa/xm-pa.h: Obsolete file.
8152         * config/pa/xm-hppab.h: Obsolete file.
8153         * config/pa/nm-hppab.h: Obsolete file.
8154         * config/pa/tm-hppab.h: Obsolete file.
8155         * config/pa/tm-hppao.h: Obsolete file.
8156         * config/pa/nm-hppao.h: Obsolete file.
8157         * config/pa/tm-pro.h: Obsolete file.
8158         * config/pa/hppaosf.mt: Obsolete file.
8159         * config/pa/hppaosf.mh: Obsolete file.
8160         * config/pa/hppapro.mt: Obsolete file.
8161         * config/pa/hppabsd.mt: Obsolete file.
8162         * config/pa/hppabsd.mh: Obsolete file.
8163         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8164         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8165         hppa*-*-osf*.
8166
8167 2003-03-27  Andrew Cagney  <cagney@redhat.com>
8168
8169         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8170         push_arguments.  Don't set push_return_address or write_sp.
8171         (d10v_push_dummy_call): Replace d10v_push_arguments.
8172         (d10v_push_return_address, d10v_write_sp): Delete function,
8173         handled by push_dummy_call.
8174
8175 2003-03-26  Andrew Cagney  <cagney@redhat.com>
8176
8177         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8178         (push_dummy_call): New pure multi-arch replacement with gdbarch,
8179         regcache and dummy_addr parameters.
8180         * gdbarch.h, gdbarch.c: Re-generate.
8181         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8182         available; assume it will handle stack alignment and return
8183         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
8184         legacy_push_arguments.
8185         (legacy_push_arguments): Rename default_push_arguments.
8186         * value.h (legacy_push_arguments): Rename default_push_arguments.
8187         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8188         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8189         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8190         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8191         * config/i386/tm-symmetry.h: Update.
8192         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8193         * x86-64-tdep.c (x86_64_init_abi): Update.
8194         * v850-tdep.c (v850_gdbarch_init): Update.
8195         * sparc-tdep.c (sparc_gdbarch_init): Update.
8196         * sh-tdep.c (sh_gdbarch_init): Update.
8197         * s390-tdep.c (s390_gdbarch_init): Update.
8198         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8199         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8200         * mips-tdep.c (mips_gdbarch_init): Update.
8201         * mcore-tdep.c (mcore_gdbarch_init): Update.
8202         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8203         * ia64-tdep.c (ia64_gdbarch_init): Update.
8204         * i386-tdep.c (i386_gdbarch_init): Update.
8205         * hppa-tdep.c (hppa_gdbarch_init): Update.
8206         * h8300-tdep.c (h8300_gdbarch_init): Update.
8207         * frv-tdep.c (frv_gdbarch_init): Update.
8208         * d10v-tdep.c (d10v_gdbarch_init): Update.
8209         * cris-tdep.c (cris_gdbarch_init): Update.
8210         * avr-tdep.c (avr_gdbarch_init): Update.
8211         * arm-tdep.c (arm_gdbarch_init): Update.
8212         * arm-linux-tdep.c (arm_linux_init_abi): Update.
8213         * alpha-tdep.c (alpha_gdbarch_init): Update.
8214
8215 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8216
8217         * signals/signals.c (do_target_signal_to_host): Correct realtime
8218         signal range test.
8219
8220 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8221
8222         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8223         (struct sal_chain, map_catch_names): Remove.
8224         (catch_exception_command_1): Don't call
8225         handle_gnu_4_16_catch_command.
8226
8227 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8228
8229         From Mark Dettinger <dettinge@de.ibm.com>:
8230         * dwarf2cfi.c (read_2u): Increment pointer by two.
8231
8232 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8233
8234         * signals/signals.c: Fix typos in last change.
8235
8236 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
8237
8238         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8239         not already defined.  Use __SIGRTMIN if available.
8240         (target_signal_from_host): Remove SIGRTMIN block.
8241         (do_target_signal_to_host): Remove SIGRTMIN block; check that
8242         the signal is within the realtime range.
8243
8244 2003-03-25  Adam Fedor  <fedor@gnu.org>
8245
8246         * Makefile.in (infrun.o): Add $(language_h)
8247         * infrun.c (handle_inferior_event): Use skip_language_trampoline
8248         for language specific trampolines.
8249         * language.h (struct language_defn): Add skip_trampoline.
8250         (skip_language_trampoline): Declare.
8251         * language.c (unk_lang_trampoline, skip_language_trampoline):
8252         New functions.
8253         (unknown_language_defn, auto_language_defn, local_language_defn):
8254         Add ukn_lang_trampoline.
8255         * ada-lang.c (ada_language_defn): Add NULL for language
8256         specific skip_trampoline.
8257         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8258         scm-lang.c: Likewise.
8259         * objc-lang.c (objc_skip_trampoline): New function.
8260         (objc_language_defn): Add objc_skip_trampoline.
8261
8262 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8263
8264         * frame.c (get_prev_frame): Delay validating a frame's ID -
8265         non-NULL, didn't go backwards - until an attempt to unwind it to
8266         the previous frame.
8267
8268 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8269
8270         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8271         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
8272         * gdbarch.h, gdbarch.c: Re-generate.
8273         * config/sparc/tm-sparc.h
8274         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8275         * sparc-tdep.c (sparc_gdbarch_init): Set
8276         deprecated_extra_stack_alignment_needed.
8277         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8278         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8279         extra_stack_alignment_needed.
8280         * v850-tdep.c (v850_gdbarch_init): Ditto.
8281         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8282         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8283         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8284         * cris-tdep.c (cris_gdbarch_init): Ditto.
8285         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8286         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8287
8288 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8289
8290         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8291         STORE_STRUCT_RETURN.
8292         * gdbarch.h, gdbarch.c: Regenerate.
8293         * d10v-tdep.c (d10v_store_struct_return): Delete function.
8294         (d10v_push_arguments): Set the struct return register.
8295         (d10v_gdbarch_init): Update.
8296         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8297         * x86-64-tdep.c (x86_64_init_abi): Update.
8298         * vax-tdep.c (vax_gdbarch_init): Update.
8299         * v850-tdep.c (v850_gdbarch_init): Update.
8300         * sparc-tdep.c (sparc_gdbarch_init): Update.
8301         * sh-tdep.c (sh_gdbarch_init): Update.
8302         * s390-tdep.c (s390_gdbarch_init): Update.
8303         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8304         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8305         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8306         * mips-tdep.c (mips_gdbarch_init): Update.
8307         * mcore-tdep.c (mcore_gdbarch_init): Update.
8308         * m68k-tdep.c (m68k_gdbarch_init): Update.
8309         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8310         * ia64-tdep.c (ia64_gdbarch_init): Update.
8311         * i386-tdep.c (i386_gdbarch_init): Update.
8312         * hppa-tdep.c (hppa_gdbarch_init): Update.
8313         * h8300-tdep.c (h8300_gdbarch_init): Update.
8314         * frv-tdep.c (frv_gdbarch_init): Update.
8315         * cris-tdep.c (cris_gdbarch_init): Update.
8316         * avr-tdep.c (avr_gdbarch_init): Update.
8317         * arm-tdep.c (arm_gdbarch_init): Update.
8318         * alpha-tdep.c (alpha_gdbarch_init): Update.
8319
8320 2003-03-25  Andrew Cagney  <cagney@redhat.com>
8321
8322         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8323         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8324         CALL_DUMMY_STACK_ADJUST with a predicate variable.
8325         * gdbarch.h, gdbarch.c: Regenerate.
8326         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8327         call_dummy_stack_adjust_p.
8328         * vax-tdep.c (vax_gdbarch_init): Ditto.
8329         * v850-tdep.c (v850_gdbarch_init): Ditto.
8330         * sh-tdep.c (sh_gdbarch_init): Ditto.
8331         * s390-tdep.c (s390_gdbarch_init): Ditto.
8332         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8333         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8334         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8335         * mips-tdep.c (mips_gdbarch_init): Ditto.
8336         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8337         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8338         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8339         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8340         * i386-tdep.c (i386_gdbarch_init): Ditto.
8341         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8342         * frv-tdep.c (frv_gdbarch_init): Ditto.
8343         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8344         * cris-tdep.c (cris_gdbarch_init): Ditto.
8345         * avr-tdep.c (avr_gdbarch_init): Ditto.
8346         * arm-tdep.c (arm_gdbarch_init): Ditto.
8347         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8348         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8349         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8350         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8351         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
8352         call_dummy_stack_adjust_p.
8353         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8354         (CALL_DUMMY_STACK_ADJUST): Delete macro.
8355         * sparc-tdep.c (sparc32_push_arguments): Update.
8356         * valops.c (hand_function_call): Update.
8357
8358 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
8359
8360         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8361         set_gdbarch_char_signed.
8362
8363 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8364
8365         PR cli/548
8366         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8367
8368 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
8369
8370         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8371         (_initialize_arm_tdep): Don't set tm_print_insn.
8372
8373 2003-03-24  Adam Fedor  <fedor@gnu.org>
8374
8375         * Makefile.in (YYOBJ): Add objc-exp.tab.o
8376         * objc-lang.h: Add multiple inclusion protection.
8377         (start_msglist, add_msglist, end_msglist): Additional declarations.
8378
8379 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
8380
8381         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8382         value was renamed to ARM_FLOAT_SOFT_FPA.
8383
8384 2003-03-23  Andrew Cagney  <cagney@redhat.com>
8385
8386         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8387         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8388         * gdbarch.h, gdbarch.c: Regenerate.
8389         * valops.c (hand_function_call): Update.
8390         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8391         * frame.c (legacy_saved_regs_this_id): Update.
8392         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8393         * dummy-frame.h: Update.
8394         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8395         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8396         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8397         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8398         * config/m68k/tm-sun3.h: Update.
8399         * blockframe.c (inside_main_func, frame_chain_valid): Update.
8400         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8401         * x86-64-tdep.c (x86_64_init_abi): Update.
8402         * vax-tdep.c (vax_gdbarch_init): Update.
8403         * v850-tdep.c (v850_gdbarch_init): Update.
8404         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8405         * sh-tdep.c (sh_gdbarch_init): Update.
8406         * s390-tdep.c (s390_gdbarch_init): Update.
8407         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8408         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8409         (frame_get_saved_regs): Update.
8410         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8411         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8412         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8413         * mips-tdep.c (mips_gdbarch_init): Update.
8414         * mcore-tdep.c (mcore_gdbarch_init): Update.
8415         * m68k-tdep.c (m68k_gdbarch_init): Update.
8416         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8417         * ia64-tdep.c (ia64_gdbarch_init): Update.
8418         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8419         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8420         (i386_interix_back_one_frame): Update.
8421         * hppa-tdep.c (hppa_gdbarch_init): Update.
8422         (hppa_init_extra_frame_info): Update.
8423         * h8300-tdep.c (h8300_gdbarch_init): Update.
8424         * frv-tdep.c (frv_gdbarch_init): Update.
8425         * cris-tdep.c (cris_gdbarch_init): Update.
8426         * avr-tdep.c (avr_gdbarch_init): Update.
8427         * arm-tdep.c (arm_gdbarch_init): Update.
8428         * alpha-tdep.c (alpha_gdbarch_init): Update.
8429
8430 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8431
8432         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8433         (arm_get_fp_model): Declare.
8434         * arm-tdep.c (fp_model_strings): New string array.
8435         (arm_fp_model, current_fp_model): New variables.
8436         (arm_get_fp_model): New function.
8437         (arm_set_fp): New function.
8438         (set_fp_model_sfunc): New function.
8439         (show_fp_model): New function.
8440         (_initialize_arm_tdep): Add new command to set/show the FPU.
8441         (arm_extract_return_value): Use arm_get_fp_model.
8442         (arm_store_return_value): Likewise.
8443         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
8444         to initialize the floating-point data types.
8445         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8446         model is FPA.
8447
8448 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8449
8450         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
8451         the current setting of each value.
8452         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8453         new_set and new_show.  Use add_setshow_cmd_full and
8454         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
8455         commands and add new version as subcommands of "set/show arm".
8456
8457 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8458
8459         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8460         (set_arm_command, show_arm_command): New functions.
8461         (_initialize_arm_tdep): Add them.
8462         (num_disassembly_options): Renamed from num_flavor_options.
8463         (valid_disassembly_styles): Renamed from valid_flavors.
8464         (disassembly_style): Renamed from disassembly_flavor.
8465         (set_disassembly_style_sfunc): Renamed from
8466         set_disassembly_flavor_sfunc.
8467         (set_disassembly_style): Renamed from set_disassembly_flavor.
8468         (arm_othernames): Updated.
8469         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8470         command.  Add "set/show arm disassembly" commands.  Deprecate
8471         "othernames" command.
8472
8473 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8474
8475         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8476         (arm-tdep.o): Depend on elf_arm_h.
8477
8478 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8479
8480         * Makefile.in (coff_internal_h): Define.
8481         (arm-tdep.o): Update dependencies.
8482
8483 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
8484
8485         * arm-tdep.c (prologue_cache): Delete.
8486         (check_prologue_cache, save_prologue_cache): Delete.
8487         (arm_scan_prologue): Don't check or update the prologue_cache.
8488         (arm_gdb_arch_init): Don't initialize it.
8489         (_initialize_arm_tdep): Likewise.
8490
8491 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
8492
8493         * MAINTAINERS (tui): Maintainer of tui code.
8494
8495 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
8496
8497         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8498         (i386-cygwin-tdep.o): Add dependencies.
8499         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8500         * i386-cygwin-tdep.c: New file.
8501         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8502         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8503
8504 2003-03-20  Andrew Cagney  <cagney@redhat.com>
8505
8506         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8507         (handle_inferior_event): Remove code calling
8508         DYNAMIC_TRAMPOLINE_NEXTPC.
8509
8510         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8511         already has a full path.
8512
8513         * main.c (gdb_main): Return 1.
8514         (captured_main): Call error to report an invalid interpreter.
8515
8516         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8517         * alpha-osf1-tdep.c: Include "gdb_string.h".
8518
8519 2003-03-19  J. Brobecker  <brobecker@gnat.com>
8520
8521         Continuing work to convert the hppa targets to multiarch partial.
8522
8523         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8524         method, now that hppa_push_dummy_frame has a conformant prototype.
8525         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8526         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8527         for the switch to multiarch partial.
8528
8529 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
8530
8531         * mdebugread.c (parse_symbol): For stEnd, we're done counting
8532         when iss is issNull.
8533
8534 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8535
8536         * mips-tdep.c (mips_register_name): Fix fencepost error involving
8537         NUM_REGS bounds check.
8538
8539 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
8540
8541         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8542         * mips-tdep.c (gdb_assert.h): Include.
8543         (mips_generic_reg_names, mips_processor_reg_names): Make static.
8544         (mips_register_name): Handle integer registers explicitly.  Add
8545         bounds checking.
8546         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8547         (mips_lsi33k_reg_names): Don't list integer registers; they're
8548         handled by mips_register_name() now.
8549         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8550         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8551         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8552         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8553         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8554
8555 2003-03-18  Andrew Cagney  <cagney@redhat.com>
8556
8557         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8558         a void pointer.
8559         * gdbtypes.h (print_scalar_formatted): Update declaration.
8560         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8561
8562 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8563
8564         * infrun.c (observer.h): Add #include.
8565         (normal_stop): Add call to observer_notify_normal_stop.
8566         * Makefile.in (infrun.o): Add dependency on observer.h.
8567
8568 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8569
8570         Continuing work to convert the hppa targets to multiarch partial.
8571         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8572         parameter. Reformat comment.
8573         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8574         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8575         to match new profile.
8576
8577 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8578
8579         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8580         appear to be working in any case.
8581
8582 2003-03-18  J. Brobecker  <brobecker@gnat.com>
8583
8584         * observer.c (observer_test_first_observer): New static variable.
8585         (observer_test_second_observer): Likewise.
8586         (observer_test_third_observer): Likewise.
8587         (observer_test_first_notification_function): New static function.
8588         (observer_test_second_notification_function): Likewise.
8589         (observer_test_third_notification_function): Likewise.
8590
8591 2003-03-17  J. Brobecker  <brobecker@gnat.com>
8592
8593         * hppa-tdep.c (gdb_assert.h): Add missing #include.
8594         * somsolib.c (gdb_assert.h): Likewise.
8595         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8596         (somsolib.o): Likewise.
8597
8598 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8599
8600         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8601         BFD.  Simplify setting of di.endian.
8602
8603 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8604
8605         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8606         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8607
8608         From Elena Zannoni  <ezannoni@redhat.com>
8609         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8610         vector and floating-point parameters.
8611         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8612         convention.
8613         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8614
8615 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
8616
8617         * MAINTAINERS: Remove my name from several maintainership roles.
8618
8619 2003-03-17  Andrew Cagney  <cagney@redhat.com>
8620
8621         Fix frame off-by-one bug.
8622         * frame-unwind.h (frame_this_id_ftype): Replace
8623         frame_unwind_id_ftype.
8624         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8625         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
8626         with "prev_register".
8627         * frame-unwind.c (frame_unwind_find_by_pc): Return
8628         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
8629         comment.
8630         * dummy-frame.c (cached_find_dummy_frame): Delete function.
8631         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8632         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8633         (dummy_frame_unwind): Update.
8634         * sentinel-frame.c (sentinel_frame_prev_register): Replace
8635         sentinel_frame_register_unwind.
8636         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8637         (sentinel_frame_unwinder): Update.
8638         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8639         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8640         * frame.c (create_sentinel_frame): Update. Initialize
8641         "prologue_cache" instead of "unwind_cache".
8642         (frame_register_unwind): Call this frame's prev_register with the
8643         next frame and this frame's prologue cache.
8644         (get_prev_frame): Simplify.  Always call prev frame's this_id with
8645         this frame and prev frame's prologue cache.  Document that this
8646         call is shifted one to the left when compared to the
8647         frame_register_unwind call.
8648         (legacy_saved_regs_prev_register): Replace
8649         frame_saved_regs_register_unwind.
8650         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8651         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8652         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8653         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8654         (d10v_frame_unwind): Update.
8655         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8656         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8657         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8658         "saved_regs" with "this_saved_regs".
8659
8660 2003-03-16  Andrew Cagney  <cagney@redhat.com>
8661
8662         * frame.c (frame_pop): Don't call target_store_registers.  Fix
8663         problem reported by Mark Kettenis.
8664
8665 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
8666
8667         * i386-tdep.c (i386_register_type): Renamed from
8668         i386_register_virtual_type.  Adjust function signature.
8669         (i386_gdbarch_init): Set register_type instead of
8670         deprecated_max_register_raw_size,
8671         deprecated_max_register_virtual_size and register_virtual_type.
8672
8673 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8674
8675         * frame.c (get_prev_frame): When a legacy frame, always call
8676         legacy_get_prev_frame.  Simplify unwind code using assumption that
8677         the unwinder is new.
8678         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8679         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8680         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8681
8682 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8683
8684         * frame.c (get_saved_register): Delete function.
8685         * frame.h (get_saved_register): Delete declaration.
8686         * xstormy16-tdep.c: Update comment.
8687         * regcache.h: Update comments.
8688         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8689         get_saved_register and extract_address, use
8690         frame_read_unsigned_register.
8691         (sparc_frame_saved_pc): Ditto.
8692         (sparc_get_saved_register): Instead of get_saved_register, use
8693         frame_register.
8694         (sparc_pop_frame): Ditto.
8695         * findvar.c: Update comments.
8696         (value_of_register): Call frame_register instead of
8697         get_saved_register.
8698         (value_from_register): Ditto.
8699         * config/sparc/tm-sparc.h: Update comment.
8700         * breakpoint.c: Update comment.
8701
8702 2003-03-14  Andrew Cagney  <cagney@redhat.com>
8703
8704         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8705         GET_SAVED_REGISTER.
8706         * gdbarch.h, gdbarch.c: Re-generate.
8707         * frame.h: Update comments.
8708         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8709         * x86-64-tdep.c (x86_64_init_abi): Update.
8710         * sparc-tdep.c (sparc_gdbarch_init): Update.
8711         * sh-tdep.c (sh_gdbarch_init): Update.
8712         * mips-tdep.c (mips_gdbarch_init): Update.
8713         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8714         * cris-tdep.c (cris_gdbarch_init): Update.
8715         * ia64-tdep.c (ia64_gdbarch_init): Update.
8716         * frame.c (frame_register): Update.
8717         (get_saved_register): Update.
8718         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8719
8720 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8721
8722         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8723         * gdbarch.h, gdbarch.c: Regenerate.
8724         * valops.c (hand_function_call): Update comment.
8725         * stack.c (return_command): Update comment.
8726         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8727         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8728         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8729         * x86-64-tdep.c (x86_64_init_abi): Update.
8730         * vax-tdep.c (vax_gdbarch_init): Update.
8731         * v850-tdep.c (v850_gdbarch_init): Update.
8732         * sparc-tdep.c (sparc_gdbarch_init): Update.
8733         * sh-tdep.c (sh_gdbarch_init): Update.
8734         * s390-tdep.c (s390_gdbarch_init): Update.
8735         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8736         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8737         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8738         * mips-tdep.c (mips_gdbarch_init): Update.
8739         * mcore-tdep.c (mcore_gdbarch_init): Update.
8740         * m68k-tdep.c (m68k_gdbarch_init): Update.
8741         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8742         * ia64-tdep.c (ia64_gdbarch_init): Update.
8743         * i386-tdep.c (i386_gdbarch_init): Update.
8744         * hppa-tdep.c (hppa_gdbarch_init): Update.
8745         * h8300-tdep.c (h8300_gdbarch_init): Update.
8746         * frv-tdep.c (frv_gdbarch_init): Update.
8747         * cris-tdep.c (cris_gdbarch_init): Update.
8748         * avr-tdep.c (avr_gdbarch_init): Update.
8749         * arm-tdep.c (arm_gdbarch_init): Update.
8750         * alpha-tdep.c (alpha_gdbarch_init): Update.
8751
8752 2003-03-13  Andrew Cagney  <cagney@redhat.com>
8753
8754         * frame.c (legacy_frame_p): New function.
8755         (get_prev_frame): Use legacy_frame_p.
8756         * frame.h (legacy_frame_p): Declare.
8757
8758 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8759
8760         * MAINTAINERS (write after approval): Alphabetically
8761         listing corrected.
8762
8763 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8764
8765         * MAINTAINERS (write after approval): Add myself.
8766
8767 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8768
8769         * frame.c (get_prev_frame): Rename the frame parameter to
8770         "this_frame".
8771         (get_next_frame, legacy_get_prev_frame): Ditto.
8772
8773 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8774
8775         * frame.c (get_current_frame): Check target_has_registers before
8776         checking target_has_stack.
8777         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8778         instead of deprecated_selected_frame.
8779         * findvar.c (value_of_register): Pass "frame", not
8780         deprecated_selected_frame, to value_of_builtin_reg.
8781
8782 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8783
8784         * regcache.c (regcache_cooked_write_signed): New function.
8785         (regcache_cooked_write_unsigned): New function.
8786         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8787         (regcache_cooked_read_signed): Fix regnum in range assertion.
8788         * regcache.h (regcache_cooked_write_signed): Declare.
8789         (regcache_cooked_write_unsigned): Declare.
8790
8791 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8792
8793         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8794         * gdbarch.h, gdbarch.c: Re-generate.
8795         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8796         * x86-64-tdep.h: Update.
8797         * x86-64-tdep.c (x86_64_init_abi): Update.
8798         * v850-tdep.c (v850_gdbarch_init): Update.
8799         * sparc-tdep.c (sparc_gdbarch_init): Update.
8800         * sh-tdep.c (sh_gdbarch_init): Update.
8801         * s390-tdep.c (s390_gdbarch_init): Update.
8802         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8803         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8804         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8805         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8806         * mips-tdep.c (mips_gdbarch_init): Update.
8807         * mcore-tdep.c (mcore_gdbarch_init): Update.
8808         * m68k-tdep.c (m68k_gdbarch_init): Update.
8809         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8810         * ia64-tdep.c (ia64_gdbarch_init): Update.
8811         * i386-tdep.c (i386_gdbarch_init): Update.
8812         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8813         * hppa-tdep.c (hppa_gdbarch_init): Update.
8814         * h8300-tdep.c (h8300_gdbarch_init): Update.
8815         * frv-tdep.c (frv_gdbarch_init): Update.
8816         * cris-tdep.c (cris_gdbarch_init): Update.
8817         * avr-tdep.c (avr_gdbarch_init): Update.
8818         * arm-tdep.c (arm_gdbarch_init): Update.
8819         * alpha-tdep.c (alpha_gdbarch_init): Update.
8820         * sh-tdep.c (sh_init_extra_frame_info): Update.
8821         (sh64_init_extra_frame_info): Update.
8822         * ns32knbsd-nat.c (frame_num_args): Update.
8823         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8824         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8825         (xstormy16_frame_chain_valid): Update.
8826         * vax-tdep.c (vax_saved_pc_after_call): Update.
8827         * v850-tdep.c (v850_frame_chain): Update.
8828         (v850_pop_frame): Update.
8829         (v850_init_extra_frame_info): Update.
8830         * sparc-tdep.c (setup_arbitrary_frame): Update.
8831         * ns32k-tdep.c (umax_frame_num_args): Update.
8832         * s390-tdep.c (s390_pop_frame_regular): Update.
8833         * mn10300-tdep.c (mn10300_frame_chain): Update.
8834         (mn10300_pop_frame_regular): Update.
8835         (mn10300_init_extra_frame_info): Update.
8836         * mips-tdep.c (mips_init_frame_pc_first): Update.
8837         (mips_frame_chain): Update.
8838         (mips_pop_frame): Update.
8839         * mcore-tdep.c (mcore_frame_chain): Update.
8840         (mcore_pop_frame): Update.
8841         (mcore_init_extra_frame_info): Update.
8842         * arch-utils.c (init_frame_pc_default): Update.
8843         * m68k-tdep.c (isi_frame_num_args): Update.
8844         (delta68_frame_num_args): Update.
8845         (news_frame_num_args): Update.
8846         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8847         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8848         (alpha_frame_chain): Update.
8849         (alpha_pop_frame): Update.
8850         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8851         (hppa_init_extra_frame_info): Update.
8852         (hppa_frame_chain): Update.
8853         (hppa_frame_chain_valid): Update.
8854         * cris-tdep.c (cris_init_extra_frame_info): Update.
8855         * avr-tdep.c (avr_init_extra_frame_info): Update.
8856         * arm-tdep.c (arm_frame_chain_valid): Update.
8857         (arm_init_extra_frame_info): Update.
8858         (arm_pop_frame): Update.
8859         * frame.c (frame_pc_unwind): Update.
8860         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8861         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8862         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8863         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8864         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8865         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8866
8867 2003-03-12  Andrew Cagney  <cagney@redhat.com>
8868
8869         Eliminate the need for POP_FRAME.
8870         * frame.c (do_frame_unwind_register): New function.
8871         (frame_pop): When no POP_FRAME, pop the frame using register
8872         unwind and a scratch regcache.
8873         (frame_saved_regs_pop): Delete function.
8874         (trad_frame_unwinder): Update.
8875         * d10v-tdep.c (d10v_frame_pop): Delete function.
8876         (d10v_frame_unwind): Update.
8877         * sentinel-frame.c (sentinel_frame_pop): Delete function.
8878         (sentinel_frame_unwinder): Update.
8879         * dummy-frame.c (dummy_frame_pop): Delete function.
8880         (dummy_frame_unwind): Update.
8881         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8882         (struct frame_unwind): Update.
8883
8884 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
8885
8886         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8887         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8888         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8889         Do range checks on register number obtained from debugging info.
8890         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8891         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
8892         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8893         mapping function.
8894         (do_fp_register_row): Fix typo which caused double type to be
8895         used when attempting to unpack a float.
8896
8897 2003-03-11  J. Brobecker  <brobecker@gnat.com>
8898
8899         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8900
8901 2003-03-11  Andrew Cagney  <cagney@redhat.com>
8902
8903         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8904         frame.  Problem found by Corinna Vinschen.
8905
8906 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
8907
8908         * doublest.c (floatformat_from_length): Accept also
8909         the real size of 'long double' type.
8910
8911 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
8912
8913         From Klee Dienes <kdienes@apple.com>:
8914         * breakpoint.c (bpstat_copy): Copy the command lines as well
8915         as the old value, to match what is freed in bpstat_clear.
8916
8917 2003-03-10  David Carlton  <carlton@math.stanford.edu>
8918
8919         * minsyms.c (add_minsym_to_hash_table): Replace
8920         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8921         (compare_minimal_symbols, compact_minimal_symbols)
8922         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8923         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8924         of DEPRECATED_SYMBOL_MATCHES_NAME.
8925         (lookup_minimal_symbol_solib_trampoline): Ditto.
8926
8927 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8928
8929         * regcache.h (regcache_cooked_read_ftype): Define.
8930         (regcache_save, regcache_restore): Add a cooked_read parameter.
8931         * regcache.c (regcache_save, regcache_restore): Update.
8932         (do_cooked_read): New function.
8933         (regcache_cpy): Pass do_cooked_read to regcache_save and
8934         regcache_restore.
8935
8936 2003-03-10  Andrew Cagney  <cagney@redhat.com>
8937
8938         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8939         * gdbarch.h, gdbarch.c: Re-generate.
8940         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8941         * x86-64-tdep.h: Update.
8942         * x86-64-tdep.c (x86_64_init_abi): Update.
8943         * v850-tdep.c (v850_gdbarch_init): Update.
8944         * sparc-tdep.c (sparc_gdbarch_init): Update.
8945         * sh-tdep.c (sh_gdbarch_init): Update.
8946         * s390-tdep.c (s390_gdbarch_init): Update.
8947         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8948         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8949         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8950         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8951         * mips-tdep.c (mips_gdbarch_init): Update.
8952         * mcore-tdep.c (mcore_gdbarch_init): Update.
8953         * m68k-tdep.c (m68k_gdbarch_init): Update.
8954         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8955         * ia64-tdep.c (ia64_gdbarch_init): Update.
8956         * i386-tdep.c (i386_gdbarch_init): Update.
8957         * i386-interix-tdep.c (i386_interix_init_abi): Update.
8958         * hppa-tdep.c (hppa_gdbarch_init): Update.
8959         * h8300-tdep.c (h8300_gdbarch_init): Update.
8960         * frv-tdep.c (frv_gdbarch_init): Update.
8961         * cris-tdep.c (cris_gdbarch_init): Update.
8962         * avr-tdep.c (avr_gdbarch_init): Update.
8963         * arm-tdep.c (arm_gdbarch_init): Update.
8964         * alpha-tdep.c (alpha_gdbarch_init): Update.
8965         * sh-tdep.c (sh_init_extra_frame_info): Update.
8966         (sh64_init_extra_frame_info): Update.
8967         * ns32knbsd-nat.c (frame_num_args): Update.
8968         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8969         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8970         (xstormy16_frame_chain_valid): Update.
8971         * vax-tdep.c (vax_saved_pc_after_call): Update.
8972         * v850-tdep.c (v850_frame_chain): Update.
8973         (v850_pop_frame): Update.
8974         (v850_init_extra_frame_info): Update.
8975         * sparc-tdep.c (setup_arbitrary_frame): Update.
8976         * ns32k-tdep.c (umax_frame_num_args): Update.
8977         * s390-tdep.c (s390_pop_frame_regular): Update.
8978         * mn10300-tdep.c (mn10300_frame_chain): Update.
8979         (mn10300_pop_frame_regular): Update.
8980         (mn10300_init_extra_frame_info): Update.
8981         * mips-tdep.c (mips_init_frame_pc_first): Update.
8982         (mips_frame_chain): Update.
8983         (mips_pop_frame): Update.
8984         * mcore-tdep.c (mcore_frame_chain): Update.
8985         (mcore_pop_frame): Update.
8986         (mcore_init_extra_frame_info): Update.
8987         * arch-utils.c (init_frame_pc_default): Update.
8988         * m68k-tdep.c (isi_frame_num_args): Update.
8989         (delta68_frame_num_args): Update.
8990         (news_frame_num_args): Update.
8991         * ia64-tdep.c (ia64_pop_frame_regular): Update.
8992         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8993         (alpha_frame_chain): Update.
8994         (alpha_pop_frame): Update.
8995         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8996         (hppa_init_extra_frame_info): Update.
8997         (hppa_frame_chain): Update.
8998         (hppa_frame_chain_valid): Update.
8999         * cris-tdep.c (cris_init_extra_frame_info): Update.
9000         * avr-tdep.c (avr_init_extra_frame_info): Update.
9001         * arm-tdep.c (arm_frame_chain_valid): Update.
9002         (arm_init_extra_frame_info): Update.
9003         (arm_pop_frame): Update.
9004         * frame.c (frame_pc_unwind): Update.
9005         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9006         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9007         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9008         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9009         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9010         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9011
9012 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9013
9014         * gdbarch.sh (gdbarch_unwind_pc): New method.
9015         * gdbarch.h, gdbarch.c: Regenerate.
9016         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
9017         but use read_pc and FRAME_SAVED_PC as fall backs.
9018         (frame_saved_regs_pc_unwind): Delete function.
9019         (trad_frame_unwinder): Update.
9020         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9021         (struct frame_unwind): Update.
9022         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9023         (dummy_frame_unwind): Update.
9024         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9025         (sentinel_frame_unwinder): Update.
9026         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9027         (d10v_frame_unwind): Update.
9028         (d10v_unwind_pc): New function.
9029         (d10v_gdbarch_init): Set unwind_pc.
9030
9031 2003-03-10  Andrew Cagney  <cagney@redhat.com>
9032
9033         * gdbarch.h: Re-generate.
9034
9035         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9036         PC.
9037         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9038         the PC register.
9039
9040 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
9041
9042         * gdbarch.sh (save_dummy_frame_tos): Add comment.
9043
9044 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9045
9046         * cli-out.c: Update copyright.
9047         (cli_out_data): Define typedef.  Use instead of ui_out_data.
9048
9049 2003-03-08  Andrew Cagney  <cagney@redhat.com>
9050
9051         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9052         the result.
9053
9054 2003-03-07  Andrew Cagney  <cagney@redhat.com>
9055
9056         * gdbarch.sh: Don't generate two macro definitions when an
9057         undefined macro taking no arguments.
9058         * gdbarch.h: Regenerate.
9059
9060 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
9061
9062         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9063         (x86_64_unwind_dummy_id): New functions.
9064         (x86_64_init_abi): Register these two new functions.
9065
9066 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
9067
9068         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9069         (x86_64_skip_prologue): Move prologue detection to
9070         separate function.
9071         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9072
9073 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9074
9075         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9076         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9077         * frame.c (get_prev_frame): Restructure the frame ID unwind code
9078         to use unwind_dummy_id when a dummy frame.
9079         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9080         predicate.
9081         * gdbarch.h, gdbarch.c: Regneerate.
9082
9083 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9084
9085         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9086         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9087         Do not use d10v_read_sp or d10v_read_fp when obtaining register
9088         values.
9089
9090 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9091
9092         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9093         (struct d10v_unwind_cache): Delete field "frameless".  Replace
9094         "next_addr" with "sp_offset".  Add "r11_offset".
9095         (d10v_frame_unwind_cache): Update.
9096         (prologue_find_regs): Update.  When "mv r11, sp", save the
9097         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
9098         RN was saved in r11_offset.
9099
9100 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9101
9102         * frame.c (deprecated_update_frame_pc_hack): Also update the the
9103         cached PC value in the next frame.
9104
9105 2003-03-05  Andrew Cagney  <cagney@redhat.com>
9106
9107         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9108         "id_unwind_cache" with "id".
9109         (frame_id_unwind): Delete declaration.
9110         * frame.c (frame_id_unwind): Delete function.
9111         (get_prev_frame): Call the frame id unwind method directly.  Store
9112         the returned next frame's ID value in NEXT_FRAME.  Note that there
9113         is a problem with the wrong unwind ID being called with the wrong
9114         unwind cache.
9115
9116 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9117
9118         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9119
9120 2003-03-05  James Ingham <jingham@apple.com>
9121             Daniel Jacobowitz  <drow@mvista.com>
9122
9123         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9124         (auto_cp_abi): New variable.
9125         (current_cp_abi, num_cp_abis): Make static.
9126         (CP_ABI_MAX): Define.
9127         (cp_abis): Turn into an array.
9128         (value_virtual_fn_field): Fix formatting.
9129         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
9130         takes a pointer.
9131         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9132         (list_cp_abis, _initialize_cp_abi): New functions.
9133         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
9134         declarations for cp_abis, num_cp_abis, current_cp_abi, and
9135         switch_to_cp_abi.  Update prototype for register_cp_abi.
9136         * Makefile.in (cp-abi.o): Update dependencies.
9137         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9138         instead of switch_to_cp_abi.
9139         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
9140         register_cp_abi.
9141         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9142         register_cp_abi.
9143         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9144
9145 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
9146
9147         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9148         * dwarf2loc.c: Include "regcache.h".
9149         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
9150         register_size.
9151         * Makefile.in (dwarf2loc.o): Update dependencies.
9152
9153 2003-03-04  Theodore A. Roth  <troth@openavr.org>
9154
9155         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9156         number of io registers reported by remote target is not a multiple of
9157         step.
9158
9159 2003-03-04  David Carlton  <carlton@math.stanford.edu>
9160
9161         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9162         (lookup_symbol_aux_psymtabs): Update call to
9163         lookup_partial_symbol.
9164         (lookup_transparent_type, find_main_psymtab)
9165         (make_symbol_overload_list): Ditto.
9166
9167 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9168
9169         * MAINTAINERS (Write after approval): Update my email address.
9170
9171 2003-03-03  Andrew Cagney  <cagney@redhat.com>
9172
9173         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9174         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9175         predicate.  Replace MAX_REGISTER_RAW_SIZE.
9176         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9177         MAX_REGISTER_VIRTUAL_SIZE.
9178         * regcache.c (legacy_max_register_raw_size): New function.
9179         (legacy_max_register_virtual_size): New function.
9180         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9181         (MAX_REGISTER_RAW_SIZE): Define.
9182         (legacy_max_register_raw_size): Declare.
9183         (legacy_max_register_virtual_size): Declare.
9184         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9185         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9186         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9187         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9188         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9189         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9190         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9191         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9192         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9193         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9194         * vax-tdep.c (vax_gdbarch_init): Update.
9195         * v850-tdep.c (v850_gdbarch_init): Update.
9196         * sparc-tdep.c (sparc_gdbarch_init): Update.
9197         * sh-tdep.c (sh_gdbarch_init): Update.
9198         * s390-tdep.c (s390_gdbarch_init): Update.
9199         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9200         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9201         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9202         * mips-tdep.c (mips_gdbarch_init): Update.
9203         * mcore-tdep.c (mcore_gdbarch_init): Update.
9204         * m68k-tdep.c (m68k_gdbarch_init): Update.
9205         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9206         * ia64-tdep.c (ia64_gdbarch_init): Update.
9207         * i386-tdep.c (i386_gdbarch_init): Update.
9208         * hppa-tdep.c (hppa_gdbarch_init): Update.
9209         * h8300-tdep.c (h8300_gdbarch_init): Update.
9210         * frv-tdep.c (frv_gdbarch_init): Update.
9211         * cris-tdep.c (cris_gdbarch_init): Update.
9212         * avr-tdep.c (avr_gdbarch_init): Update.
9213         * arm-tdep.c (arm_gdbarch_init): Update.
9214         * alpha-tdep.c (alpha_gdbarch_init): Update.
9215         * d10v-tdep.c (d10v_gdbarch_init): Do not set
9216         max_register_raw_size or max_register_virtual_size.
9217
9218 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9219
9220         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9221         SYMBOL_MATCHES_NAME, add comment.
9222         (SYMBOL_MATCHES_NATURAL_NAME): New.
9223         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9224         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9225         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9226         * symtab.c (lookup_partial_symbol): Use
9227         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
9228         unhelpful comment.
9229         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9230         SYMBOL_MATCHES_NAME.
9231         Fix for PR c++/33.
9232
9233 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9234
9235         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9236         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9237         by regexp matching against SYMBOL_NATURAL_NAME.
9238
9239 2003-03-03  David Carlton  <carlton@math.stanford.edu>
9240
9241         * linespec.c (find_method): Extract code into collect_methods.
9242         (collect_methods): New.
9243
9244 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
9245
9246         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9247         get_frame_base.
9248
9249         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9250         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9251
9252 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9253
9254         * arch-utils.c (generic_register_byte): Fix to use the loop index
9255         and not regnum when summing the size of all registers up to regnum.
9256
9257 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9258
9259         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9260         FRAME_INIT_SAVED_REGS.
9261         * gdbarch.h, gdbarch.c: Regenerate.
9262         * stack.c (frame_info): Update.
9263         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9264         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9265         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9266         * ns32k-tdep.c (ns32k_pop_frame): Update.
9267         * mips-tdep.c (mips_pop_frame): Update.
9268         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9269         * ia64-tdep.c (ia64_frame_chain): Update.
9270         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9271         (ia64_frameless_function_invocation): Update.
9272         (ia64_init_extra_frame_info): Update.
9273         (ia64_pop_frame_regular): Update.
9274         * frame.h (struct frame_info): Update comment.
9275         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9276         * frame.c (frame_saved_regs_register_unwind): Update.
9277         (frame_saved_regs_register_unwind): Update.
9278         (deprecated_generic_get_saved_register): Update.
9279         * cris-tdep.c: Update comment.
9280         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9281         Rename macro.
9282         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9283         * x86-64-tdep.c (x86_64_init_abi): Update.
9284         * vax-tdep.c (vax_gdbarch_init): Update.
9285         * v850-tdep.c (v850_gdbarch_init): Update.
9286         * sparc-tdep.c (sparc_gdbarch_init): Update.
9287         * sh-tdep.c (sh_gdbarch_init): Update.
9288         * s390-tdep.c (s390_gdbarch_init): Update.
9289         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9290         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9291         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9292         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9293         * mips-tdep.c (mips_gdbarch_init): Update.
9294         * mcore-tdep.c (mcore_gdbarch_init): Update.
9295         * m68k-tdep.c (m68k_gdbarch_init): Update.
9296         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9297         * ia64-tdep.c (ia64_gdbarch_init): Update.
9298         * i386-tdep.c (i386_gdbarch_init): Update.
9299         * frv-tdep.c (frv_gdbarch_init): Update.
9300         * avr-tdep.c (avr_gdbarch_init): Update.
9301         * arm-tdep.c (arm_gdbarch_init): Update.
9302         * alpha-tdep.c (alpha_gdbarch_init): Update.
9303
9304 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9305
9306         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9307         option enum and switch.  When no windows, set the interpreter to
9308         INTERP_CONSOLE.
9309
9310 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9311
9312         * main.c (captured_main): Replace magic option characters with an
9313         enum.
9314
9315 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9316
9317         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9318         INIT_EXTRA_FRAME_INFO.
9319         * gdbarch.h, gdbarch.c: Regenerate.
9320         * arm-tdep.c: Update comments.
9321         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9322         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9323         * frame.h, avr-tdep.c: Ditto.
9324         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9325         (create_new_frame, legacy_get_prev_frame): Ditto.
9326         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9327         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9328         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9329         deprecated_init_extra_frame_info instead of init_extra_frame_info.
9330         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9331         * v850-tdep.c (v850_gdbarch_init): Ditto.
9332         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9333         * sh-tdep.c (sh_gdbarch_init): Ditto.
9334         * s390-tdep.c (s390_gdbarch_init): Ditto.
9335         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9336         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9337         * mips-tdep.c (mips_gdbarch_init): Ditto.
9338         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9339         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9340         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9341         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9342         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9343         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9344         * frv-tdep.c (frv_gdbarch_init): Ditto.
9345         * cris-tdep.c (cris_gdbarch_init): Ditto.
9346         * avr-tdep.c (avr_gdbarch_init): Ditto.
9347         * arm-tdep.c (arm_gdbarch_init): Ditto.
9348         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9349         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9350
9351 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9352
9353         * gdbarch.sh (register_type): New function with predicate.
9354         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9355         * gdbarch.h, gdbarch.c: Re-generate.
9356         * arch-utils.c (generic_register_byte): Use generic_register_size.
9357         (generic_register_size): When available, use
9358         gdbarch_register_type.
9359         * regcache.c (init_regcache_descr): When available, initialize the
9360         register type array using gdbarch_register_type.  If the
9361         architecture supplies gdbarch_register_type, do not use the legacy
9362         regcache layout.
9363         * d10v-tdep.c (d10v_register_type): Replace
9364         d10v_register_virtual_type.
9365         (d10v_gdbarch_init): Set register_type instead of
9366         register_virtual_type.
9367
9368 2003-03-01  Andrew Cagney  <cagney@redhat.com>
9369
9370         * Makefile.in (ax-gdb.o): Update dependencies.
9371         * ax-gdb.c: Include "regcache.h".
9372         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9373         * findvar.c (value_of_register): Ditto.
9374         * infcmd.c (default_print_registers_info): Ditto.
9375
9376 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9377
9378         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9379         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9380
9381 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
9382
9383         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9384         of STREQ.
9385
9386 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
9387
9388         * Makefile.in (dwarf2loc.o): Update dependencies.
9389         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9390         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9391         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9392         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9393         (locexpr_tracepoint_var_ref): New function.
9394         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9395
9396 2003-02-28  Andrew Cagney  <cagney@redhat.com>
9397
9398         * regcache.c (register_size): New function.
9399         * regcache.h (register_size): Declare
9400         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9401         max_register_size instead of MAX_REGISTER_RAW_SIZE.
9402
9403 2003-02-28  David Carlton  <carlton@math.stanford.edu>
9404
9405         * linespec.c (decode_compound): Extract code into find_method.
9406         (find_method): New.
9407
9408 2003-02-28  J. Brobecker  <brobecker@gnat.com>
9409
9410         * Makefile.in: Add rules to build and link in observer.o.
9411
9412 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9413
9414         * observer.c: Minor comments edits.
9415
9416 2003-02-27  J. Brobecker  <brobecker@gnat.com>
9417
9418         * observer.h, observer.c: New file.
9419
9420 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9421
9422         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9423
9424 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
9425
9426         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9427         (M6812_OP_STS_EXT): Likewise.
9428         (m6811_prologue): Use the above to recognize prologue.
9429         (m6812_prologue): Likewise.
9430
9431 2003-02-27  David Carlton  <carlton@math.stanford.edu>
9432
9433         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9434         SYMBOL_PRINT_NAME.
9435         (compare_psymbols): Ditto.
9436         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9437
9438 2003-02-27  Michael Snyder  <msnyder@redhat.com>
9439
9440         * f-lang.c (build_fortran_types): New function.
9441         (_initialize_f_language): Gdbarch-register built-in fortran types.
9442         * doublest.c (extract_floating): Fix warning text.
9443
9444 2003-02-27  Andrew Cagney  <cagney@redhat.com>
9445
9446         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9447         predicate.  Replaces PUSH_DUMMY_FRAME.
9448         * gdbarch.h, gdbarch.c: Regnerate.
9449         * valops.c (hand_function_call): Update.  Call
9450         generic_push_dummy_frame directly.
9451         * vax-tdep.c (vax_gdbarch_init): Update.
9452         * sparc-tdep.c (sparc_gdbarch_init): Update.
9453         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9454         * m68k-tdep.c (m68k_gdbarch_init): Update.
9455         * hppa-tdep.c (hppa_gdbarch_init): Update.
9456         * alpha-tdep.c (alpha_gdbarch_init): Update.
9457         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9458         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9459         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9460         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9461         push_dummy_frame to generic_push_dummy_frame.
9462         * v850-tdep.c (v850_gdbarch_init): Ditto.
9463         * sh-tdep.c (sh_gdbarch_init): Ditto.
9464         * s390-tdep.c (s390_gdbarch_init): Ditto.
9465         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9466         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9467         * mips-tdep.c (mips_gdbarch_init): Ditto.
9468         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9469         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9470         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9471         * i386-tdep.c (i386_gdbarch_init): Ditto.
9472         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9473         * frv-tdep.c (frv_gdbarch_init): Ditto.
9474         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9475         * cris-tdep.c (cris_gdbarch_init): Ditto.
9476         * avr-tdep.c (avr_gdbarch_init): Ditto.
9477         * arm-tdep.c (arm_gdbarch_init): Ditto.
9478
9479 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
9480
9481         * mips-tdep.c (show_mips_abi): New function.
9482         (_initialize_mips_tdep): Use show_mips_abi() to implement the
9483         command ``show mips abi''.
9484
9485 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
9486
9487         From Elena Zannoni  <ezannoni@redhat.com>
9488         * dbxread.c (process_one_symbol): Only record line 0 if one or
9489         more sline entries have been seen for the function.
9490
9491 2003-02-26  Michael Chastain  <mec@shout.net>
9492
9493         * configure: Regenerate with autoconf 000227.
9494
9495 2003-02-26  Michael Chastain  <mec@shout.net>
9496
9497         Close PR build/660.
9498         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9499         for old libc5/glibc.
9500         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9501
9502 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
9503
9504         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9505         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9506
9507 2003-02-26  Michael Chastain  <mec@shout.net>
9508
9509         * configure.in: New variable HAVE_UINTPTR_T.
9510         * configure, config.in: Regenerated.
9511
9512 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
9513
9514         Fix PR build/1097.
9515         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9516
9517 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9518
9519         * frame.c (get_prev_frame): Add comment on check for
9520         inside_entry_func. Only check for inside_entry_file when not a
9521         dummy and not a sentinel.  Check that the new frame is not inner
9522         to the old frame.
9523
9524 2003-02-25  Andrew Cagney  <cagney@redhat.com>
9525
9526         * frame.c (frame_debug): New variable.
9527         (_initialize_frame): Add "set/show debug frame" command.
9528         (get_prev_frame): When frame_debug, print reason why unwind
9529         failed.
9530
9531 2003-02-25  Michael Chastain  <mec@shout.net>
9532
9533         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9534         to avoid uintptr_t definition problems.
9535
9536 2003-02-25  David Carlton  <carlton@math.stanford.edu>
9537
9538         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9539         (SYMBOL_LINKAGE_NAME): Ditto.
9540         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9541         SYMBOL_LINKAGE_NAME.
9542         (struct general_symbol_info): Expand comment.
9543         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9544         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9545         (SYMBOL_MATCHES_REGEXP): Ditto.
9546         * symtab.c (symbol_natural_name): New function.
9547         * objfiles.h: Replace all uses of SYMBOL_NAME by
9548         DEPRECATED_SYMBOL_NAME.
9549         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9550         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9551         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9552         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9553         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9554         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9555         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9556         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9557         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9558         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9559         * ada-exp.y: Ditto.
9560         * ada-exp.y: Update copyright.
9561         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9562         * cp-valprint.c: Ditto.
9563
9564 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
9565
9566         * infptrace.c (detach): Do not flag error if ptrace detach fails
9567         and errno is set to ESRCH.
9568
9569 2003-02-24  Andrew Cagney  <cagney@redhat.com>
9570
9571         * infptrace.c (udot_info): Change type of udot_off to long.  Use
9572         paddr when printing udot_off's value.
9573
9574 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9575
9576         * symtab.c (make_symbol_overload_list): Only read in partial
9577         symtabs containing a matching partial symbol.
9578
9579 2003-02-24  David Carlton  <carlton@math.stanford.edu>
9580
9581         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9582         do the comparison, not strcmp.
9583         * symfile.c (compare_psymbols): Ditto.
9584         * defs.h: Declare strcmp_iw_ordered.
9585         * utils.c (strcmp_iw_ordered): New function.
9586
9587 2003-02-24  Jim Blandy  <jimb@redhat.com>
9588
9589         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9590         support, shared libs): Remove my name from here, to better reflect
9591         reality.
9592
9593 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9594
9595         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9596         (target_ops): Add to_have_continuable_watchpoint.
9597         * target.c (update_current_target): Add INHERIT line for
9598         to_have_continuable_watchpoint.
9599         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9600         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9601         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9602         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9603
9604 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
9605
9606         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9607         maintainership.
9608
9609 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9610
9611         * solib.c (solib_open): Call target defined search function after
9612         failing with solib-search-path.
9613         * solist.h (target_so_ops): Add find_and_open_solib function hook and
9614         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9615
9616 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
9617
9618         * MAINTAINERS: Add myself to Write After section.
9619
9620 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
9621
9622         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9623
9624 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
9625
9626         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9627         (m68hc11_add_reggroups): New function.
9628         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9629         (m68hc11_gdbarch_init): Install the reggroups.
9630         (_initialize_m68hc11_tdep): Initialize them.
9631
9632 2003-02-21  James E Wilson  <wilson@tuliptree.org>
9633
9634         * MAINTAINERS: Update my email address.
9635
9636 2003-02-21  David Carlton  <carlton@math.stanford.edu>
9637
9638         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9639
9640 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
9641
9642         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9643         * symtab.h: Add opaque declarations of struct axs_value and
9644         struct agent_expr.
9645         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9646         (struct location_funcs): New type.
9647         (struct symbol): Add "loc" to aux_value.
9648         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9649         * dwarf2read.c: Include "dwarf2expr.h".
9650         (dwarf2_symbol_mark_computed): New function.
9651         (read_func_scope): Use it.
9652         (var_decode_location): New function.
9653         (new_symbol): Use it.
9654         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9655
9656         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9657         (dwarf2expr_h, dwarf2loc_h): New variables.
9658         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9659         (dwarf2expr.o, dwarf2loc.o): New rules.
9660         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9661         * buildsym.c (finish_block): Handle LOC_COMPUTED and
9662         LOC_COMPUTED_ARG.
9663         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9664         * m2-exp.y (yylex): Likewise.
9665         * printcmd.c (address_info, print_frame_args): Likewise.
9666         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9667         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9668         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9669         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9670         * symtab.c (lookup_block_symbol): Likewise.
9671
9672 2003-02-20  Adam Fedor  <fedor@gnu.org>
9673
9674         * symtab.h: Remove objc_specific struct
9675         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9676         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9677         Have language_objc use cplus_specific struct.
9678
9679 2003-02-20  Tom Tromey  <tromey@redhat.com>
9680
9681         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9682         TYPE_NAME, when printing a String value.  PR java/1075.
9683
9684 2003-02-20  Adam Fedor  <fedor@gnu.org>
9685
9686         * objc-lang.h (find_methods): Remove declaration.
9687         * objc-lang.c (find_methods): Make static.
9688
9689 2003-02-20  Christopher Faylor  <cgf@redhat.com>
9690
9691         * win32-nat.c (get_image_name): Check return value from
9692         ReadProcessMemory.
9693         (child_xfer_memory): Ditto.
9694
9695 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
9696
9697         * configure.in (TARGET_SYSTEM_ROOT): Set default to
9698         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
9699         '${exec_prefix}' (in addition to the expansion thereof) as
9700         relocatable.
9701         * configure: Rebuilt.
9702
9703 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9704
9705         * symtab.c (search_symbols): Revert the search_symbols part of my
9706         2002-12-23 patch.  Add comment.
9707
9708 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
9709
9710         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9711         * dbxread.c (elfstab_build_psymtabs): Don't call
9712         install_minimal_symbols.
9713         (stabsect_build_psymtabs): Likewise.
9714         * elfread.c (elf_symfile_read): Call install_minimal_symbols
9715         earlier.
9716         * somread.c (som_symfile_read): Call install_minimal_symbols
9717         and do_cleanups earlier.
9718         * nlmread.c (nlm_symfile_read): Likewise.
9719         * mdebugread.c (elfmdebug_build_psymtabs): Call
9720         install_minimal_symbols and make appropriate cleanups.
9721
9722 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9723
9724         * solib.c (reload_shared_libraries): New function.
9725         (_initialize_solib): Add callbacks for ``set solib-search-path''
9726         and ``set solib-absolute-prefix''.
9727
9728 2003-02-20  David Carlton  <carlton@math.stanford.edu>
9729
9730         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9731         expand comment.
9732         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9733         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9734         * ada-typeprint.c (ada_typedef_print): Ditto.
9735         * ax-gdb.c (gen_var_ref): Ditto.
9736         * breakpoint.c (print_one_breakpoint): Ditto.
9737         * buildsym.c (finish_block): Ditto.
9738         * c-valprint.c (c_val_print): Ditto.
9739         * expprint.c (print_subexp): Ditto.
9740         * findvar.c (locate_var_value): Ditto.
9741         * infcmd.c (jump_command): Ditto.
9742         * linespec.c (decode_line_2, decode_compound): Ditto.
9743         * maint.c (maintenance_translate_address): Ditto.
9744         * objc-lang.c (compare_selectors, compare_classes): Ditto.
9745         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9746         Ditto.
9747         * p-valprint.c (pascal_val_print): Ditto.
9748         * stabsread.c (define_symbol): Ditto.
9749         * stack.c (print_frame, frame_info, print_block_frame_locals)
9750         (print_frame_arg_vars, return_command): Ditto.
9751         * symfile.c (compare_symbols, compare_psymbols): Ditto.
9752         * symmisc.c (print_symbol): Ditto.
9753         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9754         (compare_search_syms, print_symbol_info, print_msymbol_info)
9755         (rbreak_command): Ditto.
9756         * tracepoint.c (tracepoints_info): Ditto.
9757         * typeprint.c (typedef_print): Ditto.
9758         * valops.c (value_of_variable, hand_function_call): Ditto.
9759         * cli/cli-cmds.c (edit_command, list_command): Ditto.
9760         * ada-typeprint.c: Update Copyright.
9761         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9762         * tracepoint.c, cli/cli-cmds.c: Ditto.
9763
9764 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
9765
9766         * frame.c (generic_unwind_get_saved_register): Make non-static.
9767         * frame.h (generic_unwind_get_saved_register): Declare.
9768         * mips-tdep.c (read_next_frame_reg): Fetch register from
9769         current regcache when frame is NULL.
9770         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9771         that must be NULL.
9772         (mips_get_saved_register): Call generic_unwind_get_saved_register()
9773         instead of frame_register_unwind().
9774
9775 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9776
9777         * remote-sim.c (gdbsim_insert_breakpoint)
9778         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9779         code.
9780
9781 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
9782
9783         * remote.c (_initialize_remote): Add commands "set/show remote
9784         hardware-watchpoint-limit" and "set/show remote
9785         hardware-breakpoint-limit".
9786         (remote_hw_watchpoint_limit): Initialize to -1.
9787         (remote_hw_breakpoint_limit): Ditto.
9788         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9789
9790 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
9791
9792         * coff-pe-read.c: New file - support reading of minimal symbols from a
9793         portable executable using the export table.
9794         * coff-pe-read.h: New file.
9795         * coffread.c: Include coff-pe-read.h.
9796         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9797         debugging symbols found.
9798         * Makefile.in (SFILES): Add coff-pe-read.o.
9799         (coff_pe_read_h): Define.
9800         (COMMON_OBS): Add coff-pe-read.o.
9801         (coffread.o): Add coff_pe_read_h dependency.
9802         (coff-pe-read.o): New target.
9803
9804 2003-02-19  David Carlton  <carlton@math.stanford.edu>
9805
9806         * Makefile.in (SFILES): Add block.c.
9807         (block_h): New.
9808         (COMMON_OBS): Add block.o.
9809         (block.o): New.
9810         (x86-64-tdep.o): Add $(block_h).
9811         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9812         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9813         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9814         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9815         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9816         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9817         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9818         * value.h: Add opaque declaration for struct block.
9819         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9820         * ada-lang.h: Ditto.
9821         * x86-64-tdep.c: #include "block.h"
9822         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9823         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9824         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9825         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9826         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9827         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9828         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9829         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9830         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9831         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9832         * symtab.c (block_function): Ditto.
9833         (contained_in): Ditto.
9834         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9835         block.h.  Add opaque declaration for struct block.
9836         * symtab.h: Move block_function and contained_in declarations to
9837         block.h.  Add opaque declarations for struct block, struct
9838         blockvector.
9839         (struct block): Move to block.h.
9840         (struct blockvector): Ditto.
9841         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9842         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9843         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9844         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9845         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9846         Ditto.
9847         * block.c: New file.
9848         * block.h: New file.
9849
9850 2003-02-19  Theodore A. Roth  <troth@openavr.org>
9851
9852         * avr-tdep.c (avr_extract_return_value): Remove function.
9853         (avr_store_return_value): Remove function.
9854         (avr_extract_struct_value_address): Remove function.
9855         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9856
9857 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
9858
9859         * rs6000-tdep.c: Include "gdb_assert.h".
9860         (registers_e500): Add "acc" and "spefscr".
9861         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9862         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9863         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
9864         really is "r0".
9865         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9866
9867 2003-02-18  Keith Seitz  <keiths@redhat.com>
9868
9869         * Makefile.in: Add gdbtk-interps.c.
9870
9871 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
9872
9873         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9874         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9875
9876 2003-02-18  Andrew Cagney  <cagney@redhat.com>
9877
9878         * symtab.h (struct objfile): Add opaque declaration.
9879
9880 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
9881
9882         From Jim Ingham   <jingham@apple.com>:
9883         * dbxread.c (process_one_symbol): Use last_function_start rather
9884         than function_start_offset to find the real beginning of the
9885         current function.  The latter is just the text section offset on
9886         some systems, the former is always the real function start.
9887
9888 2003-02-17  Andrew Cagney  <cagney@redhat.com>
9889
9890         * configure.in: Revert ${target} != ${host}.
9891
9892 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
9893
9894         * configure.in (Makefile): Use the test ${target} != ${host},
9895         instead of the absence of the "nm.h" file, to determine of the
9896         configuration non-native.
9897         * configure: Regenerate.
9898
9899 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
9900
9901         From Brian Ford  <ford@vss.fsi.com>
9902
9903         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9904         conditionalize tui_active test.
9905         (lookup_cmd_1): Ditto.
9906
9907 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
9908
9909         * configure.in: Add check for _etext.
9910         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9911         available.
9912         * config.in, configure: regenerated.
9913
9914 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
9915
9916         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9917
9918 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
9919
9920         * main.c (tui_version): Delete variable.
9921         (captured_main): When --tui, set interpreter_p to "tui" instead of
9922         enabling tui_version.
9923         * printcmd.c (display_command) [TUI]: Test tui_active instead of
9924         tui_version.
9925         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9926         * cli/cli-cmds.c (disassemble_command): Ditto.
9927         * defs.h (tui_version): Delete declaration.
9928         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9929         (tui-interp.o): Add rules.
9930         (SUBDIR_TUI_OBS): Add "tui-interp.o".
9931
9932 2003-02-14  Christopher Faylor  <cgf@redhat.com>
9933
9934         * win32-nat.c (register_loaded_dll): Correctly set address range for
9935         just-loaded dll.
9936
9937 2003-02-12  Jason Molenda  (jmolenda@apple.com)
9938
9939         * symmisc.c (print_objfile_statistics): Include information about
9940         the number of psymtabs and symtabs in each object file.
9941
9942 2003-02-13  Keith R Seitz  <keiths@redhat.com>
9943
9944         * main.h (struct captured_main_args): Add interpreter_p.
9945         * main.c (captured_main): Initialize interpreter_p from context.
9946         * gdb.c (main): Set interpreter_p argument.
9947         * Makefile.in (gdb.o): Add dependency for interps.h.
9948
9949 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9950
9951         * event-top.c (cli_command_loop): Delete declaration.
9952         (_initialize_event_loop): Delete function setting event_loop_hook.
9953         * event-top.h (cli_command_loop): Declare.  Update copyright.
9954         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
9955         * interps.c (current_interp_command_loop): When event_loop_p, call
9956         cli_command_loop.
9957
9958 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
9959
9960         * interps.h (interp_command_loop_ftype): Change return type to
9961         void.
9962
9963 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
9964
9965         * x86-64-tdep.c (x86_64_extract_return_value)
9966         (x86_64_store_return_value): Use regcache instead of regbuf.
9967         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9968         * x86-64-linux-nat.c (fill_gregset): Use regcache.
9969
9970 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
9971
9972         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9973         * aclocal.m4: Regenerate.
9974         * configure: Regenerate.
9975
9976         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9977         TCL_LD_SEARCH_FLAGS.
9978
9979 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
9980
9981         * dwarf2cfi.c: Reindented.
9982
9983 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
9984
9985         * interps.c (clear_interpreter_hooks): Convert function definition
9986         to ISO C.
9987
9988 2003-02-07  David Carlton  <carlton@math.stanford.edu>
9989
9990         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9991
9992 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
9993
9994         * gdbtypes.h (struct main_type): Move ``length'' field from here...
9995         (struct type): ...to here.
9996         (TYPE_LENGTH): Adjust to reflect different location of ``length''
9997         field.
9998         * gdbtypes.c (make_qualified_type): Set length on newly created type.
9999         (replace_type): Set length on all type variants for a given type.
10000
10001 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
10002
10003         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10004         <sys/stat.h>.
10005         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10006
10007 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
10008
10009         * Makefile.in (symm-nat.o): Update dependencies.
10010         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10011         (lynx-nat.o, ia64-linux-nat.): Ditto.
10012         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10013         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10014         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10015
10016         * Makefile.in (inflow_h): Define.
10017         (procfs.o, inflow.o, procfs.o): Update dependencies.
10018         * inftarg.c (child_stop): Delete extern declaration of
10019         inferior_process_group.  Include "inflow.h".
10020         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
10021         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10022         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
10023         (our_process_group, inferior_process_group): Extern declarations.
10024
10025         * procfs.c: Include "gdb_assert.h".
10026
10027         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10028         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10029         * jv-typeprint.c (java_type_print_base): Ditto.
10030         * typeprint.c (typedef_print): Eliminate STREQ.
10031         * cli/cli-script.c (define_command, define_command): Ditto.
10032         * main.c (captured_main): Ditto.
10033         * values.c (lookup_internalvar): Ditto.
10034         * utils.c (safe_strerror, parse_escape): Eliminate assignment
10035         within `if' conditional.
10036         * linespec.c (decode_line_2): Ditto.
10037         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10038         (bfd_openw_with_cleanup): Ditto.
10039
10040 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
10041
10042         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10043         legacy_extract_return_value and store_return_value to
10044         legacy_return_value.
10045
10046 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
10047
10048         * win32-nat.c (get_relocated_section_addrs): New function.  Find
10049         section load addresses for symbol handling in relocated DLLs.
10050         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10051
10052 2003-02-05  Fred Fish  <fnf@intrinsity.com>
10053
10054         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10055         '=' and '!='.
10056         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10057         with '&' and '=='.
10058         (angel_RDI_info): Ditto.
10059         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10060         with '&' and '!='.
10061         (threads_continue_all_with_signals): Ditto.
10062
10063 2003-02-05  Jim Ingham <jingham@apple.com>
10064             Keith Seitz  <keiths@redhat.com>
10065             Elena Zannoni  <ezannoni@redhat.com>
10066             Andrew Cagney  <ac131313@redhat.com>
10067
10068         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10069         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10070         (SUBDIR_MI_OBS): Add "mi-interp.o".
10071         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10072         (SFILES): Add "interps.c".
10073         (COMMON_OBS): Add "interps.o".
10074         (interps_h, mi_main_h): Define.
10075         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10076         (mi-main.o, main.o, event-top.o): Update dependencies.
10077         * cli/cli-interp.c: New file.
10078         * interps.h, interps.c: New files.
10079         * top.c: (gdb_init): Don't install the default interpreter, handed
10080         by captured_main.
10081         * main.c: Include "interps.h".
10082         (interpreter_p): Note that it should malloc'ed.
10083         (captured_command_loop): Call current_interp_command_loop.
10084         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
10085         xfree and xstrdup when updating interpreter_p.  Install the
10086         default interpreter.  Add hack to stop mi1's copyright notice
10087         being encoded.
10088         * event-top.h (gdb_setup_readline): Declare.
10089         (gdb_disable_readline): Declare.
10090         * event-top.c: Include "interps.h".
10091         (display_gdb_prompt): Call current_interp_display_prompt_p.
10092         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10093         gdb_stdlog, and gdb_stdtarg.
10094         (_initialize_event_loop): Don't call gdb_setup_readline.
10095         * cli-out.c (cli_out_set_stream): New function.
10096         * cli-out.h (cli_out_set_stream): Declare.
10097
10098 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
10099
10100         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10101         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
10102         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10103         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10104         config/i386/i386v42mp.mt: Removed.
10105
10106 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
10107
10108         * configure.tgt (*-*-solaris*): Set gdb_osabi to
10109         GDB_OSABI_SOLARIS.
10110
10111 2003-02-05  Michael Chastain  <mec@shout.net>
10112
10113         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10114         2.12.1 and earlier versions.
10115
10116 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
10117
10118         Remove orphaned hosts, targets and files.
10119         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10120         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10121         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10122         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10123         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10124         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10125         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10126         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10127         * config/sparc/tm-sp64sim.h: Delete.
10128         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10129         hosts.
10130         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10131         mips*-dec-mach3* targets.
10132
10133 2003-02-04  Michael Chastain  <mec@shout.net>
10134
10135         * NEWS: Fix typo: sepcifying -> specifying.
10136
10137 2003-02-04  Michael Chastain  <mec@shout.net>
10138
10139         * dwarfread.c: Add documentation on the state of dwarf-1,
10140         looking towards obsoletion.
10141
10142 2003-02-03  Michael Chastain  <mec@shout.net>
10143
10144         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10145         gdb/testsuite/gdb.c++/pr-1023.exp.
10146
10147 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10148
10149         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10150         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10151
10152         * utils.c (init_page_info): Delete reference to MPW in comments.
10153         * main.c (captured_main): Delete #ifdef MPW.
10154
10155 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10156
10157         * NEWS: Note that the m32r-*-elf* is obsolete.
10158         * monitor.c (monitor_expect): Obsolete reference to m32r.
10159         * configure.tgt: Mark m32r-*-elf* as obsolete.
10160         * MAINTAINERS: Mark m32k as obsolete.
10161         * m32r-rom.c: Obsolete file.
10162         * config/m32r/m32r.mt: Obsolete file.
10163         * config/m32r/tm-m32r.h: Obsolete file.
10164         * m32r-stub.c: Obsolete file.
10165         * m32r-tdep.c: Obsolete file.
10166
10167 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10168
10169         * NEWS: Mention that the z8k-zilog-none is obsolete.
10170         * MAINTAINERS: Mark z8k as obsolete.
10171         * configure.tgt: Obsolete the z8k-*-coff* target.
10172         * config/z8k/z8k.mt: Obsolete file.
10173         * config/z8k/tm-z8k.h: Obsolete file.
10174         * z8k-tdep.c: Obsolete file.
10175
10176 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10177
10178         * NEWS: Mention that the mn10200-elf is obsolete.
10179         * configure.tgt: Obsolete mn10200-*-* target.
10180         * breakpoint.c (update_breakpoints_after_exec): Update comment to
10181         mention that the mn10200 is obsolete.
10182         * breakpoint.h: Ditto.
10183         * MAINTAINERS: Mark the mn10200-elf as obsolete.
10184         * config/mn10200/mn10200.mt: Obsolete file.
10185         * config/mn10200/tm-mn10200.h: Obsolete file.
10186         * mn10200-tdep.c: Obsolete file.
10187
10188 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
10189
10190         * MAINTAINERS: Mark h8500 as obsolete.
10191         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10192         * findvar.c (value_from_register): Ditto.
10193         * h8500-tdep.c: Mark file as obsolete.
10194         * config/h8500/h8500.mt: Ditto.
10195         * config/h8500/tm-h8500.h: Ditto.
10196         * NEWS: Mention that h8500 is obsolete.
10197
10198 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10199
10200         * objfiles.c (allocate_objfile): Always set name.  Add comment at
10201         start of function.
10202         * jv-lang.c (get_dynamics_objfile): Add comment.
10203
10204 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10205
10206         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10207         * printcmd.c (build_address_symbolic): Replace uses of
10208         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10209         SYMBOL_NAME, and asm_demangle.
10210         Update copyright.
10211
10212 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10213
10214         * linespec.c (decode_compound): Extract code into
10215         lookup_prefix_sym.
10216         (lookup_prefix_sym): New function.
10217
10218 2003-02-04  David Carlton  <carlton@math.stanford.edu>
10219
10220         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10221         FLOAT_COERCION_BADNESS.
10222         * gdbtypes.c (rank_one_type): Replace all uses of
10223         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10224
10225 2003-02-04  Jim Blandy  <jimb@redhat.com>
10226
10227         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10228         section, let dwarf_macinfo_section point to it, not
10229         dwarf_loc_section.
10230
10231 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10232
10233         Pointed out by Anton Blanchard <anton@samba.org>.
10234         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10235         (ppc_linux_at_sigtramp_return_path): Use it.
10236
10237 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
10238
10239         * defs.h (streq): Add prototype.
10240         * utils.c (streq): New function.
10241
10242         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10243         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10244         * mdebugread.c (new_symbol): Likewise.
10245         * stabsread.c (define_symbol): Likewise.
10246         * coffread.c (process_coff_symbol): Likewise.
10247         * dwarfread.c (new_symbol): Likewise.
10248
10249         * minsyms.c (prim_record_minimal_symbol_and_info): Use
10250         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
10251         here.
10252         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10253         SYMBOL_INIT_DEMANGLED_NAME.
10254         * objfiles.c: Include "hashtab.h".
10255         (allocate_objfile): Call htab_set_functions_ex for the
10256         demangled_names_hash.
10257         (free_objfile): Call htab_delete for the demangled_names_hash.
10258         * objfiles.h (struct htab): Add declaration.
10259         (struct objfile): Add demangled_names_hash.
10260         * symfile.c: Include "hashtab.h".
10261         (reread_symbols): Call htab_delete for the demangled_names_hash.
10262         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10263         SYMBOL_NAME in the bcache.
10264         * symtab.c: Include "hashtab.h".  Update comments.
10265         (create_demangled_names_hash, symbol_set_names): New functions.
10266         (symbol_find_demangled_name): New function, broken out from
10267         symbol_init_demangled_names.
10268         (symbol_init_demangled_names): Use it.
10269         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10270         (SYMBOL_SET_NAMES): New macro.
10271         (symbol_set_names): Add prototype.
10272
10273 2003-02-03  Jim Blandy  <jimb@redhat.com>
10274
10275         Use a single, consistent representation for an empty minimal
10276         symbol table in an objfile.
10277         * objfiles.c (terminate_minimal_symbol_table): New function.
10278         (allocate_objfile): Call it.
10279         * objfiles.h (terminate_minimal_symbol_table): New declaration.
10280         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10281         non-NULL.
10282         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10283         objfile has minimal symbols, compare minimal_symbol_count to zero,
10284         instead of comparing msymbols with NULL.
10285         * objfiles.c (have_minimal_symbols): Same.
10286         * solib-sunos.c (solib_add_common_symbols): Call
10287         terminate_minimal_symbol_table.
10288         * symfile.c (reread_symbols): Same.
10289
10290 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
10291
10292         * s390-tdep.c (s390_address_class_type_flags)
10293         (s390_address_class_type_flags_to_name)
10294         (s390_address_class_name_to_type_flags): New functions.
10295         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10296         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10297
10298 2003-02-03  Michael Snyder  <msnyder@redhat.com>
10299
10300         * arm-tdep.c: Fix spell-o in comment.
10301
10302 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
10303
10304         * dwarf2cfi.c (pointer_encoding): Added new parameter.
10305         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10306         error messages to contain BFD filename.
10307
10308 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
10309
10310         Fix PR gdb/742 gdb/743 gdb/877
10311         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10312         (do_mixed_source_and_assembly): Use
10313         make_cleanup_ui_out_tuple_begin_end and
10314         make_cleanup_ui_out_tuple_begin_end.
10315         (do_mixed_source_and_assembly): Ditto.
10316         * thread.c (do_captured_list_thread_ids): Ditto.
10317         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10318         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10319         ui_out_tuple_end): Delete prototypes.
10320         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10321         ui_out_list_end, ui_out_tuple_end): Delete.
10322
10323         From Kevin Buettner  <kevinb@redhat.com>:
10324         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10325         * ui-out.c (make_cleanup_ui_out_table_begin_end)
10326         (do_cleanup_table_end):  New functions.
10327         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10328         Use cleanups to invoke_ui_out_tuple_end().
10329         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10330         * cli/cli-setshow.c (cmd_show_list): Use
10331         make_cleanup_ui_out_tuple_begin_end.
10332
10333 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10334
10335         * frame.c (frame_unwind_register): New function.
10336         (frame_unwind_unsigned_register): Use.
10337         (frame_unwind_signed_register): Use.
10338         (frame_read_register): New function.
10339         * frame.h (frame_unwind_register): Declare.
10340         (frame_read_register): Declare.
10341
10342         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10343         and frame_unwind_register instead of read_memory, write_register
10344         and deprecated_write_register_bytes.
10345
10346 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10347
10348         * frame.h: Note that namelen can be negative.
10349         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10350         NAME's length.
10351
10352         * NEWS: Mention that the d10v's `regs' command is deprecated.
10353         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10354         (d10v_print_registers_info): New function.
10355         (show_regs): Call d10v_print_registers_info.
10356         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10357
10358 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
10359
10360         * stack.c (print_frame_info): Restore call to annotate_frame_begin
10361         lost in the previous patch.
10362
10363 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10364
10365         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10366         * stack.c (print_frame_info_base): Output complete FRAME tuple
10367         for synthesized frames.
10368
10369 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
10370
10371         * mips-nat.c (zerobuf): Delete.
10372         (fetch_inferior_registers): Alloc local zerobuf.
10373         (fetch_core_registers): Alloc local zerobuf.
10374         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10375         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10376         * thread-db.c (thread_db_store_registers): Ditto.
10377         * sh-tdep.c (sh_do_register): Ditto.
10378         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10379         * remote-sim.c (gdbsim_store_register): Ditto.
10380         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10381         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10382         * monitor.c (monitor_supply_register): Ditto.
10383         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10384         * mips-nat.c (fetch_inferior_registers): Ditto.
10385         * m68klinux-nat.c (fetch_register): Ditto.
10386         * lynx-nat.c (fetch_inferior_registers): Ditto.
10387         (fetch_inferior_registers): Ditto.
10388         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10389         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10390         (hpux_thread_store_registers): Ditto.
10391         * hppah-nat.c (fetch_register): Ditto.
10392         * hppab-nat.c (fetch_register): Ditto.
10393         * hppa-tdep.c (pa_register_look_aside): Ditto.
10394         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10395         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10396
10397 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10398
10399         * gdbarch.sh: Explictly specify all method levels.  When a
10400         variable with an empty level, provide a non-multi-arch default.
10401         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10402         * gdbarch.h: Re-generate.
10403         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
10404         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10405
10406 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10407
10408         * defs.h (host_pointer_to_address): Delete declaration.
10409         (address_to_host_pointer): Delete declaration.
10410         * utils.c (host_pointer_to_address): Delete function.
10411         (address_to_host_pointer): Delete function.
10412         * procfs.c (procfs_address_to_host_pointer): New function.
10413         * procfs.c (proc_set_watchpoint): Use.
10414         (procfs_can_use_hw_breakpoint): Update comments.
10415         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10416         (som_solib_add): Use.
10417         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10418         * hppa-tdep.c (unwind_command): Use.
10419
10420 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10421
10422         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10423         strlen d_name.
10424
10425         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10426         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10427         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10428         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10429         (define_symbol): Update.
10430         * symfile.c (generic_load): Remove references to nindy.
10431         * symtab.c: Remove references to nindy.
10432
10433 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
10434
10435         * infcmd.c (print_float_info): Delete code conditional on
10436         FLOAT_INFO.
10437         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
10438         * config/m68k/nm-apollo68b.h: Ditto.
10439         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
10440         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10441         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10442
10443 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
10444
10445         * config/i386/tm-i386os9k.h: Removed.
10446
10447         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10448         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10449         they're identical to i[3456]86-*-sysv* now.
10450         * config/i386/i386v32.mh: Removed.
10451         * config/i386/xm-i386v32.h: Removed.
10452         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10453
10454         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10455
10456         * config/i386/i386dgux.mh: Removed.
10457         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10458
10459         * configure.in: Fix typo.
10460         * configure: Regenerated.
10461
10462 2003-01-31  David Carlton  <carlton@math.stanford.edu>
10463
10464         * dwarf2read.c (dwarf2_locate_sections): Set
10465         dwarf_ranges_section.
10466
10467 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10468
10469         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10470         * utils.c: Update comments documenting legitimate uses of PTR.
10471
10472         * utils.c: Re-indent.
10473
10474         * config/djgpp/fnchange.lst: Delete nindy files.
10475         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10476         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10477         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10478         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10479         * nindy-share/README, nindy-share/Onindy.c: Delete files.
10480         * nindy-tdep.c, nindy-share/Makefile: Delete files.
10481         * Makefile.in (init.c): Remove nindy references.
10482         (saber_gdb): Delete rule.
10483         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10484         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10485         and a68v-nat.c.
10486         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10487         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10488         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10489         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10490         nindy-share/stop.h.
10491         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10492         * saber.suppress: Delete file.
10493
10494 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
10495
10496         * dbxread.c (stabs_data): New static variable.
10497         (fill_symbuf): Support an in-memory buffer for stabs data.
10498         (stabs_seek): New function.
10499         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10500         (read_ofile_symtab): Use stabs_seek.
10501         (elfstab_build_psymtabs): Take an asection* instead of
10502         an offset and size.  Relocate the stabs data if necessary.
10503         Save the section* for dbx_psymtab_to_symtab.
10504         * dwarf2read.c: Add section variables for each debug section.
10505         (dwarf2_locate_sections): Fill them in.
10506         (dwarf2_read_section): Take an asection* argument.
10507         Relocate the section contents if necessary.
10508         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10509         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10510         it to dwarf2_read_section.
10511         (dwarf2_build_frame_info): Update callers.
10512         * elfread.c (elf_symfile_read): Update call to
10513         elfstab_build_psymtabs.
10514         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10515         (DBX_STAB_SECTION): New macro.
10516         * stabsread.h (elfstab_build_psymtabs): Update prototype.
10517         * symfile.c (symfile_dummy_outputs): New function.
10518         (symfile_relocate_debug_section): New function.
10519         * symfile.h (symfile_relocate_debug_section): Add prototype.
10520
10521 2003-01-31  Richard Henderson  <rth@redhat.com>
10522
10523         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10524         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
10525         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10526         * alpha-tdep.c (alpha_register_name): Add "unique".
10527         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10528         (ALPHA_UNIQUE_REGNUM): New.
10529         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10530
10531 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
10532
10533         * README: Remove reference to Ericsson 1800 monitor.
10534         * Makefile.in (remote-es.o): Delete rule.
10535         (ALLDEPFILES): Delete remote-es.c.
10536         * remote-es.c: Delete file.
10537         * config/m68k/es1800.mt: Delete file.
10538         * config/djgpp/fnchange.lst: Update.
10539         * configure.tgt: Delete m68*-ericsson-* target.
10540
10541 2003-01-31  Adam Fedor  <fedor@gnu.org>
10542
10543         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10544         Remove duplicate/shadowing variable of same name.
10545
10546 2003-01-30  Jim Blandy  <jimb@redhat.com>
10547
10548         * symfile.c (find_separate_debug_file): Assert that the objfile's
10549         directory name we compute ends with a slash, and then assume that
10550         that's so everywhere we use it.
10551
10552 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
10553
10554         * valops.c (value_assign): Flush frame cache after stores to memory
10555         also.
10556
10557 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10558
10559         * Makefile.in (mon960-rom.o): Delete rule.
10560         * mon960-rom.c: Delete file.
10561
10562 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
10563
10564         * d10v-tdep.c: Include "frame-unwind.h".
10565         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10566         list.
10567         (next_addr, uses_frame): Delete.
10568         (struct d10v_unwind_cache): Define.
10569         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10570         Use info instead of next_addr and uses_frame globals.
10571         (d10v_frame_init_saved_regs): Delete function.
10572         (d10v_init_extra_frame_info): Delete function.
10573         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10574         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10575         init_frame_pc or frame_saved_pc.
10576         (d10v_pop_frame): Delete function.
10577         (do_d10v_pop_frame): Delete function.
10578         (d10v_frame_chain): Delete function.
10579         (d10v_frame_chain_valid): Delete function.
10580         (d10v_frame_pc_unwind): New function.
10581         (d10v_frame_id_unwind): New function.
10582         (saved_regs_unwinder): New function.
10583         (d10v_frame_register_unwind): New function.
10584         (d10v_frame_pop): New function.
10585         (d10v_frame_unwind): New variable.
10586         (d10v_frame_p): New function.
10587         (d10v_frame_saved_pc): Delete function.
10588         * Makefile.in (d10v-tdep.o): Update dependencies.
10589
10590 2003-01-30  J. Brobecker  <brobecker@gnat.com>
10591
10592         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10593         causing some regressions due to a change in the default value
10594         for this macro.
10595
10596 2003-01-29  Richard Henderson  <rth@redhat.com>
10597             Elena Zannoni  <ezannoni@redhat.com>
10598             Daniel Jacobowitz  <drow@mvista.com>
10599
10600         Fix PR gdb/961.
10601         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
10602         variables.
10603         (RANGES_SECTION): New.
10604         (dwarf_ranges_buffer): New variable.
10605         (struct comp_unit_head): Add member "die".
10606         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10607         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10608         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10609         (dwarf2_locate_sections): Likewise.
10610         (dwarf2_build_psymtabs): Read .debug_ranges.
10611         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10612         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
10613         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10614         Look for DW_AT_ranges and return the bounding box.
10615
10616 2003-01-29  Brian Ford <ford@vss.fsi.com>
10617
10618         * win32-nat.c (cygwin_pid): Removed as unused.
10619         (child_attach): Try fall back to Cygwin pid.
10620
10621 2003-01-29  Jim Blandy  <jimb@redhat.com>
10622
10623         * objfiles.h (struct objfile): Doc fix.
10624
10625 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
10626
10627         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10628         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10629         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10630         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10631         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10632         (FRAME_SAVED_PC): Change to a function with predicate.
10633         * gdbarch.h, gdbarch.c: Re-generate.
10634
10635 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
10636
10637         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10638
10639         * complaints.c (complain): Delete function.
10640         * complaints.h (struct deprecated_complaint): Delete definition.
10641         (complain): Delete declaration.
10642
10643 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
10644
10645         * mips-tdep.c (mips_init_extra_frame_info): Return early for
10646         dummy frames.
10647
10648 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
10649
10650         * sentinel-frame.h, sentinel-frame.c: New files.
10651         * Makefile.in (frame.o): Update dependencies.
10652         (SFILES): Add sentinel-frame.c.
10653         (sentinel_frame_h): Define.
10654         (COMMON_OBS): Add sentinel-frame.o.
10655         (sentinel-frame.o): Specify dependencies.
10656         * frame.c: Include "sentinel-frame.h".
10657         (frame_register_unwind): Rewrite assuming that there is always a a
10658         ->next frame.
10659         (frame_register, generic_unwind_get_saved_register): Ditto.
10660         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10661         (create_sentinel_frame, unwind_to_current_frame): New functions.
10662         (get_current_frame): Rewrite using create_sentinel_frame and
10663         unwind_to_current_frame.  When possible, always create a frame.
10664         (create_new_frame): Set next to the sentinel frame.
10665         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
10666         (deprecated_update_frame_pc_hack): Update the next frame's PC and
10667         ID cache when necessary.
10668         (frame_saved_regs_id_unwind): Use frame_relative_level.
10669         (deprecated_generic_get_saved_register): Use frame_relative_level,
10670         get_frame_saved_regs, get_frame_pc, get_frame_base and
10671         get_next_frame.
10672         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10673         frame_register.
10674
10675 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10676
10677         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10678
10679 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10680
10681         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10682         (maintenance_set_profile_cmd): Use error () instead of warning ().
10683
10684 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
10685
10686         * configure.in: Check that -pg works if using --enable-profiling.
10687         Check for monstartup and _mcleanup regardless of --enable-profiling.
10688         * maint.c: Check for monstartup and _mcleanup before using them.
10689         * config.in: Regenerated.
10690         * configure: Regenerated.
10691
10692 2003-01-24  Nick Clifton  <nickc@redhat.com>
10693
10694         * Add sh2e support:
10695
10696         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
10697
10698                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10699                 (sh2e_show_regs): New.
10700                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10701                 * config/sh/tm-sh.h: Added sh2e to comments.
10702
10703 2003-01-23  Jim Blandy  <jimb@redhat.com>
10704
10705         * symfile.c (syms_from_objfile): Don't print the "(no debugging
10706         symbols found)" message here; we haven't checked for a separate
10707         debug info file yet, so we don't know yet.
10708         (symbol_file_add_with_addrs_or_offsets): Print it here, after
10709         we've looked everywhere.  Also, there's no need to print a special
10710         message when we're loading the separate debug info file: the one
10711         symbol_file_add prints is fine.
10712
10713 2003-01-23  Alexander Larsson <alexl@redhat.com>
10714             Jim Blandy  <jimb@redhat.com>
10715
10716         Add support for executables whose debug info has been separated
10717         out into a separate file, leaving only a link behind.
10718         * objfiles.h (struct objfile): New fields: separate_debug_objfile
10719         and separate_debug_objfile_backlink.
10720         (put_objfile_before): New declaration.
10721         * symfile.c: #include "filenames.h".
10722         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10723         debug info in a separate file, read that, too. Save the addrs
10724         argument, so we can use it again to read the separated debug info;
10725         syms_from_objfile modifies the table we pass it.
10726         (reread_symbols): After re-reading an objfile, call
10727         reread_separate_symbols to refresh its separate debug info
10728         objfile, if it has one.
10729         (reread_separate_symbols, find_separate_debug_file,
10730         get_debug_link_info, separate_debug_file_exists): New functions.
10731         (debug_file_directory): New global var.
10732         (_initialize_symfile): Initialize debug_file_directory, and
10733         provide the new `set debug-file-directory' command to let the user
10734         change it.
10735         * objfiles.c (free_objfile): If this objfile has its debug info in
10736         a separate objfile, free that one too.  If this is itself a
10737         separate debug info objfile, clear our parent's backlink.
10738         (put_objfile_before): New function.
10739         * utils.c (gnu_debuglink_crc32): New function.
10740         * defs.h (gnu_debuglink_crc32): New declaration.
10741         * Makefile.in (symfile.o): Note dependency on "filenames.h".
10742         * configure.in: Handle --with-separate-debug-dir config option.
10743         * acinclude.m4 (AC_DEFINE_DIR): New macro.
10744         * acconfig.h (DEBUGDIR): New macro.
10745         * configure, aclocal.m4, config.in: Regenerated.
10746
10747 2003-01-22  Jim Blandy  <jimb@redhat.com>
10748
10749         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10750         like the old symbol_file_add, but taking new arguments: you can
10751         now pass in either a `struct section_addr_info' list to say where
10752         each section is loaded, or a `struct section_offsets' table.  Pass
10753         these new arguments through to syms_from_objfile as appropriate.
10754         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10755         with the appropriate quiescent values for the new arguments.
10756
10757         * symfile.c: #include "gdb_assert.h".
10758         (syms_from_objfile): Add the ability to pass in a section offset
10759         table directly, as an alternative to the section_addr_info table.
10760         Document arguments better.
10761         (symbol_file_add): Pass extra arguments to syms_from_objfile.
10762         * symfile.h (syms_from_objfile): Update declaration.
10763         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10764         syms_from_objfile.
10765         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10766
10767 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
10768
10769         Original patch by Tom Tromey <tromey@cygnus.com> and
10770         Jason Molenda <jmolenda@apple.com>.
10771         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10772         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10773         * NEWS: Mention profiling.
10774         * configure.in (--enable-gdbtk): Fix typo.
10775         (--enable-profiling): New.  Set PROFILE_CFLAGS.
10776         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10777         Fill in function.
10778         (profiling_state): New variable.
10779         (mcleanup_wrapper): New function.
10780         (_initialize_maint): Remove NOTYET, fix call to
10781         add_setshow_boolean_cmd for "maint set profile".
10782         * configure: Regenerated.
10783
10784 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
10785
10786         * Makefile.in (install-gdbtk): Install PNG images too.
10787
10788 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10789
10790         * exec.c (text_start): Delete global variable.
10791         (exec_file_attach): Make text_start local to the function.
10792         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10793         * valops.c (hand_function_call): Delete code that handles
10794         BEFORE_TEXT_END and AFTER_TEXT_END.
10795         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10796         of CALL_DUMMY_LOCATION.
10797         * gdbarch.c: Regenerate.
10798         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10799         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10800         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10801         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10802         (text_end): Delete extern declaration.
10803
10804 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
10805
10806         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10807         * blockframe.c (backtrace_below_main): Move to "frame.c".
10808         (frame_chain_valid): Delete check for backtrace_below_main.
10809         (_initialize_blockframe): Delete initialization, move ``set
10810         backtrace-below-main'' command to "frame.c".
10811         (do_flush_frames_sfunc): Delete function.
10812         * frame.c: Include "command.h" and "gdbcmd.h".
10813         (frame_type_from_pc): New function.
10814         (create_new_frame): Use frame_type_from_pc.
10815         (legacy_get_prev_frame): New function.
10816         (get_prev_frame): Rewrite.  When an old style frame, call
10817         legacy_get_prev_frame.  Otherwize, unwind the PC first.
10818         (_initialize_frame): Add ``set backtrace-below-main'' command.
10819         * Makefile.in (frame.o): Update dependencies.
10820
10821 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10822
10823         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10824         DEPRECATED_REGISTERS_INFO.
10825
10826 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10827
10828         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10829         Maintainers'.  Update `Various Maintainers'.
10830
10831 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10832
10833         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10834         * gdbarch.sh (POP_FRAME): Change to function with predicate.
10835         Suppress actual parameters when `-'.
10836         * gdbarch.h, gdbarch.c: Regenerate.
10837
10838 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10839
10840         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10841         code handling dummy frames.
10842
10843 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
10844
10845         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10846         (struct frame_unwind): Add field pop.
10847         * frame.h (frame_pop): Declare.
10848         * frame.c (frame_saved_regs_pop): New function.
10849         (trad_frame_unwinder): Add frame_saved_regs_pop.
10850         (frame_pop): New function.
10851         * dummy-frame.c (dummy_frame_pop): New function.
10852         (discard_innermost_dummy): New function.
10853         (generic_pop_dummy_frame): Use discard_innermost_dummy.
10854         (dummy_frame_unwind): Add dummy_frame_pop.
10855         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10856         * valops.c (hand_function_call): Ditto.
10857         * stack.c (return_command): Ditto.
10858
10859 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10860
10861         * cris-tdep.c: Fix function declaration indentation.
10862         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10863         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10864         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10865         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10866         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10867         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10868
10869 2003-01-18  Michael Chastain  <mec@shout.net>
10870
10871         * README (Unpacking and Installation -- quick overview):
10872         Warn against ".../gdb-5.3/gdb/configure".
10873
10874 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10875
10876         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10877         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10878         (struct frame_unwind): Declare opaque.
10879         (dummy_frame_p): Declare function.
10880         * dummy-frame.c (dummy_frame_id_unwind): Make static.
10881         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10882         * dummy-frame.c: Include "frame-unwind.h".
10883         (dummy_frame_p): New function.
10884         (dummy_frame_unwind): New variable.
10885         * frame.c: Include "frame-unwind.h".
10886         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10887         to use the new unwind field.
10888         (set_unwind_by_pc): Delete function.
10889         (create_new_frame, get_prev_frame): Set unwind field using
10890         frame_unwind_find_by_pc.
10891         (trad_frame_unwind, trad_frame_unwinder): New variables.
10892         * frame.h (trad_frame_unwind): Declare variable.
10893         (frame_id_unwind_ftype): Delete declaration.
10894         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10895         (struct frame_unwind): Declare opaque.
10896         (struct frame_info): Replace the fields id_unwind, pc_unwind and
10897         register_unwind with a single unwind pointer.
10898         * frame-unwind.h, frame-unwind.c: New files.
10899         * Makefile.in (SFILES): Add frame-unwind.c.
10900         (frame_unwind_h): Define.
10901         (COMMON_OBS): Add frame-unwind.o.
10902         (frame-unwind.o): Specify dependencies.
10903         (frame.o, dummy-frame.o): Update dependencies.
10904
10905 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
10906
10907         * ada-valprint.c: Eliminate PTR.
10908         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10909         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10910         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10911         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10912         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10913         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10914         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10915
10916 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
10917
10918         * main.c (captured_main): Don't use PTR.
10919         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10920         * gdbtypes.c (lookup_primitive_typename): Ditto.
10921         (lookup_struct_elt_type): Ditto.
10922         * f-valprint.c (info_common_command): Ditto.
10923         (list_all_visible_commons): Ditto.
10924         * jv-typeprint.c (java_type_print_base): Ditto.
10925
10926         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10927         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10928         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
10929         i386-interix-nat.c and i386-interix-tdep.c.  Rename
10930         m68klinux-nat.c and m68klinux-tdep.c.  Rename
10931         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
10932         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
10933         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10934         * main.c (captured_main): Use xfree, not free.
10935
10936 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
10937
10938         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10939         ID back using a parameter.
10940         * frame.c (frame_id_unwind): Update call.
10941         (frame_saved_regs_id_unwind): Update.
10942         * dummy-frame.c (dummy_frame_id_unwind): Update function.
10943         * dummy-frame.h (struct frame_id): Add opaque declaration.
10944         (dummy_frame_id_unwind): Update declaration.
10945
10946 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
10947
10948         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10949
10950 2003-01-15  Stephen P. Smith <ischis2@cox.net>
10951
10952         * MAINTAINERS (Stephen P. Smith): Updated email address.
10953
10954 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
10955
10956         Fix PR gdb/898
10957         * breakpoint.c (until_break_command): Add new argument.  Use it to
10958         decide whether to stop only at the current frame or not.
10959         * breakpoint.h (until_break_command): Update prototype.
10960         * infcmd.c (until_command): Add new argument to until_break_command
10961         call.
10962         (advance_command): New function.
10963         (_initialize_infcmd): Update help string for 'until' command.
10964         Add new 'advance' command.
10965
10966 2003-01-14  David Carlton  <carlton@math.stanford.edu>
10967
10968         * linespec.c (decode_line_1): Normalize comments.
10969         (set_flags): Ditto.
10970         (locate_first_half): Ditto.
10971         (decode_compound): Ditto.
10972         (symtab_from_filename): Ditto.
10973         (decode_all_digits): Ditto.
10974         (decode_dollar): Ditto.
10975         (find_methods): Ditto.
10976         (find_toplevel_char): Ditto.
10977
10978 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
10979
10980         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10981         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10982         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10983         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10984         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10985         * language.c, language.h, m32r-tdep.c: Update copyright.
10986         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10987         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10988         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10989         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10990         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10991         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10992
10993 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
10994
10995         * stabsread.h (process_later, resolve_cfront_continuation):
10996         Obsolete.
10997         Update copyright years.
10998         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10999         Update copyright year.
11000         * dbxread.c(struct cont_elem): Obsolete.
11001         (process_later, process_now): Obsolete functions.
11002         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11003         Update copyright year.
11004         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11005         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11006         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11007         (parse_partial_symbols): Obsolete cfront support.
11008         * stabsread.c
11009         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11010         macros.
11011         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11012         read_cfront_baseclasses, read_cfront_member_functions,
11013         resolve_cfront_continuation,read_cfront_static_fields,
11014         copy_cfront_struct_fields): Obsolete functions.
11015         (define_symbol, read_one_struct_field): Obsolete cfront support.
11016         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11017         Update Copyright year.
11018
11019 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
11020
11021         * stack.c (print_frame_info, print_stack_frame_base_stub,
11022         print_stack_frame_base, show_and_print_stack_frame_stub,
11023         show_and_print_stack_frame, print_only_stack_frame_stub,
11024         print_only_stack_frame): Delete functions.
11025         (print_stack_frame_stub): Call print_frame_info instead of
11026         print_frame_info_base.
11027         (print_frame_info_base): Rename to print_frame_info.
11028         (backtrace_command_1): Call print_frame_info, instead of
11029         print_frame_info_base.
11030         (current_frame_command): Call print_stack_frame, instead of
11031         print_only_stack_frame.
11032         (frame_command): Call print_stack_frame, instead of
11033         show_and_print_stack_frame.
11034         (up_command): Ditto.
11035         (down_command): Ditto.
11036         * frame.h (print_only_stack_frame): Delete prototype.
11037         * infrun.c (normal_stop): Call print_stack_frame, instead of
11038         show_and_print_stack_frame.
11039         * thread.c (info_threads_command): Call print_stack_frame, instead
11040         of print_only_stack_frame.
11041
11042 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11043
11044         * README (Graphical interface to GDB): Update URL.  Point at
11045         gdb/links/.
11046
11047         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
11048         version match.
11049
11050 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11051
11052         * symtab.c (find_pc_sect_line): Don't consider end-of-function
11053         lines.
11054
11055 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11056
11057         * thread-db.c (attach_thread): Prototype.
11058         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
11059         thread information (ti), and valid flags (th_valid, ti_valid).
11060         (attach_thread): Move target_pid_to_str call to after the thread
11061         is added to GDB's list.  Initialize the cache.
11062         (thread_get_info_callback, thread_db_map_id2thr)
11063         (thread_db_get_info): New functions.
11064         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11065         (thread_db_store_registers, thread_db_thread_alive)
11066         (thread_db_get_thread_local_address): Use them.
11067         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
11068         of calling error() for threads in unknown state.
11069
11070         (clear_lwpid_callback): New function.
11071         (thread_db_resume): Use it to clear the cache.
11072
11073 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11074
11075         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11076         (resume_callback): Remove dead code.
11077
11078 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
11079
11080         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11081         predicate.
11082         * gdbarch.h, gdbarch.c: Regenerate.
11083         * stack.c (frame_info): Only initialize the saved registers when
11084         FRAME_INIT_SAVED_REGS_P.
11085         * frame.c (frame_saved_regs_register_unwind): Assert
11086         FRAME_INIT_SAVED_REGS_P.
11087         (deprecated_generic_get_saved_register): Ditto.
11088
11089 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11090
11091         * source.c (openp): Squelch warning about "filename".
11092
11093 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11094
11095         * source.c (openp): If the file does not exist don't necessarily
11096         search the path.
11097
11098 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11099
11100         Fix PR gdb/872.
11101         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11102         (integer_types_same_name_p): New function.
11103         (rank_one_type): Use it.
11104         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11105
11106 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
11107
11108         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11109         variables.
11110         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11111         * configure.in: Add --with-sysroot.
11112         * configure: Regenerated.
11113         * main.c (gdb_sysroot): New variable.
11114         (captured_main): Initialize gdb_sysroot.
11115         * defs.h (gdb_sysroot): New extern declaration.
11116         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11117
11118 2003-01-12  Michael Chastain  <mec@shout.net>
11119
11120         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11121
11122 2003-01-12  Michael Chastain  <mec@shout.net>
11123
11124         * top.c (print_gdb_version): Bump copyright year to 2003.
11125
11126 2003-01-12  David Carlton  <carlton@bactrian.org>
11127
11128         * linespec.c (symtab_from_filename): Rename variable 's' to
11129         'file_symtab'.
11130
11131 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11132
11133         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11134         dummy frame.
11135         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11136
11137 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
11138
11139         * d10v-tdep.c: Include "gdb_assert.h".
11140         (d10v_store_return_value): Rewrite to match current interface.
11141         (d10v_extract_struct_value_address): Ditto.
11142         (d10v_extract_return_value): Ditto.
11143         (d10v_gdbarch_init): Set store_restore_value,
11144         extract_struct_value_address and extract_return_value.
11145
11146 2003-01-12  J. Brobecker  <brobecker@gnat.com>
11147
11148         * hpread.c (set_namestring): New procedure replacing the
11149         SET_NAMESTRING macro.
11150         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11151         by calls to set_namestring.
11152
11153 2003-01-11  J. Brobecker  <brobecker@gnat.com>
11154
11155         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11156         a compilation warning.
11157         (hpread_process_one_debug_symbol): Likewise.
11158
11159 2003-01-10  David Carlton  <carlton@math.stanford.edu>
11160
11161         * linespec.c (decode_line_1): Rename variable 's' to
11162         'file_symtab'.
11163         (decode_all_digits): Rename argument 's' to 'file_symtab'.
11164         (decode_dollar): Ditto.
11165         (decode_variable): Ditto.
11166         (symbol_found): Ditto.
11167
11168 2003-01-09  Michael Chastain  <mec@shout.net>
11169
11170         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11171
11172 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
11173
11174         * win32-nat.c (set_process_privilege): New function.
11175         (child_attach): Call set_process_privilege() to enable the
11176         SE_DEBUG_NAME user privilege if available in process token.
11177
11178 2003-01-10  J. Brobecker  <brobecker@gnat.com>
11179
11180         * hpread.c (hpread_process_one_debug_symbol): Fix a small
11181         compilation error in the previous revision.
11182
11183 2003-01-09  David Carlton  <carlton@math.stanford.edu>
11184
11185         * linespec.c: Update copyright.
11186
11187 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
11188
11189         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11190         than inferior_ptid.
11191         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11192
11193 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
11194
11195         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11196         Update comments.
11197         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11198         (frame_saved_regs_zalloc): Update.
11199         (frame_saved_regs_register_unwind): Update.
11200         (create_new_frame): Update.
11201         (get_prev_frame): Update.
11202         (frame_extra_info_zalloc): Update.
11203         (deprecated_get_frame_saved_regs): Update.
11204         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11205         * cris-tdep.c: Update comment.
11206
11207         * somsolib.h: Fix function indentation.
11208         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11209         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11210         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11211         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11212         * somsolib.c, inftarg.c: Remove assignment in if conditional.
11213
11214         * infrun.c (follow_fork): Use ISO C definition.
11215         * expprint.c (print_subexp): Use xfree instead of free.
11216         * charset.c: Include "gdb_string.h" instead of <string.h>.
11217         (register_iconv_charsets): Use ISO C definition.
11218         (host_charset, target_charset): Ditto.
11219         * Makefile.in (charset.o): Update dependencies.
11220         (mi-cmd-env.o): Update dependencies.
11221
11222 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11223
11224         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11225         get_frame_base.
11226
11227 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11228
11229         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
11230         build directories.  Save edited gdb output in Mbuild.log.  If a
11231         build fails, remove any final GDB executable.
11232
11233 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11234
11235         * gdb_mbuild.sh: Edit the output of `maint print architecture'
11236         replacing hex constants with function names and stripping leading
11237         file name directory prefixes.
11238
11239 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11240
11241         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11242         get_frame_base.
11243
11244 2003-01-08  David Carlton  <carlton@math.stanford.edu>
11245
11246         * linespec.c (decode_line_1): Move code into decode_variable.
11247         (decode_variable): New function.
11248
11249 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
11250
11251         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11252
11253 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11254
11255         * cris-tdep.c (cris_frame_init_saved_regs): Use
11256         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11257         saved_regs buffer.
11258         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11259         (sh64_nofp_frame_init_saved_regs): Ditto.
11260         (sh_fp_frame_init_saved_regs): Ditto.
11261         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11262         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11263         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11264         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11265
11266 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
11267
11268         * minsyms.c (lookup_minimal_symbol): Update comment.
11269         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
11270         (lookup_minimal_symbol_solib_trampoline): Likewise.
11271
11272 2003-01-08  Andrew Cagney  <cagney@redhat.com>
11273
11274         * d10v-tdep.c (d10v_init_extra_frame_info): Use
11275         frame_relative_level.
11276
11277         * alpha-tdep.c: Use get_frame_extra_info.
11278         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11279         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11280         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11281         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11282
11283         * alpha-tdep.c: Use get_next_frame.
11284         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11285         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11286         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11287         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11288         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11289         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11290         * xstormy16-tdep.c: Ditto.
11291
11292 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11293
11294         * alpha-tdep.c: Use get_frame_base.
11295         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11296         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11297         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11298         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11299         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11300         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11301         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11302         * config/sparc/tm-sparc.h: Ditto.
11303
11304 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11305
11306         * frame.c (deprecated_get_frame_context): New function.
11307         (deprecated_set_frame_context): New function.
11308         * frame.h (deprecated_get_frame_context): Declare.
11309         (deprecated_set_frame_context): Declare.
11310         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11311         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11312
11313 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11314
11315         * frame.c (deprecated_set_frame_next_hack): New function.
11316         (deprecated_set_frame_prev_hack): New function.
11317         * frame.h (deprecated_set_frame_next_hack): Declare.
11318         (deprecated_set_frame_prev_hack): Declare.
11319         * mcore-tdep.c (analyze_dummy_frame): Use
11320         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11321         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11322
11323 2003-01-07  David Carlton  <carlton@math.stanford.edu>
11324
11325         * linespec.c (decode_line_1): Move code into decode_dollar.
11326         (decode_dollar): New function.
11327
11328 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11329
11330         * arm-tdep.c (arm_init_extra_frame_info): Use
11331         deprecated_update_frame_base_hack.
11332         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11333         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11334         (fix_frame_pointer): Ditto.
11335         (mn10300_analyze_prologue): Ditto.
11336
11337 2003-01-07  Andrew Cagney  <cagney@redhat.com>
11338
11339         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11340         extra_info using frame_extra_info_zalloc.
11341         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11342         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11343         (sh64_init_extra_frame_info): Ditto.
11344         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11345         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11346         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11347         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11348         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11349         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11350         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11351         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11352         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11353         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11354         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11355         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11356
11357         * mn10300-tdep.c (analyze_dummy_frame): Use
11358         deprecated_set_frame_extra_info_hack.
11359         * mcore-tdep.c (analyze_dummy_frame): Ditto.
11360
11361 2003-01-07  J. Brobecker  <brobecker@gnat.com>
11362
11363         * mdebugread.c (parse_symbol): Skip stProc entries which storage
11364         class is not scText. These do not define "real" procedures.
11365         (parse_partial_symbols): Likewise.
11366
11367 2003-01-06  Michael Snyder  <msnyder@redhat.com>
11368
11369         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11370
11371 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
11372
11373         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11374         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11375         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11376         deprecated_frame_xmalloc_with_cleanup.
11377         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11378         deprecated_frame_xmalloc.
11379         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11380         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11381
11382 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11383
11384         * x86-64-linux-tdep.c: Include "osabi.h".
11385         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11386
11387         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11388
11389 2003-01-06  Andrew Cagney  <cagney@redhat.com>
11390
11391         * MAINTAINERS (Target Instruction Set Architectures): Update
11392         arm-elf.  Can be built with -Werror, has been multiarched.
11393
11394         * value.h (unpack_long): Make buffer parameter constant.
11395         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11396         * scm-lang.h (scm_parse): Ditto.
11397         * defs.h (extract_typed_address, extract_address): Ditto.
11398         (extract_long_unsigned_integer): Ditto.
11399         * inferior.h (unsigned_pointer_to_address): Ditto.
11400         (signed_pointer_to_address): Ditto.
11401         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11402         * gdbarch.h, gdbarch.c: Regenerate.
11403         * findvar.c (extract_long_unsigned_integer): Update.
11404         (extract_address): Update.
11405         (extract_typed_address): Update.
11406         (unsigned_pointer_to_address): Update.
11407         * values.c (unpack_long): Update.
11408         (unpack_double): Update.
11409         (unpack_pointer): Update.
11410         (unpack_field_as_long): Update.
11411         * d10v-tdep.c (d10v_pointer_to_address): Update.
11412         * avr-tdep.c (avr_pointer_to_address): Update.
11413         * scm-lang.c (scm_unpack): Update.
11414         * findvar.c (signed_pointer_to_address): Update.
11415
11416 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
11417
11418         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11419         since it is in i386-tdep.c.
11420
11421 2003-01-06  J. Brobecker  <brobecker@gnat.com>
11422
11423         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11424         failure introduced in the previous change.
11425
11426 2003-01-05  Michael Chastain  <mec@shout.net>
11427
11428         * README: Remove references to deleted remote-*.c files:
11429         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11430         remote-nrom.c, remote-os9k.c, remote-udi.c.
11431
11432 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
11433
11434         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11435         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11436         i386_get_longjmp_target.
11437
11438 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
11439
11440         * arm-tdep.c (prologue_cache): Change to a pointer.
11441         (_initialize_arm_tdep): Allocate prologue_cache.
11442         (check_prologue_cache): Update.
11443         (save_prologue_cache): Update.
11444         (arm_gdbarch_init): Update.
11445
11446 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11447
11448         * stabsread.c (update_method_name_from_physname): Call complaint()
11449         instead of error.
11450
11451 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11452
11453         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
11454         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11455         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11456
11457         * blockframe.c: Include "gdbcmd.h" and "command.h".
11458         (backtrace_below_main): New variable.
11459         (file_frame_chain_valid, func_frame_chain_valid)
11460         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11461         (generic_func_frame_chain_valid): Remove functions.
11462         (frame_chain_valid, do_flush_frames_sfunc): New functions.
11463         (_initialize_blockframe): New function.
11464         * Makefile.in (blockframe.o): Update dependencies.
11465         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11466         comment.  Call frame_chain_valid ().
11467         * frame.h: Remove old prototypes.  Add prototype for
11468         frame_chain_valid and update comments to match.
11469         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11470         Remove old comment.
11471         * gdbarch.h: Regenerated.
11472         * gdbarch.c: Regenerated.
11473
11474         * alpha-tdep.c (alpha_gdbarch_init): Don't call
11475         set_gdbarch_frame_chain_valid.
11476         * avr-tdep.c (avr_gdbarch_init): Likewise.
11477         * cris-tdep.c (cris_gdbarch_init): Likewise.
11478         * frv-tdep.c (frv_gdbarch_init): Likewise.
11479         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11480         * i386-tdep.c (i386_svr4_init_abi): Likewise.
11481         (i386_nw_init_abi): Likewise.
11482         (i386_gdbarch_init): Likewise.
11483         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11484         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11485         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11486         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11487         * mips-tdep.c (mips_gdbarch_init): Likewise.
11488         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11489         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11490         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11491         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11492         * s390-tdep.c (s390_gdbarch_init): Likewise.
11493         * sh-tdep.c (sh_gdbarch_init): Likewise.
11494         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11495         * v850-tdep.c (v850_gdbarch_init): Likewise.
11496         * vax-tdep.c (vax_gdbarch_init): Likewise.
11497         * x86-64-tdep.c (x86_64_init_abi): Likewise.
11498
11499         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11500         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11501         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11502         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11503         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11504         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11505         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11506         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11507
11508 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
11509
11510         * Makefile.in (acconfig_h): Remove incorrect macro.
11511         (config_h): Define.
11512         (osabi.o): Update dependencies.
11513         * configure.tgt: Set gdb_osabi based on target triplet.
11514         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11515         * configure: Regenerated.
11516         * config.in: Regenerated.
11517         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11518         (GDB_OSABI_DEFAULT): Define if not already defined.
11519         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11520         (set_osabi_string): New variables.
11521         (gdbarch_register_osabi): Add new OS ABI to
11522         gdb_osabi_available_names.
11523         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11524         (set_osabi, show_osabi): New functions.
11525         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11526
11527 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11528
11529         * arch-utils.c (gdbarch_info_init): Set osabi to
11530         GDB_OSABI_UNINITIALIZED.
11531         * gdbarch.sh: Add osabi to struct gdbarch and to struct
11532         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
11533         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11534         * gdbarch.c: Regenerated.
11535         * gdbarch.h: Regenerated.
11536         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11537         there's no BFD.
11538         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11539         * osabi.h (enum gdb_osabi): Move to defs.h.
11540         (gdbarch_init_osabi): Update prototype.
11541         * defs.h (enum gdb_osabi): Moved here.
11542         * Makefile.in: Update dependencies.
11543
11544         * alpha-tdep.h: Don't include "osabi.h".
11545         (struct gdbarch_tdep): Remove osabi member.
11546         * alpha-tdep.c: Include "osabi.h".
11547         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11548         iterate over arches.  Update call to gdbarch_init_osabi.
11549         (alpha_dump_tdep): Don't dump osabi.
11550         * alpha-linux-tdep.c: Include "osabi.h".
11551         * alpha-osf1-tdep.c: Include "osabi.h".
11552         * alphafbsd-tdep.c: Include "osabi.h".
11553         * alphanbsd-tdep.c: Include "osabi.h".
11554
11555         * arm-tdep.h: Don't include "osabi.h".
11556         (struct gdbarch_tdep): Remove osabi member.
11557         * arm-tdep.c: Include "osabi.h".
11558         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11559         iterate over arches.  Update call to gdbarch_init_osabi.
11560         (arm_dump_tdep): Don't dump osabi.
11561         * arm-linux-tdep.c: Include "osabi.h".
11562         * armnbsd-tdep.c: Include "osabi.h".
11563
11564         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11565         Update call to gdbarch_init_osabi.
11566
11567         * i386-tdep.h: Don't include "osabi.h".
11568         (struct gdbarch_tdep): Remove osabi member.
11569         * i386-tdep.c: Include "osabi.h".
11570         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11571         iterate over arches.  Update call to gdbarch_init_osabi.
11572         (i386_dump_tdep): Don't dump osabi.
11573         * i386-linux-tdep.c: Include "osabi.h".
11574         * i386-sol2-tdep.c: Include "osabi.h".
11575         * i386bsd-tdep.c: Include "osabi.h".
11576         * i386gnu-tdep.c: Include "osabi.h".
11577         * i386ly-tdep.c: Include "osabi.h".
11578         * i386nbsd-tdep.c: Include "osabi.h".
11579         * i386obsd-tdep.c: Include "osabi.h".
11580
11581         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11582         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11583         check osabi when iterating over arches.  Update call to
11584         gdbarch_init_osabi.
11585         (mips_dump_tdep): Don't dump osabi.
11586
11587         * ns32k-tdep.h: Don't include "osabi.h".
11588         (struct gdbarch_tdep): Remove.
11589         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11590         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
11591         allocate tdep.  Update call to gdbarch_init_osabi.
11592         (ns32k_dump_tdep): Remove.
11593         (_initialize_ns32k_tdep): Update call to gdbarch_register.
11594         * ns32knbsd-tdep.c: Include "osabi.h".
11595
11596         * ppc-tdep.h: Don't include "osabi.h".
11597         (struct gdbarch_tdep): Remove osabi member.
11598         * rs6000-tdep.c: Include "osabi.h".
11599         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
11600         osabi when iterating over arches.  Update call to
11601         gdbarch_init_osabi.
11602         (rs6000_dump_tdep): Don't dump osabi.
11603         * ppc-linux-tdep.c: Include "osabi.h".
11604         * ppcnbsd-tdep.c: Include "osabi.h".
11605
11606         * sh-tdep.h: Don't include "osabi.h".
11607         (struct gdbarch_tdep): Remove osabi member.
11608         * sh-tdep.c: Include "osabi.h".
11609         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11610         iterate over arches.  Update call to gdbarch_init_osabi.
11611         (sh_dump_tdep): Don't dump osabi.
11612         * shnbsd-tdep.c: Include "osabi.h".
11613
11614         * sparc-tdep.c: Include "osabi.h".
11615         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11616         iterate over arches.  Update call to gdbarch_init_osabi.
11617         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
11618         tdep structure.
11619
11620         * vax-tdep.h: Don't include "osabi.h".
11621         (struct gdbarch_tdep): Remove.
11622         * vax-tdep.c: Include "osabi.h".
11623         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
11624         iterate over arches.  Don't allocate tdep.  Update call
11625         to gdbarch_init_osabi.
11626         (vax_dump_tdep): Remove.
11627         (_initialize_vax_tdep): Update call to gdbarch_register.
11628
11629 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11630
11631         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11632         entirely.
11633         (breakpoint_re_set_one): Don't fetch the value for a disabled
11634         watchpoint.
11635
11636 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11637
11638         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11639         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11640         (COERCE_FLOAT_TO_DOUBLE): Remove.
11641         * gdbarch.c: Regenerate.
11642         * gdbarch.h: Regenerate.
11643         * Makefile.in: Remove value_h from gdbarch_h.
11644         * valops.c (coerce_float_to_double): New variable.
11645         (default_coerce_float_to_double): Remove.
11646         (standard_coerce_float_to_double): Remove.
11647         (value_arg_coerce): Use coerce_float_to_double.
11648         (_initialize_valops): Add "set coerce-float-to-double".
11649         * value.h (default_coerce_float_to_double): Remove prototype.
11650         (standard_coerce_float_to_double): Remove prototype.
11651
11652         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11653         prototyped.
11654         * mdebugread.c (parse_symbol): Likewise.
11655         * stabsread.c (define_symbol): Mark all functions as prototyped.
11656
11657         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11658         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11659         set_gdbarch_coerce_float_to_double.
11660         * arm-tdep.c (arm_gdbarch_init): Likewise.
11661         * frv-tdep.c (frv_gdbarch_init): Likewise.
11662         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11663         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11664         * mips-tdep.c (mips_gdbarch_init): Likewise.
11665         (mips_coerce_float_to_double): Remove.
11666         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11667         (rs6000_coerce_float_to_double): Remove.
11668         * s390-tdep.c (s390_gdbarch_init): Likewise.
11669         * sh-tdep.c (sh_gdbarch_init): Likewise.
11670         (sh_coerce_float_to_double): Remove.
11671         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11672         (sparc_coerce_float_to_double): Remove.
11673         * v850-tdep.c (v850_gdbarch_init): Likewise.
11674         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11675         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11676         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11677         (hppa_coerce_float_to_double): Remove prototype.
11678         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11679
11680 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11681
11682         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11683
11684 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
11685
11686         Suggested by Stewart Brown <sb24@avaya.com>:
11687         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11688         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
11689         (c_type_print_varspec_suffix): Likewise.
11690
11691 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11692
11693         * configure.in: Don't set and AC_SUBST SUBDIRS.
11694         * configure: Regenerated.
11695
11696         * configure.in: Remove code dealing with shared libraries.
11697         * Makefile.in: Remove HLDFLAGS and HLDENV.
11698         * configure: Regenerated.
11699
11700 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
11701
11702         * frame.c (deprecated_frame_xmalloc): New function.
11703         (deprecated_set_frame_saved_regs_hack): New function.
11704         (deprecated_set_frame_extra_info_hack): New function.
11705         * frame.h (deprecated_frame_xmalloc): Declare.
11706         (deprecated_set_frame_saved_regs_hack): Declare.
11707         (deprecated_set_frame_extra_info_hack): Declare.
11708
11709 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
11710
11711         * configure.in: Move code that provides the --enable-gdbtk option
11712         right after the code that handles the --enable-tui option, and
11713         polish it somewhat.
11714         * configure: Regenerated.
11715
11716         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
11717         AC_CHECK_FUNCS and remove the old check for pread64.
11718         * acinclude.m4 (AC_GNU_SOURCE): New macro.
11719         * acconfig.h (_GNU_SOURCE): Add.
11720         (HAVE_PREAD64): Remove.
11721         * configure, aclocal.m4, config.in: Regenerated.
11722
11723 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
11724
11725         * alpha-tdep.c: Use get_frame_saved_regs.
11726         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11727         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11728         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11729         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11730         * vax-tdep.c, xstormy16-tdep.c: Ditto.
11731
11732 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11733
11734         * configure.in: Remove all use of the SUBDIRS variable; add
11735         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
11736         code providing the --enable-multi-ice option, and move it right in
11737         front of the code that checks whether gdbserver is supported.
11738         Polish that too.
11739         * configure: Regenerated.
11740         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11741         @SUBDIRS@.
11742
11743 2003-01-03  Andrew Cagney  <cagney@redhat.com>
11744
11745         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11746         * avr-tdep.c, cris-tdep.c: Ditto.
11747         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11748         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11749
11750 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11751
11752         * configure.in: Remove --enable-netrom option.
11753         * configure: Regenerated.
11754
11755 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
11756
11757         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11758         declaration for `struct re_pattern_buffer' instead.
11759         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11760
11761 2003-01-03  J. Brobecker  <brobecker@gnat.com>
11762
11763         * mdebugread.c (parse_symbol): Count until the stEnd matching
11764         the structure name.
11765
11766 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11767
11768         * configure.in: Remove --with-cpu option.
11769         subscripts.  Remove evil changequotes here.
11770         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11771         * config.in, configure: Regenerated.
11772
11773         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11774         * configure.in: Cleanup section that sources GDB and BFD configure
11775         subscripts.  Remove evil changequotes here.
11776         * config.in, configure: Regenerated.
11777
11778 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11779
11780         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11781         frame accessor methods.
11782         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11783         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11784         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11785         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11786         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11787         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11788         * z8k-tdep.c: Ditto.
11789
11790 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11791
11792         * configure.in: Remove UI_OUT configuration code.
11793         * ada-lang.c: Update assuming UI_OUT is always true.
11794         * Makefile.in (UIOUT_CFLAGS): Remove.
11795         * configure: Regenerated.
11796         * TODO: Remove blurb about elimination of -DUI_OUT.
11797
11798         * configure.in: Move code that provides the --enable-gdbcli,
11799         --enable-gdbmi options right before the code that handles the
11800         --enable-tui option.  Polish a bit.
11801         * configure: Regenerated.
11802
11803         * configure.in: Rewrite check for GNU regex and the
11804         --without-included regex option, and move it into the "Checks for
11805         library functions" section.  This makes us use the system regex
11806         again by default on systems with version 2 of the GNU C library.
11807         This was apparently broken.
11808         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11809         * acconfig.h (USE_INCLUDED_REGEX): Remove.
11810         * config.in, configure: Regenerated.
11811
11812         * configure.in: Move code that provides the --enable-tui option
11813         before the "Checks for libraries" section.  Polish the code
11814         somewhat and set need_curses to yes if we build the TUI.  Rewrite
11815         code that looks for a library providing termcap functionality to
11816         match more closely what's done in the Readline library, and move
11817         it into to the "Checks for libraries" section.
11818         * configure: Regenerated.
11819         * Makefile.in (TERMCAP): Remove variable.
11820         * config/i386/go32.mh (TERMCAP): Remove variable.
11821
11822 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11823
11824         * MAINTAINERS: Mention gdb_mbuild.sh.
11825         * gdb_mbuild.sh: Rewrite.
11826
11827 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11828
11829         * configure.in: Fix typo in last change.
11830         * config.in, configure: Regenerated.
11831
11832 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
11833
11834         * valarith.c (value_binop): Delete obsolete code and comments.
11835         * configure.host: Ditto.
11836         * buildsym.h (make_blockvector): Ditto.
11837         * buildsym.c (make_blockvector): Ditto.
11838         * defs.h (enum language): Ditto.
11839         (chill_demangle): Ditto.
11840         * elfread.c (elf_symtab_read): Ditto.
11841         * dwarfread.c (CHILL_PRODUCER): Ditto.
11842         (set_cu_language): Ditto.
11843         (handle_producer): Ditto.
11844         * expprint.c (print_subexp): Ditto.
11845         * gdbtypes.c (chill_varying_type): Ditto.
11846         * gdbtypes.h (builtin_type_chill_bool): Ditto.
11847         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11848         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11849         (chill_varying_type): Ditto.
11850         * language.h (_LANG_chill): Ditto.
11851         * language.c (binop_result_type, integral_type): Ditto.
11852         (character_type, string_type, structured_type): Ditto.
11853         (lang_bool_type, binop_type_check): Ditto.
11854         * stabsread.h (os9k_stabs): Ditto.
11855         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11856         (define_symbol, read_type, read_struct_fields): Ditto.
11857         (read_array_type, read_enum_type, read_huge_number): Ditto.
11858         (read_range_type, start_stabs): Ditto.
11859         * symfile.c (init_filename_language_table): Ditto.
11860         (add_psymbol_with_dem_name_to_list): Ditto.
11861         * symtab.c (symbol_init_language_specific): Ditto.
11862         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11863         * symtab.h (struct general_symbol_info): Ditto.
11864         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11865         * typeprint.c (typedef_print): Ditto.
11866         * utils.c (fprintf_symbol_filtered): Ditto.
11867         * valops.c (value_cast, search_struct_field, value_slice): Delete
11868         obsolete code.
11869         (varying_to_slice): Delete function.
11870         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11871         (varying_to_slice): Delete declaration.
11872         * MAINTAINERS: Update.
11873
11874 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
11875
11876         * configure.in: Reorganize "Checks for library functions section"
11877         a bit.  Remove check for `btowc' and `isascii' functions.
11878         * configure: Regenerated.
11879
11880         * acconfig.h (_MSE_INT_H): Remove.
11881         * configure.in: Create "Checks for header files" section, and move
11882         appropriate tests there.  Don't check for objlist.h, wchar.h,
11883         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
11884         misdetection fix.  Also add "Checks for types", "Checks for
11885         compiler characteristics" and "Checks for library functions"
11886         sections.
11887         * config.in, configure: Regenerated.
11888
11889         * configure.in: Create "Checks for programs" section, and move
11890         appropriate tests there.
11891
11892 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
11893
11894         * configure.in: Create "Checks for libraries" section, and move
11895         appropriate tests there.  Cleanup check for wctype in libw.  Use
11896         AC_SEARCH_LIBS to see whether we need libsocket.
11897         * configure: Regenerated.
11898
11899 For older changes see ChangeLog-2002
11900 \f
11901 Local Variables:
11902 mode: change-log
11903 left-margin: 8
11904 fill-column: 74
11905 version-control: never
11906 End: