400b02530904e685a7b5ca07b61c07bc00a95cba
[external/binutils.git] / gdb / ChangeLog
1 2003-11-20  Mark Kettenis  <kettenis@gnu.org>
2
3         * i386-tdep.c (i386_extract_return_value,
4         i386_store_return_value): Add gdbarch argument.  Use it instead of
5         determining it from REGCACHE.  Remove recursive call for
6         structures with a single member.
7         (i386_use_struct_convention): Remove.
8         (i386_reg_struct_return_p): New function.
9         (i386_return_value): New function.
10         (i386_gdbarch_init): Set return_value, don't set
11         extract_return_value, store_return_value and
12         use_struct_convention.
13         * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
14
15 2003-11-20  Jim Blandy  <jimb@redhat.com>
16
17         * osabi.c (_initialize_gdb_osabi): Don't return before registering
18         the 'set osabi' and 'show osabi' commands.
19
20 2003-11-19  Mark Kettenis  <kettenis@gnu.org>
21
22         * frame.c (get_prev_frame): Use result from
23         get_frame_address_in_block instead of get_frame_pc as argument to
24         inside_main_func.  Fixes PR backtrace/1435.
25
26 2003-11-19  Andrew Cagney  <cagney@redhat.com>
27
28         * stack.c (return_command): Handle "void", "legacy" and "unknown
29         location" return values separatly.
30         * values.c (using_struct_return): Return 0 for a "void" return
31         type.  Mention "register_value_being_returned".
32         (register_value_being_returned): Mention "using_struct_return".
33
34 2003-11-19  Daniel Jacobowitz  <drow@mvista.com>
35
36         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
37         (frame_base_offset): Delete.
38         (read_func_scope): Delete call to decode_locdesc.
39         (decode_locdesc): Update comments.  Don't set the removed variables.
40         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
41         DW_OP_fbreg support.
42
43 2003-11-18  Daniel Jacobowitz  <drow@mvista.com>
44
45         * dwarf2read.c (optimized_out, islocal): Remove.
46         (decode_locdesc): Update comments.  Don't set optimized_out
47         or islocal.
48
49 2003-11-17  Jeff Johnston  <jjohnstn@redhat.com>
50             David Mosberger  <davidm@hpl.hp.com>
51
52         * ia64-tdep.c: Include elf.h.
53         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and 
54         libunwind-ia64.h.
55         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
56         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
57         (ia64_is_fpreg, ia64_access_reg): Ditto.
58         (ia64_access_fpreg, ia64_access_mem): Ditto.
59         (get_kernel_table): Ditto.
60         (ia64_find_unwind_table): Ditto.
61         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
62         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
63         (ia64_libunwind_frame_prev_register): Ditto.
64         (ia64_libunwind_frame_sniffer): Ditto.
65         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
66         sniffer.  Register libunwind functions needed by generic 
67         libunwind frame code using libunwind_frame_set_descr(). 
68
69 2003-11-16  Daniel Jacobowitz  <drow@mvista.com>
70
71         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
72         bp_shlib_disabled breakpoint if there is a shared library mapped
73         at its expected address.
74
75 2003-11-16  Andrew Cagney  <cagney@redhat.com>
76
77         * configure.tgt: Delete mips*tx39*-elf*.
78         * config/mips/tm-tx39.h: Delete file.
79         * config/mips/tx39.mt: Delete file.
80         * config/mips/tx39.mt: Delete file.
81
82         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
83         * remote-mips.c (common_open): Instead of
84         "mips_read_register_type" and "mips_set_processor_type_command"
85         call "deprecated_mips_set_processor_regs_hack".
86         * config/mips/tm-mips.h (mips_read_processor_type): Delete
87         declaration.
88         (mips_set_processor_type_command): Delete declaration.
89         * mips-tdep.c (mips_gdbarch_init): Update comment.
90         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
91         (mips_set_processor_type): Delete function.
92         (NUM_MIPS_PROCESSOR_REGS): Define.
93         (mips_show_processor_type_command): Delete function.
94         (mips_set_processor_type_command): Delete function.
95         (tmp_mips_processor_type): Delete.
96         (mips_processor_type): Delete.
97         (mips_processor_type_table): Delete.
98         (mips_r3051_reg_names): Delete.
99         (mips_r3081_reg_names): Delete.
100         (mips_lsi33k_reg_names): Delete.
101         (mips_processor_reg_names): Delete.
102         (mips_read_processor_type): Delete function.
103         (deprecated_mips_set_processor_regs_hack): New function.
104         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
105         (mips_register_name): Get the processor names from the tdep.
106         (mips_tx39_reg_names): New array.
107         (mips_generic_reg_names): Wire to a standard set of names.
108         (mips_gdbarch_init): Set "mips_processor_reg_names".    
109         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
110         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
111         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
112
113 2003-11-16  Andrew Cagney  <cagney@redhat.com>
114
115         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
116         (mips_fpa0_regnum, mips_regnum): New function.
117         (mips_gdbarch_init): Fill in the "regnum" fields.
118         * mips-tdep.h (struct mips_regnum): Define.
119         (mips_regnum): Declare.
120         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
121         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
122         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
123         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
124         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
125         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
126         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
127         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
128         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
129         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
130         * remote-mips.c: Include "mips-tdep.h".  Update.
131         * mipsnbsd-tdep.c: Update.
132         * mipsv4-nat.c: Update.
133         * mips-tdep.c: Update.
134         * mips-nat.c: Update.
135         * mips-linux-tdep.c: Update.
136         * mips-linux-nat.c: Update.
137         * irix5-nat.c: Update.
138         * dve3900-rom.c: Include "mips-tdep.h".  Update.
139         (ignore_packet): Supress GCC warning.
140         * config/mips/nm-riscos.h: Update.
141
142 2003-11-16  Andrew Cagney  <cagney@redhat.com>
143
144         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
145         register_size.
146         (mips_register_raw_size): Delete function.
147         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
148         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
149         Check and set "mips64_transfers_32bit_regs_p".
150         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
151         (mips_register_convertible): Check the architecture's
152         "mips64_transfers_32bit_regs_p".
153         (set_mips64_transfers_32bit_regs): New function.
154         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
155         "set remote-mips64-transfers-32bit-regs" command.  Specify
156         set_mips64_transfers_32bit_regs as the set function.
157         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
158
159 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
160
161         * i386-tdep.h (i386_supply_gregset): Provide prototype.
162         * i386-tdep.c (i386_supply_gregset): Make public.
163
164 2003-11-16  Andrew Cagney  <cagney@redhat.com>
165
166         * mips-tdep.c (mips_register_byte): Delete function.
167         (mips_gdbarch_init): Do not set "deprecated_register_byte".
168         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
169         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
170         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
171
172 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
173
174         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
175
176 2003-11-16  Andrew Cagney  <cagney@redhat.com>
177
178         * config/mips/linux64.mt: Delete file.
179         * config/mips/tm-linux64.h: Delete file.
180         * config/mips/tm-mips64.h: Delete file.
181         * config/mips/embed64.mt: Delete file.
182         * config/djgpp/fnchange.lst: Update.
183         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
184         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
185         * config/mips/tm-irix6.h: Update copyright.  Include
186         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
187         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
188         "OP_LDGPR".
189
190 2003-11-15  Andrew Cagney  <cagney@redhat.com>
191
192         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
193         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
194         n32 registers 64 bit.
195         (mips_register_raw_size, mips_register_byte): For pseudo
196         registers, use the register's pseudo size and not the
197         corresponding raw register's size.
198         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
199         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
200         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
201         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
202
203 2003-11-15  Andrew Cagney  <cagney@redhat.com>
204
205         * mips-tdep.c (struct gdbarch_tdep): Delete member
206         gdb_target_is_mips64.
207         (GDB_TARGET_IS_MIPS64): Delete macro.
208         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
209         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
210         (mips_addr_bits_remove): Simplify.
211
212         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
213         register_size.
214
215         Replace MIPS_REGSIZE with mips_regsize.
216         * mips-tdep.c (mips_regsize): New function.
217         * mips-tdep.h (mips_regsize): Declare.
218         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
219         (SIZEOF_STRUCT_REG): Update.
220         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
221         (mipsnbsd_fill_reg): Update.
222         (mipsnbsd_supply_fpreg): Update.
223         (mipsnbsd_fill_fpreg): Update.
224         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
225         * mips-tdep.c (mips_register_raw_size): Update.
226         (mips_register_type): Update.
227         (SIGFRAME_BASE): Update.
228         (SIGFRAME_PC_OFF): Update.
229         (SIGFRAME_REGSAVE_OFF): Update.
230         (SIGFRAME_FPREGSAVE_OFF): Update.
231         (SIGFRAME_REG_SIZE): Update.
232         (mips32_heuristic_proc_desc): Update.
233         (print_gp_register_row): Update.
234         (mips_dump_tdep): Do not print MIPS_REGSIZE.
235         * irix5-nat.c (supply_gregset): Update.
236         (fetch_core_registers): Update.
237         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
238         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
239         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
240         (MIPS_REGISTER_BYTE): Update.
241         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
242
243 2003-11-15  Andrew Cagney  <cagney@redhat.com>
244
245         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
246         USE_REGISTER_NOT_ARG.
247         * stabsread.c (define_symbol): Update.
248
249 2003-11-15  Andrew Cagney  <cagney@redhat.com>
250
251         * bcache.h (deprecated_bcache): Declare.
252         (bcache): Make returned buffer constant.
253         * bcache.c (deprecated_bcache): New function.
254         (bcache_data): New function.
255         (bcache): Call bcache data.
256         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
257         (add_psymbol_with_dem_name_to_list): Ditto.
258
259 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
260
261         * glibc-tdep.h (struct gdbarch): Declare opaque.
262         (glibc_skip_solib_resolver): Adjust prototype.
263         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
264         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
265         (arm_linux_init_abi): Set skip_solib_resolver.
266         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
267         (i386_linux_init_abi): Set skip_solib_resolver.
268         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
269         (arm_linux_skip_solib_resolver): Remove prototype.
270         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
271         (i386_linux_skip_solib_resolver): Remove prototype.
272
273 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
274
275         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
276         function.
277         * gdbarch.c, gdbarch.h: Regenerate.
278         * infrun.c (handle_inferior_event): Call
279         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
280         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
281         definition.
282         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
283         prototype.
284
285 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
286
287         * libunwind-frame.c: New file.
288         * libunwind-frame.h: New file.
289         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
290         * configure.in: Add --with-libunwind option support.  Define
291         HAVE_LIBUNWIND if libunwind support selected / defaulted.  
292         Also check for libunwind.h and libunwind-ia64.h headers.
293         * configure: Regenerated.
294         * Makefile.in: Add support for libunwind-frame.o.
295         * config.in: Regenerated.
296
297 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
298  
299         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
300         set up the ia64 linux native target method for getting the kernel
301         unwind table.
302         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
303         * inftarg.c (child_xfer_partial): Enable section of code to
304         handle TARGET_OBJECT_UNWIND_TABLE.
305         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
306
307 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
308
309         * config/arm/nbsd.mt (TM_FILE): Define.
310         * config/arm/tm-nbsd.h: New file.
311
312 2003-11-14  Andrew Cagney  <cagney@redhat.com>
313
314         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
315         * ppc-sysv-tdep.c: Include "objfiles.h".
316         (ppc64_sysv_abi_push_dummy_call): Provide the
317         the FN's objfile when looking for the descriptor.
318
319         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
320         "name_of_malloc" to ".malloc".
321
322 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
323
324         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
325
326 2003-11-13  David Carlton  <carlton@kealia.com>
327
328         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
329
330 2003-11-13  Andrew Cagney  <cagney@redhat.com>
331
332         * arch-utils.h (selected_architecture_name): Declare.
333         (selected_byte_order): Declare.
334         * arch-utils.c (selected_byte_order): New function.
335         (selected_architecture_name): New function.
336         (target_architecture_auto): Make static.
337         (set_architecture_string): Make static.
338         (target_byte_order): Make static.
339         (target_byte_order_auto): Make static.
340         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
341         non-multi-arch definition.
342         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
343         (target_byte_order, target_architecture): Delete declaration.
344         (target_byte_order_auto, target_architecture_auto): Ditto.
345         * gdbarch.h: Re-generate.
346         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
347         "selected_byte_order".
348         
349 2003-11-13  Andrew Cagney  <cagney@redhat.com>
350
351         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
352
353 2003-11-13  Jim Blandy  <jimb@redhat.com>
354
355         * cp-namespace.c: Doc fix.
356
357 2003-11-12  Michael Snyder  <msnyder@redhat.com>
358
359         * sh64_tdep.c: Regularize some names.
360         (sh_sh64_register_name): Rename to sh64_register_name.
361         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
362         (sh_sh64_register_byte): Rename to sh64_register_byte.
363         (sh_sh64_build_float_register_type): 
364         Rename to sh64_build_float_register_type.
365         (sh_sh64_register_convert_to_virtual): 
366         Rename to sh64_register_convert_to_virtual.
367         (sh_sh64_register_convert_to_raw): 
368         Rename to sh64_register_convert_to_raw.
369
370         * sh64-tdep.c (translate_insn_rn, is_media_pseudo, 
371         sh64_media_reg_base_num, sh64_compact_reg_base_num, 
372         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
373         sh64_extract_return_value, sh64_show_media_regs, 
374         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type, 
375         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
376         sh64_pseudo_register_read, sh64_pseudo_register_write, 
377         sh64_do_pseudo_register, sh_compact_print_registers_info):
378         Delete unused variable 'tdep'.
379
380         * sh64-tdep.c: Coding standard and spelling comment fixes.
381         (sh64_extract_return_value): Replace deprecated_store_floating
382         with store_typed_floating.
383         (sh_sh64_register_convert_to_raw): Replace 
384         deprecated_store_floating with store_typed_floating.
385         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
386         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
387         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
388         sh64_extract_struct_value_address, sh64_pop_frame, 
389         sh64_extract_return_value, sh64_store_return_value,
390         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read, 
391         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
392         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
393         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
394         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
395         deprecated_register_virtual_type, deprecated_register_raw_size,
396         deprecated_max_register_raw_size, or 
397         deprecated_max_register_virtual_size.  Instead, just set
398         gdbarch_register_type.
399         (sh_sh64_register_raw_size): Delete.
400         (sh_sh64_register_virtual_size): Delete.
401
402 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
403
404         * dwarf2read.c (struct dwarf2_cu): New type.
405
406         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
407         dwarf2_cu structure to pass down.
408
409         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
410         (add_partial_enumeration, locate_pdi_sibling, process_die)
411         (read_file_scope, read_func_scope)
412         (read_lexical_block_scope, dwarf2_get_pc_bounds)
413         (dwarf2_add_field, dwarf2_attach_fields_to_type)
414         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
415         (read_structure_scope, read_enumeration, read_array_type)
416         (read_common_block, read_namespace, read_tag_pointer_type)
417         (read_tag_ptr_to_member_type, read_tag_reference_type)
418         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
419         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
420         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
421         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
422         (read_full_die. read_attribute_value, read_attribute)
423         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
424         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
425         (die_containing_type, type_at_offset, tag_type_to_type)
426         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
427         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
428
429 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
430
431         PR breakpoints/1450
432         * breakpoint.c (insert_bp_location): Fix a logic error by returning
433         0 after a catchpoint fails.
434
435 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
436
437         * mips-tdep.c (msymbol_size): Delete.
438
439 2003-11-07  Michael Chastain  <mec@shout.net>
440
441         * symtab.h (struct minimal_symbol): Add size.
442         * dbxread.c: Use it.
443         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
444         Rename to record_minimal_symbol.
445         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
446         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
447         (install_minimal_symbols): Ditto.
448         * objfiles.c (terminate_minimal_symbol_table): Ditto.
449         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
450         * m68hc11-tdep.c: Ditto.
451         * mips-tdep.c: Ditto.
452         * sh64-tdep.c: Ditto.
453
454 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
455
456         * MAINTAINERS: Change my e-mail address.
457
458 2003-11-10  Andrew Cagney  <cagney@redhat.com>
459
460         * gdbarch.sh (return_value): Replace "inval" and "outval" with
461         "readbuf" and "writebuf".
462         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
463         * d10v-tdep.c (d10v_return_value): Ditto.
464         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
465         (ppc_sysv_abi_broken_return_value): Ditto.
466         (ppc64_sysv_abi_return_value): Ditto.
467         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
468         (ppc_sysv_abi_return_value): Ditto.
469         (ppc_sysv_abi_broken_return_value): Ditto.
470         (ppc64_sysv_abi_return_value): Ditto.
471         * values.c (register_value_being_returned): Update call.
472         * stack.c (return_command): Update call.
473         * gdbarch.h, gdbarch.c: Re-generate.
474
475         * target.h (struct target_ops): Order xfer buffer parameters "read
476         write" not "write read".
477         * bfd-target.c (target_bfd_xfer_partial): Update.
478         * remote.c (remote_xfer_partial): Update.
479         * inftarg.c (child_xfer_partial): Update.
480         * target.c (default_xfer_partial): Update.
481         (target_read_partial, target_write_partial): Update.
482         (debug_to_xfer_partial): Update.
483
484         * arch-utils.h, arch-utils.c: Fix typo in comment.
485
486         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
487         (gdbarch_from_bfd): Call gdbarch_find_by_info.
488         (set_gdbarch_from_file): Call
489         "deprecated_current_gdbarch_select_hack".
490
491 2003-11-09  Andrew Cagney  <cagney@redhat.com>
492
493         * arch-utils.c (gdbarch_update_p): New function.
494         * gdbarch.sh (gdbarch_update_p): Delete function.
495         (find_arch_by_info, gdbarch_find_by_info): New functions.
496         (deprecated_current_gdbarch_select_hack): New function.
497         * gdbarch.c: Re-generate.
498
499         * gdbarch.sh (clear_gdbarch_swap): Delete function.
500         (swapout_gdbarch_swap): Delete function.
501         (swapin_gdbarch_swap): Delete function.
502         (init_gdbarch_swap): Delete function.
503         (initialize_non_multiarch): Delete function.
504         (current_gdbarch_swap_in_hack): New function.
505         (current_gdbarch_swap_out_hack): New function.
506         (current_gdbarch_swap_init_hack): New function.
507         * gdbarch.c: Re-generate.
508
509         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
510         parameter to "current_gdbarch".  Add comment explaining why.
511         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
512         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
513         * gdbarch.c: Re-generate.
514         
515         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
516         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
517         * config/s390/xm-linux.h: Delete file.
518         * config/m88k/xm-delta88v4.h: Delete stray.
519
520         * Makefile.in (arch-utils.o): Update dependencies.
521         * arch-utils.c: Include "osabi.h".
522         (gdbarch_info_fill): New function.
523         * arch-utils.h (gdbarch_info_fill): Declare.
524         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
525         * gdbarch.c: Re-generate.
526
527 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
528             David S. Miller  <davem@redhat.com>
529
530         * glibc-tdep.c, glibc-tdep.h: New files.
531         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
532         * config/i386/linux.mt (TDEPFILES): Likewise.
533         * i386-linux-tdep.c (glibc-tdep.h): Include.
534         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
535         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
536         * arm-linux-tdep.c (glibc-tdep.h): Include.
537         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
538         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
539         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
540         (glibc_tdep_h): Define.
541         (glibc-tdep.o): Add dependencies.
542         (arm-linux-tdep.o): Update dependencies.
543         (i386-linux-tdep.o): Likewise.
544
545 2003-11-09  Andrew Cagney  <cagney@redhat.com>
546
547         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
548         * config/mips/nm-irix6.h: Delete file.
549         * config/mips/nm-linux.h: Update copyright.
550         (MIPS_GNULINUX_TARGET): Delete macro.
551         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
552         * config/mips/xm-irix6.h: Delete file.
553         * config/mips/linux.mh (XM_FILE): Delete definition.
554         * config/mips/xm-linux.h: Delete file.
555
556 2003-11-09  Andrew Cagney  <cagney@redhat.com>
557
558         * d10v-tdep.c (d10v_return_value): New function.
559         (d10v_use_struct_convention): Delete function.
560         (d10v_store_return_value): Delete function.
561         (d10v_extract_struct_value_address): Delete function.
562         (d10v_gdbarch_init): Set "return_value" instead of
563         "extract_return_value", "store_return_value",
564         "extract_struct_value_address", and "use_struct_convention".
565         (RET1_REGNUM): Delete const.
566
567 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
568
569         From David S. Miller  <davem@redhat.com>:
570         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
571         * gdbarch.c, gdbarch.h: Regenerated.
572         * arch-utils.c (generic_skip_solib_resolver): New function.
573         * arch-utils.h (generic_skip_solib_resolver): New prototype.
574         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
575
576 2003-11-07  Andrew Cagney  <cagney@redhat.com>
577
578         * top.c (print_gdb_version): Replace STREQ with strcmp.
579         * valops.c (value_struct_elt_for_reference): Ditto.
580         (value_struct_elt_for_reference): Ditto.
581         * symtab.c (gdb_mangle_name): Ditto.
582         (find_line_symtab): Ditto.
583         * symmisc.c (maintenance_print_symbols): Ditto.
584         * symfile.c (symbol_file_command): Ditto.
585         * stabsread.c (define_symbol, read_type): Ditto.
586         (cleanup_undefined_types, scan_file_globals): Ditto.
587         * solib.c (solib_map_sections): Ditto.
588         * solib-svr4.c (bfd_lookup_symbol): Ditto.
589         * rs6000-tdep.c (skip_prologue): Ditto.
590         * p-valprint.c (pascal_value_print): Ditto.
591         (pascal_object_is_vtbl_ptr_type): Ditto.
592         * objfiles.c (in_plt_section): Ditto.
593         * minsyms.c (lookup_minimal_symbol): Ditto.
594         (compact_minimal_symbols): Ditto.
595         (find_solib_trampoline_target): Ditto.
596         * mdebugread.c (parse_type): Ditto.
597         * language.c (set_language_command): Ditto.
598         (set_type_command, set_range_command): Ditto.
599         * f-lang.c (add_common_block): Ditto.
600         (add_common_block): Ditto.
601         (find_first_common_named): Ditto.
602         (patch_all_commons_by_name): Ditto.
603         * elfread.c (elf_locate_sections): Ditto.
604         (elf_locate_sections): Ditto.
605         (elfstab_offset_sections): Ditto.
606         * dwarf2read.c (dwarf2_locate_sections): Ditto.
607         * dbxread.c (add_old_header_file): Ditto.
608         (find_corresponding_bincl_psymtab): Ditto.
609         (read_dbx_symtab, process_one_symbol): Ditto.
610         * coffread.c (patch_opaque_types): Ditto.
611         * cli/cli-decode.c (delete_cmd): Ditto.
612         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
613         * c-typeprint.c (c_type_print_base): Ditto.
614         * breakpoint.c (bpstat_stop_status): Ditto.
615         (clear_command, breakpoint_re_set_one): Ditto.
616
617 2003-11-07  Andrew Cagney  <cagney@redhat.com>
618
619         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
620         * bcache.c (struct bstring): Make "length" an unsigned short, add
621         "half_hash".
622         (struct bcache): Add "half_hash_error_count".
623         (bcache): Compute and save the "half_hash".  Compare the
624         "half_hash" before comparing the length.  Update
625         half_hash_error_count.
626
627 2003-11-07  Andrew Cagney  <cagney@redhat.com>
628
629         * inftarg.c (child_xfer_partial): New function
630         (init_child_ops): Set "to_xfer_partial".
631
632 2003-11-07  Andrew Cagney  <cagney@redhat.com>
633
634         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
635         set "return_value" instead of "use_struct_convention".
636         (ppc_linux_use_struct_convention): Delete function.
637         (ppc_linux_return_value): New function.
638         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
639         (ppc_sysv_abi_broken_return_value): New function.
640         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
641         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
642         static.
643         (ppc_sysv_abi_extract_return_value): Delete function.
644         (ppc_sysv_abi_broken_extract_return_value): Delete function.
645         (ppc_sysv_abi_store_return_value): Delete function.
646         (ppc_sysv_abi_broken_store_return_value): Delete function.
647         (ppc_sysv_abi_use_struct_convention): Delete function.
648         (ppc64_sysv_abi_use_struct_convention): Delete function.
649         (ppc64_sysv_abi_extract_return_value): Delete function.
650         (ppc64_sysv_abi_store_return_value): Delete function.
651         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
652         (ppcnbsd_init_abi): Set "return_value", instead of
653         "use_struct_convention", "extract_return_value", and
654         "store_return_value".
655         (ppcnbsd_use_struct_convention): Delete function.
656         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
657         (ppc_sysv_abi_return_value): Declare.
658         (ppc_sysv_abi_broken_return_value): Declare.
659         (ppc_sysv_abi_use_struct_convention): Delete.
660         (ppc_sysv_abi_store_return_value): Delete.
661         (ppc_sysv_abi_extract_return_value): Delete.
662         (ppc_sysv_abi_broken_store_return_value): Delete.
663         (ppc_sysv_abi_broken_extract_return_value): Delete.
664         (ppc64_sysv_abi_use_struct_convention): Delete.
665         (ppc64_sysv_abi_extract_return_value): Delete.
666         (ppc64_sysv_abi_store_return_value): Delete.
667         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
668         set "return_value" instead of "extract_return_value",
669         "store_return_value", and "use_struct_convention".
670
671 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
672
673         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
674
675         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
676         fscanf.
677
678 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
679
680         * fbsd-proc.c: Fix formatting.
681
682 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
683
684         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
685         Define.
686         (new_variant): Set name for iacc0_regnum.
687         (frv_register_name): Accommodate pseudo-registers.
688         (frv_register_type): Add case for iacc0_regnum.
689         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
690         (frv_gdbarch_init): Set number of pseudo registers.  Establish
691         pseudo-register read/write methods.
692
693 2003-11-06  Andrew Cagney  <cagney@redhat.com>
694
695         * valops.c (destructor_name_p): Replace STREQN with strncmp.
696         * top.c (command_line_input): Ditto.
697         * objc-exp.y (yylex): Ditto.
698         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
699         * jv-exp.y (yylex): Ditto.
700         * f-exp.y (yylex): Ditto.
701         * event-top.c (command_line_handler): Ditto.
702         * environ.c (get_in_environ): Ditto.
703         (set_in_environ): Ditto.
704         * dwarfread.c (handle_producer): Ditto.
705         * dbxread.c (process_one_symbol): Ditto.
706         * c-typeprint.c (c_type_print_base): Ditto.
707         * c-exp.y (yylex): Ditto.
708
709 2003-11-06  Andrew Cagney  <cagney@redhat.com>
710             Jeff Johnston  <jjohnstn@redhat.com>
711
712         * target.c (add_target): Only set "to_xfer_partial" when NULL.
713         (init_dummy_target): Set "to_xfer_partial".
714
715 2003-11-06  Andrew Cagney  <cagney@redhat.com>
716
717         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
718         REGISTER_CONVENTION.
719
720 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
721
722         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
723         static.
724
725 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
726
727         * breakpoint.c (remove_breakpoint): Take an bp_location
728         instead of a breakpoint argument.  Check the bp_location's type.
729         Fix a reversed condition for hardware breakpoints.
730
731         (insert_bp_location): Update call to remove_breakpoint.
732         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
733         (remove_hw_watchpoints): Likewise.
734         (reattach_breakpoints): Likewise.
735         (detach_breakpoints): Likewise.
736         (delete_breakpoint): Likewise.
737
738 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
739
740         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
741         (beakpoint_init_inferior): Likewise.
742         (breakpoint_here_p): Likewise.  Only check addresses for software
743         or hardware breakpoints.
744         (breakpoint_inserted_here_p): Likewise.
745         (breakpoint_thread_match): Likewise.  Correct comment.
746         (bpstat_have_active_hw_watchpoints): Likewise.
747         (check_duplicates): Likewise.
748
749 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
750
751         * breakpoints.c (insert_bp_location): New function, broken out
752         from insert_breakpoints.  Work on an bp_location instead of a
753         breakpoint.
754         (insert_breakpoints): Use it.
755
756 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
757
758         * breakpoint.h (struct bp_location): Add section.
759         (struct breakpoint): Remove section.
760         * breakpoint.c (insert_breakpoints, remove_breakpoint)
761         (breakpoint_here_p, breakpoint_inserted_here_p)
762         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
763         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
764         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
765         section through loc.
766
767 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
768
769         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
770         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
771
772 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
773
774         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
775         arguments.  Initialize owner and type for the new breakpoint
776         location item.
777         (set_raw_breakpoint): Update call to allocate_bp_location.
778
779 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
780
781         * breakpoint.h (struct bp_location): Add a chain pointer.
782         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
783         macros.
784         (bp_location_chain): New variable.
785         (allocate_bp_location): New function.
786         (set_raw_breakpoint): Use it.
787         (delete_breakpoint): Remove ->loc from the bp_location_chain.
788
789 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
790
791         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
792         (struct breakpoint): Remove address, shadow_contents, inserted,
793         requested_address, and duplicate.  Add a struct bp_location.
794         * breakpoint.c (condition_command, read_memory_nobpt)
795         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
796         (reattach_breakpoints, update_breakpoints_after_exec)
797         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
798         (breakpoint_init_inferior, breakpoint_here_p)
799         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
800         (breakpoint_thread_match, bpstat_stop_status)
801         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
802         (describe_other_breakpoints, check_duplicates)
803         (make_breakpoint_permanent, create_thread_event_breakpoint)
804         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
805         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
806         (watch_command_1, print_one_exception_catchpoint)
807         (clear_command, breakpoint_re_set_one): Adjust member accesses to
808         use the breakpoint's ->loc.
809         (set_raw_breakpoint): Likewise.  Initialize ->loc.
810         (delete_breakpoint): Likewise.  Free ->loc.
811
812 2003-11-05  Andrew Cagney  <cagney@redhat.com>
813
814         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
815         macro.
816         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
817         * config/i386/tm-cygwin.h
818         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
819         * config/powerpc/tm-linux.h
820         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
821         (at_subroutine_call_instruction_target): Delete declaration.
822         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
823         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
824         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
825
826         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
827         "struct bfd_section" and "struct bfd".
828         * target.h (struct section_table): Ditto.
829         * rs6000-nat.c (xcoff_relocate_core): Ditto.
830         * solib-svr4.c (elf_locate_base): Ditto.
831         * pa64solib.c (dld_cache_t): Ditto.
832         * objfiles.h (struct obj_section): Ditto.
833         * objfiles.c (add_to_objfile_sections): Ditto.
834         * exec.c (bfdsec_to_vmap): Ditto.
835         (add_to_section_table): Ditto.
836         (build_section_table): Ditto.
837         * corelow.c (get_core_register_section): Ditto.
838         * coffread.c (find_linenos): Ditto.
839         * elfread.c (elf_interpreter): Delete #if0'd function.
840
841         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
842         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
843         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
844         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
845
846         * arch-utils.h (generic_cannot_extract_struct_value_address):
847         Delete declaration.
848         * wince.c (_initialize_wince): Fix multi-line string.
849         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
850
851 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
852
853         * top.c (execute_command): Fix broken logic for command execution
854         while inferior is running in async mode.
855
856 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
857
858         * dwarf2-frame.c (execute_cfa_program): Mark register as
859         REG_SAVED_REG for DW_CFA_register opcode.
860
861 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
862
863         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
864         %rsp, %rip and %eflags to match ABI-change.
865
866 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
867
868         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
869         (ia64_gdbarch_init): Don't bother calculating the os.  
870         Instead use the gdbarch_info struct and look at the osabi field.  
871         Also use gdbarch_list_lookup_by_info() to look for a 
872         candidate gdbarch. 
873
874 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
875
876         * frv-tdep.c (frv_register_byte): Delete.
877         (frv_extract_return_value, frv_store_return_value)
878         (frv_extract_struct_value_address): Don't call frv_register_byte().
879         Convert to non-deprecated form.
880         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
881         Convert calls to set_gdbarch_deprecated_extract_return_value(),
882         set_gdbarch_deprecated_store_return_value(), and
883         set_gdbarch_deprecated_extract_struct_value_address() into
884         non-deprecated forms.
885
886 2003-11-05  Andrew Cagney  <cagney@redhat.com>
887
888         * mips-tdep.c (mips_dump_tdep): Do not print
889         PRINT_EXTRA_FRAME_INFO.
890         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
891         Rename PRINT_EXTRA_FRAME_INFO.
892         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
893         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
894         (mips_print_extra_frame_info): Delete declaration.
895         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
896
897 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
898
899         * coffread.c (coff_symtab_read): Remove passing of info parameter
900         to prim_record_minimal_symbol_and_info.
901
902 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
903
904         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
905         (decode_base_type): Delete ifdeffed out code.
906
907 2003-11-04  Andrew Cagney  <cagney@redhat.com>
908
909         * symtab.c (find_active_alias): Delete function.
910         (lookup_block_symbol): Delete alias code.
911         * stabsread.c (resolve_live_range): Delete function.
912         (add_live_range): Delete function.
913         (resolve_symbol_reference): Delete function.
914         (define_symbol): Delete live range and alias code.
915         (scan_file_globals): Delete alias code.
916         * symtab.h (SYMBOL_RANGES): Delete macro.
917         (struct range_list): Delete structure.
918         (struct symbol): Delete field "ranges".
919         (SYMBOL_ALIASES): Delete macro.
920         (struct alias_list): Delete structure.
921         (struct symbol): Delete field "aliases".
922
923 2003-11-04  Michael Snyder  <msnyder@redhat.com>
924
925         * MAINTAINERS: Remove myself as owner of breakpoints and 
926         of sparc/solaris.
927
928 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
929
930         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
931         (sh_sh4al_dsp_register_name): Ditto.
932         (sh4_nofpu_show_regs): Ditto.
933         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
934         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
935
936 2003-11-03  Andrew Cagney  <cagney@redhat.com>
937
938         * bcache.c: Include "gdb_assert.h".
939         (struct bcache): Add fields "expand_count" and
940         "expand_hash_count".
941         (expand_hash_table): Update the expand counts.
942         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
943         on object sizes and hashes.
944         * Makefile.in (bcache.o): Update dependencies.
945
946 2003-11-03  Andrew Cagney  <cagney@redhat.com>
947
948         * exec.c (xfer_memory): Eliminate xfer_fn.
949
950 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
951
952         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
953         (opcodes/frv-desc.h): Include.
954         (iacc0h_regnum, iacc0l_regnum): Define.
955         (last_spr_regnum, frv_num_regs): Update.
956         (new_variant): Don't supply default names for holes in the SPRs.
957         Supply names for iacc0h_regnum and iacc0l_regnum.
958         (frv_register_type): Use symbolic constants first_fpr_regnum and
959         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
960         builtin_type_int instead of builtin_type_int32.
961         (frv_register_sim_regno): New function.
962         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
963         * Makefile.in (gdb_sim_frv_h): Define.
964         (frv-tdep.o): Update dependencies.
965
966 2003-10-31  Andrew Cagney  <cagney@redhat.com>
967
968         * avr-tdep.c (avr_frame_this_id): Do not call
969         deprecated_inside_entry_file.
970         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
971         * m32r-tdep.c (m32r_frame_this_id): Ditto.
972         * d10v-tdep.c (d10v_frame_this_id): Ditto.
973         * arm-tdep.c (arm_prologue_this_id): Ditto.
974         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
975
976 2003-10-31  Jim Blandy  <jimb@redhat.com>
977
978         * elfread.c (elf_symtab_read): Allocate correct number of tail
979         elements to sectinfo structure.  (Fix from Woody LaRue.)
980
981 2003-10-31  Andrew Cagney  <cagney@redhat.com>
982
983         * stack.c (return_command): Use get_frame_type, instead of
984         CALL_DUMMY_HAS_COMPLETED.
985         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
986         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
987
988 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
989
990         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
991         explicitly specify size of array.
992         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
993         TDEP->sc_num_regs.
994
995 2003-10-31  Andrew Cagney  <cagney@redhat.com>
996
997         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
998         function.
999         (s390_gdbarch_init): Set extract_struct_value_address.
1000         * arch-utils.c (generic_cannot_extract_struct_value_address):
1001         Delete function.
1002         * arch-utils.h (generic_cannot_extract_struct_value_address):
1003         Delete definition.
1004
1005 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1006
1007         * i386-linux-nat.c (fetch_core_registers): Remove.
1008         (linux_elf_core_fns): Remove.
1009         (_initialize_i386_linux_nat): Remove.
1010
1011 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1012
1013         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
1014         "exec.h".
1015         (exec_entry_point): New function.
1016         (enable_break): Create a "tmp_bfd_target", use that and
1017         entry_point_address when computing the relocation offset.
1018         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1019         * Makefile.in (solib-svr4.o): Update dependencies.
1020
1021 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1022
1023         * defs.h (XZALLOC): Define.
1024         * target.h (struct target_ops): Add "to_data";
1025         * bfd-target.h, bfd-target.c: New files.
1026         * Makefile.in (SFILES): Add "bfd-target.c".
1027         (COMMON_OBS): Add "bfd-target.o".
1028         (bfd-target.o): Specify dependencies.
1029         (bfd_target_h): Define.
1030         * defs.h (XZALLOC): Define.
1031
1032 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1033
1034         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1035         adjust_breakpoint_address.
1036         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1037         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1038         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1039         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1040
1041 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1042
1043         * target.h (struct target_ops): Replace "to_read_partial" and
1044         "to_write_partial" with "to_xfer_partial".  Update comments.
1045         * target.c (debug_to_write_partial): Delete function.
1046         (debug_to_xfer_partial): Replace debug_to_read_partial.
1047         (add_target, update_current_target, setup_target_debug): Set
1048         "to_xfer_partial" instead of "to_read_partial" and
1049         "to_write_partial".
1050         (default_xfer_partial): Replace "default_write_partial".
1051         (default_read_partial): Delete.
1052         (target_read_partial, target_write_partial): Call
1053         "to_xfer_partial".
1054         * remote.c (init_remote_ops): Set "to_xfer_partial".
1055         (init_remote_async_ops): Ditto.
1056         (remote_xfer_partial): Replace "remote_read_partial".
1057
1058 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1059
1060         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1061         registers in `fxsave' format.
1062         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1063
1064 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
1065
1066         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1067         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1068         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1069
1070         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1071         specify size of array.
1072         (i386_linux_init_abi): Remove initialization of
1073         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1074         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1075
1076         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1077         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1078         core-regset.o.
1079
1080         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1081         the ELF header.
1082
1083 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1084
1085         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1086         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1087         core-regset.o.
1088
1089         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1090
1091         * corelow.c: Include "arch-utils.h", "regset.h" and
1092         "gdb_assert.h".
1093         (core_gdbarch): New variable.
1094         (sniff_core_bfd): Don't sniff if we have support for register sets
1095         in CORE_GDBARCH.
1096         (core_close): Reset CORE_GDBARCH.
1097         (core_open): Initialize CORE_GDBARCH.
1098         (get_core_register_section): Use register sets if they are
1099         supported by CORE_GDBARCH.
1100         (get_core_registers): Don't print error message if we have support
1101         for register sets in CORE_GDBARCH.
1102
1103 2003-10-29  Andrew Cagney  <cagney@redhat.com>
1104
1105         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1106         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1107
1108 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1109
1110         * objfiles.h (clear_objfile_data): New prototype.
1111         * objfiles.c (clear_objfile_data): New function.
1112         * symfile.c (reread_symbols): Clear per-objfile data.
1113
1114 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
1115  
1116         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1117         printf_unfiltered instead of printf_filtered for output messages.
1118         (add_symbol_file_command): Ditto.
1119         (reread_symbols): Ditto.
1120         (overlay_auto_command): Ditto.
1121         (overlay_manual_command): Ditto.
1122         (overlay_off_command): Ditto.
1123
1124 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
1125
1126         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1127         (gdbarch_from_bfd): New function.
1128         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1129         deprecated_select_gdbarch_hack.
1130         * arch-utils.h (gdbarch_from_bfd): New prototype.
1131
1132 2003-10-27  Andrew Cagney  <cagney@redhat.com>
1133
1134         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1135         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1136         deprecated bfd_printable_arch_mach.
1137
1138 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
1139
1140         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1141         Delete.
1142         (frv_register_type): Rename from frv_register_virtual_type.  Add
1143         ``struct gdbarch *'' parameter.
1144         (frv_gdbarch_init): Delete calls to the following functions:
1145         set_gdbarch_deprecated_size(),
1146         set_gdbarch_deprecated_register_bytes(),
1147         set_gdbarch_deprecated_register_raw_size(),
1148         set_gdbarch_deprecated_max_register_raw_size(),
1149         set_gdbarch_deprecated_register_virtual_size(),
1150         set_gdbarch_deprecated_max_register_virtual_size(),
1151         set_gdbarch_deprecated_register_virtual_size(),
1152         set_gdbarch_deprecated_register_virtual_type().
1153         Add call to function set_gdbarch_register_type().
1154
1155 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
1156
1157         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1158         FDOFF_REGNUM): Remove defines.
1159         * win32-nat.c (do_child_fetch_inferior_registers): Include
1160         "i387-tdep.h".
1161         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1162         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1163         undefine I387_ST0_REGNUM.
1164
1165         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1166         * x86-64-tdep.c (x86_64_store_return_value): Use
1167         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1168
1169         Change register numbers to enumartion values.
1170         * i386-tdep.h (enum i386_regnum): New.
1171         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1172         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1173         I386_ST0_REGNUM): Remove defines.
1174         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1175         I386_EDI_REGNUM): Remove defines.
1176
1177 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1178
1179         * target.c: Include "gdbcore.h".
1180         (get_target_memory, get_target_memory_unsigned): New functions.
1181         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1182         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1183         Use get_target_memory_unsigned.
1184         * Makefile.in (target.o): Update dependencies.
1185
1186 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1187
1188         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1189         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1190         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1191         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1192         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1193
1194         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1195         (can_run_code_for): Use the OO term "singleton".
1196
1197 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1198
1199         * Makefile.in (stack.o): Add $(regcache_h).
1200         * stack.c: Include "regcache.h"
1201         (return_command): Rewrite.  Use get_frame_id and
1202         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1203         about unhandled return-values.
1204         * value.h (set_return_value): Delete declaration.
1205         * values.c (set_return_value): Delete function.
1206
1207 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1208
1209         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1210         (pseudo_regs): Add comment regarding register stack registers.
1211         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1212         (floatformat_valid): New static routine.
1213         (floatformat_ia64_ext): Add name field and set up is_valid routine
1214         to floatformat_valid().
1215         (examine_prologue):  For the previous cfm, use
1216         frame_unwind_register()
1217         if the cfm is not stored in a register-stack register.  Save the
1218         previous cfm value in the prev_cfm field.  Add debug output.
1219         (ia64_frame_this_id): Use frame_id_build_special() to also register
1220         the bsp.  Add debug output.
1221         (ia64_sigtramp_frame_this_id): Ditto.
1222         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1223         registers and also add some checks for framelessness before accepting
1224         current register values for fields such as return address.  For cfm,
1225         use the cached prev_cfm field if available.  Add comment to explain
1226         PSR logic.  Add debug output.
1227         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1228         as part of initialization.
1229         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1230         calculated.  Cache the bsp and cfm values.
1231         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1232         instead of using ia64_frame_prev_register() which doesn't expect most
1233         registers to be saved.  The saved values for bsp and sp
1234         can be taken from the cache.  Add debug output.
1235         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1236         the bsp.
1237
1238 2003-10-23  Jim Blandy  <jimb@redhat.com>
1239
1240         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1241         architecture the current arch can run code for --- but not if it's
1242         a superset.
1243         (can_run_code_for): New function.
1244
1245 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1246
1247         * MAINTAINERS: Move myself from paper trail section back to write
1248         after approval section.
1249
1250 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1251
1252         * exec.h: New file.
1253         * win32-nat.c: Include "exec.h".
1254         * solib.c: Include "exec.h".
1255         * target.h (build_section_table): Delete declaration.
1256         * somsolib.c: Include "exec.h".
1257         (exec_ops): Delete extern declaration.
1258         * rs6000-nat.c: Update copyright.  Include "exec.h".
1259         (exec_ops): Delete extern declaration.
1260         * pa64solib.c: Update copyright.  Include "exec.h".
1261         (exec_ops): Delete extern declaration.
1262         * exec.c: Update copyright.  Include "exec.h".
1263         * corelow.c: Update dependencies.  Include "exec.h".
1264         * Makefile.in (exec_h): Define.
1265         (exec.o, somsolib.o): Update dependencies.
1266         (pa64solib.o, corelow.o): Update dependencies.
1267
1268 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1269
1270         * target.c: Include "gdb_assert.h" (target_read): Call
1271         "target_read_partial", not "target_write_partial".
1272         (default_read_partial, default_write_partial): New function.
1273         (target_read_partial, target_write_partial): Simplify, assume that
1274         there is always a read/write method.
1275         (update_current_target, add_target): Always set "to_read_partial"
1276         and "to_write_partial".
1277         (target_write, target_read): Fail on a zero byte transfer.
1278         * Makefile.in (target.o): Update dependencies.
1279         * target.h: Update copyright date.
1280         (target_object): Fix typo.
1281
1282 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1283
1284         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1285         multi-arch method, add "targ" parameter.
1286         (struct target_ops): Declare.   
1287         * gdbarch.h, gdbarch.c: Re-generate.
1288         * Makefile.in (c-valprint.o): Update dependencies.
1289         * arch-utils.h: Update copyright.
1290         (convert_from_func_ptr_addr_identity): Declare.
1291         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1292         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1293         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1294         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1295         * infcall.c (find_function_addr, call_function_by_hand): Update.
1296         * c-valprint.c: Include "target.h".
1297         (print_function_pointer_address): Update.
1298
1299 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1300
1301         * target.c (target_close): New function.
1302         (debug_to_close): Use "target_close".
1303         (push_target): Use "target_close".
1304         (unpush_target): Use "target_close".
1305         (pop_target): Use "target_close".
1306         * target.h (struct target_ops): Add "to_xclose".
1307         (target_open): Delete macro.  Move comment to "to_open".
1308         (target_close): Replace macro with function that takes a target.
1309         * top.c (quit_target): Pass "current_target" to "target_close".
1310
1311 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1312
1313         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1314         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1315         * symtab.h (lookup_minimal_symbol_text): Update.
1316         * breakpoint.c (create_overlay_event_breakpoint,
1317         create_longjmp_breakpoint): Update callers.
1318         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1319         * symtab.c (find_pc_sect_line): Ditto.
1320
1321 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1322
1323         * target.c (errno): Delete extern declaration.
1324
1325 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1326
1327         * ia64-tdep.c: Change all occurrences of
1328         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1329         (ia64_frame_prev_register): Minor whitespace change.
1330
1331 2003-10-20  Michael Chastain  <mec@shout.net>
1332
1333         * config/djgpp/fnchange.lst: Add lines for:
1334         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1335         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1336         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1337         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1338         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1339         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1340         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1341
1342 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1343
1344         * values.c (register_value_being_returned): Update comments.  Use
1345         "gdbarch_return_value" when available.
1346         (using_struct_return): Ditto.
1347         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1348         available..  Print a warning, and not an error, when an unhandled
1349         return type is encountered.
1350         * infcmd.c: Include "gdb_assert.h".
1351         (print_return_value): When gdbarch_return_value_p, and using
1352         struct return, assume that the value is not available.
1353         * defs.h (return_value_convention): Define.
1354         * gdbarch.sh (gdbarch_return_value): New predicate method.
1355         * gdbarch.h, gdbarch.c: Re-generate
1356         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1357
1358 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1359
1360         * symtab.c: Replace "struct sec" with "struct bfd_section".
1361         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1362
1363 2003-10-19  Michael Chastain  <mec@shout.net>
1364
1365         * config/djgpp/fnchange.lst: Add lines for:
1366         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1367         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1368         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1369
1370 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1371
1372         * amd64fbsd-nat.c (fetch_inferior_registers,
1373         store_inferior_registers): Remove functions.
1374         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1375
1376 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1377
1378         Add NetBSD/amd64 native configuration:
1379         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1380         * amd64nbsd-tdep.c: New file.
1381         * amd64nbsd-nat.c: New file.
1382         * amd64bsd-nat.c: New file.
1383         * config/i386/nbsd64.mh: New file.
1384         * config/i386/nbsd64.mt: New file.
1385         * configure.host: Add x86_64-*-netbsd*.
1386         * configure.tgt: Add x86_64-*-netbsd*.
1387         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1388         New targets.
1389         * NEWS (New native configurations): Mention NetBSD/amd64.
1390
1391 2003-10-17  Michael Chastain  <mec@shout.net>
1392
1393         * config/djgpp/fnchange.lst: Remove dead lines for:
1394         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1395         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1396         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1397         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1398         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1399         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1400         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1401         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1402         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1403         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1404         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1405         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1406         gdb/config/sparc/tm-sparclite.h,
1407         gdb/gdbtk/generic/ChangeLog-2001,
1408         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1409         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1410         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1411         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1412         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1413         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1414         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1415         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1416         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1417         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1418         itcl/iwidgets3.0.0/demos/fileselectionbox,
1419         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1420         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1421         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1422         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1423         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1424         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1425         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1426         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1427         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1428         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1429         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1430         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1431         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1432         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1433         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1434         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1435         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1436         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1437         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1438         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1439         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1440         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1441         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1442         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1443         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1444         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1445         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1446         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1447         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1448         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1449         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1450         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1451         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1452         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1453         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1454         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1455         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1456         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1457         itcl/iwidgets3.0.0/demos/scrolledframe,
1458         itcl/iwidgets3.0.0/demos/scrolledhtml,
1459         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1460         itcl/iwidgets3.0.0/demos/scrolledtext,
1461         itcl/iwidgets3.0.0/demos/selectionbox,
1462         itcl/iwidgets3.0.0/demos/selectiondialog,
1463         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1464         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1465         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1466         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1467         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1468         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1469         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1470         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1471         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1472         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1473         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1474         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1475         itcl/iwidgets3.0.0/doc/selectionbox.n,
1476         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1477         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1478         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1479         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1480         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1481         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1482         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1483         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1484         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1485         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1486         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1487         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1488         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1489         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1490         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1491         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1492         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1493         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1494         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1495         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1496         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1497         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1498         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1499         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1500         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1501         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1502         itcl/iwidgets3.0.0/tests/selectionbox.test,
1503         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1504         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1505         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1506         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1507         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1508         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1509         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1510         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1511         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1512         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1513         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1514         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1515         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1516         tk/mac/tkMacProjects.sit.hqx.
1517
1518 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1519
1520         * target.c (target_section_by_addr): New function.
1521         (do_xfer_memory): Use "target_section_by_addr".
1522         * target.h (target_section_by_addr): Declare.
1523
1524         * target.h (struct target_ops): Add "to_read_partial" and
1525         "to_write_partial", delete "to_query".
1526         (target_read_partial, target_write_partial): Declare.
1527         (target_read, target_write): Declare.
1528         (target_query): Delete macro.
1529         * target.c (target_read_partial): New function.
1530         (target_write_partial, target_read, target_write): New function.
1531         (update_current_target): Delete inheritance of "to_query".  Add
1532         comments about "to_read_partial" and "to_write_partial".
1533         (debug_to_partial_read, debug_to_partial_write): New functions.
1534         (debug_to_query): Delete function.
1535         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1536         instead of "to_query".
1537         * remote.c (remote_read_partial): Replace "remote_query".
1538         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1539         (init_remote_async_ops): Ditto.
1540         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1541         "target_read_partial" instead of "target_query".
1542         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1543         Use "target_read_partial" instead of "target_query".
1544
1545 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1546
1547         * frame.h (struct frame_id): Add new field: special_addr.
1548         (frame_id_build_special): New prototype.
1549         * frame.c (frame_id_build_special): New function.
1550         (frame_id_build): Change to call frame_id_build_special().
1551         (frame_id_eq): Change to also test special_addr field. 
1552         (frame_id_inner): Update comment. 
1553
1554 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1555
1556         * target.c (update_current_target): Perform the target cleanup.
1557         Put the target stack beneath the squashed "current_target".
1558         (add_target): Delete disabled call to "cleanup_target".
1559         (cleanup_target): Delete function.
1560         (push_target, unpush_target): Do not call "cleanup_target".
1561
1562 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1563
1564         * target.c (target_stack): Change to a static target_ops.
1565         (update_current_target): Walk the "struct target_ops" stack.
1566         (pop_target, do_xfer_memory, target_info): Ditto.
1567         (find_target_beneath): Ditto.
1568         (push_target): Rewrite to use the "struct target_ops" stack.
1569         (unpush_target): Ditto.
1570         * target.h (struct target_stack_item): Delete definition.
1571         (target_stack): Delete declaration.
1572         (struct target_ops): Add field "beneath".
1573
1574 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1575
1576         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1577         declaration.
1578         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1579         (h8300_examine_prologue): Use h8300_normal_mode flag
1580         (h8300_gdbarch_init): Set architecture info for normal mode
1581
1582 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1583
1584         * remote.c (remote_protocol_vcont): New variable.
1585         (set_remote_protocol_vcont_packet_cmd): New function.
1586         (show_remote_protocol_vcont_packet_cmd): New function.
1587         (init_all_packet_configs): Handle remote_protocol_vcont.
1588         (remote_vcont_probe): New function.
1589         (remote_vcont_resume): New function.
1590         (remote_resume): Use it.
1591         (remote_async_resume): Call remote_resume.
1592         (_initialize_remote): Add verbose-resume packet commands.
1593
1594 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1595
1596         * infrun.c (handle_inferior_event): Add comment about
1597         "frame_id_inner" being too weak.
1598
1599 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1600
1601         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1602         second parameter, which is always null. Remove
1603         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1604         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1605         accordingly.
1606         * somsolib.c (som_solib_create_inferior_hook,
1607         som_solib_desire_dynamic_linker_symbols): Update callers.
1608         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1609
1610 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
1611
1612         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1613         debug interface, SDI (Scalable Debug Interface).
1614         * NEWS: Mention m32r SDI protocol was supported.
1615         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1616         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1617
1618 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
1619
1620         * ia64-linux-tdep.c: Include gdbcore.h.
1621         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1622         (ia64_linux_sigcontext_register_addr): Find the address of the
1623         sigcontext area stored in the sigframe instead of using
1624         a magic offset constant. 
1625
1626 2003-10-15  Andrew Cagney  <cagney@redhat.com>
1627
1628         * remote.c (remote_search): Delete function.
1629         * target.h (target_search): Delete disabled macro.
1630         (struct target_ops): Delete disabled field "to_search".
1631
1632 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
1633
1634         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1635         instead of deprecated_inside_entry_file().
1636
1637 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
1638
1639         * sh-tdep.c: Fix copy/paste hangover in comment.
1640         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1641         mode.
1642         (sh3e_sh4_extract_return_value): Ditto.
1643
1644 2003-10-13  Richard Henderson  <rth@redhat.com>
1645
1646         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1647         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1648         match c_val_print a bit closer.
1649
1650 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1651
1652         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1653         (frv_gdbarch_adjust_breakpoint_address): New function.
1654         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1655         method.
1656
1657 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1658
1659         * breakpoint.h (struct breakpoint): Add new member
1660         ``requested_address''.
1661         * breakpoint.c (breakpoint_adjustment_warning)
1662         (adjust_breakpoint_address): New static functions.
1663         (print_it_typical): Issue warning if breakpoint's address is different
1664         from its requested address.
1665         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1666         (breakpoint_re_set_one):  Set breakpoint's
1667         ``requested_address'' field.  Set ``address'' field to the
1668         result of calling adjust_breakpoint_address() on the requested
1669         address.
1670
1671 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1672
1673         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1674         * gdbarch.h, gdbarch.c: Regenerate.
1675
1676 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1677
1678         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1679         TDEP->sc_num_regs.
1680
1681         * i386fbsd-tdep.c: New file.
1682         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1683         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1684         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1685         i386bsd-tdep.c.
1686         (_initialize_i386fbsd_tdep): New function.
1687         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1688         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1689         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1690         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1691         TDEP->sc_num_regs.
1692         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1693         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1694         to initialize TDEP->sc_num_regs.
1695         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1696         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1697         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1698         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1699         FreeBSD ELF OS/ABI's here.
1700         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1701         (i386fbsd-tdep.o): New target.
1702         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1703         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1704
1705         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1706         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1707         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1708         in initialization of TDEP->sc_num_regs.
1709
1710         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1711         (x86_64_init_abi): Initialize regset_from_core_section if
1712         appropriate.
1713
1714         * i386-tdep.c (i386_regset_from_core_section): New function.
1715         (i386_gdbarch_init): Initialize regset_from_core_section if
1716         appropriate.
1717         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1718
1719         * i386-tdep.h (struct regset): Declare opaque.
1720
1721         * gdbarch.sh (regset_from_core_section): New method.
1722         (struct regset): Declare opaque.
1723         * gdbarch.c, gdbarch.h: Regenerated.
1724
1725 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
1726
1727         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1728         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1729         Correct test for pc within section.
1730
1731 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1732
1733         * gdbarch.sh: Remove trailing whitepsace from comments.
1734
1735 2003-10-08  Roland McGrath  <roland@redhat.com>
1736
1737         * gcore.c (make_mem_sec): Function removed, folded into ...
1738         (gcore_create_callback): ... here.  To omit a section, clear its
1739         SEC_LOAD bit rather than zeroing its size.
1740         Omit read-only sections only if they correspond to a known disk file.
1741         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1742
1743 2003-10-10  Michael Snyder  <msnyder@redhat.com>
1744
1745         * d10v-tdep.c: Fix typo in comment.
1746
1747 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1748
1749         * rs6000-tdep.c (e500_store_return_value): Delete function.
1750         (e500_extract_return_value): Delete function.
1751         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1752         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1753         "ppc_sysv_abi_restore_return_value" where applicable.
1754         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1755         (ppc_sysv_abi_extract_return_value): Declare.
1756         (ppc_sysv_abi_broken_store_return_value): Declare.
1757         (ppc_sysv_abi_broken_extract_return_value): Declare.
1758         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1759         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1760         start of file.
1761         (do_ppc_sysv_return_value): New function.
1762         (ppc_sysv_abi_extract_return_value): New function.
1763         (ppc_sysv_abi_store_return_value): New function.
1764         (ppc_sysv_abi_broken_extract_return_value): New function.
1765         (ppc_sysv_abi_broken_store_return_value): New function.
1766         (ppc_sysv_abi_use_struct_convention): Call
1767         do_ppc_sysv_return_value.
1768
1769 2003-10-10  J. Brobecker  <brobecker@gnat.com>
1770
1771         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1772         to lookup the main function symbol.
1773
1774 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1775
1776         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1777         types correctly.
1778         (sh_push_dummy_call_fpu): Fix argument passing rules.
1779         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1780         float types.
1781         (sh3e_sh4_store_return_value): Ditto.
1782
1783 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
1784
1785         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1786         comment.
1787
1788 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1789
1790         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1791         more readable code.  Accomodate passing of bitfields.
1792
1793 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1794
1795         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1796         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1797         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1798         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1799         (ppc64_sysv_abi_push_dummy_call): New function.
1800         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1801         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1802         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1803
1804 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1805
1806         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1807         * README: Ditto.
1808         * d10v-tdep.c: Ditto.
1809         * h8300-tdep.c: Ditto.
1810         * remote-e7000.c: Ditto.
1811         * remote-hms.c: Ditto.
1812         * ser-e7kpc.c: Ditto.
1813         * sh-stub.c: Ditto.
1814         * sh-tdep.c: Ditto.
1815         * sh-tdep.h: Ditto.
1816         * sh3-rom.c: Ditto.
1817         * sh64-tdep.c: Ditto.
1818         * top.c: Ditto.
1819         * wince.c: Ditto.
1820         * config/d10v/d10v.mt: Ditto.
1821         * config/sh/embed.mt: Ditto.
1822         * config/sh/linux.mt: Ditto.
1823         * config/sh/tm-linux.h: Ditto.
1824         * config/sh/tm-sh.h: Ditto.
1825         * config/sh/wince.mt: Ditto.
1826
1827 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1828
1829         * ppc-tdep.h (struct type): Declare opaque.
1830         * x86-64-tdep.h (struct regcache): Declare opaque.
1831         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1832         coding style.
1833
1834 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1835
1836         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1837         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1838         (SOFTWARE_SINGLE_STEP_P): Ditto.
1839         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1840         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1841         (SOFTWARE_SINGLE_STEP_P): Ditto.
1842         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1843         software_single_step to rs6000_software_single_step.
1844
1845 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1846
1847         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1848
1849 2003-10-09  Michael Snyder  <msnyder@redhat.com>
1850
1851         * frame.h: Fix typo in comment.
1852         * dummy-frame.c: Fix typo in comment.
1853         * d10v-tdep.c: Random whitespace/comment tweaks.
1854
1855 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
1856
1857         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1858         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1859         on stack.
1860
1861         Based on input by Stephen Clarke (stephen.clarke@superh.com):
1862         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1863         in detail.
1864
1865 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1866
1867         * remote-mips.c (mips_initialize): Remove unneeded call to
1868         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1869
1870 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1871
1872         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1873         a memory pointer.
1874
1875 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1876
1877         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1878         for any lwp we resume.
1879         (running_callback): Add lwps that have pending status events
1880         against them to be considered running.
1881
1882 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
1883
1884         * m32r-tdep.c : Include "dis-asm.h".
1885         * Makefile.in (m32r-tdep.o): Update dependencies.
1886
1887 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1888
1889         * completer.h (get_gdb_completer_word_break_characters): Delete.
1890         * completer.c: include language.h.
1891         (gdb_completer_word_break_characters): Delete.
1892         (get_gdb_completer_word_break_characters): Delete.
1893         (location_completer): Use the word break characters of the current
1894         language.
1895         (complete_line): Likewise.
1896         (line_completion_function): Likewise.
1897         (skip_quoted_chars): Likewise.
1898         * Makefile.in (completer.o): Add dependency on language.h.
1899         * top.c (init_main): Set the readline word break characters
1900         to GDB's default word break characters.
1901
1902 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1903
1904         * language.h (language_defn): new field, la_word_break_characters.
1905         * language.c (unknown_language_defn): Set new field to
1906         default_word_break_characters.
1907         (auto_language_defn): Likewise.
1908         (local_language_defn): Likewise.
1909         * ada-lang.c (ada_language_defn): Likewise.
1910         * c-lang.c (c_language_defn): Likewise.
1911         (cplus_language_defn): Likewise.
1912         (asm_language_defn): Likewise.
1913         (minimal_language_defn): Likewise.
1914         * f-lang.c (f_language_defn): Likewise.
1915         * jv-lang.c (java_language_defn): Likewise.
1916         * m2-lang.c (m2_language_defn): Likewise.
1917         * objc-lang.c (objc_language_defn): Likewise.
1918         * p-lang.c (pascal_language_defn): Likewise.
1919         * scm-lang.c (scm_language_defn): Likewise.
1920
1921 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1922
1923         * ppc-sysv-tdep.c: Re-indent.
1924
1925 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1926
1927         * language.h (default_word_break_characters): Add prototype.
1928         * language.c (default_word_break_characters): New function.
1929
1930 2003-10-06  Andreas Schwab  <schwab@suse.de>
1931
1932         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1933         with %eax.
1934
1935 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1936
1937         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1938         "h8500-tdep.c".
1939         (z8k-tdep.o): Delete custom build rule.
1940
1941 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1942
1943         * Makefile.in: Update all dependencies.
1944
1945         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1946         No longer list PA as as obsolete candidate.  List m32r as
1947         broken instead of obsolete.
1948
1949         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1950         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1951         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1952         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1953         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1954         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1955         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1956         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1957         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1958         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1959         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1960         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1961         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1962         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1963         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1964         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1965         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1966         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1967         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1968         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1969         * config/z8k/z8k.mt: Ditto.
1970
1971         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1972         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1973         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1974         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1975         sparclite were removed.
1976         * configure.host, configure.tgt: Remove corresponding tuples.
1977
1978         * breakpoint.c, breakpoint.h: Remove obsolete code.
1979         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1980         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1981         * stabsread.h, xcoffread.c: Ditto.
1982
1983         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1984         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1985         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1986         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1987
1988 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
1989
1990         * f-valprint.c: Reformatting
1991
1992 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
1993
1994         * x86-64-tdep.c: Remove duplicate comment.
1995
1996         * x86-64-tdep.c (x86_64_store_return_value): Don't use
1997         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
1998         names for return values.  This fixes a bug since we looked at %rbx
1999         instead of %rdx.
2000
2001 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
2002
2003         * x86-64-tdep.c: Include "regset.h".
2004
2005         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2006         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2007         sizeof_fpregset.
2008         * i386-tdep.c: Include "regset.h".
2009         (i386_supply_gregset): New function.
2010         (i386_supply_fpregset): New function.
2011         (i386_gdbarch_init): Initialze register set-related members of
2012         TDEP.
2013         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2014         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2015
2016 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2017
2018         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2019         set extract_return_value, store_return_value and
2020         use_struct_convention to ppc64_sysv_abi_extract_return_value,
2021         ppc64_sysv_abi_store_return_value and
2022         ppc64_sysv_abi_use_struct_convention.
2023         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2024         (ppc64_sysv_abi_store_return_value): Declare.
2025         (ppc64_sysv_abi_use_struct_convention): Declare.
2026         * ppc-sysv-tdep.c (enum return_value_convention): Define.
2027         (ppc64_sysv_abi_extract_return_value): New function.
2028         (ppc64_sysv_abi_store_return_value): New function.
2029         (ppc64_sysv_abi_use_struct_convention): New function.
2030         (ppc64_sysv_abi_return_value): New function.
2031
2032 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2033
2034         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2035         convert a descriptor to a function when it's in the ".opd"
2036         section.
2037
2038 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2039
2040         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2041         reg_size to keep GCC silent.
2042
2043 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2044
2045         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2046         base for DW_EH_PE_textrel encodings.
2047         (read_encoded_value): Add a DW_EH_PE_textrel case.
2048         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2049         section.
2050
2051 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
2052
2053         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2054
2055 2003-10-02  Andrew Cagney  <cagney@redhat.com>
2056
2057         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2058         REGISTER_RAW_SIZE.
2059         * gdbarch.h, gdbarch.c: Re-generate.
2060         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2061         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2062         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2063         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2064         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2065         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2066         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2067         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2068         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2069         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2070         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2071         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2072         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2073         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2074         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2075         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2076
2077 2003-10-02  Jim Blandy  <jimb@redhat.com>
2078
2079         * dwarf2read.c (struct die_info): Doc fix.
2080
2081 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2082
2083         * sh-tdep.c: Running thru gdb_indent.sh.
2084
2085 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2086
2087         * sh-tdep.c (sh_justify_value_in_reg): New function.
2088         (sh_stack_allocsize): Ditto.
2089         (flt_argreg_array): New array used for floating point argument
2090         passing.
2091         (sh_init_flt_argreg): New function.
2092         (sh_next_flt_argreg): Ditto.
2093         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2094         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2095         Fix argument passing strategy.
2096         (sh_push_dummy_call_nofpu): Ditto.
2097
2098 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2099
2100         * value.h (register_value_being_returned): Declare.  Replace
2101         "value_being_returned".
2102         * infcall.c (call_function_by_hand): Use
2103         register_value_being_returned.
2104         * infcmd.c (print_return_value): Call
2105         "register_value_being_returned", handle struct return locally.
2106         * values.c (register_value_being_returned): New function.  Replace
2107         "value_being_returned".
2108
2109 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
2110
2111         * linux-proc.c (linux_do_registers): New function.
2112         (linux_make_note_section): Use linux_do_registers in case of
2113         single threaded inferior programs.
2114
2115 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2116
2117         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2118         use STRUCT_ADDR.  When not using "struct return convention", pass
2119         "0" to "value_being_returned".  Add FIXMEs.
2120         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2121         value_being_returned.  Add comments.
2122         * values.c (value_being_returned): Add fixme.
2123         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2124         (hppa_value_returned_from_stack): Add FIXME.
2125
2126 2003-09-30  David Carlton  <carlton@kealia.com>
2127
2128         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2129         'has_children' and 'next' by 'child' and 'sibling'.
2130         (read_comp_unit): Rework algorithm, breaking body into
2131         read_die_and_children and read_die_and_siblings.
2132         (read_die_and_children, read_die_and_siblings): New.
2133         (read_full_die): Add 'has_children' argument; set it instead of
2134         the die's 'has_children' field.  Minor formatting cleanup.
2135         (free_die_list): Use die->child and die->sibling instead of
2136         die->next.
2137         (dump_die_list): Ditto.
2138         (sibling_die): Use die->sibling.
2139         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2140         'has_children' and 'next' fields.
2141         (process_die, read_file_scope, read_func_scope)
2142         (read_lexical_block_scope, read_structure_scope)
2143         (read_enumeration, read_array_type, read_common_block)
2144         (read_namespace, read_subroutine_type, dump_die): Ditto.
2145
2146 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2147
2148         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2149         to 224, not 220.
2150
2151 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2152
2153         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2154         REGISTER_VIRTUAL_SIZE.
2155         * gdbarch.h, gdbarch.c: Regenerate.
2156         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2157         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2158         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2159
2160 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2161
2162         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2163         REGISTER_VIRTUAL_TYPE.
2164         * gdbarch.h, gdbarch.c: Regenerate.
2165         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2166         * sh64-tdep.c, sparc-tdep.c: Update.
2167
2168         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2169         * remote-vxmips.c (vx_read_register): Ditto.
2170         * remote-vx68.c (vx_read_register): Ditto.
2171         * gnu-nat.c (inf_validate_procs): Ditto.
2172
2173 2003-09-29  J. Brobecker  <brobecker@gnat.com>
2174
2175         * infcall.c (call_function_by_hand): Fix build failure
2176         introduced in the previous change to this file.
2177
2178 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2179
2180         * NEWS: Mention Objective-C.
2181
2182 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2183
2184         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2185         test if the register has been saved on the stack.
2186         (arm_scan_prologue_cache): When analysing the instruction
2187         "str lr, [sp, #-4]", save the address where lr has been stored.
2188
2189 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2190
2191         * frame.c (frame_read_unsigned_register): Delete function.
2192         * frame.h (frame_read_unsigned_register): Delete declaration.
2193         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2194         get_frame_register_unsigned.
2195         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2196         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2197         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2198
2199         * frame.h (frame_read_register): Delete declaration.
2200         * frame.c (frame_read_register): Delete function.
2201         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2202         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2203         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2204         * mips-tdep.c (mips_register_to_value): Ditto.
2205         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2206         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2207
2208         * frame.c (frame_read_signed_register): Delete function.
2209         (frame_read_unsigned_register): Update comments.
2210         * frame.h (frame_read_signed_register): Delete declaration.
2211         * h8300-tdep.c (h8300_print_register): Use
2212         get_frame_register_signed.
2213         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2214
2215         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2216         Rename VALUE_RETURNED_FROM_STACK.
2217         * infcmd.c (print_return_value): Update.
2218         * infcall.c (call_function_by_hand): Update.
2219
2220 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2221
2222         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2223         regcache argument and reverse the order of the other two
2224         arguments.  Remove local regcache variable.  Determine
2225         architecture from REGCACHE.  Update comments.
2226         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2227         reverse the order of the other two arguments.  Remove local
2228         regcache variable.  Determine architecture from REGCACHE.  Update
2229         comments.
2230         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2231         prototypes.  Update comments.
2232         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2233         comment.
2234         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2235         Update.
2236         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2237         * i386-interix-nat.c (supply_fpregset): Update.
2238         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2239         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2240         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2241         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2242         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2243         Update.
2244         * i386obsd-tdep.c (fetch_core_registers): Update.
2245         * i386v4-nat.c (supply_fpregset): Update.
2246         * x86-64-linux-nat.c (supply_fpregset): Update.
2247         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2248
2249 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2250
2251         * i386-tdep.h: Put opaque declarations in alphabetical
2252         order.  Remove spurious whitespace.
2253         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2254         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2255         * i386-tdep.c (MM0_REGNUM): Remove define.
2256         (i386_mmx_regnum_p): Add gdbarch argument.
2257         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2258         Rewrite using new macro definitions for FPU/SSE registers.
2259         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2260         definitions from i387-tdep.h.
2261         (i386_register_name): Update.
2262         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2263         new macro definitions for FPU/SSE registers.
2264         (i386_extract_return_value): Determine whether floating-point
2265         registers are present by examining REGCACHE's architecture.
2266         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2267         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2268         FPU/SSE registers.
2269         (i386_register_type): Update.
2270         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2271         definitions for FPU registers.  Use REGCACHE's architecture to
2272         determine the appropriate register numbers.
2273         (i386_pseudo_register_read, i386_pseudo_register_write,
2274         i386_register_reggroup_p): Update.
2275         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2276         TDEP->mm0_regnum.
2277         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2278         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2279         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2280         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2281         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2282         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2283         *' to `void *'.
2284         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2285         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2286         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2287         definitions for FPU/SSE registers.
2288         (FXSAVE_MXCSR_ADDR): New define.
2289         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2290         TDEP->mm0_regnum.
2291         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2292         (I387_ST0_REGNUM): Define.
2293
2294         * regcache.h (get_regcache_arch): New prototype.
2295         * regcache.c (get_regcache_arch): New function.
2296
2297         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2298         whitespace.
2299
2300         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2301         Initialize using ARRAY_SIZE.
2302
2303 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2304
2305         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2306         "init_frame_pc_default".
2307         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2308         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2309         * vax-tdep.c (vax_gdbarch_init): Update.
2310         * v850-tdep.c (v850_gdbarch_init): Update.
2311         * sh64-tdep.c (sh64_gdbarch_init): Update.
2312         * s390-tdep.c (s390_gdbarch_init): Update.
2313         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2314         * mcore-tdep.c (mcore_gdbarch_init): Update.
2315         * h8300-tdep.c (h8300_gdbarch_init): Update.
2316         * cris-tdep.c (cris_gdbarch_init): Update.
2317         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2318
2319 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2320
2321         * regset.h: New file.
2322         * Makefile.in (regset_h): Add.
2323
2324 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2325
2326         * frame.h (deprecated_frame_saved_regs): Rename
2327         get_frame_saved_regs.
2328         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2329         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2330         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2331         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2332         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2333
2334 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2335
2336         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2337         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2338         and Java.
2339         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2340         arm*-*-* do not use the new frame code.
2341
2342 2003-09-25  David Carlton  <carlton@kealia.com>
2343
2344         * c-exp.y: Remove 'register' declarations.
2345         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2346
2347 2003-09-25  David Carlton  <carlton@kealia.com>
2348
2349         * c-exp.y: Include cp-support.h.  Add qualified_type.
2350         (yylex): Delete nested type hack; add comments.
2351         * cp-namespace.c (cp_lookup_nested_type): New function.
2352         * cp-support.h: Declare cp_lookup_nested_type.
2353         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2354         instead of value_struct_elt_for_reference.
2355         * valops.c: Include cp-support.h.
2356         (value_aggregate_elt): New function.
2357         (value_namespace_elt): Ditto.
2358         (value_struct_elt_for_reference): Make static.
2359         * value.h: Delete declaration of value_struct_elt_for_reference;
2360         add declaration for value_aggregate_elt.
2361         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2362         (valops.o): Ditto.
2363
2364 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2365
2366         * stack.c: Include "reggroups.h".
2367         (frame_info): Only display registers in all_reggroup.
2368         * Makefile.in (stack.o): Update dependencies.
2369
2370 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2371
2372         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2373         "add ip, sp #n" in the prologue.
2374         (arm_scan_prologue): Ditto.
2375
2376 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2377
2378         * MAINTAINERS (write after approval): Add myself.
2379
2380 2003-09-25  Andreas Schwab  <schwab@suse.de>
2381
2382         * m68k-tdep.c: Include "dwarf2-frame.h".
2383         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2384         * Makefile.in (m68k-tdep.o): Update dependencies.
2385
2386 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2387
2388         * sh-tdep.c (struct frame_extra_info): Remove.
2389         (struct sh_frame_cache): New structure.
2390         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2391         (GET_TARGET_REG): Ditto but target register.
2392         (GET_PUSHED_REG): Remove.
2393         (IS_MOV_ARG_TO_REG): New macro.
2394         (IS_MOV_ARG_TO_IND_R14): New macro.
2395         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2396         (IS_MOVW_PCREL_TO_REG): New macro.
2397         (IS_MOVL_PCREL_TO_REG): New macro.
2398         (IS_SUB_REG_FROM_SP): New macro.
2399         (IS_ARG_MOV): Remove.
2400         (IS_MOV_TO_R14): Remove.
2401         (IS_RESTORE_FP): New macro.
2402         (IS_RTS): New macro.
2403         (IS_LDS): New macro.
2404         (IS_MOV_FP_SP): New macro.
2405         (IS_ADD_REG_TO_FP): New macro.
2406         (IS_ADD_IMM_FP): New macro.
2407         (sh_skip_prologue_hard_way): Remove.
2408         (sh_saved_pc_after_call): Remove.
2409         (sh_frame_chain): Remove.
2410         (sh_find_callers_reg): Remove.
2411         (sh_nofp_frame_init_saved_regs): Remove.
2412         (sh_fp_frame_init_saved_regs): Remove.
2413         (sh_init_extra_frame_info): Remove.
2414         (sh_analyze_prologue): New function.
2415         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2416         sh_analyze_prologue when after_prologue fails.
2417         (sh_frame_saved_pc): Remove.
2418         (sh_alloc_frame_cache): New function.
2419         (sh_frame_cache): Ditto.
2420         (sh_frame_prev_register): Ditto.
2421         (sh_frame_this_id): Ditto.
2422         (sh_frame_unwind): New structure defining the heuristic frame
2423         sniffer interface.
2424         (sh_frame_sniffer): New function.
2425         (sh_unwind_sp): Ditto.
2426         (sh_unwind_pc): Ditto.
2427         (sh_unwind_dummy_id): Ditto.
2428         (sh_frame_base_address): Ditto.
2429         (sh_frame_base): New structure defining new frame base code.
2430         (sh_in_function_epilogue_p): New function.
2431         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2432         code and to call all new code instead.  Initialize dwarf2 and
2433         heuristic frame sniffer.
2434
2435 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2436
2437         * parser-defs.h (struct exp_descriptor): New definition, containing
2438         language-specific info for printing, prefixifying, dumping, and
2439         evaluating expressions.
2440         (exp_descriptor_standard): Declare new variable.
2441         (print_subexp): Make global and declare here (from expprint.c).
2442         (dump_subexp): Ditto.
2443         (dump_subexp_body_standard): Declare.
2444         (operator_length_standard): Declare.
2445         (op_name_standard): Declare.
2446         (print_subexp): Declare.
2447         (print_subexp_standard): Declare.
2448
2449         * language.h (struct language_defn): Add la_exp_desc field to hold
2450         pointer to table for language-specific operators.
2451         Remove evaluate_exp field, which is now in struct exp_descriptor.
2452
2453         * parse.c (operator_length): Move most code to new
2454         operator_length_standard function.  Use language-specific information.
2455         (operator_length_standard): New function taking most code from
2456         operator_length.
2457         (exp_descriptor_standard): New constant.
2458
2459         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2460         and OP_EXTENDED_LAST.
2461
2462         * expprint.c (print_subexp): Use language-specific print_subexp.
2463         Make global; remove static declaration.
2464         Move most code to print_subexp_standard.
2465         (print_subexp_standard): New function, containing code formerly in
2466         print_subexp.
2467         (op_name): Add expression to argument signature.
2468         Use langauge-specific op_name.
2469         Move most code to op_name_standard.
2470         (op_name_standard): New function, containing code formerly in op_name.
2471         (dump_subexp):  Use new version of op_name function.
2472         Use language-specific dump_subexp_body, and move most existing code to
2473         dump_subexp_body_standard.
2474         (dump_raw_expression): Use new op_name interface.
2475         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2476         (dump_subexp_body_standard): New function, containing code formerly
2477         in dump_subexp_body.
2478
2479         * language.c (unknown_language): Add default la_exp_desc field and
2480         remove evaluate_exp field.
2481         (auto_language): Ditto.
2482         (local_language): Ditto.
2483         * f-lang.c (f_language_defn): Ditto.
2484         * c-lang.c (c_language_defn): Ditto.
2485         (cplus_language_defn): Ditto.
2486         (asm_language_defn): Ditto.
2487         (minimal_language_defn): Ditto.
2488         * p-lang.c (pascal_language_defn): Ditto.
2489         * m2-lang.c (m2_language_defn): Ditto.
2490         * objc-lang.c (objc_language_defn): Ditto.
2491
2492         * jv-lang.c (exp_descriptor_java): New variable, containing
2493         Java-specific expression evaluator.
2494         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2495         field.
2496         * scm-lang.c (exp_descriptor_scm): New variable, containing
2497         Scheme-specific expression evaluator.
2498         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2499         field.
2500         * objc-lang.c (print_object_command): Take evaluate_exp from the
2501         la_exp_desc field.
2502
2503         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2504
2505         * eval.c: Include parser-defs.h for the full declaration of
2506         la_exp_desc's type.
2507         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2508
2509 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2510
2511         * parser-defs.h (operator_length): Declare.
2512
2513         * parse.c (length_of_subexp): Use operator_length to get operator
2514         lengths and arities for operators.
2515         Move most code to new operator_length function.
2516         (operator_length): New function absorbing most code from
2517         length_of_subexp.
2518         (prefixify_subexp): Remove large case and use operator_length instead.
2519         (parse_exp_1): Use renamings:
2520         dump_prefix_expression => dump_raw_expression and
2521         dump_postfix_expression => dump_prefix_expression.
2522
2523         * expression.h (dump_prefix_expression): Rename to ...
2524         (dump_raw_expression): New name.
2525         (dump_postfix_expression): Rename to ...
2526         (dump_prefix_expression): New name.
2527
2528         * expprint.c (dump_subexp): Make global.  Add comment.
2529         Move most existing code to dump_subexp_body.
2530         (dump_subexp_body): New function.
2531         (dump_prefix_expression): Rename to dump_raw_expression.
2532         Remove attempt to print the expression via print_expression: it can't
2533         work before the expression is prefixified.
2534         (dump_raw_expression): Renamed from dump_prefix_expression.
2535         (dump_postfix_expression): Rename to dump_prefix_expression, since
2536         that's what it does.
2537         Remove 'note' parameter, since this routine must be used on
2538         prefixified expression.
2539         (dump_prefix_expression): Renamed from dump_postfix_expression.
2540
2541 2003-09-22  Jim Blandy  <jimb@redhat.com>
2542
2543         * dwarf2read.c (read_array_type): When building the type for an
2544         array of unspecified length, make sure to choose the upper bound
2545         so that the array's total length comes out to be zero --- that's
2546         how we represent such arrays.
2547
2548 2003-09-22  Michael Chastain  <mec@shout.net>
2549
2550         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2551
2552 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2553
2554         * top.c (quit_force): Fix indirect call to quit_target so
2555         a struct qt_args pointer is passed.
2556
2557 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2558
2559         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2560         * arch-utils.c (init_frame_pc_noop): Delete function.
2561         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2562         "init_frame_pc".
2563         * mips-tdep.c (mips_gdbarch_init): Ditto.
2564         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2565         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2566         declaration.
2567         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2568         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2569         declaration.
2570         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2571
2572 2003-09-22  Anthony Green  <green@redhat.com>
2573
2574         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2575         declaration.
2576
2577 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2578
2579         * breakpoint.c: Eliminate ARGSUSED.
2580         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2581         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2582         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2583         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2584         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2585         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2586         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2587         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2588         * wince.c, remote-vx.c: Ditto.
2589
2590         * cli/cli-script.c: Remove "register" attributes.
2591         * config/pa/tm-hppa.h: Ditto.
2592         * cli/cli-decode.c: Ditto.
2593         * cli/cli-cmds.c: Ditto.
2594
2595 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2596
2597         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2598         DEPRECATED_NPC_REGNUM.
2599         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2600
2601 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2602
2603         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2604
2605 2003-09-19  Jim Blandy  <jimb@redhat.com>
2606
2607         * macrotab.c (macro_include): Use the correct comparison to find
2608         the appropriate place for this inclusion in the list.
2609
2610 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2611
2612         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2613         (DEPRECATED_HPUX_TEXT_END): Define.
2614         (deprecated_hpux_text_end): Declare.
2615         (struct target_ops): Declare opaque.
2616         * hppah-nat.c (text_end): Make static.
2617         (deprecated_hpux_text_end): New function.
2618         * exec.c (text_end): Delete global variable.
2619         (NEED_TEXT_START_END): Do not define.
2620         (exec_file_attach): Replace code computing "text_end" code with
2621         call to DEPRECATED_HPUX_TEXT_END.
2622
2623 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2624
2625         * utils.c (align_up, align_down): New functions.
2626         * defs.h (align_up, align_down): Declare.
2627         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2628         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2629         and "align_down".
2630         (round_up, round_down): Delete functions.
2631         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2632         "align_down".
2633         (ROUND_DOWN, ROUND_UP): Delete macros.
2634         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2635         * h8300-tdep.c: Replace "round_up" and "round_down" with
2636         "align_up" and "align_down".
2637         (round_up, round_down): Delete macros.
2638         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2639         "align_down".
2640         (ROUND_UP, ROUND_DOWN): Delete macros.
2641
2642 2003-09-18  J. Brobecker  <brobecker@gnat.com>
2643
2644         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2645         hard-coded constant. Use the proper machine name instead.
2646
2647 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2648
2649         * sparc-tdep.c (legacy_register_name): Delete function.
2650         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2651         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2652         * infcmd.c (gdb_register_name): Delete variable.
2653         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2654         REGISTER_NAME and "tm.h".
2655         * gdbarch.h, gdbarch.c: Regenerate.
2656         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2657         REGISTER_NAMES in comments.
2658         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2659         * m68klinux-nat.c (regmap): Ditto.
2660
2661 2003-09-17  Jim Blandy  <jimb@redhat.com>
2662
2663         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2664
2665 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2666
2667         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2668         (ppcnbsd_init_abi): Set "use_struct_convention" to
2669         "ppcnbsd_use_struct_convention".
2670
2671 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
2672
2673         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2674         * gdbarch.h, gdbarch.c: Regenerate.
2675         (stabs_argument_has_addr): New architecture method.
2676         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2677         * arch-utils.c: Include "buildsym.h".
2678         (default_stabs_argument_has_addr): New function.
2679         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2680         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2681
2682 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2683
2684         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2685         * gdbarch.h, gdbarch.c: Regenerate.
2686         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2687         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2688         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2689         * sparcnbsd-tdep.c: Update.
2690
2691 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2692
2693         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2694         * gdbarch.h, gdbarch.c: Regenerate.
2695         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2696         * d10v-tdep.c, frame.c: Update.
2697         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2698         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2699         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2700         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2701         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2702         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2703         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2704         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2705         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2706         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2707         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2708         * config/pa/nm-hppah.h: Update.
2709
2710 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2711
2712         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2713         "use_struct_convention" to "ppc_linux_use_struct_convention".
2714         (ppc_linux_use_struct_convention): New function.
2715         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2716         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2717         "rs6000_use_struct_convention".
2718         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2719         declaration.
2720         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2721         Delete function.
2722
2723 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2724
2725         * buildsym.c: Remove more occurances of "register".
2726         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2727         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2728         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2729         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2730         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2731         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2732         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2733         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2734
2735 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
2736
2737         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2738         numbers to enumeration values.
2739         * sh-tdep.c: Accomodate above change.
2740         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2741         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2742         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2743         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2744         (IS_FPUSH): Rename from IS_FMOV.
2745         (sh_extract_struct_value_address): Remove useless comment.
2746         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2747         instead of own local values.
2748         (sh_dump_tdep): Remove.
2749         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2750         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2751
2752 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2753
2754         * doublest.c (convert_floatformat_to_doublest): No longer need to
2755         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2756
2757 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2758
2759         * values.c (unpack_double): Call floatformat_is_valid.
2760
2761 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
2762
2763         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2764         ps_strings into a long.
2765
2766         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2767         _initialize_am64fbsd_nat.
2768
2769 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
2770
2771         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2772         associated with DW_AT_ranges attribute is out of bounds.
2773
2774 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
2775
2776         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2777
2778 2003-09-14  Michael Chastain  <mec@shout.net>
2779
2780         * config/m68k/nm-apollo68v.h: Delete.
2781         * config/m68k/xm-apollo68v.h: Delete.
2782
2783 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2784
2785         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2786         * dcache.c: Update copyrights and descriptions.
2787         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2788
2789 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2790
2791         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2792         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2793
2794 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2795
2796         * alpha-nat.c: Remove some occurances of "register".
2797         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2798         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2799         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2800         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2801         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2802         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2803         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2804         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2805         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2806         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2807         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2808         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2809         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2810         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2811         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2812         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2813         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2814         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2815         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2816         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2817         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2818         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2819
2820 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2821
2822         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2823         * ppc-tdep.h (struct regcache): Declare opaque.
2824         * objfiles.h (struct objfile_data): Declare opaque.
2825         * cp-support.h (struct objfile): Declare opaque.
2826         * linux-nat.h (target_waitstatus): Declare opaque.
2827
2828 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
2829
2830         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2831         (stabs_argument_has_addr): New architecture method.
2832         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2833         * arch-utils.c: Include "buildsym.h".
2834         (default_stabs_argument_has_addr): New function.
2835         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2836         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2837
2838         * cris-tdep.c (cris_gdbarch_init): Set
2839         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2840         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2841         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2842         * mips-tdep.c (mips_gdbarch_init): Likewise.
2843         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2844         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2845
2846 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2847
2848         * values.c (using_struct_return): Delete "function" and "funcaddr"
2849         parameters.
2850         * value.h (using_struct_return): Update declaration.
2851         * infcmd.c (finish_command_continuation): Update.
2852         (finish_command): Update.
2853         * infcall.c (call_function_by_hand): Update.
2854         * eval.c (evaluate_subexp_standard): Update.
2855
2856 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2857
2858         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2859         SSE registers since gdb will not operate correctly without this.
2860         Restore include file ordering munged in previous change.
2861         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2862
2863 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
2864
2865         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2866         REG_STRUCT_HAS_ADDR.
2867         * gdbarch.c, gdbarch.h: Updated.
2868         * infcall.c (call_function_by_hand): Update.
2869         * stabsread.c (define_symbol): Updated.
2870
2871         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2872
2873 2003-09-12  Christopher Faylor  <cgf@redhat.com>
2874
2875         * win32-nat.c: Reorganize so that defines used by target headers are
2876         actually defined by the system headers.
2877         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2878         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2879
2880 2003-09-12  Jim Blandy  <jimb@redhat.com>
2881
2882         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2883         the file has no .data, .bss, or .rodata sections.  Instead wait
2884         until we see a variable alleged to live in one of those sections.
2885
2886         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2887         .bss section, presume that any variables we find live in the
2888         .rodata section.
2889
2890         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2891         offsets for global and static variables.
2892
2893         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2894         symbol types are, by definition, in the .data section, so it is
2895         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2896         If there is no .data section, there should be no N_DATA or N_DATA
2897         | N_EXT symbols.
2898
2899 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
2900
2901         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2902         (amd64fbsd_sigcontext_addr): Rewrite.
2903         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2904         with correct values.
2905         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2906         (amd64fbsd_init_abi): Fix typo.
2907
2908 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2909
2910         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2911         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2912
2913 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2914
2915         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2916         "entry_file_highpc".  Update comments.
2917         * defs.h (deprecated_inside_entry_file): Rename
2918         "inside_entry_file".
2919         * blockframe.c (deprecated_inside_entry_file): Rename
2920         "inside_entry_file".
2921         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2922         * vax-tdep.c (vax_frame_chain): Update.
2923         * sh64-tdep.c (sh64_frame_chain): Update.
2924         * sh-tdep.c (sh_frame_chain): Update.
2925         * rs6000-tdep.c (rs6000_frame_chain): Update.
2926         * ns32k-tdep.c (ns32k_frame_chain): Update.
2927         * mips-tdep.c (mips_frame_chain): Update.
2928         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2929         * m32r-tdep.c (m32r_frame_this_id): Update.
2930         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2931         * frv-tdep.c (frv_frame_this_id): Update.
2932         * d10v-tdep.c (d10v_frame_this_id): Update.
2933         * cris-tdep.c (cris_frame_chain): Update.
2934         * blockframe.c (legacy_frame_chain_valid): Update.
2935         * avr-tdep.c (avr_frame_this_id): Update.
2936         * arm-tdep.c (arm_prologue_this_id): Update.
2937         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2938         * objfiles.c (objfile_relocate): Update.
2939         * mipsread.c (mipscoff_symfile_read): Update.
2940         (mipscoff_symfile_read): Update.
2941         * mdebugread.c (parse_partial_symbols): Update.
2942         * dwarfread.c (read_file_scope): Update.
2943         * dwarf2read.c (read_file_scope): Update.
2944         * dbxread.c (read_dbx_symtab): Update.
2945         (read_dbx_symtab): Update.
2946         * coffread.c (complete_symtab): Update.
2947
2948 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
2949
2950         * top.c (quit_target): New static helper function.
2951         (quit_force): Moved code to quit_target().  Call quit_target()
2952         via catch_errors() to catch errors during quit.
2953
2954 2003-09-11  David Carlton  <carlton@kealia.com>
2955
2956         * buildsym.c (finish_block): Use allocate_block to allocate the
2957         block.
2958         * mdebugread.c (new_block): Add FIXME.
2959
2960 2003-09-11  David Carlton  <carlton@kealia.com>
2961
2962         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2963         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2964         (recursive_dump_type): Ditto.
2965         * printcmd.c (print_formatted): Ditto.
2966         * typeprint.c (print_type_scalar): Ditto.
2967         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2968         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2969         * cp-support.h: Declare cp_check_possible_namespace_symbols,
2970         maint_cplus_cmd_list.
2971         * cp-support.c: Make maint_cplus_cmd_list extern.
2972         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2973         command.h.
2974         (lookup_symbol_file): Look in possible namespace blocks when
2975         appropriate.
2976         (initialize_namespace_symtab): New.
2977         (get_possible_namespace_block, free_namespace_block)
2978         (check_possible_namespace_symbols)
2979         (check_possible_namespace_symbols_loop)
2980         (check_one_possible_namespace_symbol)
2981         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2982         (_initialize_cp_namespace): Ditto.
2983         * block.h: Declare allocate_block.
2984         * block.c (allocate_block): New.
2985         * jv-lang.c (get_java_class_symtab): Allocate blocks via
2986         allocate_block.
2987         * symfile.h: Update declaration of add_psymbol_to_list.
2988         * symfile.c (add_psymbol_to_list): Return the partial symbol in
2989         question.
2990         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2991         scan_partial_symbols_call.
2992         (scan_partial_symbols): Add NAMESPACE argument; update calls to
2993         helper functions.
2994         (add_partial_symbol): If necessary, scan mangled names for names
2995         of namespaces.
2996         (add_partial_namespace): Add NAMESPACE argument; generate partial
2997         symbols associated  to namespaces.
2998         (add_partial_enumeration): Add NAMESPACE argument.
2999         (new_symbol): Allow namespace syms.
3000         (read_namespace): Generate namespace syms.
3001         * objfiles.h: Add opaque declaration of struct symtab.
3002         (struct objfile): Add cp_namespace_symtab member.
3003         * objfiles.c (allocate_objfile): Set
3004         objfile->cp_namespace_symtab.
3005         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3006         dictionary_h, command_h.
3007
3008 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3009
3010         * rs6000-tdep.c (rs6000_push_dummy_call): Use
3011         regcache_raw_write_signed to set SP_REGNUM, move the operation to
3012         near the function's end.
3013         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3014         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3015         regcache_raw_write_signed to set SP_REGNUM.
3016
3017 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
3018
3019         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3020         orig_addrs is set up properly.
3021
3022 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3023
3024         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3025         * gdbarch.h, gdbarch.c: Re-generate.
3026         * infcall.c (call_function_by_hand): Update.
3027         * hppa-tdep.c (hppa_push_arguments): Update.
3028         * ada-lang.c (place_on_stack): Update.
3029         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3030         * sparc-tdep.c (sparc_gdbarch_init): Update.
3031         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3032         * hppa-tdep.c (hppa_gdbarch_init): Update.
3033         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3034         stack_align.
3035
3036 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
3037
3038         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3039         register do need a frame.
3040
3041 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3042
3043         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3044         buildable since GDB 5.0.
3045         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3046         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3047         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3048         * irix4-nat.c: Delete file.
3049         * config/mips/irix4.mh: Delete file.
3050         * config/mips/irix3.mh: Delete file.
3051         * config/mips/irix3.mt: Delete file.
3052         * config/mips/tm-irix3.h: Delete file.
3053         * config/mips/nm-irix3.h: Delete file.
3054         * config/mips/xm-irix3.h: Delete file.
3055         * config/mips/nm-irix4.h: Delete file.
3056         * config/mips/xm-irix4.h: Delete file.
3057         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3058
3059 2003-09-10  J. Brobecker  <brobecker@gnat.com>
3060
3061         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3062         * Makefile.in (hppa-tdep.o): Update dependencies.
3063
3064 2003-09-10  James E Wilson  <wilson@specifixinc.com>
3065
3066         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3067         section.
3068
3069 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3070
3071         * MAINTAINERS (frv): New ISA entry.
3072
3073 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3074
3075         * frv-tdep.c (dis-asm.h): Include.
3076         * Makefile.in (frv-tdep.o): Update dependencies.
3077
3078 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3079
3080         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3081         Fix typo for high range of floating registers.
3082
3083 2003-09-09  David Carlton  <carlton@kealia.com>
3084
3085         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3086         highpc initialization here out of scan_partial_symbols.
3087         (scan_partial_symbols): Restructure into a recursive version,
3088         calling add_partial_namespace and add_partial_enumeration when
3089         appropriate.
3090         (add_partial_namespace): New.
3091         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3092
3093 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3094
3095         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3096         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3097         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3098         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3099
3100         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3101         (rs6000_push_dummy_call): Set the "TOC" register.
3102
3103         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3104         methods "max_register_raw_size", "max_register_virtual_size" or
3105         "register_virtual_size".
3106
3107 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
3108
3109         * MAINTAINERS: Update my e-mail address.
3110
3111 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3112
3113         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3114         (rs6000_push_dummy_call): Store the struct return address.
3115         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3116
3117 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3118
3119         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3120         "ppc_sysv_abi_push_arguments".
3121         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3122         "ppc_sysv_abi_push_arguments".
3123         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3124         instead of "push_arguments".
3125         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3126
3127 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3128
3129         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3130         instead of CALL_DUMMY_ADDRESS.
3131
3132 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
3133
3134         * p-lang.c: Eliminate "register".
3135         * c-lang.c: Ditto.
3136         * expprint.c: Ditto.
3137         * f-lang.c: Ditto.
3138         * jv-lang.c: Ditto.
3139         * language.c: Ditto.
3140         * m2-lang.c: Ditto.
3141         * parse.c: Ditto.
3142         * scm-lang.c: Ditto.
3143         * objc-lang.c: Ditto.
3144
3145 2003-09-09  Nick Clifton  <nickc@redhat.com>
3146
3147         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3148
3149 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3150
3151         * avr-tdep.c: Include "dis-asm.h".
3152         * cris-tdep.c: Include "dis-asm.h".
3153         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3154         instead of corresponding typedef.
3155         * h8300-tdep.c: Include "dis-asm.h".
3156         * ia64-tdep.c: Include "dis-asm.h".
3157         * i386-tdep.c: Include "dis-asm.h".
3158         (i386_print_insn): Use "struct disassemble_info" instead of
3159         corresponding typedef.
3160         * m68k-tdep.c: Include "dis-asm.h".
3161         * mcore-tdep.c: Include "dis-asm.h".
3162         * mips-tdep.c: Include "dis-asm.h".
3163         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3164         instead of corresponding typedef.
3165         * ns32k-tdep.c: Include "dis-asm.h".
3166         * s390-tdep.c: Include "dis-asm.h".
3167         * sparc-tdep.c: Include "dis-asm.h".
3168         * vax-tdep.c: Include "dis-asm.h".
3169         * v850-tdep.c: Include "dis-asm.h".
3170         * mn10300-tdep.c: Include "dis-asm.h".
3171         * rs6000-tdep.c: Include "dis-asm.h".
3172         * xstormy16-tdep.c: Include "dis-asm.h".
3173         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3174         print_insn_xstormy16.
3175         * Makefile.in (v850-tdep.o): Update dependencies.
3176         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3177         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3178         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3179         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3180         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3181         (gdbarch_h): Remove $(dis_asm_h).
3182         * disasm.c: Include "dis-asm.h".
3183         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3184         corresponding typedef.
3185         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3186         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3187         * gdbarch.sh: Do not include "dis-asm.h".
3188         (struct disassemble_info): Declare opaque.
3189         (TARGET_PRINT_INSN): Update declaration.
3190         * gdbarch.h, gdbarch.c: Re-generate.
3191
3192 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3193
3194         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3195         CALL_DUMMY_ADDRESS, change to a predicate.
3196         * gdbarch.h, gdbarch.c: Re-generate.
3197         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3198         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3199         * infcall.c (call_function_by_hand): Ditto.
3200         * sparc-tdep.c (sparc_push_return_address): Ditto.
3201         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3202         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3203         CALL_DUMMY_ADDRESS with entry_point_address.
3204         * v850-tdep.c (v850_push_return_address): Ditto.
3205         * s390-tdep.c (s390_push_return_address): Ditto.
3206         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3207         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3208         * mcore-tdep.c (mcore_push_return_address): Ditto.
3209         * cris-tdep.c (cris_push_return_address): Ditto.
3210         * arm-tdep.c (arm_push_return_address): Ditto.
3211
3212 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3213
3214         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3215         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3216         and REG_UNMODIFIED to REG_SAME_VALUE.
3217         (execute_cfa_program): Update.
3218         (dwarf2_frame_cache): Update.  Initialize table to
3219         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3220         location.
3221         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3222
3223 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3224
3225         * gnu-nat.c: Remove "inline" function attribute.
3226         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3227
3228 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3229
3230         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3231         target.
3232
3233 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3234
3235         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3236         (frame_extra_info): Rename this struct to frv_unwind_cache.
3237         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3238         Add fields ``prev_sp'' and ``base''.
3239         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3240         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3241         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3242         Delete.
3243         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3244         Revise all callers.  Fill in the unwind cache argument and make
3245         other adjustments to account for new frame mechanisms.
3246         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3247         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3248         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3249         (frv_frame_unwind, frv_frame_base): New structs.
3250         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3251         additional arguments expected by this method and adjust function
3252         body accordingly.
3253         (frv_gdbarch_init): Remove calls to the following functions:
3254         set_gdbarch_deprecated_init_frame_pc(),
3255         set_gdbarch_deprecated_saved_pc_after_call(),
3256         set_gdbarch_deprecated_frame_chain(),
3257         set_gdbarch_deprecated_frame_saved_pc(),
3258         set_gdbarch_deprecated_frame_init_saved_regs(),
3259         set_gdbarch_deprecated_push_arguments(),
3260         set_gdbarch_deprecated_push_return_address(),
3261         set_gdbarch_deprecated_pop_frame(),
3262         set_gdbarch_deprecated_call_dummy_words(),
3263         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3264         set_gdbarch_deprecated_init_extra_frame_info(),
3265         set_gdbarch_deprecated_dummy_write_sp(), and
3266         set_gdbarch_deprecated_pc_in_call_dummy().
3267         Add calls to the following functions:
3268         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3269         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3270         frame_base_set_default().
3271         * Makefile.in (frv-tdep.o): Update dependencies.
3272
3273 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3274
3275         * dwarf2-frame.c (read_encoded_value): Add support for
3276         DW_EH_PE_aligned encoding.
3277
3278 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3279
3280         * infrun.c (normal_stop): Don't print a message if the inferior
3281         has exited.
3282
3283 2003-09-08  Jim Blandy  <jimb@redhat.com>
3284
3285         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3286         * dbxread.c: #include "gdb_assert.h".
3287         (read_dbx_symtab): If the objfile has no .data section, use the
3288         section index for the .bss section instead.
3289
3290 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3291
3292         * frame.c (deprecated_safe_get_selected_frame): New function.
3293         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3294         * findvar.c (read_var_value): Call it.
3295
3296 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3297
3298         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3299         (sh64-tdep.o): Add dependencies.
3300         * configure.tgt: Add FIXME to sh-*-linux*.
3301         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3302         (sh_gdbarch_init): Always set correct sh_show_regs function
3303         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3304         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3305         * sh64-tdep.c: New file, containing all sh64 related code from
3306         sh-tdep.c.
3307         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3308         * config/sh/linux.mt (TDEPFILES): Ditto.
3309         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3310         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3311         * config/sh/wince.mt (TDEPFILES): Ditto.
3312
3313 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3314
3315         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3316         (stop_wait_callback): Handle !lp->signalled also.
3317         (lin_lwp_has_pending, flush_callback): New functions.
3318         (lin_lwp_wait): Call flush_callback.
3319         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3320         (linux_proc_pending_signals): New function.
3321         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3322
3323 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3324
3325         From Nick Kelsey <nickk@ubicom.com>:
3326         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3327         when the stop PC is at the beginning of a function also.
3328
3329 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3330
3331         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3332         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3333
3334 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3335
3336         * sol-thread.c: Include "gdb_string.h".
3337
3338 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3339
3340         * gcore.c: Reorder include files in alphabetical order.  Include
3341         "gdb_assert.h".  Various coding style fixes.
3342         (derive_stack_segment, derive_heap_segment): Replace check for
3343         non-null BOTTOM and TOP with gdb_assert.
3344         (derive_heap_segment): Replace check for successful creation of
3345         ZERO with gdb_assert.
3346         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3347
3348 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3349
3350         * thread-db.c (verbose_dlsym): New function.
3351         (thread_db_load): Use verbose_dlsym
3352         (thread_db_new_objfile): Print that libthread_db was loaded, and
3353         that thread debugging was enabled.
3354
3355 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3356
3357         * configure.tgt: Add "mips64*-*-*" target.  Delete
3358         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3359         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3360         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3361         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3362         mips*-sony-*, and mips64*-*-elf* targets.
3363         * config/mips/embedl.mt: Delete file.
3364         * config/mips/embedl64.mt: Delete file.
3365         * config/mips/mips.mt: Delete file.
3366         * config/mips/mips64.mt: Delete file.
3367         * config/mips/tm-embed.h: Delete file.
3368         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3369         * config/mips/embed64.mt: Delete out-of-date comment.
3370
3371 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3372
3373         * hppa-tdep.c (hppa_gdbarch_init): Set
3374         "have_nonsteppable_watchpoint".
3375         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3376         * mips-tdep.c (mips_dump_tdep): Do not print
3377         HAVE_NONSTEPPABLE_WATCHPOINT.
3378         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3379         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3380         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3381         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3382
3383 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3384
3385         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3386         unused code.  Add comment.
3387
3388 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3389
3390         * breakpoint.c (watchpoint_check): Check for pc being in an
3391         epilogue if watchpoint frame couldn't be found.
3392
3393 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3394
3395         * Makefile.in: Re-generate all dependencies.
3396
3397 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3398
3399         * arch-utils.h (legacy_print_insn): Delete declaration.
3400         * arch-utils.c (legacy_print_insn): Delete function.
3401         * disasm.c (deprecated_tm_print_insn_info): Delete.
3402         (_initialize_disasm): Delete function, contained code initializing
3403         deprecated_tm_print_insn_info.
3404         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3405         (deprecated_tm_print_insn_info): Delete.
3406         (TARGET_PRINT_INSN): Do not provide a default.
3407         * gdbarch.h, gdbarch.c: Re-generate.
3408
3409 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3410
3411         * disasm.c (fprintf_disasm): New function.
3412         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3413         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3414         reverts 2003-08-14 change.
3415         (_initialize_disasm): Call "init_disassemble_info", instead of
3416         INIT_DISASSEMBLE_INFO_NO_ARCH.
3417
3418 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3419
3420         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3421
3422 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3423
3424         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3425         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3426         * symfile.c (syms_from_objfile): Update.
3427         (reread_symbols): `Update
3428         * exec.c (exec_file_attach): Update.
3429         (exec_file_attach): Update.
3430         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3431         2003-08-29 change.
3432         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3433
3434 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3435
3436         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3437         trad-frame.h.
3438         (arm_get_cache): Delete macro.
3439         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3440         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3441         to prev_sp.
3442         (thumb_scan_prologue): Update for cache changes.  Don't call
3443         DEPRECATED_PC_IN_CALL_DUMMY.
3444         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3445         argument and use it in desperation search for our prologue.  Do not
3446         search past the specified PC.
3447         (arm_make_prologue_cache): Simplify.
3448
3449         (arm_prologue_this_id, arm_prologue_prev_register)
3450         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3451         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3452         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3453         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3454         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3455
3456         (arm_frame_chain_valid, arm_find_callers_reg)
3457         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3458         (arm_pop_frame): Delete obsolete methods.
3459         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3460
3461         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3462         and sigtramp unwinders.  Set the default frame base method.
3463
3464         * Makefile.in (arm-tdep.o): Update dependencies.
3465         * varobj.c (find_frame_addr_in_frame_chain): Call
3466         get_frame_base_address.
3467         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3468
3469 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3470
3471         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3472         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3473         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3474         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3475         Take NEXT_FRAME and CACHE arguments.  Call
3476         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3477         Set unwound_pc in CACHE instead of modifying the frame argument.
3478         Don't bother checking the frame type when looking for sigtramp
3479         frames.
3480         (arm_make_prologue_cache, arm_frame_chain)
3481         (arm_init_extra_frame_info): New functions.
3482
3483 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3484
3485         * arm-tdep.c (arm_get_cache): Define.
3486         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3487         unwound_sp, unwound_pc, and saved_regs.
3488         (thumb_scan_prologue): Take a cache instead of the frame.
3489         (arm_scan_prologue): Likewise.
3490         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3491         instead of a temporary frame.
3492         (arm_init_extra_frame_info): Allocate and use a cache.
3493         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3494
3495 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3496
3497         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3498         * config/mips/wince.mt (TM_CLIBS): Ditto.
3499         * config/sh/wince.mt (TM_CLIBS): Ditto.
3500         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3501         * config/sparc/sp64.mt (CC): Delete.
3502
3503 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3504
3505         * defs.h: Do not include "arch-utils.h".
3506         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3507         GDB_MULTI_ARCH_PURE.
3508         * configure.in (GDB_MULTI_ARCH): Do not define.
3509         * configure, config.in: Regenerate.
3510         * configure.tgt: Do not set variable "gdb_multi_arch".
3511         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3512         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3513         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3514         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3515         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3516         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3517         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3518         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3519         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3520         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3521         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3522         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3523         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3524         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3525         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3526         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3527         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3528         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3529
3530 2003-08-30  Michael Chastain  <mec@shout.net>
3531
3532         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3533         * config/m68k/nm-hp300hpux.h: Delete.
3534         * config/m68k/tm-hp300hpux.h: Delete.
3535         * config/m68k/xm-hp300hpux.h: Delete.
3536         * config/m68k/xm-hp300bsd.h: Delete.
3537         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3538         tm-hp300hpux.h, xm-hp300hpux.h.
3539         * somsolib.c: Remove comment about hp300 shared libraries.
3540
3541 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
3542
3543         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3544         Only define PTRACE_GET_THREAD_AREA is not already defined.
3545         Various style fixes in code and comments and some additional
3546         spelling fixes in comments.  Move after functions dealing with
3547         debug registers.
3548         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3549         Fix coding-style.
3550
3551         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3552         frame_unwind_register_unsigned instead of
3553         frame_unwind_unsigned_register.
3554
3555 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
3556
3557         * configure.in: Search for gethostbyname in libnsl.
3558         * configure: Regenerated.
3559
3560 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3561
3562         * configure.in: Remove redundant AC_MSG_RESULT in check for
3563         uintptr_t in stdint.h.
3564         * configure: Regenerated.
3565
3566         * amd64-nat.h (struct regcache): Add opaque declaration.
3567
3568         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3569         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3570         Change "register array" to "register cache" in comments.
3571         (x86_64_linux_gregset64_reg_offset): New variable.
3572         (GETREGS_SUPPLIES): Remove macro.
3573         (supply_gregset): Call amd64_supply_native_gregset instead of
3574         x86_64_linux_supply_gregset.
3575         (fill_gregset): Rename `regno' to `regnum'.  Call
3576         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3577         (store_regs): Rename `regno' to `regnum'.
3578         (store_fpregs): Rename `regno' to `regnum'.
3579         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3580         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3581         Reorganize function a bit.
3582         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3583         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3584         Reorganize function a bit.
3585         (_initialize_x86_64_linux_nat): New function.
3586         * config/i386/x86-64linux.mh.
3587
3588 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3589
3590         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3591         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3592         (target_remove_watchpoint): Delete macro.
3593         (target_insert_watchpoint): Delete macro.
3594         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3595         (remote_mips_stopped_by_watchpoint): Delete declaration.
3596         (remote_mips_remove_watchpoint): Delete declaration.
3597         (remote_mips_set_watchpoint): Delete declaration.
3598         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3599         * remote-mips.c (_initialize_remote_mips): Set
3600         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3601         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3602         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3603         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3604         (mips_stopped_by_watchpoint): Rename
3605         remote_mips_stopped_by_watchpoint.
3606         (mips_can_hardware_watchpoint): Rename
3607         remote_mips_can_use_hardware_watchpoint, update function
3608         signature.
3609
3610 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3611
3612         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3613         USER_DS.  We haven't given them a register number yet.
3614
3615         * amd64-nat.h: New file.
3616         * amd64-nat.c: New file.
3617         * amd64fbsd-nat.c: Include "amd64-nat.h".
3618         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3619         (amd64fbsd32_r_reg_offset): New variable.
3620         (supply_gregset): Simply call amd64_supply_native_gregset.
3621         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3622         amd64_collect_native_gregset.
3623         (fill_fpregset): Rename `regno' to `regnum'.
3624         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3625         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3626         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3627         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3628         supply_gregset.  Call x86_64_supply_fxsave instead of
3629         supply_fpregset.
3630         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3631         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3632         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3633         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3634         fill_gregset.  Call x86_64_collect_fxsave instead of
3635         fill_fpregset.
3636         (_initialize_am64fbsd_nat): Initialize
3637         amd64_native_gregset32_reg_offset and
3638         amd64_native_gregset64_reg_offset.
3639         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3640
3641         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3642         null pointer.  Fix typo in comment.
3643
3644         * regcache.c (supply_register): Reimplement to call
3645         regcache_raw_supply.
3646         (regcache_collect): Reimplement by calling regcache_raw_collect.
3647
3648 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
3649
3650         * regcache.c (register_buffer): Consitify first argument.
3651         (regcache_raw_supply, regcache_raw_collect): New
3652         functions.
3653
3654 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3655
3656         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3657         by Nathan J. Williams.
3658
3659 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3660
3661         * lin-lwp.c (wait_lwp): New function, copied from
3662         stop_wait_callback.  Clean up.
3663         (stop_wait_callback): Use wait_lwp.
3664
3665 2003-08-28  Andrew Cagney  <cagney@redhat.com>
3666
3667         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3668         flavour and disassembler options.
3669         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3670         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3671         deprecated_tm_print_insn_info.
3672
3673 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3674
3675         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3676         Use target_read_memory.
3677         (s390_get_frame_info): Update.  Do not reference
3678         deprecated_tm_print_insn_info.
3679         (s390_check_function_end, s390_is_sigreturn): Ditto.
3680
3681 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3682
3683         * Makefile.in (cris-tdep.o): Update dependencies.
3684         * cris-tdep.c: Include "gdb_assert.h".
3685         (cris_gdbarch_init): Set print_insn.
3686         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3687         (cris_delayed_get_disassembler): Simplify, directly call the
3688         disassembler returned by cris_get_disassembler.
3689         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3690         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3691         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3692         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3693         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3694         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3695         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3696         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3697         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3698         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3699         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3700         (gdb_print_insn_sparc): Delete function.
3701         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3702         deprecated_tm_print_insn_info.
3703         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3704         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3705         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3706         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3707         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3708         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3709         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3710         (s390_gdbarch_init): Set print_insn.
3711
3712 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3713
3714         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3715         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3716         * infcall.c (call_function_by_hand): Convert the entry point
3717         address into a code address.
3718
3719 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3720
3721         * dsrec.c: Include "gdb_string.h".
3722         * Makefile.in (dsrec.o): Update dependencies.
3723
3724 2003-08-27  Michael Chastain  <mec@shout.net>
3725
3726         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3727
3728 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3729
3730         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3731         (alpha_osf1_init_abi): Do not set call_dummy_address.
3732
3733 2003-08-27  David Carlton  <carlton@kealia.com>
3734
3735         From Randolph Chung  <tausq@debian.org>:
3736         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3737         compiles with -Wformat-nonliteral -Werror.
3738
3739 2003-08-26  Jim Blandy  <jimb@redhat.com>
3740
3741         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3742         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3743         bfd_lookup_symbol, since we only want symbols in code sections.
3744         (look_for_base): Pass zero as the SECT_FLAGS argument to
3745         bfd_lookup_symbol, since we're not concerned about which section
3746         the symbol is in.
3747
3748 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3749
3750         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3751         we are frameless or the return address register is already known.
3752
3753 2003-08-26  Andrew Cagney  <cagney@redhat.com>
3754
3755         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3756         in size.  Add comments.
3757
3758 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3759
3760         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3761         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3762
3763 2003-08-26  Jason Merrill  <jason@redhat.com>
3764
3765         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3766         case out of #ifdef MIPS block.
3767
3768 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
3769
3770         PR java/1322
3771         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3772         available before calling SECT_OFF_TEXT.
3773         * PROBLEMS: Remove description of java/1322.
3774
3775 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
3776
3777         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3778         bof, and nat0-nat127 as pseudo-registers.
3779         (ia64_frame_cache): New struct used to cache frame info.
3780         (ia64_register_reggroup_p): New routine used to override default
3781         register grouping so registers without names are still saved and
3782         restored.
3783         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3784         pseudo values.
3785         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3786         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3787         (ia64_alloc_frame_cache): New routine to create a new
3788         ia64_frame_cache.
3789         (examine_prologue): Change prototype to add next_frame pointer.
3790         Assume frameless until otherwise proven.  Verify that the cfm for
3791         current frame matches the cfm that should occur for the prologues
3792         alloc insn and if equal, mark as not frameless.  At end of routine,
3793         if not frameless, calculate registers for the previous frame and store
3794         in the cache, if a cache is provided.
3795         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3796         and pass 0 for next_frame.
3797         (ia64_store_return_value): Change to use convert_typed_floating()
3798         instead of calling ia64_convert_to_raw().
3799         (ia64_extract_return_value): Change to use convert_typed_floating()
3800         instead of calling ia64_convert_to_virtual().
3801         (ia64_frame_cache): New routine to support new frame model.
3802         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3803         (ia64_frame_sniffer): Ditto.
3804         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3805         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3806         (ia64_sigtramp_frame_prev_register): Ditto.
3807         (ia64_sigtramp_frame_sniffer): Ditto.
3808         (ia64_frame_base_address): Ditto.
3809         (ia64_extract_struct_value_address): Change to issue error message.
3810         (ia64_frame_align): New routine to align sp.
3811         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3812         (ia64_push_arguments): Removed.  Logic moved to
3813         ia64_push_dummy_call().
3814         (ia64_push_return_address): Ditto.
3815         (ia64_unwind_dummy_id): New function.
3816         (ia64_unwind_pc): Ditto.
3817         (ia64_convert_register_p): Ditto.
3818         (ia64_register_to_value): Ditto.
3819         (ia64_value_to_register): Ditto.
3820         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3821         (ia64_register_byte, ia64_register_raw_size): Ditto.
3822         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3823         (ia64_saved_pc_after_call): Ditto.
3824         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3825         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3826         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3827         (ia64_register_convert_to_raw): Ditto.
3828         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3829         (ia64_init_extra_frame_info): Ditto.
3830         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3831         (ia64_gdbarch_init): Remove registering of deprecated functions that
3832         are no longer used.  Add registration of new gdbarch functions.
3833         Remove registering deprecated_write_sp.  Replace
3834         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3835         Delete set_gdbarch_deprecated_register_convertible(),
3836         set_gdbarch_deprecated_register_convert_to_virtual(), and
3837         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3838         set_gdbarch_deprecated_register_size(),
3839         set_gdbarch_deprecated_register_bytes(),
3840         set_gdbarch_pcregnum(),
3841         set_gdbarch_deprecated_register_byte(),
3842         set_gdbarch_deprecated_register_raw_size(),
3843         set_gdbarch_deprecated_max_register_raw_size(),
3844         set_gdbarch_deprecated_register_virtual_size(),
3845         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3846         Replace set_gdbarch_deprecated_extract_return_value() with
3847         set_gdbarch_extract_return_value().  Remove calls to:
3848         set_gdbarch_deprecated_saved_pc_after_call();
3849         set_gdbarch_deprecated_frame_chain(),
3850         set_gdbarch_deprecated_frame_saved_pc(),
3851         set_gdbarch_deprecated_frame_init_saved_regs(),
3852         set_gdbarch_deprecated_get_saved_register(),
3853         set_gdbarch_deprecated_call_dummy_words(),
3854         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3855         set_gdbarch_deprecated_init_extra_frame_info(),
3856         set_gdbarch_deprecated_frame_args_address(),
3857         set_gdbarch_deprecated_frame_locals_address(),
3858         and set_gdbarch_deprecated_dummy_write_sp().
3859         Add set_gdbarch_convert_register_p(),
3860         set_gdbarch_register_to_value(),
3861         set_gdbarch_value_to_register(),
3862         set_gdbarch_push_dummy_call(),
3863         set_gdbarch_frame_align(),
3864         set_gdbarch_unwind_dummy_id(),
3865         set_gdbarch_unwind_pc(),
3866         frame_unwind_append_sniffer(),
3867         frame_unwind_append_sniffer(),
3868         and frame_base_set_default().
3869
3870 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
3871
3872         * configure.tgt: Document need for special "mipsisa64" handling.
3873         (mipsisa64*-*-linux64): Handle as target linux64.
3874         (mipsisa64*-*-*): Handle as target embed64.
3875
3876 2003-08-18  Michael Chastain  <mec@shout.net>
3877
3878         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3879         objfile bug.
3880
3881 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
3882
3883         * i387-tdep.h: Update copyright date.
3884         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3885
3886         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3887         CFLAGS games to reflect reality.
3888
3889 2003-08-24  Andrew Cagney  <cagney@redhat.com>
3890
3891         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3892         GDB_MULTI_ARCH is always non-zero.
3893         * osabi.c (_initialize_gdb_osabi): Ditto.
3894         (gdbarch_init_osabi): Ditto.
3895         * sparc-tdep.c: Ditto for #if code.
3896
3897 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3898
3899         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3900         Update comments.
3901         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3902         comments.
3903         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3904         x86_64_supply_fxsave.
3905         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3906         x86_64_supply_fxsave.
3907         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3908         x86_64_supply_fxsave.
3909
3910 2003-08-23  Andreas Jaeger  <aj@suse.de>
3911
3912         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3913         i387_supply_fxsave.
3914
3915 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3916
3917         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3918         i387_supply_register.
3919         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3920         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3921         i387_supply_fsave.
3922         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3923         i387_supply_fxsave.
3924         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3925         i387_supply_fsave.
3926         * i386bsd-nat.c (supply_fpregset): Adjust call to
3927         i387_supply_fsave.
3928         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3929         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3930         supply_fpregset.
3931         (store_inferior_registers): Remove extraneous whitespace.  Call
3932         i387_fill_fsave instead of fill_fpregset.
3933         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3934         (supply_fpregset): Likewise.
3935         * i386v4-nat.c (supply_fpregset): Adjust call to
3936         i387_supply_fsave.
3937         * i386-interix-nat.c (supply_fpregset): Adjust call to
3938         i387_supply_fsave.
3939         * i386-linux-nat.c (supply_fpregset): Adjust call to
3940         i387_supply_fsave.
3941         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3942         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3943         i387supply_fsave and i387_supply_fxsave.
3944         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3945         Incorporate code from `i387_supply_register.
3946         (i387_supply_register): Remove.
3947         (i387_supply_fxsave): Add `regnum' argument.
3948         Update comments.
3949         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3950         prototype.
3951         (i387_supply_register): remove prototype.
3952         Update comments.
3953
3954 2003-08-22  Michael Chastain  <mec@shout.net>
3955
3956         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3957         Add lines for files in gdb/testsuite/gdb.cp/* that are
3958         still not 8.3 unique.
3959
3960 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
3961
3962         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3963         TYPE_VPTR_FIELDNO is valid.
3964
3965 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
3966
3967         * utils.c (set_width_command): Remove prototypes.
3968         (set_screen_size): New prototype.
3969         (init_page_info): Simplify by fetching the screen size from
3970         Readline.  Call set_screen_size.
3971         (set_screen_size): New function.
3972         (set_width): Add missing whitespace in comment.
3973         (set_width_command): Call set_screen_size.
3974         (set_height_command): New function.
3975         (initialize_utils): Fix formatting.  Make "set height" command
3976         call set_height_command.  Remove redundant code that turns off
3977         pagination if output isn't a terminal.  Remove redundant call to
3978         set_width_command.
3979
3980 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
3981
3982         * sparc64-tdep.h (sparc64_regnum): Fix comment.
3983         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3984         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3985         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3986         `case' keyword.
3987         (sparc64_register_info): Give the reister with number
3988         SPARC64_STATE_REGNUM a name.
3989         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3990         %asi and %ccr.
3991         (sparc64_push_dummy_call): Take BIAS into account when checking
3992         stcak alignment.
3993         (sparc_software_single_step): Remove assertions that check whether
3994         NPC and NNPC were zero.
3995         (sparc_supply_rwindow): Make public.  Merge functionality with
3996         sparc64_supply_rwindow.
3997         (sparc_fill_rwindow): Make public.  Merge functionality with
3998         sparc64_fill_rwindow.
3999         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4000         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4001         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4002         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4003         sparc_supply_rwindow instead of sparc64_supply_rwindow.
4004
4005         * reggroups.c: Add whitespace after declarations of local
4006         variables in functions.
4007
4008 2003-08-21  Michael Chastain  <mec@shout.net>
4009
4010         * gdbtypes.h: Change array bound type from an int to enum.
4011
4012 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4013
4014         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4015         * config/sparc/tm-sparc.h: Ditto.
4016         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4017         unconditionally.
4018         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4019
4020 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4021
4022         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4023         (register_objfile_data, set_objfile_data, objfile_data): New
4024         prototypes.
4025         * objfiles.c (objfile_alloc_data, objfile_free_data): New
4026         prototypes.
4027         (allocate_objfile): Call objfile_alloc_data.
4028         (free_objfile): Call objfile_free_data.
4029         (struct objfile_data): New.
4030         (struct objfile_data_registration): New.
4031         (struct objfile_data_registry): New.
4032         (objfile_data_registry): New variable.
4033         (register_objfile_data): New function.
4034         (objfile_alloc_data, objfile_free_data): New functions.
4035         (set_objfile_data, objfile_data): New functions.
4036         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4037         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4038         (_initialize_dwarf2_frame): New function and prototype.
4039
4040 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4041
4042         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4043         a specific architecture.
4044         * arch-utils.h (set_architecture_from_arch_mach): Delete
4045         declaration.
4046         (target_architecture_hook): Delete declaration.
4047         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4048         (default_float_format): Assume GDB_MULTI_ARCH.
4049         (default_double_format): Assume GDB_MULTI_ARCH.
4050         (set_endian_from_file): Delete function.
4051         (arch_ok): Delete function.
4052         (set_arch): Delete function.
4053         (set_architecture_from_arch_mach): Delete function.
4054         (set_architecture_from_file): Delete function.
4055         (set_architecture): Assume GDB_MULTI_ARCH.
4056         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4057
4058 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
4059
4060         Rewrite FreeBSD/sparc64 native configuration.
4061         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4062         * sparc64fbsd-nat.c: New file.
4063         * sparc64fbsd-tdep.c: New file.
4064         * sparc64-tdep.c sparc64-tdep.h: New files.
4065         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4066         sparc64fbsd-tdep.o): New dependencies.
4067         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4068         and sparc64fbsd-tdep.c.
4069         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4070         * config/sparc/fbsd.mh: Remove copyright notice.
4071         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4072         sparcbsd-nat.o.
4073         * config/sparc/fbsd.mt: Remove copyright notice.
4074         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4075         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4076         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4077         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4078         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4079         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4080         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4081         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4082         "sparc/tm-sp64.h".
4083         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4084         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4085
4086 2003-08-21  Michael Chastain  <mec@shout.net>
4087
4088         * symtab.h: Add doco on the space critical structures and
4089         some measurements of space usage.
4090
4091 2003-08-21  Michael Snyder  <msnyder@redhat.com>
4092
4093         * tracepoint.c (trace_dump_command): Trace break address
4094         is subject to DECR_PC_AFTER_BREAK.
4095         (set_traceframe_context): Make "trace_line" an int.
4096         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
4097
4098 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4099
4100         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4101         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4102         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4103         argument passing.
4104         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4105         functions, replace sh_push_dummy_call.
4106         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4107
4108 2003-08-20  Michael Chastain  <mec@shout.net>
4109
4110         * gdbtypes.h (struct main_type): Rearrange to save space.
4111
4112 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4113
4114         * trad-frame.c: Comment typo fix.
4115
4116 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4117             Kevin Buettner  <kevinb@redhat.com>
4118
4119         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4120         (frv_frame_init_saved_regs): Add declaration.
4121         (frame_extra_info): Add new field ``saved_regs''.
4122         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4123         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4124         Update frame related code.
4125         (frv_extract_struct_value_address): Adjust formatting.
4126         * Makefile.in (frv-tdep.o): Update dependencies.
4127         * config/frv/tm-frv.h (target_insert_watchpoint)
4128         (target_remove_watchpoint, target_insert_hw_breakpoint)
4129         (target_remove_hw_breakpoint): Delete these macros.
4130         (remote_insert_watchpoint, remote_remove_watchpoint)
4131         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4132         these declarations.
4133
4134 2003-08-20  Michael Chastain  <mec@shout.net>
4135
4136         * defs.h (ENUM_BITFIELD): New macro.
4137         * symtab.h (ENUM_BITFIELD): Use it.
4138         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4139
4140 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
4141
4142         * MAINTAINERS (write after approval): Add myself.
4143
4144 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4145
4146         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4147         * gdbarch.h, gdbarch.c: Re-generate.
4148         * infcall.c (call_function_by_hand): Adjust the SP by
4149         frame_red_zone_size before allocating any stack space.
4150         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4151         * x86-64-tdep.c (x86_64_frame_align): New function.
4152         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4153
4154         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4155         Remove code adjusting SP so that it skips over the Red Zone.
4156
4157 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4158
4159         * NEWS (New native configurations): Mention FreeBSD/amd64.
4160
4161 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4162
4163         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4164         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4165         "m68k_frame_p".
4166         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4167
4168 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4169
4170         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4171
4172 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
4173
4174         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4175         Define.
4176         * i386-linux-nat.c: Include "linux-nat.h".
4177         (child_post_startup_inferior): New function.
4178
4179 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4180
4181         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4182         at the start of a frameless function.  This probably fixes PR
4183         backtrace/1338.
4184
4185 2003-08-17  Michael Chastain  <mec@shout.net>
4186
4187         * symfile.c (find_sym_fns): Remove special case for apollo target.
4188
4189 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4190
4191         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4192         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4193         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4194         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4195         (linux_supports_tracevforkdone): New function.
4196         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4197         TRACEVFORKDONE.
4198         (child_follow_fork): Handle vfork.
4199         (linux_handle_extended_wait): Likewise.  Also handle exec.
4200         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4201         * NEWS: Mention fork tracing.
4202
4203 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4204
4205         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4206
4207 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4208
4209         * Makefile.in (i386-linux-nat.o): Update dependencies.
4210         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4211         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4212         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4213         * i386-linux-nat.c: Include "linux-nat.h".
4214         (child_post_startup_inferior): New function.
4215         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4216         * infptrace.c (kill_inferior): Wrap in #ifdef.
4217         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4218         attaching to each LWP.
4219         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4220         (init_lin_lwp_ops): Fill in some more operations.
4221         * linux-nat.h (linux_enable_event_reporting)
4222         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4223         prototypes.
4224         * linux-nat.c (linux_enable_event_reporting): New function.
4225         (child_post_attach, linux_child_post_startup_inferior)
4226         (child_post_startup_inferior, child_follow_fork)
4227         (linux_handle_extended_wait, kill_inferior): New functions.
4228
4229 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4230
4231         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4232         * gdbarch.h, gdbarch.c: Re-generate.
4233
4234 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4235
4236         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4237
4238 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4239
4240         * NEWS: Mention that "set prompt-escape-char" was deleted.
4241         * top.c (get_prompt_1): Delete function.
4242         (gdb_prompt_escape):
4243         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4244         prompt-escape-char" command.
4245         (MAX_PROMPT_SIZE): Delete macro.
4246         (get_prompt): Simplify, do not call get_prompt_1.
4247
4248 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4249
4250         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4251         -Werror.  -Wformat-nonliteral problems.
4252
4253 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4254
4255         Further multiarching work mostly for hppa64-*-hpux11:
4256         * hppa-tdep.h: New file.
4257         * hppa-tdep.c: #include hppa-tdep.c.
4258         (hppa32_num_regs): Renamed from hppa_num_regs.
4259         (hppa64_num_regs): New constant.
4260         (hppa64_call_dummy_breakpoint_offset): New constant.
4261         (hppa32_call_dummy_length): New constant.
4262         (hppa64_call_dummy_length): New constant.
4263         (hppa32_stack_align): Make name 32bit explicit.
4264         (hppa32_register_virtual_type): Likewise.
4265         (hppa32_extract_return_value): Likewise.
4266         (hppa32_use_struct_convention): Likewise.
4267         (hppa32_store_return_value): Likewise.
4268         (hppa64_register_virtual_type): New function.
4269         (hppa64_extract_return_value): New function.
4270         (hppa64_use_struct_convention): New function.
4271         (hppa64_store_return_value): New function.
4272         (hppa_frame_locals_address): Remove declaration, function does
4273         not exist anymore.
4274         (hppa_register_byte): Add support for PA64 ABI.
4275         (hppa_gdbarch_init): Add support for PA64 ABI.
4276         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4277         Make name 32bit explicit.
4278         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4279         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4280         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4281         (hppa64_hpux_frame_base_before_sigtramp): New function.
4282         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4283         * config/pa/tm-hppa64.h: Remove macros that are no longer
4284         necessary now that the gdbarch vector is properly setup.
4285         Transform some macros into function calls. Some minor cleanup.
4286         * config/pa/tm-hppah.h: Update function calls in macros
4287         following the function renaming in hppa-hpux-tdep.c.
4288         * Makefile.in (hppa_tdep_h): New variable.
4289         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4290
4291 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4292
4293         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4294
4295 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4296
4297         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4298         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4299         routine.
4300
4301 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4302
4303         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4304         (frv_saved_pc_after_call): Use deprecated ftype.
4305         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4306         (frv_remote_translate_xfer_address): Remove.
4307         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4308
4309 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4310
4311         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4312         initialization after the common gdbarch initialization, not before.
4313
4314 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4315
4316         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4317         (ADDR_BITS_REMOVE): Remove, redundant.
4318
4319 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4320
4321         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4322         gdbarch method to clear the 2 low bits of text addresses.
4323
4324 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4325
4326         * Makefile.in (dsrec.o): Update dependencies.
4327         * dsrec.c: Include "gdb_assert.h".
4328         (make_srec): Use snprintf instead of sprintf, use a literal format
4329         string.
4330
4331 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4332
4333         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4334         FRAME_OBSTACK_ZALLOC.
4335
4336 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4337
4338         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4339         SSE registers.
4340
4341 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4342
4343         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4344         amd64fbsd_sc_reg_offset): Add extern declarations.
4345         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4346         declarations.
4347
4348 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
4349
4350         * MAINTAINERS (write after approval): Update my mail address.
4351
4352 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4353
4354         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4355
4356 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4357
4358         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4359         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4360         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4361         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4362         i386bsd_sc_reg_offset): Add extern declarations.
4363         * i386obsd-nat.c: Include "i386-tdep.h"
4364         (_initialize_i386obsd_nat): Remove extern declarations.
4365         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4366         declarations.
4367         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4368         declarations.
4369
4370         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4371         instead of frame_read_register.
4372         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4373         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4374         SP_REGNUM.
4375         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4376         instead of frame_unwind_unsigned_register.  Use
4377         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4378         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4379         instead of read_register.  Use builtin_type_void_data_ptr instead
4380         of builtin_type_void_func_ptr when extracting the address of the
4381         jmp_buf.
4382         (i386_extract_return_value, i386_store_return_value,
4383         i386_pseudo_register_read, i386_pseudo_register_write): Use
4384         register_size instead REGISTER_RAW_SIZE.
4385
4386 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4387
4388         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4389         sprintf.  Make "name" constant.
4390
4391 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4392
4393         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4394         instead of frame_read_register.
4395         (i387_print_float_info): Use get_frame_register and
4396         get_frame_register_unsigned instead of frame_register_read.
4397
4398         * i386fbsd-nat.c: Include "i386-tdep.h".
4399         (child_resume): Make `eflags' an ULONGEST.  Use
4400         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4401         instead of register_read and register_write.
4402
4403         * i386bsd-nat.c (fetch_inferior_registers,
4404         store_inferior_registers): Don't use && at the end of a line.
4405         (_initialize_i386bsd_nat): Fix typo.
4406
4407         * frame.c (_initialize_frame): Add missing backslash.
4408
4409         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4410         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4411         and supply_register instead of manipulating the register buffer
4412         directly.
4413
4414         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4415         * config/i386/nm-i386sol2.h
4416         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4417
4418         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4419         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4420         instructions that GCC likes to mingle into the prologue.  Fixes
4421         gdb/1253 and gdb/1255.
4422
4423 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4424
4425         Fix GDB PR cli/926.
4426         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4427         * command.h (add_setshow_uinteger_cmd): Declare.
4428         * frame.c (set_backtrace_cmd): New function.
4429         (show_backtrace_cmd): New function.
4430         * frame.c (_initialize_frame): Replace "set/show
4431         backtrace-below-main" with "set/show backtrace past-main".  Add
4432         command "set/show backtrace limit".
4433         (backtrace_past_main): Rename "backtrace_below_main".
4434         (backtrace_limit): New variable.
4435         (get_prev_frame): Update.  Check the backtrace_limit.
4436
4437 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4438
4439         * defs.h (xstrprintf): Declare.
4440         * utils.c (xstrprintf): New function.
4441         * breakpoint.c (insert_breakpoints): Replace sprintf and
4442         non-literal format strings, with xstrprintf and cleanups.
4443         (delete_breakpoint,breakpoint_re_set): Ditto.
4444         (commands_command, insert_breakpoints): Ditto.
4445         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4446         (break_at_finish_command_1): Ditto.
4447
4448 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4449
4450         * MAINTAINERS (language support): List Adam Fedor as Objective C
4451         maintainer.
4452
4453 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4454
4455         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4456         are now multiarched.
4457
4458 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4459
4460         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4461         longer necessary now that hppa64 is partially multiarch'ed.
4462
4463 2003-08-08  Andrew Cagney  <cagney@redhat.com>
4464
4465         * interps.c (interp_set): Check for a NULL "old_interp".
4466
4467 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4470         (install-only): Support DESTDIR.
4471         (uninstall): Likewise.
4472         (install-gdbtk): Likewise.
4473
4474 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
4475
4476         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4477         contains something meaningful at all times.
4478
4479 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4480
4481         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4482
4483 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4484
4485         * MAINTAINERS (write after approval): Added self.
4486
4487 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4488
4489         * inferior.h (AT_SYMBOL): Define.
4490         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4491         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4492         * mips-tdep.c (mips_call_dummy_address): Delete function.
4493         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4494         set call_dummy_address.
4495
4496 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4497
4498         * language.c (op_error): Delete function.
4499         (binop_type_check): Delete function.
4500         * language.h (type_op_error, range_op_error): Delete macros.
4501         (op_error): Delete declaration.
4502
4503 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4504
4505         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4506
4507 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
4508
4509         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4510         (x86_64_push_arguments): Skip the red zone.
4511
4512 2003-08-05  Andrew Cagney  <cagney@redhat.com>
4513
4514         * reggroups.c (reggroup_next): Check for the final entry.
4515
4516 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4517
4518         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4519         * cli/cli-script.c (define_command): Call query directly, instead
4520         of passing it a buffer.
4521         * ocd.c (ocd_error): Pass error a constant format string.
4522         * remote-mips.c (mips_error): Use fputs_filtered.
4523
4524         * solib-svr4.c (_initialize_svr4_solib): Update
4525         register_gdbarch_data call.
4526         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4527
4528         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4529         (register_gdbarch_data): Delete "free" parameter.  Update
4530         comments.
4531         * gdbarch.h, gdbarch.c: Re-generate.
4532         * reggroups.c (_initialize_reggroup): Update.
4533         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4534         * frame-base.c (_initialize_frame_base): Update.
4535         * frame-unwind.c (_initialize_frame_unwind): Update.
4536         * user-regs.c (_initialize_user_regs): Update.
4537         * remote.c (_initialize_remote): Update.
4538         * regcache.c (_initialize_regcache): Update.
4539
4540         * regcache.c (xfree_regcache_descr): Delete function.
4541         (_initialize_regcache): Update call to register_gdbarch_data.
4542         (init_regcache_descr, init_legacy_regcache_descr): Use
4543         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4544
4545         * remote.c (free_remote_state): Delete function.
4546         (_initialize_remote): Update register_gdbarch_data.
4547         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4548         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4549
4550 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4551
4552         * reggroups.c (struct reggroup_el): Define.
4553         (struct reggroups): Delete field "nr_group".  Replace array
4554         "group" with a "first" to "last" linked list.
4555         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4556         (reggroups_free): Delete function.
4557         (add_group): Update.  Add "el" parameter.
4558         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4559         (default_groups): Update.
4560         (reggroup_next): Replace reggroups.
4561         (reggroups_dump): Update.
4562         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4563         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4564         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4565
4566 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4567
4568         * Makefile.in (tui-interp.o): Update dependencies.
4569
4570 2003-08-04  David Carlton  <carlton@kealia.com>
4571
4572         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4573         to internal_error call.
4574         * source.c (forward_search_command): Add "%s" format argument.
4575         (reverse_search_command): Ditto.
4576         * top.c (quit_confirm): Ditto.
4577         * cli/cli-setshow.c (do_setshow_command): Ditto.
4578         * cp-valprint.c (cp_print_class_method): Replace
4579         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4580         (cp_print_class_member): Ditto.
4581         * event-top.c (command_line_handler): Ditto.
4582         * linux-proc.c (linux_info_proc_cmd): Ditto.
4583         * p-typeprint.c (pascal_type_print_base): Ditto.
4584         * p-valprint.c (pascal_object_print_class_method): Ditto.
4585         (pascal_object_print_class_member): Ditto.
4586         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4587         * remote.c (remote_cisco_section_offsets): Ditto.
4588         * top.c (command_line_input): Ditto.
4589         * utils.c (vwarning,error_stream,quit): Ditto.
4590         * valprint.c (print_floating,print_binary_chars)
4591         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4592
4593 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4594
4595         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4596
4597 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4598
4599         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4600         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4601         amd64fbsd-nat.c.
4602
4603 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4604
4605         * Makefile.in: Update all dependencies and definitions.
4606
4607 2003-08-02  Adam Fedor  <fedor@gnu.org>
4608
4609         * linespec.c (is_objc_method_format): New function
4610         (decode_line_1, locate_first_half): Use it.
4611         Fixes PR objc/1298
4612
4613 2003-08-01  Andrew Cagney  <cagney@redhat.com>
4614
4615         * NEWS: Mention that m32r is multi-arch.
4616         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4617         * configure.tgt: Recognize m32r-*-*.
4618         * config/m32r/tm-m32r.h: Delete file.
4619         * config/m32r/m32r.mt: New file.
4620         * m32r-rom.c (m32r_upload_command): Use hostent only when
4621         gethostname succeeds, in order to avoid a compilation
4622         warning.
4623         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4624         compiler warning.
4625
4626 2003-08-01  Michael Snyder  <msnyder@redhat.com>
4627
4628         * sh-tdep.c (sh_frame_align): New gdbarch method.
4629         (sh_gdbarch_init): Set up frame_align method.
4630
4631 2003-07-31  Michael Snyder  <msnyder@redhat.com>
4632
4633         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4634         which is already covered by the new frames infrastructure.
4635
4636 2003-07-31  Andrew Cagney  <cagney@redhat.com>
4637
4638         * user-regs.c (struct user_reg): Add "next" link.
4639         (struct user_regs): Replace "user" with "first" and "last" links.
4640         (append_user_reg): Add pre-allocated "reg" parameter.
4641         (builtin_user_regs): Provide initial value for "last".
4642         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4643         (user_regs_init): Allocate memory from the gdbarch obstack.
4644         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4645         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4646         linked list.
4647         (usernum_to_user_reg): New function.
4648         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4649         (value_of_user_reg): Use usernum_to_user_reg.
4650         (user_regs_free): Delete function.
4651         (_initialize_user_regs): Update register_gdbarch_data call.
4652
4653 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
4654
4655         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4656
4657 2003-07-30  Michael Snyder  <msnyder@redhat.com>
4658
4659         * value.h (value_being_returned): Add a struct_addr argument.
4660         * infcall.c (call_function_by_hand): Pass struct_addr to
4661         value_being_returned.
4662         * infcmd.c (print_return_value): Pass zero as struct_addr.
4663         * values.c (value_being_returned): If struct_addr is passed,
4664         use it instead of trying to recover it from the inferior.
4665
4666 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
4667
4668         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4669         the prologue analyzer won't need to attempt to extract the pc
4670         value from the woefully incomplete dummy frame.
4671         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4672         possible.  Disable code which modifies the frame.
4673
4674 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4675
4676         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4677         to level 2.
4678         (annotate_breakpoints_table, annotate_record): Ditto.
4679         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4680         (annotate_field_name_end, annotate_field_value): Ditto.
4681         (annotate_field_end, annotate_frame_source_begin): Ditto.
4682         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4683         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4684         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4685         (annotate_frame_address_end, annotate_frame_address): Ditto.
4686         (annotate_frame_args, annotate_frame_end): Ditto.
4687         (annotate_frame_where, annotate_arg_begin): Ditto.
4688         (annotate_arg_name_end, annotate_arg_value): Ditto.
4689         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4690         (annotate_function_call, annotate_signal_name): Ditto.
4691         (annotate_signal_string, annotate_signal_name_end): Ditto.
4692         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4693         (annotate_value_begin, annotate_value_history_value): Ditto.
4694         (annotate_value_history_end, annotate_value_end): Ditto.
4695         (annotate_display_begin, annotate_display_number_end): Ditto.
4696         (annotate_display_format, annotate_display_expression): Ditto.
4697         (annotate_display_expression_end, annotate_display_value): Ditto.
4698         (annotate_display_end, annotate_array_section_begin): Ditto.
4699         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4700         (annotate_elt, annotate_array_section_end): Ditto.
4701
4702 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4703
4704         * regcache.c (struct regcache_descr): Update comments on
4705         nr_raw_registers.
4706         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4707         sizeof_raw_register_valid_p.
4708         (init_regcache_descr): Set nr_raw_registers and
4709         sizeof_raw_register_valid_p before calling
4710         init_legacy_regcache_descr.
4711
4712 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4713
4714         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4715         MOD NUM_REGS.
4716
4717 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
4718
4719         * thread.c (info_threads_command): Use get_selected_frame ().
4720         Check that there is at least one non-sentinel frame.
4721
4722 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4723
4724         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4725         (m68hc11_pop_frame): Remove.
4726         (m68hc11_frame_saved_pc): Remove.
4727         (m68hc11_frame_chain): Remove.
4728         (m68hc11_frame_init_saved_regs): Remove.
4729         (m68hc11_init_extra_frame_info): Remove.
4730         (m68hc11_store_struct_return): Remove.
4731         (m68hc11_saved_pc_after_call): Remove.
4732
4733 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4734
4735         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4736         frame unwind information.
4737         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4738         and adapted for frame unwinding.
4739         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4740         (m68hc11_unwind_pc): New function.
4741         (m68hc11_frame_unwind_cache): New function to analyze frames.
4742         (m68hc11_frame_this_id): New function to create new frame struct.
4743         (m68hc11_frame_prev_register): New function to unwind a register from
4744         the frame.
4745         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4746         (m68hc11_frame_p): New function for the above.
4747         (m68hc11_frame_base_address): New function to return fp of frame.
4748         (m68hc11_frame_args_address): Update for frame.
4749         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4750         (m68hc11_unwind_sp): New function.
4751         (m68hc11_unwind_dummy_id): New function.
4752         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4753         calls.
4754
4755 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4756
4757         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4758         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4759         when we are beyond the current pc.
4760
4761 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4762
4763         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4764         from m68hc11_push_arguments.
4765         (m68hc11_push_arguments): Remove.
4766         (m68hc11_push_return_address): Remove.
4767         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4768         handlers; remove deprecated_extra_stack_alignment_needed.
4769
4770 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4771
4772         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4773         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4774         REAL_PC and not the pointer.
4775         * hppa-hpux-tdep.c: Include frame.h
4776
4777 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4778
4779         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4780         GDB_MULTI_ACH_PARTIAL.
4781
4782 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4783
4784         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4785         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4786         operator at start and not end of line.
4787         (decode_prologue): Ditto.
4788         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4789         frame_unwind_register_unsigned instead of
4790         frame_unwind_unsigned_register.
4791         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4792         read_register.
4793         (m32r_push_dummy_call): Use register_size instead of
4794         REGISTER_RAW_SIZE.
4795         (m32r_frame_sniffer): Replace m32r_frame_p.
4796         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4797         * m32r-rom.c (report_transfer_performance): Delete extern
4798         declaration.
4799         (m32r_load, m32r_upload_command): Use print_transfer_performance
4800         instead of report_transfer_performance.
4801         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4802         / add_show_from_set.
4803
4804 2003-07-26  Andrew Cagney  <cagney@redhat.com>
4805
4806         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4807         store_return_value and extract_struct_value_address.
4808
4809 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
4810
4811         PR c++/1267
4812         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4813         NULL, default to the section containing PC.
4814
4815 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
4816
4817         * NEWS: Mention "regs" deprecated for m68hc11 too.
4818
4819         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4820         (m68hc11_print_register): New function to print out one register.
4821         (m68hc11_print_registers_info): New function to print registers.
4822         (show_regs): Deprecate and use the above.
4823         (m68hc11_gdbarch_init): Install the print_registers_info.
4824
4825 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4826
4827         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4828         that we have a SIGTRAP before returning non-zero.
4829
4830 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
4831             Elena Zannoni  <ezannoni@redhat.com>
4832
4833         * linespec.c (decode_line_2): Avoid crash if
4834         find_function_start_sal() returns empty record.
4835
4836 2003-07-23  Andreas Schwab  <schwab@suse.de>
4837
4838         * ia64-tdep.c (ia64_print_insn): New function.
4839         (ia64_gdbarch_init): Set print_insn to it.
4840         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4841         deprecated_tm_print_insn_info.
4842
4843 2003-07-22  Michael Snyder  <msnyder@redhat.com>
4844
4845         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4846         handle 8-bit returns (long long).
4847         (h8300h_extract_return_value): Ditto.
4848         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4849
4850 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4851
4852         * gdbarch.c Include "gdb_obstack.h".
4853         (struct gdbarch): Add an "obstack".
4854         (alloc_gdbarch_data): Allocate the gdbarch data using
4855         GDBARCH_OBSTACK_CALLOC.
4856         (free_gdbarch_data): Delete function.
4857         (gdbarch_obstack_zalloc): New function.
4858         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4859         Assert that the architecture is not initialized.
4860         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4861         vector from the obstack.
4862         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4863         architecture obstack.
4864         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4865         (set_gdbarch_data): Assert that the data is not initialized.
4866         (struct gdbarch_data): Delete member "free".
4867         (register_gdbarch_data): Do not initialize "free".
4868         * gdbarch.h, gdbarch.c: Re-generate.
4869
4870 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4871
4872         * configure.in (build_warnings): Add -Wformat-nonliteral.
4873         * configure: Re-generate.
4874
4875 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4876
4877         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4878
4879 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4880
4881         * findvar.c (read_var_value): Remove case for thread local storage
4882         variables.  It is now entirely handled by the dwarf2 location
4883         expression code.
4884         * printcmd.c (address_info): Ditto.
4885         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4886         enumeration value.
4887         (struct symbol): Remove objfile field, which was used by
4888         LOC_THREAD_LOCAL_STATIC only.
4889         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4890         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4891         usage of objfile pointer.
4892         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4893         thread local variables.
4894         Add include of objfiles.h.
4895         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4896         storage variables.
4897         * Makefile.in (dwarf2loc.o): Update dependencies.
4898
4899 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4900
4901         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4902         get_frame_base.
4903         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4904         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4905         (struct value): Add opaque declaration.
4906         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4907
4908 2003-07-21  Andrew Cagney  <cagney@redhat.com>
4909
4910         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4911         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4912
4913 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4914
4915         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4916         regcache_cooked_read_unsigned instead of read_register.
4917         (m68hc11_saved_pc_after_call): Likewise.
4918         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4919         instead of write_register.
4920         (m68hc11_register_type): New function.
4921         (m68hc11_register_virtual_type): Remove.
4922         (m68hc11_store_return_value): Convert to use the regcache.
4923         (m68hc11_extract_struct_value_address): Likewise.
4924         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4925         m68hc11_register_type; undeprecate store_return_value and
4926         extract_struct_value_address.
4927
4928 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4929
4930         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4931         and translate to use regcache.
4932         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4933
4934 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4935
4936         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4937         * gdbarch.h, gdbarch.c: Re-generate.
4938         * i386-tdep.c (i386_gdbarch_init): Do not set
4939         DWARF2_BUILD_FRAME_INFO.
4940         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4941         unconditionally.
4942         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4943         DWARF2_BUILD_FRAME_INFO.
4944
4945 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4946
4947         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4948         * disasm.c (gdb_disassemble_info): Initilize di.arch.
4949
4950 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4951
4952         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4953         frame_unwind_address_in_block, instead of frame_pc_unwind.
4954         (dwarf2_frame_cache): Ditto.
4955
4956 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4957
4958         * user-regs.h (struct gdbarch): Declare opaque.
4959         * ui-out.h (struct ui_file): Declare opaque.
4960         * dwarf2-frame.h (struct frame_info): Declare opaque.
4961
4962 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
4963
4964         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
4965         #include "...".
4966         (procfs_meminfo): Change strerror to safe_strerror.
4967         (procfs_can_run): Remove K&R badness.
4968
4969 2003-07-17  Michael Snyder  <msnyder@redhat.com>
4970
4971         * remote-sim.c: Comment typo fix.
4972
4973 2003-07-17  Andrew Cagney  <cagney@redhat.com>
4974
4975         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
4976         configure.
4977         * sparc-tdep.c (sparc_intreg_size): Make non-static.
4978         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4979         GDB_MULTI_ARCH_PARTIAL.
4980
4981 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
4982
4983         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4984         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
4985         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4986
4987 2003-07-16  Theodore A. Roth  <troth@openavr.org>
4988
4989         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4990         found.
4991         (avr_frame_unwind_cache): Don't unwind FP for main.
4992         Update a comment.
4993         Save the computed prev_sp.
4994         (avr_saved_regs_unwinder): Remove function.
4995         (avr_frame_prev_register): Use PC unwind logic from
4996         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4997
4998 2003-07-16  Andrew Cagney  <cagney@redhat.com>
4999
5000         * frame-base.h (frame_base_p_ftype): Delete definition.
5001         (frame_base_append_predicate): Delete declaration.
5002         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5003         (frame_unwind_append_predicate): Delete declaration.
5004         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5005         (append_predicate): Delete parameter "p".
5006         (frame_unwind_append_predicate): Delete function.
5007         (frame_unwind_append_sniffer): Update call to append_predicate.
5008         (frame_unwind_free): Delete function.
5009         (_initialize_frame_unwind): Pass NULL as "free" to
5010         register_gdbarch_data.
5011         (frame_unwind_init): Append the dummy_frame_sniffer.
5012         (frame_unwind_find_by_frame): Simplify.
5013         * frame-base.c (struct frame_base_table): Delete field "p".
5014         (append_predicate): Delete parameter "p".
5015         (frame_base_append_predicate): Delete function.
5016         (frame_base_append_sniffer): Update call to append_predicate.
5017         (frame_base_free): Delete function.
5018         (frame_base_find_by_frame): Simplify.
5019         (_initialize_frame_base): Pass NULL as "free" to
5020         register_gdbarch_data.
5021         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5022         (x86_64_sigtramp_frame_sniffer): Replace
5023         "x86_64_sigtramp_frame_p".
5024         (x86_64_init_abi): Set the frame unwind sniffers.
5025         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5026         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5027         (m68k_gdbarch_init): Set the frame unwind sniffers.
5028         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5029         "i386_sigtramp_frame_p".
5030         (i386_frame_sniffer): Replace "i386_frame_p".
5031         (i386_gdbarch_init): Set the frame unwind sniffers.
5032         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5033         (avr_gdbarch_init): Set the frame unwind sniffers.
5034         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5035         "alpha_sigtramp_frame_p"
5036         (alpha_heuristic_frame_sniffer): Replace
5037         "alpha_heuristic_frame_p".
5038         (alpha_gdbarch_init): Set the frame unwind sniffers.
5039         (alpha_dwarf2_init_abi): Ditto.
5040         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5041         "alpha_debug_frame_p".
5042         (alpha_mdebug_frame_base_sniffer): Replace
5043         "alpha_mdebug_frame_base_p".
5044         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5045         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5046         (d10v_gdbarch_init): Set the frame unwind sniffer.
5047         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5048         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5049         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5050         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5051         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5052         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5053
5054 2003-07-16  Michael Snyder  <msnyder@redhat.com>
5055
5056         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5057         should go thru sh_dsp_register_sim_regno, else the dsp regs
5058         will not get the right values.
5059
5060 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5061
5062         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5063         deprecated_store_floating by call to store_typed_floating.
5064         (sh_sh4_register_convert_to_raw): Substitute call to
5065         deprecated_extract_floating by call to extract_typed_floating.
5066
5067 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5068
5069         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5070
5071 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5072
5073         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5074         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5075         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5076         as possible.
5077         (do_pseudo_register): Remove.
5078         (sh_push_dummy_code): New function.
5079         (sh64_store_struct_return): Rename from sh_store_struct_return.
5080         Only called for sh64 now.
5081         (sh_extract_struct_value_address): Regcache'ify.
5082         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5083         and accomodate new tasks.
5084         (sh64_push_return_address): Rename from sh_push_return_address.
5085         Only called for sh64 now.
5086         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5087         Regcache'ify.
5088         (sh3e_sh4_extract_return_value): Regcache'ify.
5089         (sh_default_store_return_value): Ditto.
5090         (sh3e_sh4_store_return_value): Ditto.
5091         (sh_default_register_byte): Remove.
5092         (sh_sh4_register_byte): Remove.
5093         (sh_default_register_raw_size): Remove.
5094         (sh_sh4_register_raw_size): Remove.
5095         (sh_register_virtual_size): Remove.
5096         (sh_sh3e_register_virtual_type): Remove.
5097         (sh_sh3e_register_type): New function.
5098         (sh_sh4_register_virtual_type): Remove.
5099         (sh_sh4_register_type): New function.
5100         (sh_default_register_virtual_type): Remove.
5101         (sh_default_register_type): New function.
5102         (do_fv_register_info): Add parameters to accomodate call from
5103         sh_print_registers_info.
5104         (do_dr_register_info): Ditto.
5105         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5106         Add parameters to accomodate call from sh_print_registers_info.
5107         (sh_do_fp_register): Ditto.
5108         (sh64_do_pseudo_register): Call do_dr_register_info,
5109         do_fv_register_info and sh_do_fp_register with default parameters.
5110         (sh_do_register): Add parameters to accomodate call from
5111         sh_print_registers_info.
5112         (sh_print_register): Ditto.
5113         (sh_print_registers_info): Rename from sh_do_registers_info.
5114         Add parameters to be used as gdbarch_print_registers_info
5115         implementation.  Accomodate removed do_pseudo_register function
5116         pointer.
5117         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5118         function pointer. Call sh_print_register with default parameters.
5119         (sh64_do_registers_info): Call sh_print_registers_info instead of
5120         sh_do_registers_info.
5121         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5122         detection of deprecated vs. non-deprecated functionality.
5123         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5124         function pointer assignments by direct function calls.
5125
5126 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5127
5128         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5129         (frame_register_unwind, create_new_frame): Ditto.
5130         (legacy_get_prev_frame, get_frame_type): Ditto.
5131         (get_frame_base_address): Use frame_base_find_by_frame.
5132         (get_frame_locals_address): Use frame_base_find_by_frame.
5133         (get_frame_args_address): Use frame_base_find_by_frame.
5134         * frame-base.h (frame_base_sniffer_ftype): Declare.
5135         (frame_base_append_sniffer): Declare.
5136         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5137         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5138         (frame_base_append_sniffer): New function.
5139         (frame_base_append_predicate): Add a NULL sniffer.
5140         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5141         (struct frame_base_table): Add "sniffer".
5142         (frame_base_free): Free the "sniffer" table.
5143         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5144         (frame_unwind_append_sniffer): Declare.
5145         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5146         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5147         (struct frame_unwind_table): Add "sniffer", delete "middle".
5148         (append_predicate): Add "sniffer" parameter, append the sniffer.
5149         (frame_unwind_init): Update append_predicate call.
5150         (frame_unwind_append_sniffer): New function.
5151         (frame_unwind_append_predicate): Update append_predicate call.
5152         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5153
5154 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5155
5156         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5157         before code inhibiting repeated unwind attempts.  Add to
5158         commentary on that test's problems.
5159         * blockframe.c (inside_main_func): Look for "main" in the minimal
5160         symbol table.
5161         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5162         identical.
5163
5164 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5165
5166         * complaints.c (struct explanation): Define.
5167         (struct complaints): Change type of "explanation" to "struct
5168         explanation".
5169         (symfile_explanations): Convert to a "struct explanation" table.
5170         (vcomplaint): Update.
5171
5172 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
5173
5174         * x86-64-linux-nat.c (regmap): Removed.
5175         (supply_gregset, fill_gregset): Call
5176         x86_64_linux_(fill,supply)_gregset functions.
5177         * x86-64-linux-tdep.c (USER_*): New defines.
5178         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5179         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5180         New functions.
5181         (fetch_core_registers): Ditto.
5182         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5183         * x86-64-linux-tdep.h: New file.
5184         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5185         and core-regset.o.
5186         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5187
5188 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5189
5190         * x86-64-tdep.c (x86_64_store_return_value): Use
5191         regcache_cooked_write_part instead of regcache_cooked_write.
5192
5193         * configure.host: Add x86_64-*-freebsd*.
5194         * configure.tgt: Add x86_64-*-freebsd*.
5195         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5196         * amd64fbsd-nat.c: New file.
5197         * amd64fbsd-tdep.c: New file.
5198         * config/i386/nm-fbsd64.h: New file.
5199         * config/i386/fbsd64.mh: New file.
5200         * config/i386/fbsd64.mt: New file.
5201
5202 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5203
5204         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5205         `sc_regs_offset' and `sc_fpregs_offset'.
5206         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5207         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5208         (alpha_sigtramp_register_address): Rewrite to use new members of
5209         `struct gdbarch_tdep'.
5210         (alpha_gdbarch_init): Initialize new members of struct
5211         gdbarch_tdep'.
5212         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5213         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5214         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5215         (alphafbsd_pc_in_sigtramp): Implement.
5216         (alphafbsd_sigtramp_offset): New function.
5217         (alphafbsd_sigcontext_addr): New function.
5218         (alphafbsd_init_abi): Initialize signal trampoline related members
5219         of `struct gdbarch_tdep'.
5220         (_initialize_alphafbsd_tdep): Add prototype.
5221
5222 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5223
5224         * Makefile.in (install-only): Quote sed expression when generating
5225         transformed_name.
5226
5227 2003-07-11  Richard Henderson  <rth@redhat.com>
5228
5229         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5230         * dwarf2-frame.c: Include complaints.h.
5231         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5232         variable initialization; return NULL on error.
5233         (decode_frame_entry): New.
5234
5235 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5236
5237         * frame.h (frame_address_in_block): Delete declaration.
5238         * blockframe.c (frame_address_in_block): Delete function.
5239         (get_frame_block): Use get_frame_address_in_block.
5240         (block_innermost_frame): Ditto.
5241         * stack.c (print_frame, backtrace_command_1): Ditto.
5242
5243         * frame.h (get_frame_address_in_block): Declare.
5244         (frame_unwind_address_in_block): Declare.
5245         * frame.c (frame_unwind_address_in_block): New function.
5246         (get_frame_address_in_block): New function.
5247
5248 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5249
5250         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5251         pre-default.   Note: re-generate has no effect.
5252
5253 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5254
5255         * gdbarch.sh: When a variable, but not a function, compare against
5256         0.  Fix problem in previous patch.
5257         * gdbarch.c: Re-generate.
5258
5259 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5260
5261         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5262         functions against NULL, not 0.
5263         * gdbarch.c: Re-generate.
5264
5265 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5266
5267         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5268         null string instead of a null pointer.
5269         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5270
5271 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5272
5273         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5274
5275 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5276
5277         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5278         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5279         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5280         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5281         * x86-64-tdep.c: ... from here.
5282
5283 2003-07-09  Andreas Schwab  <schwab@suse.de>
5284
5285         * m68k-tdep.h (enum struct_return): Define.
5286         (struct gdbarch_tdep): Add struct_return.
5287         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5288         bytes are padded to the right, not to the left.  Pass struct value
5289         address in register %a1, not on stack.
5290         (m68k_use_struct_convention): New function.
5291         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5292         struct_return in tdep to pcc_struct_return.
5293         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5294         reg_struct_return.
5295
5296 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5297
5298         * somread.c (som_symfile_offsets): Fix compilation error.
5299
5300 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5301
5302         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5303         Add comments about the checks.
5304
5305 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5306
5307         * Makefile.in: Make dependency section headers consistent.
5308         (config_h): Move to $BUILD headers section.
5309         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5310         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5311         (ada-exp.tab.c): Move to YACC/LEX section.
5312         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5313         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5314
5315 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5316
5317         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5318         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5319         of strerror with safe_strerror, use ISO C function definitions,
5320         and replace instances of sprintf with snprintf.
5321
5322 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5323
5324         * frame.c (get_prev_frame): Enable check for identical frames.
5325         Update comments.  Update error messages.
5326
5327 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5328
5329         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5330
5331 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5332
5333         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5334         sort_symtab_syms, no longer necessary.
5335
5336 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5337
5338         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5339
5340 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5341
5342         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5343         (mips_register_byte): Likewise.
5344
5345 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5346
5347         * Makefile.in (sparc_tdep_h): New.
5348         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5349         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5350         * sparc-linux-nat.c: Include "sparc-tdep.h".
5351         * sparc-nat.c: Likewise.
5352         * sparc-tdep.c: Likewise.
5353         * sparc64nbsd-nat.c: Likewise.
5354         * sparcnbsd-nat.c: Likewise.
5355         * sparcnbsd-tdep.c: Likewise.
5356         * sparc-tdep.h: New file.
5357         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5358         and sparc_npc_regnum.
5359
5360 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5361
5362         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5363         (mips_linux_cannot_store_register): List supported instead of
5364         unsupported registers.
5365
5366 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5367
5368         * disasm.c (dump_insns): Separate instructions from addresses.
5369
5370 2003-07-07  Andreas Schwab  <schwab@suse.de>
5371
5372         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5373         dependencies.
5374         * m68k-tdep.c (NUM_FREGS): Delete.
5375         (SIG_PC_FP_OFFSET): Delete.
5376         (TARGET_M68K): Delete.
5377         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5378         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5379         P_MOVEL_SP, P_MOVEML_SP): Define.
5380         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5381         P_TRAP): Delete.
5382         (m68k_register_raw_size): Delete.
5383         (m68k_register_virtual_size): Delete.
5384         (m68k_register_type): Renamed from m68k_register_virtual_type and
5385         add gdbarch argument.
5386         (m68k_store_struct_return): Delete.
5387         (m68k_deprecated_extract_return_value): Delete.
5388         (m68k_deprecated_extract_struct_value_address): Delete.
5389         (m68k_frame_chain): Delete.
5390         (m68k_frame_saved_pc): Delete.
5391         (m68k_fix_call_dummy): Delete.
5392         (m68k_push_dummy_frame): Delete.
5393         (m68k_pop_frame): Delete.
5394         (m68k_extract_return_value): New function.
5395         (m68k_store_return_value): Rewrite using regcache.
5396         (m68k_extract_struct_value_address): Rewrite using regcache.
5397         (m68k_push_dummy_call): New function.
5398         (struct m68k_frame_cache): Define.
5399         (m68k_alloc_frame_cache): New function.
5400         (m68k_analyze_frame_setup): New function.
5401         (m68k_analyze_register_saves): New function.
5402         (m68k_analyze_prologue): New function.
5403         (m68k_skip_prologue): Rewrite using above functions.
5404         (m68k_unwind_pc): New function.
5405         (m68k_frame_cache): New function.
5406         (m68k_frame_this_id): New function.
5407         (m68k_frame_prev_register): New function.
5408         (m68k_frame_unwind): New variable.
5409         (m68k_frame_p): New function.
5410         (m68k_sigtramp_frame_cache): New function.
5411         (m68k_sigtramp_frame_this_id): New function.
5412         (m68k_sigtramp_frame_prev_register): New function.
5413         (m68k_sigtramp_frame_unwind): New variable.
5414         (m68k_sigtramp_frame_p): New function.
5415         (m68k_frame_base_address): New function.
5416         (m68k_frame_base): New function.
5417         (m68k_unwind_dummy_id): New function.
5418         (fill_gregset): Use regcache_collect.
5419         (fill_fpregset): Likewise.
5420         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5421         defined.
5422         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5423         deprecated_init_frame_pc, deprecated_store_struct_return,
5424         deprecated_extract_return_value, deprecated_store_return_value,
5425         deprecated_frame_chain, deprecated_frame_saved_pc,
5426         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5427         deprecated_register_virtual_size,
5428         deprecated_max_register_raw_size,
5429         deprecated_max_register_virtual_size,
5430         deprecated_register_virtual_type, deprecated_register_size,
5431         deprecated_register_byte, deprecated_register_bytes,
5432         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5433         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5434         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5435         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5436         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5437         deprecated_push_dummy_frame, deprecated_pop_frame,
5438         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5439         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5440         store_return_value, extract_struct_value_address, register_type,
5441         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5442         predicates.
5443         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5444         M68K_MAX_REGISTER_SIZE): Define.
5445         (struct m68k_sigtramp_info): Define.
5446         (struct gdbarch_tdep): Add get_sigtramp_info.
5447         * m68klinux-nat.c (fetch_register): Use register_size instead of
5448         REGISTER_RAW_SIZE.  Don't put assignment in if.
5449         (store_register): Likewise.
5450         (fetch_inferior_registers): Likewise.
5451         (store_inferior_registers): Likewise.
5452         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5453         (m68k_linux_frame_saved_pc): Delete.
5454         (m68k_linux_sigcontext_reg_offset,
5455         m68k_linux_ucontext_reg_offset): Define.
5456         (m68k_linux_get_sigtramp_info): New function.
5457         (m68k_linux_extract_return_value): Rewrite using regcache.
5458         (m68k_linux_store_return_value): Likewise.
5459         (m68k_linux_extract_struct_value_address): Likewise.
5460         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5461         Don't set deprecated_frame_saved_pc,
5462         deprecated_extract_return_value, deprecated_store_return_value,
5463         deprecated_extract_struct_value_address.  Set
5464         extract_return_value, store_return_value,
5465         extract_struct_value_address.
5466
5467 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5468
5469         * expprint.c: Include "user-regs.h" instead of "frame.h".
5470         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5471         frame_map_regnum_to_name.
5472         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5473         (frame_map_name_to_regnum): Simplify, call
5474         user_reg_map_name_to_regnum.
5475         (frame_map_regnum_to_name): Simplify, call
5476         user_reg_map_regnum_to_name.
5477         (frame_register_unwind): Update.
5478         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5479         (_initialize_frame_reg): Call user_reg_add_builtin.
5480         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5481         (value_of_register): Use value_of_user_reg.
5482         * eval.c (evaluate_subexp_standard): Update.
5483         * parse.c (write_dollar_variable): Update.
5484         * d10v-tdep.c (d10v_print_registers_info): Update.
5485         * infcmd.c (registers_info): Update.
5486         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5487         (builtin_regs_h): Delete macro.
5488         (user_regs_h): Define.
5489         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5490         (builtin-regs.o): Delete target.
5491         (user-regs.o): Specify dependencies.
5492         (expprint.o): Update dependencies.
5493         (findvar.o): Update dependencies.
5494         (frame.o): Update dependencies.
5495         (std-regs.o): Update dependencies.
5496
5497 2003-07-06  Christopher Faylor  <cgf@redhat.com>
5498
5499         * win32-nat.c (solib_symbols_add): Use one variable for all section
5500         address stuff.  Pass variable rather than address of variable to
5501         safe_symbol_file_add.
5502
5503 2003-07-06  Andreas Schwab  <schwab@suse.de>
5504
5505         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5506
5507 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
5508
5509         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5510
5511 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5512
5513         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5514
5515 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5516
5517         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5518         * config/i386/nto.mh: New file.
5519         * config/i386/nm-nto.h: New file.
5520         * configure.host: Add i[3456]86-*-nto*.
5521
5522 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
5523
5524         * remote-vx.c (vx_add_symbols): Fix compilation error.
5525
5526 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5527
5528         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5529         * gdbarch.h, gdbarch.c: Re-generate.
5530         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5531         (legacy_register_name): Declare.
5532         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5533         (REGISTER_NAME): Define.
5534         * sparc-tdep.c (legacy_register_name): New function.
5535         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5536         (REGISTER_NAME): Define.
5537         (hppa64_register_name): Declare.
5538         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5539         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5540         (hppa64_register_name): New function.
5541         (hppa_register_name): New function.
5542         * arch-utils.c (legacy_register_name): Delete.
5543         * arch-utils.h (legacy_register_name): Delete.
5544
5545 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
5546
5547         * cli/cli-interp.c (cli_interpreter_resume): Update the
5548         cli_uiout's stream to gdb_stdout.
5549
5550 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5551
5552         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5553         predicate.
5554         * gdbarch.h, gdbarch.c: Re-generate.
5555         * regcache.c (init_regcache_descr): Use legacy code when either
5556         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5557
5558 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5559
5560         * NEWS: Move "set logging" entry into GDB 6.0 section.
5561
5562 2003-07-02  Jim Blandy  <jimb@redhat.com>
5563
5564         * s390-tdep.c (struct frame_extra_info): new member:
5565         'stack_bought_valid'.
5566         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5567         initialize fextra_info->stack_bought.
5568         (s390_frameless_function_invocation): Don't trust the value of
5569         fextra_info_ptr->stack_bought unless
5570         fextra_info->stack_bought_valid is set.
5571
5572         New S390 prologue analyzer.
5573         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5574         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5575         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5576         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5577         compute_x_addr, s390_on_stack, s390_store,
5578         s390_get_signal_frame_info): New functions.
5579         (S390_NUM_SPILL_SLOTS): New macro.
5580         (s390_get_frame_info): Rewritten.
5581         (is_arg_reg): Deleted.
5582
5583         Break out the decoding of S/390 instructions into separate
5584         functions, to make it more legible, and easier to check
5585         against the spec.
5586         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5587         is_rx, is_rxe): New functions.
5588         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5589         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5590         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5591         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5592         enums for opcode values.  (Is this an improvement?)
5593
5594 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5595
5596         * i386-tdep.c: Revert change committed as part of trad-frame code
5597         below.
5598
5599 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5600
5601         * breakpoint.c (insert_catchpoint): Make static.
5602
5603 2003-07-02  Andreas Schwab  <schwab@suse.de>
5604
5605         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5606         former ia64_push_arguments and ia64_push_return_address, and use
5607         regcache functions instead of read/write_register.
5608         (ia64_gdbarch_init): Set push_dummy_call instead of
5609         deprecated_push_arguments and deprecated_push_return_address.
5610
5611 2003-07-01  Andreas Jaeger  <aj@suse.de>
5612
5613         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5614         before the call.
5615         Set %rax only to number of SSE registers used.
5616
5617 2003-07-01  Andrew Cagney  <cagney@redhat.com>
5618
5619         * trad-frame.h: Update comments, a -1 .addr is reserved.
5620         (trad_frame_value_p, trad_frame_addr_p): Declare.
5621         (trad_frame_reg_p): Declare.
5622         (trad_frame_set_value): Rename trad_frame_register_value.
5623         (trad_frame_set_unknown): Declare.
5624         * trad-frame.c (trad_frame_realreg_p): New function.
5625         (trad_frame_addr_p, trad_frame_value_p): New function.
5626         (trad_frame_set_unknown): New function.
5627         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5628         (trad_frame_prev_register): Use trad_frame_realreg_p,
5629         trad_frame_addr_p and trad_frame_value_p.
5630         (trad_frame_set_value): Rename trad_frame_register_value.
5631         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5632         and trad_frame_set_value.
5633
5634 2003-06-30  Jim Blandy  <jimb@redhat.com>
5635
5636         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5637         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5638         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5639         for 16 registers, and then 32 more bytes.
5640         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5641         New macros.
5642         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5643         Move up in the file, since it's now used by is_simple_arg.
5644         (is_simple_arg): Don't assume registers are four bytes long.
5645         Exclude all double arguments.  Extended floats are not simple
5646         args.
5647         (is_power_of_two): New function.
5648         (pass_by_copy_ref): Call is_power_of_two, and check that the
5649         length fits in a register, rather than listing all the acceptable
5650         sizes.  Extended floats are not passed by reference.
5651         (s390_push_arguments): Don't assume registers are four bytes long.
5652         Reserve an argument register to point to the buffer for structures
5653         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5654         S390_STACK_FRAME_OVERHEAD.
5655
5656 2003-06-30  Andreas Schwab  <schwab@suse.de>
5657
5658         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5659         format error message.
5660
5661 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
5662
5663         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5664
5665 2003-06-30  David Carlton  <carlton@kealia.com>
5666
5667         Band-aid for PR c++/1245.
5668         * Makefile.in (cp-support.o): Depend on complaints_h.
5669         * cp-support.c: Include complaints.h.  Add declaration for
5670         find_last_component.
5671         (cp_find_first_component): Separate code into
5672         cp_find_first_component_aux.
5673         (cp_find_first_component_aux): Call demangled_name_complaint.
5674         (demangled_name_complaint): New.
5675
5676 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5677
5678         * remote.c (remote_write_bytes): Explicitly compute and then use
5679         the payload size.  Update comments to reflect.  Fixes problem of
5680         GDB not sending small packets as found by Fred Fish.
5681
5682 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5683
5684         * remote.c (remote_async_wait): Fix -Wformat problem.
5685
5686 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5687
5688         * remote.c (remote_wait): Call error, and not warning, when the
5689         packet is corrupt.
5690         (remote_async_wait): Ditto.
5691
5692 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5693
5694         * sparc-tdep.c (sparc_y_regnum): Make external again.
5695
5696 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5697
5698         * cli/cli-logging.c (pop_output_files): Add void to function
5699         definition.
5700
5701 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5702
5703         * frame.c (frame_register_unwind): Use unsigned char when dumping
5704         the buffer contents.
5705
5706 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
5707
5708         * cli/cli-logging.c: New file.
5709         * cli-out.c (struct ui_out_data): Add original_stream.
5710         (cli_redirect): New function.
5711         (cli_ui_out_impl): Add cli_redirect.
5712         (cli_out_new): Initialize original_stream.
5713         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5714         (uo_redirect, ui_out_redirect): New.
5715         * ui-out.h (struct ui_out_impl): Add redirect member.
5716         (redirect_ftype): New.
5717         (ui_out_redirect): Add prototype.
5718         * Makefile.in: Add rules for cli-logging.c.
5719         * NEWS: Mention "set logging".
5720
5721 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5722
5723         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5724
5725 2003-06-27  Andrew Cagney  <cagney@redhat.com>
5726
5727         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5728         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5729         * avr-tdep.c (avr_call_dummy_address): Delete function.
5730         (avr_gdbarch_init): Do not set call_dummy_address.
5731
5732 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5733
5734         * symfile.c (syms_from_objfile): Move variables to inner block.
5735         Move the checks for the non-mainline case a bit earlier to avoid
5736         doing some useless computations.
5737
5738 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5739
5740         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5741
5742 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
5743
5744         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5745         sections.
5746
5747 2003-06-26  Michael Chastain  <mec@shout.net>
5748
5749         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5750         gdb/testsuite/gdb.c++/pr-1210.exp.
5751
5752 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5753
5754         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5755         altivec_expression.h and altivec_registers.h.
5756
5757 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5758
5759         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5760         info->mach when MIPS16.  Patch suggested by Fred Fish.
5761
5762 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5763
5764         * utils.c (internal_vproblem): Print the problem to a reason
5765         buffer and then pass to query.  Make the msg variable more local.
5766
5767 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5768
5769         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5770         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5771         * gdbarch.h, gdbarch.c: Re-generate.
5772         * frame-base.c (default_frame_args_address): Update.  Use
5773         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5774         not available.
5775         (default_frame_locals_address): Ditto for
5776         DEPRECATED_FRAME_LOCALS_ADDRESS.
5777         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5778         (vax_frame_num_args): Update.
5779         (vax_gdbarch_init): Update.
5780         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5781         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5782         * mcore-tdep.c (mcore_gdbarch_init): Update.
5783         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5784         * ia64-tdep.c (ia64_gdbarch_init): Update.
5785         * symtab.h (address_class): Update comments.
5786         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5787         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5788         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5789         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5790         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5791         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5792         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5793         * alpha-mdebug-tdep.c: Update.
5794         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5795
5796 2003-06-26  Andreas Jaeger  <aj@suse.de>
5797
5798         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5799         of SSE registers so that varargs functions work.  Rework handling
5800         of passing arguments on the stack.
5801         (x86_64_store_return_value): Return double and float values in SSE
5802         register.
5803
5804 2003-06-24  Michael Chastain  <mec@shout.net>
5805
5806         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5807         the "constructor breakpoints ignored" bug.
5808
5809 2003-06-25  David Carlton  <carlton@kealia.com>
5810
5811         * MAINTAINERS: Update e-mail address.
5812
5813 2003-06-24  Jim Blandy  <jimb@redhat.com>
5814
5815         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5816
5817         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5818         function.
5819         (ppc_linux_init_abi): Register it as the
5820         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5821
5822         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5823         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5824         method.
5825
5826         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5827         (ppc64_standard_linkage_target): Use it.
5828
5829 2003-06-23  Andrew Cagney  <cagney@redhat.com>
5830
5831         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5832         for 0 "int0" and 4 "int32" sized registers.
5833         * gdbtypes.c (builtin_type_int0): Define.
5834         (build_gdbtypes): Initialize builtin_type_int0.
5835         * gdbtypes.h (builtin_type_int0): Declare.
5836
5837 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
5838
5839         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5840         as characters are unsigned.
5841
5842 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5843
5844         PR gdb/1179
5845         * dwarfread.c (struct_type): Skip static fields without crashing.
5846
5847 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5848
5849         GDB 6.0 branch created.
5850         * README: Update.
5851         * PROBLEMS: Update.  Empty.
5852         * NEWS: Update.
5853
5854 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5855
5856         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5857         Suggested by Nick Hibma <n_hibma@webweaving.org>.
5858
5859 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5860
5861         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5862         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5863         Velikov.
5864
5865 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5866
5867         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5868         compilers.
5869
5870 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5871
5872         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5873         argument of val_print.
5874         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5875         to the address argument of baseclass_offset or target_read_memory.
5876         Do add it to the argument of cp_print_value_fields.
5877
5878 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5879
5880         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5881         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5882         instead of 0..NUM_REGS.
5883         (mips_register_reggroup_p): New function.
5884         (mips_pseudo_register_write): New function.
5885         (mips_pseudo_register_read): New function.
5886         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5887         based on the register's type.
5888         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5889         cooked.
5890         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5891         pseudo / cooked.
5892         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5893         (mips_register_type): Replace mips_register_virtual_type.  Map
5894         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5895         when available.
5896         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5897         that the register is cooked / virtual.
5898         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5899         Only get the extra info when needed.
5900         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5901         (mips32_heuristic_proc_desc): Fetch the cooked register.
5902         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5903         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5904         (mips_print_register): Use gdbarch_register_type, instead of
5905         REGISTER_VIRTUAL_TYPE.
5906         (print_gp_register_row): Use gdbarch_register_type, instead of
5907         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5908         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5909         Print the pseudo / cooked registers.
5910         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5911         Print the pseudo / cooked registers.
5912         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5913         REG_NUM is pseudo / cooked.
5914         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5915         (mips_n32n64_xfer_return_value): Ditto.
5916         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5917         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5918         (mips_register_sim_regno): New function.
5919         (mips_gdbarch_init): Set deprecated_register_byte,
5920         register_group_p, pseudo_register_write, pseudo_register_read,
5921         register_sim_regno, and num_pseudo_regs.  Set register_type,
5922         instead of register_virtual_type.
5923         * Makefile.in (mips-tdep.o): Update dependencies.
5924         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5925         REGISTER_VIRTUAL_TYPE.
5926         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5927         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5928         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5929         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5930         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5931
5932 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5933
5934         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5935         * cli/cli-cmds.c: Include "gdb_vfork.h".
5936         (shell_escape): Use vfork.
5937
5938 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5939
5940         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5941         32 bit floating-point register saves.
5942
5943         * frame.h (deprecated_unwind_get_saved_register): Delete.
5944         * frame.c (deprecated_unwind_get_saved_register): Delete function.
5945         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5946         and deprecated_get_next_frame_hack instead of
5947         deprecated_unwind_get_saved_register.
5948
5949         * mips-tdep.c (mips_dump_tdep): Do not print
5950         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5951
5952         * frame.c (get_frame_register): New function.
5953         (frame_unwind_register_signed): New function.
5954         (get_frame_register_signed): New function.
5955         (frame_unwind_register_unsigned): New function.
5956         (get_frame_register_unsigned): New function.
5957         * frame.h: Add comments on naming schema.
5958         (get_frame_register, frame_unwind_register_signed): Declare.
5959         (get_frame_register_signed, get_frame_register_signed): Declare.
5960         (frame_unwind_register_unsigned): Declare.
5961         (get_frame_register_unsigned): Declare.
5962
5963 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5964
5965         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5966
5967 2003-06-20  Theodore A. Roth  <troth@openavr.org>
5968
5969         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5970         (avr_read_sp): Ditto.
5971
5972 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
5973
5974         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5975         * config/arm/nm-linux.h: Likewise.
5976         * config/arm/tm-linux.h: Likewise.
5977         * config/ia64/nm-linux.h: Likewise.
5978         * config/ia64/tm-ia64.h: Likewise.
5979         * config/s390/tm-linux.h: Likewise.
5980         * config/s390/tm-s390.h: Likewise.
5981         * s390-nat.c: Likewise.
5982         * s390-tdep.c: Likewise.
5983
5984         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5985         * config/ia64/linux.mt: Likewise.
5986         * config/m68k/linux.mh: Likewise.
5987         * config/mips/linux.mt: Likewise.
5988         * config/powerpc/linux.mh: Likewise.
5989         * config/sh/linux.mt: Likewise.
5990
5991 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
5992
5993         * solib.c (solib_open): Change tests for whether to search
5994         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
5995         comments.
5996
5997 2003-06-19  Theodore A. Roth  <troth@openavr.org>
5998
5999         * avr-tdep.c (avr_frame_address): Delete function.
6000         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6001         set_gdbarch_frame_args_address.
6002
6003 2003-06-19  Andrew Cagney  <cagney@redhat.com>
6004
6005         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6006         (REGISTER_CONVERT_FROM_TYPE): Delete.
6007         (mips_register_convert_to_type): Delete declaration.
6008         (mips_register_convert_from_type): Delete declaration.
6009         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
6010         kernel/.
6011
6012 2003-06-19  Michael Snyder  <msnyder@redhat.com>
6013
6014         * linux-nat.h: New file.
6015         * linux-nat.c: Include linux-nat.h.
6016         * lin-lwp.c: Include linux-nat.h.
6017         Move struct lwp_info def to linux-nat.h.
6018         * linux-proc.c: Include linux-nat.h.
6019         (linux_make_note_section): Iterate over lwps instead of threads.
6020         (linux_do_thread_registers): Use lwp instead of merged pid.
6021         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6022         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6023         Add dependency on linux_nat_h.
6024
6025 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6026
6027         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6028
6029 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6030
6031         * varobj.c (get_type, get_target_type): Use check_typedef.
6032
6033 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6034
6035         * breakpoint.c (insert_catchpoint): Call internal_error.
6036
6037 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6038
6039         * avr-tdep.c (avr_push_dummy_code): Delete function.
6040         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6041
6042 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6043
6044         * arch-utils.c (default_prepare_to_proceed): Remove.
6045         (generic_prepare_to_proceed): Remove.
6046         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6047         (generic_prepare_to_proceed): Remove prototype.
6048         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6049         * gdbarch.c: Regenerate.
6050         * gdbarch.h: Regenerate.
6051         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6052         * hppah-nat.c (hppa_switched_threads): Remove.
6053         * infrun.c (prepare_to_proceed): New static function, copied from
6054         generic_prepare_to_proceed.  Remove select_it argument.
6055         (proceed): Call prepare_to_proceed.
6056         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6057         variables.
6058         (ptrace_wait): Don't set the removed variables.
6059         (hppa_switched_threads): Remove.
6060         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6061         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6062         (lin_lwp_prepare_to_proceed): Remove prototype.
6063         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6064         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6065
6066 2003-06-18  Theodore A. Roth  <troth@openavr.org>
6067
6068         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6069         trad-frame.h.
6070         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6071         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6072         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6073         (AVR_PROLOGUE_*): Enumerate prologue types.
6074         (struct frame_extra_info): Remove.
6075         (struct avr_unwind_cache): Define.
6076         (avr_write_sp): Delete function.
6077         (avr_read_fp): Ditto.
6078         (avr_init_extra_frame_info): Ditto.
6079         (avr_pop_frame): Ditto.
6080         (avr_frame_saved_pc): Ditto.
6081         (avr_saved_pc_after_call): Ditto.
6082         (avr_push_return_address): Ditto.
6083         (avr_frame_chain): Ditto.
6084         (avr_store_struct_return): Ditto.
6085         (avr_push_arguments): Ditto.
6086         (avr_scan_prologue): Update comments. Changed to set up the info for
6087         cache unwinding. Now returns end of prologue PC.
6088         (avr_skip_prologue): Better handling of functions lacking a prologue
6089         by using avr_scan_prologue.
6090         (avr_scan_arg_moves): New function.
6091         (avr_saved_regs_unwinder): Ditto.
6092         (avr_frame_unwind_cache): Ditto.
6093         (avr_unwind_pc): Ditto.
6094         (avr_frame_this_id): Ditto.
6095         (avr_frame_prev_register): Ditto.
6096         (avr_frame_p): Ditto.
6097         (avr_frame_base_address ): Ditto.
6098         (avr_unwind_dummy_id): Ditto.
6099         (avr_push_dummy_code): Ditto.
6100         (push_stack_item): Ditto.
6101         (pop_stack_item): Ditto.
6102         (avr_push_dummy_call): Ditto.
6103         (struct stack_item): Define.
6104         (avr_frame_unwind): Declare structure.
6105         (avr_frame_base): Ditto.
6106         (avr_gdbarch_init): Remove calls to
6107         set_gdbarch_deprecated_init_frame_pc,
6108         set_gdbarch_deprecated_target_read_fp,
6109         set_gdbarch_deprecated_dummy_write_sp,
6110         set_gdbarch_deprecated_fp_regnum,
6111         set_gdbarch_deprecated_push_arguments,
6112         set_gdbarch_deprecated_push_return_address,
6113         set_gdbarch_deprecated_pop_frame,
6114         set_gdbarch_deprecated_store_struct_return,
6115         set_gdbarch_deprecated_frame_init_saved_regs,
6116         set_gdbarch_deprecated_init_extra_frame_info,
6117         set_gdbarch_deprecated_frame_chain,
6118         set_gdbarch_deprecated_frame_saved_pc,
6119         set_gdbarch_deprecated_saved_pc_after_call.
6120         Add calls to set_gdbarch_push_dummy_call,
6121         set_gdbarch_push_dummy_code,
6122         frame_unwind_append_predicate,
6123         frame_base_set_default,
6124         set_gdbarch_unwind_dummy_id,
6125         set_gdbarch_unwind_pc.
6126         Wrap a long line.
6127
6128 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
6129
6130         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6131         registers for H8/300S.
6132         (h8300_print_registers_info): Ditto.
6133         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6134
6135 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
6136
6137         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6138         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6139         (lin_lwp_wait): Likewise.  Update comments.
6140         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6141         (pull_pid_from_list, linux_record_stopped_pid): New.
6142
6143 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6144
6145         * ada-lang.c (scan_discrim_bound): Name first argument.
6146         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6147         declared by ALL_BLOCK_SYMBOLS.
6148
6149 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6150
6151         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6152         ("regcache.h"): Include it.
6153         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6154
6155 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6156
6157         * NEWS: Mention gdbserver detach change and "disconnect" command.
6158         * infcmd.c (disconnect_command): New function.
6159         (_initialize_infcmd): Add ``disconnect'' command.
6160         * remote.c (remote_async_detach): Delete.
6161         (remote_detach): Merge remote_async_detach.
6162         (remote_disconnect): New.
6163         (init_remote_ops): Set to_disconnect.
6164         (init_remote_cisco_ops): Likewise.
6165         (init_remote_async_ops): Likewise.  Use remote_detach.
6166         * target.c (cleanup_target): Default to_disconnect.
6167         (update_current_target): Inherit to_disconnect.
6168         (target_disconnect, debug_to_disconnect): New functions.
6169         (setup_target_debug): Set to_disconnect.
6170         * target.h (struct target_ops): Add to_disconnect.
6171         (target_disconnect): Add prototype.
6172
6173 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6174
6175         * breakpoint.c (insert_catchpoint): New function.
6176         (insert_breakpoints): Use catch_exceptions to call
6177         insert_catchpoint.  Disable catchpoints if they fail to insert.
6178
6179 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6180
6181         * symfile.c (reread_symbols): Clear sym_private.
6182
6183 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6184
6185         * trad-frame.h (struct frame_info): Add opaque declaration.
6186         * remote-fileio.h (struct cmd_list_element): Add opaque
6187         declaration.
6188         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6189         comments.
6190
6191 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6192
6193         * remote.c (remote_prepare_to_store): Replace call to
6194         deprecated_read_register_bytes with multiple regcache_raw_read
6195         calls.
6196
6197 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6198
6199         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6200         (nto_find_and_open_solib): Likewise.
6201         (nto_init_solib_absolute_prefix): Likewise.
6202         (_initialize_nto_tdep): Fix indentation.
6203
6204 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6205
6206         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6207
6208 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6209
6210         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6211
6212 2003-06-17  Jim Blandy  <jimb@redhat.com>
6213
6214         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6215
6216 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6217
6218         * avr-tdep.c (avr_extract_return_value): New function.
6219         (avr_gdbarch_init): Set extract_return_value method.
6220
6221 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6222
6223         * frame.h (deprecated_get_next_frame_hack): Declare.
6224         * frame.c (legacy_saved_regs_prev_register): Only require
6225         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6226         there are always saved regs.
6227         (deprecated_generic_get_saved_register): Do not require
6228         DEPRECATED_FRAME_INIT_SAVED_REGS.
6229         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6230         use frame ID unwind instead.
6231         (deprecated_get_next_frame_hack): New function.
6232
6233 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6234
6235         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6236         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6237         (h8300_push_return_address): Remove.
6238         (h8300_gdbarch_init): Remove calls to
6239         set_gdbarch_deprecated_dummy_write_sp,
6240         set_gdbarch_deprecated_push_arguments and
6241         set_gdbarch_deprecated_push_return_address.
6242         Add call to set_gdbarch_push_dummy_call.
6243
6244 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6245
6246         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6247         (E_PSEUDO_EXR_REGNUM): Ditto.
6248         (h8300_is_argument_spill): Check for instructions moving argument
6249         registers into safe registers.
6250         (h8300_skip_prologue): Check for stm instruction to push registers
6251         used for register variables onto stack.
6252         (gdb_print_insn_h8300): Remove.
6253         (h8300_examine_prologue): Add a comment.
6254         (h8300_register_name): Take pseudo registers into account.
6255         (h8300s_register_name): Ditto.
6256         (h8300sx_register_name): Ditto.
6257         (h8300_print_register): Ditto.
6258         (h8300_print_registers_info): Define "nice" printing order.
6259         (h8300_saved_pc_after_call): Take pseudo registers into account.
6260         (h8300_register_type): Ditto.  Return type used for remote connection
6261         when requesting real CCR or EXR register, return actual type when
6262         requesting pseudo CCR or EXR.
6263         (h8300_pseudo_register_read): New function.
6264         (h8300_pseudo_register_write): Ditto.
6265         (h8300_dbg_reg_to_regnum): Ditto.
6266         (h8300s_dbg_reg_to_regnum): Ditto.
6267         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6268         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6269         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6270         set_gdbarch_print_insn architecture dependent.
6271         Call set_gdbarch_pseudo_register_read and
6272         set_gdbarch_pseudo_register_write.
6273         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6274
6275 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6276
6277         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6278         * gdbarch.h, gdbarch.c: Re-generate.
6279         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6280         * s390-tdep.c (s390_gdbarch_init): Update.
6281         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6282         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6283         * mips-tdep.c (mips_gdbarch_init): Update.
6284         * mcore-tdep.c (mcore_gdbarch_init): Update.
6285         * cris-tdep.c (cris_gdbarch_init): Update.
6286         * infcall.c (call_function_by_hand): Update.
6287         * ia64-tdep.c (ia64_push_arguments): Update comment.
6288         * frame.c (legacy_get_prev_frame): Do not assume
6289         SAVE_DUMMY_FRAME_TOS_P.
6290         * dummy-frame.c (find_dummy_frame): Update comment.
6291
6292 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6293
6294         * regcache.c (do_cooked_read): Do not use register_valid_p.
6295
6296 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6297
6298         * avr-tdep.c (avr_register_type): Remove a blank line.
6299         (avr_scan_prologue): Correct some comments.
6300
6301 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6302
6303         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6304         prologue types.
6305         Properly scan prologues generated by gcc with the -mcall-prologues
6306         option.
6307         Add code to scan -mcall-prologues for mega devices.
6308
6309 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6310
6311         * avr-tdep.c (avr_register_byte): Delete function.
6312         (avr_register_raw_size): Delete function.
6313         (avr_register_virtual_size): Delete function.
6314         (avr_register_virtual_type): Delete function.
6315         (avr_register_type): New function.
6316         (avr_address_to_pointer): Remove unused code.
6317         (avr_read_fp): Need to read FP as two separate bytes due to change to
6318         avr_register_type() usage.
6319         (avr_gdbarch_init): Don't set deprecated_register_size.
6320         Don't set deprecated_register_bytes.
6321         Don't set deprecated_register_byte.
6322         Don't set deprecated_register_raw_size.
6323         Don't set deprecated_max_register_raw_size.
6324         Don't set deprecated_register_virtual_size.
6325         Don't set deprecated_max_register_virtual_size.
6326         Don't set deprecated_register_virtual_type.
6327         Set register_type method.
6328
6329 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6330
6331         * Makefile.in (linux-nat.o): Add rule.
6332         * linux-nat.c: New file.
6333         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6334         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6335         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6336         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6337         * config/arm/linux.mh (NATDEPFILES): Likewise.
6338         * config/i386/linux.mh (NATDEPFILES): Likewise.
6339         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6340         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6341         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6342         * config/mips/linux.mh (NATDEPFILES): Likewise.
6343         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6344         * config/s390/s390.mh (NATDEPFILES): Likewise.
6345         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6346
6347 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6348
6349         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6350         replace out-of-date comment.
6351
6352 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6353
6354         * rdi-share/host.h (Fail): Change to a varargs function.
6355         * remote-rdi.c (Fail): Update.
6356
6357 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6358
6359         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6360         (i386_convert_register_p, i386_register_to_value,
6361         i386_register_from_value): Handle types longer than 8 bytes.
6362
6363 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6364
6365         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6366         Move floating-point code to new function in i387-tdep.c.
6367         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6368         New functions containing code moved here from i386-tdep.c.
6369         * i387-tdep.h: Add opaque declaration for `struct type'.
6370         (i387_register_to_value, i387_value_to_register): New prototypes.
6371         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6372         (x86_64_init_abi): Set convert_register_p, register_to_value and
6373         value_to_register here.
6374
6375 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6376
6377         * mips-tdep.c (mips_register_to_value): Make static.
6378         (mips_value_to_register): Make static.
6379         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6380         * ia64-tdep.c (ia64_register_raw_size): Make static.
6381         (ia64_register_virtual_size): Make static.
6382         (ia64_register_byte): Make static.
6383         * i387-tdep.c: Include "i387-tdep.h".
6384         (print_387_control_word): Delete function.
6385         (print_387_status_word): Delete function.
6386         (print_387_status_bits): Delete function.
6387         (print_387_control_bits): Delete function.
6388         * Makefile.in (i387-tdep.o): Update dependencies.
6389         * rdi-share/host.h (Fail): Declare.
6390         * remote-rdi.c (Fail): Update to match declaration.
6391
6392 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6393
6394         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6395         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6396         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6397         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6398         * README: Delete reference to remote-array.
6399         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6400         (remote-array.o): Delete target.
6401         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6402         * remote-array.c: Delete file.
6403
6404 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6405             Mark Kettenis  <kettenis@gnu.org>
6406
6407         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6408         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6409         parameter with "frame".
6410         * gdbarch.h, gdbarch.c: Re-generate.
6411         * frame.h (put_frame_register): Declare.
6412         * frame.c (put_frame_register): New function.
6413         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6414         (legacy_register_to_value): Rewrite, use "frame" to get the
6415         register value.
6416         (legacy_value_to_register): Rewrite, use "frame" to find the
6417         register's location before storing.
6418         * arch-utils.h (legacy_convert_register_p): Update.
6419         (legacy_register_to_value, legacy_value_to_register): Update.
6420         * findvar.c (value_from_register): Rewrite, eliminate use of
6421         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6422         "frame" to REGISTER_TO_VALUE.
6423         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6424         lval_reg_frame_relative + lval_register branch of the switch.  Do
6425         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6426         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6427         I386_EDI_REGNUM): New defines.
6428         (i386_next_regnum, i386_convert_register_p,
6429         i386_register_to_value, i386_value_to_register): New functions.
6430         (i386_register_convertible, i386_register_convert_to_virtual,
6431         i386_convert_to_raw): Remove functions.
6432         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6433         value_to_register instead of register_convertible,
6434         register_convert_to_virtual and register_convert_to_raw.
6435         * mips-tdep.c (mips_convert_register_p): New function.
6436         (mips_value_to_register): Replace mips_register_convert_from_type.
6437         (mips_register_to_value): Replace mips_register_convert_to_type.
6438         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6439         register_to_value.
6440         * alpha-tdep.c (alpha_convert_register_p): Update.
6441         (alpha_value_to_register): Update, store the register.
6442         (alpha_register_to_value): Update, fetch the register.
6443
6444 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6445
6446         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6447         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6448         Don't set deprecated_call_dummy_words.
6449         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6450         Don't set remote_translate_xfer_address.
6451         (avr_io_reg_read_command): Remove commented out debug printf.
6452         Wrap a long line.
6453
6454 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6455
6456         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6457         causes gdb to seg fault.
6458
6459 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
6460
6461         * sparc-nat.c (fetch_inferior_registers): Correct
6462         a reference to "registers".
6463
6464 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
6465
6466         * Makefile.in (exc_request_U_h): Define
6467         (exc_request_S_h): Likewise.
6468         (msg_reply_S_h): Likewise.
6469         (msg_U_h): Likewise.
6470         (notify_S_h): Likewise.
6471         (process_reply_S_h): Likewise.
6472         (gnu-nat.o): Depend on gdb_obstack_h
6473         * gnu-nat.c: Include "gdb_obstack.h".
6474
6475 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6476
6477         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6478         * gdbarch.h, gdbarch.c: Re-generate.
6479
6480 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6481
6482         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6483         when deprecated REGISTER macros can be deleted.
6484         * gdbarch.h, gdbarch.c: Re-generate.
6485
6486 2003-06-13  Jim Blandy  <jimb@redhat.com>
6487
6488         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6489         Linux entry point symbols for _dl_debug_state, too.
6490
6491 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6492
6493         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6494         available, do not use the FP register, and always save the TOS.
6495         * dummy-frame.c (dummy_frame_this_id): Do not assert
6496         SAVE_DUMMY_FRAME_TOS.
6497         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6498         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6499         (i386_push_dummy_call): Add 8 to the returned SP.
6500         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6501         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6502         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6503         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6504         (x86_64_push_dummy_call): Return "sp + 16".
6505         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6506         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6507         save_dummy_frame_tos.
6508
6509 2003-06-13  Jim Blandy  <jimb@redhat.com>
6510
6511         * frv-tdep.c (frv_use_struct_convention): Delete static
6512         declaration for function deleted in my change of 2003-06-12.
6513
6514 2003-06-13  Theodore A. Roth  <troth@openavr.org>
6515
6516         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6517         (avr_pointer_to_address): Shift code addrs left 1 bit.
6518         (avr_convert_from_func_ptr_addr): Delete function since operation is
6519         better handled by avr_address_to_pointer and avr_pointer_to_address.
6520         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6521
6522 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
6523
6524         From Kelley Cook  <kelleycook@wideopenwest.com>:
6525         * configure.host: Accept i[34567]86 variants.
6526         * configure.tgt: Likewise.
6527         * nlm/configure.in: Likewise.
6528         * nlm/configure: Regenerated.
6529
6530 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
6531
6532         * arm-tdep.c (solib-svr4.h): Dont' include it.
6533         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6534         * arm-linux-tdep.c: ... here.  Make static.
6535         (arm_linux_init_abi): Register it.
6536         (solib-svr4.h): Include it.
6537         * Makefile.in: Update dependencies.
6538         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6539         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6540
6541 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6542
6543         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6544         indicate registers used for return values.
6545         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6546         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6547         members.
6548         (h8300_init_extra_frame_info): Ditto.
6549         (h8300_frame_locals_address): Removed.
6550         (h8300_frame_args_address): Removed.
6551         (h8300_extract_return_value): Use new regcache structure. Only care
6552         for 16 bit CPUs.
6553         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6554         (h8300_store_return_value): Use new regcache structure. Only care
6555         for 16 bit CPUs.
6556         (h8300h_store_return_value): Same function for 32 bit CPUs.
6557         (h8300_store_struct_return): Removed.
6558         (h8300_extract_struct_value_address): Use new regcache structure.
6559         (h8300h_extract_struct_value_address): Removed.
6560         (h8300_push_dummy_code): New function.
6561         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6562         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6563         set_gdbarch_store_return_value architecture dependent.
6564         Call set_gdbarch_push_dummy_code and
6565         set_gdbarch_extract_struct_value_address.
6566         Remove calls to set_gdbarch_frame_args_address,
6567         set_gdbarch_frame_locals_address,
6568         set_gdbarch_deprecated_store_struct_return,
6569         set_gdbarch_deprecated_extract_return_value,
6570         set_gdbarch_deprecated_extract_struct_value_address,
6571         set_gdbarch_deprecated_call_dummy_words and
6572         set_gdbarch_deprecated_sizeof_call_dummy_words.
6573
6574 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6575
6576         * h8300-tdep.c (h8300_register_byte): Remove.
6577         (h8300h_register_byte): Remove.
6578         (h8300_register_virtual_type): Remove.  Substitute by...
6579         (h8300_register_type): New function.
6580         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6581         (h8300h_extract_struct_value_address): Ditto.
6582         (h8300_gdbarch_init): Drop calls to
6583         set_gdbarch_deprecated_register_byte and
6584         set_gdbarch_deprecated_register_virtual_type.
6585         Add call to set_gdbarch_register_type.
6586
6587 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6588
6589         * gdbarch.sh: Update comments on registers.
6590         (deprecated_register_byte): Rename register_byte.
6591         (deprecated_register_raw_size): Rename register_raw_size.
6592         (deprecated_register_virtual_size): Rename register_virtual_size.
6593         (deprecated_register_virtual_type): Rename register_virtual_type.
6594         * gdbarch.h, gdbarch.c: Re-generate.
6595         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6596         * vax-tdep.c (vax_gdbarch_init): Update.
6597         * v850-tdep.c (v850_gdbarch_init): Update.
6598         * sparc-tdep.c (sparc_gdbarch_init): Update.
6599         * sh-tdep.c (sh_gdbarch_init): Update.
6600         * s390-tdep.c (s390_gdbarch_init): Update.
6601         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6602         * ns32k-tdep.c: Update.
6603         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6604         * mips-tdep.c (mips_gdbarch_init): Update.
6605         * mcore-tdep.c (mcore_gdbarch_init): Update.
6606         * m68k-tdep.c (m68k_gdbarch_init): Update.
6607         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6608         * ia64-tdep.c (ia64_gdbarch_init): Update.
6609         * hppa-tdep.c (hppa_gdbarch_init): Update.
6610         * h8300-tdep.c (h8300_gdbarch_init): Update.
6611         * frv-tdep.c (frv_gdbarch_init): Update.
6612         * cris-tdep.c (cris_gdbarch_init): Update.
6613         * avr-tdep.c (avr_gdbarch_init): Update.
6614         * alpha-tdep.c (alpha_gdbarch_init): Update.
6615         * arm-tdep.c (arm_gdbarch_init): Update.
6616
6617 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6618
6619         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6620         mips_o32_use_struct_convention with always_use_struct_convention.
6621
6622 2003-06-12  David Carlton  <carlton@kealia.com>
6623
6624         * cp-namespace.c (cp_set_block_scope): Comment out
6625         processing_has_namespace_info branch.
6626
6627 2003-06-12  Jim Blandy  <jimb@redhat.com>
6628
6629         Recognize and skip 64-bit PowerPC Linux linkage functions.
6630         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6631         insn_pattern, insns_match_pattern, d_field, ds_field): New
6632         functions, macros, and types for working with PPC instructions.
6633         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6634         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6635         ppc64_skip_trampoline_code): New functions, variables, and macros
6636         for recognizing and skipping linkage functions.
6637         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6638         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6639
6640         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6641         register offsets for both the 32- and 64-bit interfaces.
6642
6643         Actually finish the job started by my change of 2003-05-29.
6644         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6645         other #definition of this.
6646         (ppc_linux_skip_trampoline_code): Remove declaration.
6647         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6648         static.
6649         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6650         method for GDBARCH.
6651
6652         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6653         'long' on ppc64-*-linux*.
6654
6655         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6656         isn't #defined, assume the register doesn't exist: act as if
6657         tdep->ppc_mq_regnum were -1.
6658
6659         * configure.host, configure.tgt: Add entries for
6660         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6661         powerpc/linux.mt.
6662         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6663         New files.
6664
6665         * arch-utils.c (always_use_struct_convention): New function.
6666         * arch-utils.h (always_use_struct_convention): New prototype.
6667         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6668         (alpha_gdbarch_init): Register always_use_struct_convention,
6669         instead of alpha_use_struct_convention.
6670         * cris-tdep.c (cris_use_struct_convention): Delete.
6671         (cris_gdbarch_init): Register always_use_struct_convention,
6672         instead of cris_use_struct_convention.
6673         * frv-tdep.c (frv_use_struct_convention): Delete.
6674         (frv_gdbarch_init): Register always_use_struct_convention,
6675         instead of frv_use_struct_convention.
6676         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6677         (h8300_gdbarch_init): Register always_use_struct_convention,
6678         instead of h8300_use_struct_convention.
6679         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6680         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6681         instead of mips_o32_use_struct_convention.
6682
6683 2003-06-12  Andrew Cagney  <cagney@redhat.com>
6684
6685         * wince.c: Include "mips-tdep.h".
6686         * mips-tdep.h (mips_next_pc): Declare.
6687         * mcore-tdep.c: Make more local functions static.
6688         * Makefile.in (wince.o): Update dependencies.
6689
6690 2003-06-12  David Carlton  <carlton@kealia.com>
6691
6692         * symtab.c (lookup_symbol_aux_minsyms): Replace
6693         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6694         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6695         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6696         SYMBOL_NATURAL_NAME.
6697
6698 2003-06-12  Andreas Schwab  <schwab@suse.de>
6699
6700         * Makefile.in (tuiDisassem.o): Update dependencies.
6701
6702 2003-06-12  David Carlton  <carlton@bactrian.org>
6703
6704         * symtab.h: Delete declaration of make_symbol_overload_list.
6705         Add declaration of lookup_partial_symbol.
6706         * symtab.c (remove_params): Move to cp-support.c.
6707         (overload_list_add_symbol, make_symbol_overload_list)
6708         (sym_return_val_size, sym_return_val_index): Ditto.
6709         (lookup_partial_symbol): Make extern.
6710         * cp-support.h: Add declaration of make_symbol_overload_list.
6711         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6712         symtab.h, and block.h.
6713         (remove_params): Move here from symtab.c.
6714         (overload_list_add_symbol, make_symbol_overload_list)
6715         (sym_return_val_size, sym_return_val_index): Ditto.
6716         * valops.c: Include cp-support.h.
6717         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6718         frame_h, and block_h.
6719         (valops.o): Depend on cp_support_h.
6720
6721 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
6722
6723         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6724         substitute by NUM_REGS throughout.
6725         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6726         (h8300s_register_name): New function for H8S registers.
6727         (h8300sx_register_name): Ditto for H8SX registers.
6728         (h8300_print_register): Revise register printing, avoid depending
6729         on 32 bit long.
6730         (h8300_register_byte): Only care for H8/300 registers.
6731         (h8300h_register_byte): New function for any other architecture.
6732         (h8300_register_raw_size): Remove.
6733         (h8300_register_virtual_type): Revise to return actually useful
6734         type.
6735         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6736         (h8300h_extract_struct_value_address): New function for any other
6737         architecture.
6738         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6739         set_gdbarch_register_name, set_gdbarch_register_byte,
6740         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6741         Remove calls to set_gdbarch_deprecated_register_size,
6742         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6743         set_gdbarch_deprecated_max_register_raw_size,
6744         set_gdbarch_register_virtual_size and
6745         set_gdbarch_deprecated_max_register_virtual_size entirely.
6746         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6747         set_gdbarch_long_double_bit.
6748
6749 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6750
6751         * doublest.c (convert_doublest_to_floatformat): When dealing
6752         with the implied integer bit, only alter mant_bits if we are
6753         processing a full 32 bits of mantissa.
6754
6755 2003-06-11  David Carlton  <carlton@bactrian.org>
6756
6757         * dictionary.h: New.
6758         * dictionary.c: New.
6759         * block.h: Add opaque declaration for struct dictionary.
6760         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6761         'sym' members.
6762         (BLOCK_DICT): New macro.
6763         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6764         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6765         BLOCK_SHOULD_SORT.
6766         (ALL_BLOCK_SYMBOLS): Update definition.
6767         * Makefile.in (SFILES): Add dictionary.c.
6768         (dictionary_h): New.
6769         (COMMON_OBS): Add dictionary.o.
6770         (dictionary.o): New.
6771         (ada-lang.o): Depend on dictionary_h.
6772         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6773         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6774         (mi-cmd-stack.o): Ditto.
6775         (gdbtk-cmds.o): Update dependencies.
6776         (gdbtk-stack.o): Ditto.
6777         * ada-lang.c: Include dictionary.h.
6778         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6779         (fill_in_ada_prototype, debug_print_block): Ditto.
6780         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6781         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6782         'is_sorted'.
6783         * mdebugread.c: Include dictionary.h.
6784         (struct parse_stack): Delete 'maxsyms' member.
6785         (parse_symbol): Update calls to new_block.  Delete calls to
6786         shrink_block.  Use dictionary methods.
6787         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6788         Update calls to new_symtab.  Don't maintain maxsyms data.
6789         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6790         (add_symbol): Just call dict_add_symbol.
6791         (new_symtab): Delete 'maxsyms' argument.
6792         (new_symtab): Update calls to new_block.
6793         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6794         (shrink_block): Delete function.
6795         (fixup_sigtramp): Update call to new_block.  Add symbol via
6796         dict_add_symbol.
6797         * jv-lang.c: Include dictionary.h.
6798         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6799         appropriately.  Set class_symtab->free_func.  Make sure the
6800         blockvector is big enough to hold two blocks.
6801         (add_class_symtab_symbol): Use dictionary methods.
6802         (free_class_block): New function.
6803         (type_from_class): Replace explicit iteration by
6804         ALL_BLOCK_SYMBOLS.
6805         * symtab.h (struct symtab): Replace 'free_ptr' method by
6806         'free_func'.
6807         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6808         sort_symtab_syms.
6809         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6810         sort_symtab_syms.
6811         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6812         Include dictionary.h.
6813         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6814         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6815         sort_symtab_syms.
6816         * objfiles.c: Include dictionary.h.
6817         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6818         * buildsym.c: Include dictionary.h.
6819         (finish_block): Use dictionary methods.
6820         (end_symtab): Set free_func to NULL, not free_ptr.
6821         * tracepoint.c: Include dictionary.h.
6822         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6823         (scope_info): Ditto.
6824         * stack.c: Include dictionary.h.
6825         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6826         (print_block_frame_labels, print_frame_arg_vars)
6827         (print_frame_args): Ditto.
6828         * symmisc.c (free_symtab_block): Use dictionary methods.
6829         (dump_symtab): Ditto.
6830         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6831         Include dictionary.h.
6832         * symfile.h: Delete declarations of sort_block_syms,
6833         sort_symtab_syms.
6834         * symfile.c (sort_block_syms): Delete.
6835         (sort_symtab_syms): Delete.
6836         * symtab.c: Include dictionary.h.
6837         (lookup_block_symbol): Use dictionary iterators.
6838         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6839         (search_symbols, make_symbol_completion_list): Ditto.
6840         (make_symbol_overload_list): Ditto.
6841         * valops.c (value_of_local): Use dict_empty.
6842         Include dictionary.h.
6843
6844 2003-06-11  J. Brobecker  <brobecker@gnat.com>
6845
6846         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6847
6848 2003-06-11  David Carlton  <carlton@bactrian.org>
6849
6850         * block.h (BLOCK_SHOULD_SORT): Delete.
6851         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6852         blocks.
6853         * ada-lang.c (ada_add_block_symbols): Ditto.
6854         * symfile.c (sort_block_syms): Delete.
6855         (sort_symtab_syms): Ditto.
6856         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6857         declarations.
6858         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6859         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6860         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6861         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6862         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6863         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6864         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6865
6866 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6867
6868         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6869         bits to 128.
6870
6871 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6872
6873         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6874         REGISTER_CONVERTIBLE.
6875         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6876         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6877         * gdbarch.h, gdbarch.c: Re-generate.
6878         * arch-utils.h (deprecated_register_convertible_not): Rename
6879         generic_register_convertible_not.
6880         * arch-utils.c (deprecated_register_convertible_not): Rename
6881         generic_register_convertible.
6882         (legacy_convert_register_p, legacy_register_to_value): Update.
6883         * sh-tdep.c (sh64_push_arguments): Update.
6884         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6885         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6886         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6887         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6888         * arch-utils.c (legacy_value_to_register): Update.
6889         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6890         (rs6000_register_convert_to_raw): Make parameter "from" const.
6891         * mips-tdep.c (mips_gdbarch_init): Update.
6892         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6893         * infcmd.c (default_print_registers_info): Update.
6894         * ia64-tdep.c (ia64_gdbarch_init): Update.
6895         (ia64_register_convert_to_raw): Make parameter "from" const.
6896         * i386-tdep.c (i386_gdbarch_init): Update.
6897         (i386_register_convert_to_raw): Update.
6898
6899 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6900
6901         * remote-fileio.c: Include "remote-fileio.h".
6902         * Makefile.in (remote-fileio.o): Update dependencies.
6903         (remote_fileio_h): Fix typo.
6904
6905 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6906
6907         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6908         (xstormy16_save_dummy_frame_tos): Make static.
6909         (_initialize_xstormy16_tdep): Add declaration.
6910         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6911         * v850-tdep.c: Make local functions static.
6912         (_initialize_v850_tdep): Add declaration.
6913         * sparc-tdep.c: Make local functions static.
6914         (_initialize_sparc_tdep): Add declaration.
6915         * sh-tdep.c: Make local functions static.
6916         (_initialize_sh_tdep): Add declaration.
6917         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6918         * s390-tdep.c: Make local functions static.
6919         (_initialize_s390_tdep): Add declaration.
6920         * dbxread.c (find_stab_function_addr): Make static.
6921         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6922         * ocd.c (_initialize_remote_ocd): Add declaration.
6923         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6924         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6925         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6926         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6927         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6928         * remote-array.c (_initialize_array): Add declaration.
6929         (_initialize_remote_monitors): Add declaration.
6930         * remote-mips.c: Make local functions static.
6931         (_initialize_remote_mips): Add declaration.
6932         * mcore-tdep.c: Make all local functions static.
6933         (_initialize_mcore_tdep): Add declaration.
6934         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6935         * abug-rom.c (_initialize_abug_rom): Add declaration.
6936         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6937         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6938         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6939         * remote-est.c (_initialize_est): Add declaration.
6940         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6941         (m68hc11_call_dummy_address): Make static.
6942         * ia64-tdep.c: Make local functions static.
6943         (_initialize_ia64_tdep): Add declaration.
6944         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6945         * monitor.c (monitor_wait_filter): Make static.
6946         (_initialize_remote_monitors): Add declaration.
6947         * remote-hms.c (_initialize_remote_hms): Add declaration.
6948         * remote-e7000.c (fetch_regs_from_dump): Make static.
6949         (expect_n): Make static.
6950         (_initialize_remote_e7000): Add declaration.
6951         * ser-e7kpc.c: Always include "defs.h".
6952         (_initialize_ser_e7000pc): Add declaration.
6953         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6954         * cris-tdep.c: Make all but one function static.
6955         (_initialize_cris_tdep): Add declaration.
6956         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6957         * solib.c (update_solib_list): Make static.
6958         (_initialize_solib): Add declaration.
6959         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6960         (_initialize_avr_tdep): Add declaration.
6961         * remote-rdi.c (voiddummy): Make static.
6962         (_initialize_remote_rdi): Add declaration.
6963         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6964         * remote-rdp.c (send_rdp): Make static.
6965         (_initialize_remote_rdp): Add declaration.
6966         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6967
6968 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
6969
6970         * remote-fileio.c: Make ari happy.
6971
6972 2003-06-10  J. Brobecker  <brobecker@gnat.com>
6973
6974         * rs6000-nat.c (child_xfer_memory): Compute the right address when
6975         fetching the trailing bytes of the buffer we are about to write.
6976
6977 2003-06-10  Andrew Cagney  <cagney@redhat.com>
6978
6979         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6980         * Makefile.in (remote-fileio.o): Update dependencies.
6981         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
6982         include <setjmp.h>, or <sys/types.h> conditional on USG.
6983         (remote_fio_jmp_buf): Delete global variable.
6984
6985 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
6986             Martin M. Hunt  <hunt@redhat.com>
6987
6988         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6989         (SFILES): Add remote-fileio.c.
6990         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
6991         dependencies for building remote.o.
6992         * remote-fileio.c: New file implementing the remote File-I/O protocol.
6993         * remote-fileio.h: New header file defining remote File-I/O interface.
6994         * remote.c (remote_write_bytes, remote_read_bytes): Remove
6995         static storage class.
6996         (remote_wait, remote_async_wait): Call remote_fileio_request() on
6997         'F' packet.
6998         (_initialize_remote): Call initialize_remote_fileio().
6999         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7000         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7001         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7002         (captured_main): Initialize new ui_files.
7003         * ui-file.c: Add read and fgets input functions.
7004         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7005         (null_file_read): New function.
7006         (ui_file_read): New function.
7007         (set_ui_file_read): New function.
7008         (stdio_file_read): New function.
7009         * ui-file.h: New type ui_file_read_ftype.
7010         (set_ui_file_read): Declare.
7011         (ui_file_read): Declare.
7012
7013 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7014
7015         * frame.h (deprecated_unwind_get_saved_register): Rename
7016         generic_unwind_get_saved_register, update comments.
7017         * mips-tdep.c (mips_get_saved_register): Update.
7018         * frame.c (deprecated_unwind_get_saved_register): Update.
7019
7020 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7021
7022         * vax-tdep.c (vax_frame_locals_address): Delete function.
7023         (vax_gdbarch_init): Do not set frame_locals_address.
7024         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7025         (m68hc11_gdbarch_init): Do not set frame_locals_address.
7026         * s390-tdep.c (s390_frame_args_address): Delete function.
7027         (s390_gdbarch_init): Do not set frame_args_address or
7028         frame_locals_address.
7029         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7030         (ns32k_gdbarch_init): Do not set frame_locals_address.
7031         * hppa-tdep.c (hppa_frame_args_address): Delete function.
7032         (hppa_frame_locals_address): Delete function.
7033         (hppa_gdbarch_init): Do not set frame_args_address, or
7034         frame_locals_address.
7035         * arm-tdep.c (arm_frame_args_address): Delete.
7036         (arm_frame_locals_address): Delete.
7037         (arm_gdbarch_init): Do not set frame_args_address, or
7038         frame_locals_address.
7039
7040 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7041
7042         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7043         * gdbarch.h, gdbarch.c: Re-generate.
7044         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7045         * arch-utils.c (frame_num_args_unknown): Delete function.
7046         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7047         (frame_info): Use FRAME_NUM_ARGS_P.
7048         * arm-tdep.c (arm_frame_num_args): Delete function.
7049         (arm_gdbarch_init): Do not set frame_num_args.
7050         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7051         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7052         (hppa_gdbarch_init): Do not set frame_num_args.
7053         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7054         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7055         frame_num_args to default frame_num_args_unknown.
7056         * v850-tdep.c (v850_gdbarch_init): Ditto.
7057         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7058         * sh-tdep.c (sh_gdbarch_init): Ditto.
7059         * s390-tdep.c (s390_gdbarch_init): Ditto.
7060         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7061         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7062         * mips-tdep.c (mips_gdbarch_init): Ditto.
7063         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7064         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7065         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7066         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7067         * i386-tdep.c (i386_gdbarch_init): Ditto.
7068         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7069         * frv-tdep.c (frv_gdbarch_init): Ditto.
7070         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7071         * cris-tdep.c (cris_gdbarch_init): Ditto.
7072         * avr-tdep.c (avr_gdbarch_init): Ditto.
7073         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7074
7075 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7076
7077         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7078         (print_frame_args): Moved to "stack.c".
7079         * stack.c: Include "gdb_assert.h".
7080         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7081         (print_frame_args): Moved from "printcmd.c".
7082         * frame.h (print_frame_args): Delete declaration.
7083         * Makefile.in (stack.o): Update dependencies.
7084
7085 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7086
7087         * frame.c (get_prev_frame): Remove reference to
7088         frame_args_address_correct in comments.
7089         * frame-base.c (default_frame_args_address): Delete code
7090         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7091         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7092         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7093         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7094         (vax_frame_args_address_correct): Delete declaration.
7095
7096 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7097
7098         * gdbarch.sh (UNWIND_SP): Add.
7099         * gdbarch.h, gdbarch.c: Re-generate.
7100         * frame.c (frame_sp_unwind): New function.
7101         (get_frame_sp): New function.
7102         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7103         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7104         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7105         value.
7106         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7107         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7108
7109 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7110
7111         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7112         REMOTE_BREAKPOINT.
7113         * remote.c: Update.
7114         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7115         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7116         * config/m68k/tm-sun3.h: Update.
7117         * config/m68k/tm-m68klynx.h: Update.
7118         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7119
7120         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7121         trad_frame".  Update comments.
7122         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7123         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7124         (trad_frame_register_value, trad_frame_prev_register): Update.
7125
7126 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7127
7128         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7129         from GCC's acinclude.m4.
7130         * configure.in: Check for getopt's delcaration.
7131         * aclocal.m4, config.in, configure: Re-generate.
7132         * main.c (error_init): Delete declaration.
7133         * defs.h (error_init): Declare.
7134         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7135         (rs6000_convert_from_func_ptr_addr): Make static.
7136         (_initialize_rs6000_tdep): Add declaration.
7137         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7138         (show_commands, set_verbose, show_history): Delete declaration.
7139         * top.h (set_verbose): Add declaration.
7140         (show_history, set_history, show_commands): Add declaration.
7141         (do_restore_instream_cleanup): Add declaration.
7142         * objc-lang.c (specialcmp): Make static.
7143         (print_object_command): Make static.
7144         (find_objc_msgsend): Make static.
7145         (find_objc_msgcall_submethod_helper): Make static.
7146         (find_objc_msgcall_submethod): Make static.
7147         (_initialize_objc_language): Add declaration.
7148         (find_implementation_from_class): Make static.
7149         (find_implementation): Make static.
7150         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7151         * objc-lang.h (lookup_struct_typedef): Add declaration.
7152         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7153         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7154         (do_restore_user_call_depth): Make static.
7155         (do_restore_instream_cleanup): Delete declaration.
7156         (dont_repeat): Delete declaration.
7157         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7158         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7159         * reggroups.c (_initialize_reggroup): Add declaration.
7160         * cp-support.c (_initialize_cp_support): Add declaration.
7161         * cp-abi.c (_initialize_cp_abi): Add declaration.
7162         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7163         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7164         (_initialize_gnu_v3_abi): Add declaration.
7165         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7166         (_initialize_gnu_v2_abi): Add declaration.
7167         * frame-base.c (_initialize_frame_base): Add declaration.
7168         * doublest.c (floatformat_from_length): Make static.
7169         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7170         * frame.c (create_sentinel_frame): Make static.
7171         (_initialize_frame): Add declaration.
7172         * top.c (do_catch_errors): Make static.
7173         (gdb_rl_operate_and_get_next_completion): Make static.
7174         * typeprint.c: Include "typeprint.h".
7175         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7176         (sentinel_frame_this_id): Make static.
7177         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7178         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7179         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7180         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7181         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7182         * maint.c (maintenance_print_architecture): Make static.
7183         * signals/signals.c (_initialize_signals): Add declaration.
7184         * std-regs.c (_initialize_frame_reg): Add declaration.
7185         * jv-exp.y (push_variable): ISO C definition.
7186         (push_qualified_expression_name): Ditto.
7187         * memattr.c (_initialize_mem): Add declaration.
7188         * remote.c (remote_check_watch_resources): Make static.
7189         (remote_stopped_by_watchpoint): Make static.
7190         (remote_stopped_data_address): Make static.
7191         * d10v-tdep.c (nr_dmap_regs): Make static.
7192         (a0_regnum): Make static.
7193         (d10v_frame_unwind_cache): Make static.
7194         (d10v_frame_p): Make static.
7195         * osabi.c (show_osabi): Make static.
7196         (_initialize_gdb_osabi): Add extern declaration.
7197         * gdbtypes.c (make_qualified_type): Make static.
7198         (safe_parse_type): Make static.
7199         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7200         * macrotab.c (macro_bcache_free): Make static.
7201         * interps.c (interp_set_quiet): Make static.
7202         (interpreter_exec_cmd): Make static.
7203         * stack.h (select_frame_command): New file.
7204         * stack.c: Include "stack.h".
7205         (select_frame_command_wrapper): Delete function.
7206         (select_frame_command): Make global.
7207         * infcall.c: Include "infcall.h".
7208         * linespec.c: Include "linespec.h".
7209         * symfile.c (sections_overlap): Make static.
7210         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7211         * charset.c (_initialize_charset): Add missing prototype.
7212         * regcache.c (init_legacy_regcache_descr): Make static.
7213         (do_regcache_xfree): Make static.
7214         (regcache_xfer_part): Make static.
7215         (_initialize_regcache): Add missing prototype.
7216         * breakpoint.c (parse_breakpoint_sals): Make static.
7217         (breakpoint_sals_to_pc): Make static.
7218         * interps.h (clear_interpreter_hooks): ISO C declaration.
7219         * Makefile.in (stack_h): Define.
7220         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7221         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7222
7223 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7224
7225         * Makefile.in (d10v-tdep.o): Update dependencies.
7226         (SFILES): Add trad-frame.c.
7227         (trad_frame_h): Define.
7228         (COMMON_OBS): Add trad-frame.o.
7229         (trad-frame.o): Specify dependencies.
7230         * d10v-tdep.c: Include "trad-frame.h".
7231         (saved_regs_unwinder): Delete function.
7232         (d10v_frame_prev_register): Use trad_frame_prev_register.
7233         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7234         trad_frame", delete "regs" and "prev_sp".
7235         (prologue_find_regs): Use trad-frame.
7236         * trad-frame.h, trad-frame.c: New files.
7237
7238 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7239
7240         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7241
7242 2003-06-07  Adam Fedor  <fedor@gnu.org>
7243
7244         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7245         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7246         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7247         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7248         resolve_msgsend_super, resolve_msgsend_super_stret):
7249         Use it.
7250
7251 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7252
7253         * symfile.h: Re-indent, clean up comments.
7254
7255 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7256
7257         * inferior.h (deprecated_write_sp): Replace
7258         generic_target_write_sp.
7259         * regcache.c (deprecated_write_sp): Replace
7260         generic_target_write_sp.
7261         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7262         * vax-tdep.c (vax_gdbarch_init): Update.
7263         * v850-tdep.c (v850_gdbarch_init): Update.
7264         * sparc-tdep.c (sparc_gdbarch_init): Update.
7265         * sh-tdep.c (sh_gdbarch_init): Update.
7266         * s390-tdep.c (s390_gdbarch_init): Update.
7267         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7268         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7269         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7270         * mcore-tdep.c (mcore_gdbarch_init): Update.
7271         * m68k-tdep.c (m68k_gdbarch_init): Update.
7272         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7273         * ia64-tdep.c (ia64_gdbarch_init): Update.
7274         * h8300-tdep.c (h8300_gdbarch_init): Update.
7275         * frv-tdep.c (frv_gdbarch_init): Update.
7276         * cris-tdep.c (cris_gdbarch_init): Update.
7277         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7278
7279 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7280
7281         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7282         Assert that PC_REGNUM is valid.
7283         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7284
7285 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7286
7287         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7288         * gdbarch.h, gdbarch.c: Regenerate.
7289         * mn10300-tdep.c: Include "gdb_assert.h".
7290         (mn10300_read_fp): New function.
7291         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7292         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7293         * ia64-tdep.c: Include "gdb_assert.h".
7294         (ia64_read_fp): New function.
7295         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7296         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7297         * regcache.c (generic_target_read_sp): Delete function.
7298         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7299         * inferior.h (generic_target_read_sp): Delete declaration.
7300         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7301         generic_target_read_sp.
7302         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7303         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7304         * sh-tdep.c (sh_gdbarch_init): Ditto.
7305         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7306         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7307
7308 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7309
7310         * gdbarch.sh: Comment each field of startup_gdbarch.
7311         * gdbarch.h, gdbarch.c: Re-generate.
7312
7313 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7314
7315         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7316         * gdbarch.h, gdbarch.c: Re-generate.
7317         * regcache.c: Update comments on read_pc et.al.
7318         (generic_target_read_pc): Delete function.
7319         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7320         * inferior.h (generic_target_read_pc): Delete declaration.
7321         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7322         generic_target_read_pc.
7323         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7324         * sh-tdep.c (sh_gdbarch_init): Ditto.
7325         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7326         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7327
7328 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7329
7330         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7331         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7332         Append period to coments.
7333
7334 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7335
7336         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7337         (elfstab_offset_sections): Likewise.
7338         * gdb-stabs.h (stab_section_info): Likewise.
7339         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7340         * objfiles.c (objfile_relocate): Likewise.
7341         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7342         * remote.c (get_offsets): Likewise.
7343         (remote_cisco_objfile_relocate): Likewise.
7344         * somread.c (som_symfile_offsets): Likewise.
7345         * symfile.c (alloc_section_addr_info): New function.
7346         (build_section_addr_info_from_section_tab): Use it.
7347         (free_section_addr_info): Adjust.
7348         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7349         (syms_from_objfile): Allocate local_addr dynamically.
7350         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7351         dynamically.
7352         (add_symbol_file_command): Allocate sect_opts dynamically.
7353         (reread_symbols): Avoid use of SECT_OFF_MAX.
7354         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7355         (alloc_section_addr_info): Declare it.
7356         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7357         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7358         dynamically.
7359         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7360
7361 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7362
7363         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7364         (d10v_frame_unwind_cache): Do not set "return_pc".
7365
7366 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7367
7368         * h8300-tdep.c: Make tidy (long lines).
7369
7370 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7371
7372         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7373         to regcache_collect().
7374
7375 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7376
7377         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7378         pc_in_sigtramp multiarch method.
7379         (hppa_hpux_som_init_abi): Use it.
7380         (hppa_hpux_elf_init_abi): Likewise.
7381         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7382         macro has been multiarched.
7383         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7384         macro here, as hppa64 isn't multiarched yet.
7385
7386 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7387
7388         * Makefile.in (value_h): Add $(frame_h).
7389         * value.h: Include "frame.h".
7390         (struct value): Replace "frame_addr" with "frame_id".
7391         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7392         * values.c (allocate_value): Use VALUE_FRAME_ID.
7393         (value_copy): Use VALUE_FRAME_ID.
7394         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7395         * valops.c (value_assign): Update.  Use frame_find_by_id.
7396
7397 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7398
7399         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7400         in each pass.
7401
7402 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7403
7404         * thread-db.c (check_event): For create/death event breakpoints,
7405         loop through all messages to ensure that we read the message
7406         corresponding to the breakpoint we are at.
7407
7408 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7409
7410         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7411
7412 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7413
7414         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7415         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7416         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7417         when handling .eh_frame sections.
7418
7419 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7420
7421         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7422         prepare_to_proceed procedure instead of the hppa-specific one.
7423         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7424
7425 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7426
7427         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7428         * config.in: Regenerated.
7429         * configure.in: Add test for syscall function and check for
7430         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7431         * configure: Regenerated.
7432         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7433         <sys/syscall.h>.
7434         (kill_lwp): New function that uses tkill syscall or
7435         uses kill, depending on whether threading model is nptl or not.
7436         All callers of kill() changed to use kill_lwp().
7437         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7438         see if all threads have already exited in the nptl model.
7439         (stop_and_resume_callback): New callback function used by the
7440         lin_lwp_wait thread exit handling code.
7441         (stop_wait_callback): Check for threads already having exited and
7442         delete such threads fromt the lwp list when discovered.
7443         (stop_callback): Don't assert retcode of kill call.
7444
7445         Roland McGrath  <roland@redhat.com>
7446         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7447         nptl libthread_db.
7448
7449 2003-06-03  Richard Henderson  <rth@redhat.com>
7450
7451         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7452         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7453         (alpha_sigtramp_frame_prev_register): Likewise.
7454         (alpha_heuristic_frame_prev_register): Likewise.
7455         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7456
7457         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7458         alpha-specific register id names.
7459         (alpha_mdebug_frame_unwind_cache): Likewise.
7460         (alpha_mdebug_frame_prev_register): Likewise.
7461
7462 2003-06-03  Richard Henderson  <rth@redhat.com>
7463
7464         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7465         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7466         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7467         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7468         unwind routines.
7469         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7470         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7471         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7472
7473         * alpha-linux-tdep.c: Remove unnecessary includes.
7474         * Makefile.in (alpha-linux-tdep.o): Update.
7475
7476 2003-06-03  Richard Henderson  <rth@redhat.com>
7477
7478         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7479         (alphabsd_fill_fpreg): Likewise.
7480
7481 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7482
7483         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7484         references to struct frame_info fields by calls to the equivalent
7485         accessors. Necessary now that frame_info is opaque.
7486
7487 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7488
7489         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7490         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7491         structure, field no longer exists.
7492
7493 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7494
7495         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7496         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7497
7498 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7499
7500         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7501         references to struct frame_info fields by calls to the equivalent
7502         accessors. Necessary now that frame_info is opaque.
7503
7504 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7505
7506         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7507         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7508         structure, field no longer exists.
7509
7510 2003-06-03  Theodore A. Roth  <troth@openavr.org>
7511
7512         * remote.c (init_remote_state): Compute sizeof_g_packet by
7513         accumulation of the size of all registers instead of blindly using
7514         DEPRECATED_REGISTER_BYTES.
7515
7516 2003-06-03  Michael Snyder  <msnyder@redhat.com>
7517
7518         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7519         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7520         for h8300sx.
7521
7522 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7523
7524         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7525         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7526
7527 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7528
7529         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7530         (sparc_convert_to_raw): Delete function.
7531         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7532         register_convert_to_virtual.
7533
7534 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7535
7536         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7537         layer if not dealing with a statically-linked threaded program.
7538
7539 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
7540
7541         * solib.c (solib_open): Update comment to reflect actual search order.
7542
7543 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7544
7545         * frame.c (get_frame_memory_signed): New function.
7546         (get_frame_memory, get_frame_memory_unsigned): New function.
7547         (get_frame_arch): New function.
7548         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7549         (get_frame_memory, get_frame_unsigned_memory): Declare.
7550         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7551         get_frame_memory_unsigned and get_frame_arch.
7552         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7553
7554 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
7555
7556         * MAINTAINERS (write after approval): Add myself.
7557
7558 2003-06-03  Jim Blandy  <jimb@redhat.com>
7559
7560         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7561         elements of gregset_t are 64 bits each, but access registers
7562         are still 32 bits, so they're packed two per gregset_t
7563         element.  Unpack/pack them properly.
7564
7565 2003-06-02  David Carlton  <carlton@bactrian.org>
7566
7567         * linespec.c (find_methods): Break out code into
7568         add_matching_methods and add_constructors.
7569         (add_matching_methods): New.
7570         (add_constructors): Ditto.
7571
7572 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7573
7574         * sparc-tdep.c (sparc_print_registers): Delete call to
7575         REGISTER_CONVERTIBLE.
7576         (sparc_gdbarch_init): Do not set register_convertible.
7577         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7578         * frv-tdep.c (frv_gdbarch_init): Ditto.
7579         * cris-tdep.c (cris_gdbarch_init): Ditto.
7580
7581 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7582
7583         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7584         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7585         (syms_from_objfile): Ditto.
7586
7587 2003-06-03  Andreas Schwab  <schwab@suse.de>
7588
7589         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7590         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7591
7592 2003-06-02  Richard Henderson  <rth@redhat.com>
7593
7594         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7595         a member of all_reggroup.
7596
7597 2003-06-02  Richard Henderson  <rth@redhat.com>
7598
7599         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7600         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7601         (alpha_lds, alpha_sts): New.
7602         (alpha_convert_register_p): Change from _register_convertible.
7603         (alpha_register_to_value): Change from _convert_to_virtual;
7604         restructure and fail for type sizes other than 4 or 8.
7605         (alpha_value_to_register): Similarly.
7606         (alpha_extract_return_value): Use alpha_sts.
7607         (alpha_store_return_value): Use alpha_lds.
7608         (alpha_gdbarch_init): Update hooks.
7609
7610 2003-06-02  Richard Henderson  <rth@redhat.com>
7611
7612         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7613         regnum identifiers.
7614         (alpha_sigtramp_register_address): Likewise.
7615
7616 2003-06-02  Richard Henderson  <rth@redhat.com>
7617
7618         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7619         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7620         * alpha-tdep.h: Declare them.
7621
7622         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7623         Remove zerobuf.  Don't error on UNIQUE.
7624         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7625         (ALPHA_REGSET_UNIQUE): Provide default.
7626         (supply_gregset): Use alpha_supply_int_regs.
7627         (fill_gregset): Use alpha_fill_int_regs.
7628         (supply_fpregset): Use alpha_supply_fp_regs.
7629         (fill_fpregset): Use alpha_fill_fp_regs.
7630         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7631         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7632         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7633         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7634         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7635         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7636
7637 2003-06-02  Richard Henderson  <rth@redhat.com>
7638
7639         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7640
7641         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7642         (alpha_store_return_value): Likewise.
7643
7644 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7645
7646         * block.c (contained_in): Add 'const' to arguments.
7647         (block_function): Ditto.
7648         * block.h: Update declarations for block_function and
7649         contained_in.
7650
7651 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7652
7653         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7654         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7655         * p-valprint.c (pascal_val_print): Ditto.
7656         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7657
7658 2003-06-02  Richard Henderson  <rth@redhat.com>
7659
7660         * alpha-tdep.c (alpha_push_dummy_call): Use
7661         builtin_type_ieee_double_little instead of builtin_type_double.
7662
7663         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7664         sign-extension of 32-bit values.
7665         (alpha_store_return_value): Similarly.
7666
7667         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7668         (alpha_extract_return_value): Likewise.
7669         (alpha_store_return_value): Likewise.
7670
7671         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7672         (alpha_store_return_value): Error on IEEE Quad floats.
7673
7674         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7675         (alpha_extract_struct_value_address): Likewise.
7676         (alpha_store_return_value): Likewise.
7677         (alpha_store_struct_return): Remove.
7678         (alpha_gdbarch_init): Update hook registration to match.
7679
7680         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7681         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7682         macros where appropriate.
7683         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7684         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7685
7686         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7687         for SP, GP; void_func_ptr for PC; non-language-specific types
7688         for all others.
7689         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7690
7691 2003-06-02  Richard Henderson  <rth@redhat.com>
7692
7693         * top.h (lim_at_start): Declare.
7694         * main.c (captured_main): Set it.
7695         * top.c (lim_at_start): Define.
7696         (command_loop): Use it instead of &environ.
7697         * event-top.c (command_handler): Likewise.
7698
7699 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
7700
7701         * mipsnbsd-tdep.c: Update copyright years.
7702         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7703
7704 2003-06-01  Richard Henderson  <rth@redhat.com>
7705
7706         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7707         (alpha-linux-tdep.o): Update dependencies.
7708         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7709         * alpha-mdebug-tdep.c: Remove unneeded includes.
7710
7711 2003-06-01  Richard Henderson  <rth@redhat.com>
7712
7713         * alpha-tdep.c (alpha_register_reggroup_p): New.
7714         (alpha_gdbarch_init): Register it.
7715
7716 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7717
7718         * dwarfread.c: Eliminate "register"
7719         (decode_die_type): Eliminate assignment within "if".
7720         (struct_type, decode_array_element_type): Ditto.
7721         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7722         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7723         (decode_modified_type, completedieinfo): Ditto.
7724         * block.c: Eliminate "register".
7725         (blockvector_for_pc_sect): Eliminate assignment within "if".
7726         * cp-support.h (struct symbol): Opaque declaration.
7727         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7728
7729 2003-06-01  Richard Henderson  <rth@redhat.com>
7730
7731         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7732         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7733
7734 2003-06-01  Adam Fedor  <fedor@gnu.org>
7735
7736         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7737         * gdbarch.[ch]: Regenerate.
7738         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7739         (hppa_gdbarch_init): Set it in the gdbarch vector.
7740         * i386-tdep.c (i386_fetch_pointer_argument): New
7741         (i386_gdbarch_init): Set it into gdbarch.
7742         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7743         (rs6000_gdbarch_init): Set it in gdbarch.
7744         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7745         (sparc_gdbarch_init): Set it in gdbarch.
7746
7747 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7748
7749         * defs.h (extract_address): Delete declaration.
7750         * findvar.c (extract_address): Delete function.
7751         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7752         extract_address with the inline equivalent,
7753         extract_unsigned_integer.
7754         (xstormy16_extract_struct_value_address): Ditto.
7755         (xstormy16_pointer_to_address): Ditto.
7756         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7757         * v850-tdep.c (v850_push_arguments): Ditto.
7758         (v850_extract_return_value): Ditto.
7759         (v850_extract_struct_value_address): Ditto.
7760         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7761         (sparcnbsd_get_longjmp_target_64): Ditto.
7762         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7763         (get_longjmp_target): Ditto.
7764         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7765         (sh64_extract_struct_value_address): Ditto.
7766         (sh_push_arguments): Ditto.
7767         (sh64_push_arguments): Ditto.
7768         * remote-vxsparc.c (vx_read_register): Ditto.
7769         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7770         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7771         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7772         * mipsv4-nat.c (get_longjmp_target): Ditto.
7773         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7774         * mips-nat.c (get_longjmp_target): Ditto.
7775         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7776         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7777         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7778         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7779         * irix5-nat.c (get_longjmp_target): Ditto.
7780         * irix4-nat.c (get_longjmp_target): Ditto.
7781         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7782         (ia64_push_arguments): Ditto.
7783         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7784         * h8300-tdep.c (h8300_push_arguments): Ditto.
7785         (h8300_store_return_value): Ditto.
7786         (h8300_extract_struct_value_address): Ditto.
7787         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7788         (frv_push_arguments): Ditto.
7789         * avr-tdep.c (avr_pointer_to_address): Ditto.
7790         (avr_push_arguments): Ditto.
7791         * arm-tdep.c (arm_push_dummy_call): Ditto.
7792         (arm_get_longjmp_target): Ditto.
7793         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7794         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7795         (alpha_get_longjmp_target): Ditto.
7796
7797         * solib-irix.c (extract_mips_address): Inline extract_address,
7798         replacing it with extract_signed_integer.
7799         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7800         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7801         (first_link_map_member, open_symbol_file_object): Ditto.
7802         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7803         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7804         (LM_NEXT, LM_NAME): Ditto.
7805
7806 2003-06-01  Richard Henderson  <rth@redhat.com>
7807
7808         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7809         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7810         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7811         (alpha_cannot_store_register): Likewise.
7812         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7813         * alpha-nat.c (supply_gregset): Likewise.
7814         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7815
7816 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7817
7818         * infcall.c (call_function_by_hand): Update comment on
7819         DEPRECATED_DUMMY_WRITE_SP.
7820
7821         * mips-tdep.c (mips_gdbarch_init): Do not set
7822         deprecated_dummy_write_sp.
7823         (mips_eabi_push_dummy_call): Set the SP register.
7824         (mips_o64_push_dummy_call): Set the SP register.
7825         (mips_o32_push_dummy_call): Set the SP register.
7826         (mips_n32n64_push_dummy_call): Set the SP register.
7827
7828 2003-06-01  Richard Henderson  <rth@redhat.com>
7829
7830         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7831         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7832         (supply_gregset): Likewise.
7833         * alpha-tdep.c (alpha_store_return_value): Likewise.
7834         (alpha_get_longjmp_target): Likewise.
7835         (alpha_register_name): Constify array.
7836         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7837         deprecated_register_size, deprecated_register_bytes,
7838         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7839         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7840         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7841
7842 2003-06-01  Richard Henderson  <rth@redhat.com>
7843
7844         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7845         from arg_reg_buffer to regcache to avoid double conversion.
7846
7847 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7848
7849         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7850         SP_REGNUM.
7851         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7852         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7853
7854 2003-06-01  Richard Henderson  <rth@redhat.com>
7855
7856         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7857         (decode_frame_entry): Set it.  Skip FDE augmentation.
7858
7859 2003-06-01  Richard Henderson  <rth@redhat.com>
7860
7861         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7862         not overlapping PC_REGNUM.
7863
7864 2003-06-01  Richard Henderson  <rth@redhat.com>
7865
7866         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7867         alpha_push_arguments.  Don't dump argument register data to
7868         the target stack.  Fix float and 128-bit long double semantics.
7869         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7870         (alpha_fix_call_dummy): Remove.
7871         (alpha_call_dummy_words): Remove.
7872         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7873
7874 2003-06-01  Richard Henderson  <rth@redhat.com>
7875
7876         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7877
7878 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7879
7880         * mips-tdep.c (is_mips16_addr): New function.
7881         (make_mips16_addr, unmake_mips16_addr): New functions.
7882         (pc_is_mips16, mips_fetch_instruction): Use.
7883         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7884         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7885         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7886         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7887         TARGET_MIPS.
7888         * config/mips/tm-mips.h: Update copyright.
7889         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7890         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7891         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7892         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7893         (TM_PRINT_INSN_MACH): Delete.
7894         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7895
7896         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7897         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7898         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7899         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7900         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7901         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7902         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7903         mips*-*-riscos* and mips*-*-sysv* onto mips.
7904         * config/mips/mips64.mt: New file.
7905         * config/mips/mips.mt: New file.
7906         * config/mips/littlemips.mt: Delete file.
7907         * config/mips/decstation.mt: Delete file.
7908         * config/mips/vr4300el.mt: Delete file.
7909         * config/mips/vr5000el.mt: Delete file.
7910         * config/mips/vr5000.mt: Delete file.
7911         * config/mips/vr4100.mt: Delete file.
7912         * config/mips/vr4xxxel.mt: Delete file.
7913         * config/mips/vr4300.mt: Delete file.
7914         * config/mips/vr4xxx.mt: Delete file.
7915         * config/mips/bigmips.mt: Delete file.
7916         * config/mips/bigmips64.mt: Delete file.
7917         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7918         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7919         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7920         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7921         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7922         "tm-bigmips.h".
7923         * config/mips/tm-irix3.h: Ditto.
7924         * config/mips/tm-mipsv4.h: Ditto.
7925         * config/mips/tm-embed.h: Ditto.
7926         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7927         "tm-bigmips64.h".
7928         * config/mips/tm-vr5000el.h: Delete file.
7929         * config/mips/tm-tx39l.h: Delete file.
7930         * config/mips/tm-vr4300el.h: Delete file.
7931         * config/mips/tm-vr4xxxel.h: Delete file.
7932         * config/mips/tm-vr4300.h: Delete file.
7933         * config/mips/tm-vr4100.h: Delete file.
7934         * config/mips/tm-vr4xxx.h: Delete file.
7935         * config/mips/tm-vr5000.h: Delete file.
7936         * config/mips/tm-embedl64.h: Delete file.
7937         * config/mips/tm-embedl.h: Delete file.
7938         * config/mips/tm-embed64.h: Delete file.
7939         * config/mips/tm-bigmips64.h: Delete file.
7940         * config/mips/tm-bigmips.h: Delete file.
7941
7942 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7943
7944         Fix gdb/1216.
7945         * shnbsd-nat.c: Include "sh-tdep.h".
7946
7947         From Richard Henderson  <rth@redhat.com>:
7948         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7949
7950 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7951
7952         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
7953         forward declaration.
7954         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7955         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7956         (mips_find_saved_regs): Use set_reg_offset.
7957         (mips_frame_init_saved_regs): Delete function.
7958         (mips_pop_frame): Call mips_find_saved_regs instead of
7959         DEPRECATED_FRAME_INIT_SAVED_REGS.
7960
7961 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7962
7963         * mips-tdep.c (mips_gdbarch_init): Do not set
7964         deprecated_max_register_raw_size, register_virtual_size, and
7965         deprecated_max_register_virtual_size.
7966
7967 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7968
7969         * i386-tdep.c: Include "dwarf2-frame.h".
7970         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7971         * Makefile.in (i386-tdep.o): Update dependencies.
7972
7973         * dwarf2-frame.c, dwarf2-frame.h: New files.
7974         * Makefile.in (SFILES): Add dwarf2-frame.c.
7975         (dwarf2_frame_h): Define.
7976         (COMMON_OBS): Add dwarf2-frame.o.
7977         (dwarf2-frame.o): Add dependencies.
7978
7979 2003-05-31  Andreas Jaeger  <aj@suse.de>
7980
7981         * x86-64-linux-nat.c: Fix comment.
7982
7983 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
7984
7985         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7986         function signature.
7987
7988         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7989         have a sigcontext_addr handler.
7990         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7991         sigcontext_addr handler.
7992
7993 2003-05-31  Andrew Cagney  <cagney@redhat.com>
7994
7995         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7996         (print_fp_register_row): Replace do_fp_register_row.
7997         (mips_print_fp_register): Add "file" and "frame" parameters.
7998         (mips_print_register): Add "file" and "frame" parameters.
7999         (mips_print_registers_info): Replace mips_do_registers_info.
8000         (mips_gdbarch_init): Set print_registers_info instead of
8001         deprecated_do_registers_info.
8002         (mips_read_fp_register_single): Add "frame" parameter.
8003         (mips_read_fp_register_double): Add "frame" parameter.
8004
8005 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8006
8007         * i386-tdep.c (i386_register_name): Check for MMX registers first.
8008         Fixes a bug where GDB would print the wrong register names for
8009         targets without SSE.
8010
8011         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8012         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8013         registers.
8014
8015         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8016         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8017         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8018         TDEP->sc_sp_offset.
8019
8020         From Michal Ludvig  <mludvig@suse.cz>:
8021         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8022         and `sc_num_regs'.
8023         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8024         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8025         I386_ST0_REGNUM): Move here from...
8026         * i386-tdep.c: ... here.
8027         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8028         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8029         registers if possible.
8030         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8031         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8032         Remove variables.
8033         (i386bsd_sc_reg_offset): New variable.
8034         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8035         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8036         TDEP->sc_sp_offset.
8037         (i386fbsd_sc_reg_offset): New variable.
8038         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8039         TDEP->sc_num_regs.
8040         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8041         variables.
8042         (i386fbsd4_sc_reg_offset): New variable.
8043         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8044         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8045         TDEP->sc_sp_offset.
8046         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8047         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8048         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8049         Remove variables.
8050         (i386nbsd_sc_reg_offset): New variable.
8051         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8052         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8053         TDEP->sc_sp_offset.
8054         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8055         Remove variables.
8056         (i386obsd_sc_reg_offset): New variable.
8057         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8058         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8059         TDEP->sc_sp_offset.
8060         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8061         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8062         for frame pointer offset in `struct sigcontext'.
8063
8064 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8065
8066         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8067         architecture methods call_dummy_words, sizeof_call_dummy_words,
8068         push_return_address, store_struct_return, and fix_call_dummy.  Set
8069         push_dummy_call instead of deprecated_push_arguments.
8070         (mips_store_struct_return): Delete function.
8071         (mips_fix_call_dummy): Delete function.
8072         (mips_push_return_address): Delete function.
8073         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8074         RA_REGNUM and T9_REGNUM.
8075         (mips_n32n64_push_dummy_call): Ditto for
8076         mips_n32n64_push_arguments.
8077         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8078         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8079
8080 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8081
8082         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8083         "dummy_addr" to "bp_addr".
8084         * infcall.c (call_function_by_hand): Pass "funaddr" to
8085         gdbarch_push_dummy_call.
8086         * gdbarch.h, gdbarch.c: Re-generate.
8087         * i386-tdep.c (i386_push_dummy_call): Update.
8088         * arm-tdep.c (arm_push_dummy_call): Update.
8089         * d10v-tdep.c (d10v_push_dummy_call): Update.
8090
8091 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8092
8093         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8094         variable declarations.
8095         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8096         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8097         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8098         x86_64_init_frame_pc, x86_64_init_frame_pc,
8099         x86_64_function_has_prologue): Remove prototypes.
8100         (X86_64_NUM_GREGS): New define.
8101         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8102         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8103         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8104         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8105         XMM1_REGNUM): Remove defines.
8106         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8107         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8108         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8109         X86_64_XMM1_REGNUM): New defines.
8110         (struct x86_64_register_info): Renamed from `struct
8111         register_info'.  Remove `size' member.
8112         (x86_64_register_info_table): Remove variable.
8113         (x86_64_register_info): New variable.
8114         (X86_64_NUM_REGS): New define.
8115         (X86_64_NUM_GREGS): Remove define.
8116         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8117         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8118         Remove variables.
8119         (x86_54_dwarf2_reg_to_regnum): Remove function.
8120         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8121         (x86_64_dwarf_reg_to_regnum): New function.
8122         (x86_64_register_name): Rewrite.
8123         (x86_64_register_raw_size): Remove function.
8124         (x86_64_register_byte_table): Remove variable.
8125         (x86_64_register_byte): Remove function.
8126         (x86_64_register_virtual_type): Remove function.
8127         (x86_64_register_type): New function.
8128         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8129         x86_64_register_convert_to_raw): Remove functions.
8130         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8131         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8132         defines.
8133         (x86_64_frame_init_saved_regs): Remove function.
8134         (x86_64_push_arguments): Make static.  Change to accept a regcache
8135         as argument.
8136         (x86_64_store_return_value, x86_64_extract_return_value): Make
8137         static.  Rewrite based on i386 counterparts.
8138         (x86_64_push_dummy_call): New function.
8139         (X86_64_NUM_SAVED_REGS): New define.
8140         (x86_64_register_number): Remove function.
8141         (x86_64_store_struct_return): Remove function.
8142         (x86_64_frameless_function_invocation,
8143         x86_64_function_has_prologue): Remove functions.
8144         (PROLOG_BUFSIZE): Remove define.
8145         (struct x86_64_frame_cache): New structure.
8146         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8147         x86_64_frame_cache, x86_64_frame_this_id,
8148         x86_64_frame_prev_register, x86_64_frame_p,
8149         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8150         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8151         functions.
8152         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8153         variables.
8154         (x86_64_skip_prologue): Rewrite in terms of
8155         x86_64_analyze_prologue.
8156         (x86_64_frame_base_address): New function.
8157         (x86_64_frame_base): New variable.
8158         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8159         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8160         set deprecated_fp_regnum, deprecated_register_size,
8161         deprecated_register_bytes, register_raw_size, register_byte,
8162         register_virtual_type, register_convertiable,
8163         register_convert_to_virtual, convert_to_raw,
8164         deprecated_get_saved_register, deprecated_target_read_fp,
8165         deprecated_push_arguments, deprecated_push_return_address,
8166         deprecated_pop_frame, deprecated_store_struct_return,
8167         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8168         frameless_function_invocation, deprecated_frame_saved_pc,
8169         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8170         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8171         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8172         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8173         and x86_64_frame_p.  Call frame_base_set_default to register
8174         x86_64_frame_base.
8175         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8176         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8177         (_initialize_x86_64_tdep): Remove function.
8178         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8179         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8180         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8181         define.
8182         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8183         (x86_64_linux_sigcontext_addr): Rewrite.
8184         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8185         x86_64_linux_frame_saved_pc): Remove functions.
8186         (x86_64_linux_pc_in_sigtramp): Renamed from
8187         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8188         trampoline.
8189         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8190         Remove_functions.
8191         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8192         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8193         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8194         (x86_64_regmap): Rename to regmap.
8195         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8196         x86_64_num_gregs.
8197         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8198         x86_64_regmap.
8199         (x86_64_fxsave_offset): Remove function.
8200         (supply_fpregset): Simply call x86_64_supply_fxsave.
8201         (fill_fpregset): Simply call x86_64_fill_fxsave.
8202         (fetch_inferior_registers, store_inferior_registers): Avoid
8203         asignment in if-statement.
8204         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8205         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8206         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8207         (fetch_core_registers): Remove function.
8208         (linux_elf_core_fns): Remove.
8209         (offsetoff): Don't define.
8210         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8211         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8212         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8213         add core-regset.o.
8214         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8215         protection against multiple includes instead of NM_X86_64_h.  Add
8216         various comments.  Include "config/nm-linux.h".  Don't include
8217         <signal.h>.
8218         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8219         GET_THREAD_SIGNALS): Remove defines.
8220         (x86_64_register_u_addr, kernel_u_size,
8221         lin_thread_get_thread_signals): Remove prototypes.
8222         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8223         [HAVE_LINK_H]: Don't include "solib.h".
8224         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8225         * config/i386/tm-x86-64linux.h: Fix comments.
8226         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8227         x86-64-tdep.o): Update dependencies.
8228
8229 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8230
8231         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8232         Change parameter type to a "struct regcache *".
8233
8234         * gdbarch.sh: Regardless of the multi-arch level, always define
8235         the macro when not already defined.
8236         * gdbarch.h, gdbarch.c: Re-generate.
8237
8238 2003-05-30  Richard Henderson  <rth@redhat.com>
8239
8240         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8241         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8242         (alpha_mdebug_frame_this_id): Likewise.
8243         (alpha_mdebug_frame_prev_register): Likewise.
8244         (alpha_mdebug_frame_base_address): Likewise.
8245         (alpha_mdebug_frame_locals_address): Likewise.
8246         (alpha_mdebug_frame_args_address): Likewise.
8247         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8248         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8249         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8250         loop increment.
8251         (alpha_heuristic_frame_this_id): Make static.
8252         (alpha_heuristic_frame_prev_register): Likewise.
8253         (alpha_heuristic_frame_base_address): Likewise.
8254         * alpha-tdep.h: Update.
8255
8256 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8257
8258         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8259         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8260         defenitions.
8261         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8262         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8263         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8264         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8265         I386_ST0_REGNUM): New defines.
8266         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8267         codestream_get): Remove define.
8268         (codestream_next_addr, condestream_addr, condestream_buf,
8269         codestream_off, codestream_cnt): Remove variables.
8270         (codestream_fill, codestream_seek, codestream_read): Remove
8271         functions.
8272         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8273         functionality.
8274         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8275         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8276         i386_frame_saved_pc, i386_saved_pc_after_call,
8277         i386_frame_num_args, i386_frame_init_saved_regs,
8278         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8279         i386_push_arguments): Remove functions.
8280         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8281         functionality.  Use i386_analyze_prologue instead of
8282         i386_get_frame_setup.
8283         (I386_NUM_SAVED_REGS): New define.
8284         (struct i386_frame_cache): New structure.
8285         (i386_alloc_frame_cache, i386_analyze_struct_return,
8286         i386_skip_probe, i386_analyze_frame_setup,
8287         i386_analyze_register_saves, i386_analyze_prologue,
8288         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8289         i386_frame_prev_register, i386_sigtramp_frame_cache,
8290         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8291         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8292         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8293         New functions.
8294         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8295         New variables.
8296         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8297         I386_EAX_REGNUM and I386_EDX_REGNUM.
8298         (i386_extract_return_value, i386_store_return_value): Use
8299         I386_ST0_REGNUM where appropriate.
8300         (i386_extract_struct_value_address): Rewrite to use extract_address.
8301         (i386_svr4_pc_in_sigtramp): Add comment.
8302         (i386_svr4_sigcontext_addr): Rewrite.
8303         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8304         TDEP->sc_sp_offset.
8305         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8306         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8307         of new defines.  Set push_dummy_call, don't set
8308         deprecated_push_arguments, deprecated_push_return_address,
8309         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8310         deprecated_frame_chain, deprecated_frame_saved_pc,
8311         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8312         save_dummy_frame_tos, unwind_pc.  Call
8313         frame_unwind_append_predicate and frame_base_set_default.  Don't
8314         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8315         Don't set frameless_function_invocation.  Don't set
8316         deprecated_register_bytes, deprecated_register_size,
8317         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8318         * i386-linux-tdep.c: Fix formatting in some comments.
8319         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8320         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8321         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8322         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8323         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8324         redundant parentheses.
8325         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8326         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8327         (find_minsym_and_objfile): Change name of second argument.
8328         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8329         changed.  Use frame_pc_unwind instead of
8330         DEPRECATED_SAVED_PC_AFTER_CALL.
8331         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8332         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8333         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8334         unwinder.
8335         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8336         "dummy-frame.h".
8337         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8338         (_initialize_i386_cygwin_tdep): New prototype.
8339         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8340         deprecated_frame_chain_valid.
8341         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8342         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8343         Rely on the SVR4 defaults.
8344         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8345         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8346
8347 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8348
8349         * infcall.c (call_function_by_hand): Always call
8350         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8351
8352 2003-05-30  Richard Henderson  <rth@redhat.com>
8353
8354         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8355         increment.
8356
8357 2003-05-29  Jim Blandy  <jimb@redhat.com>
8358
8359         Use gdbarch methods for solib stuff on PowerPC Linux.
8360         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8361         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8362         show through.
8363         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8364         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8365         giving the same effect as the #definitions above.
8366
8367 2003-05-29  Adam Fedor  <fedor@gnu.org>
8368
8369         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8370         (find_implementation_from_class): Replace it with the standard
8371         case i.e. do nothing.
8372
8373 2003-05-29  Richard Henderson  <rth@redhat.com>
8374
8375         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8376         (alpha_linux_sigtramp_offset): Use it.  Make static.
8377         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8378         update for new frame model.
8379         * alpha-mdebug-tdep.c: New file.
8380         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8381         (alpha_osf1_init_abi): Install it.
8382         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8383         (linked_proc_desc_table): Remove.
8384         (alpha_frame_past_sigtramp_frame): Remove.
8385         (alpha_dynamic_sigtramp_offset): Remove.
8386         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8387         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8388         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8389         (push_sigtramp_desc): Remove.
8390         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8391         (alpha_cannot_store_register): Likewise.
8392         (alpha_sigcontext_addr): Remove.
8393         (alpha_find_saved_regs): Remove.
8394         (alpha_frame_init_saved_regs): Remove.
8395         (alpha_init_frame_pc_first): Remove.
8396         (read_next_frame_reg): Remove.
8397         (alpha_frame_saved_pc): Remove.
8398         (alpha_saved_pc_after_call): Remove.
8399         (temp_proc_desc, temp_saved_regs): Remove.
8400         (alpha_about_to_return): Remove.
8401         (cached_proc_desc): Remove.
8402         (alpha_frame_chain): Remove.
8403         (alpha_print_extra_frame_info): Remove.
8404         (alpha_init_extra_frame_info): Remove.
8405         (alpha_frame_locals_address): Remove.
8406         (alpha_frame_args_address): Remove.
8407         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8408         (alpha_push_dummy_frame): Remove.
8409         (alpha_pop_frame): Remove.
8410         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8411         (alpha_read_insn): New.
8412         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8413         for different insn encodings.
8414         (alpha_in_lenient_prologue): Remove.
8415         (struct alpha_sigtramp_unwind_cache): New.
8416         (alpha_sigtramp_frame_unwind_cache): New.
8417         (alpha_sigtramp_register_address): New.
8418         (alpha_sigtramp_frame_this_id): New.
8419         (alpha_sigtramp_frame_prev_register): New.
8420         (alpha_sigtramp_frame_unwind): New.
8421         (alpha_sigtramp_frame_p): New.
8422         (struct alpha_heuristic_unwind_cache): New.
8423         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8424         don't count nop insns that occur between functions.
8425         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8426         heuristic_proc_desc, but without the mdebug wrapping.
8427         (alpha_heuristic_frame_this_id): New.
8428         (alpha_heuristic_frame_prev_register): New.
8429         (alpha_heuristic_frame_unwind): New.
8430         (alpha_heuristic_frame_p): New.
8431         (alpha_heuristic_frame_base_address): New.
8432         (alpha_heuristic_frame_base): New.
8433         (alpha_unwind_dummy_id): New.
8434         (alpha_unwind_pc): New.
8435         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8436         frame related deprecated initializations; install replacements.
8437         (alpha_dump_tdep): Remove.
8438         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8439         (alpha_read_insn, alpha_after_prologue,
8440         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8441         alpha_heuristic_frame_prev_register,
8442         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8443         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8444         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8445         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8446
8447 2003-05-29  Andrew Cagney  <cagney@redhat.com>
8448
8449         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8450         dependant on the availability of ASSERT_FUNCTION.
8451         (ASSERT_FUNCTION): Do not define when there is no function name.
8452
8453 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
8454
8455         From Jimi X <jimix@watson.ibm.com>:
8456         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8457
8458 2003-05-28  Jim Blandy  <jimb@redhat.com>
8459
8460         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8461         argument to ptrace to int; the system headers should give it the
8462         right type, and pointers don't fit in ints on powerpc64-*-*.
8463
8464 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
8465
8466         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8467         DW_TAG_catch_block.
8468
8469 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8470
8471         * stabsread.c (dbx_lookup_type): Make static.
8472         (read_type): Ditto.
8473         (add_undefined_type): Ditto.
8474         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8475         not export.
8476
8477 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8478
8479         * hpread.c (hpread_has_name): Make static.
8480         (hpread_psymtab_to_symtab): Ditto.
8481         (file_exists): Ditto.
8482         (hpread_call_pxdb): Ditto.
8483         (hpread_pxdb_needed): Ditto.
8484         (hpread_quick_traverse): Ditto.
8485         (hpread_get_header): Ditto.
8486         (hpread_get_lntt): Ditto.
8487         (hpread_get_slt): Ditto.
8488         (class_of): Ditto.
8489
8490 2003-05-25  Andreas Schwab  <schwab@suse.de>
8491
8492         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8493         stack_align and deprecated_extra_stack_alignment_needed.
8494         (m68k_stack_align): Delete.
8495
8496         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8497         (m68k_register_virtual_size): Likewise.
8498         (altos_skip_prologue): Remove obsolete function.
8499         (isi_frame_num_args): Likewise.
8500         (news_frame_num_args): Likewise.
8501         (m68k_fix_call_dummy): Make static.
8502         (m68k_push_dummy_frame): Likewise.
8503         (m68k_pop_frame): Likewise.
8504         (m68k_skip_prologue): Likewise.
8505         (m68k_frame_init_saved_regs): Likewise.
8506         (m68k_saved_pc_after_call): Likewise.
8507         (m68k_get_longjmp_target): Make multi-arch.
8508         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8509         structure.  Register m68k_get_longjmp_target if enabled.
8510         * m68k-tdep.h (struct gdbarch_tdep): Define.
8511         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8512
8513         * Makefile.in (config.status): Also depend on configure.tgt
8514         and configure.host.
8515         (m68klinux-tdep.o): Update dependencies.
8516         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8517         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8518         (M68K_LINUX_JB_PC): Define.
8519         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8520         and take additional parameter.
8521         (m68k_linux_sigtramp_saved_pc): Update.
8522         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8523         m68k_linux_pc_in_sigtramp, in_plt_section,
8524         find_solib_trampoline_target.
8525         * config/m68k/tm-linux.h: Don't include any tm headers.
8526         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8527         (JB_ELEMENT_SIZE): Likewise.
8528         (JB_PC): Likewise.
8529         (GET_LONGJMP_TARGET): Likewise.
8530         (IN_SIGTRAMP): Likewise.
8531         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8532
8533 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8534
8535         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8536         (sparc32_push_arguments): Re-implement by calling
8537         sparc32_do_push_arguments.
8538
8539 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8540
8541         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8542         SPARC_O1_REGNUM): New defines.
8543         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8544         (sparc32_store_return_value): New function.
8545         (sparc_extract_struct_value_address): Rewrite to operate on a
8546         regcache.
8547         (sparc_gdbarch_init): Don't set
8548         deprecated_extract_struct_value_address.  Set
8549         extract_struct_value_address instead. Don't set
8550         deprecated_extract_return_value and deprecated_store_return_value
8551         for 32-bit targets.  Set extract_return_value and
8552         store_return_value instead.
8553         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8554         DEPRECATED_EXTRACT_RETURN_VALUE,
8555         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8556         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8557         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8558         (sparc_store_return_value): Remove prototype.
8559         (sparc32_store_return_value): New prototype.
8560         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8561         Adjust prototypes.
8562
8563 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
8564
8565         * sparcnbsd-tdep.c: Include "gdb_string.h".
8566
8567 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8568
8569         * p-valprint.c (pascal_val_print): Replace extract_address with
8570         the inline equivalent extract_unsigned_integer.
8571         * jv-valprint.c (java_value_print): Ditto.
8572         * ada-valprint.c (ada_val_print_1): Ditto.
8573         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8574
8575 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8576
8577         * blockframe.c (frameless_look_for_prologue): Remove unused
8578         after_prologue variable.
8579
8580 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8581
8582         * blockframe.c (get_pc_function_start): Rewrite to avoid
8583         asignments in if-statements.
8584
8585 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8586
8587         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8588         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8589         files, don't relocate absolute symbols (and do use mst_abs).
8590
8591 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8592
8593         * objc-lang.c: Include "gdb_assert.h".
8594         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8595         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8596         (gdb_check, gdb_check_fatal): Delete functions.
8597         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8598         gdb_assert.
8599         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8600         * Makefile.in (objc-lang.o): Update dependencies.
8601
8602 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8603
8604         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8605         with fprintf_filtered, not fprintf_unfiltered.
8606
8607 2003-05-22  Andrew Cagney  <cagney@redhat.com>
8608
8609         * stack.c (frame_info): Inline extract_address, replacing it with
8610         extract_unsigned_integer.
8611         * findvar.c (unsigned_pointer_to_address): Ditto.
8612         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8613         * dwarf2expr.c (dwarf2_read_address): Ditto.
8614         * frame.c (frame_pc_unwind): Update comment.
8615         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8616
8617 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
8618
8619         * infptrace.c (detach): Call print_sys_errmsg rather than
8620         perror_with_name to issue warning message when errno is non-zero
8621         after calling ptrace detach.
8622
8623 2003-05-21  J. Brobecker  <brobecker@gnat.com>
8624
8625         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8626         macro definitions from here...
8627         * hppa-tdep.c: ...to there.
8628
8629 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
8630
8631         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8632         register_ptrace_addr().  Fix all callers.
8633
8634 2003-05-21  Andreas Schwab  <schwab@suse.de>
8635
8636         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8637         dependencies.
8638         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8639         end.
8640         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8641         (_initialize_m68k_linux_tdep): New function.
8642         (m68k_linux_frame_saved_pc): Make static.
8643         (m68k_linux_extract_return_value): Likewise.
8644         (m68k_linux_store_return_value): Likewise.
8645         (m68k_linux_extract_struct_value_address): Likewise.
8646         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8647         Remove.
8648         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8649         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8650         (DEPRECATED_FRAME_SAVED_PC): Remove.
8651
8652 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
8653
8654         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8655         regset numbering rather than our own.
8656
8657 2003-05-19  David Carlton  <carlton@bactrian.org>
8658
8659         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8660
8661 2003-05-19  David Carlton  <carlton@bactrian.org>
8662
8663         Partial fix for PR c++/827.
8664         * cp-support.h: Include symtab.h.
8665         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8666         * cp-namespace.c: Update contributors.
8667         (cp_lookup_symbol_nonlocal): New.
8668         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8669         (lookup_symbol_file): Ditto.
8670         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8671         * block.h: Declare block_scope, block_using, block_global_block.
8672         * block.c (block_scope): New.
8673         (block_using, block_global_block): Ditto.
8674         * Makefile.in (cp_support_h): Depend on symtab_h.
8675         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8676
8677 2003-05-19  David Carlton  <carlton@bactrian.org>
8678
8679         * language.h (struct language_defn): Add 'la_value_of_this'
8680         and 'la_lookup_symbol_nonlocal' members.
8681         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8682         lookup_symbol_static, lookup_symbol_global,
8683         lookup_symbol_aux_block.
8684         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8685         if we should search fields of this and how to do static/global
8686         lookup.
8687         (lookup_symbol_aux_block): Make extern.
8688         (basic_lookup_symbol_nonlocal): New.
8689         (lookup_symbol_static, lookup_symbol_global): Ditto.
8690         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8691         'la_lookup_symbol_nonlocal' members.
8692         * c-lang.c (c_language_defn, cplus_language_defn)
8693         (asm_language_defn, minimal_language_defn): Ditto.
8694         * jv-lang.c (java_language_defn): Ditto.
8695         * language.c (unknown_language_defn, auto_language_defn)
8696         (local_language_defn): Ditto.
8697         * m2-lang.c (m2_language_defn): Ditto.
8698         * objc-lang.c (objc_language_defn): Ditto.
8699         * scm-lang.c (scm_language_defn): Ditto.
8700         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8701         * p-lang.c (pascal_language_defn): Ditto for both.
8702         * Makefile.in (f-lang.o): Depend on value_h.
8703         (p-lang.o): Ditto.
8704
8705 2003-05-19  David Carlton  <carlton@bactrian.org>
8706
8707         * block.h: Declare block_static_block.
8708         * block.c (block_static_block): New.
8709         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8710         lookup_symbol_aux_local, calling block_static_block instead.
8711         (lookup_symbol_aux_local): Delete 'static_block' argument.
8712
8713 2003-05-19  David Carlton  <carlton@bactrian.org>
8714
8715         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8716
8717 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
8718
8719         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8720         register numbers mapping.
8721
8722 2003-05-18  Adam Fedor  <fedor@gnu.org>
8723
8724         * symtab.c (completion_list_objc_symbol): New function.
8725         (make_symbol_completion_list): Use it to add ObjC symbols
8726         when looking though the list.
8727         (language_search_unquoted_string): New function.
8728         (make_file_symbol_completion_list): Use it.
8729
8730 2003-05-18  Andreas Schwab  <schwab@suse.de>
8731
8732         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8733         dependencies.
8734         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8735         as m68k_linux_extract_return_value.
8736         (DEPRECATED_STORE_RETURN_VALUE): Define as
8737         m68k_linux_store_return_value.
8738         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8739         m68k_linux_extract_struct_value_address.
8740         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8741         get_next_frame, get_frame_base, get_frame_pc.
8742         (m68k_linux_frame_saved_pc): Use get_frame_base.
8743         (m68k_linux_extract_return_value): New function.
8744         (m68k_linux_store_return_value): New function.
8745         (m68k_linux_extract_struct_value_address): New function.
8746         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8747
8748         * c-exp.y (typebase): Remove duplicate occurence of
8749         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8750         of lookup_signed_typename.
8751
8752 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
8753
8754         * dwarf2loc.c (find_location_expression): Change type of second
8755         argument to `size_t *'.
8756         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8757         for size variable.
8758
8759 2003-05-18  David Carlton  <carlton@bactrian.org>
8760
8761         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8762         'linkage_name'.  Add comment.
8763         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8764         'linkage_name'.
8765         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8766         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8767         (lookup_block_symbol): Ditto.
8768
8769 2003-05-16  Andrew Cagney  <cagney@redhat.com>
8770
8771         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8772         * gdbarch.h, gdbarch.c: Re-generate.
8773         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8774         * TODO (REGISTER_BYTES): Delete reference.
8775         * alpha-tdep.c (alpha_gdbarch_init): Update.
8776         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8777         * x86-64-tdep.c (x86_64_init_abi): Update.
8778         * vax-tdep.c (vax_gdbarch_init): Update.
8779         * v850-tdep.c (v850_gdbarch_init): Update.
8780         * sparc-tdep.c (sparc_gdbarch_init): Update.
8781         * sh-tdep.c (sh_gdbarch_init): Update.
8782         * s390-tdep.c (s390_gdbarch_init): Update.
8783         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8784         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8785         (ns32k_gdbarch_init_32382): Update.
8786         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8787         * mcore-tdep.c (mcore_gdbarch_init): Update.
8788         * m68k-tdep.c (m68k_gdbarch_init): Update.
8789         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8790         * ia64-tdep.c (ia64_gdbarch_init): Update.
8791         * i386-tdep.c (i386_gdbarch_init): Update.
8792         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8793         * hppa-tdep.c (hppa_gdbarch_init): Update.
8794         * h8300-tdep.c (h8300_gdbarch_init): Update.
8795         * frv-tdep.c (frv_gdbarch_init): Update.
8796         * cris-tdep.c (cris_gdbarch_init): Update.
8797         * avr-tdep.c (avr_gdbarch_init): Update.
8798         * arm-tdep.c (arm_gdbarch_init): Update.
8799         * sparc-tdep.c (sparc_pop_frame): Update.
8800         * rs6000-tdep.c (rs6000_pop_frame): Update.
8801         * remote.c (init_remote_state): Update.
8802         (remote_prepare_to_store): Update.
8803         * remote-vx.c (vx_prepare_to_store): Update.
8804         * remote-sds.c (sds_fetch_registers): Update.
8805         (sds_prepare_to_store): Update.
8806         * remote-array.c: Update.
8807         * regcache.c (init_legacy_regcache_descr): Update.
8808         (init_regcache_descr): Update.
8809         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8810         (mips_o64_extract_return_value): Update.
8811         * irix5-nat.c (fetch_core_registers): Update.
8812         * irix4-nat.c (fetch_core_registers): Update.
8813         * i386-tdep.h: Update.
8814         * hppa-tdep.c (pa_do_registers_info): Update.
8815         (pa_do_strcat_registers_info): Update.
8816         * cris-tdep.c (cris_register_bytes_ok): Update.
8817         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8818         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8819         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8820         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8821         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8822         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8823         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8824         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8825         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8826         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8827         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8828         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8829         (REGISTER_BYTES_OK): Update.
8830         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8831         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8832
8833 2003-05-16  Ian Lance Taylor  <ian@airs.com>
8834
8835         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8836         (vax_print_insn, print_insn_arg): Remove static functions.
8837         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8838         print_insn_vax from opcodes library.
8839         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8840
8841 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8842
8843         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8844         * target.h (memory_breakpoint_from_pc): Delete declaration.
8845         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8846         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8847         * monitor.c (monitor_insert_breakpoint): Use
8848         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8849         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8850         * gdbarch.h, gdbarch.c: Re-generate.
8851         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8852         (sparc_gdbarch_init): Set breakpoint_from_pc to
8853         sparc_breakpoint_from_pc.
8854         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8855         (BREAKPOINT_FROM_PC): Define.
8856         (sparc_breakpoint_from_pc): Declare.
8857         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8858         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8859         (BREAKPOINT_FROM_PC): Define.
8860         (BREAKPOINT): Delete macro.
8861         * target.h: Update comment.
8862         * s390-tdep.c (s390_gdbarch_init): Update comments.
8863         * remote.c: Update comments.
8864         * remote-mips.c: Update comments.
8865         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8866         * mem-break.c: Update comment.
8867         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8868         (ia64_memory_insert_breakpoint): Update.
8869         * config/sparc/tm-sparc.h: Update comment.
8870         * config/pa/tm-hppa64.h: Update comment.
8871         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8872         (rs6000_breakpoint_from_pc): Update.
8873         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8874         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8875         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8876         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8877         (mips_breakpoint_from_pc): Update.
8878         (mips_dump_tdep): Update.
8879
8880         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8881         * minsyms.c (lookup_minimal_symbol): Inline
8882         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8883
8884         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8885         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8886         * p-lang.c (pascal_printstr): Ditto.
8887         * objc-lang.c (objc_printstr): Ditto.
8888         * m2-lang.c (m2_printstr): Ditto.
8889         * jv-valprint.c (java_print_value_fields): Ditto.
8890         * f-lang.c (f_printstr): Ditto.
8891         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8892         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8893         for repeat_count_threshold.
8894         * Makefile.in (cp-valprint.o): Update dependencies.
8895
8896 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
8897
8898         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8899         (examine_prologue): Support looking through leaf functions, knowing
8900         they start with mov r2,r12.  Support skipping over indirect stores
8901         of the input registers.  Upon hitting a non-nop branch instruction
8902         or predicated instruction, bail out by setting lim_pc to the current
8903         pc value in the loop.  At the end, if the lim_pc value is still
8904         beyond our calculated value and we have trust_limit set,
8905         use the lim_pc value.
8906
8907 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8908
8909         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8910         generic_find_dummy_frame.
8911         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8912         (deprecated_generic_find_dummy_frame): Update.
8913         (deprecated_read_register_dummy): Update.
8914         * frame.c (deprecated_generic_get_saved_register): Update.
8915
8916 2003-05-15  Theodore A. Roth  <troth@openavr.org>
8917
8918         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8919         (avr_gdbarch_init): Set breakpoint_from_pc method.
8920
8921 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8922
8923         * regcache.c (build_regcache): Set deprecated_register_valid
8924         directly.
8925         (deprecated_grub_regcache_for_register_valid): Delete function.
8926         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8927         declaration.
8928
8929 2003-05-15  David Carlton  <carlton@bactrian.org>
8930
8931         Committed by Elena Zannoni <ezannoni@redhat.com>
8932         * symtab.c (lookup_symbol_aux): Delete calls to
8933         lookup_symbol_aux_minsyms.
8934         (lookup_symbol_aux_minsyms): Comment out function and
8935         prototype. Delete lookup by mangled name.
8936
8937 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
8938
8939         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8940         correctly indicate an empty stack and ``stack_allocated'' to the
8941         indicate the number of elements initially allocated.
8942         (dwarf_expr_grow_stack): Simplify method for computing new
8943         stack size.  Don't loop infinitely if ``stack_len'' is zero.
8944         (execute_stack_op): Move ``ctx->in_reg'' initialization
8945         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8946         be used in conjuction with DW_OP_piece.  Revise error message
8947         accordingly.
8948
8949 2003-05-14  Theodore A. Roth  <troth@openavr.org>
8950
8951         * MAINTAINERS: Update my email address.
8952         * avr-tdep.c: Ditto.
8953
8954 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
8955
8956         * symtab.h (enum domain_enum): Rename from namespace_enum.
8957         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8958         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8959         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8960         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8961         TYPES_NAMESPACE, METHODS_NAMESPACE.
8962         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8963         (struct symbol, struct partial_symbol): Rename field
8964         'namespace_enum namespace' to 'domain_enum domain'.
8965         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8966         Delete old define kludge for namespace.
8967
8968         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8969         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8970         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8971         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8972         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8973         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8974         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8975         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8976         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8977         occurrences of the above.
8978
8979 2003-05-14  Ian Lance Taylor  <ian@airs.com>
8980
8981         * Makefile.in (install-only): Use $(SHELL) when running
8982         mkinstalldirs.
8983
8984 2003-05-13  Ian Lance Taylor  <ian@airs.com>
8985
8986         * MAINTAINERS (write after approval): Add myself.
8987
8988         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8989         second and third arguments.
8990         * ser-tcp.c (_initialize_ser_tcp): Likewise.
8991         * ser-unix.c (_initialize_ser_hardwire): Likewise.
8992
8993 2003-05-13  Andrew Cagney  <cagney@redhat.com>
8994
8995         * defs.h (store_address): Delete declaration.
8996         findvar.c (store_address): Delete function.
8997         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8998         store_unsigned_integer.
8999         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9000         * v850-tdep.c (v850_push_arguments): Ditto.
9001         * sparc-tdep.c (sparc_get_saved_register): Ditto.
9002         * sh-tdep.c (sh64_get_saved_register): Ditto.
9003         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9004         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9005         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9006         (mips_get_saved_register): Ditto.
9007         * ia64-tdep.c (ia64_get_saved_register): Ditto.
9008         (find_func_descr, ia64_push_arguments): Ditto.
9009         * i386-tdep.c (i386_push_arguments): Ditto.
9010         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9011         * frv-tdep.c (frv_push_arguments): Ditto.
9012         * frame.c (legacy_saved_regs_prev_register): Ditto.
9013         (deprecated_generic_get_saved_register): Ditto.
9014         * findvar.c (unsigned_address_to_pointer): Ditto.
9015         * dwarf2read.c (dwarf2_const_value): Ditto.
9016         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9017         * alpha-tdep.c (alpha_push_arguments): Ditto.
9018
9019 2003-05-12  J. Brobecker  <brobecker@gnat.com>
9020
9021         * NEWS: Mention that the hppa-hpux port has been partially
9022         multiarched (32bit ABIT only, so far).
9023
9024 2003-05-11  Andrew Cagney  <cagney@redhat.com>
9025
9026         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9027         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9028         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9029         sim/testsuite/sim/arm/misaligned2.ms, and
9030         sim/testsuite/sim/arm/misaligned3.ms.
9031         * disasm.h (struct ui_file): Add opaque struct declaration.
9032         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9033         * frame.h (struct ui_file): Ditto.
9034
9035 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
9036
9037         * value.h: Pretty print.
9038
9039 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
9040
9041         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9042
9043 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9044
9045         * regcache.h (max_register_size): Delete declaration.
9046         * regcache.c (max_register_size): Delete function.
9047         (struct regcache_descr): Delete field "max_register_size".
9048         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9049         registers fit in MAX_REGISTER_SIZE.
9050         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9051         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9052         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9053         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9054         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9055         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9056         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9057         * dve3900-rom.c, hppa-tdep.c: Ditto.
9058
9059 2003-05-08  David Carlton  <carlton@math.stanford.edu>
9060
9061         * valops.c (push_word): Fix typo.
9062
9063 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9064
9065         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9066         * gdbarch.h: Re-generate.
9067         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9068         (legacy_max_register_raw_size): Delete declaration.
9069         * regcache.c (legacy_max_register_raw_size): Delete function.
9070         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9071         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9072         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9073         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9074         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9075         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9076         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9077         * findvar.c, dwarf2cfi.c: Ditto.
9078
9079 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9080
9081         * mips-tdep.c (read_signed_register): New function, moved to here
9082         from "regcache.c".
9083         (read_signed_register_pid): Ditto.
9084         * regcache.c (read_signed_register_pid): Delete function, moved to
9085         "mips-tdep.c".
9086         (read_signed_register): Ditto.
9087         * regcache.h (read_signed_register): Delete declaration.
9088         (read_signed_register_pid): Delete declaration.
9089
9090 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9091
9092         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9093         * gdbarch.h: Re-generate.
9094         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9095         (legacy_max_register_virtual_size): Delete declaration.
9096         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9097         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9098         * tracepoint.c (memrange_sortmerge): Ditto.
9099         * sparc-tdep.c (sparc_print_registers): Ditto.
9100         * regcache.c (legacy_max_register_virtual_size): Delete function.
9101
9102 2002-05-08  J. Brobecker  <brobecker@gnat.com>
9103
9104         * fork-child.c (escape_bang_in_quoted_argument): New function.
9105         (fork_inferior): Escape '!' characters in quoted arguments
9106         only when needed.
9107
9108 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9109
9110         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9111         the language of the CU is not currently supported by GDB.
9112
9113 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9114
9115         * defs.h (language): Add language_minimal enum value.
9116         * c-lang.c (minimal_language_defn): New language definition.
9117         (_initialize_c_language): Add the new minimal language to the list
9118         of languages known to GDB.
9119
9120 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
9121
9122         * frame.c (get_frame_type): Don't attempt to lazily initialize
9123         frame's unwinder for legacy frames.
9124
9125 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9126
9127         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9128         and "regcache" parameters.
9129         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9130
9131 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9132
9133         * dwarf2read.c (dwarf_decode_lines): Only use output of
9134         check_cu_functions() when calling record_line().  Do not update
9135         the current address.
9136
9137 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9138
9139         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9140         code.
9141
9142 2003-05-07  Jim Blandy  <jimb@redhat.com>
9143
9144         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9145         'maint info symtabs' and 'maint info psymtabs'.
9146         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9147         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9148         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9149         Declarations updated.
9150         * maint.c (maintenance_list_command): Delete.
9151         (_initialize_maint_cmds): Update calls to add_cmd.
9152         * gdbcmd.h (maintenancelistlist): Delete declaration.
9153         * cli/cli-cmds.c (maintenancelistlist): Delete.
9154         (init_cmd_lists): Don't initialize it.
9155         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9156
9157 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9158
9159         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9160         "regcache".
9161         (d10v_print_registers_info): Update.
9162         (d10v_dmap_register, d10v_imap_register): Delete functions.
9163         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9164         and "imap_register".
9165         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9166         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9167         * arch-utils.c (generic_remote_translate_xfer_address): Add
9168         "regcache" and "gdbarch" parameters.
9169         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9170         parameter.  Change class to multi-arch.
9171         * gdbarch.h, gdbarch.c: Re-generate.
9172         * remote.c (remote_xfer_memory): Use
9173         gdbarch_remote_translate_xfer_address.
9174
9175 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9176
9177         * infrun.c (prev_pc): Move declaration ahead of proceed().
9178         (proceed): Refresh prev_pc value before resuming.
9179         (stop_stepping): Remove code to refresh prev_pc.
9180
9181 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9182
9183         * nto-tdep.c: Removed stray comment.
9184
9185 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9186
9187         * i386-nto-tdep.c: Fix old K&R function definitions.
9188         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9189         Also change add_show_from_set() call to add_setshow_cmd().
9190         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9191
9192 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9193
9194         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9195         (fprint_dummy_frames): New function.
9196         (maintenance_print_dummy_frames): New function.
9197         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9198         * frame.c (fprint_frame_id): Make global.
9199         * frame.h (fprint_frame_id): Declare.
9200         * Makefile.in (dummy-frame.o): Update dependencies.
9201
9202 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9203
9204         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9205         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9206         SIZEOF_CALL_DUMMY_WORDS.
9207         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9208         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9209         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9210         CALL_DUMMY_BREAKPOINT_OFFSET.
9211         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9212         CALL_DUMMY_START_OFFSET.
9213         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9214         * gdbarch.h, gdbarch.c: Re-generate.
9215         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9216         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9217         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9218         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9219         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9220         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9221         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9222         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9223         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9224         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9225         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9226         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9227         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9228         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9229         * config/sparc/tm-sparc.h: Update.
9230
9231 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9232
9233         * configure.tgt: Add i[3456]86-*-nto*.
9234         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9235         * nto-tdep.c: New file. Neutrino target support routines.
9236         * nto-tdep.h: New file. Neutrino target header.
9237         * config/tm-qnxnto.h: New file.
9238         * config/i386/i386nto.mt: New file.
9239         * config/i386/tm-i386nto.h: New file.
9240
9241 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9242
9243         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9244         (load_infrun_state): Ditto.
9245         (struct thread_info): Drop "prev_func_name" field.
9246         * thread.c (load_infrun_state): Update.
9247         (save_infrun_state): Update.
9248         * infrun.c (prev_func_name): Delete variable.
9249         (init_wait_for_inferior): Do not clear prev_func_name.
9250         (stop_stepping, keep_going, context_switch): Do not swap
9251         prev_func_name.
9252         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9253         instead of PC_IN_SIGTRAMP.
9254
9255 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9256
9257         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9258         REGISTER_BYTE with register_offset_hack.
9259         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9260         that REGISTER_BYTE is consistent with the regcache.
9261         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9262         * gdbarch.h, gdbarch.c: Regenerate.
9263
9264 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9265
9266         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9267         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9268
9269         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9270
9271 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9272
9273         From Thierry Schneider <tpschneider1@yahoo.com>
9274         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9275         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9276         (mi-cmd-symbol.o): Add rule.
9277
9278 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9279
9280         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9281         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9282         * gdbarch.h, gdbarch.c: Re-generate.
9283         * d10v-tdep.c (d10v_push_dummy_code): New function.
9284         (d10v_gdbarch_init): Set push_dummy_code.
9285         * infcall.c (legacy_push_dummy_code): New function.
9286         (generic_push_dummy_code): New function.
9287         (push_dummy_code): New function.
9288         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9289         instead of dummy_addr, to push_dummy_call.  Move call to
9290         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9291         switch.
9292         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9293
9294 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9295
9296         * disasm.h (print_insn): Declare.
9297         * disasm.c (init_gdb_disassemble_info): New function.
9298         (gdb_disassembly): Call init_gdb_disassemble_info.
9299         (gdb_print_insn): New function.
9300         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9301         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9302         * mcore-tdep.c: Include "disasm.h"
9303         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9304         * d10v-tdep.c: Include "disasm.h".
9305         (display_trace): Call gdb_print_insn, instead of print_insn.
9306         (print_insn): Delete function.
9307         * printcmd.c: Include "disasm.h".
9308         (print_insn): Delete function.
9309         (print_formatted): Call gdb_print_insn, instead of print_insn.
9310         * Makefile.in (printcmd.o): Update dependencies.
9311         (mcore-tdep.o, d10v-tdep.o): Ditto.
9312
9313 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9314
9315         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9316         PC_REGNUM, re-indent.
9317         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9318         PC_REGNUM isn't set.
9319
9320         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9321         * gdbarch.h, gdbarch.c: Re-generate.
9322         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9323         register_virtual_size, pc_regnum, or register_bytes.
9324         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9325         (d10v_register_type): Use D10V_PC_REGNUM.
9326         (d10v_print_registers_info, d10v_read_pc): Ditto.
9327         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9328         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9329
9330 2003-05-02  David Carlton  <carlton@bactrian.org>
9331
9332         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9333         the name with mstrsave.
9334
9335 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9336
9337         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9338         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9339         (host_charset_name, target_charset_name): New vars for use by
9340         set/show commands.
9341         (host_charset_enum, target_charset_enum): New enums for set/show
9342         commands.
9343         (set_charset_sfunc, set_host_charset_sfunc,
9344         set_target_charset_sfunc): New functions.
9345         (set_host_charset, set_target_charset): Make static.
9346         (list_charsets, set_host_charset_command,
9347         set_target_charset_command): Delete functions.
9348         (show_charset_command): Rewrite as....
9349         (show_charset): Hook this up with the set/show command mechanism.
9350         (_initialize_charset): Change names of charsets to match the
9351         set/show enums. Use host_charset_name and target_charset_name.
9352         Use set/show mechanism for charset, host-charset, target-charset
9353         commands. Do not make 'show host-charset' and 'show
9354         target-charset' be aliases of 'show charset'.
9355
9356         * charset.h (set_host_charset, set_target_charset): Don't export,
9357         they are not used outside the file.
9358
9359 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9360
9361         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9362         (gdb_disassembly): Make "di" non static, always initialize and
9363         cleanup.  Always use dis_asm_read_memory.
9364         (gdb_dis_asm_read_memory): Delete function.
9365
9366 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9367
9368         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9369         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9370
9371 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9372
9373         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9374         "tm_print_insn_info".
9375         (TARGET_PRINT_INSN_INFO): Delete macro.
9376         (dis_asm_read_memory): Delete function declaration.
9377         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9378         (tm_print_insn_info): Delete variable definition.
9379         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9380         * gdbarch.h, gdbarch.c: Re-generate.
9381         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9382         "deprecated_tm_print_insn_info".
9383         * mcore-tdep.c (mcore_dump_insn): Ditto.
9384         * mips-tdep.c (mips_gdbarch_init): Ditto.
9385         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9386         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9387         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9388         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9389         instead of TARGET_PRINT_INSN_INFO, add comment.
9390         * s390-tdep.c (s390_get_frame_info): Instead of
9391         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9392         (s390_check_function_end, s390_is_sigreturn): Ditto.
9393         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9394         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9395         * disasm.c: Include "gdbcore.h".
9396         (_initialize_disasm): New function, initialize
9397         "deprecated_tm_print_insn_info".
9398         (deprecated_tm_print_insn_info): New variable.
9399         (dis_asm_read_memory): Moved from "corefile.c", made static.
9400         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9401         * Makefile.in (disasm.o): Update dependencies.
9402
9403 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9404
9405         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9406
9407 2003-04-29  Adam Fedor  <fedor@gnu.org>
9408
9409         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9410         * infcall.c (find_function_addr): Make non-static.
9411         * infcall.h (find_function_addr): Declare.
9412         * Makefile.in (eval.o): Update dependencies.
9413
9414 2003-04-28  Adam Fedor  <fedor@gnu.org>
9415
9416         * symtab.c (symbol_find_demangled_name): Check for and demangle
9417         ObjC symbols.
9418         (symbol_init_demangled_name): Init for language_objc as well.
9419
9420 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9421
9422         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9423         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9424         * gdbarch.h, gdbarch.c: Re-generate.
9425         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9426         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9427         * inferior.h (deprecated_read_fp): Rename read_fp.
9428         (generic_target_read_fp): Delete declaration.
9429         * regcache.c (generic_target_read_fp): Delete function.
9430         (deprecated_read_fp): Replace read_fp, use
9431         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9432         * d10v-tdep.c (d10v_read_fp): Delete function.
9433         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9434
9435         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9436         deprecated_target_read_fp to generic_target_read_fp.
9437         * sh-tdep.c (sh_gdbarch_init): Ditto.
9438         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9439         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9440         * frv-tdep.c (frv_gdbarch_init): Ditto.
9441
9442         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9443         deprecated_fp_regnum.
9444         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9445         * vax-tdep.c (vax_gdbarch_init): Ditto.
9446         * v850-tdep.c (v850_gdbarch_init): Ditto.
9447         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9448         * sh-tdep.c (sh_gdbarch_init): Ditto.
9449         * s390-tdep.c (s390_gdbarch_init): Ditto.
9450         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9451         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9452         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9453         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9454         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9455         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9456         * i386-tdep.c (i386_gdbarch_init): Ditto.
9457         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9458         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9459         * frv-tdep.c (frv_gdbarch_init): Ditto.
9460         * cris-tdep.c (cris_gdbarch_init): Ditto.
9461         * avr-tdep.c (avr_gdbarch_init): Ditto.
9462         * arm-tdep.c (arm_gdbarch_init): Ditto.
9463         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9464
9465         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9466         * v850-tdep.c (v850_gdbarch_init): Ditto.
9467         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9468         * sh-tdep.c (sh_gdbarch_init): Ditto.
9469         * s390-tdep.c (s390_gdbarch_init): Ditto.
9470         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9471         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9472         * mips-tdep.c (mips_gdbarch_init): Ditto.
9473         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9474         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9475         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9476         * frv-tdep.c (frv_gdbarch_init): Ditto.
9477         * avr-tdep.c (avr_gdbarch_init): Ditto.
9478         * arm-tdep.c (arm_gdbarch_init): Ditto.
9479
9480         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9481         DEPRECATED_FP_REGNUM.
9482         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9483         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9484         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9485         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9486         (sparc32_register_virtual_type): Ditto.
9487         * sh-tdep.c (sh64_frame_chain): Ditto.
9488         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9489         (sh_nofp_frame_init_saved_regs): Ditto.
9490         (sh64_nofp_frame_init_saved_regs): Ditto.
9491         (sh_fp_frame_init_saved_regs): Ditto.
9492         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9493         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9494         * procfs.c (procfs_fetch_registers): Ditto.
9495         (procfs_store_registers): Ditto.
9496         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9497         (store_inferior_registers, fetch_core_registers): Ditto.
9498         (fetch_kcore_registers, clear_regs): Ditto.
9499         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9500         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9501         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9502         * nlm/i386.c (do_status): Ditto.
9503         * mipsv4-nat.c (supply_gregset): Ditto.
9504         * mips-tdep.c: Ditto for comments.
9505         * mips-nat.c (fetch_inferior_registers): Ditto.
9506         (store_inferior_registers, fetch_core_registers): Ditto.
9507         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9508         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9509         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9510         (i386_do_pop_frame, i386_register_type): Ditto.
9511         * hppa-tdep.c (hppa_frame_chain): Ditto.
9512         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9513         (hppa_pop_frame, hppa_read_fp): Ditto.
9514         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9515         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9516         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9517         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9518         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9519         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9520         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9521         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9522         * blockframe.c: Ditto for comments.
9523         * arch-utils.h: Ditto for comments.
9524         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9525         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9526         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9527         * alpha-tdep.h: Ditto for comments.
9528         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9529         (alpha_cannot_store_register): Ditto.
9530         (alpha_push_dummy_frame): Ditto.
9531         * alpha-nat.c (supply_gregset): Ditto.
9532
9533         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9534         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9535         * config/sparc/tm-sparc.h: Update comment.
9536
9537         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9538         deprecated_read_fp instead of TARGET_READ_FP.
9539         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9540         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9541         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9542         deprecated_read_fp instead of read_fp.
9543         * s390-tdep.c (s390_push_arguments): Ditto.
9544         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9545         * frame.h: Ditto in comments.
9546         * frame.c (legacy_get_prev_frame): Ditto.
9547         * dummy-frame.c (dummy_frame_this_id): Ditto.
9548         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9549
9550 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9551
9552         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9553         * gdbarch.h, gdbarch.c: Re-generate.
9554         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9555         * vax-tdep.c (_initialize_vax_tdep): Update.
9556         * v850-tdep.c (_initialize_v850_tdep): Update.
9557         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9558         * s390-tdep.c (_initialize_s390_tdep): Update.
9559         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9560         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9561         * mips-tdep.c (_initialize_mips_tdep): Update.
9562         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9563         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9564         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9565         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9566         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9567         * frv-tdep.c (_initialize_frv_tdep): Update.
9568         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9569         (_initialize_cris_tdep): Update.
9570         * arch-utils.c (legacy_print_insn): Update.
9571         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9572
9573 2003-04-26  Adam Fedor  <fedor@gnu.org>
9574
9575         * linespec.c (decode_objc): New function to decode ObjC calls
9576         (decode_line_1): Check for ObjC calls (using decode_objc)
9577         * Makefile (linespec.o): Update dependencies.
9578
9579 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9580
9581         * breakpoint.h (struct breakpoint_ops): New.
9582         (struct breakpoint): Add ops member.
9583
9584         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9585         (mention): Use new breakpoint ops member.
9586         (set_raw_breakpoint): Initialize ops field to NULL.
9587         (print_exception_catchpoint, print_one_exception_catchpoint)
9588         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9589         (gnu_v3_exception_catchpoint_ops): New.
9590         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9591
9592 2003-04-25  Adam Fedor  <fedor@gnu.org>
9593
9594         * Makefile.in (COMMON_OBS): Add objc-lang.o
9595
9596 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9597
9598         * d10v-tdep.c (print_insn): Delete function.
9599         (display_trace): Use TARGET_PRINT_INSN.
9600         (_initialize_d10v_tdep): Do not set tm_print_insn.
9601         (d10v_gdbarch_init): Set print_insn.
9602
9603 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9604
9605         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9606         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9607         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9608         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9609         (nr_dmap_regs, a0_regnum): ... new functions.
9610         (d10v_print_registers_info): Use a0_regnum, use register_size.
9611         (d10v_register_byte): Delete function.
9612         (d10v_register_raw_size): Delete function.
9613         (d10v_register_type): Use a0_regnum.
9614         (d10v_print_registers_info): Use a0_regnum.
9615         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9616         (d10v_gdbarch_init): Do not set register_byte or
9617         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9618         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9619         extract_address.
9620         (trace_command): Use XCALLOC.
9621         (print_insn): Delete reference to tm_print_insn.
9622         (saved_regs_unwinder): Use store_unsigned_integer instead of
9623         store_address.
9624         * frame.h (FRAME_OBSTACK_CALLOC): Define
9625
9626 2003-04-25  David Carlton  <carlton@bactrian.org>
9627
9628         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9629
9630 2003-04-24  Adam Fedor  <fedor@gnu.org>
9631
9632         * objc-lang.c: Include "valprint.h"
9633         * Makefile.in (objc-lang.o): Update dependencies.
9634
9635 2003-04-24  Adam Fedor  <fedor@gnu.org>
9636
9637         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9638         architecture dependant compilation and mark as unimplemented
9639         (until they get put in the gdbarch vector).
9640
9641 2003-04-23  David Carlton  <carlton@bactrian.org>
9642
9643         * cp-support.c (cp_find_first_component): Accept 'operator' in
9644         more locations.
9645
9646 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9647
9648         * infcall.c (call_function_by_hand): Eliminate redundant
9649         indentation.  Move "saved_async" and "old_cleanups" to where they
9650         are needed.
9651
9652 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9653
9654         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9655         and "buffer".  Move the "name" code to where it is needed.
9656
9657 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9658
9659         * infcall.c (call_function_by_hand): Move variables "start_sp",
9660         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9661         code to ON_STACK switch branch.
9662
9663 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9664
9665         * infcall.c (call_function_by_hand): Make declaration of "i",
9666         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9667         lint.
9668
9669 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9670
9671         * infcall.c (call_function_by_hand): Delete variable
9672         "n_method_args".  Localize "param_type"'s declaration to the loop
9673         that it is used.  Reinstate code assigning to said variable -
9674         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9675         Rationalize code using "param_type".
9676
9677 2003-04-22  Andrew Cagney  <cagney@redhat.com>
9678
9679         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9680         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9681         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9682         to DEPRECATED_PUSH_RETURN_ADDRESS.
9683
9684 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
9685
9686         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9687         on the DWARF2 register number prior to fetching a register.
9688
9689 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9690
9691         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9692         Update all the tests using SOFT_FLOAT considering the fact that
9693         this macro was always set to 0.
9694         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9695         considering the fact that this macro was always set to 0.
9696         * hppa-tdep.h (hppa_store_return_value): Likewise.
9697         (hppa_extract_return_value): Likewise.
9698
9699 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9700
9701         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9702         the hppa-pro target only.
9703
9704 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9705
9706         Ongoing multi-arch conversion effort for HP/UX:
9707         * config/pa/tm-hppa.h: Move all macro that are no longer
9708         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9709         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9710
9711 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9712
9713         * config/pa/tm-hppa.h: Obsolete a section that was only used
9714         for hppa-pro.
9715
9716 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9717
9718         Ongoing multi-arch conversion for HP/UX.
9719         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9720         if already defined (allows hppa64 to stay non-multiarched for now).
9721         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9722
9723 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9724
9725         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9726
9727 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9728
9729         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9730         "i386_num_mmx_regs".
9731
9732 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9733
9734         * infcall.c: New file.
9735         * infcall.h: New file.
9736         * valarith.c: Include "infcall.h".
9737         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9738         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9739         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9740         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9741         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9742         (SFILES): Add "infcall.c"
9743         (COMMON_OBS): Add "infcall.o".
9744         (infcall.o): Specify dependencies.
9745         * value.h (call_function_by_hand): Delete declaration.
9746         * inferior.h (run_stack_dummy): Delete declaration.
9747         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9748         (run_stack_dummy): Move to "infcall.c", merged into
9749         call_function_by_hand.
9750         * valops.c (call_function_by_hand): Moved to "infcall.c".
9751         (find_function_addr, value_arg_coerce): Ditto.
9752         (unwindonsignal_p, coerce_float_to_double): Ditto.
9753         (_initialize_valops): Move "set/show coerce-float-to-double", and
9754         "set/show unwindonsignal" commands to "infcall.c".
9755         * v850-tdep.c, target.h: Update comments.
9756         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9757         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9758         (sh64_init_extra_frame_info): Update comments.
9759         * mn10300-tdep.c: Update comments.
9760         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9761         * config/sparc/tm-sparc.h: Update comments.
9762         * breakpoint.h: Update comments.
9763         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9764         * arm-tdep.c: Update comment.
9765
9766 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9767
9768         * i386-tdep.c (i386_num_register_names): New variable.
9769         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9770         (MM0_REGNUM): Remove redundant parentheses in define.
9771         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9772         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9773         i386_mxcsr_regnum_p): Remove redundant parentheses.
9774         (i386_register_name): Use i386_num_register_names.
9775
9776         * i386-tdep.c (i386_extract_return_value,
9777         i386_store_return_value): Correct check for availability of
9778         floating-point registers.
9779
9780         * i386-tdep.c (i386_frame_num_args): Remove function.
9781         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9782
9783         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9784         mmx_regnum_to_fp_regnum.  Adjust all callers.
9785
9786         * i386-tdep.c (i386_get_longjmp_target): Use
9787         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9788         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9789         extract_address.
9790
9791 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9792
9793         * core-regset.c: Update comments to reflect reality.  Re-order
9794         includes.
9795         (fetch_core_registers): Use switch instead of if.  Remove
9796         redundant prototype.
9797
9798 2003-04-18  Jim Blandy  <jimb@redhat.com>
9799
9800         * s390-tdep.c (s390_frame_align): New function.
9801         (s390_gdbarch_init): Register it with the gdbarch object.
9802
9803 2003-04-17  Richard Henderson  <rth@redhat.com>
9804
9805         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9806
9807 2003-04-17  Michael Snyder  <msnyder@redhat.com>
9808             Karen Bennet  <bennet@redhat.com>
9809
9810         Committed by Elena Zannoni  <ezannoni@redhat.com>
9811         * gdb_gcore.sh: New script to create a core dump of a process.
9812
9813 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
9814
9815         * values.c (value_being_returned): Don't fetch the return
9816         value if the return type is void.
9817
9818 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9819
9820         * thread-db.c: Reindented.
9821
9822 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9823
9824         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9825         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9826         as types.
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
9853
9854         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9855         the size of ``long double'' to 16, instead of 8.
9856
9857 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
9858
9859         * i386-linux-nat.c: Add some whitespace to make things more
9860         readable.
9861         (fetch_register, store_register, fetch_inferior_registers,
9862         store_inferior_registers): Get rid of assignment in if-statement.
9863         (store_register): Fix typo in error message.
9864
9865 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9866
9867         * utils.c (xmmalloc): Always allocate something, matches
9868         libiberty/xmalloc's semantics.
9869         (xmrealloc, xmcalloc): Ditto.
9870
9871 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9872
9873         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9874         update comments.
9875         (get_frame_type): Initialize unwind and type when needed.
9876         (get_frame_id, frame_register_unwind): Ditto.
9877
9878 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9879
9880         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9881         obsolete.
9882         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9883         * sparcl-stub.c: Obsolete file.
9884         * config/sparc/tm-sparclet.h: Obsolete file.
9885         * sparclet-stub.c: Obsolete file.
9886         * sparclet-rom.c: Obsolete file.
9887         * sparcl-tdep.c: Obsolete file.
9888         * config/sparc/tm-sparclite.h: Obsolete file.
9889         * config/sparc/sparclite.mt: Obsolete file.
9890         * config/sparc/sparclet.mt: Obsolete file.
9891         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9892         sparc86x-*-* obsolete.
9893
9894 2003-04-15  David Carlton  <carlton@math.stanford.edu>
9895
9896         * Makefile.in (SFILES): Add cp-namespace.c.
9897         (COMMON_OBS): Add cp-namespace.o.
9898         (block.o): Depend on gdb_obstack_h and cp_support_h.
9899         (buildsym.o): Depend on cp_support_h.
9900         (cp-namespace.o): New.
9901         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9902         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9903         (dwarf2read.o): Depend on cp_support_h.
9904         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9905         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9906         processing_current_namespace.
9907         (read_namespace): Update processing_current_namespace; check for
9908         anonymous namespaces.
9909         (dwarf2_name): New function.
9910         (dwarf2_extension): Ditto.
9911         * cp-support.h: Update copyright, contributors.
9912         Add inclusion guards.
9913         Add opaque declaration for structs obstack, block, symbol.
9914         (struct using_direct): New struct.
9915         Add declarations for cp_find_first_component,
9916         cp_entire_prefix_len, processing_has_namespace_info,
9917         processing_current_namespace, cp_is_anonymous,
9918         cp_add_using_directive, cp_initialize_namespace,
9919         cp_finalize_namespace, cp_set_block_scope,
9920         cp_scan_for_anonymous_namespaces.
9921         * cp-namespace.c: New file.
9922         * cp-support.c: Update copyright.
9923         Include ctype.h, gdb_assert.h, gdbcmd.h.
9924         New variable maint_cplus_cmd_list.
9925         (cp_find_first_component): New function.
9926         (cp_entire_prefix_len, maint_cplus_command)
9927         (first_component_command, _initialize_cp_support): Ditto.
9928         * buildsym.c: Include cp-support.h.
9929         New variable using_list.
9930         (add_symbol_to_list): Check for anonymous namespaces.
9931         (finish_block): Set block's scope.
9932         (start_symtab): Initialize C++ namespace support.
9933         (end_symtab): Finalize C++ namespace support.
9934         * block.h: Add opaque declarations for structs
9935         block_namespace_info, using_direct, and obstack.
9936         Add declarations for block_set_scope and block_set_using.
9937         (struct block): Add 'language_specific' member.
9938         (BLOCK_NAMESPACE): New macro.
9939         * block.c: Include gdb_obstack.h and cp-support.h.
9940         (struct block_namespace_info): New struct.
9941         (block_set_scope): New function.
9942         (block_set_using, block_initialize_namespace): Ditto.
9943
9944 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
9945
9946         * solib-svr4.c (svr4_have_link_map_offsets): New function.
9947         (locate_base): Return early if there aren't any link map offsets.
9948         (svr4_solib_create_inferior_hook): Warn if shared library support
9949         is unavailable.
9950
9951 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9952
9953         * symtab.c (symbol_set_names): Add prefix when storing Java names
9954         in hash table.  Fix for PR java/1039.
9955
9956 2003-04-14  David Carlton  <carlton@math.stanford.edu>
9957
9958         * symtab.c (symbol_set_names): Rename 'name' arg to
9959         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9960         * symtab.h: Change 'name' argument in declaration of
9961         symbol_set_names to 'linkage_name'.
9962         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9963
9964 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9965
9966         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9967         return the fully sign-extended register value.
9968         (get_frame_pointer): Ditto.
9969         (mips_pop_frame): Initialize "proc_desc" after checking for a
9970         dummy frame.
9971
9972 2003-04-14  Andrew Cagney  <cagney@redhat.com>
9973
9974         * mips-tdep.c (mips_push_dummy_frame): Delete function.
9975         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9976         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9977         (mips_push_register): Delete function.
9978         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9979         PUSH_FP_REGNUM.
9980
9981 2003-04-14  Jim Blandy  <jimb@redhat.com>
9982
9983         * symmisc.c: #include "gdb_regex.h".
9984         (maintenance_list_symtabs, maintenance_list_psymtabs): New
9985         functions.
9986         * maint.c (maintenance_list_command): New function.
9987         (_initialize_maint_cmds): Register the above as commands.
9988         * symtab.h (maintenance_list_symtabs,
9989         maintenance_list_psymtabs): New declarations.
9990         * cli/cli-cmds.c (maintenancelistlist): New variable.
9991         (init_cmd_lists): Initialize it.
9992         * cli/cli-cmds.h (maintenancelistlist): New declaration.
9993         * gdbcmd.h (maintenancelistlist): New declaration.
9994         * Makefile.in (symmisc.o): Update dependencies.
9995
9996 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
9997
9998         * s390-nat.c: Include asm/types.h for addr_t.
9999
10000 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
10001
10002         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10003         actually incoming type.
10004
10005 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10006
10007         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10008         get_next_frame and get_frame_saved_regs.
10009
10010 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10011
10012         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10013         of gdbarch_num_regs.
10014
10015 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10016
10017         * frame.h: Mention what replaced what in "struct frame_info".
10018         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10019         deprecated_update_frame_base_hack and
10020         deprecated_update_frame_pc_hack.
10021         * hppa-tdep.c: Ditto.
10022
10023 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10024
10025         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10026         to read_reg and update its comment.  Remove regnum member.
10027         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10028         Don't call read_reg when setting in_reg.  Call read_reg to get
10029         the frame base if it's in a register.  Return the register number
10030         on the stack instead of in the context.  Remove extra arguments
10031         to read_reg.
10032         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10033         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10034         the register number on the expression stack.
10035         (needs_frame_read_reg): Remove extra arguments.
10036
10037 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10038
10039         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10040         made non-static.
10041         (execute_stack_op): All callers updated.
10042         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10043         * dwarf2loc.c (find_location_expression): New function.
10044         (dwarf_expr_frame_base): Call it.
10045         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10046         (dwarf2_tracepoint_var_ref): New function, broken out from
10047         locexpr_tracepoint_var_ref.
10048         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10049         Make static.
10050         (loclist_read_variable, loclist_read_needs_frame): New functions.
10051         (loclist_describe_location, loclist_tracepoint_var_ref): New
10052         functions.
10053         (dwarf2_loclist_funcs): New struct location_funcs.
10054         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10055         (struct dwarf2_locexpr_baton): Add comments.
10056         (dwarf2_loclist_funcs): New extern.
10057         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10058         base_address and base_known.
10059         (dwarf_loc_buffer): New variable.
10060         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10061         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10062         (dwarf2_has_info): Initialize dwarf_loc_offset.
10063         (dwarf2_build_psymtabs): Read in .debug_loc.
10064         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10065         DWARF_LOC_SIZE.
10066         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10067         here, from...
10068         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10069         cu_header.
10070         (dwarf2_symbol_mark_computed): Handle location lists.
10071
10072 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10073
10074         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10075         if the linkage name demangled successfully.
10076
10077 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10078
10079         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10080         disassmbly_flavour): Removed.
10081
10082         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10083
10084 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10085
10086         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10087
10088 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10089
10090         * frame.h (struct frame_info): Move definition from here ...
10091         * frame.c (struct frame_info): ... to here.
10092
10093 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10094
10095         * gdbthread.h (save_infrun_state): Delete parameter
10096         "prev_func_start".
10097         (struct thread_info): Delete field "prev_func_start".
10098         (load_infrun_state): Ditto.
10099         * thread.c (load_infrun_state, save_infrun_state): Update.
10100         * infrun.c (prev_func_start): Delete variable.
10101         (context_switch, init_wait_for_inferior): Update.
10102         (stop_stepping, keep_going): Update.
10103
10104 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10105
10106         * gdbarch.sh: Add missing opaque declarations.
10107         * gdbarch.h: Regnerate.
10108         * symtab.h: Add missing opaque declarations.
10109         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10110         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10111         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10112         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10113         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10114         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10115         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10116         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10117         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10118         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10119         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10120         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10121         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10122
10123 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10124
10125         * frame.c (get_frame_id): Return this frame's "id".
10126         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10127         function start.
10128         (legacy_saved_regs_this_id): Replace function body with
10129         internal-error.
10130         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10131         FRAME_OBSTACK_ZALLOC.
10132         (create_new_frame): Mark the frame ID as valid.
10133
10134 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
10135
10136         * Makefile.in (libbfd_h): Added missing setting.
10137         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10138         according to the selected ABI.
10139
10140 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
10141
10142         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10143
10144 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10145
10146         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10147         SAVED_PC_AFTER_CALL.
10148         * gdbarch.h, gdbarch.c: Regenerate.
10149         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10150         * x86-64-tdep.c (x86_64_init_abi): Update.
10151         * vax-tdep.c (vax_gdbarch_init): Update.
10152         * v850-tdep.c (v850_gdbarch_init): Update.
10153         * sparc-tdep.c (sparc_gdbarch_init): Update.
10154         * sh-tdep.c (sh_gdbarch_init): Update.
10155         * s390-tdep.c (s390_gdbarch_init): Update.
10156         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10157         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10158         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10159         * mips-tdep.c (mips_gdbarch_init): Update.
10160         * mcore-tdep.c (mcore_gdbarch_init): Update.
10161         * m68k-tdep.c (m68k_gdbarch_init): Update.
10162         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10163         * ia64-tdep.c (ia64_gdbarch_init): Update.
10164         (ia64_saved_pc_after_call): Update declaration.
10165         * i386ly-tdep.c (i386lynx_init_abi): Update.
10166         * i386-tdep.c (i386_gdbarch_init): Update.
10167         * hppa-tdep.c (hppa_gdbarch_init): Update.
10168         * h8300-tdep.c (h8300_gdbarch_init): Update.
10169         * frv-tdep.c (frv_gdbarch_init): Update.
10170         * cris-tdep.c (cris_gdbarch_init): Update.
10171         * avr-tdep.c (avr_gdbarch_init): Update.
10172         * arm-tdep.c (arm_gdbarch_init): Update.
10173         * alpha-tdep.c (alpha_gdbarch_init): Update.
10174         * ns32knbsd-nat.c (frame_num_args): Update.
10175         * ns32k-tdep.c (umax_frame_num_args): Update.
10176         * mips-tdep.c (mips_init_frame_pc_first): Update.
10177         * infrun.c (step_over_function): Update.
10178         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10179         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10180         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10181         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10182         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10183         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10184         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10185         * arch-utils.c (init_frame_pc_default): Update.
10186         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10187         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10188         declaration.
10189
10190 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10191
10192         * i387-tdep.c: Update copyright.
10193         (i387_to_double): Delete function.
10194         (double_to_i387): Delete function.
10195
10196 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10197
10198         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10199         frame's function's address.  Simplify.
10200         (d10v_frame_unwind_cache): Check that the frame's function is
10201         non-zero.
10202
10203 2003-04-10  Jim Blandy  <jimb@redhat.com>
10204
10205         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10206         call to set_gdbarch_deprecated_push_arguments.
10207
10208 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10209
10210         * frame.c (fprint_frame_id): New function.
10211         (fprint_frame_type, fprint_frame): New function.
10212         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10213         (create_sentinel_frame, get_frame_id): Ditto.
10214         (frame_id_p, frame_id_eq): Ditto.
10215         (frame_id_inner, create_new_frame): Ditto.
10216         (legacy_get_prev_frame, get_prev_frame): Ditto.
10217         (deprecated_update_frame_pc_hack): Ditto.
10218         (frame_register_unwind): Ditto.
10219         (deprecated_update_frame_base_hack): Ditto.
10220
10221 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10222
10223         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10224         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10225         frame_chain function.
10226         * Makefile.in: Add dependencies due to above change.
10227
10228 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10229
10230         * blockframe.c (legacy_frame_chain_valid): Move call to
10231         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10232         inside_entry_file.
10233
10234 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10235
10236         * frame.h (struct frame_id): Replace "pc" and "base" with
10237         "stack_addr" and "code_addr".  Update comments.
10238         (frame_id_build): Update parameter names and comment.
10239         (struct frame_info): Replace "id_p" and "id" with "this_id".
10240         * dummy-frame.c (dummy_frame_this_id): Update.
10241         * breakpoint.c (print_one_breakpoint): Update.
10242         * frame.c (get_frame_id): Update.
10243         (get_frame_base, frame_id_build): Update.
10244         (create_sentinel_frame, legacy_get_prev_frame): Update.
10245         (deprecated_update_frame_base_hack): Update.
10246         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10247         (frame_id_inner): Ditto.
10248
10249 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10250
10251         * defs.h (gdb_print_host_address): Make "addr" parameter a
10252         pointer constant.
10253         * utils.c (gdb_print_host_address): Update.
10254
10255 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10256
10257         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10258         register number for R0 is 0.
10259
10260 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10261
10262         * frame.h (struct gdbarch): Add opaque structure definition
10263         to avoid a compilation warning on LynxOS 4.0.
10264
10265 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10266
10267         * frame.h (struct frame_info): Delete field "pc".  Replace
10268         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10269         structure.
10270         * frame.c (frame_pc_unwind): Update.
10271         (create_sentinel_frame): Do not set "pc".
10272         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10273         (get_frame_pc): Call frame_pc_unwind.
10274         (deprecated_update_frame_pc_hack): Update.
10275         (create_new_frame): Use "pc" not "->pc".
10276
10277 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10278
10279         * frame.c (get_frame_id): Eliminate code updating "frame".
10280         (legacy_get_prev_frame): Ditto.
10281         (get_frame_base): Return id.base directly.
10282         (deprecated_update_frame_base_hack): Update "id.base".
10283         * frame.h (struct frame_info): Delete field "frame".
10284
10285 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10286
10287         * NEWS: Mention that the "Sequent family" is obsolete.
10288         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10289         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10290         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10291         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10292         * config/i386/tm-ptx4.h: Obsolete file.
10293         * config/i386/tm-ptx.h: Obsolete file.
10294         * symm-tdep.c: Obsolete file.
10295         * config/i386/symmetry.mt: Obsolete file.
10296         * config/i386/tm-symmetry.h: Obsolete file.
10297         * symm-nat.c: Obsolete file.
10298         * config/i386/nm-symmetry.h: Obsolete file.
10299         * config/i386/xm-symmetry.h: Obsolete file.
10300         * config/i386/symmetry.mh: Obsolete file.
10301         * config/i386/nm-ptx4.h: Obsolete file.
10302         * config/i386/ptx4.mh: Obsolete file.
10303         * config/i386/ptx.mt: Obsolete file.
10304         * config/i386/ptx.mh: Obsolete file.
10305         * config/i386/xm-ptx4.h: Obsolete file.
10306         * config/i386/xm-ptx.h: Obsolete file.
10307
10308 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10309
10310         Obsolete mips*-*-mach3*.
10311         * NEWS: Mention that mips*-*-mach3* is obsolete.
10312         * m3-nat.c: Obsolete file.
10313         * config/nm-m3.h: Obsolete file.
10314         * config/mips/tm-mipsm3.h: Obsolete file.
10315         * config/mips/mipsm3.mt: Obsolete file.
10316         * config/mips/mipsm3.mh: Obsolete file.
10317         * config/mips/xm-mipsm3.h: Obsolete file.
10318         * mipsm3-nat.c: Obsolete file.
10319         * configure.host: Obsolete mips-dec-mach3*.
10320         * configure.tgt: Obsolete mips*-*-mach3*.
10321
10322 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10323
10324         * doublest.h: Update copyright.
10325         (deprecated_store_floating, deprecated_extract_floating): Rename
10326         store_floating and extract_floating.  Update comments.
10327         * doublest.c: Update copyright.
10328         (extract_floating_by_length): Replace extract_floating.
10329         (store_floating_by_length): Replace store_floating.
10330         (deprecated_extract_floating): New function.
10331         (deprecated_store_floating): New function.
10332         (extract_typed_floating): Call extract_floating_by_length.
10333         (store_typed_floating): Call store_floating_by_length.
10334         * x86-64-tdep.c (x86_64_store_return_value): Update.
10335         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10336         (sh64_extract_return_value): Update.
10337         (sh_sh4_register_convert_to_virtual): Update.
10338         (sh_sh64_register_convert_to_virtual): Update.
10339         (sh_sh4_register_convert_to_raw): Update.
10340         (sh_sh64_register_convert_to_raw): Update.
10341         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10342         (rs6000_register_convert_to_raw): Update.
10343         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10344         (ia64_register_convert_to_raw): Update.
10345         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10346         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10347         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10348         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10349         (alpha_register_convert_to_raw): Update.
10350
10351 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10352
10353         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10354         * gdbarch.h, gdbarch.c: Re-generate.
10355         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10356         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10357         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10358         conditionally, use frame_pc_unwind as an alternative.  Add
10359         comments.
10360         * arch-utils.c (init_frame_pc_default): Only call
10361         SAVED_PC_AFTER_CALL when available.
10362
10363 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10364
10365         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10366         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10367         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10368         (start_remote): Ditto.
10369         (handle_inferior_event): Ditto.
10370         (save_inferior_status): Ditto.
10371         (restore_inferior_status): Ditto.
10372         * infcmd.c (attach_command): Ditto.
10373         * fork-child.c (startup_inferior): Ditto.
10374         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10375         * alpha-tdep.c (heuristic_proc_start): Ditto.
10376         * mips-tdep.c (heuristic_proc_start): Ditto.
10377         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10378         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10379         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10380         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10381         * remote-vx.c (vx_create_inferior): Ditto.
10382
10383 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10384
10385         * infrun.c (stop_soon_quietly): Make it an enum, to better
10386         override the default behavior of handle_inferior_event.
10387         (clear_proceed_status): Update uses of stop_soon_quietly to
10388         reflect that it is now an enum.
10389         (start_remote): Ditto.
10390         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10391         is set to handle the new GNU/Linux kernel behavior for
10392         attach/sigstop.  Update uses of stop_soon_quietly.
10393         * inferior.h (enum stop_kind): New enum.
10394         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10395         Reset normal handle_inferior_event behavior, afterwards.
10396         * fork-child.c (startup_inferior): Update.
10397         * alpha-tdep.c (heuristic_proc_start): Update.
10398         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10399         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10400         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10401         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10402         * remote-vx.c (vx_create_inferior): Update.
10403         * mips-tdep.c (heuristic_proc_start): Update.
10404
10405 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10406
10407         * disasm.c (dump_insns):  Move variables inside loop, or they will
10408         be freed more than once, causing wild memory corruptions.
10409         (gdb_disassembly): Look for the substring "-thread",
10410         instead of "-threads" in the target name, to make sure to find
10411         the 'multi-thread' target.  Also, make sure we do the right thing
10412         with the "core" target.
10413
10414 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10415
10416         * mips-tdep.c (mips_print_fp_register): New function, created from
10417         do_fp_register_row().  Registers are now (also) printed as hex.
10418         Only one register is printed per row.
10419         (mips_print_register, do_fp_register_row): Print floating point
10420         registers with mips_print_fp_register().
10421
10422 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10423
10424         * valprint.h (inspect_it): Add extern declaration.
10425         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10426         (selectors_info, classes_info): Ditto.
10427         (find_objc_msgcall): Fix indentation.
10428         (objc_printstr): Delete extern declarations.
10429
10430         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10431
10432 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10433
10434         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10435         Update comment.
10436         * frame.c (legacy_saved_regs_this_id): Update.
10437         (legacy_get_prev_frame): Update.
10438         * xstormy16-tdep.c: Update comment.
10439         * sparc-tdep.c (sparc_frame_chain): Update comment.
10440         * blockframe.c (legacy_frame_chain_valid): Update.
10441
10442 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10443
10444         * valprint.c (val_print_type_code_int): Delete #ifdef
10445         PRINT_TYPELESS_INTEGER code.
10446
10447         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10448         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10449         multi-arch definition.
10450         * gdbarch.h: Re-generate.
10451
10452 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10453
10454         Eliminate FRAME_FIND_SAVED_REGS.
10455         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10456         Change FSR parameter to a pointer.
10457         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10458         Assume FSR parameter is a pointer.
10459         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10460         Make fsr a pointer.
10461         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10462         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10463         saved_regs a pointer.
10464         (hppa_frame_saved_pc): Ditto.
10465         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10466         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10467         pointer.
10468         (restore_pc_queue): Make fsr a pointer.
10469         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10470         (hppa_frame_chain): Make saved_regs a pointer, call
10471         hppa_frame_init_saved_regs.
10472         * sparc-tdep.c: Include "gdb_assert.h".
10473         (sparc_frame_find_saved_regs): Replace internal_error with
10474         gdb_assert.
10475         * remote-vxsparc.c (vx_read_register): Delete reference to
10476         FRAME_FIND_SAVED_REGS.
10477         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10478         * gdbarch.h: Regenerate.
10479         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10480         (deprecated_get_frame_saved_regs): Delete declaration.
10481         (struct frame_saved_regs): Delete definition.
10482         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10483         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10484         (hppa_frame_find_saved_regs): Delete declaration.
10485         (FRAME_FIND_SAVED_REGS): Delete macro.
10486         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10487         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10488         FRAME_FIND_SAVED_REGS in comment.
10489
10490 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10491
10492         * frame.c (frame_func_unwind, get_frame_func): New functions.
10493         * frame.h (get_frame_func, frame_func_unwind): Declare.
10494         (struct frame_info): Add field "prev_func" for caching the
10495         previous frame's function address.
10496         * arm-tdep.c (arm_frameless_function_invocation): Combine
10497         get_pc_function_start and get_frame_pc into get_frame_func.
10498         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10499         (sh64_nofp_frame_init_saved_regs): Ditto.
10500         * s390-tdep.c (s390_function_start): Ditto.
10501         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10502         (rs6000_frameless_function_invocation): Ditto.
10503         (rs6000_frame_saved_pc): Ditto.
10504         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10505         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10506         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10507         (i386_frame_init_saved_regs): Ditto.
10508         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10509         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10510         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10511         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10512         * blockframe.c (frameless_look_for_prologue): Ditto.
10513
10514 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10515
10516         * frame.c (legacy_get_prev_frame): Link prev to next at the
10517         function start.  Update comments.
10518
10519 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10520
10521         * frame.c (get_frame_id): Update comment.
10522         (legacy_get_prev_frame): Update comment.
10523         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10524         * gdbarch.h: Regenerate.
10525         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10526         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10527
10528 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10529
10530         * stack.c (print_frame_info): Use get_frame_pc.
10531
10532 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10533
10534         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10535         the frame's type from the unwinder.
10536         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10537         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10538         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10539         (get_frame_base_address): Use get_frame_type.
10540         (get_frame_locals_address, get_frame_args_address): Ditto.
10541         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10542         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10543         (struct frame_info): Add comment explaining why the frame contains
10544         a "type" field.
10545         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10546         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10547         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10548         NORMAL_FRAME.
10549         * frame-unwind.h: Include "frame.h".
10550         (struct frame_unwind): Add "type" field.
10551         * Makefile.in (frame_unwind_h): Add $(frame_h).
10552
10553 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10554
10555         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10556         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10557         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10558         get_frame_base.
10559         (d10v_unwind_dummy_id): Use frame_id_build.
10560         * frame.c (find_frame_sal): Use get_frame_pc.
10561         (create_new_frame): Use deprecated_update_frame_pc_hack and
10562         deprecated_update_frame_base_hack.
10563         (create_sentinel_frame): Add comment about ->pc going away.
10564         (get_prev_frame): Add comment about ->pc going away.
10565         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10566         frame_id_build, deprecated_update_frame_pc_hack and
10567         deprecated_update_frame_base_hack.
10568         (select_frame): Use get_frame_pc.
10569         (legacy_saved_regs_this_id): Use frame_id_build.
10570
10571 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10572
10573         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10574         signed integer case.
10575         (classify_argument): Handle enumerations and references.
10576
10577 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10578
10579         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10580         ID to NULL.
10581
10582 2003-04-01  Adam Fedor  <fedor@gnu.org>
10583
10584         * gdb/objc-lang.c (selectors_info): Replace calls to
10585         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10586         SYMBOL_NATURAL_NAME.
10587         (classes_info, find_methods): Likewise.
10588
10589 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10590
10591         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10592         ``mach'' to the value determined by bfd_default_set_arch_mach().
10593
10594 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10595
10596         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10597         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10598         (mi-cmd-file.o): Update dependencies.
10599
10600 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10601
10602         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10603         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10604
10605 2003-04-01  Adam Fedor  <fedor@gnu.org>
10606
10607         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10608         * language.h (struct language_defn): Add la_demangle.
10609         (language_demangle): Declare.
10610         * language.c (language_demangle): New function.
10611         (unk_lang_demangle): Likewise.
10612         (unknown_language_defn, auto_language_defn, local_language_defn):
10613         Add ukn_lang_demangle.
10614         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10615         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10616         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10617         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10618         * jv-lang.c (java_demangle): New function
10619         (java_language_defn): Use it for la_demangle element.
10620         * objc-lang.c (objc_demangle): Add options argument
10621         (objc_language_defn): Use objc_demangle for la_demangle element.
10622         * maint.c (maintenance_demangle): Replace switch with
10623         call to language_demangle.
10624         * utils.c (fprintf_symbol_filtered): Likewise.
10625
10626 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10627
10628         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10629         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10630         PRINT_TYPELESS_INTEGER.
10631         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10632         PUSH_RETURN_ADDRESS.
10633
10634 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10635
10636         * Makefile.in (d10v-tdep.o): Update dependencies.
10637         * d10v-tdep.c: Include "frame-base.h".
10638         (d10v_frame_unwind): Make constant.
10639         (d10v_frame_base_address): New function.
10640         (d10v_frame_base): New variable.
10641         (d10v_gdbarch_init): Set frame_base default.
10642         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10643         comment for base.
10644         (d10v_frame_unwind_cache): Set and use "prev_sp".
10645         (d10v_frame_this_id): Use the previous frame's inner most stack
10646         address and this frame's func address for the frame ID.  Use
10647         frame_id_build.  Don't analyze beyond the current instruction.
10648
10649 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10650
10651         * frame.h (get_frame_locals_address, get_frame_args_address):
10652         Refer to the base address, instead of the address of the first
10653         local or parameter.
10654
10655 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10656
10657         Add frame debug info addresses:
10658         * frame-base.c: New file.
10659         * frame-base.h: New file.
10660         * frame.h (struct frame_base): Add opaque declaration.
10661         (get_frame_base): Update comment.
10662         (get_frame_base_address): Declare.
10663         (get_frame_locals_address): Declare.
10664         (get_frame_args_address): Declare.
10665         (struct frame_info): Add "base" and "base_cache".  Update
10666         comments on the unwinder.
10667         * frame.c: Include "frame-base.h".
10668         (get_frame_locals_address): New function.
10669         (get_frame_base_address): New function.
10670         (get_frame_args_address): New function.
10671         * findvar.c (read_var_value): Use get_frame_locals_address and
10672         get_frame_args_address.
10673         * stack.c (frame_info): Use get_frame_locals_address and
10674         get_frame_args_address.
10675         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10676         moved to "frame-base.c".
10677         * printcmd.c (print_frame_nameless_args): Ditto.
10678         * symtab.h (address_class): Update comments.
10679         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10680         get_frame_base_address.
10681         * dwarf2expr.c (execute_stack_op): Ditto.
10682         * Makefile.in (frame_base_h): Define.
10683         (frame.o): Update dependencies.
10684         (frame-base.o): Add dependencies.
10685         (SFILES): Add frame-base.c.
10686         (COMMON_OBS): Add frame-base.o.
10687
10688 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10689
10690         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10691         CALL_DUMMY_LENGTH): Ditto.
10692         * gdbarch.c: Re-generate.
10693         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10694         (CALL_DUMMY_LENGTH): Delete macro.
10695         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10696         * arm-tdep.c (arm_gdbarch_init): Ditto.
10697         * avr-tdep.c (avr_gdbarch_init): Ditto.
10698         * cris-tdep.c (cris_gdbarch_init): Ditto.
10699         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10700         * frv-tdep.c (frv_gdbarch_init): Ditto.
10701         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10702         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10703         * i386-tdep.c (i386_gdbarch_init): Ditto.
10704         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10705         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10706         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10707         * mips-tdep.c (mips_gdbarch_init): Ditto.
10708         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10709         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10710         * s390-tdep.c (s390_gdbarch_init): Ditto.
10711         * sh-tdep.c (sh_gdbarch_init): Ditto.
10712         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10713         * v850-tdep.c (v850_gdbarch_init): Ditto.
10714         * vax-tdep.c (vax_gdbarch_init): Ditto.
10715         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10716
10717 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
10718
10719         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10720
10721 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10722
10723         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10724         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10725         * gdbarch.h, gdbarch.c: Re-generate.
10726         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10727         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10728         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10729         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10730         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10731         * infcmd.c (run_stack_dummy): Simplify assuming
10732         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10733         * infrun.c (handle_inferior_event): Ditto.
10734         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10735         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10736         * arm-tdep.c (arm_gdbarch_init): Ditto.
10737         * avr-tdep.c (avr_gdbarch_init): Ditto.
10738         * cris-tdep.c (cris_gdbarch_init): Ditto.
10739         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10740         * frv-tdep.c (frv_gdbarch_init): Ditto.
10741         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10742         * i386-tdep.c (i386_gdbarch_init): Ditto.
10743         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10744         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10745         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10746         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10747         * mips-tdep.c (mips_gdbarch_init): Ditto.
10748         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10749         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10750         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10751         * s390-tdep.c (s390_gdbarch_init): Ditto.
10752         * sh-tdep.c (sh_gdbarch_init): Ditto.
10753         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10754         * v850-tdep.c (v850_gdbarch_init): Ditto.
10755         * vax-tdep.c (vax_gdbarch_init): Ditto.
10756         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10757
10758 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
10759
10760         * symfile.c (symfile_relocate_debug_section): Update call to
10761         bfd_simple_get_relocated_section_contents.
10762
10763 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10764
10765         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10766         * gdbarch.h, gdbarch.c: Regenerate.
10767         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10768         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10769         available.
10770         * frame.h (generic_fix_call_dummy): Delete declaration.
10771         * dummy-frame.h: Update comment.
10772         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10773         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10774         fix_call_dummy.
10775         * sh-tdep.c (sh_gdbarch_init): Ditto.
10776         * s390-tdep.c (s390_gdbarch_init): Ditto.
10777         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10778         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10779         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10780         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10781         * i386-tdep.c (i386_gdbarch_init): Ditto.
10782         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10783         * frv-tdep.c (frv_gdbarch_init): Ditto.
10784         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10785         * cris-tdep.c (cris_gdbarch_init): Ditto.
10786         * avr-tdep.c (avr_gdbarch_init): Ditto.
10787         * arm-tdep.c (arm_gdbarch_init): Ditto.
10788
10789 2003-03-31  J. Brobecker  <brobecker@gnat.com>
10790
10791         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10792         (INIT_FRAME_AP): Likewise.
10793         (EXTRA_FRAME_INFO): Likewise.
10794
10795 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10796
10797         * gdbarch.sh: Include "symfile.h".
10798         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10799         * gdbarch.h, gdbarch.c: Re-generate.
10800         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10801         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10802         call_dummy_address, the default is at entry_point_address.
10803         * v850-tdep.c (v850_gdbarch_init): Ditto.
10804         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10805         * sh-tdep.c (sh_gdbarch_init): Ditto.
10806         * s390-tdep.c (s390_gdbarch_init): Ditto.
10807         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10808         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10809         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10810         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10811         * i386-tdep.c (i386_gdbarch_init): Ditto.
10812         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10813         * frv-tdep.c (frv_gdbarch_init): Ditto.
10814         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10815         * cris-tdep.c (cris_gdbarch_init): Ditto.
10816         * arm-tdep.c (arm_gdbarch_init): Ditto.
10817
10818 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10819
10820         * gdbarch.sh (CALL_DUMMY_P): Delete.
10821         * gdbarch.h, gdbarch.c: Re-generate.
10822         * inferior.h (CALL_DUMMY_P): Delete macro.
10823         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10824         * vax-tdep.c (vax_gdbarch_init): Update.
10825         * v850-tdep.c (v850_gdbarch_init): Update.
10826         * sparc-tdep.c (sparc_gdbarch_init): Update.
10827         * sh-tdep.c (sh_gdbarch_init): Update.
10828         * s390-tdep.c (s390_gdbarch_init): Update.
10829         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10830         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10831         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10832         * mips-tdep.c (mips_gdbarch_init): Update.
10833         * mcore-tdep.c (mcore_gdbarch_init): Update.
10834         * m68k-tdep.c (m68k_gdbarch_init): Update.
10835         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10836         * ia64-tdep.c (ia64_gdbarch_init): Update.
10837         * i386-tdep.c (i386_gdbarch_init): Update.
10838         * h8300-tdep.c (h8300_gdbarch_init): Update.
10839         * frv-tdep.c (frv_gdbarch_init): Update.
10840         * d10v-tdep.c (d10v_gdbarch_init): Update.
10841         * cris-tdep.c (cris_gdbarch_init): Update.
10842         * breakpoint.c (deprecated_frame_in_dummy): Update.
10843         * avr-tdep.c (avr_gdbarch_init): Update.
10844         * alpha-tdep.c (alpha_gdbarch_init): Update.
10845         * arm-tdep.c (arm_gdbarch_init): Update.
10846         * dummy-frame.c (dummy_frame_this_id): Update comments.
10847         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10848         * frame.c (legacy_get_prev_frame): Ditto.
10849         * valops.c (call_function_by_hand): Delete function.
10850         (hand_function_call): Rename to call_function_by_hand
10851
10852 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10853
10854         2002-11-10 Klee Dienes <kdienes@apple.com>
10855         * value.h (struct value): Update comment.
10856
10857 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10858
10859         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10860         D10V_FP_REGNUM.
10861         (d10v_gdbarch_init): Do not set fp_regnum.
10862
10863         * frame.c (get_frame_base): Force ID initialization.
10864         (get_prev_frame): Move computation of the frame ID from here ...
10865         (get_frame_id): ... to here.
10866         (legacy_get_prev_frame): Mark the frame ID as valid.
10867         * frame.h (struct frame_info): Add field "id_p".
10868
10869 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
10870
10871         * i386-tdep.c (i386_store_struct_return): Removed.
10872         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10873
10874 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10875
10876         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10877         * gdbarch.h, gdbarch.c: Regenerate.
10878         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10879         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10880         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10881         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10882         * i386-tdep.c (i386_gdbarch_init): Ditto.
10883         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10884         * cris-tdep.c (cris_gdbarch_init): Ditto.
10885         * vax-tdep.c (vax_gdbarch_init): Ditto.
10886         * s390-tdep.c (s390_gdbarch_init): Ditto.
10887         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10888         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10889         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10890         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10891         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10892         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10893         * sparc-tdep.c (sparc_gdbarch_init): Update.
10894         * sh-tdep.c (sh_gdbarch_init): Update.
10895         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10896         * mips-tdep.c (mips_gdbarch_init): Update.
10897         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10898         * ia64-tdep.c (ia64_gdbarch_init): Update.
10899         * frv-tdep.c (frv_gdbarch_init): Update.
10900         * avr-tdep.c (avr_gdbarch_init): Update.
10901         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10902         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10903         instead of when push_dummy_call is not available.
10904
10905 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10906
10907         * infttrace.c: Include "gdbthread.h".
10908         (parent_attach_all): Fix function signature.
10909         (call_ptrace): Update call.
10910         * Makefile.in (infttrace.o): Update dependencies.
10911
10912 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10913
10914         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10915         PUSH_RETURN_ADDRESS.
10916         * gdbarch.h, gdbarch.c: Regenerate.
10917         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10918         * x86-64-tdep.c (x86_64_init_abi): Update.
10919         * v850-tdep.c (v850_gdbarch_init): Update.
10920         * sparc-tdep.c (sparc_gdbarch_init): Update.
10921         * sh-tdep.c (sh_gdbarch_init): Update.
10922         * s390-tdep.c (s390_gdbarch_init): Update.
10923         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10924         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10925         * mips-tdep.c (mips_gdbarch_init): Update.
10926         * mcore-tdep.c (mcore_gdbarch_init): Update.
10927         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10928         * ia64-tdep.c (ia64_gdbarch_init): Update.
10929         * i386-tdep.c (i386_gdbarch_init): Update.
10930         * h8300-tdep.c (h8300_gdbarch_init): Update.
10931         * frv-tdep.c (frv_gdbarch_init): Update.
10932         * cris-tdep.c (cris_gdbarch_init): Update.
10933         * avr-tdep.c (avr_gdbarch_init): Update.
10934         * arm-tdep.c (arm_gdbarch_init): Update.
10935         * valops.c (hand_function_call): Update.
10936
10937 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10938
10939         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10940         sizeof_call_dummy_words.
10941         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10942         define.
10943         * gdbarch.h: Regenerate.
10944
10945 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10946
10947         * infttrace.h: New file.
10948         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10949         (hpread_get_textlow): Detect an uninitialized dn_bufp.
10950         (hpread_read_doc_function_type): Detect an initialized type1.
10951         (hpread_quick_traverse): Initialize mod_name_string.
10952         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10953         (som_solib_get_solib_by_pc): Declare.
10954         (so_lib_thread_start_addr): Declare.
10955         (no_shared_libraries): Declare.
10956         * somread.c (init_import_symbols): Make static.  Add forward
10957         declaration.
10958         * config/pa/nm-hppah.h: Include "infttrace.h" for
10959         parent_attach_all.
10960         (hppa_insert_hw_watchpoint): Declare.
10961         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10962         * hppah-nat.c: Include "gdb_string.h".
10963         (parent_attach_all): Delete extern declaration, moved to
10964         "infttrace.h".
10965         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10966         int.
10967         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10968         * Makefile.in (infttrace_h): Define.
10969         (hpread.o): Update dependencies.
10970         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10971         * hppa-hpux-tdep.c: Include "gdb_string.h".
10972         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10973         * infrun.c (handle_inferior_event): Always initialize
10974         stepped_after_stopped_by_watchpoint.  Add default and remove
10975         fallthrough in switch statement.
10976         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10977         parameter to int.
10978         (hppa_remove_hw_watchpoint): Ditto.
10979
10980 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10981
10982         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10983         offset.
10984
10985 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
10986
10987         * arm-tdep.c (arm_push_arguments): Delete.
10988         (struct stack_item): New type.
10989         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10990         (arm_store_struct_return): Delte.
10991         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
10992         arm_push_arguments or arm_store_struct_return.
10993
10994 2003-03-28  Andrew Cagney  <cagney@redhat.com>
10995
10996         * Makefile.in (d10v-tdep.o): Update dependencies.
10997         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10998         * d10v-tdep.c: Include "remote.h".
10999         (target_resume_hook): Delete extern declaration.
11000         (target_wait_loop_hook): Ditto.
11001         (tdisassemble_command): Eliminate assignment in "if" conditional.
11002         (d10v_ts2_register_sim_regno): Eliminate call to
11003         legacy_register_sim_regno.
11004         (d10v_ts3_register_sim_regno): Ditto.
11005
11006 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
11007
11008         * thread.c: Reindented.
11009         * lin-lwp.c: Ditto.
11010         * linux-proc.c: Ditto.
11011
11012 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
11013
11014         * MAINTAINERS (write after approval): Add myself.
11015
11016 2003-03-27  Theodore A. Roth  <troth@openavr.org>
11017
11018         * objc-exp.y: Add missing semi-colons.
11019
11020 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11021
11022         * regcache.c (write_sp): Delete function and references.
11023         * inferior.h (write_sp): Delete declaration.
11024         * valops.c (hand_function_call): Replace write_sp with
11025         TARGET_WRITE_SP.
11026         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11027         (sparc_pop_frame): Ditto.
11028
11029 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11030
11031         * NEWS: Mention removal of support for hppa*-*-bsd* and
11032         hppa*-*-osf* natives, and hppa*-*-pro* target.
11033         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11034         * config/pa/xm-pa.h: Obsolete file.
11035         * config/pa/xm-hppab.h: Obsolete file.
11036         * config/pa/nm-hppab.h: Obsolete file.
11037         * config/pa/tm-hppab.h: Obsolete file.
11038         * config/pa/tm-hppao.h: Obsolete file.
11039         * config/pa/nm-hppao.h: Obsolete file.
11040         * config/pa/tm-pro.h: Obsolete file.
11041         * config/pa/hppaosf.mt: Obsolete file.
11042         * config/pa/hppaosf.mh: Obsolete file.
11043         * config/pa/hppapro.mt: Obsolete file.
11044         * config/pa/hppabsd.mt: Obsolete file.
11045         * config/pa/hppabsd.mh: Obsolete file.
11046         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11047         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11048         hppa*-*-osf*.
11049
11050 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11051
11052         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11053         push_arguments.  Don't set push_return_address or write_sp.
11054         (d10v_push_dummy_call): Replace d10v_push_arguments.
11055         (d10v_push_return_address, d10v_write_sp): Delete function,
11056         handled by push_dummy_call.
11057
11058 2003-03-26  Andrew Cagney  <cagney@redhat.com>
11059
11060         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11061         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11062         regcache and dummy_addr parameters.
11063         * gdbarch.h, gdbarch.c: Re-generate.
11064         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11065         available; assume it will handle stack alignment and return
11066         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11067         legacy_push_arguments.
11068         (legacy_push_arguments): Rename default_push_arguments.
11069         * value.h (legacy_push_arguments): Rename default_push_arguments.
11070         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11071         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11072         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11073         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11074         * config/i386/tm-symmetry.h: Update.
11075         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11076         * x86-64-tdep.c (x86_64_init_abi): Update.
11077         * v850-tdep.c (v850_gdbarch_init): Update.
11078         * sparc-tdep.c (sparc_gdbarch_init): Update.
11079         * sh-tdep.c (sh_gdbarch_init): Update.
11080         * s390-tdep.c (s390_gdbarch_init): Update.
11081         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11082         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11083         * mips-tdep.c (mips_gdbarch_init): Update.
11084         * mcore-tdep.c (mcore_gdbarch_init): Update.
11085         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11086         * ia64-tdep.c (ia64_gdbarch_init): Update.
11087         * i386-tdep.c (i386_gdbarch_init): Update.
11088         * hppa-tdep.c (hppa_gdbarch_init): Update.
11089         * h8300-tdep.c (h8300_gdbarch_init): Update.
11090         * frv-tdep.c (frv_gdbarch_init): Update.
11091         * d10v-tdep.c (d10v_gdbarch_init): Update.
11092         * cris-tdep.c (cris_gdbarch_init): Update.
11093         * avr-tdep.c (avr_gdbarch_init): Update.
11094         * arm-tdep.c (arm_gdbarch_init): Update.
11095         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11096         * alpha-tdep.c (alpha_gdbarch_init): Update.
11097
11098 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11099
11100         * signals/signals.c (do_target_signal_to_host): Correct realtime
11101         signal range test.
11102
11103 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11104
11105         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11106         (struct sal_chain, map_catch_names): Remove.
11107         (catch_exception_command_1): Don't call
11108         handle_gnu_4_16_catch_command.
11109
11110 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11111
11112         From Mark Dettinger <dettinge@de.ibm.com>:
11113         * dwarf2cfi.c (read_2u): Increment pointer by two.
11114
11115 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11116
11117         * signals/signals.c: Fix typos in last change.
11118
11119 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11120
11121         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11122         not already defined.  Use __SIGRTMIN if available.
11123         (target_signal_from_host): Remove SIGRTMIN block.
11124         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11125         the signal is within the realtime range.
11126
11127 2003-03-25  Adam Fedor  <fedor@gnu.org>
11128
11129         * Makefile.in (infrun.o): Add $(language_h)
11130         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11131         for language specific trampolines.
11132         * language.h (struct language_defn): Add skip_trampoline.
11133         (skip_language_trampoline): Declare.
11134         * language.c (unk_lang_trampoline, skip_language_trampoline):
11135         New functions.
11136         (unknown_language_defn, auto_language_defn, local_language_defn):
11137         Add ukn_lang_trampoline.
11138         * ada-lang.c (ada_language_defn): Add NULL for language
11139         specific skip_trampoline.
11140         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11141         scm-lang.c: Likewise.
11142         * objc-lang.c (objc_skip_trampoline): New function.
11143         (objc_language_defn): Add objc_skip_trampoline.
11144
11145 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11146
11147         * frame.c (get_prev_frame): Delay validating a frame's ID -
11148         non-NULL, didn't go backwards - until an attempt to unwind it to
11149         the previous frame.
11150
11151 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11152
11153         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11154         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11155         * gdbarch.h, gdbarch.c: Re-generate.
11156         * config/sparc/tm-sparc.h
11157         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11158         * sparc-tdep.c (sparc_gdbarch_init): Set
11159         deprecated_extra_stack_alignment_needed.
11160         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11161         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11162         extra_stack_alignment_needed.
11163         * v850-tdep.c (v850_gdbarch_init): Ditto.
11164         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11165         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11166         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11167         * cris-tdep.c (cris_gdbarch_init): Ditto.
11168         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11169         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11170
11171 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11172
11173         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11174         STORE_STRUCT_RETURN.
11175         * gdbarch.h, gdbarch.c: Regenerate.
11176         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11177         (d10v_push_arguments): Set the struct return register.
11178         (d10v_gdbarch_init): Update.
11179         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11180         * x86-64-tdep.c (x86_64_init_abi): Update.
11181         * vax-tdep.c (vax_gdbarch_init): Update.
11182         * v850-tdep.c (v850_gdbarch_init): Update.
11183         * sparc-tdep.c (sparc_gdbarch_init): Update.
11184         * sh-tdep.c (sh_gdbarch_init): Update.
11185         * s390-tdep.c (s390_gdbarch_init): Update.
11186         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11187         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11188         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11189         * mips-tdep.c (mips_gdbarch_init): Update.
11190         * mcore-tdep.c (mcore_gdbarch_init): Update.
11191         * m68k-tdep.c (m68k_gdbarch_init): Update.
11192         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11193         * ia64-tdep.c (ia64_gdbarch_init): Update.
11194         * i386-tdep.c (i386_gdbarch_init): Update.
11195         * hppa-tdep.c (hppa_gdbarch_init): Update.
11196         * h8300-tdep.c (h8300_gdbarch_init): Update.
11197         * frv-tdep.c (frv_gdbarch_init): Update.
11198         * cris-tdep.c (cris_gdbarch_init): Update.
11199         * avr-tdep.c (avr_gdbarch_init): Update.
11200         * arm-tdep.c (arm_gdbarch_init): Update.
11201         * alpha-tdep.c (alpha_gdbarch_init): Update.
11202
11203 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11204
11205         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11206         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11207         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11208         * gdbarch.h, gdbarch.c: Regenerate.
11209         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11210         call_dummy_stack_adjust_p.
11211         * vax-tdep.c (vax_gdbarch_init): Ditto.
11212         * v850-tdep.c (v850_gdbarch_init): Ditto.
11213         * sh-tdep.c (sh_gdbarch_init): Ditto.
11214         * s390-tdep.c (s390_gdbarch_init): Ditto.
11215         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11216         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11217         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11218         * mips-tdep.c (mips_gdbarch_init): Ditto.
11219         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11220         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11221         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11222         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11223         * i386-tdep.c (i386_gdbarch_init): Ditto.
11224         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11225         * frv-tdep.c (frv_gdbarch_init): Ditto.
11226         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11227         * cris-tdep.c (cris_gdbarch_init): Ditto.
11228         * avr-tdep.c (avr_gdbarch_init): Ditto.
11229         * arm-tdep.c (arm_gdbarch_init): Ditto.
11230         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11231         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11232         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11233         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11234         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11235         call_dummy_stack_adjust_p.
11236         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11237         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11238         * sparc-tdep.c (sparc32_push_arguments): Update.
11239         * valops.c (hand_function_call): Update.
11240
11241 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11242
11243         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11244         set_gdbarch_char_signed.
11245
11246 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11247
11248         PR cli/548
11249         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11250
11251 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11252
11253         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11254         (_initialize_arm_tdep): Don't set tm_print_insn.
11255
11256 2003-03-24  Adam Fedor  <fedor@gnu.org>
11257
11258         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11259         * objc-lang.h: Add multiple inclusion protection.
11260         (start_msglist, add_msglist, end_msglist): Additional declarations.
11261
11262 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11263
11264         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11265         value was renamed to ARM_FLOAT_SOFT_FPA.
11266
11267 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11268
11269         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11270         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11271         * gdbarch.h, gdbarch.c: Regenerate.
11272         * valops.c (hand_function_call): Update.
11273         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11274         * frame.c (legacy_saved_regs_this_id): Update.
11275         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11276         * dummy-frame.h: Update.
11277         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11278         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11279         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11280         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11281         * config/m68k/tm-sun3.h: Update.
11282         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11283         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11284         * x86-64-tdep.c (x86_64_init_abi): Update.
11285         * vax-tdep.c (vax_gdbarch_init): Update.
11286         * v850-tdep.c (v850_gdbarch_init): Update.
11287         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11288         * sh-tdep.c (sh_gdbarch_init): Update.
11289         * s390-tdep.c (s390_gdbarch_init): Update.
11290         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11291         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11292         (frame_get_saved_regs): Update.
11293         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11294         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11295         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11296         * mips-tdep.c (mips_gdbarch_init): Update.
11297         * mcore-tdep.c (mcore_gdbarch_init): Update.
11298         * m68k-tdep.c (m68k_gdbarch_init): Update.
11299         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11300         * ia64-tdep.c (ia64_gdbarch_init): Update.
11301         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11302         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11303         (i386_interix_back_one_frame): Update.
11304         * hppa-tdep.c (hppa_gdbarch_init): Update.
11305         (hppa_init_extra_frame_info): Update.
11306         * h8300-tdep.c (h8300_gdbarch_init): Update.
11307         * frv-tdep.c (frv_gdbarch_init): Update.
11308         * cris-tdep.c (cris_gdbarch_init): Update.
11309         * avr-tdep.c (avr_gdbarch_init): Update.
11310         * arm-tdep.c (arm_gdbarch_init): Update.
11311         * alpha-tdep.c (alpha_gdbarch_init): Update.
11312
11313 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11314
11315         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11316         (arm_get_fp_model): Declare.
11317         * arm-tdep.c (fp_model_strings): New string array.
11318         (arm_fp_model, current_fp_model): New variables.
11319         (arm_get_fp_model): New function.
11320         (arm_set_fp): New function.
11321         (set_fp_model_sfunc): New function.
11322         (show_fp_model): New function.
11323         (_initialize_arm_tdep): Add new command to set/show the FPU.
11324         (arm_extract_return_value): Use arm_get_fp_model.
11325         (arm_store_return_value): Likewise.
11326         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11327         to initialize the floating-point data types.
11328         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11329         model is FPA.
11330
11331 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11332
11333         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11334         the current setting of each value.
11335         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11336         new_set and new_show.  Use add_setshow_cmd_full and
11337         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11338         commands and add new version as subcommands of "set/show arm".
11339
11340 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11341
11342         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11343         (set_arm_command, show_arm_command): New functions.
11344         (_initialize_arm_tdep): Add them.
11345         (num_disassembly_options): Renamed from num_flavor_options.
11346         (valid_disassembly_styles): Renamed from valid_flavors.
11347         (disassembly_style): Renamed from disassembly_flavor.
11348         (set_disassembly_style_sfunc): Renamed from
11349         set_disassembly_flavor_sfunc.
11350         (set_disassembly_style): Renamed from set_disassembly_flavor.
11351         (arm_othernames): Updated.
11352         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11353         command.  Add "set/show arm disassembly" commands.  Deprecate
11354         "othernames" command.
11355
11356 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11357
11358         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11359         (arm-tdep.o): Depend on elf_arm_h.
11360
11361 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11362
11363         * Makefile.in (coff_internal_h): Define.
11364         (arm-tdep.o): Update dependencies.
11365
11366 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11367
11368         * arm-tdep.c (prologue_cache): Delete.
11369         (check_prologue_cache, save_prologue_cache): Delete.
11370         (arm_scan_prologue): Don't check or update the prologue_cache.
11371         (arm_gdb_arch_init): Don't initialize it.
11372         (_initialize_arm_tdep): Likewise.
11373
11374 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11375
11376         * MAINTAINERS (tui): Maintainer of tui code.
11377
11378 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11379
11380         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11381         (i386-cygwin-tdep.o): Add dependencies.
11382         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11383         * i386-cygwin-tdep.c: New file.
11384         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11385         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11386
11387 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11388
11389         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11390         (handle_inferior_event): Remove code calling
11391         DYNAMIC_TRAMPOLINE_NEXTPC.
11392
11393         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11394         already has a full path.
11395
11396         * main.c (gdb_main): Return 1.
11397         (captured_main): Call error to report an invalid interpreter.
11398
11399         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11400         * alpha-osf1-tdep.c: Include "gdb_string.h".
11401
11402 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11403
11404         Continuing work to convert the hppa targets to multiarch partial.
11405
11406         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11407         method, now that hppa_push_dummy_frame has a conformant prototype.
11408         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11409         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11410         for the switch to multiarch partial.
11411
11412 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11413
11414         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11415         when iss is issNull.
11416
11417 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11418
11419         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11420         NUM_REGS bounds check.
11421
11422 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11423
11424         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11425         * mips-tdep.c (gdb_assert.h): Include.
11426         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11427         (mips_register_name): Handle integer registers explicitly.  Add
11428         bounds checking.
11429         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11430         (mips_lsi33k_reg_names): Don't list integer registers; they're
11431         handled by mips_register_name() now.
11432         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11433         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11434         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11435         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11436         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11437
11438 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11439
11440         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11441         a void pointer.
11442         * gdbtypes.h (print_scalar_formatted): Update declaration.
11443         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11444
11445 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11446
11447         * infrun.c (observer.h): Add #include.
11448         (normal_stop): Add call to observer_notify_normal_stop.
11449         * Makefile.in (infrun.o): Add dependency on observer.h.
11450
11451 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11452
11453         Continuing work to convert the hppa targets to multiarch partial.
11454         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11455         parameter. Reformat comment.
11456         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11457         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11458         to match new profile.
11459
11460 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11461
11462         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11463         appear to be working in any case.
11464
11465 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11466
11467         * observer.c (observer_test_first_observer): New static variable.
11468         (observer_test_second_observer): Likewise.
11469         (observer_test_third_observer): Likewise.
11470         (observer_test_first_notification_function): New static function.
11471         (observer_test_second_notification_function): Likewise.
11472         (observer_test_third_notification_function): Likewise.
11473
11474 2003-03-17  J. Brobecker  <brobecker@gnat.com>
11475
11476         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11477         * somsolib.c (gdb_assert.h): Likewise.
11478         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11479         (somsolib.o): Likewise.
11480
11481 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11482
11483         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11484         BFD.  Simplify setting of di.endian.
11485
11486 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11487
11488         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11489         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11490
11491         From Elena Zannoni  <ezannoni@redhat.com>
11492         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11493         vector and floating-point parameters.
11494         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11495         convention.
11496         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11497
11498 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
11499
11500         * MAINTAINERS: Remove my name from several maintainership roles.
11501
11502 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11503
11504         Fix frame off-by-one bug.
11505         * frame-unwind.h (frame_this_id_ftype): Replace
11506         frame_unwind_id_ftype.
11507         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11508         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11509         with "prev_register".
11510         * frame-unwind.c (frame_unwind_find_by_pc): Return
11511         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11512         comment.
11513         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11514         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11515         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11516         (dummy_frame_unwind): Update.
11517         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11518         sentinel_frame_register_unwind.
11519         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11520         (sentinel_frame_unwinder): Update.
11521         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11522         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11523         * frame.c (create_sentinel_frame): Update. Initialize
11524         "prologue_cache" instead of "unwind_cache".
11525         (frame_register_unwind): Call this frame's prev_register with the
11526         next frame and this frame's prologue cache.
11527         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11528         this frame and prev frame's prologue cache.  Document that this
11529         call is shifted one to the left when compared to the
11530         frame_register_unwind call.
11531         (legacy_saved_regs_prev_register): Replace
11532         frame_saved_regs_register_unwind.
11533         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11534         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11535         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11536         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11537         (d10v_frame_unwind): Update.
11538         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11539         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11540         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11541         "saved_regs" with "this_saved_regs".
11542
11543 2003-03-16  Andrew Cagney  <cagney@redhat.com>
11544
11545         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11546         problem reported by Mark Kettenis.
11547
11548 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
11549
11550         * i386-tdep.c (i386_register_type): Renamed from
11551         i386_register_virtual_type.  Adjust function signature.
11552         (i386_gdbarch_init): Set register_type instead of
11553         deprecated_max_register_raw_size,
11554         deprecated_max_register_virtual_size and register_virtual_type.
11555
11556 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11557
11558         * frame.c (get_prev_frame): When a legacy frame, always call
11559         legacy_get_prev_frame.  Simplify unwind code using assumption that
11560         the unwinder is new.
11561         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11562         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11563         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11564
11565 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11566
11567         * frame.c (get_saved_register): Delete function.
11568         * frame.h (get_saved_register): Delete declaration.
11569         * xstormy16-tdep.c: Update comment.
11570         * regcache.h: Update comments.
11571         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11572         get_saved_register and extract_address, use
11573         frame_read_unsigned_register.
11574         (sparc_frame_saved_pc): Ditto.
11575         (sparc_get_saved_register): Instead of get_saved_register, use
11576         frame_register.
11577         (sparc_pop_frame): Ditto.
11578         * findvar.c: Update comments.
11579         (value_of_register): Call frame_register instead of
11580         get_saved_register.
11581         (value_from_register): Ditto.
11582         * config/sparc/tm-sparc.h: Update comment.
11583         * breakpoint.c: Update comment.
11584
11585 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11586
11587         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11588         GET_SAVED_REGISTER.
11589         * gdbarch.h, gdbarch.c: Re-generate.
11590         * frame.h: Update comments.
11591         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11592         * x86-64-tdep.c (x86_64_init_abi): Update.
11593         * sparc-tdep.c (sparc_gdbarch_init): Update.
11594         * sh-tdep.c (sh_gdbarch_init): Update.
11595         * mips-tdep.c (mips_gdbarch_init): Update.
11596         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11597         * cris-tdep.c (cris_gdbarch_init): Update.
11598         * ia64-tdep.c (ia64_gdbarch_init): Update.
11599         * frame.c (frame_register): Update.
11600         (get_saved_register): Update.
11601         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11602
11603 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11604
11605         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11606         * gdbarch.h, gdbarch.c: Regenerate.
11607         * valops.c (hand_function_call): Update comment.
11608         * stack.c (return_command): Update comment.
11609         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11610         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11611         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11612         * x86-64-tdep.c (x86_64_init_abi): Update.
11613         * vax-tdep.c (vax_gdbarch_init): Update.
11614         * v850-tdep.c (v850_gdbarch_init): Update.
11615         * sparc-tdep.c (sparc_gdbarch_init): Update.
11616         * sh-tdep.c (sh_gdbarch_init): Update.
11617         * s390-tdep.c (s390_gdbarch_init): Update.
11618         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11619         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11620         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11621         * mips-tdep.c (mips_gdbarch_init): Update.
11622         * mcore-tdep.c (mcore_gdbarch_init): Update.
11623         * m68k-tdep.c (m68k_gdbarch_init): Update.
11624         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11625         * ia64-tdep.c (ia64_gdbarch_init): Update.
11626         * i386-tdep.c (i386_gdbarch_init): Update.
11627         * hppa-tdep.c (hppa_gdbarch_init): Update.
11628         * h8300-tdep.c (h8300_gdbarch_init): Update.
11629         * frv-tdep.c (frv_gdbarch_init): Update.
11630         * cris-tdep.c (cris_gdbarch_init): Update.
11631         * avr-tdep.c (avr_gdbarch_init): Update.
11632         * arm-tdep.c (arm_gdbarch_init): Update.
11633         * alpha-tdep.c (alpha_gdbarch_init): Update.
11634
11635 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11636
11637         * frame.c (legacy_frame_p): New function.
11638         (get_prev_frame): Use legacy_frame_p.
11639         * frame.h (legacy_frame_p): Declare.
11640
11641 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11642
11643         * MAINTAINERS (write after approval): Alphabetically
11644         listing corrected.
11645
11646 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11647
11648         * MAINTAINERS (write after approval): Add myself.
11649
11650 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11651
11652         * frame.c (get_prev_frame): Rename the frame parameter to
11653         "this_frame".
11654         (get_next_frame, legacy_get_prev_frame): Ditto.
11655
11656 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11657
11658         * frame.c (get_current_frame): Check target_has_registers before
11659         checking target_has_stack.
11660         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11661         instead of deprecated_selected_frame.
11662         * findvar.c (value_of_register): Pass "frame", not
11663         deprecated_selected_frame, to value_of_builtin_reg.
11664
11665 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11666
11667         * regcache.c (regcache_cooked_write_signed): New function.
11668         (regcache_cooked_write_unsigned): New function.
11669         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11670         (regcache_cooked_read_signed): Fix regnum in range assertion.
11671         * regcache.h (regcache_cooked_write_signed): Declare.
11672         (regcache_cooked_write_unsigned): Declare.
11673
11674 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11675
11676         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11677         * gdbarch.h, gdbarch.c: Re-generate.
11678         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11679         * x86-64-tdep.h: Update.
11680         * x86-64-tdep.c (x86_64_init_abi): Update.
11681         * v850-tdep.c (v850_gdbarch_init): Update.
11682         * sparc-tdep.c (sparc_gdbarch_init): Update.
11683         * sh-tdep.c (sh_gdbarch_init): Update.
11684         * s390-tdep.c (s390_gdbarch_init): Update.
11685         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11686         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11687         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11688         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11689         * mips-tdep.c (mips_gdbarch_init): Update.
11690         * mcore-tdep.c (mcore_gdbarch_init): Update.
11691         * m68k-tdep.c (m68k_gdbarch_init): Update.
11692         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11693         * ia64-tdep.c (ia64_gdbarch_init): Update.
11694         * i386-tdep.c (i386_gdbarch_init): Update.
11695         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11696         * hppa-tdep.c (hppa_gdbarch_init): Update.
11697         * h8300-tdep.c (h8300_gdbarch_init): Update.
11698         * frv-tdep.c (frv_gdbarch_init): Update.
11699         * cris-tdep.c (cris_gdbarch_init): Update.
11700         * avr-tdep.c (avr_gdbarch_init): Update.
11701         * arm-tdep.c (arm_gdbarch_init): Update.
11702         * alpha-tdep.c (alpha_gdbarch_init): Update.
11703         * sh-tdep.c (sh_init_extra_frame_info): Update.
11704         (sh64_init_extra_frame_info): Update.
11705         * ns32knbsd-nat.c (frame_num_args): Update.
11706         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11707         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11708         (xstormy16_frame_chain_valid): Update.
11709         * vax-tdep.c (vax_saved_pc_after_call): Update.
11710         * v850-tdep.c (v850_frame_chain): Update.
11711         (v850_pop_frame): Update.
11712         (v850_init_extra_frame_info): Update.
11713         * sparc-tdep.c (setup_arbitrary_frame): Update.
11714         * ns32k-tdep.c (umax_frame_num_args): Update.
11715         * s390-tdep.c (s390_pop_frame_regular): Update.
11716         * mn10300-tdep.c (mn10300_frame_chain): Update.
11717         (mn10300_pop_frame_regular): Update.
11718         (mn10300_init_extra_frame_info): Update.
11719         * mips-tdep.c (mips_init_frame_pc_first): Update.
11720         (mips_frame_chain): Update.
11721         (mips_pop_frame): Update.
11722         * mcore-tdep.c (mcore_frame_chain): Update.
11723         (mcore_pop_frame): Update.
11724         (mcore_init_extra_frame_info): Update.
11725         * arch-utils.c (init_frame_pc_default): Update.
11726         * m68k-tdep.c (isi_frame_num_args): Update.
11727         (delta68_frame_num_args): Update.
11728         (news_frame_num_args): Update.
11729         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11730         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11731         (alpha_frame_chain): Update.
11732         (alpha_pop_frame): Update.
11733         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11734         (hppa_init_extra_frame_info): Update.
11735         (hppa_frame_chain): Update.
11736         (hppa_frame_chain_valid): Update.
11737         * cris-tdep.c (cris_init_extra_frame_info): Update.
11738         * avr-tdep.c (avr_init_extra_frame_info): Update.
11739         * arm-tdep.c (arm_frame_chain_valid): Update.
11740         (arm_init_extra_frame_info): Update.
11741         (arm_pop_frame): Update.
11742         * frame.c (frame_pc_unwind): Update.
11743         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11744         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11745         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11746         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11747         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11748         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11749
11750 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11751
11752         Eliminate the need for POP_FRAME.
11753         * frame.c (do_frame_unwind_register): New function.
11754         (frame_pop): When no POP_FRAME, pop the frame using register
11755         unwind and a scratch regcache.
11756         (frame_saved_regs_pop): Delete function.
11757         (trad_frame_unwinder): Update.
11758         * d10v-tdep.c (d10v_frame_pop): Delete function.
11759         (d10v_frame_unwind): Update.
11760         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11761         (sentinel_frame_unwinder): Update.
11762         * dummy-frame.c (dummy_frame_pop): Delete function.
11763         (dummy_frame_unwind): Update.
11764         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11765         (struct frame_unwind): Update.
11766
11767 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
11768
11769         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11770         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11771         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11772         Do range checks on register number obtained from debugging info.
11773         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11774         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11775         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11776         mapping function.
11777         (do_fp_register_row): Fix typo which caused double type to be
11778         used when attempting to unpack a float.
11779
11780 2003-03-11  J. Brobecker  <brobecker@gnat.com>
11781
11782         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11783
11784 2003-03-11  Andrew Cagney  <cagney@redhat.com>
11785
11786         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11787         frame.  Problem found by Corinna Vinschen.
11788
11789 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
11790
11791         * doublest.c (floatformat_from_length): Accept also
11792         the real size of 'long double' type.
11793
11794 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
11795
11796         From Klee Dienes <kdienes@apple.com>:
11797         * breakpoint.c (bpstat_copy): Copy the command lines as well
11798         as the old value, to match what is freed in bpstat_clear.
11799
11800 2003-03-10  David Carlton  <carlton@math.stanford.edu>
11801
11802         * minsyms.c (add_minsym_to_hash_table): Replace
11803         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11804         (compare_minimal_symbols, compact_minimal_symbols)
11805         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11806         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11807         of DEPRECATED_SYMBOL_MATCHES_NAME.
11808         (lookup_minimal_symbol_solib_trampoline): Ditto.
11809
11810 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11811
11812         * regcache.h (regcache_cooked_read_ftype): Define.
11813         (regcache_save, regcache_restore): Add a cooked_read parameter.
11814         * regcache.c (regcache_save, regcache_restore): Update.
11815         (do_cooked_read): New function.
11816         (regcache_cpy): Pass do_cooked_read to regcache_save and
11817         regcache_restore.
11818
11819 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11820
11821         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11822         * gdbarch.h, gdbarch.c: Re-generate.
11823         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11824         * x86-64-tdep.h: Update.
11825         * x86-64-tdep.c (x86_64_init_abi): Update.
11826         * v850-tdep.c (v850_gdbarch_init): Update.
11827         * sparc-tdep.c (sparc_gdbarch_init): Update.
11828         * sh-tdep.c (sh_gdbarch_init): Update.
11829         * s390-tdep.c (s390_gdbarch_init): Update.
11830         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11831         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11832         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11833         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11834         * mips-tdep.c (mips_gdbarch_init): Update.
11835         * mcore-tdep.c (mcore_gdbarch_init): Update.
11836         * m68k-tdep.c (m68k_gdbarch_init): Update.
11837         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11838         * ia64-tdep.c (ia64_gdbarch_init): Update.
11839         * i386-tdep.c (i386_gdbarch_init): Update.
11840         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11841         * hppa-tdep.c (hppa_gdbarch_init): Update.
11842         * h8300-tdep.c (h8300_gdbarch_init): Update.
11843         * frv-tdep.c (frv_gdbarch_init): Update.
11844         * cris-tdep.c (cris_gdbarch_init): Update.
11845         * avr-tdep.c (avr_gdbarch_init): Update.
11846         * arm-tdep.c (arm_gdbarch_init): Update.
11847         * alpha-tdep.c (alpha_gdbarch_init): Update.
11848         * sh-tdep.c (sh_init_extra_frame_info): Update.
11849         (sh64_init_extra_frame_info): Update.
11850         * ns32knbsd-nat.c (frame_num_args): Update.
11851         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11852         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11853         (xstormy16_frame_chain_valid): Update.
11854         * vax-tdep.c (vax_saved_pc_after_call): Update.
11855         * v850-tdep.c (v850_frame_chain): Update.
11856         (v850_pop_frame): Update.
11857         (v850_init_extra_frame_info): Update.
11858         * sparc-tdep.c (setup_arbitrary_frame): Update.
11859         * ns32k-tdep.c (umax_frame_num_args): Update.
11860         * s390-tdep.c (s390_pop_frame_regular): Update.
11861         * mn10300-tdep.c (mn10300_frame_chain): Update.
11862         (mn10300_pop_frame_regular): Update.
11863         (mn10300_init_extra_frame_info): Update.
11864         * mips-tdep.c (mips_init_frame_pc_first): Update.
11865         (mips_frame_chain): Update.
11866         (mips_pop_frame): Update.
11867         * mcore-tdep.c (mcore_frame_chain): Update.
11868         (mcore_pop_frame): Update.
11869         (mcore_init_extra_frame_info): Update.
11870         * arch-utils.c (init_frame_pc_default): Update.
11871         * m68k-tdep.c (isi_frame_num_args): Update.
11872         (delta68_frame_num_args): Update.
11873         (news_frame_num_args): Update.
11874         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11875         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11876         (alpha_frame_chain): Update.
11877         (alpha_pop_frame): Update.
11878         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11879         (hppa_init_extra_frame_info): Update.
11880         (hppa_frame_chain): Update.
11881         (hppa_frame_chain_valid): Update.
11882         * cris-tdep.c (cris_init_extra_frame_info): Update.
11883         * avr-tdep.c (avr_init_extra_frame_info): Update.
11884         * arm-tdep.c (arm_frame_chain_valid): Update.
11885         (arm_init_extra_frame_info): Update.
11886         (arm_pop_frame): Update.
11887         * frame.c (frame_pc_unwind): Update.
11888         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11889         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11890         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11891         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11892         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11893         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11894
11895 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11896
11897         * gdbarch.sh (gdbarch_unwind_pc): New method.
11898         * gdbarch.h, gdbarch.c: Regenerate.
11899         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11900         but use read_pc and FRAME_SAVED_PC as fall backs.
11901         (frame_saved_regs_pc_unwind): Delete function.
11902         (trad_frame_unwinder): Update.
11903         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11904         (struct frame_unwind): Update.
11905         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11906         (dummy_frame_unwind): Update.
11907         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11908         (sentinel_frame_unwinder): Update.
11909         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11910         (d10v_frame_unwind): Update.
11911         (d10v_unwind_pc): New function.
11912         (d10v_gdbarch_init): Set unwind_pc.
11913
11914 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11915
11916         * gdbarch.h: Re-generate.
11917
11918         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11919         PC.
11920         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11921         the PC register.
11922
11923 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
11924
11925         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11926
11927 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11928
11929         * cli-out.c: Update copyright.
11930         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11931
11932 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11933
11934         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11935         the result.
11936
11937 2003-03-07  Andrew Cagney  <cagney@redhat.com>
11938
11939         * gdbarch.sh: Don't generate two macro definitions when an
11940         undefined macro taking no arguments.
11941         * gdbarch.h: Regenerate.
11942
11943 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
11944
11945         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11946         (x86_64_unwind_dummy_id): New functions.
11947         (x86_64_init_abi): Register these two new functions.
11948
11949 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
11950
11951         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11952         (x86_64_skip_prologue): Move prologue detection to
11953         separate function.
11954         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11955
11956 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11957
11958         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11959         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11960         * frame.c (get_prev_frame): Restructure the frame ID unwind code
11961         to use unwind_dummy_id when a dummy frame.
11962         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11963         predicate.
11964         * gdbarch.h, gdbarch.c: Regneerate.
11965
11966 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11967
11968         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11969         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11970         Do not use d10v_read_sp or d10v_read_fp when obtaining register
11971         values.
11972
11973 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11974
11975         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11976         (struct d10v_unwind_cache): Delete field "frameless".  Replace
11977         "next_addr" with "sp_offset".  Add "r11_offset".
11978         (d10v_frame_unwind_cache): Update.
11979         (prologue_find_regs): Update.  When "mv r11, sp", save the
11980         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
11981         RN was saved in r11_offset.
11982
11983 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11984
11985         * frame.c (deprecated_update_frame_pc_hack): Also update the the
11986         cached PC value in the next frame.
11987
11988 2003-03-05  Andrew Cagney  <cagney@redhat.com>
11989
11990         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11991         "id_unwind_cache" with "id".
11992         (frame_id_unwind): Delete declaration.
11993         * frame.c (frame_id_unwind): Delete function.
11994         (get_prev_frame): Call the frame id unwind method directly.  Store
11995         the returned next frame's ID value in NEXT_FRAME.  Note that there
11996         is a problem with the wrong unwind ID being called with the wrong
11997         unwind cache.
11998
11999 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12000
12001         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12002
12003 2003-03-05  James Ingham <jingham@apple.com>
12004             Daniel Jacobowitz  <drow@mvista.com>
12005
12006         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12007         (auto_cp_abi): New variable.
12008         (current_cp_abi, num_cp_abis): Make static.
12009         (CP_ABI_MAX): Define.
12010         (cp_abis): Turn into an array.
12011         (value_virtual_fn_field): Fix formatting.
12012         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
12013         takes a pointer.
12014         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12015         (list_cp_abis, _initialize_cp_abi): New functions.
12016         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
12017         declarations for cp_abis, num_cp_abis, current_cp_abi, and
12018         switch_to_cp_abi.  Update prototype for register_cp_abi.
12019         * Makefile.in (cp-abi.o): Update dependencies.
12020         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12021         instead of switch_to_cp_abi.
12022         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
12023         register_cp_abi.
12024         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12025         register_cp_abi.
12026         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12027
12028 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12029
12030         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12031         * dwarf2loc.c: Include "regcache.h".
12032         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12033         register_size.
12034         * Makefile.in (dwarf2loc.o): Update dependencies.
12035
12036 2003-03-04  Theodore A. Roth  <troth@openavr.org>
12037
12038         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12039         number of io registers reported by remote target is not a multiple of
12040         step.
12041
12042 2003-03-04  David Carlton  <carlton@math.stanford.edu>
12043
12044         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12045         (lookup_symbol_aux_psymtabs): Update call to
12046         lookup_partial_symbol.
12047         (lookup_transparent_type, find_main_psymtab)
12048         (make_symbol_overload_list): Ditto.
12049
12050 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12051
12052         * MAINTAINERS (Write after approval): Update my email address.
12053
12054 2003-03-03  Andrew Cagney  <cagney@redhat.com>
12055
12056         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12057         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12058         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12059         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12060         MAX_REGISTER_VIRTUAL_SIZE.
12061         * regcache.c (legacy_max_register_raw_size): New function.
12062         (legacy_max_register_virtual_size): New function.
12063         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12064         (MAX_REGISTER_RAW_SIZE): Define.
12065         (legacy_max_register_raw_size): Declare.
12066         (legacy_max_register_virtual_size): Declare.
12067         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12068         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12069         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12070         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12071         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12072         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12073         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12074         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12075         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12076         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12077         * vax-tdep.c (vax_gdbarch_init): Update.
12078         * v850-tdep.c (v850_gdbarch_init): Update.
12079         * sparc-tdep.c (sparc_gdbarch_init): Update.
12080         * sh-tdep.c (sh_gdbarch_init): Update.
12081         * s390-tdep.c (s390_gdbarch_init): Update.
12082         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12083         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12084         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12085         * mips-tdep.c (mips_gdbarch_init): Update.
12086         * mcore-tdep.c (mcore_gdbarch_init): Update.
12087         * m68k-tdep.c (m68k_gdbarch_init): Update.
12088         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12089         * ia64-tdep.c (ia64_gdbarch_init): Update.
12090         * i386-tdep.c (i386_gdbarch_init): Update.
12091         * hppa-tdep.c (hppa_gdbarch_init): Update.
12092         * h8300-tdep.c (h8300_gdbarch_init): Update.
12093         * frv-tdep.c (frv_gdbarch_init): Update.
12094         * cris-tdep.c (cris_gdbarch_init): Update.
12095         * avr-tdep.c (avr_gdbarch_init): Update.
12096         * arm-tdep.c (arm_gdbarch_init): Update.
12097         * alpha-tdep.c (alpha_gdbarch_init): Update.
12098         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12099         max_register_raw_size or max_register_virtual_size.
12100
12101 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12102
12103         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12104         SYMBOL_MATCHES_NAME, add comment.
12105         (SYMBOL_MATCHES_NATURAL_NAME): New.
12106         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12107         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12108         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12109         * symtab.c (lookup_partial_symbol): Use
12110         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12111         unhelpful comment.
12112         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12113         SYMBOL_MATCHES_NAME.
12114         Fix for PR c++/33.
12115
12116 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12117
12118         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12119         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12120         by regexp matching against SYMBOL_NATURAL_NAME.
12121
12122 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12123
12124         * linespec.c (find_method): Extract code into collect_methods.
12125         (collect_methods): New.
12126
12127 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
12128
12129         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12130         get_frame_base.
12131
12132         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12133         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12134
12135 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12136
12137         * arch-utils.c (generic_register_byte): Fix to use the loop index
12138         and not regnum when summing the size of all registers up to regnum.
12139
12140 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12141
12142         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12143         FRAME_INIT_SAVED_REGS.
12144         * gdbarch.h, gdbarch.c: Regenerate.
12145         * stack.c (frame_info): Update.
12146         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12147         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12148         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12149         * ns32k-tdep.c (ns32k_pop_frame): Update.
12150         * mips-tdep.c (mips_pop_frame): Update.
12151         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12152         * ia64-tdep.c (ia64_frame_chain): Update.
12153         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12154         (ia64_frameless_function_invocation): Update.
12155         (ia64_init_extra_frame_info): Update.
12156         (ia64_pop_frame_regular): Update.
12157         * frame.h (struct frame_info): Update comment.
12158         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12159         * frame.c (frame_saved_regs_register_unwind): Update.
12160         (frame_saved_regs_register_unwind): Update.
12161         (deprecated_generic_get_saved_register): Update.
12162         * cris-tdep.c: Update comment.
12163         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12164         Rename macro.
12165         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12166         * x86-64-tdep.c (x86_64_init_abi): Update.
12167         * vax-tdep.c (vax_gdbarch_init): Update.
12168         * v850-tdep.c (v850_gdbarch_init): Update.
12169         * sparc-tdep.c (sparc_gdbarch_init): Update.
12170         * sh-tdep.c (sh_gdbarch_init): Update.
12171         * s390-tdep.c (s390_gdbarch_init): Update.
12172         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12173         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12174         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12175         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12176         * mips-tdep.c (mips_gdbarch_init): Update.
12177         * mcore-tdep.c (mcore_gdbarch_init): Update.
12178         * m68k-tdep.c (m68k_gdbarch_init): Update.
12179         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12180         * ia64-tdep.c (ia64_gdbarch_init): Update.
12181         * i386-tdep.c (i386_gdbarch_init): Update.
12182         * frv-tdep.c (frv_gdbarch_init): Update.
12183         * avr-tdep.c (avr_gdbarch_init): Update.
12184         * arm-tdep.c (arm_gdbarch_init): Update.
12185         * alpha-tdep.c (alpha_gdbarch_init): Update.
12186
12187 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12188
12189         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12190         option enum and switch.  When no windows, set the interpreter to
12191         INTERP_CONSOLE.
12192
12193 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12194
12195         * main.c (captured_main): Replace magic option characters with an
12196         enum.
12197
12198 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12199
12200         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12201         INIT_EXTRA_FRAME_INFO.
12202         * gdbarch.h, gdbarch.c: Regenerate.
12203         * arm-tdep.c: Update comments.
12204         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12205         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12206         * frame.h, avr-tdep.c: Ditto.
12207         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12208         (create_new_frame, legacy_get_prev_frame): Ditto.
12209         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12210         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12211         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12212         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12213         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12214         * v850-tdep.c (v850_gdbarch_init): Ditto.
12215         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12216         * sh-tdep.c (sh_gdbarch_init): Ditto.
12217         * s390-tdep.c (s390_gdbarch_init): Ditto.
12218         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12219         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12220         * mips-tdep.c (mips_gdbarch_init): Ditto.
12221         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12222         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12223         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12224         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12225         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12226         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12227         * frv-tdep.c (frv_gdbarch_init): Ditto.
12228         * cris-tdep.c (cris_gdbarch_init): Ditto.
12229         * avr-tdep.c (avr_gdbarch_init): Ditto.
12230         * arm-tdep.c (arm_gdbarch_init): Ditto.
12231         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12232         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12233
12234 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12235
12236         * gdbarch.sh (register_type): New function with predicate.
12237         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12238         * gdbarch.h, gdbarch.c: Re-generate.
12239         * arch-utils.c (generic_register_byte): Use generic_register_size.
12240         (generic_register_size): When available, use
12241         gdbarch_register_type.
12242         * regcache.c (init_regcache_descr): When available, initialize the
12243         register type array using gdbarch_register_type.  If the
12244         architecture supplies gdbarch_register_type, do not use the legacy
12245         regcache layout.
12246         * d10v-tdep.c (d10v_register_type): Replace
12247         d10v_register_virtual_type.
12248         (d10v_gdbarch_init): Set register_type instead of
12249         register_virtual_type.
12250
12251 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12252
12253         * Makefile.in (ax-gdb.o): Update dependencies.
12254         * ax-gdb.c: Include "regcache.h".
12255         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12256         * findvar.c (value_of_register): Ditto.
12257         * infcmd.c (default_print_registers_info): Ditto.
12258
12259 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12260
12261         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12262         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12263
12264 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12265
12266         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12267         of STREQ.
12268
12269 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12270
12271         * Makefile.in (dwarf2loc.o): Update dependencies.
12272         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12273         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12274         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12275         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12276         (locexpr_tracepoint_var_ref): New function.
12277         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12278
12279 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12280
12281         * regcache.c (register_size): New function.
12282         * regcache.h (register_size): Declare
12283         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12284         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12285
12286 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12287
12288         * linespec.c (decode_compound): Extract code into find_method.
12289         (find_method): New.
12290
12291 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12292
12293         * Makefile.in: Add rules to build and link in observer.o.
12294
12295 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12296
12297         * observer.c: Minor comments edits.
12298
12299 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12300
12301         * observer.h, observer.c: New file.
12302
12303 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12304
12305         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12306
12307 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12308
12309         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12310         (M6812_OP_STS_EXT): Likewise.
12311         (m6811_prologue): Use the above to recognize prologue.
12312         (m6812_prologue): Likewise.
12313
12314 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12315
12316         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12317         SYMBOL_PRINT_NAME.
12318         (compare_psymbols): Ditto.
12319         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12320
12321 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12322
12323         * f-lang.c (build_fortran_types): New function.
12324         (_initialize_f_language): Gdbarch-register built-in fortran types.
12325         * doublest.c (extract_floating): Fix warning text.
12326
12327 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12328
12329         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12330         predicate.  Replaces PUSH_DUMMY_FRAME.
12331         * gdbarch.h, gdbarch.c: Regnerate.
12332         * valops.c (hand_function_call): Update.  Call
12333         generic_push_dummy_frame directly.
12334         * vax-tdep.c (vax_gdbarch_init): Update.
12335         * sparc-tdep.c (sparc_gdbarch_init): Update.
12336         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12337         * m68k-tdep.c (m68k_gdbarch_init): Update.
12338         * hppa-tdep.c (hppa_gdbarch_init): Update.
12339         * alpha-tdep.c (alpha_gdbarch_init): Update.
12340         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12341         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12342         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12343         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12344         push_dummy_frame to generic_push_dummy_frame.
12345         * v850-tdep.c (v850_gdbarch_init): Ditto.
12346         * sh-tdep.c (sh_gdbarch_init): Ditto.
12347         * s390-tdep.c (s390_gdbarch_init): Ditto.
12348         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12349         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12350         * mips-tdep.c (mips_gdbarch_init): Ditto.
12351         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12352         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12353         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12354         * i386-tdep.c (i386_gdbarch_init): Ditto.
12355         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12356         * frv-tdep.c (frv_gdbarch_init): Ditto.
12357         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12358         * cris-tdep.c (cris_gdbarch_init): Ditto.
12359         * avr-tdep.c (avr_gdbarch_init): Ditto.
12360         * arm-tdep.c (arm_gdbarch_init): Ditto.
12361
12362 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12363
12364         * mips-tdep.c (show_mips_abi): New function.
12365         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12366         command ``show mips abi''.
12367
12368 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12369
12370         From Elena Zannoni  <ezannoni@redhat.com>
12371         * dbxread.c (process_one_symbol): Only record line 0 if one or
12372         more sline entries have been seen for the function.
12373
12374 2003-02-26  Michael Chastain  <mec@shout.net>
12375
12376         * configure: Regenerate with autoconf 000227.
12377
12378 2003-02-26  Michael Chastain  <mec@shout.net>
12379
12380         Close PR build/660.
12381         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12382         for old libc5/glibc.
12383         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12384
12385 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12386
12387         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12388         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12389
12390 2003-02-26  Michael Chastain  <mec@shout.net>
12391
12392         * configure.in: New variable HAVE_UINTPTR_T.
12393         * configure, config.in: Regenerated.
12394
12395 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12396
12397         Fix PR build/1097.
12398         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12399
12400 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12401
12402         * frame.c (get_prev_frame): Add comment on check for
12403         inside_entry_func. Only check for inside_entry_file when not a
12404         dummy and not a sentinel.  Check that the new frame is not inner
12405         to the old frame.
12406
12407 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12408
12409         * frame.c (frame_debug): New variable.
12410         (_initialize_frame): Add "set/show debug frame" command.
12411         (get_prev_frame): When frame_debug, print reason why unwind
12412         failed.
12413
12414 2003-02-25  Michael Chastain  <mec@shout.net>
12415
12416         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12417         to avoid uintptr_t definition problems.
12418
12419 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12420
12421         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12422         (SYMBOL_LINKAGE_NAME): Ditto.
12423         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12424         SYMBOL_LINKAGE_NAME.
12425         (struct general_symbol_info): Expand comment.
12426         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12427         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12428         (SYMBOL_MATCHES_REGEXP): Ditto.
12429         * symtab.c (symbol_natural_name): New function.
12430         * objfiles.h: Replace all uses of SYMBOL_NAME by
12431         DEPRECATED_SYMBOL_NAME.
12432         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12433         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12434         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12435         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12436         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12437         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12438         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12439         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12440         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12441         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12442         * ada-exp.y: Ditto.
12443         * ada-exp.y: Update copyright.
12444         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12445         * cp-valprint.c: Ditto.
12446
12447 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
12448
12449         * infptrace.c (detach): Do not flag error if ptrace detach fails
12450         and errno is set to ESRCH.
12451
12452 2003-02-24  Andrew Cagney  <cagney@redhat.com>
12453
12454         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12455         paddr when printing udot_off's value.
12456
12457 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12458
12459         * symtab.c (make_symbol_overload_list): Only read in partial
12460         symtabs containing a matching partial symbol.
12461
12462 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12463
12464         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12465         do the comparison, not strcmp.
12466         * symfile.c (compare_psymbols): Ditto.
12467         * defs.h: Declare strcmp_iw_ordered.
12468         * utils.c (strcmp_iw_ordered): New function.
12469
12470 2003-02-24  Jim Blandy  <jimb@redhat.com>
12471
12472         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12473         support, shared libs): Remove my name from here, to better reflect
12474         reality.
12475
12476 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12477
12478         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12479         (target_ops): Add to_have_continuable_watchpoint.
12480         * target.c (update_current_target): Add INHERIT line for
12481         to_have_continuable_watchpoint.
12482         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12483         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12484         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12485         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12486
12487 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
12488
12489         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12490         maintainership.
12491
12492 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12493
12494         * solib.c (solib_open): Call target defined search function after
12495         failing with solib-search-path.
12496         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12497         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12498
12499 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12500
12501         * MAINTAINERS: Add myself to Write After section.
12502
12503 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
12504
12505         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12506
12507 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
12508
12509         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12510         (m68hc11_add_reggroups): New function.
12511         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12512         (m68hc11_gdbarch_init): Install the reggroups.
12513         (_initialize_m68hc11_tdep): Initialize them.
12514
12515 2003-02-21  James E Wilson  <wilson@tuliptree.org>
12516
12517         * MAINTAINERS: Update my email address.
12518
12519 2003-02-21  David Carlton  <carlton@math.stanford.edu>
12520
12521         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12522
12523 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
12524
12525         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12526         * symtab.h: Add opaque declarations of struct axs_value and
12527         struct agent_expr.
12528         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12529         (struct location_funcs): New type.
12530         (struct symbol): Add "loc" to aux_value.
12531         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12532         * dwarf2read.c: Include "dwarf2expr.h".
12533         (dwarf2_symbol_mark_computed): New function.
12534         (read_func_scope): Use it.
12535         (var_decode_location): New function.
12536         (new_symbol): Use it.
12537         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12538
12539         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12540         (dwarf2expr_h, dwarf2loc_h): New variables.
12541         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12542         (dwarf2expr.o, dwarf2loc.o): New rules.
12543         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12544         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12545         LOC_COMPUTED_ARG.
12546         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12547         * m2-exp.y (yylex): Likewise.
12548         * printcmd.c (address_info, print_frame_args): Likewise.
12549         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12550         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12551         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12552         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12553         * symtab.c (lookup_block_symbol): Likewise.
12554
12555 2003-02-20  Adam Fedor  <fedor@gnu.org>
12556
12557         * symtab.h: Remove objc_specific struct
12558         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12559         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12560         Have language_objc use cplus_specific struct.
12561
12562 2003-02-20  Tom Tromey  <tromey@redhat.com>
12563
12564         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12565         TYPE_NAME, when printing a String value.  PR java/1075.
12566
12567 2003-02-20  Adam Fedor  <fedor@gnu.org>
12568
12569         * objc-lang.h (find_methods): Remove declaration.
12570         * objc-lang.c (find_methods): Make static.
12571
12572 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12573
12574         * win32-nat.c (get_image_name): Check return value from
12575         ReadProcessMemory.
12576         (child_xfer_memory): Ditto.
12577
12578 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12579
12580         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12581         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12582         '${exec_prefix}' (in addition to the expansion thereof) as
12583         relocatable.
12584         * configure: Rebuilt.
12585
12586 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12587
12588         * symtab.c (search_symbols): Revert the search_symbols part of my
12589         2002-12-23 patch.  Add comment.
12590
12591 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12592
12593         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12594         * dbxread.c (elfstab_build_psymtabs): Don't call
12595         install_minimal_symbols.
12596         (stabsect_build_psymtabs): Likewise.
12597         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12598         earlier.
12599         * somread.c (som_symfile_read): Call install_minimal_symbols
12600         and do_cleanups earlier.
12601         * nlmread.c (nlm_symfile_read): Likewise.
12602         * mdebugread.c (elfmdebug_build_psymtabs): Call
12603         install_minimal_symbols and make appropriate cleanups.
12604
12605 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12606
12607         * solib.c (reload_shared_libraries): New function.
12608         (_initialize_solib): Add callbacks for ``set solib-search-path''
12609         and ``set solib-absolute-prefix''.
12610
12611 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12612
12613         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12614         expand comment.
12615         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12616         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12617         * ada-typeprint.c (ada_typedef_print): Ditto.
12618         * ax-gdb.c (gen_var_ref): Ditto.
12619         * breakpoint.c (print_one_breakpoint): Ditto.
12620         * buildsym.c (finish_block): Ditto.
12621         * c-valprint.c (c_val_print): Ditto.
12622         * expprint.c (print_subexp): Ditto.
12623         * findvar.c (locate_var_value): Ditto.
12624         * infcmd.c (jump_command): Ditto.
12625         * linespec.c (decode_line_2, decode_compound): Ditto.
12626         * maint.c (maintenance_translate_address): Ditto.
12627         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12628         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12629         Ditto.
12630         * p-valprint.c (pascal_val_print): Ditto.
12631         * stabsread.c (define_symbol): Ditto.
12632         * stack.c (print_frame, frame_info, print_block_frame_locals)
12633         (print_frame_arg_vars, return_command): Ditto.
12634         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12635         * symmisc.c (print_symbol): Ditto.
12636         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12637         (compare_search_syms, print_symbol_info, print_msymbol_info)
12638         (rbreak_command): Ditto.
12639         * tracepoint.c (tracepoints_info): Ditto.
12640         * typeprint.c (typedef_print): Ditto.
12641         * valops.c (value_of_variable, hand_function_call): Ditto.
12642         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12643         * ada-typeprint.c: Update Copyright.
12644         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12645         * tracepoint.c, cli/cli-cmds.c: Ditto.
12646
12647 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12648
12649         * frame.c (generic_unwind_get_saved_register): Make non-static.
12650         * frame.h (generic_unwind_get_saved_register): Declare.
12651         * mips-tdep.c (read_next_frame_reg): Fetch register from
12652         current regcache when frame is NULL.
12653         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12654         that must be NULL.
12655         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12656         instead of frame_register_unwind().
12657
12658 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12659
12660         * remote-sim.c (gdbsim_insert_breakpoint)
12661         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12662         code.
12663
12664 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12665
12666         * remote.c (_initialize_remote): Add commands "set/show remote
12667         hardware-watchpoint-limit" and "set/show remote
12668         hardware-breakpoint-limit".
12669         (remote_hw_watchpoint_limit): Initialize to -1.
12670         (remote_hw_breakpoint_limit): Ditto.
12671         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12672
12673 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
12674
12675         * coff-pe-read.c: New file - support reading of minimal symbols from a
12676         portable executable using the export table.
12677         * coff-pe-read.h: New file.
12678         * coffread.c: Include coff-pe-read.h.
12679         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12680         debugging symbols found.
12681         * Makefile.in (SFILES): Add coff-pe-read.o.
12682         (coff_pe_read_h): Define.
12683         (COMMON_OBS): Add coff-pe-read.o.
12684         (coffread.o): Add coff_pe_read_h dependency.
12685         (coff-pe-read.o): New target.
12686
12687 2003-02-19  David Carlton  <carlton@math.stanford.edu>
12688
12689         * Makefile.in (SFILES): Add block.c.
12690         (block_h): New.
12691         (COMMON_OBS): Add block.o.
12692         (block.o): New.
12693         (x86-64-tdep.o): Add $(block_h).
12694         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12695         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12696         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12697         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12698         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12699         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12700         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12701         * value.h: Add opaque declaration for struct block.
12702         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12703         * ada-lang.h: Ditto.
12704         * x86-64-tdep.c: #include "block.h"
12705         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12706         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12707         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12708         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12709         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12710         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12711         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12712         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12713         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12714         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12715         * symtab.c (block_function): Ditto.
12716         (contained_in): Ditto.
12717         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12718         block.h.  Add opaque declaration for struct block.
12719         * symtab.h: Move block_function and contained_in declarations to
12720         block.h.  Add opaque declarations for struct block, struct
12721         blockvector.
12722         (struct block): Move to block.h.
12723         (struct blockvector): Ditto.
12724         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12725         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12726         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12727         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12728         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12729         Ditto.
12730         * block.c: New file.
12731         * block.h: New file.
12732
12733 2003-02-19  Theodore A. Roth  <troth@openavr.org>
12734
12735         * avr-tdep.c (avr_extract_return_value): Remove function.
12736         (avr_store_return_value): Remove function.
12737         (avr_extract_struct_value_address): Remove function.
12738         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12739
12740 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
12741
12742         * rs6000-tdep.c: Include "gdb_assert.h".
12743         (registers_e500): Add "acc" and "spefscr".
12744         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12745         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12746         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12747         really is "r0".
12748         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12749
12750 2003-02-18  Keith Seitz  <keiths@redhat.com>
12751
12752         * Makefile.in: Add gdbtk-interps.c.
12753
12754 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
12755
12756         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12757         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12758
12759 2003-02-18  Andrew Cagney  <cagney@redhat.com>
12760
12761         * symtab.h (struct objfile): Add opaque declaration.
12762
12763 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
12764
12765         From Jim Ingham   <jingham@apple.com>:
12766         * dbxread.c (process_one_symbol): Use last_function_start rather
12767         than function_start_offset to find the real beginning of the
12768         current function.  The latter is just the text section offset on
12769         some systems, the former is always the real function start.
12770
12771 2003-02-17  Andrew Cagney  <cagney@redhat.com>
12772
12773         * configure.in: Revert ${target} != ${host}.
12774
12775 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
12776
12777         * configure.in (Makefile): Use the test ${target} != ${host},
12778         instead of the absence of the "nm.h" file, to determine of the
12779         configuration non-native.
12780         * configure: Regenerate.
12781
12782 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
12783
12784         From Brian Ford  <ford@vss.fsi.com>
12785
12786         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12787         conditionalize tui_active test.
12788         (lookup_cmd_1): Ditto.
12789
12790 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
12791
12792         * configure.in: Add check for _etext.
12793         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12794         available.
12795         * config.in, configure: regenerated.
12796
12797 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
12798
12799         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12800
12801 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
12802
12803         * main.c (tui_version): Delete variable.
12804         (captured_main): When --tui, set interpreter_p to "tui" instead of
12805         enabling tui_version.
12806         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12807         tui_version.
12808         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12809         * cli/cli-cmds.c (disassemble_command): Ditto.
12810         * defs.h (tui_version): Delete declaration.
12811         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12812         (tui-interp.o): Add rules.
12813         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12814
12815 2003-02-14  Christopher Faylor  <cgf@redhat.com>
12816
12817         * win32-nat.c (register_loaded_dll): Correctly set address range for
12818         just-loaded dll.
12819
12820 2003-02-12  Jason Molenda  (jmolenda@apple.com)
12821
12822         * symmisc.c (print_objfile_statistics): Include information about
12823         the number of psymtabs and symtabs in each object file.
12824
12825 2003-02-13  Keith R Seitz  <keiths@redhat.com>
12826
12827         * main.h (struct captured_main_args): Add interpreter_p.
12828         * main.c (captured_main): Initialize interpreter_p from context.
12829         * gdb.c (main): Set interpreter_p argument.
12830         * Makefile.in (gdb.o): Add dependency for interps.h.
12831
12832 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12833
12834         * event-top.c (cli_command_loop): Delete declaration.
12835         (_initialize_event_loop): Delete function setting event_loop_hook.
12836         * event-top.h (cli_command_loop): Declare.  Update copyright.
12837         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12838         * interps.c (current_interp_command_loop): When event_loop_p, call
12839         cli_command_loop.
12840
12841 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12842
12843         * interps.h (interp_command_loop_ftype): Change return type to
12844         void.
12845
12846 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
12847
12848         * x86-64-tdep.c (x86_64_extract_return_value)
12849         (x86_64_store_return_value): Use regcache instead of regbuf.
12850         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12851         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12852
12853 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
12854
12855         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12856         * aclocal.m4: Regenerate.
12857         * configure: Regenerate.
12858
12859         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12860         TCL_LD_SEARCH_FLAGS.
12861
12862 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
12863
12864         * dwarf2cfi.c: Reindented.
12865
12866 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
12867
12868         * interps.c (clear_interpreter_hooks): Convert function definition
12869         to ISO C.
12870
12871 2003-02-07  David Carlton  <carlton@math.stanford.edu>
12872
12873         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12874
12875 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
12876
12877         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12878         (struct type): ...to here.
12879         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12880         field.
12881         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12882         (replace_type): Set length on all type variants for a given type.
12883
12884 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
12885
12886         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12887         <sys/stat.h>.
12888         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12889
12890 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
12891
12892         * Makefile.in (symm-nat.o): Update dependencies.
12893         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12894         (lynx-nat.o, ia64-linux-nat.): Ditto.
12895         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12896         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12897         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12898
12899         * Makefile.in (inflow_h): Define.
12900         (procfs.o, inflow.o, procfs.o): Update dependencies.
12901         * inftarg.c (child_stop): Delete extern declaration of
12902         inferior_process_group.  Include "inflow.h".
12903         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12904         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12905         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12906         (our_process_group, inferior_process_group): Extern declarations.
12907
12908         * procfs.c: Include "gdb_assert.h".
12909
12910         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12911         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12912         * jv-typeprint.c (java_type_print_base): Ditto.
12913         * typeprint.c (typedef_print): Eliminate STREQ.
12914         * cli/cli-script.c (define_command, define_command): Ditto.
12915         * main.c (captured_main): Ditto.
12916         * values.c (lookup_internalvar): Ditto.
12917         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12918         within `if' conditional.
12919         * linespec.c (decode_line_2): Ditto.
12920         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12921         (bfd_openw_with_cleanup): Ditto.
12922
12923 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
12924
12925         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12926         legacy_extract_return_value and store_return_value to
12927         legacy_return_value.
12928
12929 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
12930
12931         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12932         section load addresses for symbol handling in relocated DLLs.
12933         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12934
12935 2003-02-05  Fred Fish  <fnf@intrinsity.com>
12936
12937         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12938         '=' and '!='.
12939         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12940         with '&' and '=='.
12941         (angel_RDI_info): Ditto.
12942         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12943         with '&' and '!='.
12944         (threads_continue_all_with_signals): Ditto.
12945
12946 2003-02-05  Jim Ingham <jingham@apple.com>
12947             Keith Seitz  <keiths@redhat.com>
12948             Elena Zannoni  <ezannoni@redhat.com>
12949             Andrew Cagney  <ac131313@redhat.com>
12950
12951         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12952         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12953         (SUBDIR_MI_OBS): Add "mi-interp.o".
12954         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12955         (SFILES): Add "interps.c".
12956         (COMMON_OBS): Add "interps.o".
12957         (interps_h, mi_main_h): Define.
12958         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12959         (mi-main.o, main.o, event-top.o): Update dependencies.
12960         * cli/cli-interp.c: New file.
12961         * interps.h, interps.c: New files.
12962         * top.c: (gdb_init): Don't install the default interpreter, handed
12963         by captured_main.
12964         * main.c: Include "interps.h".
12965         (interpreter_p): Note that it should malloc'ed.
12966         (captured_command_loop): Call current_interp_command_loop.
12967         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
12968         xfree and xstrdup when updating interpreter_p.  Install the
12969         default interpreter.  Add hack to stop mi1's copyright notice
12970         being encoded.
12971         * event-top.h (gdb_setup_readline): Declare.
12972         (gdb_disable_readline): Declare.
12973         * event-top.c: Include "interps.h".
12974         (display_gdb_prompt): Call current_interp_display_prompt_p.
12975         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12976         gdb_stdlog, and gdb_stdtarg.
12977         (_initialize_event_loop): Don't call gdb_setup_readline.
12978         * cli-out.c (cli_out_set_stream): New function.
12979         * cli-out.h (cli_out_set_stream): Declare.
12980
12981 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
12982
12983         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12984         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
12985         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12986         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12987         config/i386/i386v42mp.mt: Removed.
12988
12989 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
12990
12991         * configure.tgt (*-*-solaris*): Set gdb_osabi to
12992         GDB_OSABI_SOLARIS.
12993
12994 2003-02-05  Michael Chastain  <mec@shout.net>
12995
12996         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12997         2.12.1 and earlier versions.
12998
12999 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
13000
13001         Remove orphaned hosts, targets and files.
13002         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13003         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13004         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13005         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13006         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13007         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13008         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13009         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13010         * config/sparc/tm-sp64sim.h: Delete.
13011         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13012         hosts.
13013         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13014         mips*-dec-mach3* targets.
13015
13016 2003-02-04  Michael Chastain  <mec@shout.net>
13017
13018         * NEWS: Fix typo: sepcifying -> specifying.
13019
13020 2003-02-04  Michael Chastain  <mec@shout.net>
13021
13022         * dwarfread.c: Add documentation on the state of dwarf-1,
13023         looking towards obsoletion.
13024
13025 2003-02-03  Michael Chastain  <mec@shout.net>
13026
13027         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13028         gdb/testsuite/gdb.c++/pr-1023.exp.
13029
13030 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13031
13032         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13033         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13034
13035         * utils.c (init_page_info): Delete reference to MPW in comments.
13036         * main.c (captured_main): Delete #ifdef MPW.
13037
13038 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13039
13040         * NEWS: Note that the m32r-*-elf* is obsolete.
13041         * monitor.c (monitor_expect): Obsolete reference to m32r.
13042         * configure.tgt: Mark m32r-*-elf* as obsolete.
13043         * MAINTAINERS: Mark m32k as obsolete.
13044         * m32r-rom.c: Obsolete file.
13045         * config/m32r/m32r.mt: Obsolete file.
13046         * config/m32r/tm-m32r.h: Obsolete file.
13047         * m32r-stub.c: Obsolete file.
13048         * m32r-tdep.c: Obsolete file.
13049
13050 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13051
13052         * NEWS: Mention that the z8k-zilog-none is obsolete.
13053         * MAINTAINERS: Mark z8k as obsolete.
13054         * configure.tgt: Obsolete the z8k-*-coff* target.
13055         * config/z8k/z8k.mt: Obsolete file.
13056         * config/z8k/tm-z8k.h: Obsolete file.
13057         * z8k-tdep.c: Obsolete file.
13058
13059 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13060
13061         * NEWS: Mention that the mn10200-elf is obsolete.
13062         * configure.tgt: Obsolete mn10200-*-* target.
13063         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13064         mention that the mn10200 is obsolete.
13065         * breakpoint.h: Ditto.
13066         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13067         * config/mn10200/mn10200.mt: Obsolete file.
13068         * config/mn10200/tm-mn10200.h: Obsolete file.
13069         * mn10200-tdep.c: Obsolete file.
13070
13071 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13072
13073         * MAINTAINERS: Mark h8500 as obsolete.
13074         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13075         * findvar.c (value_from_register): Ditto.
13076         * h8500-tdep.c: Mark file as obsolete.
13077         * config/h8500/h8500.mt: Ditto.
13078         * config/h8500/tm-h8500.h: Ditto.
13079         * NEWS: Mention that h8500 is obsolete.
13080
13081 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13082
13083         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13084         start of function.
13085         * jv-lang.c (get_dynamics_objfile): Add comment.
13086
13087 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13088
13089         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13090         * printcmd.c (build_address_symbolic): Replace uses of
13091         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13092         SYMBOL_NAME, and asm_demangle.
13093         Update copyright.
13094
13095 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13096
13097         * linespec.c (decode_compound): Extract code into
13098         lookup_prefix_sym.
13099         (lookup_prefix_sym): New function.
13100
13101 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13102
13103         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13104         FLOAT_COERCION_BADNESS.
13105         * gdbtypes.c (rank_one_type): Replace all uses of
13106         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13107
13108 2003-02-04  Jim Blandy  <jimb@redhat.com>
13109
13110         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13111         section, let dwarf_macinfo_section point to it, not
13112         dwarf_loc_section.
13113
13114 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13115
13116         Pointed out by Anton Blanchard <anton@samba.org>.
13117         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13118         (ppc_linux_at_sigtramp_return_path): Use it.
13119
13120 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13121
13122         * defs.h (streq): Add prototype.
13123         * utils.c (streq): New function.
13124
13125         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13126         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13127         * mdebugread.c (new_symbol): Likewise.
13128         * stabsread.c (define_symbol): Likewise.
13129         * coffread.c (process_coff_symbol): Likewise.
13130         * dwarfread.c (new_symbol): Likewise.
13131
13132         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13133         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13134         here.
13135         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13136         SYMBOL_INIT_DEMANGLED_NAME.
13137         * objfiles.c: Include "hashtab.h".
13138         (allocate_objfile): Call htab_set_functions_ex for the
13139         demangled_names_hash.
13140         (free_objfile): Call htab_delete for the demangled_names_hash.
13141         * objfiles.h (struct htab): Add declaration.
13142         (struct objfile): Add demangled_names_hash.
13143         * symfile.c: Include "hashtab.h".
13144         (reread_symbols): Call htab_delete for the demangled_names_hash.
13145         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13146         SYMBOL_NAME in the bcache.
13147         * symtab.c: Include "hashtab.h".  Update comments.
13148         (create_demangled_names_hash, symbol_set_names): New functions.
13149         (symbol_find_demangled_name): New function, broken out from
13150         symbol_init_demangled_names.
13151         (symbol_init_demangled_names): Use it.
13152         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13153         (SYMBOL_SET_NAMES): New macro.
13154         (symbol_set_names): Add prototype.
13155
13156 2003-02-03  Jim Blandy  <jimb@redhat.com>
13157
13158         Use a single, consistent representation for an empty minimal
13159         symbol table in an objfile.
13160         * objfiles.c (terminate_minimal_symbol_table): New function.
13161         (allocate_objfile): Call it.
13162         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13163         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13164         non-NULL.
13165         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13166         objfile has minimal symbols, compare minimal_symbol_count to zero,
13167         instead of comparing msymbols with NULL.
13168         * objfiles.c (have_minimal_symbols): Same.
13169         * solib-sunos.c (solib_add_common_symbols): Call
13170         terminate_minimal_symbol_table.
13171         * symfile.c (reread_symbols): Same.
13172
13173 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
13174
13175         * s390-tdep.c (s390_address_class_type_flags)
13176         (s390_address_class_type_flags_to_name)
13177         (s390_address_class_name_to_type_flags): New functions.
13178         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13179         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13180
13181 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13182
13183         * arm-tdep.c: Fix spell-o in comment.
13184
13185 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13186
13187         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13188         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13189         error messages to contain BFD filename.
13190
13191 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13192
13193         Fix PR gdb/742 gdb/743 gdb/877
13194         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13195         (do_mixed_source_and_assembly): Use
13196         make_cleanup_ui_out_tuple_begin_end and
13197         make_cleanup_ui_out_tuple_begin_end.
13198         (do_mixed_source_and_assembly): Ditto.
13199         * thread.c (do_captured_list_thread_ids): Ditto.
13200         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13201         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13202         ui_out_tuple_end): Delete prototypes.
13203         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13204         ui_out_list_end, ui_out_tuple_end): Delete.
13205
13206         From Kevin Buettner  <kevinb@redhat.com>:
13207         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13208         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13209         (do_cleanup_table_end):  New functions.
13210         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13211         Use cleanups to invoke_ui_out_tuple_end().
13212         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13213         * cli/cli-setshow.c (cmd_show_list): Use
13214         make_cleanup_ui_out_tuple_begin_end.
13215
13216 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13217
13218         * frame.c (frame_unwind_register): New function.
13219         (frame_unwind_unsigned_register): Use.
13220         (frame_unwind_signed_register): Use.
13221         (frame_read_register): New function.
13222         * frame.h (frame_unwind_register): Declare.
13223         (frame_read_register): Declare.
13224
13225         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13226         and frame_unwind_register instead of read_memory, write_register
13227         and deprecated_write_register_bytes.
13228
13229 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13230
13231         * frame.h: Note that namelen can be negative.
13232         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13233         NAME's length.
13234
13235         * NEWS: Mention that the d10v's `regs' command is deprecated.
13236         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13237         (d10v_print_registers_info): New function.
13238         (show_regs): Call d10v_print_registers_info.
13239         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13240
13241 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13242
13243         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13244         lost in the previous patch.
13245
13246 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13247
13248         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13249         * stack.c (print_frame_info_base): Output complete FRAME tuple
13250         for synthesized frames.
13251
13252 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13253
13254         * mips-nat.c (zerobuf): Delete.
13255         (fetch_inferior_registers): Alloc local zerobuf.
13256         (fetch_core_registers): Alloc local zerobuf.
13257         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13258         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13259         * thread-db.c (thread_db_store_registers): Ditto.
13260         * sh-tdep.c (sh_do_register): Ditto.
13261         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13262         * remote-sim.c (gdbsim_store_register): Ditto.
13263         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13264         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13265         * monitor.c (monitor_supply_register): Ditto.
13266         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13267         * mips-nat.c (fetch_inferior_registers): Ditto.
13268         * m68klinux-nat.c (fetch_register): Ditto.
13269         * lynx-nat.c (fetch_inferior_registers): Ditto.
13270         (fetch_inferior_registers): Ditto.
13271         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13272         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13273         (hpux_thread_store_registers): Ditto.
13274         * hppah-nat.c (fetch_register): Ditto.
13275         * hppab-nat.c (fetch_register): Ditto.
13276         * hppa-tdep.c (pa_register_look_aside): Ditto.
13277         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13278         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13279
13280 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13281
13282         * gdbarch.sh: Explictly specify all method levels.  When a
13283         variable with an empty level, provide a non-multi-arch default.
13284         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13285         * gdbarch.h: Re-generate.
13286         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13287         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13288
13289 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13290
13291         * defs.h (host_pointer_to_address): Delete declaration.
13292         (address_to_host_pointer): Delete declaration.
13293         * utils.c (host_pointer_to_address): Delete function.
13294         (address_to_host_pointer): Delete function.
13295         * procfs.c (procfs_address_to_host_pointer): New function.
13296         * procfs.c (proc_set_watchpoint): Use.
13297         (procfs_can_use_hw_breakpoint): Update comments.
13298         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13299         (som_solib_add): Use.
13300         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13301         * hppa-tdep.c (unwind_command): Use.
13302
13303 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13304
13305         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13306         strlen d_name.
13307
13308         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13309         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13310         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13311         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13312         (define_symbol): Update.
13313         * symfile.c (generic_load): Remove references to nindy.
13314         * symtab.c: Remove references to nindy.
13315
13316 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13317
13318         * infcmd.c (print_float_info): Delete code conditional on
13319         FLOAT_INFO.
13320         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13321         * config/m68k/nm-apollo68b.h: Ditto.
13322         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13323         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13324         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13325
13326 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13327
13328         * config/i386/tm-i386os9k.h: Removed.
13329
13330         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13331         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13332         they're identical to i[3456]86-*-sysv* now.
13333         * config/i386/i386v32.mh: Removed.
13334         * config/i386/xm-i386v32.h: Removed.
13335         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13336
13337         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13338
13339         * config/i386/i386dgux.mh: Removed.
13340         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13341
13342         * configure.in: Fix typo.
13343         * configure: Regenerated.
13344
13345 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13346
13347         * dwarf2read.c (dwarf2_locate_sections): Set
13348         dwarf_ranges_section.
13349
13350 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13351
13352         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13353         * utils.c: Update comments documenting legitimate uses of PTR.
13354
13355         * utils.c: Re-indent.
13356
13357         * config/djgpp/fnchange.lst: Delete nindy files.
13358         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13359         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13360         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13361         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13362         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13363         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13364         * Makefile.in (init.c): Remove nindy references.
13365         (saber_gdb): Delete rule.
13366         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13367         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13368         and a68v-nat.c.
13369         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13370         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13371         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13372         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13373         nindy-share/stop.h.
13374         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13375         * saber.suppress: Delete file.
13376
13377 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13378
13379         * dbxread.c (stabs_data): New static variable.
13380         (fill_symbuf): Support an in-memory buffer for stabs data.
13381         (stabs_seek): New function.
13382         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13383         (read_ofile_symtab): Use stabs_seek.
13384         (elfstab_build_psymtabs): Take an asection* instead of
13385         an offset and size.  Relocate the stabs data if necessary.
13386         Save the section* for dbx_psymtab_to_symtab.
13387         * dwarf2read.c: Add section variables for each debug section.
13388         (dwarf2_locate_sections): Fill them in.
13389         (dwarf2_read_section): Take an asection* argument.
13390         Relocate the section contents if necessary.
13391         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13392         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13393         it to dwarf2_read_section.
13394         (dwarf2_build_frame_info): Update callers.
13395         * elfread.c (elf_symfile_read): Update call to
13396         elfstab_build_psymtabs.
13397         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13398         (DBX_STAB_SECTION): New macro.
13399         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13400         * symfile.c (symfile_dummy_outputs): New function.
13401         (symfile_relocate_debug_section): New function.
13402         * symfile.h (symfile_relocate_debug_section): Add prototype.
13403
13404 2003-01-31  Richard Henderson  <rth@redhat.com>
13405
13406         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13407         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13408         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13409         * alpha-tdep.c (alpha_register_name): Add "unique".
13410         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13411         (ALPHA_UNIQUE_REGNUM): New.
13412         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13413
13414 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13415
13416         * README: Remove reference to Ericsson 1800 monitor.
13417         * Makefile.in (remote-es.o): Delete rule.
13418         (ALLDEPFILES): Delete remote-es.c.
13419         * remote-es.c: Delete file.
13420         * config/m68k/es1800.mt: Delete file.
13421         * config/djgpp/fnchange.lst: Update.
13422         * configure.tgt: Delete m68*-ericsson-* target.
13423
13424 2003-01-31  Adam Fedor  <fedor@gnu.org>
13425
13426         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13427         Remove duplicate/shadowing variable of same name.
13428
13429 2003-01-30  Jim Blandy  <jimb@redhat.com>
13430
13431         * symfile.c (find_separate_debug_file): Assert that the objfile's
13432         directory name we compute ends with a slash, and then assume that
13433         that's so everywhere we use it.
13434
13435 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13436
13437         * valops.c (value_assign): Flush frame cache after stores to memory
13438         also.
13439
13440 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13441
13442         * Makefile.in (mon960-rom.o): Delete rule.
13443         * mon960-rom.c: Delete file.
13444
13445 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13446
13447         * d10v-tdep.c: Include "frame-unwind.h".
13448         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13449         list.
13450         (next_addr, uses_frame): Delete.
13451         (struct d10v_unwind_cache): Define.
13452         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13453         Use info instead of next_addr and uses_frame globals.
13454         (d10v_frame_init_saved_regs): Delete function.
13455         (d10v_init_extra_frame_info): Delete function.
13456         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13457         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13458         init_frame_pc or frame_saved_pc.
13459         (d10v_pop_frame): Delete function.
13460         (do_d10v_pop_frame): Delete function.
13461         (d10v_frame_chain): Delete function.
13462         (d10v_frame_chain_valid): Delete function.
13463         (d10v_frame_pc_unwind): New function.
13464         (d10v_frame_id_unwind): New function.
13465         (saved_regs_unwinder): New function.
13466         (d10v_frame_register_unwind): New function.
13467         (d10v_frame_pop): New function.
13468         (d10v_frame_unwind): New variable.
13469         (d10v_frame_p): New function.
13470         (d10v_frame_saved_pc): Delete function.
13471         * Makefile.in (d10v-tdep.o): Update dependencies.
13472
13473 2003-01-30  J. Brobecker  <brobecker@gnat.com>
13474
13475         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13476         causing some regressions due to a change in the default value
13477         for this macro.
13478
13479 2003-01-29  Richard Henderson  <rth@redhat.com>
13480             Elena Zannoni  <ezannoni@redhat.com>
13481             Daniel Jacobowitz  <drow@mvista.com>
13482
13483         Fix PR gdb/961.
13484         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13485         variables.
13486         (RANGES_SECTION): New.
13487         (dwarf_ranges_buffer): New variable.
13488         (struct comp_unit_head): Add member "die".
13489         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13490         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13491         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13492         (dwarf2_locate_sections): Likewise.
13493         (dwarf2_build_psymtabs): Read .debug_ranges.
13494         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13495         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13496         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13497         Look for DW_AT_ranges and return the bounding box.
13498
13499 2003-01-29  Brian Ford <ford@vss.fsi.com>
13500
13501         * win32-nat.c (cygwin_pid): Removed as unused.
13502         (child_attach): Try fall back to Cygwin pid.
13503
13504 2003-01-29  Jim Blandy  <jimb@redhat.com>
13505
13506         * objfiles.h (struct objfile): Doc fix.
13507
13508 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
13509
13510         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13511         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13512         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13513         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13514         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13515         (FRAME_SAVED_PC): Change to a function with predicate.
13516         * gdbarch.h, gdbarch.c: Re-generate.
13517
13518 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
13519
13520         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13521
13522         * complaints.c (complain): Delete function.
13523         * complaints.h (struct deprecated_complaint): Delete definition.
13524         (complain): Delete declaration.
13525
13526 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
13527
13528         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13529         dummy frames.
13530
13531 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
13532
13533         * sentinel-frame.h, sentinel-frame.c: New files.
13534         * Makefile.in (frame.o): Update dependencies.
13535         (SFILES): Add sentinel-frame.c.
13536         (sentinel_frame_h): Define.
13537         (COMMON_OBS): Add sentinel-frame.o.
13538         (sentinel-frame.o): Specify dependencies.
13539         * frame.c: Include "sentinel-frame.h".
13540         (frame_register_unwind): Rewrite assuming that there is always a a
13541         ->next frame.
13542         (frame_register, generic_unwind_get_saved_register): Ditto.
13543         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13544         (create_sentinel_frame, unwind_to_current_frame): New functions.
13545         (get_current_frame): Rewrite using create_sentinel_frame and
13546         unwind_to_current_frame.  When possible, always create a frame.
13547         (create_new_frame): Set next to the sentinel frame.
13548         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13549         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13550         ID cache when necessary.
13551         (frame_saved_regs_id_unwind): Use frame_relative_level.
13552         (deprecated_generic_get_saved_register): Use frame_relative_level,
13553         get_frame_saved_regs, get_frame_pc, get_frame_base and
13554         get_next_frame.
13555         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13556         frame_register.
13557
13558 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13559
13560         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13561
13562 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13563
13564         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13565         (maintenance_set_profile_cmd): Use error () instead of warning ().
13566
13567 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13568
13569         * configure.in: Check that -pg works if using --enable-profiling.
13570         Check for monstartup and _mcleanup regardless of --enable-profiling.
13571         * maint.c: Check for monstartup and _mcleanup before using them.
13572         * config.in: Regenerated.
13573         * configure: Regenerated.
13574
13575 2003-01-24  Nick Clifton  <nickc@redhat.com>
13576
13577         * Add sh2e support:
13578
13579         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13580
13581                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13582                 (sh2e_show_regs): New.
13583                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13584                 * config/sh/tm-sh.h: Added sh2e to comments.
13585
13586 2003-01-23  Jim Blandy  <jimb@redhat.com>
13587
13588         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13589         symbols found)" message here; we haven't checked for a separate
13590         debug info file yet, so we don't know yet.
13591         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13592         we've looked everywhere.  Also, there's no need to print a special
13593         message when we're loading the separate debug info file: the one
13594         symbol_file_add prints is fine.
13595
13596 2003-01-23  Alexander Larsson <alexl@redhat.com>
13597             Jim Blandy  <jimb@redhat.com>
13598
13599         Add support for executables whose debug info has been separated
13600         out into a separate file, leaving only a link behind.
13601         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13602         and separate_debug_objfile_backlink.
13603         (put_objfile_before): New declaration.
13604         * symfile.c: #include "filenames.h".
13605         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13606         debug info in a separate file, read that, too. Save the addrs
13607         argument, so we can use it again to read the separated debug info;
13608         syms_from_objfile modifies the table we pass it.
13609         (reread_symbols): After re-reading an objfile, call
13610         reread_separate_symbols to refresh its separate debug info
13611         objfile, if it has one.
13612         (reread_separate_symbols, find_separate_debug_file,
13613         get_debug_link_info, separate_debug_file_exists): New functions.
13614         (debug_file_directory): New global var.
13615         (_initialize_symfile): Initialize debug_file_directory, and
13616         provide the new `set debug-file-directory' command to let the user
13617         change it.
13618         * objfiles.c (free_objfile): If this objfile has its debug info in
13619         a separate objfile, free that one too.  If this is itself a
13620         separate debug info objfile, clear our parent's backlink.
13621         (put_objfile_before): New function.
13622         * utils.c (gnu_debuglink_crc32): New function.
13623         * defs.h (gnu_debuglink_crc32): New declaration.
13624         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13625         * configure.in: Handle --with-separate-debug-dir config option.
13626         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13627         * acconfig.h (DEBUGDIR): New macro.
13628         * configure, aclocal.m4, config.in: Regenerated.
13629
13630 2003-01-22  Jim Blandy  <jimb@redhat.com>
13631
13632         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13633         like the old symbol_file_add, but taking new arguments: you can
13634         now pass in either a `struct section_addr_info' list to say where
13635         each section is loaded, or a `struct section_offsets' table.  Pass
13636         these new arguments through to syms_from_objfile as appropriate.
13637         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13638         with the appropriate quiescent values for the new arguments.
13639
13640         * symfile.c: #include "gdb_assert.h".
13641         (syms_from_objfile): Add the ability to pass in a section offset
13642         table directly, as an alternative to the section_addr_info table.
13643         Document arguments better.
13644         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13645         * symfile.h (syms_from_objfile): Update declaration.
13646         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13647         syms_from_objfile.
13648         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13649
13650 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
13651
13652         Original patch by Tom Tromey <tromey@cygnus.com> and
13653         Jason Molenda <jmolenda@apple.com>.
13654         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13655         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13656         * NEWS: Mention profiling.
13657         * configure.in (--enable-gdbtk): Fix typo.
13658         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13659         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13660         Fill in function.
13661         (profiling_state): New variable.
13662         (mcleanup_wrapper): New function.
13663         (_initialize_maint): Remove NOTYET, fix call to
13664         add_setshow_boolean_cmd for "maint set profile".
13665         * configure: Regenerated.
13666
13667 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
13668
13669         * Makefile.in (install-gdbtk): Install PNG images too.
13670
13671 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13672
13673         * exec.c (text_start): Delete global variable.
13674         (exec_file_attach): Make text_start local to the function.
13675         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13676         * valops.c (hand_function_call): Delete code that handles
13677         BEFORE_TEXT_END and AFTER_TEXT_END.
13678         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13679         of CALL_DUMMY_LOCATION.
13680         * gdbarch.c: Regenerate.
13681         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13682         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13683         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13684         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13685         (text_end): Delete extern declaration.
13686
13687 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13688
13689         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13690         * blockframe.c (backtrace_below_main): Move to "frame.c".
13691         (frame_chain_valid): Delete check for backtrace_below_main.
13692         (_initialize_blockframe): Delete initialization, move ``set
13693         backtrace-below-main'' command to "frame.c".
13694         (do_flush_frames_sfunc): Delete function.
13695         * frame.c: Include "command.h" and "gdbcmd.h".
13696         (frame_type_from_pc): New function.
13697         (create_new_frame): Use frame_type_from_pc.
13698         (legacy_get_prev_frame): New function.
13699         (get_prev_frame): Rewrite.  When an old style frame, call
13700         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13701         (_initialize_frame): Add ``set backtrace-below-main'' command.
13702         * Makefile.in (frame.o): Update dependencies.
13703
13704 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13705
13706         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13707         DEPRECATED_REGISTERS_INFO.
13708
13709 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13710
13711         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13712         Maintainers'.  Update `Various Maintainers'.
13713
13714 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13715
13716         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13717         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13718         Suppress actual parameters when `-'.
13719         * gdbarch.h, gdbarch.c: Regenerate.
13720
13721 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13722
13723         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13724         code handling dummy frames.
13725
13726 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13727
13728         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13729         (struct frame_unwind): Add field pop.
13730         * frame.h (frame_pop): Declare.
13731         * frame.c (frame_saved_regs_pop): New function.
13732         (trad_frame_unwinder): Add frame_saved_regs_pop.
13733         (frame_pop): New function.
13734         * dummy-frame.c (dummy_frame_pop): New function.
13735         (discard_innermost_dummy): New function.
13736         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13737         (dummy_frame_unwind): Add dummy_frame_pop.
13738         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13739         * valops.c (hand_function_call): Ditto.
13740         * stack.c (return_command): Ditto.
13741
13742 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13743
13744         * cris-tdep.c: Fix function declaration indentation.
13745         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13746         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13747         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13748         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13749         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13750         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13751
13752 2003-01-18  Michael Chastain  <mec@shout.net>
13753
13754         * README (Unpacking and Installation -- quick overview):
13755         Warn against ".../gdb-5.3/gdb/configure".
13756
13757 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13758
13759         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13760         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13761         (struct frame_unwind): Declare opaque.
13762         (dummy_frame_p): Declare function.
13763         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13764         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13765         * dummy-frame.c: Include "frame-unwind.h".
13766         (dummy_frame_p): New function.
13767         (dummy_frame_unwind): New variable.
13768         * frame.c: Include "frame-unwind.h".
13769         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13770         to use the new unwind field.
13771         (set_unwind_by_pc): Delete function.
13772         (create_new_frame, get_prev_frame): Set unwind field using
13773         frame_unwind_find_by_pc.
13774         (trad_frame_unwind, trad_frame_unwinder): New variables.
13775         * frame.h (trad_frame_unwind): Declare variable.
13776         (frame_id_unwind_ftype): Delete declaration.
13777         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13778         (struct frame_unwind): Declare opaque.
13779         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13780         register_unwind with a single unwind pointer.
13781         * frame-unwind.h, frame-unwind.c: New files.
13782         * Makefile.in (SFILES): Add frame-unwind.c.
13783         (frame_unwind_h): Define.
13784         (COMMON_OBS): Add frame-unwind.o.
13785         (frame-unwind.o): Specify dependencies.
13786         (frame.o, dummy-frame.o): Update dependencies.
13787
13788 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13789
13790         * ada-valprint.c: Eliminate PTR.
13791         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13792         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13793         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13794         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13795         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13796         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13797         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13798
13799 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
13800
13801         * main.c (captured_main): Don't use PTR.
13802         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13803         * gdbtypes.c (lookup_primitive_typename): Ditto.
13804         (lookup_struct_elt_type): Ditto.
13805         * f-valprint.c (info_common_command): Ditto.
13806         (list_all_visible_commons): Ditto.
13807         * jv-typeprint.c (java_type_print_base): Ditto.
13808
13809         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13810         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13811         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13812         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13813         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13814         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13815         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13816         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13817         * main.c (captured_main): Use xfree, not free.
13818
13819 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
13820
13821         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13822         ID back using a parameter.
13823         * frame.c (frame_id_unwind): Update call.
13824         (frame_saved_regs_id_unwind): Update.
13825         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13826         * dummy-frame.h (struct frame_id): Add opaque declaration.
13827         (dummy_frame_id_unwind): Update declaration.
13828
13829 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
13830
13831         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13832
13833 2003-01-15  Stephen P. Smith <ischis2@cox.net>
13834
13835         * MAINTAINERS (Stephen P. Smith): Updated email address.
13836
13837 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
13838
13839         Fix PR gdb/898
13840         * breakpoint.c (until_break_command): Add new argument.  Use it to
13841         decide whether to stop only at the current frame or not.
13842         * breakpoint.h (until_break_command): Update prototype.
13843         * infcmd.c (until_command): Add new argument to until_break_command
13844         call.
13845         (advance_command): New function.
13846         (_initialize_infcmd): Update help string for 'until' command.
13847         Add new 'advance' command.
13848
13849 2003-01-14  David Carlton  <carlton@math.stanford.edu>
13850
13851         * linespec.c (decode_line_1): Normalize comments.
13852         (set_flags): Ditto.
13853         (locate_first_half): Ditto.
13854         (decode_compound): Ditto.
13855         (symtab_from_filename): Ditto.
13856         (decode_all_digits): Ditto.
13857         (decode_dollar): Ditto.
13858         (find_methods): Ditto.
13859         (find_toplevel_char): Ditto.
13860
13861 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13862
13863         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13864         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13865         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13866         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13867         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13868         * language.c, language.h, m32r-tdep.c: Update copyright.
13869         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13870         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13871         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13872         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13873         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13874         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13875
13876 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13877
13878         * stabsread.h (process_later, resolve_cfront_continuation):
13879         Obsolete.
13880         Update copyright years.
13881         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13882         Update copyright year.
13883         * dbxread.c(struct cont_elem): Obsolete.
13884         (process_later, process_now): Obsolete functions.
13885         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13886         Update copyright year.
13887         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13888         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13889         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13890         (parse_partial_symbols): Obsolete cfront support.
13891         * stabsread.c
13892         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13893         macros.
13894         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13895         read_cfront_baseclasses, read_cfront_member_functions,
13896         resolve_cfront_continuation,read_cfront_static_fields,
13897         copy_cfront_struct_fields): Obsolete functions.
13898         (define_symbol, read_one_struct_field): Obsolete cfront support.
13899         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13900         Update Copyright year.
13901
13902 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13903
13904         * stack.c (print_frame_info, print_stack_frame_base_stub,
13905         print_stack_frame_base, show_and_print_stack_frame_stub,
13906         show_and_print_stack_frame, print_only_stack_frame_stub,
13907         print_only_stack_frame): Delete functions.
13908         (print_stack_frame_stub): Call print_frame_info instead of
13909         print_frame_info_base.
13910         (print_frame_info_base): Rename to print_frame_info.
13911         (backtrace_command_1): Call print_frame_info, instead of
13912         print_frame_info_base.
13913         (current_frame_command): Call print_stack_frame, instead of
13914         print_only_stack_frame.
13915         (frame_command): Call print_stack_frame, instead of
13916         show_and_print_stack_frame.
13917         (up_command): Ditto.
13918         (down_command): Ditto.
13919         * frame.h (print_only_stack_frame): Delete prototype.
13920         * infrun.c (normal_stop): Call print_stack_frame, instead of
13921         show_and_print_stack_frame.
13922         * thread.c (info_threads_command): Call print_stack_frame, instead
13923         of print_only_stack_frame.
13924
13925 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13926
13927         * README (Graphical interface to GDB): Update URL.  Point at
13928         gdb/links/.
13929
13930         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13931         version match.
13932
13933 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13934
13935         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13936         lines.
13937
13938 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13939
13940         * thread-db.c (attach_thread): Prototype.
13941         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
13942         thread information (ti), and valid flags (th_valid, ti_valid).
13943         (attach_thread): Move target_pid_to_str call to after the thread
13944         is added to GDB's list.  Initialize the cache.
13945         (thread_get_info_callback, thread_db_map_id2thr)
13946         (thread_db_get_info): New functions.
13947         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13948         (thread_db_store_registers, thread_db_thread_alive)
13949         (thread_db_get_thread_local_address): Use them.
13950         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
13951         of calling error() for threads in unknown state.
13952
13953         (clear_lwpid_callback): New function.
13954         (thread_db_resume): Use it to clear the cache.
13955
13956 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13957
13958         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13959         (resume_callback): Remove dead code.
13960
13961 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13962
13963         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13964         predicate.
13965         * gdbarch.h, gdbarch.c: Regenerate.
13966         * stack.c (frame_info): Only initialize the saved registers when
13967         FRAME_INIT_SAVED_REGS_P.
13968         * frame.c (frame_saved_regs_register_unwind): Assert
13969         FRAME_INIT_SAVED_REGS_P.
13970         (deprecated_generic_get_saved_register): Ditto.
13971
13972 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13973
13974         * source.c (openp): Squelch warning about "filename".
13975
13976 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13977
13978         * source.c (openp): If the file does not exist don't necessarily
13979         search the path.
13980
13981 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13982
13983         Fix PR gdb/872.
13984         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13985         (integer_types_same_name_p): New function.
13986         (rank_one_type): Use it.
13987         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13988
13989 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13990
13991         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13992         variables.
13993         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13994         * configure.in: Add --with-sysroot.
13995         * configure: Regenerated.
13996         * main.c (gdb_sysroot): New variable.
13997         (captured_main): Initialize gdb_sysroot.
13998         * defs.h (gdb_sysroot): New extern declaration.
13999         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14000
14001 2003-01-12  Michael Chastain  <mec@shout.net>
14002
14003         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14004
14005 2003-01-12  Michael Chastain  <mec@shout.net>
14006
14007         * top.c (print_gdb_version): Bump copyright year to 2003.
14008
14009 2003-01-12  David Carlton  <carlton@bactrian.org>
14010
14011         * linespec.c (symtab_from_filename): Rename variable 's' to
14012         'file_symtab'.
14013
14014 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14015
14016         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14017         dummy frame.
14018         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14019
14020 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14021
14022         * d10v-tdep.c: Include "gdb_assert.h".
14023         (d10v_store_return_value): Rewrite to match current interface.
14024         (d10v_extract_struct_value_address): Ditto.
14025         (d10v_extract_return_value): Ditto.
14026         (d10v_gdbarch_init): Set store_restore_value,
14027         extract_struct_value_address and extract_return_value.
14028
14029 2003-01-12  J. Brobecker  <brobecker@gnat.com>
14030
14031         * hpread.c (set_namestring): New procedure replacing the
14032         SET_NAMESTRING macro.
14033         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14034         by calls to set_namestring.
14035
14036 2003-01-11  J. Brobecker  <brobecker@gnat.com>
14037
14038         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14039         a compilation warning.
14040         (hpread_process_one_debug_symbol): Likewise.
14041
14042 2003-01-10  David Carlton  <carlton@math.stanford.edu>
14043
14044         * linespec.c (decode_line_1): Rename variable 's' to
14045         'file_symtab'.
14046         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14047         (decode_dollar): Ditto.
14048         (decode_variable): Ditto.
14049         (symbol_found): Ditto.
14050
14051 2003-01-09  Michael Chastain  <mec@shout.net>
14052
14053         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14054
14055 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
14056
14057         * win32-nat.c (set_process_privilege): New function.
14058         (child_attach): Call set_process_privilege() to enable the
14059         SE_DEBUG_NAME user privilege if available in process token.
14060
14061 2003-01-10  J. Brobecker  <brobecker@gnat.com>
14062
14063         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14064         compilation error in the previous revision.
14065
14066 2003-01-09  David Carlton  <carlton@math.stanford.edu>
14067
14068         * linespec.c: Update copyright.
14069
14070 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
14071
14072         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14073         than inferior_ptid.
14074         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14075
14076 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
14077
14078         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14079         Update comments.
14080         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14081         (frame_saved_regs_zalloc): Update.
14082         (frame_saved_regs_register_unwind): Update.
14083         (create_new_frame): Update.
14084         (get_prev_frame): Update.
14085         (frame_extra_info_zalloc): Update.
14086         (deprecated_get_frame_saved_regs): Update.
14087         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14088         * cris-tdep.c: Update comment.
14089
14090         * somsolib.h: Fix function indentation.
14091         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14092         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14093         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14094         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14095         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14096
14097         * infrun.c (follow_fork): Use ISO C definition.
14098         * expprint.c (print_subexp): Use xfree instead of free.
14099         * charset.c: Include "gdb_string.h" instead of <string.h>.
14100         (register_iconv_charsets): Use ISO C definition.
14101         (host_charset, target_charset): Ditto.
14102         * Makefile.in (charset.o): Update dependencies.
14103         (mi-cmd-env.o): Update dependencies.
14104
14105 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14106
14107         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14108         get_frame_base.
14109
14110 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14111
14112         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14113         build directories.  Save edited gdb output in Mbuild.log.  If a
14114         build fails, remove any final GDB executable.
14115
14116 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14117
14118         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14119         replacing hex constants with function names and stripping leading
14120         file name directory prefixes.
14121
14122 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14123
14124         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14125         get_frame_base.
14126
14127 2003-01-08  David Carlton  <carlton@math.stanford.edu>
14128
14129         * linespec.c (decode_line_1): Move code into decode_variable.
14130         (decode_variable): New function.
14131
14132 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14133
14134         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14135
14136 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14137
14138         * cris-tdep.c (cris_frame_init_saved_regs): Use
14139         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14140         saved_regs buffer.
14141         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14142         (sh64_nofp_frame_init_saved_regs): Ditto.
14143         (sh_fp_frame_init_saved_regs): Ditto.
14144         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14145         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14146         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14147         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14148
14149 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
14150
14151         * minsyms.c (lookup_minimal_symbol): Update comment.
14152         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14153         (lookup_minimal_symbol_solib_trampoline): Likewise.
14154
14155 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14156
14157         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14158         frame_relative_level.
14159
14160         * alpha-tdep.c: Use get_frame_extra_info.
14161         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14162         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14163         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14164         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14165
14166         * alpha-tdep.c: Use get_next_frame.
14167         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14168         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14169         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14170         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14171         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14172         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14173         * xstormy16-tdep.c: Ditto.
14174
14175 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14176
14177         * alpha-tdep.c: Use get_frame_base.
14178         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14179         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14180         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14181         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14182         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14183         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14184         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14185         * config/sparc/tm-sparc.h: Ditto.
14186
14187 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14188
14189         * frame.c (deprecated_get_frame_context): New function.
14190         (deprecated_set_frame_context): New function.
14191         * frame.h (deprecated_get_frame_context): Declare.
14192         (deprecated_set_frame_context): Declare.
14193         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14194         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14195
14196 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14197
14198         * frame.c (deprecated_set_frame_next_hack): New function.
14199         (deprecated_set_frame_prev_hack): New function.
14200         * frame.h (deprecated_set_frame_next_hack): Declare.
14201         (deprecated_set_frame_prev_hack): Declare.
14202         * mcore-tdep.c (analyze_dummy_frame): Use
14203         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14204         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14205
14206 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14207
14208         * linespec.c (decode_line_1): Move code into decode_dollar.
14209         (decode_dollar): New function.
14210
14211 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14212
14213         * arm-tdep.c (arm_init_extra_frame_info): Use
14214         deprecated_update_frame_base_hack.
14215         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14216         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14217         (fix_frame_pointer): Ditto.
14218         (mn10300_analyze_prologue): Ditto.
14219
14220 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14221
14222         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14223         extra_info using frame_extra_info_zalloc.
14224         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14225         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14226         (sh64_init_extra_frame_info): Ditto.
14227         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14228         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14229         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14230         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14231         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14232         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14233         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14234         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14235         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14236         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14237         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14238         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14239
14240         * mn10300-tdep.c (analyze_dummy_frame): Use
14241         deprecated_set_frame_extra_info_hack.
14242         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14243
14244 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14245
14246         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14247         class is not scText. These do not define "real" procedures.
14248         (parse_partial_symbols): Likewise.
14249
14250 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14251
14252         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14253
14254 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14255
14256         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14257         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14258         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14259         deprecated_frame_xmalloc_with_cleanup.
14260         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14261         deprecated_frame_xmalloc.
14262         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14263         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14264
14265 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14266
14267         * x86-64-linux-tdep.c: Include "osabi.h".
14268         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14269
14270         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14271
14272 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14273
14274         * MAINTAINERS (Target Instruction Set Architectures): Update
14275         arm-elf.  Can be built with -Werror, has been multiarched.
14276
14277         * value.h (unpack_long): Make buffer parameter constant.
14278         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14279         * scm-lang.h (scm_parse): Ditto.
14280         * defs.h (extract_typed_address, extract_address): Ditto.
14281         (extract_long_unsigned_integer): Ditto.
14282         * inferior.h (unsigned_pointer_to_address): Ditto.
14283         (signed_pointer_to_address): Ditto.
14284         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14285         * gdbarch.h, gdbarch.c: Regenerate.
14286         * findvar.c (extract_long_unsigned_integer): Update.
14287         (extract_address): Update.
14288         (extract_typed_address): Update.
14289         (unsigned_pointer_to_address): Update.
14290         * values.c (unpack_long): Update.
14291         (unpack_double): Update.
14292         (unpack_pointer): Update.
14293         (unpack_field_as_long): Update.
14294         * d10v-tdep.c (d10v_pointer_to_address): Update.
14295         * avr-tdep.c (avr_pointer_to_address): Update.
14296         * scm-lang.c (scm_unpack): Update.
14297         * findvar.c (signed_pointer_to_address): Update.
14298
14299 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14300
14301         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14302         since it is in i386-tdep.c.
14303
14304 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14305
14306         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14307         failure introduced in the previous change.
14308
14309 2003-01-05  Michael Chastain  <mec@shout.net>
14310
14311         * README: Remove references to deleted remote-*.c files:
14312         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14313         remote-nrom.c, remote-os9k.c, remote-udi.c.
14314
14315 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14316
14317         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14318         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14319         i386_get_longjmp_target.
14320
14321 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14322
14323         * arm-tdep.c (prologue_cache): Change to a pointer.
14324         (_initialize_arm_tdep): Allocate prologue_cache.
14325         (check_prologue_cache): Update.
14326         (save_prologue_cache): Update.
14327         (arm_gdbarch_init): Update.
14328
14329 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14330
14331         * stabsread.c (update_method_name_from_physname): Call complaint()
14332         instead of error.
14333
14334 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14335
14336         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14337         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14338         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14339
14340         * blockframe.c: Include "gdbcmd.h" and "command.h".
14341         (backtrace_below_main): New variable.
14342         (file_frame_chain_valid, func_frame_chain_valid)
14343         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14344         (generic_func_frame_chain_valid): Remove functions.
14345         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14346         (_initialize_blockframe): New function.
14347         * Makefile.in (blockframe.o): Update dependencies.
14348         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14349         comment.  Call frame_chain_valid ().
14350         * frame.h: Remove old prototypes.  Add prototype for
14351         frame_chain_valid and update comments to match.
14352         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14353         Remove old comment.
14354         * gdbarch.h: Regenerated.
14355         * gdbarch.c: Regenerated.
14356
14357         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14358         set_gdbarch_frame_chain_valid.
14359         * avr-tdep.c (avr_gdbarch_init): Likewise.
14360         * cris-tdep.c (cris_gdbarch_init): Likewise.
14361         * frv-tdep.c (frv_gdbarch_init): Likewise.
14362         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14363         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14364         (i386_nw_init_abi): Likewise.
14365         (i386_gdbarch_init): Likewise.
14366         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14367         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14368         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14369         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14370         * mips-tdep.c (mips_gdbarch_init): Likewise.
14371         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14372         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14373         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14374         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14375         * s390-tdep.c (s390_gdbarch_init): Likewise.
14376         * sh-tdep.c (sh_gdbarch_init): Likewise.
14377         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14378         * v850-tdep.c (v850_gdbarch_init): Likewise.
14379         * vax-tdep.c (vax_gdbarch_init): Likewise.
14380         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14381
14382         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14383         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14384         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14385         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14386         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14387         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14388         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14389         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14390
14391 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14392
14393         * Makefile.in (acconfig_h): Remove incorrect macro.
14394         (config_h): Define.
14395         (osabi.o): Update dependencies.
14396         * configure.tgt: Set gdb_osabi based on target triplet.
14397         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14398         * configure: Regenerated.
14399         * config.in: Regenerated.
14400         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14401         (GDB_OSABI_DEFAULT): Define if not already defined.
14402         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14403         (set_osabi_string): New variables.
14404         (gdbarch_register_osabi): Add new OS ABI to
14405         gdb_osabi_available_names.
14406         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14407         (set_osabi, show_osabi): New functions.
14408         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14409
14410 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14411
14412         * arch-utils.c (gdbarch_info_init): Set osabi to
14413         GDB_OSABI_UNINITIALIZED.
14414         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14415         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14416         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14417         * gdbarch.c: Regenerated.
14418         * gdbarch.h: Regenerated.
14419         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14420         there's no BFD.
14421         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14422         * osabi.h (enum gdb_osabi): Move to defs.h.
14423         (gdbarch_init_osabi): Update prototype.
14424         * defs.h (enum gdb_osabi): Moved here.
14425         * Makefile.in: Update dependencies.
14426
14427         * alpha-tdep.h: Don't include "osabi.h".
14428         (struct gdbarch_tdep): Remove osabi member.
14429         * alpha-tdep.c: Include "osabi.h".
14430         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14431         iterate over arches.  Update call to gdbarch_init_osabi.
14432         (alpha_dump_tdep): Don't dump osabi.
14433         * alpha-linux-tdep.c: Include "osabi.h".
14434         * alpha-osf1-tdep.c: Include "osabi.h".
14435         * alphafbsd-tdep.c: Include "osabi.h".
14436         * alphanbsd-tdep.c: Include "osabi.h".
14437
14438         * arm-tdep.h: Don't include "osabi.h".
14439         (struct gdbarch_tdep): Remove osabi member.
14440         * arm-tdep.c: Include "osabi.h".
14441         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14442         iterate over arches.  Update call to gdbarch_init_osabi.
14443         (arm_dump_tdep): Don't dump osabi.
14444         * arm-linux-tdep.c: Include "osabi.h".
14445         * armnbsd-tdep.c: Include "osabi.h".
14446
14447         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14448         Update call to gdbarch_init_osabi.
14449
14450         * i386-tdep.h: Don't include "osabi.h".
14451         (struct gdbarch_tdep): Remove osabi member.
14452         * i386-tdep.c: Include "osabi.h".
14453         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14454         iterate over arches.  Update call to gdbarch_init_osabi.
14455         (i386_dump_tdep): Don't dump osabi.
14456         * i386-linux-tdep.c: Include "osabi.h".
14457         * i386-sol2-tdep.c: Include "osabi.h".
14458         * i386bsd-tdep.c: Include "osabi.h".
14459         * i386gnu-tdep.c: Include "osabi.h".
14460         * i386ly-tdep.c: Include "osabi.h".
14461         * i386nbsd-tdep.c: Include "osabi.h".
14462         * i386obsd-tdep.c: Include "osabi.h".
14463
14464         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14465         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14466         check osabi when iterating over arches.  Update call to
14467         gdbarch_init_osabi.
14468         (mips_dump_tdep): Don't dump osabi.
14469
14470         * ns32k-tdep.h: Don't include "osabi.h".
14471         (struct gdbarch_tdep): Remove.
14472         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14473         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14474         allocate tdep.  Update call to gdbarch_init_osabi.
14475         (ns32k_dump_tdep): Remove.
14476         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14477         * ns32knbsd-tdep.c: Include "osabi.h".
14478
14479         * ppc-tdep.h: Don't include "osabi.h".
14480         (struct gdbarch_tdep): Remove osabi member.
14481         * rs6000-tdep.c: Include "osabi.h".
14482         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14483         osabi when iterating over arches.  Update call to
14484         gdbarch_init_osabi.
14485         (rs6000_dump_tdep): Don't dump osabi.
14486         * ppc-linux-tdep.c: Include "osabi.h".
14487         * ppcnbsd-tdep.c: Include "osabi.h".
14488
14489         * sh-tdep.h: Don't include "osabi.h".
14490         (struct gdbarch_tdep): Remove osabi member.
14491         * sh-tdep.c: Include "osabi.h".
14492         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14493         iterate over arches.  Update call to gdbarch_init_osabi.
14494         (sh_dump_tdep): Don't dump osabi.
14495         * shnbsd-tdep.c: Include "osabi.h".
14496
14497         * sparc-tdep.c: Include "osabi.h".
14498         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14499         iterate over arches.  Update call to gdbarch_init_osabi.
14500         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14501         tdep structure.
14502
14503         * vax-tdep.h: Don't include "osabi.h".
14504         (struct gdbarch_tdep): Remove.
14505         * vax-tdep.c: Include "osabi.h".
14506         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14507         iterate over arches.  Don't allocate tdep.  Update call
14508         to gdbarch_init_osabi.
14509         (vax_dump_tdep): Remove.
14510         (_initialize_vax_tdep): Update call to gdbarch_register.
14511
14512 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14513
14514         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14515         entirely.
14516         (breakpoint_re_set_one): Don't fetch the value for a disabled
14517         watchpoint.
14518
14519 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14520
14521         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14522         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14523         (COERCE_FLOAT_TO_DOUBLE): Remove.
14524         * gdbarch.c: Regenerate.
14525         * gdbarch.h: Regenerate.
14526         * Makefile.in: Remove value_h from gdbarch_h.
14527         * valops.c (coerce_float_to_double): New variable.
14528         (default_coerce_float_to_double): Remove.
14529         (standard_coerce_float_to_double): Remove.
14530         (value_arg_coerce): Use coerce_float_to_double.
14531         (_initialize_valops): Add "set coerce-float-to-double".
14532         * value.h (default_coerce_float_to_double): Remove prototype.
14533         (standard_coerce_float_to_double): Remove prototype.
14534
14535         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14536         prototyped.
14537         * mdebugread.c (parse_symbol): Likewise.
14538         * stabsread.c (define_symbol): Mark all functions as prototyped.
14539
14540         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14541         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14542         set_gdbarch_coerce_float_to_double.
14543         * arm-tdep.c (arm_gdbarch_init): Likewise.
14544         * frv-tdep.c (frv_gdbarch_init): Likewise.
14545         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14546         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14547         * mips-tdep.c (mips_gdbarch_init): Likewise.
14548         (mips_coerce_float_to_double): Remove.
14549         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14550         (rs6000_coerce_float_to_double): Remove.
14551         * s390-tdep.c (s390_gdbarch_init): Likewise.
14552         * sh-tdep.c (sh_gdbarch_init): Likewise.
14553         (sh_coerce_float_to_double): Remove.
14554         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14555         (sparc_coerce_float_to_double): Remove.
14556         * v850-tdep.c (v850_gdbarch_init): Likewise.
14557         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14558         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14559         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14560         (hppa_coerce_float_to_double): Remove prototype.
14561         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14562
14563 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14564
14565         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14566
14567 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14568
14569         Suggested by Stewart Brown <sb24@avaya.com>:
14570         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14571         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14572         (c_type_print_varspec_suffix): Likewise.
14573
14574 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14575
14576         * configure.in: Don't set and AC_SUBST SUBDIRS.
14577         * configure: Regenerated.
14578
14579         * configure.in: Remove code dealing with shared libraries.
14580         * Makefile.in: Remove HLDFLAGS and HLDENV.
14581         * configure: Regenerated.
14582
14583 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14584
14585         * frame.c (deprecated_frame_xmalloc): New function.
14586         (deprecated_set_frame_saved_regs_hack): New function.
14587         (deprecated_set_frame_extra_info_hack): New function.
14588         * frame.h (deprecated_frame_xmalloc): Declare.
14589         (deprecated_set_frame_saved_regs_hack): Declare.
14590         (deprecated_set_frame_extra_info_hack): Declare.
14591
14592 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14593
14594         * configure.in: Move code that provides the --enable-gdbtk option
14595         right after the code that handles the --enable-tui option, and
14596         polish it somewhat.
14597         * configure: Regenerated.
14598
14599         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14600         AC_CHECK_FUNCS and remove the old check for pread64.
14601         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14602         * acconfig.h (_GNU_SOURCE): Add.
14603         (HAVE_PREAD64): Remove.
14604         * configure, aclocal.m4, config.in: Regenerated.
14605
14606 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
14607
14608         * alpha-tdep.c: Use get_frame_saved_regs.
14609         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14610         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14611         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14612         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14613         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14614
14615 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14616
14617         * configure.in: Remove all use of the SUBDIRS variable; add
14618         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14619         code providing the --enable-multi-ice option, and move it right in
14620         front of the code that checks whether gdbserver is supported.
14621         Polish that too.
14622         * configure: Regenerated.
14623         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14624         @SUBDIRS@.
14625
14626 2003-01-03  Andrew Cagney  <cagney@redhat.com>
14627
14628         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14629         * avr-tdep.c, cris-tdep.c: Ditto.
14630         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14631         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14632
14633 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14634
14635         * configure.in: Remove --enable-netrom option.
14636         * configure: Regenerated.
14637
14638 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14639
14640         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14641         declaration for `struct re_pattern_buffer' instead.
14642         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14643
14644 2003-01-03  J. Brobecker  <brobecker@gnat.com>
14645
14646         * mdebugread.c (parse_symbol): Count until the stEnd matching
14647         the structure name.
14648
14649 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14650
14651         * configure.in: Remove --with-cpu option.
14652         subscripts.  Remove evil changequotes here.
14653         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14654         * config.in, configure: Regenerated.
14655
14656         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14657         * configure.in: Cleanup section that sources GDB and BFD configure
14658         subscripts.  Remove evil changequotes here.
14659         * config.in, configure: Regenerated.
14660
14661 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14662
14663         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14664         frame accessor methods.
14665         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14666         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14667         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14668         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14669         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14670         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14671         * z8k-tdep.c: Ditto.
14672
14673 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14674
14675         * configure.in: Remove UI_OUT configuration code.
14676         * ada-lang.c: Update assuming UI_OUT is always true.
14677         * Makefile.in (UIOUT_CFLAGS): Remove.
14678         * configure: Regenerated.
14679         * TODO: Remove blurb about elimination of -DUI_OUT.
14680
14681         * configure.in: Move code that provides the --enable-gdbcli,
14682         --enable-gdbmi options right before the code that handles the
14683         --enable-tui option.  Polish a bit.
14684         * configure: Regenerated.
14685
14686         * configure.in: Rewrite check for GNU regex and the
14687         --without-included regex option, and move it into the "Checks for
14688         library functions" section.  This makes us use the system regex
14689         again by default on systems with version 2 of the GNU C library.
14690         This was apparently broken.
14691         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14692         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14693         * config.in, configure: Regenerated.
14694
14695         * configure.in: Move code that provides the --enable-tui option
14696         before the "Checks for libraries" section.  Polish the code
14697         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14698         code that looks for a library providing termcap functionality to
14699         match more closely what's done in the Readline library, and move
14700         it into to the "Checks for libraries" section.
14701         * configure: Regenerated.
14702         * Makefile.in (TERMCAP): Remove variable.
14703         * config/i386/go32.mh (TERMCAP): Remove variable.
14704
14705 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14706
14707         * MAINTAINERS: Mention gdb_mbuild.sh.
14708         * gdb_mbuild.sh: Rewrite.
14709
14710 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14711
14712         * configure.in: Fix typo in last change.
14713         * config.in, configure: Regenerated.
14714
14715 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14716
14717         * valarith.c (value_binop): Delete obsolete code and comments.
14718         * configure.host: Ditto.
14719         * buildsym.h (make_blockvector): Ditto.
14720         * buildsym.c (make_blockvector): Ditto.
14721         * defs.h (enum language): Ditto.
14722         (chill_demangle): Ditto.
14723         * elfread.c (elf_symtab_read): Ditto.
14724         * dwarfread.c (CHILL_PRODUCER): Ditto.
14725         (set_cu_language): Ditto.
14726         (handle_producer): Ditto.
14727         * expprint.c (print_subexp): Ditto.
14728         * gdbtypes.c (chill_varying_type): Ditto.
14729         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14730         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14731         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14732         (chill_varying_type): Ditto.
14733         * language.h (_LANG_chill): Ditto.
14734         * language.c (binop_result_type, integral_type): Ditto.
14735         (character_type, string_type, structured_type): Ditto.
14736         (lang_bool_type, binop_type_check): Ditto.
14737         * stabsread.h (os9k_stabs): Ditto.
14738         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14739         (define_symbol, read_type, read_struct_fields): Ditto.
14740         (read_array_type, read_enum_type, read_huge_number): Ditto.
14741         (read_range_type, start_stabs): Ditto.
14742         * symfile.c (init_filename_language_table): Ditto.
14743         (add_psymbol_with_dem_name_to_list): Ditto.
14744         * symtab.c (symbol_init_language_specific): Ditto.
14745         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14746         * symtab.h (struct general_symbol_info): Ditto.
14747         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14748         * typeprint.c (typedef_print): Ditto.
14749         * utils.c (fprintf_symbol_filtered): Ditto.
14750         * valops.c (value_cast, search_struct_field, value_slice): Delete
14751         obsolete code.
14752         (varying_to_slice): Delete function.
14753         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14754         (varying_to_slice): Delete declaration.
14755         * MAINTAINERS: Update.
14756
14757 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14758
14759         * configure.in: Reorganize "Checks for library functions section"
14760         a bit.  Remove check for `btowc' and `isascii' functions.
14761         * configure: Regenerated.
14762
14763         * acconfig.h (_MSE_INT_H): Remove.
14764         * configure.in: Create "Checks for header files" section, and move
14765         appropriate tests there.  Don't check for objlist.h, wchar.h,
14766         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14767         misdetection fix.  Also add "Checks for types", "Checks for
14768         compiler characteristics" and "Checks for library functions"
14769         sections.
14770         * config.in, configure: Regenerated.
14771
14772         * configure.in: Create "Checks for programs" section, and move
14773         appropriate tests there.
14774
14775 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
14776
14777         * configure.in: Create "Checks for libraries" section, and move
14778         appropriate tests there.  Cleanup check for wctype in libw.  Use
14779         AC_SEARCH_LIBS to see whether we need libsocket.
14780         * configure: Regenerated.
14781
14782 For older changes see ChangeLog-2002
14783 \f
14784 Local Variables:
14785 mode: change-log
14786 left-margin: 8
14787 fill-column: 74
14788 version-control: never
14789 End: