]> Git Repo - binutils.git/blob - gdb/ChangeLog
* dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
[binutils.git] / gdb / ChangeLog
1 2003-11-19  Daniel Jacobowitz  <[email protected]>
2
3         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
4         (frame_base_offset): Delete.
5         (read_func_scope): Delete call to decode_locdesc.
6         (decode_locdesc): Update comments.  Don't set the removed variables.
7         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
8         DW_OP_fbreg support.
9
10 2003-11-18  Daniel Jacobowitz  <[email protected]>
11
12         * dwarf2read.c (optimized_out, islocal): Remove.
13         (decode_locdesc): Update comments.  Don't set optimized_out
14         or islocal.
15
16 2003-11-17  Jeff Johnston  <[email protected]>
17             David Mosberger  <[email protected]>
18
19         * ia64-tdep.c: Include elf.h.
20         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and 
21         libunwind-ia64.h.
22         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
23         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
24         (ia64_is_fpreg, ia64_access_reg): Ditto.
25         (ia64_access_fpreg, ia64_access_mem): Ditto.
26         (get_kernel_table): Ditto.
27         (ia64_find_unwind_table): Ditto.
28         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
29         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
30         (ia64_libunwind_frame_prev_register): Ditto.
31         (ia64_libunwind_frame_sniffer): Ditto.
32         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
33         sniffer.  Register libunwind functions needed by generic 
34         libunwind frame code using libunwind_frame_set_descr(). 
35
36 2003-11-16  Daniel Jacobowitz  <[email protected]>
37
38         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
39         bp_shlib_disabled breakpoint if there is a shared library mapped
40         at its expected address.
41
42 2003-11-16  Andrew Cagney  <[email protected]>
43
44         * configure.tgt: Delete mips*tx39*-elf*.
45         * config/mips/tm-tx39.h: Delete file.
46         * config/mips/tx39.mt: Delete file.
47         * config/mips/tx39.mt: Delete file.
48
49         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
50         * remote-mips.c (common_open): Instead of
51         "mips_read_register_type" and "mips_set_processor_type_command"
52         call "deprecated_mips_set_processor_regs_hack".
53         * config/mips/tm-mips.h (mips_read_processor_type): Delete
54         declaration.
55         (mips_set_processor_type_command): Delete declaration.
56         * mips-tdep.c (mips_gdbarch_init): Update comment.
57         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
58         (mips_set_processor_type): Delete function.
59         (NUM_MIPS_PROCESSOR_REGS): Define.
60         (mips_show_processor_type_command): Delete function.
61         (mips_set_processor_type_command): Delete function.
62         (tmp_mips_processor_type): Delete.
63         (mips_processor_type): Delete.
64         (mips_processor_type_table): Delete.
65         (mips_r3051_reg_names): Delete.
66         (mips_r3081_reg_names): Delete.
67         (mips_lsi33k_reg_names): Delete.
68         (mips_processor_reg_names): Delete.
69         (mips_read_processor_type): Delete function.
70         (deprecated_mips_set_processor_regs_hack): New function.
71         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
72         (mips_register_name): Get the processor names from the tdep.
73         (mips_tx39_reg_names): New array.
74         (mips_generic_reg_names): Wire to a standard set of names.
75         (mips_gdbarch_init): Set "mips_processor_reg_names".    
76         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
77         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
78         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
79
80 2003-11-16  Andrew Cagney  <[email protected]>
81
82         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
83         (mips_fpa0_regnum, mips_regnum): New function.
84         (mips_gdbarch_init): Fill in the "regnum" fields.
85         * mips-tdep.h (struct mips_regnum): Define.
86         (mips_regnum): Declare.
87         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
88         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
89         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
90         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
91         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
92         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
93         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
94         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
95         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
96         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
97         * remote-mips.c: Include "mips-tdep.h".  Update.
98         * mipsnbsd-tdep.c: Update.
99         * mipsv4-nat.c: Update.
100         * mips-tdep.c: Update.
101         * mips-nat.c: Update.
102         * mips-linux-tdep.c: Update.
103         * mips-linux-nat.c: Update.
104         * irix5-nat.c: Update.
105         * dve3900-rom.c: Include "mips-tdep.h".  Update.
106         (ignore_packet): Supress GCC warning.
107         * config/mips/nm-riscos.h: Update.
108
109 2003-11-16  Andrew Cagney  <[email protected]>
110
111         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
112         register_size.
113         (mips_register_raw_size): Delete function.
114         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
115         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
116         Check and set "mips64_transfers_32bit_regs_p".
117         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
118         (mips_register_convertible): Check the architecture's
119         "mips64_transfers_32bit_regs_p".
120         (set_mips64_transfers_32bit_regs): New function.
121         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
122         "set remote-mips64-transfers-32bit-regs" command.  Specify
123         set_mips64_transfers_32bit_regs as the set function.
124         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
125
126 2003-11-16  Mark Kettenis  <[email protected]>
127
128         * i386-tdep.h (i386_supply_gregset): Provide prototype.
129         * i386-tdep.c (i386_supply_gregset): Make public.
130
131 2003-11-16  Andrew Cagney  <[email protected]>
132
133         * mips-tdep.c (mips_register_byte): Delete function.
134         (mips_gdbarch_init): Do not set "deprecated_register_byte".
135         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
136         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
137         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
138
139 2003-11-16  Mark Kettenis  <[email protected]>
140
141         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
142
143 2003-11-16  Andrew Cagney  <[email protected]>
144
145         * config/mips/linux64.mt: Delete file.
146         * config/mips/tm-linux64.h: Delete file.
147         * config/mips/tm-mips64.h: Delete file.
148         * config/mips/embed64.mt: Delete file.
149         * config/djgpp/fnchange.lst: Update.
150         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
151         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
152         * config/mips/tm-irix6.h: Update copyright.  Include
153         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
154         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
155         "OP_LDGPR".
156
157 2003-11-15  Andrew Cagney  <[email protected]>
158
159         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
160         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
161         n32 registers 64 bit.
162         (mips_register_raw_size, mips_register_byte): For pseudo
163         registers, use the register's pseudo size and not the
164         corresponding raw register's size.
165         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
166         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
167         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
168         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
169
170 2003-11-15  Andrew Cagney  <[email protected]>
171
172         * mips-tdep.c (struct gdbarch_tdep): Delete member
173         gdb_target_is_mips64.
174         (GDB_TARGET_IS_MIPS64): Delete macro.
175         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
176         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
177         (mips_addr_bits_remove): Simplify.
178
179         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
180         register_size.
181
182         Replace MIPS_REGSIZE with mips_regsize.
183         * mips-tdep.c (mips_regsize): New function.
184         * mips-tdep.h (mips_regsize): Declare.
185         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
186         (SIZEOF_STRUCT_REG): Update.
187         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
188         (mipsnbsd_fill_reg): Update.
189         (mipsnbsd_supply_fpreg): Update.
190         (mipsnbsd_fill_fpreg): Update.
191         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
192         * mips-tdep.c (mips_register_raw_size): Update.
193         (mips_register_type): Update.
194         (SIGFRAME_BASE): Update.
195         (SIGFRAME_PC_OFF): Update.
196         (SIGFRAME_REGSAVE_OFF): Update.
197         (SIGFRAME_FPREGSAVE_OFF): Update.
198         (SIGFRAME_REG_SIZE): Update.
199         (mips32_heuristic_proc_desc): Update.
200         (print_gp_register_row): Update.
201         (mips_dump_tdep): Do not print MIPS_REGSIZE.
202         * irix5-nat.c (supply_gregset): Update.
203         (fetch_core_registers): Update.
204         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
205         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
206         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
207         (MIPS_REGISTER_BYTE): Update.
208         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
209
210 2003-11-15  Andrew Cagney  <[email protected]>
211
212         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
213         USE_REGISTER_NOT_ARG.
214         * stabsread.c (define_symbol): Update.
215
216 2003-11-15  Andrew Cagney  <[email protected]>
217
218         * bcache.h (deprecated_bcache): Declare.
219         (bcache): Make returned buffer constant.
220         * bcache.c (deprecated_bcache): New function.
221         (bcache_data): New function.
222         (bcache): Call bcache data.
223         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
224         (add_psymbol_with_dem_name_to_list): Ditto.
225
226 2003-11-15  Mark Kettenis  <[email protected]>
227
228         * glibc-tdep.h (struct gdbarch): Declare opaque.
229         (glibc_skip_solib_resolver): Adjust prototype.
230         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
231         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
232         (arm_linux_init_abi): Set skip_solib_resolver.
233         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
234         (i386_linux_init_abi): Set skip_solib_resolver.
235         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
236         (arm_linux_skip_solib_resolver): Remove prototype.
237         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
238         (i386_linux_skip_solib_resolver): Remove prototype.
239
240 2003-11-14  Mark Kettenis  <[email protected]>
241
242         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
243         function.
244         * gdbarch.c, gdbarch.h: Regenerate.
245         * infrun.c (handle_inferior_event): Call
246         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
247         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
248         definition.
249         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
250         prototype.
251
252 2003-11-14  Jeff Johnston  <[email protected]>
253
254         * libunwind-frame.c: New file.
255         * libunwind-frame.h: New file.
256         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
257         * configure.in: Add --with-libunwind option support.  Define
258         HAVE_LIBUNWIND if libunwind support selected / defaulted.  
259         Also check for libunwind.h and libunwind-ia64.h headers.
260         * configure: Regenerated.
261         * Makefile.in: Add support for libunwind-frame.o.
262         * config.in: Regenerated.
263
264 2003-11-14  Jeff Johnston  <[email protected]>
265  
266         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
267         set up the ia64 linux native target method for getting the kernel
268         unwind table.
269         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
270         * inftarg.c (child_xfer_partial): Enable section of code to
271         handle TARGET_OBJECT_UNWIND_TABLE.
272         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
273
274 2003-11-14  Ian Lance Taylor  <[email protected]>
275
276         * config/arm/nbsd.mt (TM_FILE): Define.
277         * config/arm/tm-nbsd.h: New file.
278
279 2003-11-14  Andrew Cagney  <[email protected]>
280
281         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
282         * ppc-sysv-tdep.c: Include "objfiles.h".
283         (ppc64_sysv_abi_push_dummy_call): Provide the
284         the FN's objfile when looking for the descriptor.
285
286         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
287         "name_of_malloc" to ".malloc".
288
289 2003-11-13  Mark Kettenis  <[email protected]>
290
291         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
292
293 2003-11-13  David Carlton  <[email protected]>
294
295         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
296
297 2003-11-13  Andrew Cagney  <[email protected]>
298
299         * arch-utils.h (selected_architecture_name): Declare.
300         (selected_byte_order): Declare.
301         * arch-utils.c (selected_byte_order): New function.
302         (selected_architecture_name): New function.
303         (target_architecture_auto): Make static.
304         (set_architecture_string): Make static.
305         (target_byte_order): Make static.
306         (target_byte_order_auto): Make static.
307         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
308         non-multi-arch definition.
309         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
310         (target_byte_order, target_architecture): Delete declaration.
311         (target_byte_order_auto, target_architecture_auto): Ditto.
312         * gdbarch.h: Re-generate.
313         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
314         "selected_byte_order".
315         
316 2003-11-13  Andrew Cagney  <[email protected]>
317
318         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
319
320 2003-11-13  Jim Blandy  <[email protected]>
321
322         * cp-namespace.c: Doc fix.
323
324 2003-11-12  Michael Snyder  <[email protected]>
325
326         * sh64_tdep.c: Regularize some names.
327         (sh_sh64_register_name): Rename to sh64_register_name.
328         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
329         (sh_sh64_register_byte): Rename to sh64_register_byte.
330         (sh_sh64_build_float_register_type): 
331         Rename to sh64_build_float_register_type.
332         (sh_sh64_register_convert_to_virtual): 
333         Rename to sh64_register_convert_to_virtual.
334         (sh_sh64_register_convert_to_raw): 
335         Rename to sh64_register_convert_to_raw.
336
337         * sh64-tdep.c (translate_insn_rn, is_media_pseudo, 
338         sh64_media_reg_base_num, sh64_compact_reg_base_num, 
339         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
340         sh64_extract_return_value, sh64_show_media_regs, 
341         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type, 
342         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
343         sh64_pseudo_register_read, sh64_pseudo_register_write, 
344         sh64_do_pseudo_register, sh_compact_print_registers_info):
345         Delete unused variable 'tdep'.
346
347         * sh64-tdep.c: Coding standard and spelling comment fixes.
348         (sh64_extract_return_value): Replace deprecated_store_floating
349         with store_typed_floating.
350         (sh_sh64_register_convert_to_raw): Replace 
351         deprecated_store_floating with store_typed_floating.
352         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
353         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
354         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
355         sh64_extract_struct_value_address, sh64_pop_frame, 
356         sh64_extract_return_value, sh64_store_return_value,
357         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read, 
358         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
359         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
360         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
361         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
362         deprecated_register_virtual_type, deprecated_register_raw_size,
363         deprecated_max_register_raw_size, or 
364         deprecated_max_register_virtual_size.  Instead, just set
365         gdbarch_register_type.
366         (sh_sh64_register_raw_size): Delete.
367         (sh_sh64_register_virtual_size): Delete.
368
369 2003-11-12  Daniel Jacobowitz <[email protected]>
370
371         * dwarf2read.c (struct dwarf2_cu): New type.
372
373         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
374         dwarf2_cu structure to pass down.
375
376         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
377         (add_partial_enumeration, locate_pdi_sibling, process_die)
378         (read_file_scope, read_func_scope)
379         (read_lexical_block_scope, dwarf2_get_pc_bounds)
380         (dwarf2_add_field, dwarf2_attach_fields_to_type)
381         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
382         (read_structure_scope, read_enumeration, read_array_type)
383         (read_common_block, read_namespace, read_tag_pointer_type)
384         (read_tag_ptr_to_member_type, read_tag_reference_type)
385         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
386         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
387         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
388         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
389         (read_full_die. read_attribute_value, read_attribute)
390         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
391         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
392         (die_containing_type, type_at_offset, tag_type_to_type)
393         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
394         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
395
396 2003-11-12  Daniel Jacobowitz  <[email protected]>
397
398         PR breakpoints/1450
399         * breakpoint.c (insert_bp_location): Fix a logic error by returning
400         0 after a catchpoint fails.
401
402 2003-11-11  Michael Chastain  <[email protected]>
403
404         * mips-tdep.c (msymbol_size): Delete.
405
406 2003-11-07  Michael Chastain  <[email protected]>
407
408         * symtab.h (struct minimal_symbol): Add size.
409         * dbxread.c: Use it.
410         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
411         Rename to record_minimal_symbol.
412         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
413         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
414         (install_minimal_symbols): Ditto.
415         * objfiles.c (terminate_minimal_symbol_table): Ditto.
416         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
417         * m68hc11-tdep.c: Ditto.
418         * mips-tdep.c: Ditto.
419         * sh64-tdep.c: Ditto.
420
421 2003-11-10  Michael Chastain  <[email protected]>
422
423         * MAINTAINERS: Change my e-mail address.
424
425 2003-11-10  Andrew Cagney  <[email protected]>
426
427         * gdbarch.sh (return_value): Replace "inval" and "outval" with
428         "readbuf" and "writebuf".
429         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
430         * d10v-tdep.c (d10v_return_value): Ditto.
431         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
432         (ppc_sysv_abi_broken_return_value): Ditto.
433         (ppc64_sysv_abi_return_value): Ditto.
434         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
435         (ppc_sysv_abi_return_value): Ditto.
436         (ppc_sysv_abi_broken_return_value): Ditto.
437         (ppc64_sysv_abi_return_value): Ditto.
438         * values.c (register_value_being_returned): Update call.
439         * stack.c (return_command): Update call.
440         * gdbarch.h, gdbarch.c: Re-generate.
441
442         * target.h (struct target_ops): Order xfer buffer parameters "read
443         write" not "write read".
444         * bfd-target.c (target_bfd_xfer_partial): Update.
445         * remote.c (remote_xfer_partial): Update.
446         * inftarg.c (child_xfer_partial): Update.
447         * target.c (default_xfer_partial): Update.
448         (target_read_partial, target_write_partial): Update.
449         (debug_to_xfer_partial): Update.
450
451         * arch-utils.h, arch-utils.c: Fix typo in comment.
452
453         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
454         (gdbarch_from_bfd): Call gdbarch_find_by_info.
455         (set_gdbarch_from_file): Call
456         "deprecated_current_gdbarch_select_hack".
457
458 2003-11-09  Andrew Cagney  <[email protected]>
459
460         * arch-utils.c (gdbarch_update_p): New function.
461         * gdbarch.sh (gdbarch_update_p): Delete function.
462         (find_arch_by_info, gdbarch_find_by_info): New functions.
463         (deprecated_current_gdbarch_select_hack): New function.
464         * gdbarch.c: Re-generate.
465
466         * gdbarch.sh (clear_gdbarch_swap): Delete function.
467         (swapout_gdbarch_swap): Delete function.
468         (swapin_gdbarch_swap): Delete function.
469         (init_gdbarch_swap): Delete function.
470         (initialize_non_multiarch): Delete function.
471         (current_gdbarch_swap_in_hack): New function.
472         (current_gdbarch_swap_out_hack): New function.
473         (current_gdbarch_swap_init_hack): New function.
474         * gdbarch.c: Re-generate.
475
476         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
477         parameter to "current_gdbarch".  Add comment explaining why.
478         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
479         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
480         * gdbarch.c: Re-generate.
481         
482         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
483         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
484         * config/s390/xm-linux.h: Delete file.
485         * config/m88k/xm-delta88v4.h: Delete stray.
486
487         * Makefile.in (arch-utils.o): Update dependencies.
488         * arch-utils.c: Include "osabi.h".
489         (gdbarch_info_fill): New function.
490         * arch-utils.h (gdbarch_info_fill): Declare.
491         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
492         * gdbarch.c: Re-generate.
493
494 2003-11-09  Mark Kettenis  <[email protected]>
495             David S. Miller  <[email protected]>
496
497         * glibc-tdep.c, glibc-tdep.h: New files.
498         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
499         * config/i386/linux.mt (TDEPFILES): Likewise.
500         * i386-linux-tdep.c (glibc-tdep.h): Include.
501         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
502         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
503         * arm-linux-tdep.c (glibc-tdep.h): Include.
504         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
505         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
506         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
507         (glibc_tdep_h): Define.
508         (glibc-tdep.o): Add dependencies.
509         (arm-linux-tdep.o): Update dependencies.
510         (i386-linux-tdep.o): Likewise.
511
512 2003-11-09  Andrew Cagney  <[email protected]>
513
514         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
515         * config/mips/nm-irix6.h: Delete file.
516         * config/mips/nm-linux.h: Update copyright.
517         (MIPS_GNULINUX_TARGET): Delete macro.
518         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
519         * config/mips/xm-irix6.h: Delete file.
520         * config/mips/linux.mh (XM_FILE): Delete definition.
521         * config/mips/xm-linux.h: Delete file.
522
523 2003-11-09  Andrew Cagney  <[email protected]>
524
525         * d10v-tdep.c (d10v_return_value): New function.
526         (d10v_use_struct_convention): Delete function.
527         (d10v_store_return_value): Delete function.
528         (d10v_extract_struct_value_address): Delete function.
529         (d10v_gdbarch_init): Set "return_value" instead of
530         "extract_return_value", "store_return_value",
531         "extract_struct_value_address", and "use_struct_convention".
532         (RET1_REGNUM): Delete const.
533
534 2003-11-09  Mark Kettenis  <[email protected]>
535
536         From David S. Miller  <[email protected]>:
537         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
538         * gdbarch.c, gdbarch.h: Regenerated.
539         * arch-utils.c (generic_skip_solib_resolver): New function.
540         * arch-utils.h (generic_skip_solib_resolver): New prototype.
541         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
542
543 2003-11-07  Andrew Cagney  <[email protected]>
544
545         * top.c (print_gdb_version): Replace STREQ with strcmp.
546         * valops.c (value_struct_elt_for_reference): Ditto.
547         (value_struct_elt_for_reference): Ditto.
548         * symtab.c (gdb_mangle_name): Ditto.
549         (find_line_symtab): Ditto.
550         * symmisc.c (maintenance_print_symbols): Ditto.
551         * symfile.c (symbol_file_command): Ditto.
552         * stabsread.c (define_symbol, read_type): Ditto.
553         (cleanup_undefined_types, scan_file_globals): Ditto.
554         * solib.c (solib_map_sections): Ditto.
555         * solib-svr4.c (bfd_lookup_symbol): Ditto.
556         * rs6000-tdep.c (skip_prologue): Ditto.
557         * p-valprint.c (pascal_value_print): Ditto.
558         (pascal_object_is_vtbl_ptr_type): Ditto.
559         * objfiles.c (in_plt_section): Ditto.
560         * minsyms.c (lookup_minimal_symbol): Ditto.
561         (compact_minimal_symbols): Ditto.
562         (find_solib_trampoline_target): Ditto.
563         * mdebugread.c (parse_type): Ditto.
564         * language.c (set_language_command): Ditto.
565         (set_type_command, set_range_command): Ditto.
566         * f-lang.c (add_common_block): Ditto.
567         (add_common_block): Ditto.
568         (find_first_common_named): Ditto.
569         (patch_all_commons_by_name): Ditto.
570         * elfread.c (elf_locate_sections): Ditto.
571         (elf_locate_sections): Ditto.
572         (elfstab_offset_sections): Ditto.
573         * dwarf2read.c (dwarf2_locate_sections): Ditto.
574         * dbxread.c (add_old_header_file): Ditto.
575         (find_corresponding_bincl_psymtab): Ditto.
576         (read_dbx_symtab, process_one_symbol): Ditto.
577         * coffread.c (patch_opaque_types): Ditto.
578         * cli/cli-decode.c (delete_cmd): Ditto.
579         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
580         * c-typeprint.c (c_type_print_base): Ditto.
581         * breakpoint.c (bpstat_stop_status): Ditto.
582         (clear_command, breakpoint_re_set_one): Ditto.
583
584 2003-11-07  Andrew Cagney  <[email protected]>
585
586         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
587         * bcache.c (struct bstring): Make "length" an unsigned short, add
588         "half_hash".
589         (struct bcache): Add "half_hash_error_count".
590         (bcache): Compute and save the "half_hash".  Compare the
591         "half_hash" before comparing the length.  Update
592         half_hash_error_count.
593
594 2003-11-07  Andrew Cagney  <[email protected]>
595
596         * inftarg.c (child_xfer_partial): New function
597         (init_child_ops): Set "to_xfer_partial".
598
599 2003-11-07  Andrew Cagney  <[email protected]>
600
601         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
602         set "return_value" instead of "use_struct_convention".
603         (ppc_linux_use_struct_convention): Delete function.
604         (ppc_linux_return_value): New function.
605         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
606         (ppc_sysv_abi_broken_return_value): New function.
607         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
608         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
609         static.
610         (ppc_sysv_abi_extract_return_value): Delete function.
611         (ppc_sysv_abi_broken_extract_return_value): Delete function.
612         (ppc_sysv_abi_store_return_value): Delete function.
613         (ppc_sysv_abi_broken_store_return_value): Delete function.
614         (ppc_sysv_abi_use_struct_convention): Delete function.
615         (ppc64_sysv_abi_use_struct_convention): Delete function.
616         (ppc64_sysv_abi_extract_return_value): Delete function.
617         (ppc64_sysv_abi_store_return_value): Delete function.
618         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
619         (ppcnbsd_init_abi): Set "return_value", instead of
620         "use_struct_convention", "extract_return_value", and
621         "store_return_value".
622         (ppcnbsd_use_struct_convention): Delete function.
623         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
624         (ppc_sysv_abi_return_value): Declare.
625         (ppc_sysv_abi_broken_return_value): Declare.
626         (ppc_sysv_abi_use_struct_convention): Delete.
627         (ppc_sysv_abi_store_return_value): Delete.
628         (ppc_sysv_abi_extract_return_value): Delete.
629         (ppc_sysv_abi_broken_store_return_value): Delete.
630         (ppc_sysv_abi_broken_extract_return_value): Delete.
631         (ppc64_sysv_abi_use_struct_convention): Delete.
632         (ppc64_sysv_abi_extract_return_value): Delete.
633         (ppc64_sysv_abi_store_return_value): Delete.
634         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
635         set "return_value" instead of "extract_return_value",
636         "store_return_value", and "use_struct_convention".
637
638 2003-11-07  Mark Kettenis  <[email protected]>
639
640         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
641
642         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
643         fscanf.
644
645 2003-11-07  Mark Kettenis  <[email protected]>
646
647         * fbsd-proc.c: Fix formatting.
648
649 2003-11-06  Kevin Buettner  <[email protected]>
650
651         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
652         Define.
653         (new_variant): Set name for iacc0_regnum.
654         (frv_register_name): Accommodate pseudo-registers.
655         (frv_register_type): Add case for iacc0_regnum.
656         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
657         (frv_gdbarch_init): Set number of pseudo registers.  Establish
658         pseudo-register read/write methods.
659
660 2003-11-06  Andrew Cagney  <[email protected]>
661
662         * valops.c (destructor_name_p): Replace STREQN with strncmp.
663         * top.c (command_line_input): Ditto.
664         * objc-exp.y (yylex): Ditto.
665         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
666         * jv-exp.y (yylex): Ditto.
667         * f-exp.y (yylex): Ditto.
668         * event-top.c (command_line_handler): Ditto.
669         * environ.c (get_in_environ): Ditto.
670         (set_in_environ): Ditto.
671         * dwarfread.c (handle_producer): Ditto.
672         * dbxread.c (process_one_symbol): Ditto.
673         * c-typeprint.c (c_type_print_base): Ditto.
674         * c-exp.y (yylex): Ditto.
675
676 2003-11-06  Andrew Cagney  <[email protected]>
677             Jeff Johnston  <[email protected]>
678
679         * target.c (add_target): Only set "to_xfer_partial" when NULL.
680         (init_dummy_target): Set "to_xfer_partial".
681
682 2003-11-06  Andrew Cagney  <[email protected]>
683
684         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
685         REGISTER_CONVENTION.
686
687 2003-11-06  Daniel Jacobowitz  <[email protected]>
688
689         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
690         static.
691
692 2003-11-06  Daniel Jacobowitz  <[email protected]>
693
694         * breakpoint.c (remove_breakpoint): Take an bp_location
695         instead of a breakpoint argument.  Check the bp_location's type.
696         Fix a reversed condition for hardware breakpoints.
697
698         (insert_bp_location): Update call to remove_breakpoint.
699         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
700         (remove_hw_watchpoints): Likewise.
701         (reattach_breakpoints): Likewise.
702         (detach_breakpoints): Likewise.
703         (delete_breakpoint): Likewise.
704
705 2003-11-06  Daniel Jacobowitz  <[email protected]>
706
707         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
708         (beakpoint_init_inferior): Likewise.
709         (breakpoint_here_p): Likewise.  Only check addresses for software
710         or hardware breakpoints.
711         (breakpoint_inserted_here_p): Likewise.
712         (breakpoint_thread_match): Likewise.  Correct comment.
713         (bpstat_have_active_hw_watchpoints): Likewise.
714         (check_duplicates): Likewise.
715
716 2003-11-06  Daniel Jacobowitz  <[email protected]>
717
718         * breakpoints.c (insert_bp_location): New function, broken out
719         from insert_breakpoints.  Work on an bp_location instead of a
720         breakpoint.
721         (insert_breakpoints): Use it.
722
723 2003-11-06  Daniel Jacobowitz  <[email protected]>
724
725         * breakpoint.h (struct bp_location): Add section.
726         (struct breakpoint): Remove section.
727         * breakpoint.c (insert_breakpoints, remove_breakpoint)
728         (breakpoint_here_p, breakpoint_inserted_here_p)
729         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
730         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
731         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
732         section through loc.
733
734 2003-11-06  Daniel Jacobowitz  <[email protected]>
735
736         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
737         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
738
739 2003-11-06  Daniel Jacobowitz  <[email protected]>
740
741         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
742         arguments.  Initialize owner and type for the new breakpoint
743         location item.
744         (set_raw_breakpoint): Update call to allocate_bp_location.
745
746 2003-11-06  Daniel Jacobowitz  <[email protected]>
747
748         * breakpoint.h (struct bp_location): Add a chain pointer.
749         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
750         macros.
751         (bp_location_chain): New variable.
752         (allocate_bp_location): New function.
753         (set_raw_breakpoint): Use it.
754         (delete_breakpoint): Remove ->loc from the bp_location_chain.
755
756 2003-11-06  Daniel Jacobowitz  <[email protected]>
757
758         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
759         (struct breakpoint): Remove address, shadow_contents, inserted,
760         requested_address, and duplicate.  Add a struct bp_location.
761         * breakpoint.c (condition_command, read_memory_nobpt)
762         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
763         (reattach_breakpoints, update_breakpoints_after_exec)
764         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
765         (breakpoint_init_inferior, breakpoint_here_p)
766         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
767         (breakpoint_thread_match, bpstat_stop_status)
768         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
769         (describe_other_breakpoints, check_duplicates)
770         (make_breakpoint_permanent, create_thread_event_breakpoint)
771         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
772         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
773         (watch_command_1, print_one_exception_catchpoint)
774         (clear_command, breakpoint_re_set_one): Adjust member accesses to
775         use the breakpoint's ->loc.
776         (set_raw_breakpoint): Likewise.  Initialize ->loc.
777         (delete_breakpoint): Likewise.  Free ->loc.
778
779 2003-11-05  Andrew Cagney  <[email protected]>
780
781         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
782         macro.
783         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
784         * config/i386/tm-cygwin.h
785         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
786         * config/powerpc/tm-linux.h
787         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
788         (at_subroutine_call_instruction_target): Delete declaration.
789         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
790         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
791         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
792
793         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
794         "struct bfd_section" and "struct bfd".
795         * target.h (struct section_table): Ditto.
796         * rs6000-nat.c (xcoff_relocate_core): Ditto.
797         * solib-svr4.c (elf_locate_base): Ditto.
798         * pa64solib.c (dld_cache_t): Ditto.
799         * objfiles.h (struct obj_section): Ditto.
800         * objfiles.c (add_to_objfile_sections): Ditto.
801         * exec.c (bfdsec_to_vmap): Ditto.
802         (add_to_section_table): Ditto.
803         (build_section_table): Ditto.
804         * corelow.c (get_core_register_section): Ditto.
805         * coffread.c (find_linenos): Ditto.
806         * elfread.c (elf_interpreter): Delete #if0'd function.
807
808         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
809         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
810         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
811         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
812
813         * arch-utils.h (generic_cannot_extract_struct_value_address):
814         Delete declaration.
815         * wince.c (_initialize_wince): Fix multi-line string.
816         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
817
818 2003-11-05  Elena Zannoni  <[email protected]>
819
820         * top.c (execute_command): Fix broken logic for command execution
821         while inferior is running in async mode.
822
823 2003-11-06  Mark Kettenis  <[email protected]>
824
825         * dwarf2-frame.c (execute_cfa_program): Mark register as
826         REG_SAVED_REG for DW_CFA_register opcode.
827
828 2003-11-05  Mark Kettenis  <[email protected]>
829
830         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
831         %rsp, %rip and %eflags to match ABI-change.
832
833 2003-11-05  Jeff Johnston  <[email protected]>
834
835         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
836         (ia64_gdbarch_init): Don't bother calculating the os.  
837         Instead use the gdbarch_info struct and look at the osabi field.  
838         Also use gdbarch_list_lookup_by_info() to look for a 
839         candidate gdbarch. 
840
841 2003-11-05  Kevin Buettner  <[email protected]>
842
843         * frv-tdep.c (frv_register_byte): Delete.
844         (frv_extract_return_value, frv_store_return_value)
845         (frv_extract_struct_value_address): Don't call frv_register_byte().
846         Convert to non-deprecated form.
847         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
848         Convert calls to set_gdbarch_deprecated_extract_return_value(),
849         set_gdbarch_deprecated_store_return_value(), and
850         set_gdbarch_deprecated_extract_struct_value_address() into
851         non-deprecated forms.
852
853 2003-11-05  Andrew Cagney  <[email protected]>
854
855         * mips-tdep.c (mips_dump_tdep): Do not print
856         PRINT_EXTRA_FRAME_INFO.
857         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
858         Rename PRINT_EXTRA_FRAME_INFO.
859         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
860         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
861         (mips_print_extra_frame_info): Delete declaration.
862         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
863
864 2003-11-05 Elena Zannoni  <[email protected]>
865
866         * coffread.c (coff_symtab_read): Remove passing of info parameter
867         to prim_record_minimal_symbol_and_info.
868
869 2003-11-05  Elena Zannoni  <[email protected]>
870
871         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
872         (decode_base_type): Delete ifdeffed out code.
873
874 2003-11-04  Andrew Cagney  <[email protected]>
875
876         * symtab.c (find_active_alias): Delete function.
877         (lookup_block_symbol): Delete alias code.
878         * stabsread.c (resolve_live_range): Delete function.
879         (add_live_range): Delete function.
880         (resolve_symbol_reference): Delete function.
881         (define_symbol): Delete live range and alias code.
882         (scan_file_globals): Delete alias code.
883         * symtab.h (SYMBOL_RANGES): Delete macro.
884         (struct range_list): Delete structure.
885         (struct symbol): Delete field "ranges".
886         (SYMBOL_ALIASES): Delete macro.
887         (struct alias_list): Delete structure.
888         (struct symbol): Delete field "aliases".
889
890 2003-11-04  Michael Snyder  <[email protected]>
891
892         * MAINTAINERS: Remove myself as owner of breakpoints and 
893         of sparc/solaris.
894
895 2003-11-03  Corinna Vinschen  <[email protected]>
896
897         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
898         (sh_sh4al_dsp_register_name): Ditto.
899         (sh4_nofpu_show_regs): Ditto.
900         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
901         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
902
903 2003-11-03  Andrew Cagney  <[email protected]>
904
905         * bcache.c: Include "gdb_assert.h".
906         (struct bcache): Add fields "expand_count" and
907         "expand_hash_count".
908         (expand_hash_table): Update the expand counts.
909         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
910         on object sizes and hashes.
911         * Makefile.in (bcache.o): Update dependencies.
912
913 2003-11-03  Andrew Cagney  <[email protected]>
914
915         * exec.c (xfer_memory): Eliminate xfer_fn.
916
917 2003-10-31  Kevin Buettner  <[email protected]>
918
919         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
920         (opcodes/frv-desc.h): Include.
921         (iacc0h_regnum, iacc0l_regnum): Define.
922         (last_spr_regnum, frv_num_regs): Update.
923         (new_variant): Don't supply default names for holes in the SPRs.
924         Supply names for iacc0h_regnum and iacc0l_regnum.
925         (frv_register_type): Use symbolic constants first_fpr_regnum and
926         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
927         builtin_type_int instead of builtin_type_int32.
928         (frv_register_sim_regno): New function.
929         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
930         * Makefile.in (gdb_sim_frv_h): Define.
931         (frv-tdep.o): Update dependencies.
932
933 2003-10-31  Andrew Cagney  <[email protected]>
934
935         * avr-tdep.c (avr_frame_this_id): Do not call
936         deprecated_inside_entry_file.
937         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
938         * m32r-tdep.c (m32r_frame_this_id): Ditto.
939         * d10v-tdep.c (d10v_frame_this_id): Ditto.
940         * arm-tdep.c (arm_prologue_this_id): Ditto.
941         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
942
943 2003-10-31  Jim Blandy  <[email protected]>
944
945         * elfread.c (elf_symtab_read): Allocate correct number of tail
946         elements to sectinfo structure.  (Fix from Woody LaRue.)
947
948 2003-10-31  Andrew Cagney  <[email protected]>
949
950         * stack.c (return_command): Use get_frame_type, instead of
951         CALL_DUMMY_HAS_COMPLETED.
952         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
953         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
954
955 2003-10-31  Mark Kettenis  <[email protected]>
956
957         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
958         explicitly specify size of array.
959         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
960         TDEP->sc_num_regs.
961
962 2003-10-31  Andrew Cagney  <[email protected]>
963
964         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
965         function.
966         (s390_gdbarch_init): Set extract_struct_value_address.
967         * arch-utils.c (generic_cannot_extract_struct_value_address):
968         Delete function.
969         * arch-utils.h (generic_cannot_extract_struct_value_address):
970         Delete definition.
971
972 2003-10-31  Mark Kettenis  <[email protected]>
973
974         * i386-linux-nat.c (fetch_core_registers): Remove.
975         (linux_elf_core_fns): Remove.
976         (_initialize_i386_linux_nat): Remove.
977
978 2003-10-31  Andrew Cagney  <[email protected]>
979
980         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
981         "exec.h".
982         (exec_entry_point): New function.
983         (enable_break): Create a "tmp_bfd_target", use that and
984         entry_point_address when computing the relocation offset.
985         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
986         * Makefile.in (solib-svr4.o): Update dependencies.
987
988 2003-10-31  Andrew Cagney  <[email protected]>
989
990         * defs.h (XZALLOC): Define.
991         * target.h (struct target_ops): Add "to_data";
992         * bfd-target.h, bfd-target.c: New files.
993         * Makefile.in (SFILES): Add "bfd-target.c".
994         (COMMON_OBS): Add "bfd-target.o".
995         (bfd-target.o): Specify dependencies.
996         (bfd_target_h): Define.
997         * defs.h (XZALLOC): Define.
998
999 2003-10-31  Andrew Cagney  <[email protected]>
1000
1001         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1002         adjust_breakpoint_address.
1003         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1004         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1005         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1006         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1007
1008 2003-10-31  Andrew Cagney  <[email protected]>
1009
1010         * target.h (struct target_ops): Replace "to_read_partial" and
1011         "to_write_partial" with "to_xfer_partial".  Update comments.
1012         * target.c (debug_to_write_partial): Delete function.
1013         (debug_to_xfer_partial): Replace debug_to_read_partial.
1014         (add_target, update_current_target, setup_target_debug): Set
1015         "to_xfer_partial" instead of "to_read_partial" and
1016         "to_write_partial".
1017         (default_xfer_partial): Replace "default_write_partial".
1018         (default_read_partial): Delete.
1019         (target_read_partial, target_write_partial): Call
1020         "to_xfer_partial".
1021         * remote.c (init_remote_ops): Set "to_xfer_partial".
1022         (init_remote_async_ops): Ditto.
1023         (remote_xfer_partial): Replace "remote_read_partial".
1024
1025 2003-10-31  Mark Kettenis  <[email protected]>
1026
1027         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1028         registers in `fxsave' format.
1029         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1030
1031 2003-10-30  Mark Kettenis  <[email protected]>
1032
1033         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1034         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1035         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1036
1037         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1038         specify size of array.
1039         (i386_linux_init_abi): Remove initialization of
1040         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1041         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1042
1043         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1044         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1045         core-regset.o.
1046
1047         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1048         the ELF header.
1049
1050 2003-10-29  Mark Kettenis  <[email protected]>
1051
1052         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1053         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1054         core-regset.o.
1055
1056         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1057
1058         * corelow.c: Include "arch-utils.h", "regset.h" and
1059         "gdb_assert.h".
1060         (core_gdbarch): New variable.
1061         (sniff_core_bfd): Don't sniff if we have support for register sets
1062         in CORE_GDBARCH.
1063         (core_close): Reset CORE_GDBARCH.
1064         (core_open): Initialize CORE_GDBARCH.
1065         (get_core_register_section): Use register sets if they are
1066         supported by CORE_GDBARCH.
1067         (get_core_registers): Don't print error message if we have support
1068         for register sets in CORE_GDBARCH.
1069
1070 2003-10-29  Andrew Cagney  <[email protected]>
1071
1072         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1073         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1074
1075 2003-10-29  Mark Kettenis  <[email protected]>
1076
1077         * objfiles.h (clear_objfile_data): New prototype.
1078         * objfiles.c (clear_objfile_data): New function.
1079         * symfile.c (reread_symbols): Clear per-objfile data.
1080
1081 2003-10-28  Jeff Johnston  <[email protected]>
1082  
1083         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1084         printf_unfiltered instead of printf_filtered for output messages.
1085         (add_symbol_file_command): Ditto.
1086         (reread_symbols): Ditto.
1087         (overlay_auto_command): Ditto.
1088         (overlay_manual_command): Ditto.
1089         (overlay_off_command): Ditto.
1090
1091 2003-10-27  Mark Kettenis  <[email protected]>
1092
1093         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1094         (gdbarch_from_bfd): New function.
1095         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1096         deprecated_select_gdbarch_hack.
1097         * arch-utils.h (gdbarch_from_bfd): New prototype.
1098
1099 2003-10-27  Andrew Cagney  <[email protected]>
1100
1101         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1102         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1103         deprecated bfd_printable_arch_mach.
1104
1105 2003-10-26  Kevin Buettner  <[email protected]>
1106
1107         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1108         Delete.
1109         (frv_register_type): Rename from frv_register_virtual_type.  Add
1110         ``struct gdbarch *'' parameter.
1111         (frv_gdbarch_init): Delete calls to the following functions:
1112         set_gdbarch_deprecated_size(),
1113         set_gdbarch_deprecated_register_bytes(),
1114         set_gdbarch_deprecated_register_raw_size(),
1115         set_gdbarch_deprecated_max_register_raw_size(),
1116         set_gdbarch_deprecated_register_virtual_size(),
1117         set_gdbarch_deprecated_max_register_virtual_size(),
1118         set_gdbarch_deprecated_register_virtual_size(),
1119         set_gdbarch_deprecated_register_virtual_type().
1120         Add call to function set_gdbarch_register_type().
1121
1122 2003-10-26  Mark Kettenis  <[email protected]>
1123
1124         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1125         FDOFF_REGNUM): Remove defines.
1126         * win32-nat.c (do_child_fetch_inferior_registers): Include
1127         "i387-tdep.h".
1128         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1129         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1130         undefine I387_ST0_REGNUM.
1131
1132         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1133         * x86-64-tdep.c (x86_64_store_return_value): Use
1134         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1135
1136         Change register numbers to enumartion values.
1137         * i386-tdep.h (enum i386_regnum): New.
1138         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1139         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1140         I386_ST0_REGNUM): Remove defines.
1141         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1142         I386_EDI_REGNUM): Remove defines.
1143
1144 2003-10-24  Andrew Cagney  <[email protected]>
1145
1146         * target.c: Include "gdbcore.h".
1147         (get_target_memory, get_target_memory_unsigned): New functions.
1148         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1149         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1150         Use get_target_memory_unsigned.
1151         * Makefile.in (target.o): Update dependencies.
1152
1153 2003-10-24  Andrew Cagney  <[email protected]>
1154
1155         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1156         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1157         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1158         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1159         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1160
1161         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1162         (can_run_code_for): Use the OO term "singleton".
1163
1164 2003-10-23  Andrew Cagney  <[email protected]>
1165
1166         * Makefile.in (stack.o): Add $(regcache_h).
1167         * stack.c: Include "regcache.h"
1168         (return_command): Rewrite.  Use get_frame_id and
1169         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1170         about unhandled return-values.
1171         * value.h (set_return_value): Delete declaration.
1172         * values.c (set_return_value): Delete function.
1173
1174 2003-10-23  Jeff Johnston  <[email protected]>
1175
1176         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1177         (pseudo_regs): Add comment regarding register stack registers.
1178         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1179         (floatformat_valid): New static routine.
1180         (floatformat_ia64_ext): Add name field and set up is_valid routine
1181         to floatformat_valid().
1182         (examine_prologue):  For the previous cfm, use
1183         frame_unwind_register()
1184         if the cfm is not stored in a register-stack register.  Save the
1185         previous cfm value in the prev_cfm field.  Add debug output.
1186         (ia64_frame_this_id): Use frame_id_build_special() to also register
1187         the bsp.  Add debug output.
1188         (ia64_sigtramp_frame_this_id): Ditto.
1189         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1190         registers and also add some checks for framelessness before accepting
1191         current register values for fields such as return address.  For cfm,
1192         use the cached prev_cfm field if available.  Add comment to explain
1193         PSR logic.  Add debug output.
1194         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1195         as part of initialization.
1196         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1197         calculated.  Cache the bsp and cfm values.
1198         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1199         instead of using ia64_frame_prev_register() which doesn't expect most
1200         registers to be saved.  The saved values for bsp and sp
1201         can be taken from the cache.  Add debug output.
1202         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1203         the bsp.
1204
1205 2003-10-23  Jim Blandy  <[email protected]>
1206
1207         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1208         architecture the current arch can run code for --- but not if it's
1209         a superset.
1210         (can_run_code_for): New function.
1211
1212 2003-10-22  James E Wilson  <[email protected]>
1213
1214         * MAINTAINERS: Move myself from paper trail section back to write
1215         after approval section.
1216
1217 2003-10-22  Andrew Cagney  <[email protected]>
1218
1219         * exec.h: New file.
1220         * win32-nat.c: Include "exec.h".
1221         * solib.c: Include "exec.h".
1222         * target.h (build_section_table): Delete declaration.
1223         * somsolib.c: Include "exec.h".
1224         (exec_ops): Delete extern declaration.
1225         * rs6000-nat.c: Update copyright.  Include "exec.h".
1226         (exec_ops): Delete extern declaration.
1227         * pa64solib.c: Update copyright.  Include "exec.h".
1228         (exec_ops): Delete extern declaration.
1229         * exec.c: Update copyright.  Include "exec.h".
1230         * corelow.c: Update dependencies.  Include "exec.h".
1231         * Makefile.in (exec_h): Define.
1232         (exec.o, somsolib.o): Update dependencies.
1233         (pa64solib.o, corelow.o): Update dependencies.
1234
1235 2003-10-22  Andrew Cagney  <[email protected]>
1236
1237         * target.c: Include "gdb_assert.h" (target_read): Call
1238         "target_read_partial", not "target_write_partial".
1239         (default_read_partial, default_write_partial): New function.
1240         (target_read_partial, target_write_partial): Simplify, assume that
1241         there is always a read/write method.
1242         (update_current_target, add_target): Always set "to_read_partial"
1243         and "to_write_partial".
1244         (target_write, target_read): Fail on a zero byte transfer.
1245         * Makefile.in (target.o): Update dependencies.
1246         * target.h: Update copyright date.
1247         (target_object): Fix typo.
1248
1249 2003-10-22  Andrew Cagney  <[email protected]>
1250
1251         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1252         multi-arch method, add "targ" parameter.
1253         (struct target_ops): Declare.   
1254         * gdbarch.h, gdbarch.c: Re-generate.
1255         * Makefile.in (c-valprint.o): Update dependencies.
1256         * arch-utils.h: Update copyright.
1257         (convert_from_func_ptr_addr_identity): Declare.
1258         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1259         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1260         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1261         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1262         * infcall.c (find_function_addr, call_function_by_hand): Update.
1263         * c-valprint.c: Include "target.h".
1264         (print_function_pointer_address): Update.
1265
1266 2003-10-22  Andrew Cagney  <[email protected]>
1267
1268         * target.c (target_close): New function.
1269         (debug_to_close): Use "target_close".
1270         (push_target): Use "target_close".
1271         (unpush_target): Use "target_close".
1272         (pop_target): Use "target_close".
1273         * target.h (struct target_ops): Add "to_xclose".
1274         (target_open): Delete macro.  Move comment to "to_open".
1275         (target_close): Replace macro with function that takes a target.
1276         * top.c (quit_target): Pass "current_target" to "target_close".
1277
1278 2003-10-21  Elena Zannoni  <[email protected]>
1279
1280         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1281         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1282         * symtab.h (lookup_minimal_symbol_text): Update.
1283         * breakpoint.c (create_overlay_event_breakpoint,
1284         create_longjmp_breakpoint): Update callers.
1285         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1286         * symtab.c (find_pc_sect_line): Ditto.
1287
1288 2003-10-21  Andrew Cagney  <[email protected]>
1289
1290         * target.c (errno): Delete extern declaration.
1291
1292 2003-10-20  Jeff Johnston  <[email protected]>
1293
1294         * ia64-tdep.c: Change all occurrences of
1295         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1296         (ia64_frame_prev_register): Minor whitespace change.
1297
1298 2003-10-20  Michael Chastain  <[email protected]>
1299
1300         * config/djgpp/fnchange.lst: Add lines for:
1301         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1302         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1303         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1304         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1305         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1306         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1307         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1308
1309 2003-10-20  Andrew Cagney  <[email protected]>
1310
1311         * values.c (register_value_being_returned): Update comments.  Use
1312         "gdbarch_return_value" when available.
1313         (using_struct_return): Ditto.
1314         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1315         available..  Print a warning, and not an error, when an unhandled
1316         return type is encountered.
1317         * infcmd.c: Include "gdb_assert.h".
1318         (print_return_value): When gdbarch_return_value_p, and using
1319         struct return, assume that the value is not available.
1320         * defs.h (return_value_convention): Define.
1321         * gdbarch.sh (gdbarch_return_value): New predicate method.
1322         * gdbarch.h, gdbarch.c: Re-generate
1323         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1324
1325 2003-10-20  Andrew Cagney  <[email protected]>
1326
1327         * symtab.c: Replace "struct sec" with "struct bfd_section".
1328         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1329
1330 2003-10-19  Michael Chastain  <[email protected]>
1331
1332         * config/djgpp/fnchange.lst: Add lines for:
1333         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1334         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1335         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1336
1337 2003-10-19  Mark Kettenis  <[email protected]>
1338
1339         * amd64fbsd-nat.c (fetch_inferior_registers,
1340         store_inferior_registers): Remove functions.
1341         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1342
1343 2003-10-18  Mark Kettenis  <[email protected]>
1344
1345         Add NetBSD/amd64 native configuration:
1346         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1347         * amd64nbsd-tdep.c: New file.
1348         * amd64nbsd-nat.c: New file.
1349         * amd64bsd-nat.c: New file.
1350         * config/i386/nbsd64.mh: New file.
1351         * config/i386/nbsd64.mt: New file.
1352         * configure.host: Add x86_64-*-netbsd*.
1353         * configure.tgt: Add x86_64-*-netbsd*.
1354         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1355         New targets.
1356         * NEWS (New native configurations): Mention NetBSD/amd64.
1357
1358 2003-10-17  Michael Chastain  <[email protected]>
1359
1360         * config/djgpp/fnchange.lst: Remove dead lines for:
1361         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1362         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1363         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1364         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1365         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1366         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1367         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1368         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1369         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1370         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1371         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1372         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1373         gdb/config/sparc/tm-sparclite.h,
1374         gdb/gdbtk/generic/ChangeLog-2001,
1375         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1376         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1377         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1378         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1379         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1380         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1381         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1382         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1383         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1384         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1385         itcl/iwidgets3.0.0/demos/fileselectionbox,
1386         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1387         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1388         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1389         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1390         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1391         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1392         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1393         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1394         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1395         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1396         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1397         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1398         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1399         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1400         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1401         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1402         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1403         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1404         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1405         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1406         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1407         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1408         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1409         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1410         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1411         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1412         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1413         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1414         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1415         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1416         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1417         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1418         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1419         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1420         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1421         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1422         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1423         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1424         itcl/iwidgets3.0.0/demos/scrolledframe,
1425         itcl/iwidgets3.0.0/demos/scrolledhtml,
1426         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1427         itcl/iwidgets3.0.0/demos/scrolledtext,
1428         itcl/iwidgets3.0.0/demos/selectionbox,
1429         itcl/iwidgets3.0.0/demos/selectiondialog,
1430         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1431         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1432         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1433         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1434         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1435         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1436         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1437         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1438         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1439         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1440         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1441         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1442         itcl/iwidgets3.0.0/doc/selectionbox.n,
1443         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1444         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1445         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1446         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1447         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1448         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1449         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1450         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1451         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1452         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1453         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1454         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1455         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1456         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1457         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1458         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1459         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1460         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1461         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1462         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1463         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1464         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1465         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1466         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1467         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1468         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1469         itcl/iwidgets3.0.0/tests/selectionbox.test,
1470         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1471         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1472         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1473         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1474         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1475         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1476         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1477         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1478         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1479         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1480         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1481         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1482         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1483         tk/mac/tkMacProjects.sit.hqx.
1484
1485 2003-10-17  Andrew Cagney  <[email protected]>
1486
1487         * target.c (target_section_by_addr): New function.
1488         (do_xfer_memory): Use "target_section_by_addr".
1489         * target.h (target_section_by_addr): Declare.
1490
1491         * target.h (struct target_ops): Add "to_read_partial" and
1492         "to_write_partial", delete "to_query".
1493         (target_read_partial, target_write_partial): Declare.
1494         (target_read, target_write): Declare.
1495         (target_query): Delete macro.
1496         * target.c (target_read_partial): New function.
1497         (target_write_partial, target_read, target_write): New function.
1498         (update_current_target): Delete inheritance of "to_query".  Add
1499         comments about "to_read_partial" and "to_write_partial".
1500         (debug_to_partial_read, debug_to_partial_write): New functions.
1501         (debug_to_query): Delete function.
1502         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1503         instead of "to_query".
1504         * remote.c (remote_read_partial): Replace "remote_query".
1505         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1506         (init_remote_async_ops): Ditto.
1507         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1508         "target_read_partial" instead of "target_query".
1509         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1510         Use "target_read_partial" instead of "target_query".
1511
1512 2003-10-17  Jeff Johnston  <[email protected]>
1513
1514         * frame.h (struct frame_id): Add new field: special_addr.
1515         (frame_id_build_special): New prototype.
1516         * frame.c (frame_id_build_special): New function.
1517         (frame_id_build): Change to call frame_id_build_special().
1518         (frame_id_eq): Change to also test special_addr field. 
1519         (frame_id_inner): Update comment. 
1520
1521 2003-10-17  Andrew Cagney  <[email protected]>
1522
1523         * target.c (update_current_target): Perform the target cleanup.
1524         Put the target stack beneath the squashed "current_target".
1525         (add_target): Delete disabled call to "cleanup_target".
1526         (cleanup_target): Delete function.
1527         (push_target, unpush_target): Do not call "cleanup_target".
1528
1529 2003-10-17  Andrew Cagney  <[email protected]>
1530
1531         * target.c (target_stack): Change to a static target_ops.
1532         (update_current_target): Walk the "struct target_ops" stack.
1533         (pop_target, do_xfer_memory, target_info): Ditto.
1534         (find_target_beneath): Ditto.
1535         (push_target): Rewrite to use the "struct target_ops" stack.
1536         (unpush_target): Ditto.
1537         * target.h (struct target_stack_item): Delete definition.
1538         (target_stack): Delete declaration.
1539         (struct target_ops): Add field "beneath".
1540
1541 2003-10-17  Shrinivas Atre  <[email protected]>
1542
1543         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1544         declaration.
1545         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1546         (h8300_examine_prologue): Use h8300_normal_mode flag
1547         (h8300_gdbarch_init): Set architecture info for normal mode
1548
1549 2003-10-16  Daniel Jacobowitz  <[email protected]>
1550
1551         * remote.c (remote_protocol_vcont): New variable.
1552         (set_remote_protocol_vcont_packet_cmd): New function.
1553         (show_remote_protocol_vcont_packet_cmd): New function.
1554         (init_all_packet_configs): Handle remote_protocol_vcont.
1555         (remote_vcont_probe): New function.
1556         (remote_vcont_resume): New function.
1557         (remote_resume): Use it.
1558         (remote_async_resume): Call remote_resume.
1559         (_initialize_remote): Add verbose-resume packet commands.
1560
1561 2003-10-16  Andrew Cagney  <[email protected]>
1562
1563         * infrun.c (handle_inferior_event): Add comment about
1564         "frame_id_inner" being too weak.
1565
1566 2003-10-16  Elena Zannoni  <[email protected]>
1567
1568         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1569         second parameter, which is always null. Remove
1570         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1571         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1572         accordingly.
1573         * somsolib.c (som_solib_create_inferior_hook,
1574         som_solib_desire_dynamic_linker_symbols): Update callers.
1575         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1576
1577 2003-10-16  Kei Sakamoto  <[email protected]>
1578
1579         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1580         debug interface, SDI (Scalable Debug Interface).
1581         * NEWS: Mention m32r SDI protocol was supported.
1582         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1583         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1584
1585 2003-10-15  Jeff Johnston  <[email protected]>
1586
1587         * ia64-linux-tdep.c: Include gdbcore.h.
1588         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1589         (ia64_linux_sigcontext_register_addr): Find the address of the
1590         sigcontext area stored in the sigframe instead of using
1591         a magic offset constant. 
1592
1593 2003-10-15  Andrew Cagney  <[email protected]>
1594
1595         * remote.c (remote_search): Delete function.
1596         * target.h (target_search): Delete disabled macro.
1597         (struct target_ops): Delete disabled field "to_search".
1598
1599 2003-10-14  Kevin Buettner  <[email protected]>
1600
1601         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1602         instead of deprecated_inside_entry_file().
1603
1604 2003-10-14  Corinna Vinschen  <[email protected]>
1605
1606         * sh-tdep.c: Fix copy/paste hangover in comment.
1607         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1608         mode.
1609         (sh3e_sh4_extract_return_value): Ditto.
1610
1611 2003-10-13  Richard Henderson  <[email protected]>
1612
1613         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1614         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1615         match c_val_print a bit closer.
1616
1617 2003-10-13  Kevin Buettner  <[email protected]>
1618
1619         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1620         (frv_gdbarch_adjust_breakpoint_address): New function.
1621         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1622         method.
1623
1624 2003-10-13  Kevin Buettner  <[email protected]>
1625
1626         * breakpoint.h (struct breakpoint): Add new member
1627         ``requested_address''.
1628         * breakpoint.c (breakpoint_adjustment_warning)
1629         (adjust_breakpoint_address): New static functions.
1630         (print_it_typical): Issue warning if breakpoint's address is different
1631         from its requested address.
1632         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1633         (breakpoint_re_set_one):  Set breakpoint's
1634         ``requested_address'' field.  Set ``address'' field to the
1635         result of calling adjust_breakpoint_address() on the requested
1636         address.
1637
1638 2003-10-13  Kevin Buettner  <[email protected]>
1639
1640         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1641         * gdbarch.h, gdbarch.c: Regenerate.
1642
1643 2003-10-11  Mark Kettenis  <[email protected]>
1644
1645         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1646         TDEP->sc_num_regs.
1647
1648         * i386fbsd-tdep.c: New file.
1649         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1650         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1651         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1652         i386bsd-tdep.c.
1653         (_initialize_i386fbsd_tdep): New function.
1654         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1655         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1656         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1657         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1658         TDEP->sc_num_regs.
1659         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1660         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1661         to initialize TDEP->sc_num_regs.
1662         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1663         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1664         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1665         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1666         FreeBSD ELF OS/ABI's here.
1667         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1668         (i386fbsd-tdep.o): New target.
1669         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1670         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1671
1672         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1673         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1674         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1675         in initialization of TDEP->sc_num_regs.
1676
1677         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1678         (x86_64_init_abi): Initialize regset_from_core_section if
1679         appropriate.
1680
1681         * i386-tdep.c (i386_regset_from_core_section): New function.
1682         (i386_gdbarch_init): Initialize regset_from_core_section if
1683         appropriate.
1684         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1685
1686         * i386-tdep.h (struct regset): Declare opaque.
1687
1688         * gdbarch.sh (regset_from_core_section): New method.
1689         (struct regset): Declare opaque.
1690         * gdbarch.c, gdbarch.h: Regenerated.
1691
1692 2003-10-11  Alan Modra  <[email protected]>
1693
1694         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1695         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1696         Correct test for pc within section.
1697
1698 2003-10-11  Mark Kettenis  <[email protected]>
1699
1700         * gdbarch.sh: Remove trailing whitepsace from comments.
1701
1702 2003-10-08  Roland McGrath  <[email protected]>
1703
1704         * gcore.c (make_mem_sec): Function removed, folded into ...
1705         (gcore_create_callback): ... here.  To omit a section, clear its
1706         SEC_LOAD bit rather than zeroing its size.
1707         Omit read-only sections only if they correspond to a known disk file.
1708         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1709
1710 2003-10-10  Michael Snyder  <[email protected]>
1711
1712         * d10v-tdep.c: Fix typo in comment.
1713
1714 2003-10-10  Andrew Cagney  <[email protected]>
1715
1716         * rs6000-tdep.c (e500_store_return_value): Delete function.
1717         (e500_extract_return_value): Delete function.
1718         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1719         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1720         "ppc_sysv_abi_restore_return_value" where applicable.
1721         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1722         (ppc_sysv_abi_extract_return_value): Declare.
1723         (ppc_sysv_abi_broken_store_return_value): Declare.
1724         (ppc_sysv_abi_broken_extract_return_value): Declare.
1725         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1726         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1727         start of file.
1728         (do_ppc_sysv_return_value): New function.
1729         (ppc_sysv_abi_extract_return_value): New function.
1730         (ppc_sysv_abi_store_return_value): New function.
1731         (ppc_sysv_abi_broken_extract_return_value): New function.
1732         (ppc_sysv_abi_broken_store_return_value): New function.
1733         (ppc_sysv_abi_use_struct_convention): Call
1734         do_ppc_sysv_return_value.
1735
1736 2003-10-10  J. Brobecker  <[email protected]>
1737
1738         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1739         to lookup the main function symbol.
1740
1741 2003-10-10  Corinna Vinschen  <[email protected]>
1742
1743         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1744         types correctly.
1745         (sh_push_dummy_call_fpu): Fix argument passing rules.
1746         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1747         float types.
1748         (sh3e_sh4_store_return_value): Ditto.
1749
1750 2003-10-10  Elena Zannoni  <[email protected]>
1751
1752         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1753         comment.
1754
1755 2003-10-10  Corinna Vinschen  <[email protected]>
1756
1757         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1758         more readable code.  Accomodate passing of bitfields.
1759
1760 2003-10-10  Andrew Cagney  <[email protected]>
1761
1762         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1763         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1764         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1765         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1766         (ppc64_sysv_abi_push_dummy_call): New function.
1767         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1768         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1769         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1770
1771 2003-10-10  Kei Sakamoto  <[email protected]>
1772
1773         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1774         * README: Ditto.
1775         * d10v-tdep.c: Ditto.
1776         * h8300-tdep.c: Ditto.
1777         * remote-e7000.c: Ditto.
1778         * remote-hms.c: Ditto.
1779         * ser-e7kpc.c: Ditto.
1780         * sh-stub.c: Ditto.
1781         * sh-tdep.c: Ditto.
1782         * sh-tdep.h: Ditto.
1783         * sh3-rom.c: Ditto.
1784         * sh64-tdep.c: Ditto.
1785         * top.c: Ditto.
1786         * wince.c: Ditto.
1787         * config/d10v/d10v.mt: Ditto.
1788         * config/sh/embed.mt: Ditto.
1789         * config/sh/linux.mt: Ditto.
1790         * config/sh/tm-linux.h: Ditto.
1791         * config/sh/tm-sh.h: Ditto.
1792         * config/sh/wince.mt: Ditto.
1793
1794 2003-10-09  Andrew Cagney  <[email protected]>
1795
1796         * ppc-tdep.h (struct type): Declare opaque.
1797         * x86-64-tdep.h (struct regcache): Declare opaque.
1798         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1799         coding style.
1800
1801 2003-10-09  Andrew Cagney  <[email protected]>
1802
1803         Changes from 2003-09-09 Jimi Xenidis <[email protected]>:
1804         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1805         (SOFTWARE_SINGLE_STEP_P): Ditto.
1806         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1807         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1808         (SOFTWARE_SINGLE_STEP_P): Ditto.
1809         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1810         software_single_step to rs6000_software_single_step.
1811
1812 2003-10-09  Andrew Cagney  <[email protected]>
1813
1814         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1815
1816 2003-10-09  Michael Snyder  <[email protected]>
1817
1818         * frame.h: Fix typo in comment.
1819         * dummy-frame.c: Fix typo in comment.
1820         * d10v-tdep.c: Random whitespace/comment tweaks.
1821
1822 2003-10-09  Elena Zannoni  <[email protected]>
1823
1824         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1825         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1826         on stack.
1827
1828         Based on input by Stephen Clarke ([email protected]):
1829         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1830         in detail.
1831
1832 2003-10-09  Daniel Jacobowitz  <[email protected]>
1833
1834         * remote-mips.c (mips_initialize): Remove unneeded call to
1835         get_selected_frame.  Suggested by Atsushi Nemoto <[email protected]>.
1836
1837 2003-10-09  Daniel Jacobowitz  <[email protected]>
1838
1839         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1840         a memory pointer.
1841
1842 2003-10-08  Jeff Johnston  <[email protected]>
1843
1844         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1845         for any lwp we resume.
1846         (running_callback): Add lwps that have pending status events
1847         against them to be considered running.
1848
1849 2003-10-08  Kei Sakamoto  <[email protected]>
1850
1851         * m32r-tdep.c : Include "dis-asm.h".
1852         * Makefile.in (m32r-tdep.o): Update dependencies.
1853
1854 2003-10-06  J. Brobecker  <[email protected]>
1855
1856         * completer.h (get_gdb_completer_word_break_characters): Delete.
1857         * completer.c: include language.h.
1858         (gdb_completer_word_break_characters): Delete.
1859         (get_gdb_completer_word_break_characters): Delete.
1860         (location_completer): Use the word break characters of the current
1861         language.
1862         (complete_line): Likewise.
1863         (line_completion_function): Likewise.
1864         (skip_quoted_chars): Likewise.
1865         * Makefile.in (completer.o): Add dependency on language.h.
1866         * top.c (init_main): Set the readline word break characters
1867         to GDB's default word break characters.
1868
1869 2003-10-06  J. Brobecker  <[email protected]>
1870
1871         * language.h (language_defn): new field, la_word_break_characters.
1872         * language.c (unknown_language_defn): Set new field to
1873         default_word_break_characters.
1874         (auto_language_defn): Likewise.
1875         (local_language_defn): Likewise.
1876         * ada-lang.c (ada_language_defn): Likewise.
1877         * c-lang.c (c_language_defn): Likewise.
1878         (cplus_language_defn): Likewise.
1879         (asm_language_defn): Likewise.
1880         (minimal_language_defn): Likewise.
1881         * f-lang.c (f_language_defn): Likewise.
1882         * jv-lang.c (java_language_defn): Likewise.
1883         * m2-lang.c (m2_language_defn): Likewise.
1884         * objc-lang.c (objc_language_defn): Likewise.
1885         * p-lang.c (pascal_language_defn): Likewise.
1886         * scm-lang.c (scm_language_defn): Likewise.
1887
1888 2003-10-06  Andrew Cagney  <[email protected]>
1889
1890         * ppc-sysv-tdep.c: Re-indent.
1891
1892 2003-10-06  J. Brobecker  <[email protected]>
1893
1894         * language.h (default_word_break_characters): Add prototype.
1895         * language.c (default_word_break_characters): New function.
1896
1897 2003-10-06  Andreas Schwab  <[email protected]>
1898
1899         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1900         with %eax.
1901
1902 2003-10-06  Andrew Cagney  <[email protected]>
1903
1904         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1905         "h8500-tdep.c".
1906         (z8k-tdep.o): Delete custom build rule.
1907
1908 2003-10-06  Andrew Cagney  <[email protected]>
1909
1910         * Makefile.in: Update all dependencies.
1911
1912         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
1913         No longer list PA as as obsolete candidate.  List m32r as
1914         broken instead of obsolete.
1915
1916         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
1917         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
1918         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
1919         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
1920         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
1921         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
1922         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
1923         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
1924         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
1925         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
1926         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
1927         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
1928         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
1929         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
1930         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
1931         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
1932         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
1933         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
1934         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
1935         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
1936         * config/z8k/z8k.mt: Ditto.
1937
1938         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
1939         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
1940         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
1941         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
1942         sparclite were removed.
1943         * configure.host, configure.tgt: Remove corresponding tuples.
1944
1945         * breakpoint.c, breakpoint.h: Remove obsolete code.
1946         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
1947         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
1948         * stabsread.h, xcoffread.c: Ditto.
1949
1950         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
1951         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
1952         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
1953         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
1954
1955 2003-10-06  David Lecomber  <[email protected]>
1956
1957         * f-valprint.c: Reformatting
1958
1959 2003-10-06  Mark Kettenis  <[email protected]>
1960
1961         * x86-64-tdep.c: Remove duplicate comment.
1962
1963         * x86-64-tdep.c (x86_64_store_return_value): Don't use
1964         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
1965         names for return values.  This fixes a bug since we looked at %rbx
1966         instead of %rdx.
1967
1968 2003-10-05  Mark Kettenis  <[email protected]>
1969
1970         * x86-64-tdep.c: Include "regset.h".
1971
1972         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
1973         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
1974         sizeof_fpregset.
1975         * i386-tdep.c: Include "regset.h".
1976         (i386_supply_gregset): New function.
1977         (i386_supply_fpregset): New function.
1978         (i386_gdbarch_init): Initialze register set-related members of
1979         TDEP.
1980         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
1981         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
1982
1983 2003-10-03  Andrew Cagney  <[email protected]>
1984
1985         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
1986         set extract_return_value, store_return_value and
1987         use_struct_convention to ppc64_sysv_abi_extract_return_value,
1988         ppc64_sysv_abi_store_return_value and
1989         ppc64_sysv_abi_use_struct_convention.
1990         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
1991         (ppc64_sysv_abi_store_return_value): Declare.
1992         (ppc64_sysv_abi_use_struct_convention): Declare.
1993         * ppc-sysv-tdep.c (enum return_value_convention): Define.
1994         (ppc64_sysv_abi_extract_return_value): New function.
1995         (ppc64_sysv_abi_store_return_value): New function.
1996         (ppc64_sysv_abi_use_struct_convention): New function.
1997         (ppc64_sysv_abi_return_value): New function.
1998
1999 2003-10-03  Andrew Cagney  <[email protected]>
2000
2001         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2002         convert a descriptor to a function when it's in the ".opd"
2003         section.
2004
2005 2003-10-03  Corinna Vinschen  <[email protected]>
2006
2007         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2008         reg_size to keep GCC silent.
2009
2010 2003-10-03  Corinna Vinschen  <[email protected]>
2011
2012         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2013         base for DW_EH_PE_textrel encodings.
2014         (read_encoded_value): Add a DW_EH_PE_textrel case.
2015         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2016         section.
2017
2018 2003-10-03  Mark Kettenis  <[email protected]>
2019
2020         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2021
2022 2003-10-02  Andrew Cagney  <[email protected]>
2023
2024         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2025         REGISTER_RAW_SIZE.
2026         * gdbarch.h, gdbarch.c: Re-generate.
2027         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2028         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2029         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2030         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2031         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2032         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2033         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2034         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2035         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2036         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2037         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2038         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2039         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2040         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2041         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2042         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2043
2044 2003-10-02  Jim Blandy  <[email protected]>
2045
2046         * dwarf2read.c (struct die_info): Doc fix.
2047
2048 2003-10-02  Corinna Vinschen  <[email protected]>
2049
2050         * sh-tdep.c: Running thru gdb_indent.sh.
2051
2052 2003-10-02  Corinna Vinschen  <[email protected]>
2053
2054         * sh-tdep.c (sh_justify_value_in_reg): New function.
2055         (sh_stack_allocsize): Ditto.
2056         (flt_argreg_array): New array used for floating point argument
2057         passing.
2058         (sh_init_flt_argreg): New function.
2059         (sh_next_flt_argreg): Ditto.
2060         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2061         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2062         Fix argument passing strategy.
2063         (sh_push_dummy_call_nofpu): Ditto.
2064
2065 2003-10-01  Andrew Cagney  <[email protected]>
2066
2067         * value.h (register_value_being_returned): Declare.  Replace
2068         "value_being_returned".
2069         * infcall.c (call_function_by_hand): Use
2070         register_value_being_returned.
2071         * infcmd.c (print_return_value): Call
2072         "register_value_being_returned", handle struct return locally.
2073         * values.c (register_value_being_returned): New function.  Replace
2074         "value_being_returned".
2075
2076 2003-09-30  Elena Zannoni  <[email protected]>
2077
2078         * linux-proc.c (linux_do_registers): New function.
2079         (linux_make_note_section): Use linux_do_registers in case of
2080         single threaded inferior programs.
2081
2082 2003-10-01  Andrew Cagney  <[email protected]>
2083
2084         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2085         use STRUCT_ADDR.  When not using "struct return convention", pass
2086         "0" to "value_being_returned".  Add FIXMEs.
2087         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2088         value_being_returned.  Add comments.
2089         * values.c (value_being_returned): Add fixme.
2090         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2091         (hppa_value_returned_from_stack): Add FIXME.
2092
2093 2003-09-30  David Carlton  <[email protected]>
2094
2095         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2096         'has_children' and 'next' by 'child' and 'sibling'.
2097         (read_comp_unit): Rework algorithm, breaking body into
2098         read_die_and_children and read_die_and_siblings.
2099         (read_die_and_children, read_die_and_siblings): New.
2100         (read_full_die): Add 'has_children' argument; set it instead of
2101         the die's 'has_children' field.  Minor formatting cleanup.
2102         (free_die_list): Use die->child and die->sibling instead of
2103         die->next.
2104         (dump_die_list): Ditto.
2105         (sibling_die): Use die->sibling.
2106         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2107         'has_children' and 'next' fields.
2108         (process_die, read_file_scope, read_func_scope)
2109         (read_lexical_block_scope, read_structure_scope)
2110         (read_enumeration, read_array_type, read_common_block)
2111         (read_namespace, read_subroutine_type, dump_die): Ditto.
2112
2113 2003-09-30  Andrew Cagney  <[email protected]>
2114
2115         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2116         to 224, not 220.
2117
2118 2003-09-30  Andrew Cagney  <[email protected]>
2119
2120         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2121         REGISTER_VIRTUAL_SIZE.
2122         * gdbarch.h, gdbarch.c: Regenerate.
2123         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2124         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2125         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2126
2127 2003-09-29  Andrew Cagney  <[email protected]>
2128
2129         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2130         REGISTER_VIRTUAL_TYPE.
2131         * gdbarch.h, gdbarch.c: Regenerate.
2132         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2133         * sh64-tdep.c, sparc-tdep.c: Update.
2134
2135         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2136         * remote-vxmips.c (vx_read_register): Ditto.
2137         * remote-vx68.c (vx_read_register): Ditto.
2138         * gnu-nat.c (inf_validate_procs): Ditto.
2139
2140 2003-09-29  J. Brobecker  <[email protected]>
2141
2142         * infcall.c (call_function_by_hand): Fix build failure
2143         introduced in the previous change to this file.
2144
2145 2003-09-29  Andrew Cagney  <[email protected]>
2146
2147         * NEWS: Mention Objective-C.
2148
2149 2003-09-29  Jerome Guitton  <[email protected]>
2150
2151         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2152         test if the register has been saved on the stack.
2153         (arm_scan_prologue_cache): When analysing the instruction
2154         "str lr, [sp, #-4]", save the address where lr has been stored.
2155
2156 2003-09-28  Andrew Cagney  <[email protected]>
2157
2158         * frame.c (frame_read_unsigned_register): Delete function.
2159         * frame.h (frame_read_unsigned_register): Delete declaration.
2160         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2161         get_frame_register_unsigned.
2162         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2163         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2164         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2165
2166         * frame.h (frame_read_register): Delete declaration.
2167         * frame.c (frame_read_register): Delete function.
2168         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2169         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2170         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2171         * mips-tdep.c (mips_register_to_value): Ditto.
2172         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2173         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2174
2175         * frame.c (frame_read_signed_register): Delete function.
2176         (frame_read_unsigned_register): Update comments.
2177         * frame.h (frame_read_signed_register): Delete declaration.
2178         * h8300-tdep.c (h8300_print_register): Use
2179         get_frame_register_signed.
2180         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2181
2182         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2183         Rename VALUE_RETURNED_FROM_STACK.
2184         * infcmd.c (print_return_value): Update.
2185         * infcall.c (call_function_by_hand): Update.
2186
2187 2003-09-28  Mark Kettenis  <[email protected]>
2188
2189         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2190         regcache argument and reverse the order of the other two
2191         arguments.  Remove local regcache variable.  Determine
2192         architecture from REGCACHE.  Update comments.
2193         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2194         reverse the order of the other two arguments.  Remove local
2195         regcache variable.  Determine architecture from REGCACHE.  Update
2196         comments.
2197         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2198         prototypes.  Update comments.
2199         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2200         comment.
2201         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2202         Update.
2203         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2204         * i386-interix-nat.c (supply_fpregset): Update.
2205         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2206         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2207         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2208         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2209         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2210         Update.
2211         * i386obsd-tdep.c (fetch_core_registers): Update.
2212         * i386v4-nat.c (supply_fpregset): Update.
2213         * x86-64-linux-nat.c (supply_fpregset): Update.
2214         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2215
2216 2003-09-27  Mark Kettenis  <[email protected]>
2217
2218         * i386-tdep.h: Put opaque declarations in alphabetical
2219         order.  Remove spurious whitespace.
2220         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2221         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2222         * i386-tdep.c (MM0_REGNUM): Remove define.
2223         (i386_mmx_regnum_p): Add gdbarch argument.
2224         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2225         Rewrite using new macro definitions for FPU/SSE registers.
2226         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2227         definitions from i387-tdep.h.
2228         (i386_register_name): Update.
2229         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2230         new macro definitions for FPU/SSE registers.
2231         (i386_extract_return_value): Determine whether floating-point
2232         registers are present by examining REGCACHE's architecture.
2233         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2234         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2235         FPU/SSE registers.
2236         (i386_register_type): Update.
2237         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2238         definitions for FPU registers.  Use REGCACHE's architecture to
2239         determine the appropriate register numbers.
2240         (i386_pseudo_register_read, i386_pseudo_register_write,
2241         i386_register_reggroup_p): Update.
2242         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2243         TDEP->mm0_regnum.
2244         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2245         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2246         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2247         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2248         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2249         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2250         *' to `void *'.
2251         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2252         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2253         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2254         definitions for FPU/SSE registers.
2255         (FXSAVE_MXCSR_ADDR): New define.
2256         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2257         TDEP->mm0_regnum.
2258         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2259         (I387_ST0_REGNUM): Define.
2260
2261         * regcache.h (get_regcache_arch): New prototype.
2262         * regcache.c (get_regcache_arch): New function.
2263
2264         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2265         whitespace.
2266
2267         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2268         Initialize using ARRAY_SIZE.
2269
2270 2003-09-27  Andrew Cagney  <[email protected]>
2271
2272         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2273         "init_frame_pc_default".
2274         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2275         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2276         * vax-tdep.c (vax_gdbarch_init): Update.
2277         * v850-tdep.c (v850_gdbarch_init): Update.
2278         * sh64-tdep.c (sh64_gdbarch_init): Update.
2279         * s390-tdep.c (s390_gdbarch_init): Update.
2280         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2281         * mcore-tdep.c (mcore_gdbarch_init): Update.
2282         * h8300-tdep.c (h8300_gdbarch_init): Update.
2283         * cris-tdep.c (cris_gdbarch_init): Update.
2284         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2285
2286 2003-09-26  Mark Kettenis  <[email protected]>
2287
2288         * regset.h: New file.
2289         * Makefile.in (regset_h): Add.
2290
2291 2003-09-25  Andrew Cagney  <[email protected]>
2292
2293         * frame.h (deprecated_frame_saved_regs): Rename
2294         get_frame_saved_regs.
2295         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2296         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2297         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2298         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2299         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2300
2301 2003-09-25  Andrew Cagney  <[email protected]>
2302
2303         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2304         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2305         and Java.
2306         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2307         arm*-*-* do not use the new frame code.
2308
2309 2003-09-25  David Carlton  <[email protected]>
2310
2311         * c-exp.y: Remove 'register' declarations.
2312         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2313
2314 2003-09-25  David Carlton  <[email protected]>
2315
2316         * c-exp.y: Include cp-support.h.  Add qualified_type.
2317         (yylex): Delete nested type hack; add comments.
2318         * cp-namespace.c (cp_lookup_nested_type): New function.
2319         * cp-support.h: Declare cp_lookup_nested_type.
2320         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2321         instead of value_struct_elt_for_reference.
2322         * valops.c: Include cp-support.h.
2323         (value_aggregate_elt): New function.
2324         (value_namespace_elt): Ditto.
2325         (value_struct_elt_for_reference): Make static.
2326         * value.h: Delete declaration of value_struct_elt_for_reference;
2327         add declaration for value_aggregate_elt.
2328         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2329         (valops.o): Ditto.
2330
2331 2003-09-25  Daniel Jacobowitz  <[email protected]>
2332
2333         * stack.c: Include "reggroups.h".
2334         (frame_info): Only display registers in all_reggroup.
2335         * Makefile.in (stack.o): Update dependencies.
2336
2337 2003-09-25  Jerome Guitton  <[email protected]>
2338
2339         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2340         "add ip, sp #n" in the prologue.
2341         (arm_scan_prologue): Ditto.
2342
2343 2003-09-25  Jerome Guitton  <[email protected]>
2344
2345         * MAINTAINERS (write after approval): Add myself.
2346
2347 2003-09-25  Andreas Schwab  <[email protected]>
2348
2349         * m68k-tdep.c: Include "dwarf2-frame.h".
2350         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2351         * Makefile.in (m68k-tdep.o): Update dependencies.
2352
2353 2003-09-25  Corinna Vinschen  <[email protected]>
2354
2355         * sh-tdep.c (struct frame_extra_info): Remove.
2356         (struct sh_frame_cache): New structure.
2357         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2358         (GET_TARGET_REG): Ditto but target register.
2359         (GET_PUSHED_REG): Remove.
2360         (IS_MOV_ARG_TO_REG): New macro.
2361         (IS_MOV_ARG_TO_IND_R14): New macro.
2362         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2363         (IS_MOVW_PCREL_TO_REG): New macro.
2364         (IS_MOVL_PCREL_TO_REG): New macro.
2365         (IS_SUB_REG_FROM_SP): New macro.
2366         (IS_ARG_MOV): Remove.
2367         (IS_MOV_TO_R14): Remove.
2368         (IS_RESTORE_FP): New macro.
2369         (IS_RTS): New macro.
2370         (IS_LDS): New macro.
2371         (IS_MOV_FP_SP): New macro.
2372         (IS_ADD_REG_TO_FP): New macro.
2373         (IS_ADD_IMM_FP): New macro.
2374         (sh_skip_prologue_hard_way): Remove.
2375         (sh_saved_pc_after_call): Remove.
2376         (sh_frame_chain): Remove.
2377         (sh_find_callers_reg): Remove.
2378         (sh_nofp_frame_init_saved_regs): Remove.
2379         (sh_fp_frame_init_saved_regs): Remove.
2380         (sh_init_extra_frame_info): Remove.
2381         (sh_analyze_prologue): New function.
2382         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2383         sh_analyze_prologue when after_prologue fails.
2384         (sh_frame_saved_pc): Remove.
2385         (sh_alloc_frame_cache): New function.
2386         (sh_frame_cache): Ditto.
2387         (sh_frame_prev_register): Ditto.
2388         (sh_frame_this_id): Ditto.
2389         (sh_frame_unwind): New structure defining the heuristic frame
2390         sniffer interface.
2391         (sh_frame_sniffer): New function.
2392         (sh_unwind_sp): Ditto.
2393         (sh_unwind_pc): Ditto.
2394         (sh_unwind_dummy_id): Ditto.
2395         (sh_frame_base_address): Ditto.
2396         (sh_frame_base): New structure defining new frame base code.
2397         (sh_in_function_epilogue_p): New function.
2398         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2399         code and to call all new code instead.  Initialize dwarf2 and
2400         heuristic frame sniffer.
2401
2402 2003-09-24  Paul N. Hilfinger  <[email protected]>
2403
2404         * parser-defs.h (struct exp_descriptor): New definition, containing
2405         language-specific info for printing, prefixifying, dumping, and
2406         evaluating expressions.
2407         (exp_descriptor_standard): Declare new variable.
2408         (print_subexp): Make global and declare here (from expprint.c).
2409         (dump_subexp): Ditto.
2410         (dump_subexp_body_standard): Declare.
2411         (operator_length_standard): Declare.
2412         (op_name_standard): Declare.
2413         (print_subexp): Declare.
2414         (print_subexp_standard): Declare.
2415
2416         * language.h (struct language_defn): Add la_exp_desc field to hold
2417         pointer to table for language-specific operators.
2418         Remove evaluate_exp field, which is now in struct exp_descriptor.
2419
2420         * parse.c (operator_length): Move most code to new
2421         operator_length_standard function.  Use language-specific information.
2422         (operator_length_standard): New function taking most code from
2423         operator_length.
2424         (exp_descriptor_standard): New constant.
2425
2426         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2427         and OP_EXTENDED_LAST.
2428
2429         * expprint.c (print_subexp): Use language-specific print_subexp.
2430         Make global; remove static declaration.
2431         Move most code to print_subexp_standard.
2432         (print_subexp_standard): New function, containing code formerly in
2433         print_subexp.
2434         (op_name): Add expression to argument signature.
2435         Use langauge-specific op_name.
2436         Move most code to op_name_standard.
2437         (op_name_standard): New function, containing code formerly in op_name.
2438         (dump_subexp):  Use new version of op_name function.
2439         Use language-specific dump_subexp_body, and move most existing code to
2440         dump_subexp_body_standard.
2441         (dump_raw_expression): Use new op_name interface.
2442         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2443         (dump_subexp_body_standard): New function, containing code formerly
2444         in dump_subexp_body.
2445
2446         * language.c (unknown_language): Add default la_exp_desc field and
2447         remove evaluate_exp field.
2448         (auto_language): Ditto.
2449         (local_language): Ditto.
2450         * f-lang.c (f_language_defn): Ditto.
2451         * c-lang.c (c_language_defn): Ditto.
2452         (cplus_language_defn): Ditto.
2453         (asm_language_defn): Ditto.
2454         (minimal_language_defn): Ditto.
2455         * p-lang.c (pascal_language_defn): Ditto.
2456         * m2-lang.c (m2_language_defn): Ditto.
2457         * objc-lang.c (objc_language_defn): Ditto.
2458
2459         * jv-lang.c (exp_descriptor_java): New variable, containing
2460         Java-specific expression evaluator.
2461         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2462         field.
2463         * scm-lang.c (exp_descriptor_scm): New variable, containing
2464         Scheme-specific expression evaluator.
2465         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2466         field.
2467         * objc-lang.c (print_object_command): Take evaluate_exp from the
2468         la_exp_desc field.
2469
2470         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2471
2472         * eval.c: Include parser-defs.h for the full declaration of
2473         la_exp_desc's type.
2474         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2475
2476 2003-09-23  Paul N. Hilfinger  <[email protected]>
2477
2478         * parser-defs.h (operator_length): Declare.
2479
2480         * parse.c (length_of_subexp): Use operator_length to get operator
2481         lengths and arities for operators.
2482         Move most code to new operator_length function.
2483         (operator_length): New function absorbing most code from
2484         length_of_subexp.
2485         (prefixify_subexp): Remove large case and use operator_length instead.
2486         (parse_exp_1): Use renamings:
2487         dump_prefix_expression => dump_raw_expression and
2488         dump_postfix_expression => dump_prefix_expression.
2489
2490         * expression.h (dump_prefix_expression): Rename to ...
2491         (dump_raw_expression): New name.
2492         (dump_postfix_expression): Rename to ...
2493         (dump_prefix_expression): New name.
2494
2495         * expprint.c (dump_subexp): Make global.  Add comment.
2496         Move most existing code to dump_subexp_body.
2497         (dump_subexp_body): New function.
2498         (dump_prefix_expression): Rename to dump_raw_expression.
2499         Remove attempt to print the expression via print_expression: it can't
2500         work before the expression is prefixified.
2501         (dump_raw_expression): Renamed from dump_prefix_expression.
2502         (dump_postfix_expression): Rename to dump_prefix_expression, since
2503         that's what it does.
2504         Remove 'note' parameter, since this routine must be used on
2505         prefixified expression.
2506         (dump_prefix_expression): Renamed from dump_postfix_expression.
2507
2508 2003-09-22  Jim Blandy  <[email protected]>
2509
2510         * dwarf2read.c (read_array_type): When building the type for an
2511         array of unspecified length, make sure to choose the upper bound
2512         so that the array's total length comes out to be zero --- that's
2513         how we represent such arrays.
2514
2515 2003-09-22  Michael Chastain  <[email protected]>
2516
2517         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2518
2519 2003-09-22  Jeff Johnston  <[email protected]>
2520
2521         * top.c (quit_force): Fix indirect call to quit_target so
2522         a struct qt_args pointer is passed.
2523
2524 2003-09-22  Andrew Cagney  <[email protected]>
2525
2526         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2527         * arch-utils.c (init_frame_pc_noop): Delete function.
2528         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2529         "init_frame_pc".
2530         * mips-tdep.c (mips_gdbarch_init): Ditto.
2531         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2532         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2533         declaration.
2534         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2535         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2536         declaration.
2537         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2538
2539 2003-09-22  Anthony Green  <[email protected]>
2540
2541         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2542         declaration.
2543
2544 2003-09-20  Andrew Cagney  <[email protected]>
2545
2546         * breakpoint.c: Eliminate ARGSUSED.
2547         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2548         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2549         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2550         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2551         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2552         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2553         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2554         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2555         * wince.c, remote-vx.c: Ditto.
2556
2557         * cli/cli-script.c: Remove "register" attributes.
2558         * config/pa/tm-hppa.h: Ditto.
2559         * cli/cli-decode.c: Ditto.
2560         * cli/cli-cmds.c: Ditto.
2561
2562 2003-09-19  Andrew Cagney  <[email protected]>
2563
2564         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2565         DEPRECATED_NPC_REGNUM.
2566         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2567
2568 2003-09-19  Christopher Faylor  <[email protected]>
2569
2570         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2571
2572 2003-09-19  Jim Blandy  <[email protected]>
2573
2574         * macrotab.c (macro_include): Use the correct comparison to find
2575         the appropriate place for this inclusion in the list.
2576
2577 2003-09-19  Andrew Cagney  <[email protected]>
2578
2579         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2580         (DEPRECATED_HPUX_TEXT_END): Define.
2581         (deprecated_hpux_text_end): Declare.
2582         (struct target_ops): Declare opaque.
2583         * hppah-nat.c (text_end): Make static.
2584         (deprecated_hpux_text_end): New function.
2585         * exec.c (text_end): Delete global variable.
2586         (NEED_TEXT_START_END): Do not define.
2587         (exec_file_attach): Replace code computing "text_end" code with
2588         call to DEPRECATED_HPUX_TEXT_END.
2589
2590 2003-09-19  Andrew Cagney  <[email protected]>
2591
2592         * utils.c (align_up, align_down): New functions.
2593         * defs.h (align_up, align_down): Declare.
2594         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2595         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2596         and "align_down".
2597         (round_up, round_down): Delete functions.
2598         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2599         "align_down".
2600         (ROUND_DOWN, ROUND_UP): Delete macros.
2601         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2602         * h8300-tdep.c: Replace "round_up" and "round_down" with
2603         "align_up" and "align_down".
2604         (round_up, round_down): Delete macros.
2605         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2606         "align_down".
2607         (ROUND_UP, ROUND_DOWN): Delete macros.
2608
2609 2003-09-18  J. Brobecker  <[email protected]>
2610
2611         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2612         hard-coded constant. Use the proper machine name instead.
2613
2614 2003-09-17  Andrew Cagney  <[email protected]>
2615
2616         * sparc-tdep.c (legacy_register_name): Delete function.
2617         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2618         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2619         * infcmd.c (gdb_register_name): Delete variable.
2620         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2621         REGISTER_NAME and "tm.h".
2622         * gdbarch.h, gdbarch.c: Regenerate.
2623         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2624         REGISTER_NAMES in comments.
2625         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2626         * m68klinux-nat.c (regmap): Ditto.
2627
2628 2003-09-17  Jim Blandy  <[email protected]>
2629
2630         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2631
2632 2003-09-17  Andrew Cagney  <[email protected]>
2633
2634         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2635         (ppcnbsd_init_abi): Set "use_struct_convention" to
2636         "ppcnbsd_use_struct_convention".
2637
2638 2003-09-17  Mark Kettenis  <[email protected]>
2639
2640         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2641         * gdbarch.h, gdbarch.c: Regenerate.
2642         (stabs_argument_has_addr): New architecture method.
2643         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2644         * arch-utils.c: Include "buildsym.h".
2645         (default_stabs_argument_has_addr): New function.
2646         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2647         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2648
2649 2003-09-17  Andrew Cagney  <[email protected]>
2650
2651         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2652         * gdbarch.h, gdbarch.c: Regenerate.
2653         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2654         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2655         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2656         * sparcnbsd-tdep.c: Update.
2657
2658 2003-09-17  Andrew Cagney  <[email protected]>
2659
2660         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2661         * gdbarch.h, gdbarch.c: Regenerate.
2662         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2663         * d10v-tdep.c, frame.c: Update.
2664         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2665         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2666         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2667         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2668         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2669         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2670         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2671         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2672         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2673         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2674         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2675         * config/pa/nm-hppah.h: Update.
2676
2677 2003-09-16  Andrew Cagney  <[email protected]>
2678
2679         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2680         "use_struct_convention" to "ppc_linux_use_struct_convention".
2681         (ppc_linux_use_struct_convention): New function.
2682         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2683         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2684         "rs6000_use_struct_convention".
2685         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2686         declaration.
2687         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2688         Delete function.
2689
2690 2003-09-16  Andrew Cagney  <[email protected]>
2691
2692         * buildsym.c: Remove more occurances of "register".
2693         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2694         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2695         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2696         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2697         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2698         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2699         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2700         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2701
2702 2003-09-16  Corinna Vinschen  <[email protected]>
2703
2704         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2705         numbers to enumeration values.
2706         * sh-tdep.c: Accomodate above change.
2707         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2708         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2709         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2710         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2711         (IS_FPUSH): Rename from IS_FMOV.
2712         (sh_extract_struct_value_address): Remove useless comment.
2713         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2714         instead of own local values.
2715         (sh_dump_tdep): Remove.
2716         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2717         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2718
2719 2003-09-15  Andrew Cagney  <[email protected]>
2720
2721         * doublest.c (convert_floatformat_to_doublest): No longer need to
2722         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2723
2724 2003-09-15  Daniel Jacobowitz  <[email protected]>
2725
2726         * values.c (unpack_double): Call floatformat_is_valid.
2727
2728 2003-09-15  Mark Kettenis  <[email protected]>
2729
2730         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2731         ps_strings into a long.
2732
2733         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2734         _initialize_am64fbsd_nat.
2735
2736 2003-09-15  Kevin Buettner  <[email protected]>
2737
2738         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2739         associated with DW_AT_ranges attribute is out of bounds.
2740
2741 2003-09-15  David Lecomber  <[email protected]>
2742
2743         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2744
2745 2003-09-14  Michael Chastain  <[email protected]>
2746
2747         * config/m68k/nm-apollo68v.h: Delete.
2748         * config/m68k/xm-apollo68v.h: Delete.
2749
2750 2003-09-14  Andrew Cagney  <[email protected]>
2751
2752         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2753         * dcache.c: Update copyrights and descriptions.
2754         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2755
2756 2003-09-14  Andrew Cagney  <[email protected]>
2757
2758         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2759         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2760
2761 2003-09-14  Andrew Cagney  <[email protected]>
2762
2763         * alpha-nat.c: Remove some occurances of "register".
2764         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2765         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2766         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2767         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2768         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2769         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2770         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2771         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2772         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2773         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2774         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2775         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2776         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2777         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2778         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2779         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2780         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2781         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2782         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2783         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2784         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2785         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2786
2787 2003-09-13  Andrew Cagney  <[email protected]>
2788
2789         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2790         * ppc-tdep.h (struct regcache): Declare opaque.
2791         * objfiles.h (struct objfile_data): Declare opaque.
2792         * cp-support.h (struct objfile): Declare opaque.
2793         * linux-nat.h (target_waitstatus): Declare opaque.
2794
2795 2003-09-14  Mark Kettenis  <[email protected]>
2796
2797         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2798         (stabs_argument_has_addr): New architecture method.
2799         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2800         * arch-utils.c: Include "buildsym.h".
2801         (default_stabs_argument_has_addr): New function.
2802         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2803         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2804
2805         * cris-tdep.c (cris_gdbarch_init): Set
2806         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2807         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2808         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2809         * mips-tdep.c (mips_gdbarch_init): Likewise.
2810         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2811         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2812
2813 2003-09-13  Andrew Cagney  <[email protected]>
2814
2815         * values.c (using_struct_return): Delete "function" and "funcaddr"
2816         parameters.
2817         * value.h (using_struct_return): Update declaration.
2818         * infcmd.c (finish_command_continuation): Update.
2819         (finish_command): Update.
2820         * infcall.c (call_function_by_hand): Update.
2821         * eval.c (evaluate_subexp_standard): Update.
2822
2823 2003-09-13  Christopher Faylor  <[email protected]>
2824
2825         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2826         SSE registers since gdb will not operate correctly without this.
2827         Restore include file ordering munged in previous change.
2828         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2829
2830 2003-09-13  Mark Kettenis  <[email protected]>
2831
2832         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2833         REG_STRUCT_HAS_ADDR.
2834         * gdbarch.c, gdbarch.h: Updated.
2835         * infcall.c (call_function_by_hand): Update.
2836         * stabsread.c (define_symbol): Updated.
2837
2838         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2839
2840 2003-09-12  Christopher Faylor  <[email protected]>
2841
2842         * win32-nat.c: Reorganize so that defines used by target headers are
2843         actually defined by the system headers.
2844         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2845         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2846
2847 2003-09-12  Jim Blandy  <[email protected]>
2848
2849         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2850         the file has no .data, .bss, or .rodata sections.  Instead wait
2851         until we see a variable alleged to live in one of those sections.
2852
2853         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2854         .bss section, presume that any variables we find live in the
2855         .rodata section.
2856
2857         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2858         offsets for global and static variables.
2859
2860         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2861         symbol types are, by definition, in the .data section, so it is
2862         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2863         If there is no .data section, there should be no N_DATA or N_DATA
2864         | N_EXT symbols.
2865
2866 2003-09-12  Mark Kettenis  <[email protected]>
2867
2868         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2869         (amd64fbsd_sigcontext_addr): Rewrite.
2870         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2871         with correct values.
2872         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2873         (amd64fbsd_init_abi): Fix typo.
2874
2875 2003-09-12  Andrew Cagney  <[email protected]>
2876
2877         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2878         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2879
2880 2003-09-12  Andrew Cagney  <[email protected]>
2881
2882         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2883         "entry_file_highpc".  Update comments.
2884         * defs.h (deprecated_inside_entry_file): Rename
2885         "inside_entry_file".
2886         * blockframe.c (deprecated_inside_entry_file): Rename
2887         "inside_entry_file".
2888         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2889         * vax-tdep.c (vax_frame_chain): Update.
2890         * sh64-tdep.c (sh64_frame_chain): Update.
2891         * sh-tdep.c (sh_frame_chain): Update.
2892         * rs6000-tdep.c (rs6000_frame_chain): Update.
2893         * ns32k-tdep.c (ns32k_frame_chain): Update.
2894         * mips-tdep.c (mips_frame_chain): Update.
2895         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2896         * m32r-tdep.c (m32r_frame_this_id): Update.
2897         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2898         * frv-tdep.c (frv_frame_this_id): Update.
2899         * d10v-tdep.c (d10v_frame_this_id): Update.
2900         * cris-tdep.c (cris_frame_chain): Update.
2901         * blockframe.c (legacy_frame_chain_valid): Update.
2902         * avr-tdep.c (avr_frame_this_id): Update.
2903         * arm-tdep.c (arm_prologue_this_id): Update.
2904         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2905         * objfiles.c (objfile_relocate): Update.
2906         * mipsread.c (mipscoff_symfile_read): Update.
2907         (mipscoff_symfile_read): Update.
2908         * mdebugread.c (parse_partial_symbols): Update.
2909         * dwarfread.c (read_file_scope): Update.
2910         * dwarf2read.c (read_file_scope): Update.
2911         * dbxread.c (read_dbx_symtab): Update.
2912         (read_dbx_symtab): Update.
2913         * coffread.c (complete_symtab): Update.
2914
2915 2003-09-12  Jeff Johnston  <[email protected]>
2916
2917         * top.c (quit_target): New static helper function.
2918         (quit_force): Moved code to quit_target().  Call quit_target()
2919         via catch_errors() to catch errors during quit.
2920
2921 2003-09-11  David Carlton  <[email protected]>
2922
2923         * buildsym.c (finish_block): Use allocate_block to allocate the
2924         block.
2925         * mdebugread.c (new_block): Add FIXME.
2926
2927 2003-09-11  David Carlton  <[email protected]>
2928
2929         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
2930         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
2931         (recursive_dump_type): Ditto.
2932         * printcmd.c (print_formatted): Ditto.
2933         * typeprint.c (print_type_scalar): Ditto.
2934         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
2935         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
2936         * cp-support.h: Declare cp_check_possible_namespace_symbols,
2937         maint_cplus_cmd_list.
2938         * cp-support.c: Make maint_cplus_cmd_list extern.
2939         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
2940         command.h.
2941         (lookup_symbol_file): Look in possible namespace blocks when
2942         appropriate.
2943         (initialize_namespace_symtab): New.
2944         (get_possible_namespace_block, free_namespace_block)
2945         (check_possible_namespace_symbols)
2946         (check_possible_namespace_symbols_loop)
2947         (check_one_possible_namespace_symbol)
2948         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
2949         (_initialize_cp_namespace): Ditto.
2950         * block.h: Declare allocate_block.
2951         * block.c (allocate_block): New.
2952         * jv-lang.c (get_java_class_symtab): Allocate blocks via
2953         allocate_block.
2954         * symfile.h: Update declaration of add_psymbol_to_list.
2955         * symfile.c (add_psymbol_to_list): Return the partial symbol in
2956         question.
2957         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
2958         scan_partial_symbols_call.
2959         (scan_partial_symbols): Add NAMESPACE argument; update calls to
2960         helper functions.
2961         (add_partial_symbol): If necessary, scan mangled names for names
2962         of namespaces.
2963         (add_partial_namespace): Add NAMESPACE argument; generate partial
2964         symbols associated  to namespaces.
2965         (add_partial_enumeration): Add NAMESPACE argument.
2966         (new_symbol): Allow namespace syms.
2967         (read_namespace): Generate namespace syms.
2968         * objfiles.h: Add opaque declaration of struct symtab.
2969         (struct objfile): Add cp_namespace_symtab member.
2970         * objfiles.c (allocate_objfile): Set
2971         objfile->cp_namespace_symtab.
2972         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
2973         dictionary_h, command_h.
2974
2975 2003-09-11  Andrew Cagney  <[email protected]>
2976
2977         * rs6000-tdep.c (rs6000_push_dummy_call): Use
2978         regcache_raw_write_signed to set SP_REGNUM, move the operation to
2979         near the function's end.
2980         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
2981         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
2982         regcache_raw_write_signed to set SP_REGNUM.
2983
2984 2003-09-11  Elena Zannoni  <[email protected]>
2985
2986         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
2987         orig_addrs is set up properly.
2988
2989 2003-09-11  Andrew Cagney  <[email protected]>
2990
2991         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
2992         * gdbarch.h, gdbarch.c: Re-generate.
2993         * infcall.c (call_function_by_hand): Update.
2994         * hppa-tdep.c (hppa_push_arguments): Update.
2995         * ada-lang.c (place_on_stack): Update.
2996         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2997         * sparc-tdep.c (sparc_gdbarch_init): Update.
2998         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2999         * hppa-tdep.c (hppa_gdbarch_init): Update.
3000         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3001         stack_align.
3002
3003 2003-09-11  Daniel Jacobowitz  <[email protected]>
3004
3005         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3006         register do need a frame.
3007
3008 2003-09-11  Andrew Cagney  <[email protected]>
3009
3010         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3011         buildable since GDB 5.0.
3012         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3013         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3014         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3015         * irix4-nat.c: Delete file.
3016         * config/mips/irix4.mh: Delete file.
3017         * config/mips/irix3.mh: Delete file.
3018         * config/mips/irix3.mt: Delete file.
3019         * config/mips/tm-irix3.h: Delete file.
3020         * config/mips/nm-irix3.h: Delete file.
3021         * config/mips/xm-irix3.h: Delete file.
3022         * config/mips/nm-irix4.h: Delete file.
3023         * config/mips/xm-irix4.h: Delete file.
3024         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3025
3026 2003-09-10  J. Brobecker  <[email protected]>
3027
3028         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3029         * Makefile.in (hppa-tdep.o): Update dependencies.
3030
3031 2003-09-10  James E Wilson  <[email protected]>
3032
3033         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3034         section.
3035
3036 2003-09-10  Kevin Buettner  <[email protected]>
3037
3038         * MAINTAINERS (frv): New ISA entry.
3039
3040 2003-09-10  Kevin Buettner  <[email protected]>
3041
3042         * frv-tdep.c (dis-asm.h): Include.
3043         * Makefile.in (frv-tdep.o): Update dependencies.
3044
3045 2003-09-09  Jeff Johnston  <[email protected]>
3046
3047         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3048         Fix typo for high range of floating registers.
3049
3050 2003-09-09  David Carlton  <[email protected]>
3051
3052         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3053         highpc initialization here out of scan_partial_symbols.
3054         (scan_partial_symbols): Restructure into a recursive version,
3055         calling add_partial_namespace and add_partial_enumeration when
3056         appropriate.
3057         (add_partial_namespace): New.
3058         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3059
3060 2003-09-09  Andrew Cagney  <[email protected]>
3061
3062         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3063         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3064         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3065         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3066
3067         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3068         (rs6000_push_dummy_call): Set the "TOC" register.
3069
3070         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3071         methods "max_register_raw_size", "max_register_virtual_size" or
3072         "register_virtual_size".
3073
3074 2003-09-09  Ian Lance Taylor  <[email protected]>
3075
3076         * MAINTAINERS: Update my e-mail address.
3077
3078 2003-09-09  Andrew Cagney  <[email protected]>
3079
3080         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3081         (rs6000_push_dummy_call): Store the struct return address.
3082         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3083
3084 2003-09-09  Andrew Cagney  <[email protected]>
3085
3086         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3087         "ppc_sysv_abi_push_arguments".
3088         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3089         "ppc_sysv_abi_push_arguments".
3090         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3091         instead of "push_arguments".
3092         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3093
3094 2003-09-09  Andrew Cagney  <[email protected]>
3095
3096         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3097         instead of CALL_DUMMY_ADDRESS.
3098
3099 2003-09-09  Paul N. Hilfinger  <[email protected]>
3100
3101         * p-lang.c: Eliminate "register".
3102         * c-lang.c: Ditto.
3103         * expprint.c: Ditto.
3104         * f-lang.c: Ditto.
3105         * jv-lang.c: Ditto.
3106         * language.c: Ditto.
3107         * m2-lang.c: Ditto.
3108         * parse.c: Ditto.
3109         * scm-lang.c: Ditto.
3110         * objc-lang.c: Ditto.
3111
3112 2003-09-09  Nick Clifton  <[email protected]>
3113
3114         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3115
3116 2003-09-04  Andrew Cagney  <[email protected]>
3117
3118         * avr-tdep.c: Include "dis-asm.h".
3119         * cris-tdep.c: Include "dis-asm.h".
3120         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3121         instead of corresponding typedef.
3122         * h8300-tdep.c: Include "dis-asm.h".
3123         * ia64-tdep.c: Include "dis-asm.h".
3124         * i386-tdep.c: Include "dis-asm.h".
3125         (i386_print_insn): Use "struct disassemble_info" instead of
3126         corresponding typedef.
3127         * m68k-tdep.c: Include "dis-asm.h".
3128         * mcore-tdep.c: Include "dis-asm.h".
3129         * mips-tdep.c: Include "dis-asm.h".
3130         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3131         instead of corresponding typedef.
3132         * ns32k-tdep.c: Include "dis-asm.h".
3133         * s390-tdep.c: Include "dis-asm.h".
3134         * sparc-tdep.c: Include "dis-asm.h".
3135         * vax-tdep.c: Include "dis-asm.h".
3136         * v850-tdep.c: Include "dis-asm.h".
3137         * mn10300-tdep.c: Include "dis-asm.h".
3138         * rs6000-tdep.c: Include "dis-asm.h".
3139         * xstormy16-tdep.c: Include "dis-asm.h".
3140         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3141         print_insn_xstormy16.
3142         * Makefile.in (v850-tdep.o): Update dependencies.
3143         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3144         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3145         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3146         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3147         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3148         (gdbarch_h): Remove $(dis_asm_h).
3149         * disasm.c: Include "dis-asm.h".
3150         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3151         corresponding typedef.
3152         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3153         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3154         * gdbarch.sh: Do not include "dis-asm.h".
3155         (struct disassemble_info): Declare opaque.
3156         (TARGET_PRINT_INSN): Update declaration.
3157         * gdbarch.h, gdbarch.c: Re-generate.
3158
3159 2003-09-08  Andrew Cagney  <[email protected]>
3160
3161         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3162         CALL_DUMMY_ADDRESS, change to a predicate.
3163         * gdbarch.h, gdbarch.c: Re-generate.
3164         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3165         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3166         * infcall.c (call_function_by_hand): Ditto.
3167         * sparc-tdep.c (sparc_push_return_address): Ditto.
3168         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3169         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3170         CALL_DUMMY_ADDRESS with entry_point_address.
3171         * v850-tdep.c (v850_push_return_address): Ditto.
3172         * s390-tdep.c (s390_push_return_address): Ditto.
3173         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3174         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3175         * mcore-tdep.c (mcore_push_return_address): Ditto.
3176         * cris-tdep.c (cris_push_return_address): Ditto.
3177         * arm-tdep.c (arm_push_return_address): Ditto.
3178
3179 2003-09-08  Andrew Cagney  <[email protected]>
3180
3181         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3182         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3183         and REG_UNMODIFIED to REG_SAME_VALUE.
3184         (execute_cfa_program): Update.
3185         (dwarf2_frame_cache): Update.  Initialize table to
3186         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3187         location.
3188         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3189
3190 2003-09-08  Andrew Cagney  <[email protected]>
3191
3192         * gnu-nat.c: Remove "inline" function attribute.
3193         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3194
3195 2003-09-08  Kevin Buettner  <[email protected]>
3196
3197         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3198         target.
3199
3200 2003-09-08  Kevin Buettner  <[email protected]>
3201
3202         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3203         (frame_extra_info): Rename this struct to frv_unwind_cache.
3204         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3205         Add fields ``prev_sp'' and ``base''.
3206         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3207         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3208         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3209         Delete.
3210         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3211         Revise all callers.  Fill in the unwind cache argument and make
3212         other adjustments to account for new frame mechanisms.
3213         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3214         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3215         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3216         (frv_frame_unwind, frv_frame_base): New structs.
3217         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3218         additional arguments expected by this method and adjust function
3219         body accordingly.
3220         (frv_gdbarch_init): Remove calls to the following functions:
3221         set_gdbarch_deprecated_init_frame_pc(),
3222         set_gdbarch_deprecated_saved_pc_after_call(),
3223         set_gdbarch_deprecated_frame_chain(),
3224         set_gdbarch_deprecated_frame_saved_pc(),
3225         set_gdbarch_deprecated_frame_init_saved_regs(),
3226         set_gdbarch_deprecated_push_arguments(),
3227         set_gdbarch_deprecated_push_return_address(),
3228         set_gdbarch_deprecated_pop_frame(),
3229         set_gdbarch_deprecated_call_dummy_words(),
3230         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3231         set_gdbarch_deprecated_init_extra_frame_info(),
3232         set_gdbarch_deprecated_dummy_write_sp(), and
3233         set_gdbarch_deprecated_pc_in_call_dummy().
3234         Add calls to the following functions:
3235         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3236         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3237         frame_base_set_default().
3238         * Makefile.in (frv-tdep.o): Update dependencies.
3239
3240 2003-09-09  Mark Kettenis  <[email protected]>
3241
3242         * dwarf2-frame.c (read_encoded_value): Add support for
3243         DW_EH_PE_aligned encoding.
3244
3245 2003-09-08  Daniel Jacobowitz  <[email protected]>
3246
3247         * infrun.c (normal_stop): Don't print a message if the inferior
3248         has exited.
3249
3250 2003-09-08  Jim Blandy  <[email protected]>
3251
3252         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3253         * dbxread.c: #include "gdb_assert.h".
3254         (read_dbx_symtab): If the objfile has no .data section, use the
3255         section index for the .bss section instead.
3256
3257 2003-09-08  Daniel Jacobowitz  <[email protected]>
3258
3259         * frame.c (deprecated_safe_get_selected_frame): New function.
3260         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3261         * findvar.c (read_var_value): Call it.
3262
3263 2003-09-08  Corinna Vinschen  <[email protected]>
3264
3265         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3266         (sh64-tdep.o): Add dependencies.
3267         * configure.tgt: Add FIXME to sh-*-linux*.
3268         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3269         (sh_gdbarch_init): Always set correct sh_show_regs function
3270         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3271         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3272         * sh64-tdep.c: New file, containing all sh64 related code from
3273         sh-tdep.c.
3274         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3275         * config/sh/linux.mt (TDEPFILES): Ditto.
3276         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3277         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3278         * config/sh/wince.mt (TDEPFILES): Ditto.
3279
3280 2003-09-07  Daniel Jacobowitz  <[email protected]>
3281
3282         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3283         (stop_wait_callback): Handle !lp->signalled also.
3284         (lin_lwp_has_pending, flush_callback): New functions.
3285         (lin_lwp_wait): Call flush_callback.
3286         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3287         (linux_proc_pending_signals): New function.
3288         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3289
3290 2003-09-07  Daniel Jacobowitz  <[email protected]>
3291
3292         From Nick Kelsey <[email protected]>:
3293         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3294         when the stop PC is at the beginning of a function also.
3295
3296 2003-09-06  Daniel Jacobowitz  <[email protected]>
3297
3298         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3299         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3300
3301 2003-09-06  Mark Kettenis  <[email protected]>
3302
3303         * sol-thread.c: Include "gdb_string.h".
3304
3305 2003-09-03  Mark Kettenis  <[email protected]>
3306
3307         * gcore.c: Reorder include files in alphabetical order.  Include
3308         "gdb_assert.h".  Various coding style fixes.
3309         (derive_stack_segment, derive_heap_segment): Replace check for
3310         non-null BOTTOM and TOP with gdb_assert.
3311         (derive_heap_segment): Replace check for successful creation of
3312         ZERO with gdb_assert.
3313         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3314
3315 2003-09-04  Andrew Cagney  <[email protected]>
3316
3317         * thread-db.c (verbose_dlsym): New function.
3318         (thread_db_load): Use verbose_dlsym
3319         (thread_db_new_objfile): Print that libthread_db was loaded, and
3320         that thread debugging was enabled.
3321
3322 2003-09-04  Andrew Cagney  <[email protected]>
3323
3324         * configure.tgt: Add "mips64*-*-*" target.  Delete
3325         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3326         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3327         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3328         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3329         mips*-sony-*, and mips64*-*-elf* targets.
3330         * config/mips/embedl.mt: Delete file.
3331         * config/mips/embedl64.mt: Delete file.
3332         * config/mips/mips.mt: Delete file.
3333         * config/mips/mips64.mt: Delete file.
3334         * config/mips/tm-embed.h: Delete file.
3335         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3336         * config/mips/embed64.mt: Delete out-of-date comment.
3337
3338 2003-09-04  Andrew Cagney  <[email protected]>
3339
3340         * hppa-tdep.c (hppa_gdbarch_init): Set
3341         "have_nonsteppable_watchpoint".
3342         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3343         * mips-tdep.c (mips_dump_tdep): Do not print
3344         HAVE_NONSTEPPABLE_WATCHPOINT.
3345         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3346         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3347         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3348         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3349
3350 2003-09-04  Corinna Vinschen  <[email protected]>
3351
3352         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3353         unused code.  Add comment.
3354
3355 2003-09-04  Corinna Vinschen  <[email protected]>
3356
3357         * breakpoint.c (watchpoint_check): Check for pc being in an
3358         epilogue if watchpoint frame couldn't be found.
3359
3360 2003-09-04  Andrew Cagney  <[email protected]>
3361
3362         * Makefile.in: Re-generate all dependencies.
3363
3364 2003-09-03  Andrew Cagney  <[email protected]>
3365
3366         * arch-utils.h (legacy_print_insn): Delete declaration.
3367         * arch-utils.c (legacy_print_insn): Delete function.
3368         * disasm.c (deprecated_tm_print_insn_info): Delete.
3369         (_initialize_disasm): Delete function, contained code initializing
3370         deprecated_tm_print_insn_info.
3371         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3372         (deprecated_tm_print_insn_info): Delete.
3373         (TARGET_PRINT_INSN): Do not provide a default.
3374         * gdbarch.h, gdbarch.c: Re-generate.
3375
3376 2003-09-03  Andrew Cagney  <[email protected]>
3377
3378         * disasm.c (fprintf_disasm): New function.
3379         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3380         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3381         reverts 2003-08-14 change.
3382         (_initialize_disasm): Call "init_disassemble_info", instead of
3383         INIT_DISASSEMBLE_INFO_NO_ARCH.
3384
3385 2003-09-03  Michael Snyder  <[email protected]>
3386
3387         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3388
3389 2003-09-03  Andrew Cagney  <[email protected]>
3390
3391         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3392         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3393         * symfile.c (syms_from_objfile): Update.
3394         (reread_symbols): `Update
3395         * exec.c (exec_file_attach): Update.
3396         (exec_file_attach): Update.
3397         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3398         2003-08-29 change.
3399         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3400
3401 2003-09-03  Daniel Jacobowitz  <[email protected]>
3402
3403         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3404         trad-frame.h.
3405         (arm_get_cache): Delete macro.
3406         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3407         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3408         to prev_sp.
3409         (thumb_scan_prologue): Update for cache changes.  Don't call
3410         DEPRECATED_PC_IN_CALL_DUMMY.
3411         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3412         argument and use it in desperation search for our prologue.  Do not
3413         search past the specified PC.
3414         (arm_make_prologue_cache): Simplify.
3415
3416         (arm_prologue_this_id, arm_prologue_prev_register)
3417         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3418         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3419         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3420         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3421         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3422
3423         (arm_frame_chain_valid, arm_find_callers_reg)
3424         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3425         (arm_pop_frame): Delete obsolete methods.
3426         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3427
3428         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3429         and sigtramp unwinders.  Set the default frame base method.
3430
3431         * Makefile.in (arm-tdep.o): Update dependencies.
3432         * varobj.c (find_frame_addr_in_frame_chain): Call
3433         get_frame_base_address.
3434         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3435
3436 2003-09-03  Daniel Jacobowitz  <[email protected]>
3437
3438         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3439         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3440         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3441         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3442         Take NEXT_FRAME and CACHE arguments.  Call
3443         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3444         Set unwound_pc in CACHE instead of modifying the frame argument.
3445         Don't bother checking the frame type when looking for sigtramp
3446         frames.
3447         (arm_make_prologue_cache, arm_frame_chain)
3448         (arm_init_extra_frame_info): New functions.
3449
3450 2003-09-03  Daniel Jacobowitz  <[email protected]>
3451
3452         * arm-tdep.c (arm_get_cache): Define.
3453         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3454         unwound_sp, unwound_pc, and saved_regs.
3455         (thumb_scan_prologue): Take a cache instead of the frame.
3456         (arm_scan_prologue): Likewise.
3457         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3458         instead of a temporary frame.
3459         (arm_init_extra_frame_info): Allocate and use a cache.
3460         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3461
3462 2003-09-03  Andrew Cagney  <[email protected]>
3463
3464         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3465         * config/mips/wince.mt (TM_CLIBS): Ditto.
3466         * config/sh/wince.mt (TM_CLIBS): Ditto.
3467         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3468         * config/sparc/sp64.mt (CC): Delete.
3469
3470 2003-09-03  Andrew Cagney  <[email protected]>
3471
3472         * defs.h: Do not include "arch-utils.h".
3473         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3474         GDB_MULTI_ARCH_PURE.
3475         * configure.in (GDB_MULTI_ARCH): Do not define.
3476         * configure, config.in: Regenerate.
3477         * configure.tgt: Do not set variable "gdb_multi_arch".
3478         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3479         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3480         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3481         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3482         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3483         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3484         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3485         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3486         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3487         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3488         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3489         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3490         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3491         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3492         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3493         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3494         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3495         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3496
3497 2003-08-30  Michael Chastain  <[email protected]>
3498
3499         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3500         * config/m68k/nm-hp300hpux.h: Delete.
3501         * config/m68k/tm-hp300hpux.h: Delete.
3502         * config/m68k/xm-hp300hpux.h: Delete.
3503         * config/m68k/xm-hp300bsd.h: Delete.
3504         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3505         tm-hp300hpux.h, xm-hp300hpux.h.
3506         * somsolib.c: Remove comment about hp300 shared libraries.
3507
3508 2003-08-31  Mark Kettenis  <[email protected]>
3509
3510         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3511         Only define PTRACE_GET_THREAD_AREA is not already defined.
3512         Various style fixes in code and comments and some additional
3513         spelling fixes in comments.  Move after functions dealing with
3514         debug registers.
3515         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3516         Fix coding-style.
3517
3518         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3519         frame_unwind_register_unsigned instead of
3520         frame_unwind_unsigned_register.
3521
3522 2003-08-30  Mark Kettenis  <[email protected]>
3523
3524         * configure.in: Search for gethostbyname in libnsl.
3525         * configure: Regenerated.
3526
3527 2003-08-29  Mark Kettenis  <[email protected]>
3528
3529         * configure.in: Remove redundant AC_MSG_RESULT in check for
3530         uintptr_t in stdint.h.
3531         * configure: Regenerated.
3532
3533         * amd64-nat.h (struct regcache): Add opaque declaration.
3534
3535         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3536         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3537         Change "register array" to "register cache" in comments.
3538         (x86_64_linux_gregset64_reg_offset): New variable.
3539         (GETREGS_SUPPLIES): Remove macro.
3540         (supply_gregset): Call amd64_supply_native_gregset instead of
3541         x86_64_linux_supply_gregset.
3542         (fill_gregset): Rename `regno' to `regnum'.  Call
3543         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3544         (store_regs): Rename `regno' to `regnum'.
3545         (store_fpregs): Rename `regno' to `regnum'.
3546         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3547         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3548         Reorganize function a bit.
3549         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3550         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3551         Reorganize function a bit.
3552         (_initialize_x86_64_linux_nat): New function.
3553         * config/i386/x86-64linux.mh.
3554
3555 2003-08-29  Andrew Cagney  <[email protected]>
3556
3557         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3558         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3559         (target_remove_watchpoint): Delete macro.
3560         (target_insert_watchpoint): Delete macro.
3561         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3562         (remote_mips_stopped_by_watchpoint): Delete declaration.
3563         (remote_mips_remove_watchpoint): Delete declaration.
3564         (remote_mips_set_watchpoint): Delete declaration.
3565         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3566         * remote-mips.c (_initialize_remote_mips): Set
3567         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3568         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3569         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3570         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3571         (mips_stopped_by_watchpoint): Rename
3572         remote_mips_stopped_by_watchpoint.
3573         (mips_can_hardware_watchpoint): Rename
3574         remote_mips_can_use_hardware_watchpoint, update function
3575         signature.
3576
3577 2003-08-29  Mark Kettenis  <[email protected]>
3578
3579         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3580         USER_DS.  We haven't given them a register number yet.
3581
3582         * amd64-nat.h: New file.
3583         * amd64-nat.c: New file.
3584         * amd64fbsd-nat.c: Include "amd64-nat.h".
3585         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3586         (amd64fbsd32_r_reg_offset): New variable.
3587         (supply_gregset): Simply call amd64_supply_native_gregset.
3588         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3589         amd64_collect_native_gregset.
3590         (fill_fpregset): Rename `regno' to `regnum'.
3591         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3592         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3593         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3594         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3595         supply_gregset.  Call x86_64_supply_fxsave instead of
3596         supply_fpregset.
3597         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3598         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3599         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3600         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3601         fill_gregset.  Call x86_64_collect_fxsave instead of
3602         fill_fpregset.
3603         (_initialize_am64fbsd_nat): Initialize
3604         amd64_native_gregset32_reg_offset and
3605         amd64_native_gregset64_reg_offset.
3606         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3607
3608         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3609         null pointer.  Fix typo in comment.
3610
3611         * regcache.c (supply_register): Reimplement to call
3612         regcache_raw_supply.
3613         (regcache_collect): Reimplement by calling regcache_raw_collect.
3614
3615 2003-08-28  Mark Kettenis  <[email protected]>
3616
3617         * regcache.c (register_buffer): Consitify first argument.
3618         (regcache_raw_supply, regcache_raw_collect): New
3619         functions.
3620
3621 2003-08-28  Daniel Jacobowitz  <[email protected]>
3622
3623         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3624         by Nathan J. Williams.
3625
3626 2003-08-28  Daniel Jacobowitz  <[email protected]>
3627
3628         * lin-lwp.c (wait_lwp): New function, copied from
3629         stop_wait_callback.  Clean up.
3630         (stop_wait_callback): Use wait_lwp.
3631
3632 2003-08-28  Andrew Cagney  <[email protected]>
3633
3634         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3635         flavour and disassembler options.
3636         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3637         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3638         deprecated_tm_print_insn_info.
3639
3640 2003-08-27  Andrew Cagney  <[email protected]>
3641
3642         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3643         Use target_read_memory.
3644         (s390_get_frame_info): Update.  Do not reference
3645         deprecated_tm_print_insn_info.
3646         (s390_check_function_end, s390_is_sigreturn): Ditto.
3647
3648 2003-08-27  Andrew Cagney  <[email protected]>
3649
3650         * Makefile.in (cris-tdep.o): Update dependencies.
3651         * cris-tdep.c: Include "gdb_assert.h".
3652         (cris_gdbarch_init): Set print_insn.
3653         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3654         (cris_delayed_get_disassembler): Simplify, directly call the
3655         disassembler returned by cris_get_disassembler.
3656         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3657         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3658         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3659         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3660         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3661         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3662         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3663         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3664         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3665         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3666         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3667         (gdb_print_insn_sparc): Delete function.
3668         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3669         deprecated_tm_print_insn_info.
3670         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3671         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3672         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3673         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3674         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3675         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3676         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3677         (s390_gdbarch_init): Set print_insn.
3678
3679 2003-08-27  Andrew Cagney  <[email protected]>
3680
3681         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3682         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3683         * infcall.c (call_function_by_hand): Convert the entry point
3684         address into a code address.
3685
3686 2003-08-27  Andrew Cagney  <[email protected]>
3687
3688         * dsrec.c: Include "gdb_string.h".
3689         * Makefile.in (dsrec.o): Update dependencies.
3690
3691 2003-08-27  Michael Chastain  <[email protected]>
3692
3693         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3694
3695 2003-08-27  Andrew Cagney  <[email protected]>
3696
3697         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3698         (alpha_osf1_init_abi): Do not set call_dummy_address.
3699
3700 2003-08-27  David Carlton  <[email protected]>
3701
3702         From Randolph Chung  <[email protected]>:
3703         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3704         compiles with -Wformat-nonliteral -Werror.
3705
3706 2003-08-26  Jim Blandy  <[email protected]>
3707
3708         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3709         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3710         bfd_lookup_symbol, since we only want symbols in code sections.
3711         (look_for_base): Pass zero as the SECT_FLAGS argument to
3712         bfd_lookup_symbol, since we're not concerned about which section
3713         the symbol is in.
3714
3715 2003-08-26  Jeff Johnston  <[email protected]>
3716
3717         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3718         we are frameless or the return address register is already known.
3719
3720 2003-08-26  Andrew Cagney  <[email protected]>
3721
3722         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3723         in size.  Add comments.
3724
3725 2003-08-26  Jeff Johnston  <[email protected]>
3726
3727         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3728         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3729
3730 2003-08-26  Jason Merrill  <[email protected]>
3731
3732         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3733         case out of #ifdef MIPS block.
3734
3735 2003-08-25  Daniel Jacobowitz  <[email protected]>
3736
3737         PR java/1322
3738         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3739         available before calling SECT_OFF_TEXT.
3740         * PROBLEMS: Remove description of java/1322.
3741
3742 2003-08-25  Jeff Johnston  <[email protected]>
3743
3744         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3745         bof, and nat0-nat127 as pseudo-registers.
3746         (ia64_frame_cache): New struct used to cache frame info.
3747         (ia64_register_reggroup_p): New routine used to override default
3748         register grouping so registers without names are still saved and
3749         restored.
3750         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3751         pseudo values.
3752         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3753         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3754         (ia64_alloc_frame_cache): New routine to create a new
3755         ia64_frame_cache.
3756         (examine_prologue): Change prototype to add next_frame pointer.
3757         Assume frameless until otherwise proven.  Verify that the cfm for
3758         current frame matches the cfm that should occur for the prologues
3759         alloc insn and if equal, mark as not frameless.  At end of routine,
3760         if not frameless, calculate registers for the previous frame and store
3761         in the cache, if a cache is provided.
3762         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3763         and pass 0 for next_frame.
3764         (ia64_store_return_value): Change to use convert_typed_floating()
3765         instead of calling ia64_convert_to_raw().
3766         (ia64_extract_return_value): Change to use convert_typed_floating()
3767         instead of calling ia64_convert_to_virtual().
3768         (ia64_frame_cache): New routine to support new frame model.
3769         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3770         (ia64_frame_sniffer): Ditto.
3771         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3772         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3773         (ia64_sigtramp_frame_prev_register): Ditto.
3774         (ia64_sigtramp_frame_sniffer): Ditto.
3775         (ia64_frame_base_address): Ditto.
3776         (ia64_extract_struct_value_address): Change to issue error message.
3777         (ia64_frame_align): New routine to align sp.
3778         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3779         (ia64_push_arguments): Removed.  Logic moved to
3780         ia64_push_dummy_call().
3781         (ia64_push_return_address): Ditto.
3782         (ia64_unwind_dummy_id): New function.
3783         (ia64_unwind_pc): Ditto.
3784         (ia64_convert_register_p): Ditto.
3785         (ia64_register_to_value): Ditto.
3786         (ia64_value_to_register): Ditto.
3787         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3788         (ia64_register_byte, ia64_register_raw_size): Ditto.
3789         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3790         (ia64_saved_pc_after_call): Ditto.
3791         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3792         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3793         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3794         (ia64_register_convert_to_raw): Ditto.
3795         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3796         (ia64_init_extra_frame_info): Ditto.
3797         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3798         (ia64_gdbarch_init): Remove registering of deprecated functions that
3799         are no longer used.  Add registration of new gdbarch functions.
3800         Remove registering deprecated_write_sp.  Replace
3801         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3802         Delete set_gdbarch_deprecated_register_convertible(),
3803         set_gdbarch_deprecated_register_convert_to_virtual(), and
3804         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3805         set_gdbarch_deprecated_register_size(),
3806         set_gdbarch_deprecated_register_bytes(),
3807         set_gdbarch_pcregnum(),
3808         set_gdbarch_deprecated_register_byte(),
3809         set_gdbarch_deprecated_register_raw_size(),
3810         set_gdbarch_deprecated_max_register_raw_size(),
3811         set_gdbarch_deprecated_register_virtual_size(),
3812         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3813         Replace set_gdbarch_deprecated_extract_return_value() with
3814         set_gdbarch_extract_return_value().  Remove calls to:
3815         set_gdbarch_deprecated_saved_pc_after_call();
3816         set_gdbarch_deprecated_frame_chain(),
3817         set_gdbarch_deprecated_frame_saved_pc(),
3818         set_gdbarch_deprecated_frame_init_saved_regs(),
3819         set_gdbarch_deprecated_get_saved_register(),
3820         set_gdbarch_deprecated_call_dummy_words(),
3821         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3822         set_gdbarch_deprecated_init_extra_frame_info(),
3823         set_gdbarch_deprecated_frame_args_address(),
3824         set_gdbarch_deprecated_frame_locals_address(),
3825         and set_gdbarch_deprecated_dummy_write_sp().
3826         Add set_gdbarch_convert_register_p(),
3827         set_gdbarch_register_to_value(),
3828         set_gdbarch_value_to_register(),
3829         set_gdbarch_push_dummy_call(),
3830         set_gdbarch_frame_align(),
3831         set_gdbarch_unwind_dummy_id(),
3832         set_gdbarch_unwind_pc(),
3833         frame_unwind_append_sniffer(),
3834         frame_unwind_append_sniffer(),
3835         and frame_base_set_default().
3836
3837 2003-08-25  Chris Demetriou  <[email protected]>
3838
3839         * configure.tgt: Document need for special "mipsisa64" handling.
3840         (mipsisa64*-*-linux64): Handle as target linux64.
3841         (mipsisa64*-*-*): Handle as target embed64.
3842
3843 2003-08-18  Michael Chastain  <[email protected]>
3844
3845         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3846         objfile bug.
3847
3848 2003-08-24  Mark Kettenis  <[email protected]>
3849
3850         * i387-tdep.h: Update copyright date.
3851         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3852
3853         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3854         CFLAGS games to reflect reality.
3855
3856 2003-08-24  Andrew Cagney  <[email protected]>
3857
3858         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3859         GDB_MULTI_ARCH is always non-zero.
3860         * osabi.c (_initialize_gdb_osabi): Ditto.
3861         (gdbarch_init_osabi): Ditto.
3862         * sparc-tdep.c: Ditto for #if code.
3863
3864 2003-08-23  Mark Kettenis  <[email protected]>
3865
3866         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3867         Update comments.
3868         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3869         comments.
3870         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3871         x86_64_supply_fxsave.
3872         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3873         x86_64_supply_fxsave.
3874         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3875         x86_64_supply_fxsave.
3876
3877 2003-08-23  Andreas Jaeger  <[email protected]>
3878
3879         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3880         i387_supply_fxsave.
3881
3882 2003-08-23  Mark Kettenis  <[email protected]>
3883
3884         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3885         i387_supply_register.
3886         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3887         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3888         i387_supply_fsave.
3889         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3890         i387_supply_fxsave.
3891         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3892         i387_supply_fsave.
3893         * i386bsd-nat.c (supply_fpregset): Adjust call to
3894         i387_supply_fsave.
3895         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3896         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3897         supply_fpregset.
3898         (store_inferior_registers): Remove extraneous whitespace.  Call
3899         i387_fill_fsave instead of fill_fpregset.
3900         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3901         (supply_fpregset): Likewise.
3902         * i386v4-nat.c (supply_fpregset): Adjust call to
3903         i387_supply_fsave.
3904         * i386-interix-nat.c (supply_fpregset): Adjust call to
3905         i387_supply_fsave.
3906         * i386-linux-nat.c (supply_fpregset): Adjust call to
3907         i387_supply_fsave.
3908         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
3909         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
3910         i387supply_fsave and i387_supply_fxsave.
3911         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
3912         Incorporate code from `i387_supply_register.
3913         (i387_supply_register): Remove.
3914         (i387_supply_fxsave): Add `regnum' argument.
3915         Update comments.
3916         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
3917         prototype.
3918         (i387_supply_register): remove prototype.
3919         Update comments.
3920
3921 2003-08-22  Michael Chastain  <[email protected]>
3922
3923         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
3924         Add lines for files in gdb/testsuite/gdb.cp/* that are
3925         still not 8.3 unique.
3926
3927 2003-08-22  Daniel Jacobowitz  <[email protected]>
3928
3929         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
3930         TYPE_VPTR_FIELDNO is valid.
3931
3932 2003-08-19  Mark Kettenis  <[email protected]>
3933
3934         * utils.c (set_width_command): Remove prototypes.
3935         (set_screen_size): New prototype.
3936         (init_page_info): Simplify by fetching the screen size from
3937         Readline.  Call set_screen_size.
3938         (set_screen_size): New function.
3939         (set_width): Add missing whitespace in comment.
3940         (set_width_command): Call set_screen_size.
3941         (set_height_command): New function.
3942         (initialize_utils): Fix formatting.  Make "set height" command
3943         call set_height_command.  Remove redundant code that turns off
3944         pagination if output isn't a terminal.  Remove redundant call to
3945         set_width_command.
3946
3947 2003-08-22  Mark Kettenis  <[email protected]>
3948
3949         * sparc64-tdep.h (sparc64_regnum): Fix comment.
3950         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
3951         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
3952         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
3953         `case' keyword.
3954         (sparc64_register_info): Give the reister with number
3955         SPARC64_STATE_REGNUM a name.
3956         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
3957         %asi and %ccr.
3958         (sparc64_push_dummy_call): Take BIAS into account when checking
3959         stcak alignment.
3960         (sparc_software_single_step): Remove assertions that check whether
3961         NPC and NNPC were zero.
3962         (sparc_supply_rwindow): Make public.  Merge functionality with
3963         sparc64_supply_rwindow.
3964         (sparc_fill_rwindow): Make public.  Merge functionality with
3965         sparc64_fill_rwindow.
3966         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
3967         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
3968         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
3969         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
3970         sparc_supply_rwindow instead of sparc64_supply_rwindow.
3971
3972         * reggroups.c: Add whitespace after declarations of local
3973         variables in functions.
3974
3975 2003-08-21  Michael Chastain  <[email protected]>
3976
3977         * gdbtypes.h: Change array bound type from an int to enum.
3978
3979 2003-08-21  Andrew Cagney  <[email protected]>
3980
3981         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
3982         * config/sparc/tm-sparc.h: Ditto.
3983         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
3984         unconditionally.
3985         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
3986
3987 2003-07-13  Mark Kettenis  <[email protected]>
3988
3989         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
3990         (register_objfile_data, set_objfile_data, objfile_data): New
3991         prototypes.
3992         * objfiles.c (objfile_alloc_data, objfile_free_data): New
3993         prototypes.
3994         (allocate_objfile): Call objfile_alloc_data.
3995         (free_objfile): Call objfile_free_data.
3996         (struct objfile_data): New.
3997         (struct objfile_data_registration): New.
3998         (struct objfile_data_registry): New.
3999         (objfile_data_registry): New variable.
4000         (register_objfile_data): New function.
4001         (objfile_alloc_data, objfile_free_data): New functions.
4002         (set_objfile_data, objfile_data): New functions.
4003         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4004         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4005         (_initialize_dwarf2_frame): New function and prototype.
4006
4007 2003-08-21  Andrew Cagney  <[email protected]>
4008
4009         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4010         a specific architecture.
4011         * arch-utils.h (set_architecture_from_arch_mach): Delete
4012         declaration.
4013         (target_architecture_hook): Delete declaration.
4014         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4015         (default_float_format): Assume GDB_MULTI_ARCH.
4016         (default_double_format): Assume GDB_MULTI_ARCH.
4017         (set_endian_from_file): Delete function.
4018         (arch_ok): Delete function.
4019         (set_arch): Delete function.
4020         (set_architecture_from_arch_mach): Delete function.
4021         (set_architecture_from_file): Delete function.
4022         (set_architecture): Assume GDB_MULTI_ARCH.
4023         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4024
4025 2003-08-21  Mark Kettenis  <[email protected]>
4026
4027         Rewrite FreeBSD/sparc64 native configuration.
4028         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4029         * sparc64fbsd-nat.c: New file.
4030         * sparc64fbsd-tdep.c: New file.
4031         * sparc64-tdep.c sparc64-tdep.h: New files.
4032         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4033         sparc64fbsd-tdep.o): New dependencies.
4034         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4035         and sparc64fbsd-tdep.c.
4036         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4037         * config/sparc/fbsd.mh: Remove copyright notice.
4038         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4039         sparcbsd-nat.o.
4040         * config/sparc/fbsd.mt: Remove copyright notice.
4041         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4042         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4043         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4044         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4045         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4046         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4047         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4048         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4049         "sparc/tm-sp64.h".
4050         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4051         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4052
4053 2003-08-21  Michael Chastain  <[email protected]>
4054
4055         * symtab.h: Add doco on the space critical structures and
4056         some measurements of space usage.
4057
4058 2003-08-21  Michael Snyder  <[email protected]>
4059
4060         * tracepoint.c (trace_dump_command): Trace break address
4061         is subject to DECR_PC_AFTER_BREAK.
4062         (set_traceframe_context): Make "trace_line" an int.
4063         Fixes suggested by Mark Newman  <[email protected]>
4064
4065 2003-08-20  Michael Snyder  <[email protected]>
4066
4067         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4068         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4069         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4070         argument passing.
4071         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4072         functions, replace sh_push_dummy_call.
4073         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4074
4075 2003-08-20  Michael Chastain  <[email protected]>
4076
4077         * gdbtypes.h (struct main_type): Rearrange to save space.
4078
4079 2003-08-20  Michael Snyder  <[email protected]>
4080
4081         * trad-frame.c: Comment typo fix.
4082
4083 2003-08-20  Michael Snyder  <[email protected]>
4084             Kevin Buettner  <[email protected]>
4085
4086         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4087         (frv_frame_init_saved_regs): Add declaration.
4088         (frame_extra_info): Add new field ``saved_regs''.
4089         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4090         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4091         Update frame related code.
4092         (frv_extract_struct_value_address): Adjust formatting.
4093         * Makefile.in (frv-tdep.o): Update dependencies.
4094         * config/frv/tm-frv.h (target_insert_watchpoint)
4095         (target_remove_watchpoint, target_insert_hw_breakpoint)
4096         (target_remove_hw_breakpoint): Delete these macros.
4097         (remote_insert_watchpoint, remote_remove_watchpoint)
4098         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4099         these declarations.
4100
4101 2003-08-20  Michael Chastain  <[email protected]>
4102
4103         * defs.h (ENUM_BITFIELD): New macro.
4104         * symtab.h (ENUM_BITFIELD): Use it.
4105         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4106
4107 2003-08-19  Shrinivas Atre <[email protected]>
4108
4109         * MAINTAINERS (write after approval): Add myself.
4110
4111 2003-08-18  Andrew Cagney  <[email protected]>
4112
4113         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4114         * gdbarch.h, gdbarch.c: Re-generate.
4115         * infcall.c (call_function_by_hand): Adjust the SP by
4116         frame_red_zone_size before allocating any stack space.
4117         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4118         * x86-64-tdep.c (x86_64_frame_align): New function.
4119         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4120
4121         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4122         Remove code adjusting SP so that it skips over the Red Zone.
4123
4124 2003-08-18  Mark Kettenis  <[email protected]>
4125
4126         * NEWS (New native configurations): Mention FreeBSD/amd64.
4127
4128 2003-08-18  Andrew Cagney  <[email protected]>
4129
4130         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4131         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4132         "m68k_frame_p".
4133         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4134
4135 2003-08-18  Mark Kettenis  <[email protected]>
4136
4137         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4138
4139 2003-08-18  Michal Ludvig  <[email protected]>
4140
4141         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4142         Define.
4143         * i386-linux-nat.c: Include "linux-nat.h".
4144         (child_post_startup_inferior): New function.
4145
4146 2003-08-18  Mark Kettenis  <[email protected]>
4147
4148         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4149         at the start of a frameless function.  This probably fixes PR
4150         backtrace/1338.
4151
4152 2003-08-17  Michael Chastain  <[email protected]>
4153
4154         * symfile.c (find_sym_fns): Remove special case for apollo target.
4155
4156 2003-08-17  Daniel Jacobowitz  <[email protected]>
4157
4158         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4159         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4160         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4161         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4162         (linux_supports_tracevforkdone): New function.
4163         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4164         TRACEVFORKDONE.
4165         (child_follow_fork): Handle vfork.
4166         (linux_handle_extended_wait): Likewise.  Also handle exec.
4167         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4168         * NEWS: Mention fork tracing.
4169
4170 2003-08-17  Daniel Jacobowitz  <[email protected]>
4171
4172         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4173
4174 2003-08-17  Daniel Jacobowitz  <[email protected]>
4175
4176         * Makefile.in (i386-linux-nat.o): Update dependencies.
4177         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4178         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4179         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4180         * i386-linux-nat.c: Include "linux-nat.h".
4181         (child_post_startup_inferior): New function.
4182         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4183         * infptrace.c (kill_inferior): Wrap in #ifdef.
4184         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4185         attaching to each LWP.
4186         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4187         (init_lin_lwp_ops): Fill in some more operations.
4188         * linux-nat.h (linux_enable_event_reporting)
4189         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4190         prototypes.
4191         * linux-nat.c (linux_enable_event_reporting): New function.
4192         (child_post_attach, linux_child_post_startup_inferior)
4193         (child_post_startup_inferior, child_follow_fork)
4194         (linux_handle_extended_wait, kill_inferior): New functions.
4195
4196 2003-08-16  Andrew Cagney  <[email protected]>
4197
4198         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4199         * gdbarch.h, gdbarch.c: Re-generate.
4200
4201 2003-08-16  Mark Kettenis  <[email protected]>
4202
4203         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4204
4205 2003-08-16  Andrew Cagney  <[email protected]>
4206
4207         * NEWS: Mention that "set prompt-escape-char" was deleted.
4208         * top.c (get_prompt_1): Delete function.
4209         (gdb_prompt_escape):
4210         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4211         prompt-escape-char" command.
4212         (MAX_PROMPT_SIZE): Delete macro.
4213         (get_prompt): Simplify, do not call get_prompt_1.
4214
4215 2003-08-16  Andrew Cagney  <[email protected]>
4216
4217         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4218         -Werror.  -Wformat-nonliteral problems.
4219
4220 2003-08-15  J. Brobecker  <[email protected]>
4221
4222         Further multiarching work mostly for hppa64-*-hpux11:
4223         * hppa-tdep.h: New file.
4224         * hppa-tdep.c: #include hppa-tdep.c.
4225         (hppa32_num_regs): Renamed from hppa_num_regs.
4226         (hppa64_num_regs): New constant.
4227         (hppa64_call_dummy_breakpoint_offset): New constant.
4228         (hppa32_call_dummy_length): New constant.
4229         (hppa64_call_dummy_length): New constant.
4230         (hppa32_stack_align): Make name 32bit explicit.
4231         (hppa32_register_virtual_type): Likewise.
4232         (hppa32_extract_return_value): Likewise.
4233         (hppa32_use_struct_convention): Likewise.
4234         (hppa32_store_return_value): Likewise.
4235         (hppa64_register_virtual_type): New function.
4236         (hppa64_extract_return_value): New function.
4237         (hppa64_use_struct_convention): New function.
4238         (hppa64_store_return_value): New function.
4239         (hppa_frame_locals_address): Remove declaration, function does
4240         not exist anymore.
4241         (hppa_register_byte): Add support for PA64 ABI.
4242         (hppa_gdbarch_init): Add support for PA64 ABI.
4243         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4244         Make name 32bit explicit.
4245         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4246         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4247         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4248         (hppa64_hpux_frame_base_before_sigtramp): New function.
4249         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4250         * config/pa/tm-hppa64.h: Remove macros that are no longer
4251         necessary now that the gdbarch vector is properly setup.
4252         Transform some macros into function calls. Some minor cleanup.
4253         * config/pa/tm-hppah.h: Update function calls in macros
4254         following the function renaming in hppa-hpux-tdep.c.
4255         * Makefile.in (hppa_tdep_h): New variable.
4256         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4257
4258 2003-08-14  Michael Snyder  <[email protected]>
4259
4260         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4261
4262 2003-08-13  J. Brobecker  <[email protected]>
4263
4264         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4265         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4266         routine.
4267
4268 2003-08-13  Michael Snyder  <[email protected]>
4269
4270         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4271         (frv_saved_pc_after_call): Use deprecated ftype.
4272         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4273         (frv_remote_translate_xfer_address): Remove.
4274         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4275
4276 2003-08-13  J. Brobecker  <[email protected]>
4277
4278         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4279         initialization after the common gdbarch initialization, not before.
4280
4281 2003-08-13  J. Brobecker  <[email protected]>
4282
4283         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4284         (ADDR_BITS_REMOVE): Remove, redundant.
4285
4286 2003-08-13  J. Brobecker  <[email protected]>
4287
4288         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4289         gdbarch method to clear the 2 low bits of text addresses.
4290
4291 2003-08-12  Andrew Cagney  <[email protected]>
4292
4293         * Makefile.in (dsrec.o): Update dependencies.
4294         * dsrec.c: Include "gdb_assert.h".
4295         (make_srec): Use snprintf instead of sprintf, use a literal format
4296         string.
4297
4298 2003-08-12  Andrew Cagney  <[email protected]>
4299
4300         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4301         FRAME_OBSTACK_ZALLOC.
4302
4303 2003-08-12  Kevin Buettner  <[email protected]>
4304
4305         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4306         SSE registers.
4307
4308 2003-08-10  Mark Kettenis  <[email protected]>
4309
4310         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4311         amd64fbsd_sc_reg_offset): Add extern declarations.
4312         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4313         declarations.
4314
4315 2003-08-11  Ben Elliston  <[email protected]>
4316
4317         * MAINTAINERS (write after approval): Update my mail address.
4318
4319 2003-08-10  Andrew Cagney  <[email protected]>
4320
4321         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4322
4323 2003-08-10  Mark Kettenis  <[email protected]>
4324
4325         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4326         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4327         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4328         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4329         i386bsd_sc_reg_offset): Add extern declarations.
4330         * i386obsd-nat.c: Include "i386-tdep.h"
4331         (_initialize_i386obsd_nat): Remove extern declarations.
4332         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4333         declarations.
4334         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4335         declarations.
4336
4337         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4338         instead of frame_read_register.
4339         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4340         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4341         SP_REGNUM.
4342         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4343         instead of frame_unwind_unsigned_register.  Use
4344         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4345         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4346         instead of read_register.  Use builtin_type_void_data_ptr instead
4347         of builtin_type_void_func_ptr when extracting the address of the
4348         jmp_buf.
4349         (i386_extract_return_value, i386_store_return_value,
4350         i386_pseudo_register_read, i386_pseudo_register_write): Use
4351         register_size instead REGISTER_RAW_SIZE.
4352
4353 2003-08-10  Andrew Cagney  <[email protected]>
4354
4355         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4356         sprintf.  Make "name" constant.
4357
4358 2003-08-10  Mark Kettenis  <[email protected]>
4359
4360         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4361         instead of frame_read_register.
4362         (i387_print_float_info): Use get_frame_register and
4363         get_frame_register_unsigned instead of frame_register_read.
4364
4365         * i386fbsd-nat.c: Include "i386-tdep.h".
4366         (child_resume): Make `eflags' an ULONGEST.  Use
4367         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4368         instead of register_read and register_write.
4369
4370         * i386bsd-nat.c (fetch_inferior_registers,
4371         store_inferior_registers): Don't use && at the end of a line.
4372         (_initialize_i386bsd_nat): Fix typo.
4373
4374         * frame.c (_initialize_frame): Add missing backslash.
4375
4376         From Peter Schauer ([email protected]):
4377         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4378         and supply_register instead of manipulating the register buffer
4379         directly.
4380
4381         From Peter Schauer ([email protected]):
4382         * config/i386/nm-i386sol2.h
4383         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4384
4385         Based on a patch from Michael Elizabeth Chastain ([email protected]):
4386         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4387         instructions that GCC likes to mingle into the prologue.  Fixes
4388         gdb/1253 and gdb/1255.
4389
4390 2003-08-09  Andrew Cagney  <[email protected]>
4391
4392         Fix GDB PR cli/926.
4393         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4394         * command.h (add_setshow_uinteger_cmd): Declare.
4395         * frame.c (set_backtrace_cmd): New function.
4396         (show_backtrace_cmd): New function.
4397         * frame.c (_initialize_frame): Replace "set/show
4398         backtrace-below-main" with "set/show backtrace past-main".  Add
4399         command "set/show backtrace limit".
4400         (backtrace_past_main): Rename "backtrace_below_main".
4401         (backtrace_limit): New variable.
4402         (get_prev_frame): Update.  Check the backtrace_limit.
4403
4404 2003-08-09  Andrew Cagney  <[email protected]>
4405
4406         * defs.h (xstrprintf): Declare.
4407         * utils.c (xstrprintf): New function.
4408         * breakpoint.c (insert_breakpoints): Replace sprintf and
4409         non-literal format strings, with xstrprintf and cleanups.
4410         (delete_breakpoint,breakpoint_re_set): Ditto.
4411         (commands_command, insert_breakpoints): Ditto.
4412         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4413         (break_at_finish_command_1): Ditto.
4414
4415 2003-08-09  Andrew Cagney  <[email protected]>
4416
4417         * MAINTAINERS (language support): List Adam Fedor as Objective C
4418         maintainer.
4419
4420 2003-08-08  J. Brobecker  <[email protected]>
4421
4422         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4423         are now multiarched.
4424
4425 2003-08-08  J. Brobecker  <[email protected]>
4426
4427         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4428         longer necessary now that hppa64 is partially multiarch'ed.
4429
4430 2003-08-08  Andrew Cagney  <[email protected]>
4431
4432         * interps.c (interp_set): Check for a NULL "old_interp".
4433
4434 2003-08-08  H.J. Lu  <[email protected]>
4435
4436         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4437         (install-only): Support DESTDIR.
4438         (uninstall): Likewise.
4439         (install-gdbtk): Likewise.
4440
4441 2003-08-08  Elena Zannoni  <[email protected]>
4442
4443         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4444         contains something meaningful at all times.
4445
4446 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <[email protected]>
4447
4448         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4449
4450 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <[email protected]>
4451
4452         * MAINTAINERS (write after approval): Added self.
4453
4454 2003-08-07  Andrew Cagney  <[email protected]>
4455
4456         * inferior.h (AT_SYMBOL): Define.
4457         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4458         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4459         * mips-tdep.c (mips_call_dummy_address): Delete function.
4460         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4461         set call_dummy_address.
4462
4463 2003-08-07  Andrew Cagney  <[email protected]>
4464
4465         * language.c (op_error): Delete function.
4466         (binop_type_check): Delete function.
4467         * language.h (type_op_error, range_op_error): Delete macros.
4468         (op_error): Delete declaration.
4469
4470 2003-08-07  Andrew Cagney  <[email protected]>
4471
4472         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4473
4474 2003-08-07  Michal Ludvig  <[email protected]>
4475
4476         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4477         (x86_64_push_arguments): Skip the red zone.
4478
4479 2003-08-05  Andrew Cagney  <[email protected]>
4480
4481         * reggroups.c (reggroup_next): Check for the final entry.
4482
4483 2003-08-04  Andrew Cagney  <[email protected]>
4484
4485         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4486         * cli/cli-script.c (define_command): Call query directly, instead
4487         of passing it a buffer.
4488         * ocd.c (ocd_error): Pass error a constant format string.
4489         * remote-mips.c (mips_error): Use fputs_filtered.
4490
4491         * solib-svr4.c (_initialize_svr4_solib): Update
4492         register_gdbarch_data call.
4493         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4494
4495         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4496         (register_gdbarch_data): Delete "free" parameter.  Update
4497         comments.
4498         * gdbarch.h, gdbarch.c: Re-generate.
4499         * reggroups.c (_initialize_reggroup): Update.
4500         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4501         * frame-base.c (_initialize_frame_base): Update.
4502         * frame-unwind.c (_initialize_frame_unwind): Update.
4503         * user-regs.c (_initialize_user_regs): Update.
4504         * remote.c (_initialize_remote): Update.
4505         * regcache.c (_initialize_regcache): Update.
4506
4507         * regcache.c (xfree_regcache_descr): Delete function.
4508         (_initialize_regcache): Update call to register_gdbarch_data.
4509         (init_regcache_descr, init_legacy_regcache_descr): Use
4510         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4511
4512         * remote.c (free_remote_state): Delete function.
4513         (_initialize_remote): Update register_gdbarch_data.
4514         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4515         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4516
4517 2003-08-04  Andrew Cagney  <[email protected]>
4518
4519         * reggroups.c (struct reggroup_el): Define.
4520         (struct reggroups): Delete field "nr_group".  Replace array
4521         "group" with a "first" to "last" linked list.
4522         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4523         (reggroups_free): Delete function.
4524         (add_group): Update.  Add "el" parameter.
4525         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4526         (default_groups): Update.
4527         (reggroup_next): Replace reggroups.
4528         (reggroups_dump): Update.
4529         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4530         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4531         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4532
4533 2003-08-04  Daniel Jacobowitz  <[email protected]>
4534
4535         * Makefile.in (tui-interp.o): Update dependencies.
4536
4537 2003-08-04  David Carlton  <[email protected]>
4538
4539         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4540         to internal_error call.
4541         * source.c (forward_search_command): Add "%s" format argument.
4542         (reverse_search_command): Ditto.
4543         * top.c (quit_confirm): Ditto.
4544         * cli/cli-setshow.c (do_setshow_command): Ditto.
4545         * cp-valprint.c (cp_print_class_method): Replace
4546         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4547         (cp_print_class_member): Ditto.
4548         * event-top.c (command_line_handler): Ditto.
4549         * linux-proc.c (linux_info_proc_cmd): Ditto.
4550         * p-typeprint.c (pascal_type_print_base): Ditto.
4551         * p-valprint.c (pascal_object_print_class_method): Ditto.
4552         (pascal_object_print_class_member): Ditto.
4553         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4554         * remote.c (remote_cisco_section_offsets): Ditto.
4555         * top.c (command_line_input): Ditto.
4556         * utils.c (vwarning,error_stream,quit): Ditto.
4557         * valprint.c (print_floating,print_binary_chars)
4558         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4559
4560 2003-08-04  Andrew Cagney  <[email protected]>
4561
4562         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4563
4564 2003-08-02  Andrew Cagney  <[email protected]>
4565
4566         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4567         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4568         amd64fbsd-nat.c.
4569
4570 2003-08-02  Andrew Cagney  <[email protected]>
4571
4572         * Makefile.in: Update all dependencies and definitions.
4573
4574 2003-08-02  Adam Fedor  <[email protected]>
4575
4576         * linespec.c (is_objc_method_format): New function
4577         (decode_line_1, locate_first_half): Use it.
4578         Fixes PR objc/1298
4579
4580 2003-08-01  Andrew Cagney  <[email protected]>
4581
4582         * NEWS: Mention that m32r is multi-arch.
4583         From 2003-07-28 Kei Sakamoto <[email protected]>:
4584         * configure.tgt: Recognize m32r-*-*.
4585         * config/m32r/tm-m32r.h: Delete file.
4586         * config/m32r/m32r.mt: New file.
4587         * m32r-rom.c (m32r_upload_command): Use hostent only when
4588         gethostname succeeds, in order to avoid a compilation
4589         warning.
4590         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4591         compiler warning.
4592
4593 2003-08-01  Michael Snyder  <[email protected]>
4594
4595         * sh-tdep.c (sh_frame_align): New gdbarch method.
4596         (sh_gdbarch_init): Set up frame_align method.
4597
4598 2003-07-31  Michael Snyder  <[email protected]>
4599
4600         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4601         which is already covered by the new frames infrastructure.
4602
4603 2003-07-31  Andrew Cagney  <[email protected]>
4604
4605         * user-regs.c (struct user_reg): Add "next" link.
4606         (struct user_regs): Replace "user" with "first" and "last" links.
4607         (append_user_reg): Add pre-allocated "reg" parameter.
4608         (builtin_user_regs): Provide initial value for "last".
4609         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4610         (user_regs_init): Allocate memory from the gdbarch obstack.
4611         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4612         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4613         linked list.
4614         (usernum_to_user_reg): New function.
4615         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4616         (value_of_user_reg): Use usernum_to_user_reg.
4617         (user_regs_free): Delete function.
4618         (_initialize_user_regs): Update register_gdbarch_data call.
4619
4620 2003-07-31  Daniel Jacobowitz  <[email protected]>
4621
4622         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4623
4624 2003-07-30  Michael Snyder  <[email protected]>
4625
4626         * value.h (value_being_returned): Add a struct_addr argument.
4627         * infcall.c (call_function_by_hand): Pass struct_addr to
4628         value_being_returned.
4629         * infcmd.c (print_return_value): Pass zero as struct_addr.
4630         * values.c (value_being_returned): If struct_addr is passed,
4631         use it instead of trying to recover it from the inferior.
4632
4633 2003-07-30  Kevin Buettner  <[email protected]>
4634
4635         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4636         the prologue analyzer won't need to attempt to extract the pc
4637         value from the woefully incomplete dummy frame.
4638         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4639         possible.  Disable code which modifies the frame.
4640
4641 2003-07-28  Andrew Cagney  <[email protected]>
4642
4643         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4644         to level 2.
4645         (annotate_breakpoints_table, annotate_record): Ditto.
4646         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4647         (annotate_field_name_end, annotate_field_value): Ditto.
4648         (annotate_field_end, annotate_frame_source_begin): Ditto.
4649         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4650         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4651         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4652         (annotate_frame_address_end, annotate_frame_address): Ditto.
4653         (annotate_frame_args, annotate_frame_end): Ditto.
4654         (annotate_frame_where, annotate_arg_begin): Ditto.
4655         (annotate_arg_name_end, annotate_arg_value): Ditto.
4656         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4657         (annotate_function_call, annotate_signal_name): Ditto.
4658         (annotate_signal_string, annotate_signal_name_end): Ditto.
4659         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4660         (annotate_value_begin, annotate_value_history_value): Ditto.
4661         (annotate_value_history_end, annotate_value_end): Ditto.
4662         (annotate_display_begin, annotate_display_number_end): Ditto.
4663         (annotate_display_format, annotate_display_expression): Ditto.
4664         (annotate_display_expression_end, annotate_display_value): Ditto.
4665         (annotate_display_end, annotate_array_section_begin): Ditto.
4666         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4667         (annotate_elt, annotate_array_section_end): Ditto.
4668
4669 2003-07-28  Andrew Cagney  <[email protected]>
4670
4671         * regcache.c (struct regcache_descr): Update comments on
4672         nr_raw_registers.
4673         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4674         sizeof_raw_register_valid_p.
4675         (init_regcache_descr): Set nr_raw_registers and
4676         sizeof_raw_register_valid_p before calling
4677         init_legacy_regcache_descr.
4678
4679 2003-07-28  Andrew Cagney  <[email protected]>
4680
4681         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4682         MOD NUM_REGS.
4683
4684 2003-07-28  Daniel Jacobowitz  <[email protected]>
4685
4686         * thread.c (info_threads_command): Use get_selected_frame ().
4687         Check that there is at least one non-sentinel frame.
4688
4689 2003-07-27  Stephane Carrez  <[email protected]>
4690
4691         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4692         (m68hc11_pop_frame): Remove.
4693         (m68hc11_frame_saved_pc): Remove.
4694         (m68hc11_frame_chain): Remove.
4695         (m68hc11_frame_init_saved_regs): Remove.
4696         (m68hc11_init_extra_frame_info): Remove.
4697         (m68hc11_store_struct_return): Remove.
4698         (m68hc11_saved_pc_after_call): Remove.
4699
4700 2003-07-27  Stephane Carrez  <[email protected]>
4701
4702         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4703         frame unwind information.
4704         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4705         and adapted for frame unwinding.
4706         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4707         (m68hc11_unwind_pc): New function.
4708         (m68hc11_frame_unwind_cache): New function to analyze frames.
4709         (m68hc11_frame_this_id): New function to create new frame struct.
4710         (m68hc11_frame_prev_register): New function to unwind a register from
4711         the frame.
4712         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4713         (m68hc11_frame_p): New function for the above.
4714         (m68hc11_frame_base_address): New function to return fp of frame.
4715         (m68hc11_frame_args_address): Update for frame.
4716         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4717         (m68hc11_unwind_sp): New function.
4718         (m68hc11_unwind_dummy_id): New function.
4719         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4720         calls.
4721
4722 2003-07-27  Stephane Carrez  <[email protected]>
4723
4724         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4725         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4726         when we are beyond the current pc.
4727
4728 2003-07-27  Stephane Carrez  <[email protected]>
4729
4730         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4731         from m68hc11_push_arguments.
4732         (m68hc11_push_arguments): Remove.
4733         (m68hc11_push_return_address): Remove.
4734         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4735         handlers; remove deprecated_extra_stack_alignment_needed.
4736
4737 2003-07-27  Andrew Cagney  <[email protected]>
4738
4739         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4740         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4741         REAL_PC and not the pointer.
4742         * hppa-hpux-tdep.c: Include frame.h
4743
4744 2003-07-27  Andrew Cagney  <[email protected]>
4745
4746         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4747         GDB_MULTI_ACH_PARTIAL.
4748
4749 2003-07-27  Andrew Cagney  <[email protected]>
4750
4751         Patch from 2003-07-22 Kei Sakamoto <[email protected]>:
4752         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4753         operator at start and not end of line.
4754         (decode_prologue): Ditto.
4755         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4756         frame_unwind_register_unsigned instead of
4757         frame_unwind_unsigned_register.
4758         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4759         read_register.
4760         (m32r_push_dummy_call): Use register_size instead of
4761         REGISTER_RAW_SIZE.
4762         (m32r_frame_sniffer): Replace m32r_frame_p.
4763         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4764         * m32r-rom.c (report_transfer_performance): Delete extern
4765         declaration.
4766         (m32r_load, m32r_upload_command): Use print_transfer_performance
4767         instead of report_transfer_performance.
4768         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4769         / add_show_from_set.
4770
4771 2003-07-26  Andrew Cagney  <[email protected]>
4772
4773         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4774         store_return_value and extract_struct_value_address.
4775
4776 2003-07-26  Daniel Jacobowitz  <[email protected]>
4777
4778         PR c++/1267
4779         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4780         NULL, default to the section containing PC.
4781
4782 2003-07-24  Stephane Carrez  <[email protected]>
4783
4784         * NEWS: Mention "regs" deprecated for m68hc11 too.
4785
4786         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4787         (m68hc11_print_register): New function to print out one register.
4788         (m68hc11_print_registers_info): New function to print registers.
4789         (show_regs): Deprecate and use the above.
4790         (m68hc11_gdbarch_init): Install the print_registers_info.
4791
4792 2003-07-24  Jeff Johnston  <[email protected]>
4793
4794         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4795         that we have a SIGTRAP before returning non-zero.
4796
4797 2003-07-23  Michal Ludvig  <[email protected]>
4798             Elena Zannoni  <[email protected]>
4799
4800         * linespec.c (decode_line_2): Avoid crash if
4801         find_function_start_sal() returns empty record.
4802
4803 2003-07-23  Andreas Schwab  <[email protected]>
4804
4805         * ia64-tdep.c (ia64_print_insn): New function.
4806         (ia64_gdbarch_init): Set print_insn to it.
4807         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4808         deprecated_tm_print_insn_info.
4809
4810 2003-07-22  Michael Snyder  <[email protected]>
4811
4812         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4813         handle 8-bit returns (long long).
4814         (h8300h_extract_return_value): Ditto.
4815         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4816
4817 2003-07-22  Andrew Cagney  <[email protected]>
4818
4819         * gdbarch.c Include "gdb_obstack.h".
4820         (struct gdbarch): Add an "obstack".
4821         (alloc_gdbarch_data): Allocate the gdbarch data using
4822         GDBARCH_OBSTACK_CALLOC.
4823         (free_gdbarch_data): Delete function.
4824         (gdbarch_obstack_zalloc): New function.
4825         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4826         Assert that the architecture is not initialized.
4827         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4828         vector from the obstack.
4829         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4830         architecture obstack.
4831         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4832         (set_gdbarch_data): Assert that the data is not initialized.
4833         (struct gdbarch_data): Delete member "free".
4834         (register_gdbarch_data): Do not initialize "free".
4835         * gdbarch.h, gdbarch.c: Re-generate.
4836
4837 2003-07-22  Andrew Cagney  <[email protected]>
4838
4839         * configure.in (build_warnings): Add -Wformat-nonliteral.
4840         * configure: Re-generate.
4841
4842 2003-07-22  Elena Zannoni  <[email protected]>
4843
4844         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4845
4846 2003-07-22  Elena Zannoni  <[email protected]>
4847
4848         * findvar.c (read_var_value): Remove case for thread local storage
4849         variables.  It is now entirely handled by the dwarf2 location
4850         expression code.
4851         * printcmd.c (address_info): Ditto.
4852         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4853         enumeration value.
4854         (struct symbol): Remove objfile field, which was used by
4855         LOC_THREAD_LOCAL_STATIC only.
4856         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4857         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4858         usage of objfile pointer.
4859         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4860         thread local variables.
4861         Add include of objfiles.h.
4862         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4863         storage variables.
4864         * Makefile.in (dwarf2loc.o): Update dependencies.
4865
4866 2003-07-22  Andrew Cagney  <[email protected]>
4867
4868         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4869         get_frame_base.
4870         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4871         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4872         (struct value): Add opaque declaration.
4873         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4874
4875 2003-07-21  Andrew Cagney  <[email protected]>
4876
4877         From 2003-07-04 Kei Sakamoto <[email protected]>:
4878         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4879
4880 2003-07-20  Stephane Carrez  <[email protected]>
4881
4882         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4883         regcache_cooked_read_unsigned instead of read_register.
4884         (m68hc11_saved_pc_after_call): Likewise.
4885         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4886         instead of write_register.
4887         (m68hc11_register_type): New function.
4888         (m68hc11_register_virtual_type): Remove.
4889         (m68hc11_store_return_value): Convert to use the regcache.
4890         (m68hc11_extract_struct_value_address): Likewise.
4891         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4892         m68hc11_register_type; undeprecate store_return_value and
4893         extract_struct_value_address.
4894
4895 2003-07-20  Stephane Carrez  <[email protected]>
4896
4897         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4898         and translate to use regcache.
4899         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4900
4901 2003-07-18  Andrew Cagney  <[email protected]>
4902
4903         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4904         * gdbarch.h, gdbarch.c: Re-generate.
4905         * i386-tdep.c (i386_gdbarch_init): Do not set
4906         DWARF2_BUILD_FRAME_INFO.
4907         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4908         unconditionally.
4909         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
4910         DWARF2_BUILD_FRAME_INFO.
4911
4912 2003-07-18  Andrew Cagney  <[email protected]>
4913
4914         From 2003-07-04 Kei Sakamoto <[email protected]>:
4915         * disasm.c (gdb_disassemble_info): Initilize di.arch.
4916
4917 2003-07-18  Andrew Cagney  <[email protected]>
4918
4919         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
4920         frame_unwind_address_in_block, instead of frame_pc_unwind.
4921         (dwarf2_frame_cache): Ditto.
4922
4923 2003-07-18  Andrew Cagney  <[email protected]>
4924
4925         * user-regs.h (struct gdbarch): Declare opaque.
4926         * ui-out.h (struct ui_file): Declare opaque.
4927         * dwarf2-frame.h (struct frame_info): Declare opaque.
4928
4929 2003-07-18  Kris Warkentin  <[email protected]>
4930
4931         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
4932         #include "...".
4933         (procfs_meminfo): Change strerror to safe_strerror.
4934         (procfs_can_run): Remove K&R badness.
4935
4936 2003-07-17  Michael Snyder  <[email protected]>
4937
4938         * remote-sim.c: Comment typo fix.
4939
4940 2003-07-17  Andrew Cagney  <[email protected]>
4941
4942         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
4943         configure.
4944         * sparc-tdep.c (sparc_intreg_size): Make non-static.
4945         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
4946         GDB_MULTI_ARCH_PARTIAL.
4947
4948 2003-07-17  Elena Zannoni  <[email protected]>
4949
4950         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
4951         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
4952         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
4953
4954 2003-07-16  Theodore A. Roth  <[email protected]>
4955
4956         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
4957         found.
4958         (avr_frame_unwind_cache): Don't unwind FP for main.
4959         Update a comment.
4960         Save the computed prev_sp.
4961         (avr_saved_regs_unwinder): Remove function.
4962         (avr_frame_prev_register): Use PC unwind logic from
4963         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
4964
4965 2003-07-16  Andrew Cagney  <[email protected]>
4966
4967         * frame-base.h (frame_base_p_ftype): Delete definition.
4968         (frame_base_append_predicate): Delete declaration.
4969         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
4970         (frame_unwind_append_predicate): Delete declaration.
4971         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
4972         (append_predicate): Delete parameter "p".
4973         (frame_unwind_append_predicate): Delete function.
4974         (frame_unwind_append_sniffer): Update call to append_predicate.
4975         (frame_unwind_free): Delete function.
4976         (_initialize_frame_unwind): Pass NULL as "free" to
4977         register_gdbarch_data.
4978         (frame_unwind_init): Append the dummy_frame_sniffer.
4979         (frame_unwind_find_by_frame): Simplify.
4980         * frame-base.c (struct frame_base_table): Delete field "p".
4981         (append_predicate): Delete parameter "p".
4982         (frame_base_append_predicate): Delete function.
4983         (frame_base_append_sniffer): Update call to append_predicate.
4984         (frame_base_free): Delete function.
4985         (frame_base_find_by_frame): Simplify.
4986         (_initialize_frame_base): Pass NULL as "free" to
4987         register_gdbarch_data.
4988         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
4989         (x86_64_sigtramp_frame_sniffer): Replace
4990         "x86_64_sigtramp_frame_p".
4991         (x86_64_init_abi): Set the frame unwind sniffers.
4992         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
4993         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
4994         (m68k_gdbarch_init): Set the frame unwind sniffers.
4995         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
4996         "i386_sigtramp_frame_p".
4997         (i386_frame_sniffer): Replace "i386_frame_p".
4998         (i386_gdbarch_init): Set the frame unwind sniffers.
4999         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5000         (avr_gdbarch_init): Set the frame unwind sniffers.
5001         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5002         "alpha_sigtramp_frame_p"
5003         (alpha_heuristic_frame_sniffer): Replace
5004         "alpha_heuristic_frame_p".
5005         (alpha_gdbarch_init): Set the frame unwind sniffers.
5006         (alpha_dwarf2_init_abi): Ditto.
5007         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5008         "alpha_debug_frame_p".
5009         (alpha_mdebug_frame_base_sniffer): Replace
5010         "alpha_mdebug_frame_base_p".
5011         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5012         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5013         (d10v_gdbarch_init): Set the frame unwind sniffer.
5014         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5015         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5016         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5017         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5018         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5019         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5020
5021 2003-07-16  Michael Snyder  <[email protected]>
5022
5023         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5024         should go thru sh_dsp_register_sim_regno, else the dsp regs
5025         will not get the right values.
5026
5027 2003-07-16  Corinna Vinschen  <[email protected]>
5028
5029         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5030         deprecated_store_floating by call to store_typed_floating.
5031         (sh_sh4_register_convert_to_raw): Substitute call to
5032         deprecated_extract_floating by call to extract_typed_floating.
5033
5034 2003-07-16  Corinna Vinschen  <[email protected]>
5035
5036         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5037
5038 2003-07-16  Corinna Vinschen  <[email protected]>
5039
5040         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5041         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5042         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5043         as possible.
5044         (do_pseudo_register): Remove.
5045         (sh_push_dummy_code): New function.
5046         (sh64_store_struct_return): Rename from sh_store_struct_return.
5047         Only called for sh64 now.
5048         (sh_extract_struct_value_address): Regcache'ify.
5049         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5050         and accomodate new tasks.
5051         (sh64_push_return_address): Rename from sh_push_return_address.
5052         Only called for sh64 now.
5053         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5054         Regcache'ify.
5055         (sh3e_sh4_extract_return_value): Regcache'ify.
5056         (sh_default_store_return_value): Ditto.
5057         (sh3e_sh4_store_return_value): Ditto.
5058         (sh_default_register_byte): Remove.
5059         (sh_sh4_register_byte): Remove.
5060         (sh_default_register_raw_size): Remove.
5061         (sh_sh4_register_raw_size): Remove.
5062         (sh_register_virtual_size): Remove.
5063         (sh_sh3e_register_virtual_type): Remove.
5064         (sh_sh3e_register_type): New function.
5065         (sh_sh4_register_virtual_type): Remove.
5066         (sh_sh4_register_type): New function.
5067         (sh_default_register_virtual_type): Remove.
5068         (sh_default_register_type): New function.
5069         (do_fv_register_info): Add parameters to accomodate call from
5070         sh_print_registers_info.
5071         (do_dr_register_info): Ditto.
5072         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5073         Add parameters to accomodate call from sh_print_registers_info.
5074         (sh_do_fp_register): Ditto.
5075         (sh64_do_pseudo_register): Call do_dr_register_info,
5076         do_fv_register_info and sh_do_fp_register with default parameters.
5077         (sh_do_register): Add parameters to accomodate call from
5078         sh_print_registers_info.
5079         (sh_print_register): Ditto.
5080         (sh_print_registers_info): Rename from sh_do_registers_info.
5081         Add parameters to be used as gdbarch_print_registers_info
5082         implementation.  Accomodate removed do_pseudo_register function
5083         pointer.
5084         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5085         function pointer. Call sh_print_register with default parameters.
5086         (sh64_do_registers_info): Call sh_print_registers_info instead of
5087         sh_do_registers_info.
5088         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5089         detection of deprecated vs. non-deprecated functionality.
5090         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5091         function pointer assignments by direct function calls.
5092
5093 2003-07-15  Andrew Cagney  <[email protected]>
5094
5095         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5096         (frame_register_unwind, create_new_frame): Ditto.
5097         (legacy_get_prev_frame, get_frame_type): Ditto.
5098         (get_frame_base_address): Use frame_base_find_by_frame.
5099         (get_frame_locals_address): Use frame_base_find_by_frame.
5100         (get_frame_args_address): Use frame_base_find_by_frame.
5101         * frame-base.h (frame_base_sniffer_ftype): Declare.
5102         (frame_base_append_sniffer): Declare.
5103         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5104         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5105         (frame_base_append_sniffer): New function.
5106         (frame_base_append_predicate): Add a NULL sniffer.
5107         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5108         (struct frame_base_table): Add "sniffer".
5109         (frame_base_free): Free the "sniffer" table.
5110         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5111         (frame_unwind_append_sniffer): Declare.
5112         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5113         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5114         (struct frame_unwind_table): Add "sniffer", delete "middle".
5115         (append_predicate): Add "sniffer" parameter, append the sniffer.
5116         (frame_unwind_init): Update append_predicate call.
5117         (frame_unwind_append_sniffer): New function.
5118         (frame_unwind_append_predicate): Update append_predicate call.
5119         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5120
5121 2003-07-15  Andrew Cagney  <[email protected]>
5122
5123         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5124         before code inhibiting repeated unwind attempts.  Add to
5125         commentary on that test's problems.
5126         * blockframe.c (inside_main_func): Look for "main" in the minimal
5127         symbol table.
5128         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5129         identical.
5130
5131 2003-07-15  Andrew Cagney  <[email protected]>
5132
5133         * complaints.c (struct explanation): Define.
5134         (struct complaints): Change type of "explanation" to "struct
5135         explanation".
5136         (symfile_explanations): Convert to a "struct explanation" table.
5137         (vcomplaint): Update.
5138
5139 2003-07-15  Michal Ludvig  <[email protected]>
5140
5141         * x86-64-linux-nat.c (regmap): Removed.
5142         (supply_gregset, fill_gregset): Call
5143         x86_64_linux_(fill,supply)_gregset functions.
5144         * x86-64-linux-tdep.c (USER_*): New defines.
5145         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5146         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5147         New functions.
5148         (fetch_core_registers): Ditto.
5149         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5150         * x86-64-linux-tdep.h: New file.
5151         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5152         and core-regset.o.
5153         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5154
5155 2003-07-13  Mark Kettenis  <[email protected]>
5156
5157         * x86-64-tdep.c (x86_64_store_return_value): Use
5158         regcache_cooked_write_part instead of regcache_cooked_write.
5159
5160         * configure.host: Add x86_64-*-freebsd*.
5161         * configure.tgt: Add x86_64-*-freebsd*.
5162         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5163         * amd64fbsd-nat.c: New file.
5164         * amd64fbsd-tdep.c: New file.
5165         * config/i386/nm-fbsd64.h: New file.
5166         * config/i386/fbsd64.mh: New file.
5167         * config/i386/fbsd64.mt: New file.
5168
5169 2003-07-11  Mark Kettenis  <[email protected]>
5170
5171         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5172         `sc_regs_offset' and `sc_fpregs_offset'.
5173         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5174         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5175         (alpha_sigtramp_register_address): Rewrite to use new members of
5176         `struct gdbarch_tdep'.
5177         (alpha_gdbarch_init): Initialize new members of struct
5178         gdbarch_tdep'.
5179         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5180         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5181         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5182         (alphafbsd_pc_in_sigtramp): Implement.
5183         (alphafbsd_sigtramp_offset): New function.
5184         (alphafbsd_sigcontext_addr): New function.
5185         (alphafbsd_init_abi): Initialize signal trampoline related members
5186         of `struct gdbarch_tdep'.
5187         (_initialize_alphafbsd_tdep): Add prototype.
5188
5189 2003-07-11  Theodore A. Roth  <[email protected]>
5190
5191         * Makefile.in (install-only): Quote sed expression when generating
5192         transformed_name.
5193
5194 2003-07-11  Richard Henderson  <[email protected]>
5195
5196         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5197         * dwarf2-frame.c: Include complaints.h.
5198         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5199         variable initialization; return NULL on error.
5200         (decode_frame_entry): New.
5201
5202 2003-07-11  Andrew Cagney  <[email protected]>
5203
5204         * frame.h (frame_address_in_block): Delete declaration.
5205         * blockframe.c (frame_address_in_block): Delete function.
5206         (get_frame_block): Use get_frame_address_in_block.
5207         (block_innermost_frame): Ditto.
5208         * stack.c (print_frame, backtrace_command_1): Ditto.
5209
5210         * frame.h (get_frame_address_in_block): Declare.
5211         (frame_unwind_address_in_block): Declare.
5212         * frame.c (frame_unwind_address_in_block): New function.
5213         (get_frame_address_in_block): New function.
5214
5215 2003-07-10  Andrew Cagney  <[email protected]>
5216
5217         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5218         pre-default.   Note: re-generate has no effect.
5219
5220 2003-07-10  Andrew Cagney  <[email protected]>
5221
5222         * gdbarch.sh: When a variable, but not a function, compare against
5223         0.  Fix problem in previous patch.
5224         * gdbarch.c: Re-generate.
5225
5226 2003-07-10  Andrew Cagney  <[email protected]>
5227
5228         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5229         functions against NULL, not 0.
5230         * gdbarch.c: Re-generate.
5231
5232 2003-07-10  Fred Fish  <[email protected]>
5233
5234         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5235         null string instead of a null pointer.
5236         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5237
5238 2003-07-09  Michael Snyder  <[email protected]>
5239
5240         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5241
5242 2003-07-09  Mark Kettenis  <[email protected]>
5243
5244         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5245         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5246         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5247         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5248         * x86-64-tdep.c: ... from here.
5249
5250 2003-07-09  Andreas Schwab  <[email protected]>
5251
5252         * m68k-tdep.h (enum struct_return): Define.
5253         (struct gdbarch_tdep): Add struct_return.
5254         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5255         bytes are padded to the right, not to the left.  Pass struct value
5256         address in register %a1, not on stack.
5257         (m68k_use_struct_convention): New function.
5258         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5259         struct_return in tdep to pcc_struct_return.
5260         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5261         reg_struct_return.
5262
5263 2003-07-09  Joel Brobecker  <[email protected]>
5264
5265         * somread.c (som_symfile_offsets): Fix compilation error.
5266
5267 2003-07-09  Andrew Cagney  <[email protected]>
5268
5269         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5270         Add comments about the checks.
5271
5272 2003-07-08  Andrew Cagney  <[email protected]>
5273
5274         * Makefile.in: Make dependency section headers consistent.
5275         (config_h): Move to $BUILD headers section.
5276         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5277         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5278         (ada-exp.tab.c): Move to YACC/LEX section.
5279         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5280         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5281
5282 2003-07-08  Kris Warkentin  <[email protected]>
5283
5284         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5285         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5286         of strerror with safe_strerror, use ISO C function definitions,
5287         and replace instances of sprintf with snprintf.
5288
5289 2003-07-07  Andrew Cagney  <[email protected]>
5290
5291         * frame.c (get_prev_frame): Enable check for identical frames.
5292         Update comments.  Update error messages.
5293
5294 2003-07-07  Joel Brobecker  <[email protected]>
5295
5296         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5297
5298 2003-07-07  Joel Brobecker  <[email protected]>
5299
5300         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5301         sort_symtab_syms, no longer necessary.
5302
5303 2003-07-07  Joel Brobecker  <[email protected]>
5304
5305         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5306
5307 2003-07-07  Joel Brobecker  <[email protected]>
5308
5309         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5310         (mips_register_byte): Likewise.
5311
5312 2003-07-07  Daniel Jacobowitz  <[email protected]>
5313
5314         * Makefile.in (sparc_tdep_h): New.
5315         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5316         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5317         * sparc-linux-nat.c: Include "sparc-tdep.h".
5318         * sparc-nat.c: Likewise.
5319         * sparc-tdep.c: Likewise.
5320         * sparc64nbsd-nat.c: Likewise.
5321         * sparcnbsd-nat.c: Likewise.
5322         * sparcnbsd-tdep.c: Likewise.
5323         * sparc-tdep.h: New file.
5324         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5325         and sparc_npc_regnum.
5326
5327 2003-07-07  Daniel Jacobowitz  <[email protected]>
5328
5329         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5330         (mips_linux_cannot_store_register): List supported instead of
5331         unsupported registers.
5332
5333 2003-07-07  Daniel Jacobowitz  <[email protected]>
5334
5335         * disasm.c (dump_insns): Separate instructions from addresses.
5336
5337 2003-07-07  Andreas Schwab  <[email protected]>
5338
5339         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5340         dependencies.
5341         * m68k-tdep.c (NUM_FREGS): Delete.
5342         (SIG_PC_FP_OFFSET): Delete.
5343         (TARGET_M68K): Delete.
5344         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5345         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5346         P_MOVEL_SP, P_MOVEML_SP): Define.
5347         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5348         P_TRAP): Delete.
5349         (m68k_register_raw_size): Delete.
5350         (m68k_register_virtual_size): Delete.
5351         (m68k_register_type): Renamed from m68k_register_virtual_type and
5352         add gdbarch argument.
5353         (m68k_store_struct_return): Delete.
5354         (m68k_deprecated_extract_return_value): Delete.
5355         (m68k_deprecated_extract_struct_value_address): Delete.
5356         (m68k_frame_chain): Delete.
5357         (m68k_frame_saved_pc): Delete.
5358         (m68k_fix_call_dummy): Delete.
5359         (m68k_push_dummy_frame): Delete.
5360         (m68k_pop_frame): Delete.
5361         (m68k_extract_return_value): New function.
5362         (m68k_store_return_value): Rewrite using regcache.
5363         (m68k_extract_struct_value_address): Rewrite using regcache.
5364         (m68k_push_dummy_call): New function.
5365         (struct m68k_frame_cache): Define.
5366         (m68k_alloc_frame_cache): New function.
5367         (m68k_analyze_frame_setup): New function.
5368         (m68k_analyze_register_saves): New function.
5369         (m68k_analyze_prologue): New function.
5370         (m68k_skip_prologue): Rewrite using above functions.
5371         (m68k_unwind_pc): New function.
5372         (m68k_frame_cache): New function.
5373         (m68k_frame_this_id): New function.
5374         (m68k_frame_prev_register): New function.
5375         (m68k_frame_unwind): New variable.
5376         (m68k_frame_p): New function.
5377         (m68k_sigtramp_frame_cache): New function.
5378         (m68k_sigtramp_frame_this_id): New function.
5379         (m68k_sigtramp_frame_prev_register): New function.
5380         (m68k_sigtramp_frame_unwind): New variable.
5381         (m68k_sigtramp_frame_p): New function.
5382         (m68k_frame_base_address): New function.
5383         (m68k_frame_base): New function.
5384         (m68k_unwind_dummy_id): New function.
5385         (fill_gregset): Use regcache_collect.
5386         (fill_fpregset): Likewise.
5387         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5388         defined.
5389         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5390         deprecated_init_frame_pc, deprecated_store_struct_return,
5391         deprecated_extract_return_value, deprecated_store_return_value,
5392         deprecated_frame_chain, deprecated_frame_saved_pc,
5393         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5394         deprecated_register_virtual_size,
5395         deprecated_max_register_raw_size,
5396         deprecated_max_register_virtual_size,
5397         deprecated_register_virtual_type, deprecated_register_size,
5398         deprecated_register_byte, deprecated_register_bytes,
5399         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5400         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5401         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5402         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5403         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5404         deprecated_push_dummy_frame, deprecated_pop_frame,
5405         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5406         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5407         store_return_value, extract_struct_value_address, register_type,
5408         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5409         predicates.
5410         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5411         M68K_MAX_REGISTER_SIZE): Define.
5412         (struct m68k_sigtramp_info): Define.
5413         (struct gdbarch_tdep): Add get_sigtramp_info.
5414         * m68klinux-nat.c (fetch_register): Use register_size instead of
5415         REGISTER_RAW_SIZE.  Don't put assignment in if.
5416         (store_register): Likewise.
5417         (fetch_inferior_registers): Likewise.
5418         (store_inferior_registers): Likewise.
5419         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5420         (m68k_linux_frame_saved_pc): Delete.
5421         (m68k_linux_sigcontext_reg_offset,
5422         m68k_linux_ucontext_reg_offset): Define.
5423         (m68k_linux_get_sigtramp_info): New function.
5424         (m68k_linux_extract_return_value): Rewrite using regcache.
5425         (m68k_linux_store_return_value): Likewise.
5426         (m68k_linux_extract_struct_value_address): Likewise.
5427         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5428         Don't set deprecated_frame_saved_pc,
5429         deprecated_extract_return_value, deprecated_store_return_value,
5430         deprecated_extract_struct_value_address.  Set
5431         extract_return_value, store_return_value,
5432         extract_struct_value_address.
5433
5434 2003-07-07  Andrew Cagney  <[email protected]>
5435
5436         * expprint.c: Include "user-regs.h" instead of "frame.h".
5437         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5438         frame_map_regnum_to_name.
5439         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5440         (frame_map_name_to_regnum): Simplify, call
5441         user_reg_map_name_to_regnum.
5442         (frame_map_regnum_to_name): Simplify, call
5443         user_reg_map_regnum_to_name.
5444         (frame_register_unwind): Update.
5445         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5446         (_initialize_frame_reg): Call user_reg_add_builtin.
5447         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5448         (value_of_register): Use value_of_user_reg.
5449         * eval.c (evaluate_subexp_standard): Update.
5450         * parse.c (write_dollar_variable): Update.
5451         * d10v-tdep.c (d10v_print_registers_info): Update.
5452         * infcmd.c (registers_info): Update.
5453         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5454         (builtin_regs_h): Delete macro.
5455         (user_regs_h): Define.
5456         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5457         (builtin-regs.o): Delete target.
5458         (user-regs.o): Specify dependencies.
5459         (expprint.o): Update dependencies.
5460         (findvar.o): Update dependencies.
5461         (frame.o): Update dependencies.
5462         (std-regs.o): Update dependencies.
5463
5464 2003-07-06  Christopher Faylor  <[email protected]>
5465
5466         * win32-nat.c (solib_symbols_add): Use one variable for all section
5467         address stuff.  Pass variable rather than address of variable to
5468         safe_symbol_file_add.
5469
5470 2003-07-06  Andreas Schwab  <[email protected]>
5471
5472         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5473
5474 2003-07-04  Joel Brobecker  <[email protected]>
5475
5476         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5477
5478 2003-07-04  Kris Warkentin  <[email protected]>
5479
5480         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5481
5482 2003-07-04  Kris Warkentin  <[email protected]>
5483
5484         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5485         * config/i386/nto.mh: New file.
5486         * config/i386/nm-nto.h: New file.
5487         * configure.host: Add i[3456]86-*-nto*.
5488
5489 2003-07-03  Joel Brobecker  <[email protected]>
5490
5491         * remote-vx.c (vx_add_symbols): Fix compilation error.
5492
5493 2003-07-03  Andrew Cagney  <[email protected]>
5494
5495         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5496         * gdbarch.h, gdbarch.c: Re-generate.
5497         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5498         (legacy_register_name): Declare.
5499         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5500         (REGISTER_NAME): Define.
5501         * sparc-tdep.c (legacy_register_name): New function.
5502         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5503         (REGISTER_NAME): Define.
5504         (hppa64_register_name): Declare.
5505         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5506         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5507         (hppa64_register_name): New function.
5508         (hppa_register_name): New function.
5509         * arch-utils.c (legacy_register_name): Delete.
5510         * arch-utils.h (legacy_register_name): Delete.
5511
5512 2003-07-03  Daniel Jacobowitz  <[email protected]>
5513
5514         * cli/cli-interp.c (cli_interpreter_resume): Update the
5515         cli_uiout's stream to gdb_stdout.
5516
5517 2003-07-03  Andrew Cagney  <[email protected]>
5518
5519         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5520         predicate.
5521         * gdbarch.h, gdbarch.c: Re-generate.
5522         * regcache.c (init_regcache_descr): Use legacy code when either
5523         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5524
5525 2003-07-02  Daniel Jacobowitz  <[email protected]>
5526
5527         * NEWS: Move "set logging" entry into GDB 6.0 section.
5528
5529 2003-07-02  Jim Blandy  <[email protected]>
5530
5531         * s390-tdep.c (struct frame_extra_info): new member:
5532         'stack_bought_valid'.
5533         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5534         initialize fextra_info->stack_bought.
5535         (s390_frameless_function_invocation): Don't trust the value of
5536         fextra_info_ptr->stack_bought unless
5537         fextra_info->stack_bought_valid is set.
5538
5539         New S390 prologue analyzer.
5540         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5541         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5542         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5543         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5544         compute_x_addr, s390_on_stack, s390_store,
5545         s390_get_signal_frame_info): New functions.
5546         (S390_NUM_SPILL_SLOTS): New macro.
5547         (s390_get_frame_info): Rewritten.
5548         (is_arg_reg): Deleted.
5549
5550         Break out the decoding of S/390 instructions into separate
5551         functions, to make it more legible, and easier to check
5552         against the spec.
5553         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5554         is_rx, is_rxe): New functions.
5555         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5556         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5557         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5558         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5559         enums for opcode values.  (Is this an improvement?)
5560
5561 2003-07-02  Andrew Cagney  <[email protected]>
5562
5563         * i386-tdep.c: Revert change committed as part of trad-frame code
5564         below.
5565
5566 2003-07-02  Daniel Jacobowitz  <[email protected]>
5567
5568         * breakpoint.c (insert_catchpoint): Make static.
5569
5570 2003-07-02  Andreas Schwab  <[email protected]>
5571
5572         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5573         former ia64_push_arguments and ia64_push_return_address, and use
5574         regcache functions instead of read/write_register.
5575         (ia64_gdbarch_init): Set push_dummy_call instead of
5576         deprecated_push_arguments and deprecated_push_return_address.
5577
5578 2003-07-01  Andreas Jaeger  <[email protected]>
5579
5580         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5581         before the call.
5582         Set %rax only to number of SSE registers used.
5583
5584 2003-07-01  Andrew Cagney  <[email protected]>
5585
5586         * trad-frame.h: Update comments, a -1 .addr is reserved.
5587         (trad_frame_value_p, trad_frame_addr_p): Declare.
5588         (trad_frame_reg_p): Declare.
5589         (trad_frame_set_value): Rename trad_frame_register_value.
5590         (trad_frame_set_unknown): Declare.
5591         * trad-frame.c (trad_frame_realreg_p): New function.
5592         (trad_frame_addr_p, trad_frame_value_p): New function.
5593         (trad_frame_set_unknown): New function.
5594         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5595         (trad_frame_prev_register): Use trad_frame_realreg_p,
5596         trad_frame_addr_p and trad_frame_value_p.
5597         (trad_frame_set_value): Rename trad_frame_register_value.
5598         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5599         and trad_frame_set_value.
5600
5601 2003-06-30  Jim Blandy  <[email protected]>
5602
5603         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5604         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5605         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5606         for 16 registers, and then 32 more bytes.
5607         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5608         New macros.
5609         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5610         Move up in the file, since it's now used by is_simple_arg.
5611         (is_simple_arg): Don't assume registers are four bytes long.
5612         Exclude all double arguments.  Extended floats are not simple
5613         args.
5614         (is_power_of_two): New function.
5615         (pass_by_copy_ref): Call is_power_of_two, and check that the
5616         length fits in a register, rather than listing all the acceptable
5617         sizes.  Extended floats are not passed by reference.
5618         (s390_push_arguments): Don't assume registers are four bytes long.
5619         Reserve an argument register to point to the buffer for structures
5620         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5621         S390_STACK_FRAME_OVERHEAD.
5622
5623 2003-06-30  Andreas Schwab  <[email protected]>
5624
5625         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5626         format error message.
5627
5628 2003-06-30  Joel Brobecker  <[email protected]>
5629
5630         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5631
5632 2003-06-30  David Carlton  <[email protected]>
5633
5634         Band-aid for PR c++/1245.
5635         * Makefile.in (cp-support.o): Depend on complaints_h.
5636         * cp-support.c: Include complaints.h.  Add declaration for
5637         find_last_component.
5638         (cp_find_first_component): Separate code into
5639         cp_find_first_component_aux.
5640         (cp_find_first_component_aux): Call demangled_name_complaint.
5641         (demangled_name_complaint): New.
5642
5643 2003-06-30  Andrew Cagney  <[email protected]>
5644
5645         * remote.c (remote_write_bytes): Explicitly compute and then use
5646         the payload size.  Update comments to reflect.  Fixes problem of
5647         GDB not sending small packets as found by Fred Fish.
5648
5649 2003-06-30  Andrew Cagney  <[email protected]>
5650
5651         * remote.c (remote_async_wait): Fix -Wformat problem.
5652
5653 2003-06-29  Andrew Cagney  <[email protected]>
5654
5655         * remote.c (remote_wait): Call error, and not warning, when the
5656         packet is corrupt.
5657         (remote_async_wait): Ditto.
5658
5659 2003-06-29  Daniel Jacobowitz  <[email protected]>
5660
5661         * sparc-tdep.c (sparc_y_regnum): Make external again.
5662
5663 2003-06-29  Daniel Jacobowitz  <[email protected]>
5664
5665         * cli/cli-logging.c (pop_output_files): Add void to function
5666         definition.
5667
5668 2003-06-29  Andrew Cagney  <[email protected]>
5669
5670         * frame.c (frame_register_unwind): Use unsigned char when dumping
5671         the buffer contents.
5672
5673 2003-06-28  Daniel Jacobowitz  <[email protected]>
5674
5675         * cli/cli-logging.c: New file.
5676         * cli-out.c (struct ui_out_data): Add original_stream.
5677         (cli_redirect): New function.
5678         (cli_ui_out_impl): Add cli_redirect.
5679         (cli_out_new): Initialize original_stream.
5680         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5681         (uo_redirect, ui_out_redirect): New.
5682         * ui-out.h (struct ui_out_impl): Add redirect member.
5683         (redirect_ftype): New.
5684         (ui_out_redirect): Add prototype.
5685         * Makefile.in: Add rules for cli-logging.c.
5686         * NEWS: Mention "set logging".
5687
5688 2003-06-27  Elena Zannoni  <[email protected]>
5689
5690         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5691
5692 2003-06-27  Andrew Cagney  <[email protected]>
5693
5694         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5695         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5696         * avr-tdep.c (avr_call_dummy_address): Delete function.
5697         (avr_gdbarch_init): Do not set call_dummy_address.
5698
5699 2003-06-27  Elena Zannoni  <[email protected]>
5700
5701         * symfile.c (syms_from_objfile): Move variables to inner block.
5702         Move the checks for the non-mainline case a bit earlier to avoid
5703         doing some useless computations.
5704
5705 2003-06-27  Elena Zannoni  <[email protected]>
5706
5707         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5708
5709 2003-06-26  Elena Zannoni  <[email protected]>
5710
5711         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5712         sections.
5713
5714 2003-06-26  Michael Chastain  <[email protected]>
5715
5716         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5717         gdb/testsuite/gdb.c++/pr-1210.exp.
5718
5719 2003-06-26  Andrew Cagney  <[email protected]>
5720
5721         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5722         altivec_expression.h and altivec_registers.h.
5723
5724 2003-06-26  Andrew Cagney  <[email protected]>
5725
5726         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5727         info->mach when MIPS16.  Patch suggested by Fred Fish.
5728
5729 2003-06-26  Andrew Cagney  <[email protected]>
5730
5731         * utils.c (internal_vproblem): Print the problem to a reason
5732         buffer and then pass to query.  Make the msg variable more local.
5733
5734 2003-06-26  Andrew Cagney  <[email protected]>
5735
5736         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5737         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5738         * gdbarch.h, gdbarch.c: Re-generate.
5739         * frame-base.c (default_frame_args_address): Update.  Use
5740         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5741         not available.
5742         (default_frame_locals_address): Ditto for
5743         DEPRECATED_FRAME_LOCALS_ADDRESS.
5744         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5745         (vax_frame_num_args): Update.
5746         (vax_gdbarch_init): Update.
5747         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5748         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5749         * mcore-tdep.c (mcore_gdbarch_init): Update.
5750         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5751         * ia64-tdep.c (ia64_gdbarch_init): Update.
5752         * symtab.h (address_class): Update comments.
5753         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5754         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5755         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5756         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5757         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5758         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5759         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5760         * alpha-mdebug-tdep.c: Update.
5761         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5762
5763 2003-06-26  Andreas Jaeger  <[email protected]>
5764
5765         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5766         of SSE registers so that varargs functions work.  Rework handling
5767         of passing arguments on the stack.
5768         (x86_64_store_return_value): Return double and float values in SSE
5769         register.
5770
5771 2003-06-24  Michael Chastain  <[email protected]>
5772
5773         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5774         the "constructor breakpoints ignored" bug.
5775
5776 2003-06-25  David Carlton  <[email protected]>
5777
5778         * MAINTAINERS: Update e-mail address.
5779
5780 2003-06-24  Jim Blandy  <[email protected]>
5781
5782         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5783
5784         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5785         function.
5786         (ppc_linux_init_abi): Register it as the
5787         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5788
5789         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5790         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5791         method.
5792
5793         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5794         (ppc64_standard_linkage_target): Use it.
5795
5796 2003-06-23  Andrew Cagney  <[email protected]>
5797
5798         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5799         for 0 "int0" and 4 "int32" sized registers.
5800         * gdbtypes.c (builtin_type_int0): Define.
5801         (build_gdbtypes): Initialize builtin_type_int0.
5802         * gdbtypes.h (builtin_type_int0): Declare.
5803
5804 2003-06-23  Stephane Carrez  <[email protected]>
5805
5806         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5807         as characters are unsigned.
5808
5809 2003-06-22  Daniel Jacobowitz  <[email protected]>
5810
5811         PR gdb/1179
5812         * dwarfread.c (struct_type): Skip static fields without crashing.
5813
5814 2003-06-22  Andrew Cagney  <[email protected]>
5815
5816         GDB 6.0 branch created.
5817         * README: Update.
5818         * PROBLEMS: Update.  Empty.
5819         * NEWS: Update.
5820
5821 2003-06-22  Daniel Jacobowitz  <[email protected]>
5822
5823         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5824         Suggested by Nick Hibma <[email protected]>.
5825
5826 2003-06-22  Andrew Cagney  <[email protected]>
5827
5828         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5829         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5830         Velikov.
5831
5832 2003-06-22  Daniel Jacobowitz  <[email protected]>
5833
5834         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5835         compilers.
5836
5837 2003-06-21  Daniel Jacobowitz  <[email protected]>
5838
5839         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5840         argument of val_print.
5841         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5842         to the address argument of baseclass_offset or target_read_memory.
5843         Do add it to the argument of cp_print_value_fields.
5844
5845 2003-06-21  Andrew Cagney  <[email protected]>
5846
5847         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5848         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5849         instead of 0..NUM_REGS.
5850         (mips_register_reggroup_p): New function.
5851         (mips_pseudo_register_write): New function.
5852         (mips_pseudo_register_read): New function.
5853         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5854         based on the register's type.
5855         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5856         cooked.
5857         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5858         pseudo / cooked.
5859         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5860         (mips_register_type): Replace mips_register_virtual_type.  Map
5861         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5862         when available.
5863         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5864         that the register is cooked / virtual.
5865         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5866         Only get the extra info when needed.
5867         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5868         (mips32_heuristic_proc_desc): Fetch the cooked register.
5869         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5870         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5871         (mips_print_register): Use gdbarch_register_type, instead of
5872         REGISTER_VIRTUAL_TYPE.
5873         (print_gp_register_row): Use gdbarch_register_type, instead of
5874         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5875         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5876         Print the pseudo / cooked registers.
5877         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5878         Print the pseudo / cooked registers.
5879         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5880         REG_NUM is pseudo / cooked.
5881         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5882         (mips_n32n64_xfer_return_value): Ditto.
5883         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5884         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5885         (mips_register_sim_regno): New function.
5886         (mips_gdbarch_init): Set deprecated_register_byte,
5887         register_group_p, pseudo_register_write, pseudo_register_read,
5888         register_sim_regno, and num_pseudo_regs.  Set register_type,
5889         instead of register_virtual_type.
5890         * Makefile.in (mips-tdep.o): Update dependencies.
5891         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5892         REGISTER_VIRTUAL_TYPE.
5893         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5894         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5895         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5896         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5897         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5898
5899 2003-06-21  Daniel Jacobowitz  <[email protected]>
5900
5901         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5902         * cli/cli-cmds.c: Include "gdb_vfork.h".
5903         (shell_escape): Use vfork.
5904
5905 2003-06-21  Andrew Cagney  <[email protected]>
5906
5907         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5908         32 bit floating-point register saves.
5909
5910         * frame.h (deprecated_unwind_get_saved_register): Delete.
5911         * frame.c (deprecated_unwind_get_saved_register): Delete function.
5912         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
5913         and deprecated_get_next_frame_hack instead of
5914         deprecated_unwind_get_saved_register.
5915
5916         * mips-tdep.c (mips_dump_tdep): Do not print
5917         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
5918
5919         * frame.c (get_frame_register): New function.
5920         (frame_unwind_register_signed): New function.
5921         (get_frame_register_signed): New function.
5922         (frame_unwind_register_unsigned): New function.
5923         (get_frame_register_unsigned): New function.
5924         * frame.h: Add comments on naming schema.
5925         (get_frame_register, frame_unwind_register_signed): Declare.
5926         (get_frame_register_signed, get_frame_register_signed): Declare.
5927         (frame_unwind_register_unsigned): Declare.
5928         (get_frame_register_unsigned): Declare.
5929
5930 2003-06-20  Theodore A. Roth  <[email protected]>
5931
5932         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
5933
5934 2003-06-20  Theodore A. Roth  <[email protected]>
5935
5936         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
5937         (avr_read_sp): Ditto.
5938
5939 2003-06-20  Daniel Jacobowitz  <[email protected]>
5940
5941         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
5942         * config/arm/nm-linux.h: Likewise.
5943         * config/arm/tm-linux.h: Likewise.
5944         * config/ia64/nm-linux.h: Likewise.
5945         * config/ia64/tm-ia64.h: Likewise.
5946         * config/s390/tm-linux.h: Likewise.
5947         * config/s390/tm-s390.h: Likewise.
5948         * s390-nat.c: Likewise.
5949         * s390-tdep.c: Likewise.
5950
5951         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
5952         * config/ia64/linux.mt: Likewise.
5953         * config/m68k/linux.mh: Likewise.
5954         * config/mips/linux.mt: Likewise.
5955         * config/powerpc/linux.mh: Likewise.
5956         * config/sh/linux.mt: Likewise.
5957
5958 2003-06-19  Kris Warkentin  <[email protected]>
5959
5960         * solib.c (solib_open): Change tests for whether to search
5961         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
5962         comments.
5963
5964 2003-06-19  Theodore A. Roth  <[email protected]>
5965
5966         * avr-tdep.c (avr_frame_address): Delete function.
5967         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
5968         set_gdbarch_frame_args_address.
5969
5970 2003-06-19  Andrew Cagney  <[email protected]>
5971
5972         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
5973         (REGISTER_CONVERT_FROM_TYPE): Delete.
5974         (mips_register_convert_to_type): Delete declaration.
5975         (mips_register_convert_from_type): Delete declaration.
5976         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
5977         kernel/.
5978
5979 2003-06-19  Michael Snyder  <[email protected]>
5980
5981         * linux-nat.h: New file.
5982         * linux-nat.c: Include linux-nat.h.
5983         * lin-lwp.c: Include linux-nat.h.
5984         Move struct lwp_info def to linux-nat.h.
5985         * linux-proc.c: Include linux-nat.h.
5986         (linux_make_note_section): Iterate over lwps instead of threads.
5987         (linux_do_thread_registers): Use lwp instead of merged pid.
5988         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
5989         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
5990         Add dependency on linux_nat_h.
5991
5992 2003-06-19  Theodore A. Roth  <[email protected]>
5993
5994         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
5995
5996 2003-06-19  Daniel Jacobowitz  <[email protected]>
5997
5998         * varobj.c (get_type, get_target_type): Use check_typedef.
5999
6000 2003-06-19  Daniel Jacobowitz  <[email protected]>
6001
6002         * breakpoint.c (insert_catchpoint): Call internal_error.
6003
6004 2003-06-19  Theodore A. Roth  <[email protected]>
6005
6006         * avr-tdep.c (avr_push_dummy_code): Delete function.
6007         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6008
6009 2003-06-19  Daniel Jacobowitz  <[email protected]>
6010
6011         * arch-utils.c (default_prepare_to_proceed): Remove.
6012         (generic_prepare_to_proceed): Remove.
6013         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6014         (generic_prepare_to_proceed): Remove prototype.
6015         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6016         * gdbarch.c: Regenerate.
6017         * gdbarch.h: Regenerate.
6018         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6019         * hppah-nat.c (hppa_switched_threads): Remove.
6020         * infrun.c (prepare_to_proceed): New static function, copied from
6021         generic_prepare_to_proceed.  Remove select_it argument.
6022         (proceed): Call prepare_to_proceed.
6023         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6024         variables.
6025         (ptrace_wait): Don't set the removed variables.
6026         (hppa_switched_threads): Remove.
6027         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6028         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6029         (lin_lwp_prepare_to_proceed): Remove prototype.
6030         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6031         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6032
6033 2003-06-18  Theodore A. Roth  <[email protected]>
6034
6035         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6036         trad-frame.h.
6037         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6038         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6039         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6040         (AVR_PROLOGUE_*): Enumerate prologue types.
6041         (struct frame_extra_info): Remove.
6042         (struct avr_unwind_cache): Define.
6043         (avr_write_sp): Delete function.
6044         (avr_read_fp): Ditto.
6045         (avr_init_extra_frame_info): Ditto.
6046         (avr_pop_frame): Ditto.
6047         (avr_frame_saved_pc): Ditto.
6048         (avr_saved_pc_after_call): Ditto.
6049         (avr_push_return_address): Ditto.
6050         (avr_frame_chain): Ditto.
6051         (avr_store_struct_return): Ditto.
6052         (avr_push_arguments): Ditto.
6053         (avr_scan_prologue): Update comments. Changed to set up the info for
6054         cache unwinding. Now returns end of prologue PC.
6055         (avr_skip_prologue): Better handling of functions lacking a prologue
6056         by using avr_scan_prologue.
6057         (avr_scan_arg_moves): New function.
6058         (avr_saved_regs_unwinder): Ditto.
6059         (avr_frame_unwind_cache): Ditto.
6060         (avr_unwind_pc): Ditto.
6061         (avr_frame_this_id): Ditto.
6062         (avr_frame_prev_register): Ditto.
6063         (avr_frame_p): Ditto.
6064         (avr_frame_base_address ): Ditto.
6065         (avr_unwind_dummy_id): Ditto.
6066         (avr_push_dummy_code): Ditto.
6067         (push_stack_item): Ditto.
6068         (pop_stack_item): Ditto.
6069         (avr_push_dummy_call): Ditto.
6070         (struct stack_item): Define.
6071         (avr_frame_unwind): Declare structure.
6072         (avr_frame_base): Ditto.
6073         (avr_gdbarch_init): Remove calls to
6074         set_gdbarch_deprecated_init_frame_pc,
6075         set_gdbarch_deprecated_target_read_fp,
6076         set_gdbarch_deprecated_dummy_write_sp,
6077         set_gdbarch_deprecated_fp_regnum,
6078         set_gdbarch_deprecated_push_arguments,
6079         set_gdbarch_deprecated_push_return_address,
6080         set_gdbarch_deprecated_pop_frame,
6081         set_gdbarch_deprecated_store_struct_return,
6082         set_gdbarch_deprecated_frame_init_saved_regs,
6083         set_gdbarch_deprecated_init_extra_frame_info,
6084         set_gdbarch_deprecated_frame_chain,
6085         set_gdbarch_deprecated_frame_saved_pc,
6086         set_gdbarch_deprecated_saved_pc_after_call.
6087         Add calls to set_gdbarch_push_dummy_call,
6088         set_gdbarch_push_dummy_code,
6089         frame_unwind_append_predicate,
6090         frame_base_set_default,
6091         set_gdbarch_unwind_dummy_id,
6092         set_gdbarch_unwind_pc.
6093         Wrap a long line.
6094
6095 2003-06-18  Corinna Vinschen  <[email protected]>
6096
6097         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6098         registers for H8/300S.
6099         (h8300_print_registers_info): Ditto.
6100         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6101
6102 2003-06-18  Daniel Jacobowitz  <[email protected]>
6103
6104         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6105         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6106         (lin_lwp_wait): Likewise.  Update comments.
6107         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6108         (pull_pid_from_list, linux_record_stopped_pid): New.
6109
6110 2003-06-17  Stephane Carrez  <[email protected]>
6111
6112         * ada-lang.c (scan_discrim_bound): Name first argument.
6113         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6114         declared by ALL_BLOCK_SYMBOLS.
6115
6116 2003-06-17  Stephane Carrez  <[email protected]>
6117
6118         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6119         ("regcache.h"): Include it.
6120         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6121
6122 2003-06-17  Daniel Jacobowitz  <[email protected]>
6123
6124         * NEWS: Mention gdbserver detach change and "disconnect" command.
6125         * infcmd.c (disconnect_command): New function.
6126         (_initialize_infcmd): Add ``disconnect'' command.
6127         * remote.c (remote_async_detach): Delete.
6128         (remote_detach): Merge remote_async_detach.
6129         (remote_disconnect): New.
6130         (init_remote_ops): Set to_disconnect.
6131         (init_remote_cisco_ops): Likewise.
6132         (init_remote_async_ops): Likewise.  Use remote_detach.
6133         * target.c (cleanup_target): Default to_disconnect.
6134         (update_current_target): Inherit to_disconnect.
6135         (target_disconnect, debug_to_disconnect): New functions.
6136         (setup_target_debug): Set to_disconnect.
6137         * target.h (struct target_ops): Add to_disconnect.
6138         (target_disconnect): Add prototype.
6139
6140 2003-06-17  Daniel Jacobowitz  <[email protected]>
6141
6142         * breakpoint.c (insert_catchpoint): New function.
6143         (insert_breakpoints): Use catch_exceptions to call
6144         insert_catchpoint.  Disable catchpoints if they fail to insert.
6145
6146 2003-06-17  Daniel Jacobowitz  <[email protected]>
6147
6148         * symfile.c (reread_symbols): Clear sym_private.
6149
6150 2003-06-17  Andrew Cagney  <[email protected]>
6151
6152         * trad-frame.h (struct frame_info): Add opaque declaration.
6153         * remote-fileio.h (struct cmd_list_element): Add opaque
6154         declaration.
6155         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6156         comments.
6157
6158 2003-06-17  Daniel Jacobowitz  <[email protected]>
6159
6160         * remote.c (remote_prepare_to_store): Replace call to
6161         deprecated_read_register_bytes with multiple regcache_raw_read
6162         calls.
6163
6164 2003-06-17  Kris Warkentin  <[email protected]>
6165
6166         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6167         (nto_find_and_open_solib): Likewise.
6168         (nto_init_solib_absolute_prefix): Likewise.
6169         (_initialize_nto_tdep): Fix indentation.
6170
6171 2003-06-17  Kris Warkentin  <[email protected]>
6172
6173         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6174
6175 2003-06-17  Kris Warkentin  <[email protected]>
6176
6177         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6178
6179 2003-06-17  Jim Blandy  <[email protected]>
6180
6181         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6182
6183 2003-06-16  Theodore A. Roth  <[email protected]>
6184
6185         * avr-tdep.c (avr_extract_return_value): New function.
6186         (avr_gdbarch_init): Set extract_return_value method.
6187
6188 2003-06-16  Andrew Cagney  <[email protected]>
6189
6190         * frame.h (deprecated_get_next_frame_hack): Declare.
6191         * frame.c (legacy_saved_regs_prev_register): Only require
6192         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6193         there are always saved regs.
6194         (deprecated_generic_get_saved_register): Do not require
6195         DEPRECATED_FRAME_INIT_SAVED_REGS.
6196         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6197         use frame ID unwind instead.
6198         (deprecated_get_next_frame_hack): New function.
6199
6200 2003-06-16  Corinna Vinschen  <[email protected]>
6201
6202         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6203         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6204         (h8300_push_return_address): Remove.
6205         (h8300_gdbarch_init): Remove calls to
6206         set_gdbarch_deprecated_dummy_write_sp,
6207         set_gdbarch_deprecated_push_arguments and
6208         set_gdbarch_deprecated_push_return_address.
6209         Add call to set_gdbarch_push_dummy_call.
6210
6211 2003-06-16  Corinna Vinschen  <[email protected]>
6212
6213         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6214         (E_PSEUDO_EXR_REGNUM): Ditto.
6215         (h8300_is_argument_spill): Check for instructions moving argument
6216         registers into safe registers.
6217         (h8300_skip_prologue): Check for stm instruction to push registers
6218         used for register variables onto stack.
6219         (gdb_print_insn_h8300): Remove.
6220         (h8300_examine_prologue): Add a comment.
6221         (h8300_register_name): Take pseudo registers into account.
6222         (h8300s_register_name): Ditto.
6223         (h8300sx_register_name): Ditto.
6224         (h8300_print_register): Ditto.
6225         (h8300_print_registers_info): Define "nice" printing order.
6226         (h8300_saved_pc_after_call): Take pseudo registers into account.
6227         (h8300_register_type): Ditto.  Return type used for remote connection
6228         when requesting real CCR or EXR register, return actual type when
6229         requesting pseudo CCR or EXR.
6230         (h8300_pseudo_register_read): New function.
6231         (h8300_pseudo_register_write): Ditto.
6232         (h8300_dbg_reg_to_regnum): Ditto.
6233         (h8300s_dbg_reg_to_regnum): Ditto.
6234         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6235         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6236         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6237         set_gdbarch_print_insn architecture dependent.
6238         Call set_gdbarch_pseudo_register_read and
6239         set_gdbarch_pseudo_register_write.
6240         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6241
6242 2003-06-16  Andrew Cagney  <[email protected]>
6243
6244         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6245         * gdbarch.h, gdbarch.c: Re-generate.
6246         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6247         * s390-tdep.c (s390_gdbarch_init): Update.
6248         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6249         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6250         * mips-tdep.c (mips_gdbarch_init): Update.
6251         * mcore-tdep.c (mcore_gdbarch_init): Update.
6252         * cris-tdep.c (cris_gdbarch_init): Update.
6253         * infcall.c (call_function_by_hand): Update.
6254         * ia64-tdep.c (ia64_push_arguments): Update comment.
6255         * frame.c (legacy_get_prev_frame): Do not assume
6256         SAVE_DUMMY_FRAME_TOS_P.
6257         * dummy-frame.c (find_dummy_frame): Update comment.
6258
6259 2003-06-16  Andrew Cagney  <[email protected]>
6260
6261         * regcache.c (do_cooked_read): Do not use register_valid_p.
6262
6263 2003-06-15  Theodore A. Roth  <[email protected]>
6264
6265         * avr-tdep.c (avr_register_type): Remove a blank line.
6266         (avr_scan_prologue): Correct some comments.
6267
6268 2003-06-15  Theodore A. Roth  <[email protected]>
6269
6270         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6271         prologue types.
6272         Properly scan prologues generated by gcc with the -mcall-prologues
6273         option.
6274         Add code to scan -mcall-prologues for mega devices.
6275
6276 2003-06-15  Theodore A. Roth  <[email protected]>
6277
6278         * avr-tdep.c (avr_register_byte): Delete function.
6279         (avr_register_raw_size): Delete function.
6280         (avr_register_virtual_size): Delete function.
6281         (avr_register_virtual_type): Delete function.
6282         (avr_register_type): New function.
6283         (avr_address_to_pointer): Remove unused code.
6284         (avr_read_fp): Need to read FP as two separate bytes due to change to
6285         avr_register_type() usage.
6286         (avr_gdbarch_init): Don't set deprecated_register_size.
6287         Don't set deprecated_register_bytes.
6288         Don't set deprecated_register_byte.
6289         Don't set deprecated_register_raw_size.
6290         Don't set deprecated_max_register_raw_size.
6291         Don't set deprecated_register_virtual_size.
6292         Don't set deprecated_max_register_virtual_size.
6293         Don't set deprecated_register_virtual_type.
6294         Set register_type method.
6295
6296 2003-06-15  Daniel Jacobowitz  <[email protected]>
6297
6298         * Makefile.in (linux-nat.o): Add rule.
6299         * linux-nat.c: New file.
6300         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6301         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6302         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6303         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6304         * config/arm/linux.mh (NATDEPFILES): Likewise.
6305         * config/i386/linux.mh (NATDEPFILES): Likewise.
6306         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6307         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6308         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6309         * config/mips/linux.mh (NATDEPFILES): Likewise.
6310         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6311         * config/s390/s390.mh (NATDEPFILES): Likewise.
6312         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6313
6314 2003-06-15  Mark Kettenis  <[email protected]>
6315
6316         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6317         replace out-of-date comment.
6318
6319 2003-06-15  Andrew Cagney  <[email protected]>
6320
6321         * rdi-share/host.h (Fail): Change to a varargs function.
6322         * remote-rdi.c (Fail): Update.
6323
6324 2003-06-15  Mark Kettenis  <[email protected]>
6325
6326         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6327         (i386_convert_register_p, i386_register_to_value,
6328         i386_register_from_value): Handle types longer than 8 bytes.
6329
6330 2003-06-15  Mark Kettenis  <[email protected]>
6331
6332         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6333         Move floating-point code to new function in i387-tdep.c.
6334         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6335         New functions containing code moved here from i386-tdep.c.
6336         * i387-tdep.h: Add opaque declaration for `struct type'.
6337         (i387_register_to_value, i387_value_to_register): New prototypes.
6338         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6339         (x86_64_init_abi): Set convert_register_p, register_to_value and
6340         value_to_register here.
6341
6342 2003-06-14  Andrew Cagney  <[email protected]>
6343
6344         * mips-tdep.c (mips_register_to_value): Make static.
6345         (mips_value_to_register): Make static.
6346         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6347         * ia64-tdep.c (ia64_register_raw_size): Make static.
6348         (ia64_register_virtual_size): Make static.
6349         (ia64_register_byte): Make static.
6350         * i387-tdep.c: Include "i387-tdep.h".
6351         (print_387_control_word): Delete function.
6352         (print_387_status_word): Delete function.
6353         (print_387_status_bits): Delete function.
6354         (print_387_control_bits): Delete function.
6355         * Makefile.in (i387-tdep.o): Update dependencies.
6356         * rdi-share/host.h (Fail): Declare.
6357         * remote-rdi.c (Fail): Update to match declaration.
6358
6359 2003-06-14  Andrew Cagney  <[email protected]>
6360
6361         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6362         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6363         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6364         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6365         * README: Delete reference to remote-array.
6366         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6367         (remote-array.o): Delete target.
6368         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6369         * remote-array.c: Delete file.
6370
6371 2003-06-14  Andrew Cagney  <[email protected]>
6372             Mark Kettenis  <[email protected]>
6373
6374         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6375         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6376         parameter with "frame".
6377         * gdbarch.h, gdbarch.c: Re-generate.
6378         * frame.h (put_frame_register): Declare.
6379         * frame.c (put_frame_register): New function.
6380         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6381         (legacy_register_to_value): Rewrite, use "frame" to get the
6382         register value.
6383         (legacy_value_to_register): Rewrite, use "frame" to find the
6384         register's location before storing.
6385         * arch-utils.h (legacy_convert_register_p): Update.
6386         (legacy_register_to_value, legacy_value_to_register): Update.
6387         * findvar.c (value_from_register): Rewrite, eliminate use of
6388         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6389         "frame" to REGISTER_TO_VALUE.
6390         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6391         lval_reg_frame_relative + lval_register branch of the switch.  Do
6392         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6393         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6394         I386_EDI_REGNUM): New defines.
6395         (i386_next_regnum, i386_convert_register_p,
6396         i386_register_to_value, i386_value_to_register): New functions.
6397         (i386_register_convertible, i386_register_convert_to_virtual,
6398         i386_convert_to_raw): Remove functions.
6399         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6400         value_to_register instead of register_convertible,
6401         register_convert_to_virtual and register_convert_to_raw.
6402         * mips-tdep.c (mips_convert_register_p): New function.
6403         (mips_value_to_register): Replace mips_register_convert_from_type.
6404         (mips_register_to_value): Replace mips_register_convert_to_type.
6405         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6406         register_to_value.
6407         * alpha-tdep.c (alpha_convert_register_p): Update.
6408         (alpha_value_to_register): Update, store the register.
6409         (alpha_register_to_value): Update, fetch the register.
6410
6411 2003-06-14  Theodore A. Roth  <[email protected]>
6412
6413         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6414         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6415         Don't set deprecated_call_dummy_words.
6416         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6417         Don't set remote_translate_xfer_address.
6418         (avr_io_reg_read_command): Remove commented out debug printf.
6419         Wrap a long line.
6420
6421 2003-06-14  Theodore A. Roth  <[email protected]>
6422
6423         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6424         causes gdb to seg fault.
6425
6426 2003-06-14  Daniel Jacobowitz  <[email protected]>
6427
6428         * sparc-nat.c (fetch_inferior_registers): Correct
6429         a reference to "registers".
6430
6431 2003-06-14  Jeroen Dekkers  <[email protected]>
6432
6433         * Makefile.in (exc_request_U_h): Define
6434         (exc_request_S_h): Likewise.
6435         (msg_reply_S_h): Likewise.
6436         (msg_U_h): Likewise.
6437         (notify_S_h): Likewise.
6438         (process_reply_S_h): Likewise.
6439         (gnu-nat.o): Depend on gdb_obstack_h
6440         * gnu-nat.c: Include "gdb_obstack.h".
6441
6442 2003-06-13  Andrew Cagney  <[email protected]>
6443
6444         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6445         * gdbarch.h, gdbarch.c: Re-generate.
6446
6447 2003-06-13  Andrew Cagney  <[email protected]>
6448
6449         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6450         when deprecated REGISTER macros can be deleted.
6451         * gdbarch.h, gdbarch.c: Re-generate.
6452
6453 2003-06-13  Jim Blandy  <[email protected]>
6454
6455         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6456         Linux entry point symbols for _dl_debug_state, too.
6457
6458 2003-06-13  Andrew Cagney  <[email protected]>
6459
6460         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6461         available, do not use the FP register, and always save the TOS.
6462         * dummy-frame.c (dummy_frame_this_id): Do not assert
6463         SAVE_DUMMY_FRAME_TOS.
6464         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6465         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6466         (i386_push_dummy_call): Add 8 to the returned SP.
6467         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6468         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6469         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6470         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6471         (x86_64_push_dummy_call): Return "sp + 16".
6472         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6473         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6474         save_dummy_frame_tos.
6475
6476 2003-06-13  Jim Blandy  <[email protected]>
6477
6478         * frv-tdep.c (frv_use_struct_convention): Delete static
6479         declaration for function deleted in my change of 2003-06-12.
6480
6481 2003-06-13  Theodore A. Roth  <[email protected]>
6482
6483         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6484         (avr_pointer_to_address): Shift code addrs left 1 bit.
6485         (avr_convert_from_func_ptr_addr): Delete function since operation is
6486         better handled by avr_address_to_pointer and avr_pointer_to_address.
6487         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6488
6489 2003-06-13  Mark Kettenis  <[email protected]>
6490
6491         From Kelley Cook  <[email protected]>:
6492         * configure.host: Accept i[34567]86 variants.
6493         * configure.tgt: Likewise.
6494         * nlm/configure.in: Likewise.
6495         * nlm/configure: Regenerated.
6496
6497 2003-06-13  Richard Earnshaw  <[email protected]>
6498
6499         * arm-tdep.c (solib-svr4.h): Dont' include it.
6500         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6501         * arm-linux-tdep.c: ... here.  Make static.
6502         (arm_linux_init_abi): Register it.
6503         (solib-svr4.h): Include it.
6504         * Makefile.in: Update dependencies.
6505         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6506         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6507
6508 2003-06-13  Corinna Vinschen  <[email protected]>
6509
6510         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6511         indicate registers used for return values.
6512         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6513         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6514         members.
6515         (h8300_init_extra_frame_info): Ditto.
6516         (h8300_frame_locals_address): Removed.
6517         (h8300_frame_args_address): Removed.
6518         (h8300_extract_return_value): Use new regcache structure. Only care
6519         for 16 bit CPUs.
6520         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6521         (h8300_store_return_value): Use new regcache structure. Only care
6522         for 16 bit CPUs.
6523         (h8300h_store_return_value): Same function for 32 bit CPUs.
6524         (h8300_store_struct_return): Removed.
6525         (h8300_extract_struct_value_address): Use new regcache structure.
6526         (h8300h_extract_struct_value_address): Removed.
6527         (h8300_push_dummy_code): New function.
6528         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6529         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6530         set_gdbarch_store_return_value architecture dependent.
6531         Call set_gdbarch_push_dummy_code and
6532         set_gdbarch_extract_struct_value_address.
6533         Remove calls to set_gdbarch_frame_args_address,
6534         set_gdbarch_frame_locals_address,
6535         set_gdbarch_deprecated_store_struct_return,
6536         set_gdbarch_deprecated_extract_return_value,
6537         set_gdbarch_deprecated_extract_struct_value_address,
6538         set_gdbarch_deprecated_call_dummy_words and
6539         set_gdbarch_deprecated_sizeof_call_dummy_words.
6540
6541 2003-06-13  Corinna Vinschen  <[email protected]>
6542
6543         * h8300-tdep.c (h8300_register_byte): Remove.
6544         (h8300h_register_byte): Remove.
6545         (h8300_register_virtual_type): Remove.  Substitute by...
6546         (h8300_register_type): New function.
6547         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6548         (h8300h_extract_struct_value_address): Ditto.
6549         (h8300_gdbarch_init): Drop calls to
6550         set_gdbarch_deprecated_register_byte and
6551         set_gdbarch_deprecated_register_virtual_type.
6552         Add call to set_gdbarch_register_type.
6553
6554 2003-06-13  Andrew Cagney  <[email protected]>
6555
6556         * gdbarch.sh: Update comments on registers.
6557         (deprecated_register_byte): Rename register_byte.
6558         (deprecated_register_raw_size): Rename register_raw_size.
6559         (deprecated_register_virtual_size): Rename register_virtual_size.
6560         (deprecated_register_virtual_type): Rename register_virtual_type.
6561         * gdbarch.h, gdbarch.c: Re-generate.
6562         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6563         * vax-tdep.c (vax_gdbarch_init): Update.
6564         * v850-tdep.c (v850_gdbarch_init): Update.
6565         * sparc-tdep.c (sparc_gdbarch_init): Update.
6566         * sh-tdep.c (sh_gdbarch_init): Update.
6567         * s390-tdep.c (s390_gdbarch_init): Update.
6568         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6569         * ns32k-tdep.c: Update.
6570         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6571         * mips-tdep.c (mips_gdbarch_init): Update.
6572         * mcore-tdep.c (mcore_gdbarch_init): Update.
6573         * m68k-tdep.c (m68k_gdbarch_init): Update.
6574         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6575         * ia64-tdep.c (ia64_gdbarch_init): Update.
6576         * hppa-tdep.c (hppa_gdbarch_init): Update.
6577         * h8300-tdep.c (h8300_gdbarch_init): Update.
6578         * frv-tdep.c (frv_gdbarch_init): Update.
6579         * cris-tdep.c (cris_gdbarch_init): Update.
6580         * avr-tdep.c (avr_gdbarch_init): Update.
6581         * alpha-tdep.c (alpha_gdbarch_init): Update.
6582         * arm-tdep.c (arm_gdbarch_init): Update.
6583
6584 2003-06-13  Andrew Cagney  <[email protected]>
6585
6586         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6587         mips_o32_use_struct_convention with always_use_struct_convention.
6588
6589 2003-06-12  David Carlton  <[email protected]>
6590
6591         * cp-namespace.c (cp_set_block_scope): Comment out
6592         processing_has_namespace_info branch.
6593
6594 2003-06-12  Jim Blandy  <[email protected]>
6595
6596         Recognize and skip 64-bit PowerPC Linux linkage functions.
6597         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6598         insn_pattern, insns_match_pattern, d_field, ds_field): New
6599         functions, macros, and types for working with PPC instructions.
6600         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6601         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6602         ppc64_skip_trampoline_code): New functions, variables, and macros
6603         for recognizing and skipping linkage functions.
6604         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6605         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6606
6607         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6608         register offsets for both the 32- and 64-bit interfaces.
6609
6610         Actually finish the job started by my change of 2003-05-29.
6611         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6612         other #definition of this.
6613         (ppc_linux_skip_trampoline_code): Remove declaration.
6614         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6615         static.
6616         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6617         method for GDBARCH.
6618
6619         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6620         'long' on ppc64-*-linux*.
6621
6622         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6623         isn't #defined, assume the register doesn't exist: act as if
6624         tdep->ppc_mq_regnum were -1.
6625
6626         * configure.host, configure.tgt: Add entries for
6627         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6628         powerpc/linux.mt.
6629         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6630         New files.
6631
6632         * arch-utils.c (always_use_struct_convention): New function.
6633         * arch-utils.h (always_use_struct_convention): New prototype.
6634         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6635         (alpha_gdbarch_init): Register always_use_struct_convention,
6636         instead of alpha_use_struct_convention.
6637         * cris-tdep.c (cris_use_struct_convention): Delete.
6638         (cris_gdbarch_init): Register always_use_struct_convention,
6639         instead of cris_use_struct_convention.
6640         * frv-tdep.c (frv_use_struct_convention): Delete.
6641         (frv_gdbarch_init): Register always_use_struct_convention,
6642         instead of frv_use_struct_convention.
6643         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6644         (h8300_gdbarch_init): Register always_use_struct_convention,
6645         instead of h8300_use_struct_convention.
6646         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6647         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6648         instead of mips_o32_use_struct_convention.
6649
6650 2003-06-12  Andrew Cagney  <[email protected]>
6651
6652         * wince.c: Include "mips-tdep.h".
6653         * mips-tdep.h (mips_next_pc): Declare.
6654         * mcore-tdep.c: Make more local functions static.
6655         * Makefile.in (wince.o): Update dependencies.
6656
6657 2003-06-12  David Carlton  <[email protected]>
6658
6659         * symtab.c (lookup_symbol_aux_minsyms): Replace
6660         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6661         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6662         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6663         SYMBOL_NATURAL_NAME.
6664
6665 2003-06-12  Andreas Schwab  <[email protected]>
6666
6667         * Makefile.in (tuiDisassem.o): Update dependencies.
6668
6669 2003-06-12  David Carlton  <[email protected]>
6670
6671         * symtab.h: Delete declaration of make_symbol_overload_list.
6672         Add declaration of lookup_partial_symbol.
6673         * symtab.c (remove_params): Move to cp-support.c.
6674         (overload_list_add_symbol, make_symbol_overload_list)
6675         (sym_return_val_size, sym_return_val_index): Ditto.
6676         (lookup_partial_symbol): Make extern.
6677         * cp-support.h: Add declaration of make_symbol_overload_list.
6678         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6679         symtab.h, and block.h.
6680         (remove_params): Move here from symtab.c.
6681         (overload_list_add_symbol, make_symbol_overload_list)
6682         (sym_return_val_size, sym_return_val_index): Ditto.
6683         * valops.c: Include cp-support.h.
6684         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6685         frame_h, and block_h.
6686         (valops.o): Depend on cp_support_h.
6687
6688 2003-06-12  Corinna Vinschen  <[email protected]>
6689
6690         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6691         substitute by NUM_REGS throughout.
6692         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6693         (h8300s_register_name): New function for H8S registers.
6694         (h8300sx_register_name): Ditto for H8SX registers.
6695         (h8300_print_register): Revise register printing, avoid depending
6696         on 32 bit long.
6697         (h8300_register_byte): Only care for H8/300 registers.
6698         (h8300h_register_byte): New function for any other architecture.
6699         (h8300_register_raw_size): Remove.
6700         (h8300_register_virtual_type): Revise to return actually useful
6701         type.
6702         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6703         (h8300h_extract_struct_value_address): New function for any other
6704         architecture.
6705         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6706         set_gdbarch_register_name, set_gdbarch_register_byte,
6707         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6708         Remove calls to set_gdbarch_deprecated_register_size,
6709         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6710         set_gdbarch_deprecated_max_register_raw_size,
6711         set_gdbarch_register_virtual_size and
6712         set_gdbarch_deprecated_max_register_virtual_size entirely.
6713         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6714         set_gdbarch_long_double_bit.
6715
6716 2003-06-11  Jeff Johnston  <[email protected]>
6717
6718         * doublest.c (convert_doublest_to_floatformat): When dealing
6719         with the implied integer bit, only alter mant_bits if we are
6720         processing a full 32 bits of mantissa.
6721
6722 2003-06-11  David Carlton  <[email protected]>
6723
6724         * dictionary.h: New.
6725         * dictionary.c: New.
6726         * block.h: Add opaque declaration for struct dictionary.
6727         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6728         'sym' members.
6729         (BLOCK_DICT): New macro.
6730         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6731         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6732         BLOCK_SHOULD_SORT.
6733         (ALL_BLOCK_SYMBOLS): Update definition.
6734         * Makefile.in (SFILES): Add dictionary.c.
6735         (dictionary_h): New.
6736         (COMMON_OBS): Add dictionary.o.
6737         (dictionary.o): New.
6738         (ada-lang.o): Depend on dictionary_h.
6739         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6740         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6741         (mi-cmd-stack.o): Ditto.
6742         (gdbtk-cmds.o): Update dependencies.
6743         (gdbtk-stack.o): Ditto.
6744         * ada-lang.c: Include dictionary.h.
6745         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6746         (fill_in_ada_prototype, debug_print_block): Ditto.
6747         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6748         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6749         'is_sorted'.
6750         * mdebugread.c: Include dictionary.h.
6751         (struct parse_stack): Delete 'maxsyms' member.
6752         (parse_symbol): Update calls to new_block.  Delete calls to
6753         shrink_block.  Use dictionary methods.
6754         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6755         Update calls to new_symtab.  Don't maintain maxsyms data.
6756         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6757         (add_symbol): Just call dict_add_symbol.
6758         (new_symtab): Delete 'maxsyms' argument.
6759         (new_symtab): Update calls to new_block.
6760         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6761         (shrink_block): Delete function.
6762         (fixup_sigtramp): Update call to new_block.  Add symbol via
6763         dict_add_symbol.
6764         * jv-lang.c: Include dictionary.h.
6765         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6766         appropriately.  Set class_symtab->free_func.  Make sure the
6767         blockvector is big enough to hold two blocks.
6768         (add_class_symtab_symbol): Use dictionary methods.
6769         (free_class_block): New function.
6770         (type_from_class): Replace explicit iteration by
6771         ALL_BLOCK_SYMBOLS.
6772         * symtab.h (struct symtab): Replace 'free_ptr' method by
6773         'free_func'.
6774         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6775         sort_symtab_syms.
6776         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6777         sort_symtab_syms.
6778         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6779         Include dictionary.h.
6780         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6781         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6782         sort_symtab_syms.
6783         * objfiles.c: Include dictionary.h.
6784         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6785         * buildsym.c: Include dictionary.h.
6786         (finish_block): Use dictionary methods.
6787         (end_symtab): Set free_func to NULL, not free_ptr.
6788         * tracepoint.c: Include dictionary.h.
6789         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6790         (scope_info): Ditto.
6791         * stack.c: Include dictionary.h.
6792         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6793         (print_block_frame_labels, print_frame_arg_vars)
6794         (print_frame_args): Ditto.
6795         * symmisc.c (free_symtab_block): Use dictionary methods.
6796         (dump_symtab): Ditto.
6797         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6798         Include dictionary.h.
6799         * symfile.h: Delete declarations of sort_block_syms,
6800         sort_symtab_syms.
6801         * symfile.c (sort_block_syms): Delete.
6802         (sort_symtab_syms): Delete.
6803         * symtab.c: Include dictionary.h.
6804         (lookup_block_symbol): Use dictionary iterators.
6805         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6806         (search_symbols, make_symbol_completion_list): Ditto.
6807         (make_symbol_overload_list): Ditto.
6808         * valops.c (value_of_local): Use dict_empty.
6809         Include dictionary.h.
6810
6811 2003-06-11  J. Brobecker  <[email protected]>
6812
6813         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6814
6815 2003-06-11  David Carlton  <[email protected]>
6816
6817         * block.h (BLOCK_SHOULD_SORT): Delete.
6818         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6819         blocks.
6820         * ada-lang.c (ada_add_block_symbols): Ditto.
6821         * symfile.c (sort_block_syms): Delete.
6822         (sort_symtab_syms): Ditto.
6823         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6824         declarations.
6825         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6826         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6827         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6828         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6829         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6830         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6831         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6832
6833 2003-06-11  Jeff Johnston  <[email protected]>
6834
6835         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6836         bits to 128.
6837
6838 2003-06-11  Andrew Cagney  <[email protected]>
6839
6840         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6841         REGISTER_CONVERTIBLE.
6842         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6843         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6844         * gdbarch.h, gdbarch.c: Re-generate.
6845         * arch-utils.h (deprecated_register_convertible_not): Rename
6846         generic_register_convertible_not.
6847         * arch-utils.c (deprecated_register_convertible_not): Rename
6848         generic_register_convertible.
6849         (legacy_convert_register_p, legacy_register_to_value): Update.
6850         * sh-tdep.c (sh64_push_arguments): Update.
6851         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6852         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6853         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6854         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6855         * arch-utils.c (legacy_value_to_register): Update.
6856         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6857         (rs6000_register_convert_to_raw): Make parameter "from" const.
6858         * mips-tdep.c (mips_gdbarch_init): Update.
6859         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6860         * infcmd.c (default_print_registers_info): Update.
6861         * ia64-tdep.c (ia64_gdbarch_init): Update.
6862         (ia64_register_convert_to_raw): Make parameter "from" const.
6863         * i386-tdep.c (i386_gdbarch_init): Update.
6864         (i386_register_convert_to_raw): Update.
6865
6866 2003-06-11  Andrew Cagney  <[email protected]>
6867
6868         * remote-fileio.c: Include "remote-fileio.h".
6869         * Makefile.in (remote-fileio.o): Update dependencies.
6870         (remote_fileio_h): Fix typo.
6871
6872 2003-06-11  Andrew Cagney  <[email protected]>
6873
6874         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6875         (xstormy16_save_dummy_frame_tos): Make static.
6876         (_initialize_xstormy16_tdep): Add declaration.
6877         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6878         * v850-tdep.c: Make local functions static.
6879         (_initialize_v850_tdep): Add declaration.
6880         * sparc-tdep.c: Make local functions static.
6881         (_initialize_sparc_tdep): Add declaration.
6882         * sh-tdep.c: Make local functions static.
6883         (_initialize_sh_tdep): Add declaration.
6884         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6885         * s390-tdep.c: Make local functions static.
6886         (_initialize_s390_tdep): Add declaration.
6887         * dbxread.c (find_stab_function_addr): Make static.
6888         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6889         * ocd.c (_initialize_remote_ocd): Add declaration.
6890         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6891         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6892         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6893         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6894         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6895         * remote-array.c (_initialize_array): Add declaration.
6896         (_initialize_remote_monitors): Add declaration.
6897         * remote-mips.c: Make local functions static.
6898         (_initialize_remote_mips): Add declaration.
6899         * mcore-tdep.c: Make all local functions static.
6900         (_initialize_mcore_tdep): Add declaration.
6901         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6902         * abug-rom.c (_initialize_abug_rom): Add declaration.
6903         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6904         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6905         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6906         * remote-est.c (_initialize_est): Add declaration.
6907         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6908         (m68hc11_call_dummy_address): Make static.
6909         * ia64-tdep.c: Make local functions static.
6910         (_initialize_ia64_tdep): Add declaration.
6911         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
6912         * monitor.c (monitor_wait_filter): Make static.
6913         (_initialize_remote_monitors): Add declaration.
6914         * remote-hms.c (_initialize_remote_hms): Add declaration.
6915         * remote-e7000.c (fetch_regs_from_dump): Make static.
6916         (expect_n): Make static.
6917         (_initialize_remote_e7000): Add declaration.
6918         * ser-e7kpc.c: Always include "defs.h".
6919         (_initialize_ser_e7000pc): Add declaration.
6920         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6921         * cris-tdep.c: Make all but one function static.
6922         (_initialize_cris_tdep): Add declaration.
6923         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6924         * solib.c (update_solib_list): Make static.
6925         (_initialize_solib): Add declaration.
6926         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
6927         (_initialize_avr_tdep): Add declaration.
6928         * remote-rdi.c (voiddummy): Make static.
6929         (_initialize_remote_rdi): Add declaration.
6930         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6931         * remote-rdp.c (send_rdp): Make static.
6932         (_initialize_remote_rdp): Add declaration.
6933         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6934
6935 2003-06-11  Corinna Vinschen  <[email protected]>
6936
6937         * remote-fileio.c: Make ari happy.
6938
6939 2003-06-10  J. Brobecker  <[email protected]>
6940
6941         * rs6000-nat.c (child_xfer_memory): Compute the right address when
6942         fetching the trailing bytes of the buffer we are about to write.
6943
6944 2003-06-10  Andrew Cagney  <[email protected]>
6945
6946         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
6947         * Makefile.in (remote-fileio.o): Update dependencies.
6948         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
6949         include <setjmp.h>, or <sys/types.h> conditional on USG.
6950         (remote_fio_jmp_buf): Delete global variable.
6951
6952 2003-06-10  Corinna Vinschen  <[email protected]>
6953             Martin M. Hunt  <[email protected]>
6954
6955         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
6956         (SFILES): Add remote-fileio.c.
6957         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
6958         dependencies for building remote.o.
6959         * remote-fileio.c: New file implementing the remote File-I/O protocol.
6960         * remote-fileio.h: New header file defining remote File-I/O interface.
6961         * remote.c (remote_write_bytes, remote_read_bytes): Remove
6962         static storage class.
6963         (remote_wait, remote_async_wait): Call remote_fileio_request() on
6964         'F' packet.
6965         (_initialize_remote): Call initialize_remote_fileio().
6966         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
6967         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6968         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
6969         (captured_main): Initialize new ui_files.
6970         * ui-file.c: Add read and fgets input functions.
6971         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
6972         (null_file_read): New function.
6973         (ui_file_read): New function.
6974         (set_ui_file_read): New function.
6975         (stdio_file_read): New function.
6976         * ui-file.h: New type ui_file_read_ftype.
6977         (set_ui_file_read): Declare.
6978         (ui_file_read): Declare.
6979
6980 2003-06-09  Andrew Cagney  <[email protected]>
6981
6982         * frame.h (deprecated_unwind_get_saved_register): Rename
6983         generic_unwind_get_saved_register, update comments.
6984         * mips-tdep.c (mips_get_saved_register): Update.
6985         * frame.c (deprecated_unwind_get_saved_register): Update.
6986
6987 2003-06-09  Andrew Cagney  <[email protected]>
6988
6989         * vax-tdep.c (vax_frame_locals_address): Delete function.
6990         (vax_gdbarch_init): Do not set frame_locals_address.
6991         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
6992         (m68hc11_gdbarch_init): Do not set frame_locals_address.
6993         * s390-tdep.c (s390_frame_args_address): Delete function.
6994         (s390_gdbarch_init): Do not set frame_args_address or
6995         frame_locals_address.
6996         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
6997         (ns32k_gdbarch_init): Do not set frame_locals_address.
6998         * hppa-tdep.c (hppa_frame_args_address): Delete function.
6999         (hppa_frame_locals_address): Delete function.
7000         (hppa_gdbarch_init): Do not set frame_args_address, or
7001         frame_locals_address.
7002         * arm-tdep.c (arm_frame_args_address): Delete.
7003         (arm_frame_locals_address): Delete.
7004         (arm_gdbarch_init): Do not set frame_args_address, or
7005         frame_locals_address.
7006
7007 2003-06-09  Andrew Cagney  <[email protected]>
7008
7009         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7010         * gdbarch.h, gdbarch.c: Re-generate.
7011         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7012         * arch-utils.c (frame_num_args_unknown): Delete function.
7013         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7014         (frame_info): Use FRAME_NUM_ARGS_P.
7015         * arm-tdep.c (arm_frame_num_args): Delete function.
7016         (arm_gdbarch_init): Do not set frame_num_args.
7017         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7018         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7019         (hppa_gdbarch_init): Do not set frame_num_args.
7020         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7021         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7022         frame_num_args to default frame_num_args_unknown.
7023         * v850-tdep.c (v850_gdbarch_init): Ditto.
7024         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7025         * sh-tdep.c (sh_gdbarch_init): Ditto.
7026         * s390-tdep.c (s390_gdbarch_init): Ditto.
7027         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7028         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7029         * mips-tdep.c (mips_gdbarch_init): Ditto.
7030         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7031         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7032         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7033         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7034         * i386-tdep.c (i386_gdbarch_init): Ditto.
7035         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7036         * frv-tdep.c (frv_gdbarch_init): Ditto.
7037         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7038         * cris-tdep.c (cris_gdbarch_init): Ditto.
7039         * avr-tdep.c (avr_gdbarch_init): Ditto.
7040         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7041
7042 2003-06-09  Andrew Cagney  <[email protected]>
7043
7044         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7045         (print_frame_args): Moved to "stack.c".
7046         * stack.c: Include "gdb_assert.h".
7047         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7048         (print_frame_args): Moved from "printcmd.c".
7049         * frame.h (print_frame_args): Delete declaration.
7050         * Makefile.in (stack.o): Update dependencies.
7051
7052 2003-06-08  Andrew Cagney  <[email protected]>
7053
7054         * frame.c (get_prev_frame): Remove reference to
7055         frame_args_address_correct in comments.
7056         * frame-base.c (default_frame_args_address): Delete code
7057         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7058         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7059         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7060         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7061         (vax_frame_args_address_correct): Delete declaration.
7062
7063 2003-06-08  Andrew Cagney  <[email protected]>
7064
7065         * gdbarch.sh (UNWIND_SP): Add.
7066         * gdbarch.h, gdbarch.c: Re-generate.
7067         * frame.c (frame_sp_unwind): New function.
7068         (get_frame_sp): New function.
7069         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7070         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7071         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7072         value.
7073         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7074         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7075
7076 2003-06-08  Andrew Cagney  <[email protected]>
7077
7078         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7079         REMOTE_BREAKPOINT.
7080         * remote.c: Update.
7081         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7082         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7083         * config/m68k/tm-sun3.h: Update.
7084         * config/m68k/tm-m68klynx.h: Update.
7085         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7086
7087         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7088         trad_frame".  Update comments.
7089         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7090         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7091         (trad_frame_register_value, trad_frame_prev_register): Update.
7092
7093 2003-06-08  Andrew Cagney  <[email protected]>
7094
7095         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7096         from GCC's acinclude.m4.
7097         * configure.in: Check for getopt's delcaration.
7098         * aclocal.m4, config.in, configure: Re-generate.
7099         * main.c (error_init): Delete declaration.
7100         * defs.h (error_init): Declare.
7101         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7102         (rs6000_convert_from_func_ptr_addr): Make static.
7103         (_initialize_rs6000_tdep): Add declaration.
7104         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7105         (show_commands, set_verbose, show_history): Delete declaration.
7106         * top.h (set_verbose): Add declaration.
7107         (show_history, set_history, show_commands): Add declaration.
7108         (do_restore_instream_cleanup): Add declaration.
7109         * objc-lang.c (specialcmp): Make static.
7110         (print_object_command): Make static.
7111         (find_objc_msgsend): Make static.
7112         (find_objc_msgcall_submethod_helper): Make static.
7113         (find_objc_msgcall_submethod): Make static.
7114         (_initialize_objc_language): Add declaration.
7115         (find_implementation_from_class): Make static.
7116         (find_implementation): Make static.
7117         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7118         * objc-lang.h (lookup_struct_typedef): Add declaration.
7119         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7120         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7121         (do_restore_user_call_depth): Make static.
7122         (do_restore_instream_cleanup): Delete declaration.
7123         (dont_repeat): Delete declaration.
7124         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7125         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7126         * reggroups.c (_initialize_reggroup): Add declaration.
7127         * cp-support.c (_initialize_cp_support): Add declaration.
7128         * cp-abi.c (_initialize_cp_abi): Add declaration.
7129         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7130         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7131         (_initialize_gnu_v3_abi): Add declaration.
7132         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7133         (_initialize_gnu_v2_abi): Add declaration.
7134         * frame-base.c (_initialize_frame_base): Add declaration.
7135         * doublest.c (floatformat_from_length): Make static.
7136         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7137         * frame.c (create_sentinel_frame): Make static.
7138         (_initialize_frame): Add declaration.
7139         * top.c (do_catch_errors): Make static.
7140         (gdb_rl_operate_and_get_next_completion): Make static.
7141         * typeprint.c: Include "typeprint.h".
7142         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7143         (sentinel_frame_this_id): Make static.
7144         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7145         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7146         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7147         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7148         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7149         * maint.c (maintenance_print_architecture): Make static.
7150         * signals/signals.c (_initialize_signals): Add declaration.
7151         * std-regs.c (_initialize_frame_reg): Add declaration.
7152         * jv-exp.y (push_variable): ISO C definition.
7153         (push_qualified_expression_name): Ditto.
7154         * memattr.c (_initialize_mem): Add declaration.
7155         * remote.c (remote_check_watch_resources): Make static.
7156         (remote_stopped_by_watchpoint): Make static.
7157         (remote_stopped_data_address): Make static.
7158         * d10v-tdep.c (nr_dmap_regs): Make static.
7159         (a0_regnum): Make static.
7160         (d10v_frame_unwind_cache): Make static.
7161         (d10v_frame_p): Make static.
7162         * osabi.c (show_osabi): Make static.
7163         (_initialize_gdb_osabi): Add extern declaration.
7164         * gdbtypes.c (make_qualified_type): Make static.
7165         (safe_parse_type): Make static.
7166         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7167         * macrotab.c (macro_bcache_free): Make static.
7168         * interps.c (interp_set_quiet): Make static.
7169         (interpreter_exec_cmd): Make static.
7170         * stack.h (select_frame_command): New file.
7171         * stack.c: Include "stack.h".
7172         (select_frame_command_wrapper): Delete function.
7173         (select_frame_command): Make global.
7174         * infcall.c: Include "infcall.h".
7175         * linespec.c: Include "linespec.h".
7176         * symfile.c (sections_overlap): Make static.
7177         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7178         * charset.c (_initialize_charset): Add missing prototype.
7179         * regcache.c (init_legacy_regcache_descr): Make static.
7180         (do_regcache_xfree): Make static.
7181         (regcache_xfer_part): Make static.
7182         (_initialize_regcache): Add missing prototype.
7183         * breakpoint.c (parse_breakpoint_sals): Make static.
7184         (breakpoint_sals_to_pc): Make static.
7185         * interps.h (clear_interpreter_hooks): ISO C declaration.
7186         * Makefile.in (stack_h): Define.
7187         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7188         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7189
7190 2003-06-08  Andrew Cagney  <[email protected]>
7191
7192         * Makefile.in (d10v-tdep.o): Update dependencies.
7193         (SFILES): Add trad-frame.c.
7194         (trad_frame_h): Define.
7195         (COMMON_OBS): Add trad-frame.o.
7196         (trad-frame.o): Specify dependencies.
7197         * d10v-tdep.c: Include "trad-frame.h".
7198         (saved_regs_unwinder): Delete function.
7199         (d10v_frame_prev_register): Use trad_frame_prev_register.
7200         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7201         trad_frame", delete "regs" and "prev_sp".
7202         (prologue_find_regs): Use trad-frame.
7203         * trad-frame.h, trad-frame.c: New files.
7204
7205 2003-06-08  Mark Kettenis  <[email protected]>
7206
7207         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7208
7209 2003-06-07  Adam Fedor  <[email protected]>
7210
7211         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7212         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7213         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7214         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7215         resolve_msgsend_super, resolve_msgsend_super_stret):
7216         Use it.
7217
7218 2003-06-07  Andrew Cagney  <[email protected]>
7219
7220         * symfile.h: Re-indent, clean up comments.
7221
7222 2003-06-07  Andrew Cagney  <[email protected]>
7223
7224         * inferior.h (deprecated_write_sp): Replace
7225         generic_target_write_sp.
7226         * regcache.c (deprecated_write_sp): Replace
7227         generic_target_write_sp.
7228         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7229         * vax-tdep.c (vax_gdbarch_init): Update.
7230         * v850-tdep.c (v850_gdbarch_init): Update.
7231         * sparc-tdep.c (sparc_gdbarch_init): Update.
7232         * sh-tdep.c (sh_gdbarch_init): Update.
7233         * s390-tdep.c (s390_gdbarch_init): Update.
7234         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7235         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7236         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7237         * mcore-tdep.c (mcore_gdbarch_init): Update.
7238         * m68k-tdep.c (m68k_gdbarch_init): Update.
7239         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7240         * ia64-tdep.c (ia64_gdbarch_init): Update.
7241         * h8300-tdep.c (h8300_gdbarch_init): Update.
7242         * frv-tdep.c (frv_gdbarch_init): Update.
7243         * cris-tdep.c (cris_gdbarch_init): Update.
7244         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7245
7246 2003-06-07  Andrew Cagney  <[email protected]>
7247
7248         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7249         Assert that PC_REGNUM is valid.
7250         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7251
7252 2003-06-07  Andrew Cagney  <[email protected]>
7253
7254         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7255         * gdbarch.h, gdbarch.c: Regenerate.
7256         * mn10300-tdep.c: Include "gdb_assert.h".
7257         (mn10300_read_fp): New function.
7258         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7259         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7260         * ia64-tdep.c: Include "gdb_assert.h".
7261         (ia64_read_fp): New function.
7262         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7263         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7264         * regcache.c (generic_target_read_sp): Delete function.
7265         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7266         * inferior.h (generic_target_read_sp): Delete declaration.
7267         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7268         generic_target_read_sp.
7269         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7270         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7271         * sh-tdep.c (sh_gdbarch_init): Ditto.
7272         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7273         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7274
7275 2003-06-07  Andrew Cagney  <[email protected]>
7276
7277         * gdbarch.sh: Comment each field of startup_gdbarch.
7278         * gdbarch.h, gdbarch.c: Re-generate.
7279
7280 2003-06-07  Andrew Cagney  <[email protected]>
7281
7282         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7283         * gdbarch.h, gdbarch.c: Re-generate.
7284         * regcache.c: Update comments on read_pc et.al.
7285         (generic_target_read_pc): Delete function.
7286         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7287         * inferior.h (generic_target_read_pc): Delete declaration.
7288         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7289         generic_target_read_pc.
7290         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7291         * sh-tdep.c (sh_gdbarch_init): Ditto.
7292         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7293         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7294
7295 2003-06-07  Andrew Cagney  <[email protected]>
7296
7297         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7298         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7299         Append period to coments.
7300
7301 2003-06-06  Mark Mitchell  <[email protected]>
7302
7303         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7304         (elfstab_offset_sections): Likewise.
7305         * gdb-stabs.h (stab_section_info): Likewise.
7306         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7307         * objfiles.c (objfile_relocate): Likewise.
7308         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7309         * remote.c (get_offsets): Likewise.
7310         (remote_cisco_objfile_relocate): Likewise.
7311         * somread.c (som_symfile_offsets): Likewise.
7312         * symfile.c (alloc_section_addr_info): New function.
7313         (build_section_addr_info_from_section_tab): Use it.
7314         (free_section_addr_info): Adjust.
7315         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7316         (syms_from_objfile): Allocate local_addr dynamically.
7317         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7318         dynamically.
7319         (add_symbol_file_command): Allocate sect_opts dynamically.
7320         (reread_symbols): Avoid use of SECT_OFF_MAX.
7321         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7322         (alloc_section_addr_info): Declare it.
7323         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7324         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7325         dynamically.
7326         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7327
7328 2003-06-06  Andrew Cagney  <[email protected]>
7329
7330         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7331         (d10v_frame_unwind_cache): Do not set "return_pc".
7332
7333 2003-06-06  Michael Snyder  <[email protected]>
7334
7335         * h8300-tdep.c: Make tidy (long lines).
7336
7337 2003-06-06  Michal Ludvig  <[email protected]>
7338
7339         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7340         to regcache_collect().
7341
7342 2003-06-05  J. Brobecker  <[email protected]>
7343
7344         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7345         pc_in_sigtramp multiarch method.
7346         (hppa_hpux_som_init_abi): Use it.
7347         (hppa_hpux_elf_init_abi): Likewise.
7348         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7349         macro has been multiarched.
7350         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7351         macro here, as hppa64 isn't multiarched yet.
7352
7353 2003-06-05  Andrew Cagney  <[email protected]>
7354
7355         * Makefile.in (value_h): Add $(frame_h).
7356         * value.h: Include "frame.h".
7357         (struct value): Replace "frame_addr" with "frame_id".
7358         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7359         * values.c (allocate_value): Use VALUE_FRAME_ID.
7360         (value_copy): Use VALUE_FRAME_ID.
7361         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7362         * valops.c (value_assign): Update.  Use frame_find_by_id.
7363
7364 2003-06-05  Michal Ludvig  <[email protected]>
7365
7366         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7367         in each pass.
7368
7369 2003-06-05  Jeff Johnston  <[email protected]>
7370
7371         * thread-db.c (check_event): For create/death event breakpoints,
7372         loop through all messages to ensure that we read the message
7373         corresponding to the breakpoint we are at.
7374
7375 2003-06-04  Michael Snyder  <[email protected]>
7376
7377         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7378
7379 2003-06-04  Mark Kettenis  <[email protected]>
7380
7381         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7382         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7383         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7384         when handling .eh_frame sections.
7385
7386 2003-06-04  J. Brobecker  <[email protected]>
7387
7388         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7389         prepare_to_proceed procedure instead of the hppa-specific one.
7390         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7391
7392 2003-06-04  Jeff Johnston  <[email protected]>
7393
7394         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7395         * config.in: Regenerated.
7396         * configure.in: Add test for syscall function and check for
7397         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7398         * configure: Regenerated.
7399         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7400         <sys/syscall.h>.
7401         (kill_lwp): New function that uses tkill syscall or
7402         uses kill, depending on whether threading model is nptl or not.
7403         All callers of kill() changed to use kill_lwp().
7404         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7405         see if all threads have already exited in the nptl model.
7406         (stop_and_resume_callback): New callback function used by the
7407         lin_lwp_wait thread exit handling code.
7408         (stop_wait_callback): Check for threads already having exited and
7409         delete such threads fromt the lwp list when discovered.
7410         (stop_callback): Don't assert retcode of kill call.
7411
7412         Roland McGrath  <[email protected]>
7413         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7414         nptl libthread_db.
7415
7416 2003-06-03  Richard Henderson  <[email protected]>
7417
7418         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7419         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7420         (alpha_sigtramp_frame_prev_register): Likewise.
7421         (alpha_heuristic_frame_prev_register): Likewise.
7422         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7423
7424         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7425         alpha-specific register id names.
7426         (alpha_mdebug_frame_unwind_cache): Likewise.
7427         (alpha_mdebug_frame_prev_register): Likewise.
7428
7429 2003-06-03  Richard Henderson  <[email protected]>
7430
7431         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7432         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7433         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7434         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7435         unwind routines.
7436         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7437         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7438         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7439
7440         * alpha-linux-tdep.c: Remove unnecessary includes.
7441         * Makefile.in (alpha-linux-tdep.o): Update.
7442
7443 2003-06-03  Richard Henderson  <[email protected]>
7444
7445         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7446         (alphabsd_fill_fpreg): Likewise.
7447
7448 2003-06-03  J. Brobecker  <[email protected]>
7449
7450         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7451         references to struct frame_info fields by calls to the equivalent
7452         accessors. Necessary now that frame_info is opaque.
7453
7454 2003-06-03  J. Brobecker  <[email protected]>
7455
7456         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7457         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7458         structure, field no longer exists.
7459
7460 2003-06-03  J. Brobecker  <[email protected]>
7461
7462         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7463         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7464
7465 2003-06-03  J. Brobecker  <[email protected]>
7466
7467         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7468         references to struct frame_info fields by calls to the equivalent
7469         accessors. Necessary now that frame_info is opaque.
7470
7471 2003-06-03  J. Brobecker  <[email protected]>
7472
7473         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7474         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7475         structure, field no longer exists.
7476
7477 2003-06-03  Theodore A. Roth  <[email protected]>
7478
7479         * remote.c (init_remote_state): Compute sizeof_g_packet by
7480         accumulation of the size of all registers instead of blindly using
7481         DEPRECATED_REGISTER_BYTES.
7482
7483 2003-06-03  Michael Snyder  <[email protected]>
7484
7485         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7486         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7487         for h8300sx.
7488
7489 2003-06-03  J. Brobecker  <[email protected]>
7490
7491         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7492         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7493
7494 2003-06-03  Andrew Cagney  <[email protected]>
7495
7496         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7497         (sparc_convert_to_raw): Delete function.
7498         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7499         register_convert_to_virtual.
7500
7501 2003-06-03  Jeff Johnston  <[email protected]>
7502
7503         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7504         layer if not dealing with a statically-linked threaded program.
7505
7506 2003-06-03  Kris Warkentin  <[email protected]>
7507
7508         * solib.c (solib_open): Update comment to reflect actual search order.
7509
7510 2003-06-03  Andrew Cagney  <[email protected]>
7511
7512         * frame.c (get_frame_memory_signed): New function.
7513         (get_frame_memory, get_frame_memory_unsigned): New function.
7514         (get_frame_arch): New function.
7515         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7516         (get_frame_memory, get_frame_unsigned_memory): Declare.
7517         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7518         get_frame_memory_unsigned and get_frame_arch.
7519         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7520
7521 2003-06-03  Raoul Gough  <[email protected]>
7522
7523         * MAINTAINERS (write after approval): Add myself.
7524
7525 2003-06-03  Jim Blandy  <[email protected]>
7526
7527         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7528         elements of gregset_t are 64 bits each, but access registers
7529         are still 32 bits, so they're packed two per gregset_t
7530         element.  Unpack/pack them properly.
7531
7532 2003-06-02  David Carlton  <[email protected]>
7533
7534         * linespec.c (find_methods): Break out code into
7535         add_matching_methods and add_constructors.
7536         (add_matching_methods): New.
7537         (add_constructors): Ditto.
7538
7539 2003-06-02  Andrew Cagney  <[email protected]>
7540
7541         * sparc-tdep.c (sparc_print_registers): Delete call to
7542         REGISTER_CONVERTIBLE.
7543         (sparc_gdbarch_init): Do not set register_convertible.
7544         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7545         * frv-tdep.c (frv_gdbarch_init): Ditto.
7546         * cris-tdep.c (cris_gdbarch_init): Ditto.
7547
7548 2003-06-02  Elena Zannoni  <[email protected]>
7549
7550         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7551         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7552         (syms_from_objfile): Ditto.
7553
7554 2003-06-03  Andreas Schwab  <[email protected]>
7555
7556         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7557         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7558
7559 2003-06-02  Richard Henderson  <[email protected]>
7560
7561         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7562         a member of all_reggroup.
7563
7564 2003-06-02  Richard Henderson  <[email protected]>
7565
7566         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7567         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7568         (alpha_lds, alpha_sts): New.
7569         (alpha_convert_register_p): Change from _register_convertible.
7570         (alpha_register_to_value): Change from _convert_to_virtual;
7571         restructure and fail for type sizes other than 4 or 8.
7572         (alpha_value_to_register): Similarly.
7573         (alpha_extract_return_value): Use alpha_sts.
7574         (alpha_store_return_value): Use alpha_lds.
7575         (alpha_gdbarch_init): Update hooks.
7576
7577 2003-06-02  Richard Henderson  <[email protected]>
7578
7579         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7580         regnum identifiers.
7581         (alpha_sigtramp_register_address): Likewise.
7582
7583 2003-06-02  Richard Henderson  <[email protected]>
7584
7585         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7586         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7587         * alpha-tdep.h: Declare them.
7588
7589         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7590         Remove zerobuf.  Don't error on UNIQUE.
7591         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7592         (ALPHA_REGSET_UNIQUE): Provide default.
7593         (supply_gregset): Use alpha_supply_int_regs.
7594         (fill_gregset): Use alpha_fill_int_regs.
7595         (supply_fpregset): Use alpha_supply_fp_regs.
7596         (fill_fpregset): Use alpha_fill_fp_regs.
7597         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7598         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7599         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7600         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7601         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7602         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7603
7604 2003-06-02  Richard Henderson  <[email protected]>
7605
7606         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7607
7608         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7609         (alpha_store_return_value): Likewise.
7610
7611 2003-06-02  David Carlton  <[email protected]>
7612
7613         * block.c (contained_in): Add 'const' to arguments.
7614         (block_function): Ditto.
7615         * block.h: Update declarations for block_function and
7616         contained_in.
7617
7618 2003-06-02  David Carlton  <[email protected]>
7619
7620         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7621         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7622         * p-valprint.c (pascal_val_print): Ditto.
7623         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7624
7625 2003-06-02  Richard Henderson  <[email protected]>
7626
7627         * alpha-tdep.c (alpha_push_dummy_call): Use
7628         builtin_type_ieee_double_little instead of builtin_type_double.
7629
7630         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7631         sign-extension of 32-bit values.
7632         (alpha_store_return_value): Similarly.
7633
7634         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7635         (alpha_extract_return_value): Likewise.
7636         (alpha_store_return_value): Likewise.
7637
7638         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7639         (alpha_store_return_value): Error on IEEE Quad floats.
7640
7641         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7642         (alpha_extract_struct_value_address): Likewise.
7643         (alpha_store_return_value): Likewise.
7644         (alpha_store_struct_return): Remove.
7645         (alpha_gdbarch_init): Update hook registration to match.
7646
7647         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7648         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7649         macros where appropriate.
7650         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7651         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7652
7653         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7654         for SP, GP; void_func_ptr for PC; non-language-specific types
7655         for all others.
7656         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7657
7658 2003-06-02  Richard Henderson  <[email protected]>
7659
7660         * top.h (lim_at_start): Declare.
7661         * main.c (captured_main): Set it.
7662         * top.c (lim_at_start): Define.
7663         (command_loop): Use it instead of &environ.
7664         * event-top.c (command_handler): Likewise.
7665
7666 2003-06-01  Jason Thorpe  <[email protected]>
7667
7668         * mipsnbsd-tdep.c: Update copyright years.
7669         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7670
7671 2003-06-01  Richard Henderson  <[email protected]>
7672
7673         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7674         (alpha-linux-tdep.o): Update dependencies.
7675         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7676         * alpha-mdebug-tdep.c: Remove unneeded includes.
7677
7678 2003-06-01  Richard Henderson  <[email protected]>
7679
7680         * alpha-tdep.c (alpha_register_reggroup_p): New.
7681         (alpha_gdbarch_init): Register it.
7682
7683 2003-06-02  Andrew Cagney  <[email protected]>
7684
7685         * dwarfread.c: Eliminate "register"
7686         (decode_die_type): Eliminate assignment within "if".
7687         (struct_type, decode_array_element_type): Ditto.
7688         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7689         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7690         (decode_modified_type, completedieinfo): Ditto.
7691         * block.c: Eliminate "register".
7692         (blockvector_for_pc_sect): Eliminate assignment within "if".
7693         * cp-support.h (struct symbol): Opaque declaration.
7694         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7695
7696 2003-06-01  Richard Henderson  <[email protected]>
7697
7698         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7699         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7700
7701 2003-06-01  Adam Fedor  <[email protected]>
7702
7703         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7704         * gdbarch.[ch]: Regenerate.
7705         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7706         (hppa_gdbarch_init): Set it in the gdbarch vector.
7707         * i386-tdep.c (i386_fetch_pointer_argument): New
7708         (i386_gdbarch_init): Set it into gdbarch.
7709         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7710         (rs6000_gdbarch_init): Set it in gdbarch.
7711         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7712         (sparc_gdbarch_init): Set it in gdbarch.
7713
7714 2003-06-01  Andrew Cagney  <[email protected]>
7715
7716         * defs.h (extract_address): Delete declaration.
7717         * findvar.c (extract_address): Delete function.
7718         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7719         extract_address with the inline equivalent,
7720         extract_unsigned_integer.
7721         (xstormy16_extract_struct_value_address): Ditto.
7722         (xstormy16_pointer_to_address): Ditto.
7723         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7724         * v850-tdep.c (v850_push_arguments): Ditto.
7725         (v850_extract_return_value): Ditto.
7726         (v850_extract_struct_value_address): Ditto.
7727         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7728         (sparcnbsd_get_longjmp_target_64): Ditto.
7729         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7730         (get_longjmp_target): Ditto.
7731         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7732         (sh64_extract_struct_value_address): Ditto.
7733         (sh_push_arguments): Ditto.
7734         (sh64_push_arguments): Ditto.
7735         * remote-vxsparc.c (vx_read_register): Ditto.
7736         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7737         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7738         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7739         * mipsv4-nat.c (get_longjmp_target): Ditto.
7740         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7741         * mips-nat.c (get_longjmp_target): Ditto.
7742         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7743         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7744         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7745         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7746         * irix5-nat.c (get_longjmp_target): Ditto.
7747         * irix4-nat.c (get_longjmp_target): Ditto.
7748         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7749         (ia64_push_arguments): Ditto.
7750         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7751         * h8300-tdep.c (h8300_push_arguments): Ditto.
7752         (h8300_store_return_value): Ditto.
7753         (h8300_extract_struct_value_address): Ditto.
7754         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7755         (frv_push_arguments): Ditto.
7756         * avr-tdep.c (avr_pointer_to_address): Ditto.
7757         (avr_push_arguments): Ditto.
7758         * arm-tdep.c (arm_push_dummy_call): Ditto.
7759         (arm_get_longjmp_target): Ditto.
7760         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7761         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7762         (alpha_get_longjmp_target): Ditto.
7763
7764         * solib-irix.c (extract_mips_address): Inline extract_address,
7765         replacing it with extract_signed_integer.
7766         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7767         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7768         (first_link_map_member, open_symbol_file_object): Ditto.
7769         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7770         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7771         (LM_NEXT, LM_NAME): Ditto.
7772
7773 2003-06-01  Richard Henderson  <[email protected]>
7774
7775         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7776         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7777         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7778         (alpha_cannot_store_register): Likewise.
7779         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7780         * alpha-nat.c (supply_gregset): Likewise.
7781         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7782
7783 2003-06-01  Andrew Cagney  <[email protected]>
7784
7785         * infcall.c (call_function_by_hand): Update comment on
7786         DEPRECATED_DUMMY_WRITE_SP.
7787
7788         * mips-tdep.c (mips_gdbarch_init): Do not set
7789         deprecated_dummy_write_sp.
7790         (mips_eabi_push_dummy_call): Set the SP register.
7791         (mips_o64_push_dummy_call): Set the SP register.
7792         (mips_o32_push_dummy_call): Set the SP register.
7793         (mips_n32n64_push_dummy_call): Set the SP register.
7794
7795 2003-06-01  Richard Henderson  <[email protected]>
7796
7797         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7798         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7799         (supply_gregset): Likewise.
7800         * alpha-tdep.c (alpha_store_return_value): Likewise.
7801         (alpha_get_longjmp_target): Likewise.
7802         (alpha_register_name): Constify array.
7803         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7804         deprecated_register_size, deprecated_register_bytes,
7805         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7806         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7807         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7808
7809 2003-06-01  Richard Henderson  <[email protected]>
7810
7811         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7812         from arg_reg_buffer to regcache to avoid double conversion.
7813
7814 2003-06-01  Mark Kettenis  <[email protected]>
7815
7816         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7817         SP_REGNUM.
7818         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7819         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7820
7821 2003-06-01  Richard Henderson  <[email protected]>
7822
7823         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7824         (decode_frame_entry): Set it.  Skip FDE augmentation.
7825
7826 2003-06-01  Richard Henderson  <[email protected]>
7827
7828         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7829         not overlapping PC_REGNUM.
7830
7831 2003-06-01  Richard Henderson  <[email protected]>
7832
7833         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7834         alpha_push_arguments.  Don't dump argument register data to
7835         the target stack.  Fix float and 128-bit long double semantics.
7836         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7837         (alpha_fix_call_dummy): Remove.
7838         (alpha_call_dummy_words): Remove.
7839         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7840
7841 2003-06-01  Richard Henderson  <[email protected]>
7842
7843         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7844
7845 2003-06-01  Andrew Cagney  <[email protected]>
7846
7847         * mips-tdep.c (is_mips16_addr): New function.
7848         (make_mips16_addr, unmake_mips16_addr): New functions.
7849         (pc_is_mips16, mips_fetch_instruction): Use.
7850         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7851         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7852         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7853         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7854         TARGET_MIPS.
7855         * config/mips/tm-mips.h: Update copyright.
7856         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7857         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7858         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7859         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7860         (TM_PRINT_INSN_MACH): Delete.
7861         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7862
7863         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7864         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7865         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7866         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7867         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7868         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7869         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7870         mips*-*-riscos* and mips*-*-sysv* onto mips.
7871         * config/mips/mips64.mt: New file.
7872         * config/mips/mips.mt: New file.
7873         * config/mips/littlemips.mt: Delete file.
7874         * config/mips/decstation.mt: Delete file.
7875         * config/mips/vr4300el.mt: Delete file.
7876         * config/mips/vr5000el.mt: Delete file.
7877         * config/mips/vr5000.mt: Delete file.
7878         * config/mips/vr4100.mt: Delete file.
7879         * config/mips/vr4xxxel.mt: Delete file.
7880         * config/mips/vr4300.mt: Delete file.
7881         * config/mips/vr4xxx.mt: Delete file.
7882         * config/mips/bigmips.mt: Delete file.
7883         * config/mips/bigmips64.mt: Delete file.
7884         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7885         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7886         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7887         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7888         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7889         "tm-bigmips.h".
7890         * config/mips/tm-irix3.h: Ditto.
7891         * config/mips/tm-mipsv4.h: Ditto.
7892         * config/mips/tm-embed.h: Ditto.
7893         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7894         "tm-bigmips64.h".
7895         * config/mips/tm-vr5000el.h: Delete file.
7896         * config/mips/tm-tx39l.h: Delete file.
7897         * config/mips/tm-vr4300el.h: Delete file.
7898         * config/mips/tm-vr4xxxel.h: Delete file.
7899         * config/mips/tm-vr4300.h: Delete file.
7900         * config/mips/tm-vr4100.h: Delete file.
7901         * config/mips/tm-vr4xxx.h: Delete file.
7902         * config/mips/tm-vr5000.h: Delete file.
7903         * config/mips/tm-embedl64.h: Delete file.
7904         * config/mips/tm-embedl.h: Delete file.
7905         * config/mips/tm-embed64.h: Delete file.
7906         * config/mips/tm-bigmips64.h: Delete file.
7907         * config/mips/tm-bigmips.h: Delete file.
7908
7909 2003-06-01  Mark Kettenis  <[email protected]>
7910
7911         Fix gdb/1216.
7912         * shnbsd-nat.c: Include "sh-tdep.h".
7913
7914         From Richard Henderson  <[email protected]>:
7915         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
7916
7917 2003-05-31  Andrew Cagney  <[email protected]>
7918
7919         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
7920         forward declaration.
7921         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7922         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
7923         (mips_find_saved_regs): Use set_reg_offset.
7924         (mips_frame_init_saved_regs): Delete function.
7925         (mips_pop_frame): Call mips_find_saved_regs instead of
7926         DEPRECATED_FRAME_INIT_SAVED_REGS.
7927
7928 2003-05-31  Andrew Cagney  <[email protected]>
7929
7930         * mips-tdep.c (mips_gdbarch_init): Do not set
7931         deprecated_max_register_raw_size, register_virtual_size, and
7932         deprecated_max_register_virtual_size.
7933
7934 2003-05-31  Mark Kettenis  <[email protected]>
7935
7936         * i386-tdep.c: Include "dwarf2-frame.h".
7937         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
7938         * Makefile.in (i386-tdep.o): Update dependencies.
7939
7940         * dwarf2-frame.c, dwarf2-frame.h: New files.
7941         * Makefile.in (SFILES): Add dwarf2-frame.c.
7942         (dwarf2_frame_h): Define.
7943         (COMMON_OBS): Add dwarf2-frame.o.
7944         (dwarf2-frame.o): Add dependencies.
7945
7946 2003-05-31  Andreas Jaeger  <[email protected]>
7947
7948         * x86-64-linux-nat.c: Fix comment.
7949
7950 2003-05-31  Mark Kettenis  <[email protected]>
7951
7952         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
7953         function signature.
7954
7955         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
7956         have a sigcontext_addr handler.
7957         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
7958         sigcontext_addr handler.
7959
7960 2003-05-31  Andrew Cagney  <[email protected]>
7961
7962         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
7963         (print_fp_register_row): Replace do_fp_register_row.
7964         (mips_print_fp_register): Add "file" and "frame" parameters.
7965         (mips_print_register): Add "file" and "frame" parameters.
7966         (mips_print_registers_info): Replace mips_do_registers_info.
7967         (mips_gdbarch_init): Set print_registers_info instead of
7968         deprecated_do_registers_info.
7969         (mips_read_fp_register_single): Add "frame" parameter.
7970         (mips_read_fp_register_double): Add "frame" parameter.
7971
7972 2003-05-31  Mark Kettenis  <[email protected]>
7973
7974         * i386-tdep.c (i386_register_name): Check for MMX registers first.
7975         Fixes a bug where GDB would print the wrong register names for
7976         targets without SSE.
7977
7978         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
7979         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7980         registers.
7981
7982         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
7983         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
7984         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
7985         TDEP->sc_sp_offset.
7986
7987         From Michal Ludvig  <[email protected]>:
7988         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
7989         and `sc_num_regs'.
7990         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
7991         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
7992         I386_ST0_REGNUM): Move here from...
7993         * i386-tdep.c: ... here.
7994         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
7995         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
7996         registers if possible.
7997         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
7998         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
7999         Remove variables.
8000         (i386bsd_sc_reg_offset): New variable.
8001         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8002         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8003         TDEP->sc_sp_offset.
8004         (i386fbsd_sc_reg_offset): New variable.
8005         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8006         TDEP->sc_num_regs.
8007         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8008         variables.
8009         (i386fbsd4_sc_reg_offset): New variable.
8010         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8011         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8012         TDEP->sc_sp_offset.
8013         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8014         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8015         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8016         Remove variables.
8017         (i386nbsd_sc_reg_offset): New variable.
8018         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8019         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8020         TDEP->sc_sp_offset.
8021         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8022         Remove variables.
8023         (i386obsd_sc_reg_offset): New variable.
8024         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8025         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8026         TDEP->sc_sp_offset.
8027         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8028         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8029         for frame pointer offset in `struct sigcontext'.
8030
8031 2003-05-31  Andrew Cagney  <[email protected]>
8032
8033         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8034         architecture methods call_dummy_words, sizeof_call_dummy_words,
8035         push_return_address, store_struct_return, and fix_call_dummy.  Set
8036         push_dummy_call instead of deprecated_push_arguments.
8037         (mips_store_struct_return): Delete function.
8038         (mips_fix_call_dummy): Delete function.
8039         (mips_push_return_address): Delete function.
8040         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8041         RA_REGNUM and T9_REGNUM.
8042         (mips_n32n64_push_dummy_call): Ditto for
8043         mips_n32n64_push_arguments.
8044         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8045         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8046
8047 2003-05-31  Andrew Cagney  <[email protected]>
8048
8049         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8050         "dummy_addr" to "bp_addr".
8051         * infcall.c (call_function_by_hand): Pass "funaddr" to
8052         gdbarch_push_dummy_call.
8053         * gdbarch.h, gdbarch.c: Re-generate.
8054         * i386-tdep.c (i386_push_dummy_call): Update.
8055         * arm-tdep.c (arm_push_dummy_call): Update.
8056         * d10v-tdep.c (d10v_push_dummy_call): Update.
8057
8058 2003-05-31  Mark Kettenis  <[email protected]>
8059
8060         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8061         variable declarations.
8062         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8063         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8064         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8065         x86_64_init_frame_pc, x86_64_init_frame_pc,
8066         x86_64_function_has_prologue): Remove prototypes.
8067         (X86_64_NUM_GREGS): New define.
8068         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8069         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8070         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8071         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8072         XMM1_REGNUM): Remove defines.
8073         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8074         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8075         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8076         X86_64_XMM1_REGNUM): New defines.
8077         (struct x86_64_register_info): Renamed from `struct
8078         register_info'.  Remove `size' member.
8079         (x86_64_register_info_table): Remove variable.
8080         (x86_64_register_info): New variable.
8081         (X86_64_NUM_REGS): New define.
8082         (X86_64_NUM_GREGS): Remove define.
8083         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8084         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8085         Remove variables.
8086         (x86_54_dwarf2_reg_to_regnum): Remove function.
8087         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8088         (x86_64_dwarf_reg_to_regnum): New function.
8089         (x86_64_register_name): Rewrite.
8090         (x86_64_register_raw_size): Remove function.
8091         (x86_64_register_byte_table): Remove variable.
8092         (x86_64_register_byte): Remove function.
8093         (x86_64_register_virtual_type): Remove function.
8094         (x86_64_register_type): New function.
8095         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8096         x86_64_register_convert_to_raw): Remove functions.
8097         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8098         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8099         defines.
8100         (x86_64_frame_init_saved_regs): Remove function.
8101         (x86_64_push_arguments): Make static.  Change to accept a regcache
8102         as argument.
8103         (x86_64_store_return_value, x86_64_extract_return_value): Make
8104         static.  Rewrite based on i386 counterparts.
8105         (x86_64_push_dummy_call): New function.
8106         (X86_64_NUM_SAVED_REGS): New define.
8107         (x86_64_register_number): Remove function.
8108         (x86_64_store_struct_return): Remove function.
8109         (x86_64_frameless_function_invocation,
8110         x86_64_function_has_prologue): Remove functions.
8111         (PROLOG_BUFSIZE): Remove define.
8112         (struct x86_64_frame_cache): New structure.
8113         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8114         x86_64_frame_cache, x86_64_frame_this_id,
8115         x86_64_frame_prev_register, x86_64_frame_p,
8116         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8117         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8118         functions.
8119         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8120         variables.
8121         (x86_64_skip_prologue): Rewrite in terms of
8122         x86_64_analyze_prologue.
8123         (x86_64_frame_base_address): New function.
8124         (x86_64_frame_base): New variable.
8125         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8126         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8127         set deprecated_fp_regnum, deprecated_register_size,
8128         deprecated_register_bytes, register_raw_size, register_byte,
8129         register_virtual_type, register_convertiable,
8130         register_convert_to_virtual, convert_to_raw,
8131         deprecated_get_saved_register, deprecated_target_read_fp,
8132         deprecated_push_arguments, deprecated_push_return_address,
8133         deprecated_pop_frame, deprecated_store_struct_return,
8134         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8135         frameless_function_invocation, deprecated_frame_saved_pc,
8136         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8137         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8138         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8139         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8140         and x86_64_frame_p.  Call frame_base_set_default to register
8141         x86_64_frame_base.
8142         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8143         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8144         (_initialize_x86_64_tdep): Remove function.
8145         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8146         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8147         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8148         define.
8149         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8150         (x86_64_linux_sigcontext_addr): Rewrite.
8151         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8152         x86_64_linux_frame_saved_pc): Remove functions.
8153         (x86_64_linux_pc_in_sigtramp): Renamed from
8154         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8155         trampoline.
8156         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8157         Remove_functions.
8158         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8159         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8160         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8161         (x86_64_regmap): Rename to regmap.
8162         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8163         x86_64_num_gregs.
8164         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8165         x86_64_regmap.
8166         (x86_64_fxsave_offset): Remove function.
8167         (supply_fpregset): Simply call x86_64_supply_fxsave.
8168         (fill_fpregset): Simply call x86_64_fill_fxsave.
8169         (fetch_inferior_registers, store_inferior_registers): Avoid
8170         asignment in if-statement.
8171         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8172         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8173         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8174         (fetch_core_registers): Remove function.
8175         (linux_elf_core_fns): Remove.
8176         (offsetoff): Don't define.
8177         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8178         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8179         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8180         add core-regset.o.
8181         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8182         protection against multiple includes instead of NM_X86_64_h.  Add
8183         various comments.  Include "config/nm-linux.h".  Don't include
8184         <signal.h>.
8185         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8186         GET_THREAD_SIGNALS): Remove defines.
8187         (x86_64_register_u_addr, kernel_u_size,
8188         lin_thread_get_thread_signals): Remove prototypes.
8189         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8190         [HAVE_LINK_H]: Don't include "solib.h".
8191         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8192         * config/i386/tm-x86-64linux.h: Fix comments.
8193         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8194         x86-64-tdep.o): Update dependencies.
8195
8196 2003-05-30  Andrew Cagney  <[email protected]>
8197
8198         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8199         Change parameter type to a "struct regcache *".
8200
8201         * gdbarch.sh: Regardless of the multi-arch level, always define
8202         the macro when not already defined.
8203         * gdbarch.h, gdbarch.c: Re-generate.
8204
8205 2003-05-30  Richard Henderson  <[email protected]>
8206
8207         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8208         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8209         (alpha_mdebug_frame_this_id): Likewise.
8210         (alpha_mdebug_frame_prev_register): Likewise.
8211         (alpha_mdebug_frame_base_address): Likewise.
8212         (alpha_mdebug_frame_locals_address): Likewise.
8213         (alpha_mdebug_frame_args_address): Likewise.
8214         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8215         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8216         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8217         loop increment.
8218         (alpha_heuristic_frame_this_id): Make static.
8219         (alpha_heuristic_frame_prev_register): Likewise.
8220         (alpha_heuristic_frame_base_address): Likewise.
8221         * alpha-tdep.h: Update.
8222
8223 2003-05-30  Mark Kettenis  <[email protected]>
8224
8225         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8226         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8227         defenitions.
8228         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8229         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8230         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8231         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8232         I386_ST0_REGNUM): New defines.
8233         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8234         codestream_get): Remove define.
8235         (codestream_next_addr, condestream_addr, condestream_buf,
8236         codestream_off, codestream_cnt): Remove variables.
8237         (codestream_fill, codestream_seek, codestream_read): Remove
8238         functions.
8239         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8240         functionality.
8241         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8242         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8243         i386_frame_saved_pc, i386_saved_pc_after_call,
8244         i386_frame_num_args, i386_frame_init_saved_regs,
8245         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8246         i386_push_arguments): Remove functions.
8247         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8248         functionality.  Use i386_analyze_prologue instead of
8249         i386_get_frame_setup.
8250         (I386_NUM_SAVED_REGS): New define.
8251         (struct i386_frame_cache): New structure.
8252         (i386_alloc_frame_cache, i386_analyze_struct_return,
8253         i386_skip_probe, i386_analyze_frame_setup,
8254         i386_analyze_register_saves, i386_analyze_prologue,
8255         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8256         i386_frame_prev_register, i386_sigtramp_frame_cache,
8257         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8258         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8259         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8260         New functions.
8261         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8262         New variables.
8263         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8264         I386_EAX_REGNUM and I386_EDX_REGNUM.
8265         (i386_extract_return_value, i386_store_return_value): Use
8266         I386_ST0_REGNUM where appropriate.
8267         (i386_extract_struct_value_address): Rewrite to use extract_address.
8268         (i386_svr4_pc_in_sigtramp): Add comment.
8269         (i386_svr4_sigcontext_addr): Rewrite.
8270         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8271         TDEP->sc_sp_offset.
8272         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8273         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8274         of new defines.  Set push_dummy_call, don't set
8275         deprecated_push_arguments, deprecated_push_return_address,
8276         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8277         deprecated_frame_chain, deprecated_frame_saved_pc,
8278         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8279         save_dummy_frame_tos, unwind_pc.  Call
8280         frame_unwind_append_predicate and frame_base_set_default.  Don't
8281         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8282         Don't set frameless_function_invocation.  Don't set
8283         deprecated_register_bytes, deprecated_register_size,
8284         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8285         * i386-linux-tdep.c: Fix formatting in some comments.
8286         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8287         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8288         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8289         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8290         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8291         redundant parentheses.
8292         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8293         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8294         (find_minsym_and_objfile): Change name of second argument.
8295         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8296         changed.  Use frame_pc_unwind instead of
8297         DEPRECATED_SAVED_PC_AFTER_CALL.
8298         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8299         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8300         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8301         unwinder.
8302         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8303         "dummy-frame.h".
8304         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8305         (_initialize_i386_cygwin_tdep): New prototype.
8306         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8307         deprecated_frame_chain_valid.
8308         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8309         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8310         Rely on the SVR4 defaults.
8311         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8312         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8313
8314 2003-05-30  Andrew Cagney  <[email protected]>
8315
8316         * infcall.c (call_function_by_hand): Always call
8317         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8318
8319 2003-05-30  Richard Henderson  <[email protected]>
8320
8321         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8322         increment.
8323
8324 2003-05-29  Jim Blandy  <[email protected]>
8325
8326         Use gdbarch methods for solib stuff on PowerPC Linux.
8327         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8328         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8329         show through.
8330         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8331         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8332         giving the same effect as the #definitions above.
8333
8334 2003-05-29  Adam Fedor  <[email protected]>
8335
8336         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8337         (find_implementation_from_class): Replace it with the standard
8338         case i.e. do nothing.
8339
8340 2003-05-29  Richard Henderson  <[email protected]>
8341
8342         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8343         (alpha_linux_sigtramp_offset): Use it.  Make static.
8344         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8345         update for new frame model.
8346         * alpha-mdebug-tdep.c: New file.
8347         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8348         (alpha_osf1_init_abi): Install it.
8349         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8350         (linked_proc_desc_table): Remove.
8351         (alpha_frame_past_sigtramp_frame): Remove.
8352         (alpha_dynamic_sigtramp_offset): Remove.
8353         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8354         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8355         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8356         (push_sigtramp_desc): Remove.
8357         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8358         (alpha_cannot_store_register): Likewise.
8359         (alpha_sigcontext_addr): Remove.
8360         (alpha_find_saved_regs): Remove.
8361         (alpha_frame_init_saved_regs): Remove.
8362         (alpha_init_frame_pc_first): Remove.
8363         (read_next_frame_reg): Remove.
8364         (alpha_frame_saved_pc): Remove.
8365         (alpha_saved_pc_after_call): Remove.
8366         (temp_proc_desc, temp_saved_regs): Remove.
8367         (alpha_about_to_return): Remove.
8368         (cached_proc_desc): Remove.
8369         (alpha_frame_chain): Remove.
8370         (alpha_print_extra_frame_info): Remove.
8371         (alpha_init_extra_frame_info): Remove.
8372         (alpha_frame_locals_address): Remove.
8373         (alpha_frame_args_address): Remove.
8374         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8375         (alpha_push_dummy_frame): Remove.
8376         (alpha_pop_frame): Remove.
8377         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8378         (alpha_read_insn): New.
8379         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8380         for different insn encodings.
8381         (alpha_in_lenient_prologue): Remove.
8382         (struct alpha_sigtramp_unwind_cache): New.
8383         (alpha_sigtramp_frame_unwind_cache): New.
8384         (alpha_sigtramp_register_address): New.
8385         (alpha_sigtramp_frame_this_id): New.
8386         (alpha_sigtramp_frame_prev_register): New.
8387         (alpha_sigtramp_frame_unwind): New.
8388         (alpha_sigtramp_frame_p): New.
8389         (struct alpha_heuristic_unwind_cache): New.
8390         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8391         don't count nop insns that occur between functions.
8392         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8393         heuristic_proc_desc, but without the mdebug wrapping.
8394         (alpha_heuristic_frame_this_id): New.
8395         (alpha_heuristic_frame_prev_register): New.
8396         (alpha_heuristic_frame_unwind): New.
8397         (alpha_heuristic_frame_p): New.
8398         (alpha_heuristic_frame_base_address): New.
8399         (alpha_heuristic_frame_base): New.
8400         (alpha_unwind_dummy_id): New.
8401         (alpha_unwind_pc): New.
8402         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8403         frame related deprecated initializations; install replacements.
8404         (alpha_dump_tdep): Remove.
8405         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8406         (alpha_read_insn, alpha_after_prologue,
8407         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8408         alpha_heuristic_frame_prev_register,
8409         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8410         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8411         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8412         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8413
8414 2003-05-29  Andrew Cagney  <[email protected]>
8415
8416         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8417         dependant on the availability of ASSERT_FUNCTION.
8418         (ASSERT_FUNCTION): Do not define when there is no function name.
8419
8420 2003-05-29  Kevin Buettner  <[email protected]>
8421
8422         From Jimi X <[email protected]>:
8423         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8424
8425 2003-05-28  Jim Blandy  <[email protected]>
8426
8427         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8428         argument to ptrace to int; the system headers should give it the
8429         right type, and pointers don't fit in ints on powerpc64-*-*.
8430
8431 2003-05-28  H.J. Lu <[email protected]>
8432
8433         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8434         DW_TAG_catch_block.
8435
8436 2003-05-26  Elena Zannoni  <[email protected]>
8437
8438         * stabsread.c (dbx_lookup_type): Make static.
8439         (read_type): Ditto.
8440         (add_undefined_type): Ditto.
8441         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8442         not export.
8443
8444 2003-05-26  Elena Zannoni  <[email protected]>
8445
8446         * hpread.c (hpread_has_name): Make static.
8447         (hpread_psymtab_to_symtab): Ditto.
8448         (file_exists): Ditto.
8449         (hpread_call_pxdb): Ditto.
8450         (hpread_pxdb_needed): Ditto.
8451         (hpread_quick_traverse): Ditto.
8452         (hpread_get_header): Ditto.
8453         (hpread_get_lntt): Ditto.
8454         (hpread_get_slt): Ditto.
8455         (class_of): Ditto.
8456
8457 2003-05-25  Andreas Schwab  <[email protected]>
8458
8459         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8460         stack_align and deprecated_extra_stack_alignment_needed.
8461         (m68k_stack_align): Delete.
8462
8463         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8464         (m68k_register_virtual_size): Likewise.
8465         (altos_skip_prologue): Remove obsolete function.
8466         (isi_frame_num_args): Likewise.
8467         (news_frame_num_args): Likewise.
8468         (m68k_fix_call_dummy): Make static.
8469         (m68k_push_dummy_frame): Likewise.
8470         (m68k_pop_frame): Likewise.
8471         (m68k_skip_prologue): Likewise.
8472         (m68k_frame_init_saved_regs): Likewise.
8473         (m68k_saved_pc_after_call): Likewise.
8474         (m68k_get_longjmp_target): Make multi-arch.
8475         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8476         structure.  Register m68k_get_longjmp_target if enabled.
8477         * m68k-tdep.h (struct gdbarch_tdep): Define.
8478         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8479
8480         * Makefile.in (config.status): Also depend on configure.tgt
8481         and configure.host.
8482         (m68klinux-tdep.o): Update dependencies.
8483         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8484         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8485         (M68K_LINUX_JB_PC): Define.
8486         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8487         and take additional parameter.
8488         (m68k_linux_sigtramp_saved_pc): Update.
8489         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8490         m68k_linux_pc_in_sigtramp, in_plt_section,
8491         find_solib_trampoline_target.
8492         * config/m68k/tm-linux.h: Don't include any tm headers.
8493         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8494         (JB_ELEMENT_SIZE): Likewise.
8495         (JB_PC): Likewise.
8496         (GET_LONGJMP_TARGET): Likewise.
8497         (IN_SIGTRAMP): Likewise.
8498         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8499
8500 2003-05-25  Mark Kettenis  <[email protected]>
8501
8502         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8503         (sparc32_push_arguments): Re-implement by calling
8504         sparc32_do_push_arguments.
8505
8506 2003-05-25  Mark Kettenis  <[email protected]>
8507
8508         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8509         SPARC_O1_REGNUM): New defines.
8510         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8511         (sparc32_store_return_value): New function.
8512         (sparc_extract_struct_value_address): Rewrite to operate on a
8513         regcache.
8514         (sparc_gdbarch_init): Don't set
8515         deprecated_extract_struct_value_address.  Set
8516         extract_struct_value_address instead. Don't set
8517         deprecated_extract_return_value and deprecated_store_return_value
8518         for 32-bit targets.  Set extract_return_value and
8519         store_return_value instead.
8520         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8521         DEPRECATED_EXTRACT_RETURN_VALUE,
8522         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8523         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8524         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8525         (sparc_store_return_value): Remove prototype.
8526         (sparc32_store_return_value): New prototype.
8527         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8528         Adjust prototypes.
8529
8530 2003-05-24  Mark Kettenis  <[email protected]>
8531
8532         * sparcnbsd-tdep.c: Include "gdb_string.h".
8533
8534 2003-05-23  Andrew Cagney  <[email protected]>
8535
8536         * p-valprint.c (pascal_val_print): Replace extract_address with
8537         the inline equivalent extract_unsigned_integer.
8538         * jv-valprint.c (java_value_print): Ditto.
8539         * ada-valprint.c (ada_val_print_1): Ditto.
8540         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8541
8542 2003-05-23  Theodore A. Roth  <[email protected]>
8543
8544         * blockframe.c (frameless_look_for_prologue): Remove unused
8545         after_prologue variable.
8546
8547 2003-05-23  Mark Kettenis  <[email protected]>
8548
8549         * blockframe.c (get_pc_function_start): Rewrite to avoid
8550         asignments in if-statements.
8551
8552 2003-05-23  Raoul Gough  <[email protected]>
8553
8554         Committed by Elena Zannoni  <[email protected]>.
8555         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8556         files, don't relocate absolute symbols (and do use mst_abs).
8557
8558 2003-05-23  Andrew Cagney  <[email protected]>
8559
8560         * objc-lang.c: Include "gdb_assert.h".
8561         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8562         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8563         (gdb_check, gdb_check_fatal): Delete functions.
8564         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8565         gdb_assert.
8566         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8567         * Makefile.in (objc-lang.o): Update dependencies.
8568
8569 2003-05-22  Ian Lance Taylor  <[email protected]>
8570
8571         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8572         with fprintf_filtered, not fprintf_unfiltered.
8573
8574 2003-05-22  Andrew Cagney  <[email protected]>
8575
8576         * stack.c (frame_info): Inline extract_address, replacing it with
8577         extract_unsigned_integer.
8578         * findvar.c (unsigned_pointer_to_address): Ditto.
8579         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8580         * dwarf2expr.c (dwarf2_read_address): Ditto.
8581         * frame.c (frame_pc_unwind): Update comment.
8582         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8583
8584 2003-05-22  Jeff Johnston  <[email protected]>
8585
8586         * infptrace.c (detach): Call print_sys_errmsg rather than
8587         perror_with_name to issue warning message when errno is non-zero
8588         after calling ptrace detach.
8589
8590 2003-05-21  J. Brobecker  <[email protected]>
8591
8592         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8593         macro definitions from here...
8594         * hppa-tdep.c: ...to there.
8595
8596 2003-05-20  Kevin Buettner  <[email protected]>
8597
8598         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8599         register_ptrace_addr().  Fix all callers.
8600
8601 2003-05-21  Andreas Schwab  <[email protected]>
8602
8603         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8604         dependencies.
8605         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8606         end.
8607         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8608         (_initialize_m68k_linux_tdep): New function.
8609         (m68k_linux_frame_saved_pc): Make static.
8610         (m68k_linux_extract_return_value): Likewise.
8611         (m68k_linux_store_return_value): Likewise.
8612         (m68k_linux_extract_struct_value_address): Likewise.
8613         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8614         Remove.
8615         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8616         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8617         (DEPRECATED_FRAME_SAVED_PC): Remove.
8618
8619 2003-05-20  Kris Warkentin  <[email protected]>
8620
8621         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8622         regset numbering rather than our own.
8623
8624 2003-05-19  David Carlton  <[email protected]>
8625
8626         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8627
8628 2003-05-19  David Carlton  <[email protected]>
8629
8630         Partial fix for PR c++/827.
8631         * cp-support.h: Include symtab.h.
8632         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8633         * cp-namespace.c: Update contributors.
8634         (cp_lookup_symbol_nonlocal): New.
8635         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8636         (lookup_symbol_file): Ditto.
8637         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8638         * block.h: Declare block_scope, block_using, block_global_block.
8639         * block.c (block_scope): New.
8640         (block_using, block_global_block): Ditto.
8641         * Makefile.in (cp_support_h): Depend on symtab_h.
8642         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8643
8644 2003-05-19  David Carlton  <[email protected]>
8645
8646         * language.h (struct language_defn): Add 'la_value_of_this'
8647         and 'la_lookup_symbol_nonlocal' members.
8648         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8649         lookup_symbol_static, lookup_symbol_global,
8650         lookup_symbol_aux_block.
8651         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8652         if we should search fields of this and how to do static/global
8653         lookup.
8654         (lookup_symbol_aux_block): Make extern.
8655         (basic_lookup_symbol_nonlocal): New.
8656         (lookup_symbol_static, lookup_symbol_global): Ditto.
8657         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8658         'la_lookup_symbol_nonlocal' members.
8659         * c-lang.c (c_language_defn, cplus_language_defn)
8660         (asm_language_defn, minimal_language_defn): Ditto.
8661         * jv-lang.c (java_language_defn): Ditto.
8662         * language.c (unknown_language_defn, auto_language_defn)
8663         (local_language_defn): Ditto.
8664         * m2-lang.c (m2_language_defn): Ditto.
8665         * objc-lang.c (objc_language_defn): Ditto.
8666         * scm-lang.c (scm_language_defn): Ditto.
8667         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8668         * p-lang.c (pascal_language_defn): Ditto for both.
8669         * Makefile.in (f-lang.o): Depend on value_h.
8670         (p-lang.o): Ditto.
8671
8672 2003-05-19  David Carlton  <[email protected]>
8673
8674         * block.h: Declare block_static_block.
8675         * block.c (block_static_block): New.
8676         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8677         lookup_symbol_aux_local, calling block_static_block instead.
8678         (lookup_symbol_aux_local): Delete 'static_block' argument.
8679
8680 2003-05-19  David Carlton  <[email protected]>
8681
8682         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8683
8684 2003-05-19  Michal Ludvig  <[email protected]>
8685
8686         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8687         register numbers mapping.
8688
8689 2003-05-18  Adam Fedor  <[email protected]>
8690
8691         * symtab.c (completion_list_objc_symbol): New function.
8692         (make_symbol_completion_list): Use it to add ObjC symbols
8693         when looking though the list.
8694         (language_search_unquoted_string): New function.
8695         (make_file_symbol_completion_list): Use it.
8696
8697 2003-05-18  Andreas Schwab  <[email protected]>
8698
8699         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8700         dependencies.
8701         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8702         as m68k_linux_extract_return_value.
8703         (DEPRECATED_STORE_RETURN_VALUE): Define as
8704         m68k_linux_store_return_value.
8705         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8706         m68k_linux_extract_struct_value_address.
8707         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8708         get_next_frame, get_frame_base, get_frame_pc.
8709         (m68k_linux_frame_saved_pc): Use get_frame_base.
8710         (m68k_linux_extract_return_value): New function.
8711         (m68k_linux_store_return_value): New function.
8712         (m68k_linux_extract_struct_value_address): New function.
8713         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8714
8715         * c-exp.y (typebase): Remove duplicate occurence of
8716         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8717         of lookup_signed_typename.
8718
8719 2003-05-18  Mark Kettenis  <[email protected]>
8720
8721         * dwarf2loc.c (find_location_expression): Change type of second
8722         argument to `size_t *'.
8723         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8724         for size variable.
8725
8726 2003-05-18  David Carlton  <[email protected]>
8727
8728         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8729         'linkage_name'.  Add comment.
8730         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8731         'linkage_name'.
8732         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8733         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8734         (lookup_block_symbol): Ditto.
8735
8736 2003-05-16  Andrew Cagney  <[email protected]>
8737
8738         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8739         * gdbarch.h, gdbarch.c: Re-generate.
8740         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8741         * TODO (REGISTER_BYTES): Delete reference.
8742         * alpha-tdep.c (alpha_gdbarch_init): Update.
8743         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8744         * x86-64-tdep.c (x86_64_init_abi): Update.
8745         * vax-tdep.c (vax_gdbarch_init): Update.
8746         * v850-tdep.c (v850_gdbarch_init): Update.
8747         * sparc-tdep.c (sparc_gdbarch_init): Update.
8748         * sh-tdep.c (sh_gdbarch_init): Update.
8749         * s390-tdep.c (s390_gdbarch_init): Update.
8750         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8751         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8752         (ns32k_gdbarch_init_32382): Update.
8753         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8754         * mcore-tdep.c (mcore_gdbarch_init): Update.
8755         * m68k-tdep.c (m68k_gdbarch_init): Update.
8756         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8757         * ia64-tdep.c (ia64_gdbarch_init): Update.
8758         * i386-tdep.c (i386_gdbarch_init): Update.
8759         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8760         * hppa-tdep.c (hppa_gdbarch_init): Update.
8761         * h8300-tdep.c (h8300_gdbarch_init): Update.
8762         * frv-tdep.c (frv_gdbarch_init): Update.
8763         * cris-tdep.c (cris_gdbarch_init): Update.
8764         * avr-tdep.c (avr_gdbarch_init): Update.
8765         * arm-tdep.c (arm_gdbarch_init): Update.
8766         * sparc-tdep.c (sparc_pop_frame): Update.
8767         * rs6000-tdep.c (rs6000_pop_frame): Update.
8768         * remote.c (init_remote_state): Update.
8769         (remote_prepare_to_store): Update.
8770         * remote-vx.c (vx_prepare_to_store): Update.
8771         * remote-sds.c (sds_fetch_registers): Update.
8772         (sds_prepare_to_store): Update.
8773         * remote-array.c: Update.
8774         * regcache.c (init_legacy_regcache_descr): Update.
8775         (init_regcache_descr): Update.
8776         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8777         (mips_o64_extract_return_value): Update.
8778         * irix5-nat.c (fetch_core_registers): Update.
8779         * irix4-nat.c (fetch_core_registers): Update.
8780         * i386-tdep.h: Update.
8781         * hppa-tdep.c (pa_do_registers_info): Update.
8782         (pa_do_strcat_registers_info): Update.
8783         * cris-tdep.c (cris_register_bytes_ok): Update.
8784         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8785         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8786         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8787         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8788         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8789         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8790         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8791         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8792         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8793         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8794         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8795         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8796         (REGISTER_BYTES_OK): Update.
8797         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8798         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8799
8800 2003-05-16  Ian Lance Taylor  <[email protected]>
8801
8802         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8803         (vax_print_insn, print_insn_arg): Remove static functions.
8804         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8805         print_insn_vax from opcodes library.
8806         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8807
8808 2003-05-15  Andrew Cagney  <[email protected]>
8809
8810         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8811         * target.h (memory_breakpoint_from_pc): Delete declaration.
8812         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8813         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8814         * monitor.c (monitor_insert_breakpoint): Use
8815         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8816         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8817         * gdbarch.h, gdbarch.c: Re-generate.
8818         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8819         (sparc_gdbarch_init): Set breakpoint_from_pc to
8820         sparc_breakpoint_from_pc.
8821         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8822         (BREAKPOINT_FROM_PC): Define.
8823         (sparc_breakpoint_from_pc): Declare.
8824         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8825         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8826         (BREAKPOINT_FROM_PC): Define.
8827         (BREAKPOINT): Delete macro.
8828         * target.h: Update comment.
8829         * s390-tdep.c (s390_gdbarch_init): Update comments.
8830         * remote.c: Update comments.
8831         * remote-mips.c: Update comments.
8832         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8833         * mem-break.c: Update comment.
8834         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8835         (ia64_memory_insert_breakpoint): Update.
8836         * config/sparc/tm-sparc.h: Update comment.
8837         * config/pa/tm-hppa64.h: Update comment.
8838         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8839         (rs6000_breakpoint_from_pc): Update.
8840         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8841         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8842         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8843         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8844         (mips_breakpoint_from_pc): Update.
8845         (mips_dump_tdep): Update.
8846
8847         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8848         * minsyms.c (lookup_minimal_symbol): Inline
8849         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8850
8851         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8852         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8853         * p-lang.c (pascal_printstr): Ditto.
8854         * objc-lang.c (objc_printstr): Ditto.
8855         * m2-lang.c (m2_printstr): Ditto.
8856         * jv-valprint.c (java_print_value_fields): Ditto.
8857         * f-lang.c (f_printstr): Ditto.
8858         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8859         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8860         for repeat_count_threshold.
8861         * Makefile.in (cp-valprint.o): Update dependencies.
8862
8863 2003-05-15  Jeff Johnston  <[email protected]>
8864
8865         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8866         (examine_prologue): Support looking through leaf functions, knowing
8867         they start with mov r2,r12.  Support skipping over indirect stores
8868         of the input registers.  Upon hitting a non-nop branch instruction
8869         or predicated instruction, bail out by setting lim_pc to the current
8870         pc value in the loop.  At the end, if the lim_pc value is still
8871         beyond our calculated value and we have trust_limit set,
8872         use the lim_pc value.
8873
8874 2003-05-15  Andrew Cagney  <[email protected]>
8875
8876         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8877         generic_find_dummy_frame.
8878         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8879         (deprecated_generic_find_dummy_frame): Update.
8880         (deprecated_read_register_dummy): Update.
8881         * frame.c (deprecated_generic_get_saved_register): Update.
8882
8883 2003-05-15  Theodore A. Roth  <[email protected]>
8884
8885         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8886         (avr_gdbarch_init): Set breakpoint_from_pc method.
8887
8888 2003-05-15  Andrew Cagney  <[email protected]>
8889
8890         * regcache.c (build_regcache): Set deprecated_register_valid
8891         directly.
8892         (deprecated_grub_regcache_for_register_valid): Delete function.
8893         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8894         declaration.
8895
8896 2003-05-15  David Carlton  <[email protected]>
8897
8898         Committed by Elena Zannoni <[email protected]>
8899         * symtab.c (lookup_symbol_aux): Delete calls to
8900         lookup_symbol_aux_minsyms.
8901         (lookup_symbol_aux_minsyms): Comment out function and
8902         prototype. Delete lookup by mangled name.
8903
8904 2003-05-14  Kevin Buettner  <[email protected]>
8905
8906         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8907         correctly indicate an empty stack and ``stack_allocated'' to the
8908         indicate the number of elements initially allocated.
8909         (dwarf_expr_grow_stack): Simplify method for computing new
8910         stack size.  Don't loop infinitely if ``stack_len'' is zero.
8911         (execute_stack_op): Move ``ctx->in_reg'' initialization
8912         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
8913         be used in conjuction with DW_OP_piece.  Revise error message
8914         accordingly.
8915
8916 2003-05-14  Theodore A. Roth  <[email protected]>
8917
8918         * MAINTAINERS: Update my email address.
8919         * avr-tdep.c: Ditto.
8920
8921 2003-05-14  Elena Zannoni  <[email protected]>
8922
8923         * symtab.h (enum domain_enum): Rename from namespace_enum.
8924         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
8925         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
8926         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
8927         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
8928         TYPES_NAMESPACE, METHODS_NAMESPACE.
8929         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
8930         (struct symbol, struct partial_symbol): Rename field
8931         'namespace_enum namespace' to 'domain_enum domain'.
8932         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
8933         Delete old define kludge for namespace.
8934
8935         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
8936         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
8937         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
8938         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
8939         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
8940         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
8941         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
8942         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
8943         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
8944         occurrences of the above.
8945
8946 2003-05-14  Ian Lance Taylor  <[email protected]>
8947
8948         * Makefile.in (install-only): Use $(SHELL) when running
8949         mkinstalldirs.
8950
8951 2003-05-13  Ian Lance Taylor  <[email protected]>
8952
8953         * MAINTAINERS (write after approval): Add myself.
8954
8955         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
8956         second and third arguments.
8957         * ser-tcp.c (_initialize_ser_tcp): Likewise.
8958         * ser-unix.c (_initialize_ser_hardwire): Likewise.
8959
8960 2003-05-13  Andrew Cagney  <[email protected]>
8961
8962         * defs.h (store_address): Delete declaration.
8963         findvar.c (store_address): Delete function.
8964         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
8965         store_unsigned_integer.
8966         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
8967         * v850-tdep.c (v850_push_arguments): Ditto.
8968         * sparc-tdep.c (sparc_get_saved_register): Ditto.
8969         * sh-tdep.c (sh64_get_saved_register): Ditto.
8970         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
8971         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
8972         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
8973         (mips_get_saved_register): Ditto.
8974         * ia64-tdep.c (ia64_get_saved_register): Ditto.
8975         (find_func_descr, ia64_push_arguments): Ditto.
8976         * i386-tdep.c (i386_push_arguments): Ditto.
8977         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8978         * frv-tdep.c (frv_push_arguments): Ditto.
8979         * frame.c (legacy_saved_regs_prev_register): Ditto.
8980         (deprecated_generic_get_saved_register): Ditto.
8981         * findvar.c (unsigned_address_to_pointer): Ditto.
8982         * dwarf2read.c (dwarf2_const_value): Ditto.
8983         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8984         * alpha-tdep.c (alpha_push_arguments): Ditto.
8985
8986 2003-05-12  J. Brobecker  <[email protected]>
8987
8988         * NEWS: Mention that the hppa-hpux port has been partially
8989         multiarched (32bit ABIT only, so far).
8990
8991 2003-05-11  Andrew Cagney  <[email protected]>
8992
8993         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
8994         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
8995         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
8996         sim/testsuite/sim/arm/misaligned2.ms, and
8997         sim/testsuite/sim/arm/misaligned3.ms.
8998         * disasm.h (struct ui_file): Add opaque struct declaration.
8999         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9000         * frame.h (struct ui_file): Ditto.
9001
9002 2003-05-11  Mark Kettenis  <[email protected]>
9003
9004         * value.h: Pretty print.
9005
9006 2003-05-10  Mark Kettenis  <[email protected]>
9007
9008         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9009
9010 2003-05-08  Andrew Cagney  <[email protected]>
9011
9012         * regcache.h (max_register_size): Delete declaration.
9013         * regcache.c (max_register_size): Delete function.
9014         (struct regcache_descr): Delete field "max_register_size".
9015         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9016         registers fit in MAX_REGISTER_SIZE.
9017         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9018         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9019         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9020         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9021         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9022         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9023         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9024         * dve3900-rom.c, hppa-tdep.c: Ditto.
9025
9026 2003-05-08  David Carlton  <[email protected]>
9027
9028         * valops.c (push_word): Fix typo.
9029
9030 2003-05-08  Andrew Cagney  <[email protected]>
9031
9032         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9033         * gdbarch.h: Re-generate.
9034         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9035         (legacy_max_register_raw_size): Delete declaration.
9036         * regcache.c (legacy_max_register_raw_size): Delete function.
9037         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9038         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9039         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9040         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9041         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9042         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9043         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9044         * findvar.c, dwarf2cfi.c: Ditto.
9045
9046 2003-05-08  Andrew Cagney  <[email protected]>
9047
9048         * mips-tdep.c (read_signed_register): New function, moved to here
9049         from "regcache.c".
9050         (read_signed_register_pid): Ditto.
9051         * regcache.c (read_signed_register_pid): Delete function, moved to
9052         "mips-tdep.c".
9053         (read_signed_register): Ditto.
9054         * regcache.h (read_signed_register): Delete declaration.
9055         (read_signed_register_pid): Delete declaration.
9056
9057 2003-05-08  Andrew Cagney  <[email protected]>
9058
9059         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9060         * gdbarch.h: Re-generate.
9061         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9062         (legacy_max_register_virtual_size): Delete declaration.
9063         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9064         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9065         * tracepoint.c (memrange_sortmerge): Ditto.
9066         * sparc-tdep.c (sparc_print_registers): Ditto.
9067         * regcache.c (legacy_max_register_virtual_size): Delete function.
9068
9069 2002-05-08  J. Brobecker  <[email protected]>
9070
9071         * fork-child.c (escape_bang_in_quoted_argument): New function.
9072         (fork_inferior): Escape '!' characters in quoted arguments
9073         only when needed.
9074
9075 2003-05-08  J. Brobecker  <[email protected]>
9076
9077         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9078         the language of the CU is not currently supported by GDB.
9079
9080 2003-05-08  J. Brobecker  <[email protected]>
9081
9082         * defs.h (language): Add language_minimal enum value.
9083         * c-lang.c (minimal_language_defn): New language definition.
9084         (_initialize_c_language): Add the new minimal language to the list
9085         of languages known to GDB.
9086
9087 2003-05-08  Kevin Buettner  <[email protected]>
9088
9089         * frame.c (get_frame_type): Don't attempt to lazily initialize
9090         frame's unwinder for legacy frames.
9091
9092 2003-05-07  Andrew Cagney  <[email protected]>
9093
9094         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9095         and "regcache" parameters.
9096         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9097
9098 2003-05-07  Jeff Johnston  <[email protected]>
9099
9100         * dwarf2read.c (dwarf_decode_lines): Only use output of
9101         check_cu_functions() when calling record_line().  Do not update
9102         the current address.
9103
9104 2003-05-07  Andrew Cagney  <[email protected]>
9105
9106         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9107         code.
9108
9109 2003-05-07  Jim Blandy  <[email protected]>
9110
9111         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9112         'maint info symtabs' and 'maint info psymtabs'.
9113         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9114         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9115         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9116         Declarations updated.
9117         * maint.c (maintenance_list_command): Delete.
9118         (_initialize_maint_cmds): Update calls to add_cmd.
9119         * gdbcmd.h (maintenancelistlist): Delete declaration.
9120         * cli/cli-cmds.c (maintenancelistlist): Delete.
9121         (init_cmd_lists): Don't initialize it.
9122         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9123
9124 2003-05-07  Andrew Cagney  <[email protected]>
9125
9126         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9127         "regcache".
9128         (d10v_print_registers_info): Update.
9129         (d10v_dmap_register, d10v_imap_register): Delete functions.
9130         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9131         and "imap_register".
9132         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9133         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9134         * arch-utils.c (generic_remote_translate_xfer_address): Add
9135         "regcache" and "gdbarch" parameters.
9136         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9137         parameter.  Change class to multi-arch.
9138         * gdbarch.h, gdbarch.c: Re-generate.
9139         * remote.c (remote_xfer_memory): Use
9140         gdbarch_remote_translate_xfer_address.
9141
9142 2003-05-07  Jeff Johnston  <[email protected]>
9143
9144         * infrun.c (prev_pc): Move declaration ahead of proceed().
9145         (proceed): Refresh prev_pc value before resuming.
9146         (stop_stepping): Remove code to refresh prev_pc.
9147
9148 2003-05-06  Kris Warkentin <[email protected]>
9149
9150         * nto-tdep.c: Removed stray comment.
9151
9152 2003-05-06  Kris Warkentin <[email protected]>
9153
9154         * i386-nto-tdep.c: Fix old K&R function definitions.
9155         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9156         Also change add_show_from_set() call to add_setshow_cmd().
9157         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9158
9159 2003-05-05  Andrew Cagney  <[email protected]>
9160
9161         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9162         (fprint_dummy_frames): New function.
9163         (maintenance_print_dummy_frames): New function.
9164         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9165         * frame.c (fprint_frame_id): Make global.
9166         * frame.h (fprint_frame_id): Declare.
9167         * Makefile.in (dummy-frame.o): Update dependencies.
9168
9169 2003-05-05  Andrew Cagney  <[email protected]>
9170
9171         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9172         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9173         SIZEOF_CALL_DUMMY_WORDS.
9174         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9175         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9176         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9177         CALL_DUMMY_BREAKPOINT_OFFSET.
9178         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9179         CALL_DUMMY_START_OFFSET.
9180         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9181         * gdbarch.h, gdbarch.c: Re-generate.
9182         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9183         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9184         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9185         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9186         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9187         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9188         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9189         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9190         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9191         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9192         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9193         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9194         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9195         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9196         * config/sparc/tm-sparc.h: Update.
9197
9198 2003-05-05  Kris Warkentin <[email protected]>
9199
9200         * configure.tgt: Add i[3456]86-*-nto*.
9201         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9202         * nto-tdep.c: New file. Neutrino target support routines.
9203         * nto-tdep.h: New file. Neutrino target header.
9204         * config/tm-qnxnto.h: New file.
9205         * config/i386/i386nto.mt: New file.
9206         * config/i386/tm-i386nto.h: New file.
9207
9208 2003-05-04  Andrew Cagney  <[email protected]>
9209
9210         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9211         (load_infrun_state): Ditto.
9212         (struct thread_info): Drop "prev_func_name" field.
9213         * thread.c (load_infrun_state): Update.
9214         (save_infrun_state): Update.
9215         * infrun.c (prev_func_name): Delete variable.
9216         (init_wait_for_inferior): Do not clear prev_func_name.
9217         (stop_stepping, keep_going, context_switch): Do not swap
9218         prev_func_name.
9219         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9220         instead of PC_IN_SIGTRAMP.
9221
9222 2003-05-04  Andrew Cagney  <[email protected]>
9223
9224         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9225         REGISTER_BYTE with register_offset_hack.
9226         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9227         that REGISTER_BYTE is consistent with the regcache.
9228         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9229         * gdbarch.h, gdbarch.c: Regenerate.
9230
9231 2003-05-04  Mark Kettenis  <[email protected]>
9232
9233         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9234         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9235
9236         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9237
9238 2003-05-03  J. Brobecker  <[email protected]>
9239
9240         From Thierry Schneider <[email protected]>
9241         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9242         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9243         (mi-cmd-symbol.o): Add rule.
9244
9245 2003-05-03  Andrew Cagney  <[email protected]>
9246
9247         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9248         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9249         * gdbarch.h, gdbarch.c: Re-generate.
9250         * d10v-tdep.c (d10v_push_dummy_code): New function.
9251         (d10v_gdbarch_init): Set push_dummy_code.
9252         * infcall.c (legacy_push_dummy_code): New function.
9253         (generic_push_dummy_code): New function.
9254         (push_dummy_code): New function.
9255         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9256         instead of dummy_addr, to push_dummy_call.  Move call to
9257         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9258         switch.
9259         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9260
9261 2003-05-03  Andrew Cagney  <[email protected]>
9262
9263         * disasm.h (print_insn): Declare.
9264         * disasm.c (init_gdb_disassemble_info): New function.
9265         (gdb_disassembly): Call init_gdb_disassemble_info.
9266         (gdb_print_insn): New function.
9267         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9268         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9269         * mcore-tdep.c: Include "disasm.h"
9270         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9271         * d10v-tdep.c: Include "disasm.h".
9272         (display_trace): Call gdb_print_insn, instead of print_insn.
9273         (print_insn): Delete function.
9274         * printcmd.c: Include "disasm.h".
9275         (print_insn): Delete function.
9276         (print_formatted): Call gdb_print_insn, instead of print_insn.
9277         * Makefile.in (printcmd.o): Update dependencies.
9278         (mcore-tdep.o, d10v-tdep.o): Ditto.
9279
9280 2003-05-02  Andrew Cagney  <[email protected]>
9281
9282         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9283         PC_REGNUM, re-indent.
9284         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9285         PC_REGNUM isn't set.
9286
9287         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9288         * gdbarch.h, gdbarch.c: Re-generate.
9289         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9290         register_virtual_size, pc_regnum, or register_bytes.
9291         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9292         (d10v_register_type): Use D10V_PC_REGNUM.
9293         (d10v_print_registers_info, d10v_read_pc): Ditto.
9294         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9295         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9296
9297 2003-05-02  David Carlton  <[email protected]>
9298
9299         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9300         the name with mstrsave.
9301
9302 2003-05-02  Elena Zannoni  <[email protected]>
9303
9304         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9305         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9306         (host_charset_name, target_charset_name): New vars for use by
9307         set/show commands.
9308         (host_charset_enum, target_charset_enum): New enums for set/show
9309         commands.
9310         (set_charset_sfunc, set_host_charset_sfunc,
9311         set_target_charset_sfunc): New functions.
9312         (set_host_charset, set_target_charset): Make static.
9313         (list_charsets, set_host_charset_command,
9314         set_target_charset_command): Delete functions.
9315         (show_charset_command): Rewrite as....
9316         (show_charset): Hook this up with the set/show command mechanism.
9317         (_initialize_charset): Change names of charsets to match the
9318         set/show enums. Use host_charset_name and target_charset_name.
9319         Use set/show mechanism for charset, host-charset, target-charset
9320         commands. Do not make 'show host-charset' and 'show
9321         target-charset' be aliases of 'show charset'.
9322
9323         * charset.h (set_host_charset, set_target_charset): Don't export,
9324         they are not used outside the file.
9325
9326 2003-05-01  Andrew Cagney  <[email protected]>
9327
9328         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9329         (gdb_disassembly): Make "di" non static, always initialize and
9330         cleanup.  Always use dis_asm_read_memory.
9331         (gdb_dis_asm_read_memory): Delete function.
9332
9333 2003-05-01  Andrew Cagney  <[email protected]>
9334
9335         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9336         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9337
9338 2003-04-30  Andrew Cagney  <[email protected]>
9339
9340         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9341         "tm_print_insn_info".
9342         (TARGET_PRINT_INSN_INFO): Delete macro.
9343         (dis_asm_read_memory): Delete function declaration.
9344         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9345         (tm_print_insn_info): Delete variable definition.
9346         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9347         * gdbarch.h, gdbarch.c: Re-generate.
9348         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9349         "deprecated_tm_print_insn_info".
9350         * mcore-tdep.c (mcore_dump_insn): Ditto.
9351         * mips-tdep.c (mips_gdbarch_init): Ditto.
9352         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9353         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9354         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9355         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9356         instead of TARGET_PRINT_INSN_INFO, add comment.
9357         * s390-tdep.c (s390_get_frame_info): Instead of
9358         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9359         (s390_check_function_end, s390_is_sigreturn): Ditto.
9360         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9361         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9362         * disasm.c: Include "gdbcore.h".
9363         (_initialize_disasm): New function, initialize
9364         "deprecated_tm_print_insn_info".
9365         (deprecated_tm_print_insn_info): New variable.
9366         (dis_asm_read_memory): Moved from "corefile.c", made static.
9367         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9368         * Makefile.in (disasm.o): Update dependencies.
9369
9370 2003-04-30  Andrew Cagney  <[email protected]>
9371
9372         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9373
9374 2003-04-29  Adam Fedor  <[email protected]>
9375
9376         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9377         * infcall.c (find_function_addr): Make non-static.
9378         * infcall.h (find_function_addr): Declare.
9379         * Makefile.in (eval.o): Update dependencies.
9380
9381 2003-04-28  Adam Fedor  <[email protected]>
9382
9383         * symtab.c (symbol_find_demangled_name): Check for and demangle
9384         ObjC symbols.
9385         (symbol_init_demangled_name): Init for language_objc as well.
9386
9387 2003-04-28  Andrew Cagney  <[email protected]>
9388
9389         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9390         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9391         * gdbarch.h, gdbarch.c: Re-generate.
9392         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9393         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9394         * inferior.h (deprecated_read_fp): Rename read_fp.
9395         (generic_target_read_fp): Delete declaration.
9396         * regcache.c (generic_target_read_fp): Delete function.
9397         (deprecated_read_fp): Replace read_fp, use
9398         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9399         * d10v-tdep.c (d10v_read_fp): Delete function.
9400         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9401
9402         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9403         deprecated_target_read_fp to generic_target_read_fp.
9404         * sh-tdep.c (sh_gdbarch_init): Ditto.
9405         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9406         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9407         * frv-tdep.c (frv_gdbarch_init): Ditto.
9408
9409         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9410         deprecated_fp_regnum.
9411         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9412         * vax-tdep.c (vax_gdbarch_init): Ditto.
9413         * v850-tdep.c (v850_gdbarch_init): Ditto.
9414         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9415         * sh-tdep.c (sh_gdbarch_init): Ditto.
9416         * s390-tdep.c (s390_gdbarch_init): Ditto.
9417         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9418         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9419         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9420         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9421         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9422         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9423         * i386-tdep.c (i386_gdbarch_init): Ditto.
9424         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9425         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9426         * frv-tdep.c (frv_gdbarch_init): Ditto.
9427         * cris-tdep.c (cris_gdbarch_init): Ditto.
9428         * avr-tdep.c (avr_gdbarch_init): Ditto.
9429         * arm-tdep.c (arm_gdbarch_init): Ditto.
9430         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9431
9432         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9433         * v850-tdep.c (v850_gdbarch_init): Ditto.
9434         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9435         * sh-tdep.c (sh_gdbarch_init): Ditto.
9436         * s390-tdep.c (s390_gdbarch_init): Ditto.
9437         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9438         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9439         * mips-tdep.c (mips_gdbarch_init): Ditto.
9440         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9441         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9442         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9443         * frv-tdep.c (frv_gdbarch_init): Ditto.
9444         * avr-tdep.c (avr_gdbarch_init): Ditto.
9445         * arm-tdep.c (arm_gdbarch_init): Ditto.
9446
9447         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9448         DEPRECATED_FP_REGNUM.
9449         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9450         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9451         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9452         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9453         (sparc32_register_virtual_type): Ditto.
9454         * sh-tdep.c (sh64_frame_chain): Ditto.
9455         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9456         (sh_nofp_frame_init_saved_regs): Ditto.
9457         (sh64_nofp_frame_init_saved_regs): Ditto.
9458         (sh_fp_frame_init_saved_regs): Ditto.
9459         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9460         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9461         * procfs.c (procfs_fetch_registers): Ditto.
9462         (procfs_store_registers): Ditto.
9463         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9464         (store_inferior_registers, fetch_core_registers): Ditto.
9465         (fetch_kcore_registers, clear_regs): Ditto.
9466         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9467         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9468         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9469         * nlm/i386.c (do_status): Ditto.
9470         * mipsv4-nat.c (supply_gregset): Ditto.
9471         * mips-tdep.c: Ditto for comments.
9472         * mips-nat.c (fetch_inferior_registers): Ditto.
9473         (store_inferior_registers, fetch_core_registers): Ditto.
9474         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9475         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9476         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9477         (i386_do_pop_frame, i386_register_type): Ditto.
9478         * hppa-tdep.c (hppa_frame_chain): Ditto.
9479         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9480         (hppa_pop_frame, hppa_read_fp): Ditto.
9481         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9482         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9483         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9484         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9485         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9486         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9487         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9488         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9489         * blockframe.c: Ditto for comments.
9490         * arch-utils.h: Ditto for comments.
9491         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9492         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9493         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9494         * alpha-tdep.h: Ditto for comments.
9495         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9496         (alpha_cannot_store_register): Ditto.
9497         (alpha_push_dummy_frame): Ditto.
9498         * alpha-nat.c (supply_gregset): Ditto.
9499
9500         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9501         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9502         * config/sparc/tm-sparc.h: Update comment.
9503
9504         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9505         deprecated_read_fp instead of TARGET_READ_FP.
9506         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9507         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9508         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9509         deprecated_read_fp instead of read_fp.
9510         * s390-tdep.c (s390_push_arguments): Ditto.
9511         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9512         * frame.h: Ditto in comments.
9513         * frame.c (legacy_get_prev_frame): Ditto.
9514         * dummy-frame.c (dummy_frame_this_id): Ditto.
9515         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9516
9517 2003-04-28  Andrew Cagney  <[email protected]>
9518
9519         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9520         * gdbarch.h, gdbarch.c: Re-generate.
9521         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9522         * vax-tdep.c (_initialize_vax_tdep): Update.
9523         * v850-tdep.c (_initialize_v850_tdep): Update.
9524         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9525         * s390-tdep.c (_initialize_s390_tdep): Update.
9526         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9527         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9528         * mips-tdep.c (_initialize_mips_tdep): Update.
9529         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9530         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9531         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9532         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9533         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9534         * frv-tdep.c (_initialize_frv_tdep): Update.
9535         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9536         (_initialize_cris_tdep): Update.
9537         * arch-utils.c (legacy_print_insn): Update.
9538         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9539
9540 2003-04-26  Adam Fedor  <[email protected]>
9541
9542         * linespec.c (decode_objc): New function to decode ObjC calls
9543         (decode_line_1): Check for ObjC calls (using decode_objc)
9544         * Makefile (linespec.o): Update dependencies.
9545
9546 2003-04-26  Daniel Jacobowitz  <[email protected]>
9547
9548         * breakpoint.h (struct breakpoint_ops): New.
9549         (struct breakpoint): Add ops member.
9550
9551         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9552         (mention): Use new breakpoint ops member.
9553         (set_raw_breakpoint): Initialize ops field to NULL.
9554         (print_exception_catchpoint, print_one_exception_catchpoint)
9555         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9556         (gnu_v3_exception_catchpoint_ops): New.
9557         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9558
9559 2003-04-25  Adam Fedor  <[email protected]>
9560
9561         * Makefile.in (COMMON_OBS): Add objc-lang.o
9562
9563 2003-04-25  Andrew Cagney  <[email protected]>
9564
9565         * d10v-tdep.c (print_insn): Delete function.
9566         (display_trace): Use TARGET_PRINT_INSN.
9567         (_initialize_d10v_tdep): Do not set tm_print_insn.
9568         (d10v_gdbarch_init): Set print_insn.
9569
9570 2003-04-25  Andrew Cagney  <[email protected]>
9571
9572         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9573         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9574         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9575         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9576         (nr_dmap_regs, a0_regnum): ... new functions.
9577         (d10v_print_registers_info): Use a0_regnum, use register_size.
9578         (d10v_register_byte): Delete function.
9579         (d10v_register_raw_size): Delete function.
9580         (d10v_register_type): Use a0_regnum.
9581         (d10v_print_registers_info): Use a0_regnum.
9582         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9583         (d10v_gdbarch_init): Do not set register_byte or
9584         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9585         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9586         extract_address.
9587         (trace_command): Use XCALLOC.
9588         (print_insn): Delete reference to tm_print_insn.
9589         (saved_regs_unwinder): Use store_unsigned_integer instead of
9590         store_address.
9591         * frame.h (FRAME_OBSTACK_CALLOC): Define
9592
9593 2003-04-25  David Carlton  <[email protected]>
9594
9595         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9596
9597 2003-04-24  Adam Fedor  <[email protected]>
9598
9599         * objc-lang.c: Include "valprint.h"
9600         * Makefile.in (objc-lang.o): Update dependencies.
9601
9602 2003-04-24  Adam Fedor  <[email protected]>
9603
9604         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9605         architecture dependant compilation and mark as unimplemented
9606         (until they get put in the gdbarch vector).
9607
9608 2003-04-23  David Carlton  <[email protected]>
9609
9610         * cp-support.c (cp_find_first_component): Accept 'operator' in
9611         more locations.
9612
9613 2003-04-23  Andrew Cagney  <[email protected]>
9614
9615         * infcall.c (call_function_by_hand): Eliminate redundant
9616         indentation.  Move "saved_async" and "old_cleanups" to where they
9617         are needed.
9618
9619 2003-04-23  Andrew Cagney  <[email protected]>
9620
9621         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9622         and "buffer".  Move the "name" code to where it is needed.
9623
9624 2003-04-23  Andrew Cagney  <[email protected]>
9625
9626         * infcall.c (call_function_by_hand): Move variables "start_sp",
9627         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9628         code to ON_STACK switch branch.
9629
9630 2003-04-23  Andrew Cagney  <[email protected]>
9631
9632         * infcall.c (call_function_by_hand): Make declaration of "i",
9633         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9634         lint.
9635
9636 2003-04-23  Andrew Cagney  <[email protected]>
9637
9638         * infcall.c (call_function_by_hand): Delete variable
9639         "n_method_args".  Localize "param_type"'s declaration to the loop
9640         that it is used.  Reinstate code assigning to said variable -
9641         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9642         Rationalize code using "param_type".
9643
9644 2003-04-22  Andrew Cagney  <[email protected]>
9645
9646         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9647         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9648         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9649         to DEPRECATED_PUSH_RETURN_ADDRESS.
9650
9651 2003-04-22  Kevin Buettner  <[email protected]>
9652
9653         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9654         on the DWARF2 register number prior to fetching a register.
9655
9656 2003-04-22  J. Brobecker  <[email protected]>
9657
9658         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9659         Update all the tests using SOFT_FLOAT considering the fact that
9660         this macro was always set to 0.
9661         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9662         considering the fact that this macro was always set to 0.
9663         * hppa-tdep.h (hppa_store_return_value): Likewise.
9664         (hppa_extract_return_value): Likewise.
9665
9666 2003-04-22  J. Brobecker  <[email protected]>
9667
9668         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9669         the hppa-pro target only.
9670
9671 2003-04-21  J. Brobecker  <[email protected]>
9672
9673         Ongoing multi-arch conversion effort for HP/UX:
9674         * config/pa/tm-hppa.h: Move all macro that are no longer
9675         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9676         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9677
9678 2003-04-21  J. Brobecker  <[email protected]>
9679
9680         * config/pa/tm-hppa.h: Obsolete a section that was only used
9681         for hppa-pro.
9682
9683 2003-04-21  J. Brobecker  <[email protected]>
9684
9685         Ongoing multi-arch conversion for HP/UX.
9686         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9687         if already defined (allows hppa64 to stay non-multiarched for now).
9688         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9689
9690 2003-04-21  Andrew Cagney  <[email protected]>
9691
9692         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9693
9694 2003-04-21  Andrew Cagney  <[email protected]>
9695
9696         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9697         "i386_num_mmx_regs".
9698
9699 2003-04-21  Andrew Cagney  <[email protected]>
9700
9701         * infcall.c: New file.
9702         * infcall.h: New file.
9703         * valarith.c: Include "infcall.h".
9704         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9705         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9706         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9707         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9708         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9709         (SFILES): Add "infcall.c"
9710         (COMMON_OBS): Add "infcall.o".
9711         (infcall.o): Specify dependencies.
9712         * value.h (call_function_by_hand): Delete declaration.
9713         * inferior.h (run_stack_dummy): Delete declaration.
9714         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9715         (run_stack_dummy): Move to "infcall.c", merged into
9716         call_function_by_hand.
9717         * valops.c (call_function_by_hand): Moved to "infcall.c".
9718         (find_function_addr, value_arg_coerce): Ditto.
9719         (unwindonsignal_p, coerce_float_to_double): Ditto.
9720         (_initialize_valops): Move "set/show coerce-float-to-double", and
9721         "set/show unwindonsignal" commands to "infcall.c".
9722         * v850-tdep.c, target.h: Update comments.
9723         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9724         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9725         (sh64_init_extra_frame_info): Update comments.
9726         * mn10300-tdep.c: Update comments.
9727         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9728         * config/sparc/tm-sparc.h: Update comments.
9729         * breakpoint.h: Update comments.
9730         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9731         * arm-tdep.c: Update comment.
9732
9733 2003-04-19  Mark Kettenis  <[email protected]>
9734
9735         * i386-tdep.c (i386_num_register_names): New variable.
9736         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9737         (MM0_REGNUM): Remove redundant parentheses in define.
9738         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9739         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9740         i386_mxcsr_regnum_p): Remove redundant parentheses.
9741         (i386_register_name): Use i386_num_register_names.
9742
9743         * i386-tdep.c (i386_extract_return_value,
9744         i386_store_return_value): Correct check for availability of
9745         floating-point registers.
9746
9747         * i386-tdep.c (i386_frame_num_args): Remove function.
9748         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9749
9750         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9751         mmx_regnum_to_fp_regnum.  Adjust all callers.
9752
9753         * i386-tdep.c (i386_get_longjmp_target): Use
9754         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9755         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9756         extract_address.
9757
9758 2003-04-19  Mark Kettenis  <[email protected]>
9759
9760         * core-regset.c: Update comments to reflect reality.  Re-order
9761         includes.
9762         (fetch_core_registers): Use switch instead of if.  Remove
9763         redundant prototype.
9764
9765 2003-04-18  Jim Blandy  <[email protected]>
9766
9767         * s390-tdep.c (s390_frame_align): New function.
9768         (s390_gdbarch_init): Register it with the gdbarch object.
9769
9770 2003-04-17  Richard Henderson  <[email protected]>
9771
9772         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9773
9774 2003-04-17  Michael Snyder  <[email protected]>
9775             Karen Bennet  <[email protected]>
9776
9777         Committed by Elena Zannoni  <[email protected]>
9778         * gdb_gcore.sh: New script to create a core dump of a process.
9779
9780 2003-04-17  Elena Zannoni  <[email protected]>
9781
9782         * values.c (value_being_returned): Don't fetch the return
9783         value if the return type is void.
9784
9785 2003-04-17  Jeff Johnston  <[email protected]>
9786
9787         * thread-db.c: Reindented.
9788
9789 2003-04-17  Jeff Johnston  <[email protected]>
9790
9791         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9792         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9793         as types.
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819 2003-04-16  Kevin Buettner  <[email protected]>
9820
9821         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9822         the size of ``long double'' to 16, instead of 8.
9823
9824 2003-04-16  Mark Kettenis  <[email protected]>
9825
9826         * i386-linux-nat.c: Add some whitespace to make things more
9827         readable.
9828         (fetch_register, store_register, fetch_inferior_registers,
9829         store_inferior_registers): Get rid of assignment in if-statement.
9830         (store_register): Fix typo in error message.
9831
9832 2003-04-16  Andrew Cagney  <[email protected]>
9833
9834         * utils.c (xmmalloc): Always allocate something, matches
9835         libiberty/xmalloc's semantics.
9836         (xmrealloc, xmcalloc): Ditto.
9837
9838 2003-04-16  Andrew Cagney  <[email protected]>
9839
9840         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9841         update comments.
9842         (get_frame_type): Initialize unwind and type when needed.
9843         (get_frame_id, frame_register_unwind): Ditto.
9844
9845 2003-04-16  Andrew Cagney  <[email protected]>
9846
9847         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9848         obsolete.
9849         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9850         * sparcl-stub.c: Obsolete file.
9851         * config/sparc/tm-sparclet.h: Obsolete file.
9852         * sparclet-stub.c: Obsolete file.
9853         * sparclet-rom.c: Obsolete file.
9854         * sparcl-tdep.c: Obsolete file.
9855         * config/sparc/tm-sparclite.h: Obsolete file.
9856         * config/sparc/sparclite.mt: Obsolete file.
9857         * config/sparc/sparclet.mt: Obsolete file.
9858         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9859         sparc86x-*-* obsolete.
9860
9861 2003-04-15  David Carlton  <[email protected]>
9862
9863         * Makefile.in (SFILES): Add cp-namespace.c.
9864         (COMMON_OBS): Add cp-namespace.o.
9865         (block.o): Depend on gdb_obstack_h and cp_support_h.
9866         (buildsym.o): Depend on cp_support_h.
9867         (cp-namespace.o): New.
9868         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9869         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9870         (dwarf2read.o): Depend on cp_support_h.
9871         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9872         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9873         processing_current_namespace.
9874         (read_namespace): Update processing_current_namespace; check for
9875         anonymous namespaces.
9876         (dwarf2_name): New function.
9877         (dwarf2_extension): Ditto.
9878         * cp-support.h: Update copyright, contributors.
9879         Add inclusion guards.
9880         Add opaque declaration for structs obstack, block, symbol.
9881         (struct using_direct): New struct.
9882         Add declarations for cp_find_first_component,
9883         cp_entire_prefix_len, processing_has_namespace_info,
9884         processing_current_namespace, cp_is_anonymous,
9885         cp_add_using_directive, cp_initialize_namespace,
9886         cp_finalize_namespace, cp_set_block_scope,
9887         cp_scan_for_anonymous_namespaces.
9888         * cp-namespace.c: New file.
9889         * cp-support.c: Update copyright.
9890         Include ctype.h, gdb_assert.h, gdbcmd.h.
9891         New variable maint_cplus_cmd_list.
9892         (cp_find_first_component): New function.
9893         (cp_entire_prefix_len, maint_cplus_command)
9894         (first_component_command, _initialize_cp_support): Ditto.
9895         * buildsym.c: Include cp-support.h.
9896         New variable using_list.
9897         (add_symbol_to_list): Check for anonymous namespaces.
9898         (finish_block): Set block's scope.
9899         (start_symtab): Initialize C++ namespace support.
9900         (end_symtab): Finalize C++ namespace support.
9901         * block.h: Add opaque declarations for structs
9902         block_namespace_info, using_direct, and obstack.
9903         Add declarations for block_set_scope and block_set_using.
9904         (struct block): Add 'language_specific' member.
9905         (BLOCK_NAMESPACE): New macro.
9906         * block.c: Include gdb_obstack.h and cp-support.h.
9907         (struct block_namespace_info): New struct.
9908         (block_set_scope): New function.
9909         (block_set_using, block_initialize_namespace): Ditto.
9910
9911 2003-04-14  Kevin Buettner  <[email protected]>
9912
9913         * solib-svr4.c (svr4_have_link_map_offsets): New function.
9914         (locate_base): Return early if there aren't any link map offsets.
9915         (svr4_solib_create_inferior_hook): Warn if shared library support
9916         is unavailable.
9917
9918 2003-04-14  David Carlton  <[email protected]>
9919
9920         * symtab.c (symbol_set_names): Add prefix when storing Java names
9921         in hash table.  Fix for PR java/1039.
9922
9923 2003-04-14  David Carlton  <[email protected]>
9924
9925         * symtab.c (symbol_set_names): Rename 'name' arg to
9926         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
9927         * symtab.h: Change 'name' argument in declaration of
9928         symbol_set_names to 'linkage_name'.
9929         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
9930
9931 2003-04-14  Andrew Cagney  <[email protected]>
9932
9933         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
9934         return the fully sign-extended register value.
9935         (get_frame_pointer): Ditto.
9936         (mips_pop_frame): Initialize "proc_desc" after checking for a
9937         dummy frame.
9938
9939 2003-04-14  Andrew Cagney  <[email protected]>
9940
9941         * mips-tdep.c (mips_push_dummy_frame): Delete function.
9942         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
9943         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
9944         (mips_push_register): Delete function.
9945         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
9946         PUSH_FP_REGNUM.
9947
9948 2003-04-14  Jim Blandy  <[email protected]>
9949
9950         * symmisc.c: #include "gdb_regex.h".
9951         (maintenance_list_symtabs, maintenance_list_psymtabs): New
9952         functions.
9953         * maint.c (maintenance_list_command): New function.
9954         (_initialize_maint_cmds): Register the above as commands.
9955         * symtab.h (maintenance_list_symtabs,
9956         maintenance_list_psymtabs): New declarations.
9957         * cli/cli-cmds.c (maintenancelistlist): New variable.
9958         (init_cmd_lists): Initialize it.
9959         * cli/cli-cmds.h (maintenancelistlist): New declaration.
9960         * gdbcmd.h (maintenancelistlist): New declaration.
9961         * Makefile.in (symmisc.o): Update dependencies.
9962
9963 2003-04-14  Elena Zannoni  <[email protected]>
9964
9965         * s390-nat.c: Include asm/types.h for addr_t.
9966
9967 2003-04-14  Corinna Vinschen  <[email protected]>
9968
9969         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
9970         actually incoming type.
9971
9972 2003-04-13  Andrew Cagney  <[email protected]>
9973
9974         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
9975         get_next_frame and get_frame_saved_regs.
9976
9977 2003-04-13  Andrew Cagney  <[email protected]>
9978
9979         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
9980         of gdbarch_num_regs.
9981
9982 2003-04-13  Andrew Cagney  <[email protected]>
9983
9984         * frame.h: Mention what replaced what in "struct frame_info".
9985         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
9986         deprecated_update_frame_base_hack and
9987         deprecated_update_frame_pc_hack.
9988         * hppa-tdep.c: Ditto.
9989
9990 2003-04-13  Daniel Jacobowitz  <[email protected]>
9991
9992         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
9993         to read_reg and update its comment.  Remove regnum member.
9994         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
9995         Don't call read_reg when setting in_reg.  Call read_reg to get
9996         the frame base if it's in a register.  Return the register number
9997         on the stack instead of in the context.  Remove extra arguments
9998         to read_reg.
9999         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10000         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10001         the register number on the expression stack.
10002         (needs_frame_read_reg): Remove extra arguments.
10003
10004 2003-04-13  Daniel Jacobowitz  <[email protected]>
10005
10006         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10007         made non-static.
10008         (execute_stack_op): All callers updated.
10009         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10010         * dwarf2loc.c (find_location_expression): New function.
10011         (dwarf_expr_frame_base): Call it.
10012         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10013         (dwarf2_tracepoint_var_ref): New function, broken out from
10014         locexpr_tracepoint_var_ref.
10015         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10016         Make static.
10017         (loclist_read_variable, loclist_read_needs_frame): New functions.
10018         (loclist_describe_location, loclist_tracepoint_var_ref): New
10019         functions.
10020         (dwarf2_loclist_funcs): New struct location_funcs.
10021         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10022         (struct dwarf2_locexpr_baton): Add comments.
10023         (dwarf2_loclist_funcs): New extern.
10024         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10025         base_address and base_known.
10026         (dwarf_loc_buffer): New variable.
10027         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10028         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10029         (dwarf2_has_info): Initialize dwarf_loc_offset.
10030         (dwarf2_build_psymtabs): Read in .debug_loc.
10031         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10032         DWARF_LOC_SIZE.
10033         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10034         here, from...
10035         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10036         cu_header.
10037         (dwarf2_symbol_mark_computed): Handle location lists.
10038
10039 2003-04-13  Daniel Jacobowitz  <[email protected]>
10040
10041         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10042         if the linkage name demangled successfully.
10043
10044 2003-04-13  Mark Kettenis  <[email protected]>
10045
10046         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10047         disassmbly_flavour): Removed.
10048
10049         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10050
10051 2003-04-13  Mark Kettenis  <[email protected]>
10052
10053         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10054
10055 2003-04-12  Andrew Cagney  <[email protected]>
10056
10057         * frame.h (struct frame_info): Move definition from here ...
10058         * frame.c (struct frame_info): ... to here.
10059
10060 2003-04-12  Andrew Cagney  <[email protected]>
10061
10062         * gdbthread.h (save_infrun_state): Delete parameter
10063         "prev_func_start".
10064         (struct thread_info): Delete field "prev_func_start".
10065         (load_infrun_state): Ditto.
10066         * thread.c (load_infrun_state, save_infrun_state): Update.
10067         * infrun.c (prev_func_start): Delete variable.
10068         (context_switch, init_wait_for_inferior): Update.
10069         (stop_stepping, keep_going): Update.
10070
10071 2003-04-12  Andrew Cagney  <[email protected]>
10072
10073         * gdbarch.sh: Add missing opaque declarations.
10074         * gdbarch.h: Regnerate.
10075         * symtab.h: Add missing opaque declarations.
10076         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10077         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10078         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10079         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10080         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10081         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10082         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10083         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10084         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10085         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10086         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10087         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10088         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10089
10090 2003-04-11  Andrew Cagney  <[email protected]>
10091
10092         * frame.c (get_frame_id): Return this frame's "id".
10093         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10094         function start.
10095         (legacy_saved_regs_this_id): Replace function body with
10096         internal-error.
10097         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10098         FRAME_OBSTACK_ZALLOC.
10099         (create_new_frame): Mark the frame ID as valid.
10100
10101 2003-04-11  Alexandre Oliva  <[email protected]>
10102
10103         * Makefile.in (libbfd_h): Added missing setting.
10104         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10105         according to the selected ABI.
10106
10107 2003-04-11  Jeff Johnston  <[email protected]>
10108
10109         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10110
10111 2003-04-11  Andrew Cagney  <[email protected]>
10112
10113         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10114         SAVED_PC_AFTER_CALL.
10115         * gdbarch.h, gdbarch.c: Regenerate.
10116         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10117         * x86-64-tdep.c (x86_64_init_abi): Update.
10118         * vax-tdep.c (vax_gdbarch_init): Update.
10119         * v850-tdep.c (v850_gdbarch_init): Update.
10120         * sparc-tdep.c (sparc_gdbarch_init): Update.
10121         * sh-tdep.c (sh_gdbarch_init): Update.
10122         * s390-tdep.c (s390_gdbarch_init): Update.
10123         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10124         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10125         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10126         * mips-tdep.c (mips_gdbarch_init): Update.
10127         * mcore-tdep.c (mcore_gdbarch_init): Update.
10128         * m68k-tdep.c (m68k_gdbarch_init): Update.
10129         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10130         * ia64-tdep.c (ia64_gdbarch_init): Update.
10131         (ia64_saved_pc_after_call): Update declaration.
10132         * i386ly-tdep.c (i386lynx_init_abi): Update.
10133         * i386-tdep.c (i386_gdbarch_init): Update.
10134         * hppa-tdep.c (hppa_gdbarch_init): Update.
10135         * h8300-tdep.c (h8300_gdbarch_init): Update.
10136         * frv-tdep.c (frv_gdbarch_init): Update.
10137         * cris-tdep.c (cris_gdbarch_init): Update.
10138         * avr-tdep.c (avr_gdbarch_init): Update.
10139         * arm-tdep.c (arm_gdbarch_init): Update.
10140         * alpha-tdep.c (alpha_gdbarch_init): Update.
10141         * ns32knbsd-nat.c (frame_num_args): Update.
10142         * ns32k-tdep.c (umax_frame_num_args): Update.
10143         * mips-tdep.c (mips_init_frame_pc_first): Update.
10144         * infrun.c (step_over_function): Update.
10145         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10146         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10147         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10148         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10149         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10150         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10151         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10152         * arch-utils.c (init_frame_pc_default): Update.
10153         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10154         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10155         declaration.
10156
10157 2003-04-11  Andrew Cagney  <[email protected]>
10158
10159         * i387-tdep.c: Update copyright.
10160         (i387_to_double): Delete function.
10161         (double_to_i387): Delete function.
10162
10163 2003-04-10  Andrew Cagney  <[email protected]>
10164
10165         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10166         frame's function's address.  Simplify.
10167         (d10v_frame_unwind_cache): Check that the frame's function is
10168         non-zero.
10169
10170 2003-04-10  Jim Blandy  <[email protected]>
10171
10172         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10173         call to set_gdbarch_deprecated_push_arguments.
10174
10175 2003-04-10  Andrew Cagney  <[email protected]>
10176
10177         * frame.c (fprint_frame_id): New function.
10178         (fprint_frame_type, fprint_frame): New function.
10179         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10180         (create_sentinel_frame, get_frame_id): Ditto.
10181         (frame_id_p, frame_id_eq): Ditto.
10182         (frame_id_inner, create_new_frame): Ditto.
10183         (legacy_get_prev_frame, get_prev_frame): Ditto.
10184         (deprecated_update_frame_pc_hack): Ditto.
10185         (frame_register_unwind): Ditto.
10186         (deprecated_update_frame_base_hack): Ditto.
10187
10188 2003-04-10  Corinna Vinschen  <[email protected]>
10189
10190         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10191         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10192         frame_chain function.
10193         * Makefile.in: Add dependencies due to above change.
10194
10195 2003-04-10  Corinna Vinschen  <[email protected]>
10196
10197         * blockframe.c (legacy_frame_chain_valid): Move call to
10198         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10199         inside_entry_file.
10200
10201 2003-04-09  Andrew Cagney  <[email protected]>
10202
10203         * frame.h (struct frame_id): Replace "pc" and "base" with
10204         "stack_addr" and "code_addr".  Update comments.
10205         (frame_id_build): Update parameter names and comment.
10206         (struct frame_info): Replace "id_p" and "id" with "this_id".
10207         * dummy-frame.c (dummy_frame_this_id): Update.
10208         * breakpoint.c (print_one_breakpoint): Update.
10209         * frame.c (get_frame_id): Update.
10210         (get_frame_base, frame_id_build): Update.
10211         (create_sentinel_frame, legacy_get_prev_frame): Update.
10212         (deprecated_update_frame_base_hack): Update.
10213         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10214         (frame_id_inner): Ditto.
10215
10216 2003-04-09  Andrew Cagney  <[email protected]>
10217
10218         * defs.h (gdb_print_host_address): Make "addr" parameter a
10219         pointer constant.
10220         * utils.c (gdb_print_host_address): Update.
10221
10222 2003-04-09  Kevin Buettner  <[email protected]>
10223
10224         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10225         register number for R0 is 0.
10226
10227 2003-04-09  J. Brobecker  <[email protected]>
10228
10229         * frame.h (struct gdbarch): Add opaque structure definition
10230         to avoid a compilation warning on LynxOS 4.0.
10231
10232 2003-04-09  Andrew Cagney  <[email protected]>
10233
10234         * frame.h (struct frame_info): Delete field "pc".  Replace
10235         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10236         structure.
10237         * frame.c (frame_pc_unwind): Update.
10238         (create_sentinel_frame): Do not set "pc".
10239         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10240         (get_frame_pc): Call frame_pc_unwind.
10241         (deprecated_update_frame_pc_hack): Update.
10242         (create_new_frame): Use "pc" not "->pc".
10243
10244 2003-04-09  Andrew Cagney  <[email protected]>
10245
10246         * frame.c (get_frame_id): Eliminate code updating "frame".
10247         (legacy_get_prev_frame): Ditto.
10248         (get_frame_base): Return id.base directly.
10249         (deprecated_update_frame_base_hack): Update "id.base".
10250         * frame.h (struct frame_info): Delete field "frame".
10251
10252 2003-04-09  Andrew Cagney  <[email protected]>
10253
10254         * NEWS: Mention that the "Sequent family" is obsolete.
10255         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10256         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10257         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10258         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10259         * config/i386/tm-ptx4.h: Obsolete file.
10260         * config/i386/tm-ptx.h: Obsolete file.
10261         * symm-tdep.c: Obsolete file.
10262         * config/i386/symmetry.mt: Obsolete file.
10263         * config/i386/tm-symmetry.h: Obsolete file.
10264         * symm-nat.c: Obsolete file.
10265         * config/i386/nm-symmetry.h: Obsolete file.
10266         * config/i386/xm-symmetry.h: Obsolete file.
10267         * config/i386/symmetry.mh: Obsolete file.
10268         * config/i386/nm-ptx4.h: Obsolete file.
10269         * config/i386/ptx4.mh: Obsolete file.
10270         * config/i386/ptx.mt: Obsolete file.
10271         * config/i386/ptx.mh: Obsolete file.
10272         * config/i386/xm-ptx4.h: Obsolete file.
10273         * config/i386/xm-ptx.h: Obsolete file.
10274
10275 2003-04-09  Andrew Cagney  <[email protected]>
10276
10277         Obsolete mips*-*-mach3*.
10278         * NEWS: Mention that mips*-*-mach3* is obsolete.
10279         * m3-nat.c: Obsolete file.
10280         * config/nm-m3.h: Obsolete file.
10281         * config/mips/tm-mipsm3.h: Obsolete file.
10282         * config/mips/mipsm3.mt: Obsolete file.
10283         * config/mips/mipsm3.mh: Obsolete file.
10284         * config/mips/xm-mipsm3.h: Obsolete file.
10285         * mipsm3-nat.c: Obsolete file.
10286         * configure.host: Obsolete mips-dec-mach3*.
10287         * configure.tgt: Obsolete mips*-*-mach3*.
10288
10289 2003-04-09  Andrew Cagney  <[email protected]>
10290
10291         * doublest.h: Update copyright.
10292         (deprecated_store_floating, deprecated_extract_floating): Rename
10293         store_floating and extract_floating.  Update comments.
10294         * doublest.c: Update copyright.
10295         (extract_floating_by_length): Replace extract_floating.
10296         (store_floating_by_length): Replace store_floating.
10297         (deprecated_extract_floating): New function.
10298         (deprecated_store_floating): New function.
10299         (extract_typed_floating): Call extract_floating_by_length.
10300         (store_typed_floating): Call store_floating_by_length.
10301         * x86-64-tdep.c (x86_64_store_return_value): Update.
10302         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10303         (sh64_extract_return_value): Update.
10304         (sh_sh4_register_convert_to_virtual): Update.
10305         (sh_sh64_register_convert_to_virtual): Update.
10306         (sh_sh4_register_convert_to_raw): Update.
10307         (sh_sh64_register_convert_to_raw): Update.
10308         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10309         (rs6000_register_convert_to_raw): Update.
10310         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10311         (ia64_register_convert_to_raw): Update.
10312         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10313         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10314         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10315         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10316         (alpha_register_convert_to_raw): Update.
10317
10318 2003-04-08  Andrew Cagney  <[email protected]>
10319
10320         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10321         * gdbarch.h, gdbarch.c: Re-generate.
10322         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10323         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10324         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10325         conditionally, use frame_pc_unwind as an alternative.  Add
10326         comments.
10327         * arch-utils.c (init_frame_pc_default): Only call
10328         SAVED_PC_AFTER_CALL when available.
10329
10330 2003-04-08  Elena Zannoni  <[email protected]>
10331
10332         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10333         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10334         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10335         (start_remote): Ditto.
10336         (handle_inferior_event): Ditto.
10337         (save_inferior_status): Ditto.
10338         (restore_inferior_status): Ditto.
10339         * infcmd.c (attach_command): Ditto.
10340         * fork-child.c (startup_inferior): Ditto.
10341         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10342         * alpha-tdep.c (heuristic_proc_start): Ditto.
10343         * mips-tdep.c (heuristic_proc_start): Ditto.
10344         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10345         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10346         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10347         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10348         * remote-vx.c (vx_create_inferior): Ditto.
10349
10350 2003-04-08  Elena Zannoni  <[email protected]>
10351
10352         * infrun.c (stop_soon_quietly): Make it an enum, to better
10353         override the default behavior of handle_inferior_event.
10354         (clear_proceed_status): Update uses of stop_soon_quietly to
10355         reflect that it is now an enum.
10356         (start_remote): Ditto.
10357         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10358         is set to handle the new GNU/Linux kernel behavior for
10359         attach/sigstop.  Update uses of stop_soon_quietly.
10360         * inferior.h (enum stop_kind): New enum.
10361         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10362         Reset normal handle_inferior_event behavior, afterwards.
10363         * fork-child.c (startup_inferior): Update.
10364         * alpha-tdep.c (heuristic_proc_start): Update.
10365         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10366         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10367         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10368         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10369         * remote-vx.c (vx_create_inferior): Update.
10370         * mips-tdep.c (heuristic_proc_start): Update.
10371
10372 2003-04-07  Elena Zannoni  <[email protected]>
10373
10374         * disasm.c (dump_insns):  Move variables inside loop, or they will
10375         be freed more than once, causing wild memory corruptions.
10376         (gdb_disassembly): Look for the substring "-thread",
10377         instead of "-threads" in the target name, to make sure to find
10378         the 'multi-thread' target.  Also, make sure we do the right thing
10379         with the "core" target.
10380
10381 2003-04-07  Kevin Buettner  <[email protected]>
10382
10383         * mips-tdep.c (mips_print_fp_register): New function, created from
10384         do_fp_register_row().  Registers are now (also) printed as hex.
10385         Only one register is printed per row.
10386         (mips_print_register, do_fp_register_row): Print floating point
10387         registers with mips_print_fp_register().
10388
10389 2003-04-06  Andrew Cagney  <[email protected]>
10390
10391         * valprint.h (inspect_it): Add extern declaration.
10392         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10393         (selectors_info, classes_info): Ditto.
10394         (find_objc_msgcall): Fix indentation.
10395         (objc_printstr): Delete extern declarations.
10396
10397         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10398
10399 2003-04-06  Andrew Cagney  <[email protected]>
10400
10401         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10402         Update comment.
10403         * frame.c (legacy_saved_regs_this_id): Update.
10404         (legacy_get_prev_frame): Update.
10405         * xstormy16-tdep.c: Update comment.
10406         * sparc-tdep.c (sparc_frame_chain): Update comment.
10407         * blockframe.c (legacy_frame_chain_valid): Update.
10408
10409 2003-04-06  Andrew Cagney  <[email protected]>
10410
10411         * valprint.c (val_print_type_code_int): Delete #ifdef
10412         PRINT_TYPELESS_INTEGER code.
10413
10414         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10415         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10416         multi-arch definition.
10417         * gdbarch.h: Re-generate.
10418
10419 2003-04-05  Andrew Cagney  <[email protected]>
10420
10421         Eliminate FRAME_FIND_SAVED_REGS.
10422         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10423         Change FSR parameter to a pointer.
10424         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10425         Assume FSR parameter is a pointer.
10426         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10427         Make fsr a pointer.
10428         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10429         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10430         saved_regs a pointer.
10431         (hppa_frame_saved_pc): Ditto.
10432         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10433         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10434         pointer.
10435         (restore_pc_queue): Make fsr a pointer.
10436         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10437         (hppa_frame_chain): Make saved_regs a pointer, call
10438         hppa_frame_init_saved_regs.
10439         * sparc-tdep.c: Include "gdb_assert.h".
10440         (sparc_frame_find_saved_regs): Replace internal_error with
10441         gdb_assert.
10442         * remote-vxsparc.c (vx_read_register): Delete reference to
10443         FRAME_FIND_SAVED_REGS.
10444         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10445         * gdbarch.h: Regenerate.
10446         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10447         (deprecated_get_frame_saved_regs): Delete declaration.
10448         (struct frame_saved_regs): Delete definition.
10449         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10450         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10451         (hppa_frame_find_saved_regs): Delete declaration.
10452         (FRAME_FIND_SAVED_REGS): Delete macro.
10453         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10454         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10455         FRAME_FIND_SAVED_REGS in comment.
10456
10457 2003-04-05  Andrew Cagney  <[email protected]>
10458
10459         * frame.c (frame_func_unwind, get_frame_func): New functions.
10460         * frame.h (get_frame_func, frame_func_unwind): Declare.
10461         (struct frame_info): Add field "prev_func" for caching the
10462         previous frame's function address.
10463         * arm-tdep.c (arm_frameless_function_invocation): Combine
10464         get_pc_function_start and get_frame_pc into get_frame_func.
10465         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10466         (sh64_nofp_frame_init_saved_regs): Ditto.
10467         * s390-tdep.c (s390_function_start): Ditto.
10468         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10469         (rs6000_frameless_function_invocation): Ditto.
10470         (rs6000_frame_saved_pc): Ditto.
10471         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10472         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10473         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10474         (i386_frame_init_saved_regs): Ditto.
10475         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10476         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10477         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10478         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10479         * blockframe.c (frameless_look_for_prologue): Ditto.
10480
10481 2003-04-05  Andrew Cagney  <[email protected]>
10482
10483         * frame.c (legacy_get_prev_frame): Link prev to next at the
10484         function start.  Update comments.
10485
10486 2003-04-05  Andrew Cagney  <[email protected]>
10487
10488         * frame.c (get_frame_id): Update comment.
10489         (legacy_get_prev_frame): Update comment.
10490         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10491         * gdbarch.h: Regenerate.
10492         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10493         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10494
10495 2003-04-05  Andrew Cagney  <[email protected]>
10496
10497         * stack.c (print_frame_info): Use get_frame_pc.
10498
10499 2003-04-04  Andrew Cagney  <[email protected]>
10500
10501         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10502         the frame's type from the unwinder.
10503         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10504         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10505         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10506         (get_frame_base_address): Use get_frame_type.
10507         (get_frame_locals_address, get_frame_args_address): Ditto.
10508         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10509         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10510         (struct frame_info): Add comment explaining why the frame contains
10511         a "type" field.
10512         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10513         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10514         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10515         NORMAL_FRAME.
10516         * frame-unwind.h: Include "frame.h".
10517         (struct frame_unwind): Add "type" field.
10518         * Makefile.in (frame_unwind_h): Add $(frame_h).
10519
10520 2003-04-04  Andrew Cagney  <[email protected]>
10521
10522         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10523         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10524         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10525         get_frame_base.
10526         (d10v_unwind_dummy_id): Use frame_id_build.
10527         * frame.c (find_frame_sal): Use get_frame_pc.
10528         (create_new_frame): Use deprecated_update_frame_pc_hack and
10529         deprecated_update_frame_base_hack.
10530         (create_sentinel_frame): Add comment about ->pc going away.
10531         (get_prev_frame): Add comment about ->pc going away.
10532         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10533         frame_id_build, deprecated_update_frame_pc_hack and
10534         deprecated_update_frame_base_hack.
10535         (select_frame): Use get_frame_pc.
10536         (legacy_saved_regs_this_id): Use frame_id_build.
10537
10538 2003-04-04  Elena Zannoni  <[email protected]>
10539
10540         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10541         signed integer case.
10542         (classify_argument): Handle enumerations and references.
10543
10544 2003-04-04  Andrew Cagney  <[email protected]>
10545
10546         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10547         ID to NULL.
10548
10549 2003-04-01  Adam Fedor  <[email protected]>
10550
10551         * gdb/objc-lang.c (selectors_info): Replace calls to
10552         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10553         SYMBOL_NATURAL_NAME.
10554         (classes_info, find_methods): Likewise.
10555
10556 2003-04-03  Kevin Buettner  <[email protected]>
10557
10558         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10559         ``mach'' to the value determined by bfd_default_set_arch_mach().
10560
10561 2003-04-02  Bob Rossi  <[email protected]>
10562
10563         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10564         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10565         (mi-cmd-file.o): Update dependencies.
10566
10567 2003-04-01  Kevin Buettner  <[email protected]>
10568
10569         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10570         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10571
10572 2003-04-01  Adam Fedor  <[email protected]>
10573
10574         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10575         * language.h (struct language_defn): Add la_demangle.
10576         (language_demangle): Declare.
10577         * language.c (language_demangle): New function.
10578         (unk_lang_demangle): Likewise.
10579         (unknown_language_defn, auto_language_defn, local_language_defn):
10580         Add ukn_lang_demangle.
10581         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10582         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10583         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10584         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10585         * jv-lang.c (java_demangle): New function
10586         (java_language_defn): Use it for la_demangle element.
10587         * objc-lang.c (objc_demangle): Add options argument
10588         (objc_language_defn): Use objc_demangle for la_demangle element.
10589         * maint.c (maintenance_demangle): Replace switch with
10590         call to language_demangle.
10591         * utils.c (fprintf_symbol_filtered): Likewise.
10592
10593 2003-04-01  Andrew Cagney  <[email protected]>
10594
10595         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10596         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10597         PRINT_TYPELESS_INTEGER.
10598         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10599         PUSH_RETURN_ADDRESS.
10600
10601 2003-04-01  Andrew Cagney  <[email protected]>
10602
10603         * Makefile.in (d10v-tdep.o): Update dependencies.
10604         * d10v-tdep.c: Include "frame-base.h".
10605         (d10v_frame_unwind): Make constant.
10606         (d10v_frame_base_address): New function.
10607         (d10v_frame_base): New variable.
10608         (d10v_gdbarch_init): Set frame_base default.
10609         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10610         comment for base.
10611         (d10v_frame_unwind_cache): Set and use "prev_sp".
10612         (d10v_frame_this_id): Use the previous frame's inner most stack
10613         address and this frame's func address for the frame ID.  Use
10614         frame_id_build.  Don't analyze beyond the current instruction.
10615
10616 2003-04-01  Andrew Cagney  <[email protected]>
10617
10618         * frame.h (get_frame_locals_address, get_frame_args_address):
10619         Refer to the base address, instead of the address of the first
10620         local or parameter.
10621
10622 2003-04-01  Andrew Cagney  <[email protected]>
10623
10624         Add frame debug info addresses:
10625         * frame-base.c: New file.
10626         * frame-base.h: New file.
10627         * frame.h (struct frame_base): Add opaque declaration.
10628         (get_frame_base): Update comment.
10629         (get_frame_base_address): Declare.
10630         (get_frame_locals_address): Declare.
10631         (get_frame_args_address): Declare.
10632         (struct frame_info): Add "base" and "base_cache".  Update
10633         comments on the unwinder.
10634         * frame.c: Include "frame-base.h".
10635         (get_frame_locals_address): New function.
10636         (get_frame_base_address): New function.
10637         (get_frame_args_address): New function.
10638         * findvar.c (read_var_value): Use get_frame_locals_address and
10639         get_frame_args_address.
10640         * stack.c (frame_info): Use get_frame_locals_address and
10641         get_frame_args_address.
10642         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10643         moved to "frame-base.c".
10644         * printcmd.c (print_frame_nameless_args): Ditto.
10645         * symtab.h (address_class): Update comments.
10646         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10647         get_frame_base_address.
10648         * dwarf2expr.c (execute_stack_op): Ditto.
10649         * Makefile.in (frame_base_h): Define.
10650         (frame.o): Update dependencies.
10651         (frame-base.o): Add dependencies.
10652         (SFILES): Add frame-base.c.
10653         (COMMON_OBS): Add frame-base.o.
10654
10655 2003-04-01  Andrew Cagney  <[email protected]>
10656
10657         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10658         CALL_DUMMY_LENGTH): Ditto.
10659         * gdbarch.c: Re-generate.
10660         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10661         (CALL_DUMMY_LENGTH): Delete macro.
10662         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10663         * arm-tdep.c (arm_gdbarch_init): Ditto.
10664         * avr-tdep.c (avr_gdbarch_init): Ditto.
10665         * cris-tdep.c (cris_gdbarch_init): Ditto.
10666         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10667         * frv-tdep.c (frv_gdbarch_init): Ditto.
10668         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10669         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10670         * i386-tdep.c (i386_gdbarch_init): Ditto.
10671         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10672         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10673         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10674         * mips-tdep.c (mips_gdbarch_init): Ditto.
10675         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10676         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10677         * s390-tdep.c (s390_gdbarch_init): Ditto.
10678         * sh-tdep.c (sh_gdbarch_init): Ditto.
10679         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10680         * v850-tdep.c (v850_gdbarch_init): Ditto.
10681         * vax-tdep.c (vax_gdbarch_init): Ditto.
10682         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10683
10684 2003-04-01  Corinna Vinschen  <[email protected]>
10685
10686         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10687
10688 2003-04-01  Andrew Cagney  <[email protected]>
10689
10690         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10691         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10692         * gdbarch.h, gdbarch.c: Re-generate.
10693         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10694         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10695         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10696         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10697         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10698         * infcmd.c (run_stack_dummy): Simplify assuming
10699         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10700         * infrun.c (handle_inferior_event): Ditto.
10701         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10702         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10703         * arm-tdep.c (arm_gdbarch_init): Ditto.
10704         * avr-tdep.c (avr_gdbarch_init): Ditto.
10705         * cris-tdep.c (cris_gdbarch_init): Ditto.
10706         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10707         * frv-tdep.c (frv_gdbarch_init): Ditto.
10708         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10709         * i386-tdep.c (i386_gdbarch_init): Ditto.
10710         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10711         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10712         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10713         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10714         * mips-tdep.c (mips_gdbarch_init): Ditto.
10715         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10716         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10717         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10718         * s390-tdep.c (s390_gdbarch_init): Ditto.
10719         * sh-tdep.c (sh_gdbarch_init): Ditto.
10720         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10721         * v850-tdep.c (v850_gdbarch_init): Ditto.
10722         * vax-tdep.c (vax_gdbarch_init): Ditto.
10723         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10724
10725 2003-04-01  Daniel Jacobowitz  <[email protected]>
10726
10727         * symfile.c (symfile_relocate_debug_section): Update call to
10728         bfd_simple_get_relocated_section_contents.
10729
10730 2003-03-31  Andrew Cagney  <[email protected]>
10731
10732         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10733         * gdbarch.h, gdbarch.c: Regenerate.
10734         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10735         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10736         available.
10737         * frame.h (generic_fix_call_dummy): Delete declaration.
10738         * dummy-frame.h: Update comment.
10739         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10740         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10741         fix_call_dummy.
10742         * sh-tdep.c (sh_gdbarch_init): Ditto.
10743         * s390-tdep.c (s390_gdbarch_init): Ditto.
10744         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10745         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10746         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10747         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10748         * i386-tdep.c (i386_gdbarch_init): Ditto.
10749         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10750         * frv-tdep.c (frv_gdbarch_init): Ditto.
10751         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10752         * cris-tdep.c (cris_gdbarch_init): Ditto.
10753         * avr-tdep.c (avr_gdbarch_init): Ditto.
10754         * arm-tdep.c (arm_gdbarch_init): Ditto.
10755
10756 2003-03-31  J. Brobecker  <[email protected]>
10757
10758         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10759         (INIT_FRAME_AP): Likewise.
10760         (EXTRA_FRAME_INFO): Likewise.
10761
10762 2003-03-31  Andrew Cagney  <[email protected]>
10763
10764         * gdbarch.sh: Include "symfile.h".
10765         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10766         * gdbarch.h, gdbarch.c: Re-generate.
10767         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10768         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10769         call_dummy_address, the default is at entry_point_address.
10770         * v850-tdep.c (v850_gdbarch_init): Ditto.
10771         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10772         * sh-tdep.c (sh_gdbarch_init): Ditto.
10773         * s390-tdep.c (s390_gdbarch_init): Ditto.
10774         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10775         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10776         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10777         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10778         * i386-tdep.c (i386_gdbarch_init): Ditto.
10779         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10780         * frv-tdep.c (frv_gdbarch_init): Ditto.
10781         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10782         * cris-tdep.c (cris_gdbarch_init): Ditto.
10783         * arm-tdep.c (arm_gdbarch_init): Ditto.
10784
10785 2003-03-31  Andrew Cagney  <[email protected]>
10786
10787         * gdbarch.sh (CALL_DUMMY_P): Delete.
10788         * gdbarch.h, gdbarch.c: Re-generate.
10789         * inferior.h (CALL_DUMMY_P): Delete macro.
10790         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10791         * vax-tdep.c (vax_gdbarch_init): Update.
10792         * v850-tdep.c (v850_gdbarch_init): Update.
10793         * sparc-tdep.c (sparc_gdbarch_init): Update.
10794         * sh-tdep.c (sh_gdbarch_init): Update.
10795         * s390-tdep.c (s390_gdbarch_init): Update.
10796         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10797         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10798         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10799         * mips-tdep.c (mips_gdbarch_init): Update.
10800         * mcore-tdep.c (mcore_gdbarch_init): Update.
10801         * m68k-tdep.c (m68k_gdbarch_init): Update.
10802         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10803         * ia64-tdep.c (ia64_gdbarch_init): Update.
10804         * i386-tdep.c (i386_gdbarch_init): Update.
10805         * h8300-tdep.c (h8300_gdbarch_init): Update.
10806         * frv-tdep.c (frv_gdbarch_init): Update.
10807         * d10v-tdep.c (d10v_gdbarch_init): Update.
10808         * cris-tdep.c (cris_gdbarch_init): Update.
10809         * breakpoint.c (deprecated_frame_in_dummy): Update.
10810         * avr-tdep.c (avr_gdbarch_init): Update.
10811         * alpha-tdep.c (alpha_gdbarch_init): Update.
10812         * arm-tdep.c (arm_gdbarch_init): Update.
10813         * dummy-frame.c (dummy_frame_this_id): Update comments.
10814         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10815         * frame.c (legacy_get_prev_frame): Ditto.
10816         * valops.c (call_function_by_hand): Delete function.
10817         (hand_function_call): Rename to call_function_by_hand
10818
10819 2003-03-30  Andrew Cagney  <[email protected]>
10820
10821         2002-11-10 Klee Dienes <[email protected]>
10822         * value.h (struct value): Update comment.
10823
10824 2003-03-30  Andrew Cagney  <[email protected]>
10825
10826         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10827         D10V_FP_REGNUM.
10828         (d10v_gdbarch_init): Do not set fp_regnum.
10829
10830         * frame.c (get_frame_base): Force ID initialization.
10831         (get_prev_frame): Move computation of the frame ID from here ...
10832         (get_frame_id): ... to here.
10833         (legacy_get_prev_frame): Mark the frame ID as valid.
10834         * frame.h (struct frame_info): Add field "id_p".
10835
10836 2003-03-30  Mark Kettenis  <[email protected]>
10837
10838         * i386-tdep.c (i386_store_struct_return): Removed.
10839         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10840
10841 2003-03-30  Andrew Cagney  <[email protected]>
10842
10843         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10844         * gdbarch.h, gdbarch.c: Regenerate.
10845         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10846         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10847         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10848         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10849         * i386-tdep.c (i386_gdbarch_init): Ditto.
10850         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10851         * cris-tdep.c (cris_gdbarch_init): Ditto.
10852         * vax-tdep.c (vax_gdbarch_init): Ditto.
10853         * s390-tdep.c (s390_gdbarch_init): Ditto.
10854         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10855         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10856         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10857         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10858         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10859         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10860         * sparc-tdep.c (sparc_gdbarch_init): Update.
10861         * sh-tdep.c (sh_gdbarch_init): Update.
10862         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10863         * mips-tdep.c (mips_gdbarch_init): Update.
10864         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10865         * ia64-tdep.c (ia64_gdbarch_init): Update.
10866         * frv-tdep.c (frv_gdbarch_init): Update.
10867         * avr-tdep.c (avr_gdbarch_init): Update.
10868         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10869         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10870         instead of when push_dummy_call is not available.
10871
10872 2003-03-30  Andrew Cagney  <[email protected]>
10873
10874         * infttrace.c: Include "gdbthread.h".
10875         (parent_attach_all): Fix function signature.
10876         (call_ptrace): Update call.
10877         * Makefile.in (infttrace.o): Update dependencies.
10878
10879 2003-03-30  Andrew Cagney  <[email protected]>
10880
10881         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10882         PUSH_RETURN_ADDRESS.
10883         * gdbarch.h, gdbarch.c: Regenerate.
10884         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10885         * x86-64-tdep.c (x86_64_init_abi): Update.
10886         * v850-tdep.c (v850_gdbarch_init): Update.
10887         * sparc-tdep.c (sparc_gdbarch_init): Update.
10888         * sh-tdep.c (sh_gdbarch_init): Update.
10889         * s390-tdep.c (s390_gdbarch_init): Update.
10890         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10891         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10892         * mips-tdep.c (mips_gdbarch_init): Update.
10893         * mcore-tdep.c (mcore_gdbarch_init): Update.
10894         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10895         * ia64-tdep.c (ia64_gdbarch_init): Update.
10896         * i386-tdep.c (i386_gdbarch_init): Update.
10897         * h8300-tdep.c (h8300_gdbarch_init): Update.
10898         * frv-tdep.c (frv_gdbarch_init): Update.
10899         * cris-tdep.c (cris_gdbarch_init): Update.
10900         * avr-tdep.c (avr_gdbarch_init): Update.
10901         * arm-tdep.c (arm_gdbarch_init): Update.
10902         * valops.c (hand_function_call): Update.
10903
10904 2003-03-29  Andrew Cagney  <[email protected]>
10905
10906         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10907         sizeof_call_dummy_words.
10908         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
10909         define.
10910         * gdbarch.h: Regenerate.
10911
10912 2003-03-29  Andrew Cagney  <[email protected]>
10913
10914         * infttrace.h: New file.
10915         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
10916         (hpread_get_textlow): Detect an uninitialized dn_bufp.
10917         (hpread_read_doc_function_type): Detect an initialized type1.
10918         (hpread_quick_traverse): Initialize mod_name_string.
10919         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
10920         (som_solib_get_solib_by_pc): Declare.
10921         (so_lib_thread_start_addr): Declare.
10922         (no_shared_libraries): Declare.
10923         * somread.c (init_import_symbols): Make static.  Add forward
10924         declaration.
10925         * config/pa/nm-hppah.h: Include "infttrace.h" for
10926         parent_attach_all.
10927         (hppa_insert_hw_watchpoint): Declare.
10928         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
10929         * hppah-nat.c: Include "gdb_string.h".
10930         (parent_attach_all): Delete extern declaration, moved to
10931         "infttrace.h".
10932         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
10933         int.
10934         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
10935         * Makefile.in (infttrace_h): Define.
10936         (hpread.o): Update dependencies.
10937         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
10938         * hppa-hpux-tdep.c: Include "gdb_string.h".
10939         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
10940         * infrun.c (handle_inferior_event): Always initialize
10941         stepped_after_stopped_by_watchpoint.  Add default and remove
10942         fallthrough in switch statement.
10943         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
10944         parameter to int.
10945         (hppa_remove_hw_watchpoint): Ditto.
10946
10947 2003-03-29  Andrew Cagney  <[email protected]>
10948
10949         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
10950         offset.
10951
10952 2003-03-29  Richard Earnshaw  <[email protected]>
10953
10954         * arm-tdep.c (arm_push_arguments): Delete.
10955         (struct stack_item): New type.
10956         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
10957         (arm_store_struct_return): Delte.
10958         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
10959         arm_push_arguments or arm_store_struct_return.
10960
10961 2003-03-28  Andrew Cagney  <[email protected]>
10962
10963         * Makefile.in (d10v-tdep.o): Update dependencies.
10964         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
10965         * d10v-tdep.c: Include "remote.h".
10966         (target_resume_hook): Delete extern declaration.
10967         (target_wait_loop_hook): Ditto.
10968         (tdisassemble_command): Eliminate assignment in "if" conditional.
10969         (d10v_ts2_register_sim_regno): Eliminate call to
10970         legacy_register_sim_regno.
10971         (d10v_ts3_register_sim_regno): Ditto.
10972
10973 2003-03-28  Jeff Johnston  <[email protected]>
10974
10975         * thread.c: Reindented.
10976         * lin-lwp.c: Ditto.
10977         * linux-proc.c: Ditto.
10978
10979 2003-03-28  Bob Rossi  <[email protected]>
10980
10981         * MAINTAINERS (write after approval): Add myself.
10982
10983 2003-03-27  Theodore A. Roth  <[email protected]>
10984
10985         * objc-exp.y: Add missing semi-colons.
10986
10987 2003-03-27  Andrew Cagney  <[email protected]>
10988
10989         * regcache.c (write_sp): Delete function and references.
10990         * inferior.h (write_sp): Delete declaration.
10991         * valops.c (hand_function_call): Replace write_sp with
10992         TARGET_WRITE_SP.
10993         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
10994         (sparc_pop_frame): Ditto.
10995
10996 2003-03-27  Andrew Cagney  <[email protected]>
10997
10998         * NEWS: Mention removal of support for hppa*-*-bsd* and
10999         hppa*-*-osf* natives, and hppa*-*-pro* target.
11000         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11001         * config/pa/xm-pa.h: Obsolete file.
11002         * config/pa/xm-hppab.h: Obsolete file.
11003         * config/pa/nm-hppab.h: Obsolete file.
11004         * config/pa/tm-hppab.h: Obsolete file.
11005         * config/pa/tm-hppao.h: Obsolete file.
11006         * config/pa/nm-hppao.h: Obsolete file.
11007         * config/pa/tm-pro.h: Obsolete file.
11008         * config/pa/hppaosf.mt: Obsolete file.
11009         * config/pa/hppaosf.mh: Obsolete file.
11010         * config/pa/hppapro.mt: Obsolete file.
11011         * config/pa/hppabsd.mt: Obsolete file.
11012         * config/pa/hppabsd.mh: Obsolete file.
11013         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11014         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11015         hppa*-*-osf*.
11016
11017 2003-03-27  Andrew Cagney  <[email protected]>
11018
11019         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11020         push_arguments.  Don't set push_return_address or write_sp.
11021         (d10v_push_dummy_call): Replace d10v_push_arguments.
11022         (d10v_push_return_address, d10v_write_sp): Delete function,
11023         handled by push_dummy_call.
11024
11025 2003-03-26  Andrew Cagney  <[email protected]>
11026
11027         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11028         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11029         regcache and dummy_addr parameters.
11030         * gdbarch.h, gdbarch.c: Re-generate.
11031         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11032         available; assume it will handle stack alignment and return
11033         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11034         legacy_push_arguments.
11035         (legacy_push_arguments): Rename default_push_arguments.
11036         * value.h (legacy_push_arguments): Rename default_push_arguments.
11037         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11038         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11039         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11040         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11041         * config/i386/tm-symmetry.h: Update.
11042         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11043         * x86-64-tdep.c (x86_64_init_abi): Update.
11044         * v850-tdep.c (v850_gdbarch_init): Update.
11045         * sparc-tdep.c (sparc_gdbarch_init): Update.
11046         * sh-tdep.c (sh_gdbarch_init): Update.
11047         * s390-tdep.c (s390_gdbarch_init): Update.
11048         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11049         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11050         * mips-tdep.c (mips_gdbarch_init): Update.
11051         * mcore-tdep.c (mcore_gdbarch_init): Update.
11052         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11053         * ia64-tdep.c (ia64_gdbarch_init): Update.
11054         * i386-tdep.c (i386_gdbarch_init): Update.
11055         * hppa-tdep.c (hppa_gdbarch_init): Update.
11056         * h8300-tdep.c (h8300_gdbarch_init): Update.
11057         * frv-tdep.c (frv_gdbarch_init): Update.
11058         * d10v-tdep.c (d10v_gdbarch_init): Update.
11059         * cris-tdep.c (cris_gdbarch_init): Update.
11060         * avr-tdep.c (avr_gdbarch_init): Update.
11061         * arm-tdep.c (arm_gdbarch_init): Update.
11062         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11063         * alpha-tdep.c (alpha_gdbarch_init): Update.
11064
11065 2003-03-26  Daniel Jacobowitz  <[email protected]>
11066
11067         * signals/signals.c (do_target_signal_to_host): Correct realtime
11068         signal range test.
11069
11070 2003-03-26  Daniel Jacobowitz  <[email protected]>
11071
11072         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11073         (struct sal_chain, map_catch_names): Remove.
11074         (catch_exception_command_1): Don't call
11075         handle_gnu_4_16_catch_command.
11076
11077 2003-03-26  Daniel Jacobowitz  <[email protected]>
11078
11079         From Mark Dettinger <[email protected]>:
11080         * dwarf2cfi.c (read_2u): Increment pointer by two.
11081
11082 2003-03-26  Daniel Jacobowitz  <[email protected]>
11083
11084         * signals/signals.c: Fix typos in last change.
11085
11086 2003-03-26  Daniel Jacobowitz  <[email protected]>
11087
11088         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11089         not already defined.  Use __SIGRTMIN if available.
11090         (target_signal_from_host): Remove SIGRTMIN block.
11091         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11092         the signal is within the realtime range.
11093
11094 2003-03-25  Adam Fedor  <[email protected]>
11095
11096         * Makefile.in (infrun.o): Add $(language_h)
11097         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11098         for language specific trampolines.
11099         * language.h (struct language_defn): Add skip_trampoline.
11100         (skip_language_trampoline): Declare.
11101         * language.c (unk_lang_trampoline, skip_language_trampoline):
11102         New functions.
11103         (unknown_language_defn, auto_language_defn, local_language_defn):
11104         Add ukn_lang_trampoline.
11105         * ada-lang.c (ada_language_defn): Add NULL for language
11106         specific skip_trampoline.
11107         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11108         scm-lang.c: Likewise.
11109         * objc-lang.c (objc_skip_trampoline): New function.
11110         (objc_language_defn): Add objc_skip_trampoline.
11111
11112 2003-03-25  Andrew Cagney  <[email protected]>
11113
11114         * frame.c (get_prev_frame): Delay validating a frame's ID -
11115         non-NULL, didn't go backwards - until an attempt to unwind it to
11116         the previous frame.
11117
11118 2003-03-25  Andrew Cagney  <[email protected]>
11119
11120         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11121         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11122         * gdbarch.h, gdbarch.c: Re-generate.
11123         * config/sparc/tm-sparc.h
11124         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11125         * sparc-tdep.c (sparc_gdbarch_init): Set
11126         deprecated_extra_stack_alignment_needed.
11127         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11128         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11129         extra_stack_alignment_needed.
11130         * v850-tdep.c (v850_gdbarch_init): Ditto.
11131         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11132         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11133         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11134         * cris-tdep.c (cris_gdbarch_init): Ditto.
11135         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11136         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11137
11138 2003-03-25  Andrew Cagney  <[email protected]>
11139
11140         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11141         STORE_STRUCT_RETURN.
11142         * gdbarch.h, gdbarch.c: Regenerate.
11143         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11144         (d10v_push_arguments): Set the struct return register.
11145         (d10v_gdbarch_init): Update.
11146         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11147         * x86-64-tdep.c (x86_64_init_abi): Update.
11148         * vax-tdep.c (vax_gdbarch_init): Update.
11149         * v850-tdep.c (v850_gdbarch_init): Update.
11150         * sparc-tdep.c (sparc_gdbarch_init): Update.
11151         * sh-tdep.c (sh_gdbarch_init): Update.
11152         * s390-tdep.c (s390_gdbarch_init): Update.
11153         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11154         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11155         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11156         * mips-tdep.c (mips_gdbarch_init): Update.
11157         * mcore-tdep.c (mcore_gdbarch_init): Update.
11158         * m68k-tdep.c (m68k_gdbarch_init): Update.
11159         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11160         * ia64-tdep.c (ia64_gdbarch_init): Update.
11161         * i386-tdep.c (i386_gdbarch_init): Update.
11162         * hppa-tdep.c (hppa_gdbarch_init): Update.
11163         * h8300-tdep.c (h8300_gdbarch_init): Update.
11164         * frv-tdep.c (frv_gdbarch_init): Update.
11165         * cris-tdep.c (cris_gdbarch_init): Update.
11166         * avr-tdep.c (avr_gdbarch_init): Update.
11167         * arm-tdep.c (arm_gdbarch_init): Update.
11168         * alpha-tdep.c (alpha_gdbarch_init): Update.
11169
11170 2003-03-25  Andrew Cagney  <[email protected]>
11171
11172         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11173         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11174         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11175         * gdbarch.h, gdbarch.c: Regenerate.
11176         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11177         call_dummy_stack_adjust_p.
11178         * vax-tdep.c (vax_gdbarch_init): Ditto.
11179         * v850-tdep.c (v850_gdbarch_init): Ditto.
11180         * sh-tdep.c (sh_gdbarch_init): Ditto.
11181         * s390-tdep.c (s390_gdbarch_init): Ditto.
11182         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11183         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11184         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11185         * mips-tdep.c (mips_gdbarch_init): Ditto.
11186         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11187         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11188         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11189         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11190         * i386-tdep.c (i386_gdbarch_init): Ditto.
11191         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11192         * frv-tdep.c (frv_gdbarch_init): Ditto.
11193         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11194         * cris-tdep.c (cris_gdbarch_init): Ditto.
11195         * avr-tdep.c (avr_gdbarch_init): Ditto.
11196         * arm-tdep.c (arm_gdbarch_init): Ditto.
11197         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11198         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11199         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11200         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11201         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11202         call_dummy_stack_adjust_p.
11203         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11204         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11205         * sparc-tdep.c (sparc32_push_arguments): Update.
11206         * valops.c (hand_function_call): Update.
11207
11208 2003-03-25  Corinna Vinschen  <[email protected]>
11209
11210         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11211         set_gdbarch_char_signed.
11212
11213 2003-03-25  Richard Earnshaw  <[email protected]>
11214
11215         PR cli/548
11216         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11217
11218 2003-03-25  Richard Earnshaw  <[email protected]>
11219
11220         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11221         (_initialize_arm_tdep): Don't set tm_print_insn.
11222
11223 2003-03-24  Adam Fedor  <[email protected]>
11224
11225         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11226         * objc-lang.h: Add multiple inclusion protection.
11227         (start_msglist, add_msglist, end_msglist): Additional declarations.
11228
11229 2003-03-24  Richard Earnshaw  <[email protected]>
11230
11231         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11232         value was renamed to ARM_FLOAT_SOFT_FPA.
11233
11234 2003-03-23  Andrew Cagney  <[email protected]>
11235
11236         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11237         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11238         * gdbarch.h, gdbarch.c: Regenerate.
11239         * valops.c (hand_function_call): Update.
11240         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11241         * frame.c (legacy_saved_regs_this_id): Update.
11242         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11243         * dummy-frame.h: Update.
11244         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11245         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11246         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11247         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11248         * config/m68k/tm-sun3.h: Update.
11249         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11250         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11251         * x86-64-tdep.c (x86_64_init_abi): Update.
11252         * vax-tdep.c (vax_gdbarch_init): Update.
11253         * v850-tdep.c (v850_gdbarch_init): Update.
11254         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11255         * sh-tdep.c (sh_gdbarch_init): Update.
11256         * s390-tdep.c (s390_gdbarch_init): Update.
11257         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11258         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11259         (frame_get_saved_regs): Update.
11260         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11261         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11262         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11263         * mips-tdep.c (mips_gdbarch_init): Update.
11264         * mcore-tdep.c (mcore_gdbarch_init): Update.
11265         * m68k-tdep.c (m68k_gdbarch_init): Update.
11266         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11267         * ia64-tdep.c (ia64_gdbarch_init): Update.
11268         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11269         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11270         (i386_interix_back_one_frame): Update.
11271         * hppa-tdep.c (hppa_gdbarch_init): Update.
11272         (hppa_init_extra_frame_info): Update.
11273         * h8300-tdep.c (h8300_gdbarch_init): Update.
11274         * frv-tdep.c (frv_gdbarch_init): Update.
11275         * cris-tdep.c (cris_gdbarch_init): Update.
11276         * avr-tdep.c (avr_gdbarch_init): Update.
11277         * arm-tdep.c (arm_gdbarch_init): Update.
11278         * alpha-tdep.c (alpha_gdbarch_init): Update.
11279
11280 2003-03-22  Richard Earnshaw  <[email protected]>
11281
11282         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11283         (arm_get_fp_model): Declare.
11284         * arm-tdep.c (fp_model_strings): New string array.
11285         (arm_fp_model, current_fp_model): New variables.
11286         (arm_get_fp_model): New function.
11287         (arm_set_fp): New function.
11288         (set_fp_model_sfunc): New function.
11289         (show_fp_model): New function.
11290         (_initialize_arm_tdep): Add new command to set/show the FPU.
11291         (arm_extract_return_value): Use arm_get_fp_model.
11292         (arm_store_return_value): Likewise.
11293         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11294         to initialize the floating-point data types.
11295         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11296         model is FPA.
11297
11298 2003-03-22  Richard Earnshaw  <[email protected]>
11299
11300         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11301         the current setting of each value.
11302         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11303         new_set and new_show.  Use add_setshow_cmd_full and
11304         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11305         commands and add new version as subcommands of "set/show arm".
11306
11307 2003-03-22  Richard Earnshaw  <[email protected]>
11308
11309         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11310         (set_arm_command, show_arm_command): New functions.
11311         (_initialize_arm_tdep): Add them.
11312         (num_disassembly_options): Renamed from num_flavor_options.
11313         (valid_disassembly_styles): Renamed from valid_flavors.
11314         (disassembly_style): Renamed from disassembly_flavor.
11315         (set_disassembly_style_sfunc): Renamed from
11316         set_disassembly_flavor_sfunc.
11317         (set_disassembly_style): Renamed from set_disassembly_flavor.
11318         (arm_othernames): Updated.
11319         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11320         command.  Add "set/show arm disassembly" commands.  Deprecate
11321         "othernames" command.
11322
11323 2003-03-22  Richard Earnshaw  <[email protected]>
11324
11325         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11326         (arm-tdep.o): Depend on elf_arm_h.
11327
11328 2003-03-22  Richard Earnshaw  <[email protected]>
11329
11330         * Makefile.in (coff_internal_h): Define.
11331         (arm-tdep.o): Update dependencies.
11332
11333 2003-03-22  Richard Earnshaw  <[email protected]>
11334
11335         * arm-tdep.c (prologue_cache): Delete.
11336         (check_prologue_cache, save_prologue_cache): Delete.
11337         (arm_scan_prologue): Don't check or update the prologue_cache.
11338         (arm_gdb_arch_init): Don't initialize it.
11339         (_initialize_arm_tdep): Likewise.
11340
11341 2003-03-21  Stephane Carrez  <[email protected]>
11342
11343         * MAINTAINERS (tui): Maintainer of tui code.
11344
11345 2003-03-21  Corinna Vinschen  <[email protected]>
11346
11347         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11348         (i386-cygwin-tdep.o): Add dependencies.
11349         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11350         * i386-cygwin-tdep.c: New file.
11351         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11352         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11353
11354 2003-03-20  Andrew Cagney  <[email protected]>
11355
11356         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11357         (handle_inferior_event): Remove code calling
11358         DYNAMIC_TRAMPOLINE_NEXTPC.
11359
11360         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11361         already has a full path.
11362
11363         * main.c (gdb_main): Return 1.
11364         (captured_main): Call error to report an invalid interpreter.
11365
11366         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11367         * alpha-osf1-tdep.c: Include "gdb_string.h".
11368
11369 2003-03-19  J. Brobecker  <[email protected]>
11370
11371         Continuing work to convert the hppa targets to multiarch partial.
11372
11373         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11374         method, now that hppa_push_dummy_frame has a conformant prototype.
11375         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11376         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11377         for the switch to multiarch partial.
11378
11379 2003-03-19  Kevin Buettner  <[email protected]>
11380
11381         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11382         when iss is issNull.
11383
11384 2003-03-18  Kevin Buettner  <[email protected]>
11385
11386         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11387         NUM_REGS bounds check.
11388
11389 2003-03-18  Kevin Buettner  <[email protected]>
11390
11391         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11392         * mips-tdep.c (gdb_assert.h): Include.
11393         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11394         (mips_register_name): Handle integer registers explicitly.  Add
11395         bounds checking.
11396         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11397         (mips_lsi33k_reg_names): Don't list integer registers; they're
11398         handled by mips_register_name() now.
11399         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11400         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11401         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11402         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11403         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11404
11405 2003-03-18  Andrew Cagney  <[email protected]>
11406
11407         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11408         a void pointer.
11409         * gdbtypes.h (print_scalar_formatted): Update declaration.
11410         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11411
11412 2003-03-18  J. Brobecker  <[email protected]>
11413
11414         * infrun.c (observer.h): Add #include.
11415         (normal_stop): Add call to observer_notify_normal_stop.
11416         * Makefile.in (infrun.o): Add dependency on observer.h.
11417
11418 2003-03-18  J. Brobecker  <[email protected]>
11419
11420         Continuing work to convert the hppa targets to multiarch partial.
11421         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11422         parameter. Reformat comment.
11423         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11424         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11425         to match new profile.
11426
11427 2003-03-18  J. Brobecker  <[email protected]>
11428
11429         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11430         appear to be working in any case.
11431
11432 2003-03-18  J. Brobecker  <[email protected]>
11433
11434         * observer.c (observer_test_first_observer): New static variable.
11435         (observer_test_second_observer): Likewise.
11436         (observer_test_third_observer): Likewise.
11437         (observer_test_first_notification_function): New static function.
11438         (observer_test_second_notification_function): Likewise.
11439         (observer_test_third_notification_function): Likewise.
11440
11441 2003-03-17  J. Brobecker  <[email protected]>
11442
11443         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11444         * somsolib.c (gdb_assert.h): Likewise.
11445         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11446         (somsolib.o): Likewise.
11447
11448 2003-03-17  Andrew Cagney  <[email protected]>
11449
11450         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11451         BFD.  Simplify setting of di.endian.
11452
11453 2003-03-17  Andrew Cagney  <[email protected]>
11454
11455         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11456         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11457
11458         From Elena Zannoni  <[email protected]>
11459         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11460         vector and floating-point parameters.
11461         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11462         convention.
11463         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11464
11465 2003-03-17  Fernando Nasser  <[email protected]>
11466
11467         * MAINTAINERS: Remove my name from several maintainership roles.
11468
11469 2003-03-17  Andrew Cagney  <[email protected]>
11470
11471         Fix frame off-by-one bug.
11472         * frame-unwind.h (frame_this_id_ftype): Replace
11473         frame_unwind_id_ftype.
11474         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11475         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11476         with "prev_register".
11477         * frame-unwind.c (frame_unwind_find_by_pc): Return
11478         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11479         comment.
11480         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11481         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11482         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11483         (dummy_frame_unwind): Update.
11484         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11485         sentinel_frame_register_unwind.
11486         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11487         (sentinel_frame_unwinder): Update.
11488         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11489         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11490         * frame.c (create_sentinel_frame): Update. Initialize
11491         "prologue_cache" instead of "unwind_cache".
11492         (frame_register_unwind): Call this frame's prev_register with the
11493         next frame and this frame's prologue cache.
11494         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11495         this frame and prev frame's prologue cache.  Document that this
11496         call is shifted one to the left when compared to the
11497         frame_register_unwind call.
11498         (legacy_saved_regs_prev_register): Replace
11499         frame_saved_regs_register_unwind.
11500         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11501         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11502         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11503         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11504         (d10v_frame_unwind): Update.
11505         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11506         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11507         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11508         "saved_regs" with "this_saved_regs".
11509
11510 2003-03-16  Andrew Cagney  <[email protected]>
11511
11512         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11513         problem reported by Mark Kettenis.
11514
11515 2003-03-16  Mark Kettenis  <[email protected]>
11516
11517         * i386-tdep.c (i386_register_type): Renamed from
11518         i386_register_virtual_type.  Adjust function signature.
11519         (i386_gdbarch_init): Set register_type instead of
11520         deprecated_max_register_raw_size,
11521         deprecated_max_register_virtual_size and register_virtual_type.
11522
11523 2003-03-14  Andrew Cagney  <[email protected]>
11524
11525         * frame.c (get_prev_frame): When a legacy frame, always call
11526         legacy_get_prev_frame.  Simplify unwind code using assumption that
11527         the unwinder is new.
11528         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11529         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11530         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11531
11532 2003-03-14  Andrew Cagney  <[email protected]>
11533
11534         * frame.c (get_saved_register): Delete function.
11535         * frame.h (get_saved_register): Delete declaration.
11536         * xstormy16-tdep.c: Update comment.
11537         * regcache.h: Update comments.
11538         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11539         get_saved_register and extract_address, use
11540         frame_read_unsigned_register.
11541         (sparc_frame_saved_pc): Ditto.
11542         (sparc_get_saved_register): Instead of get_saved_register, use
11543         frame_register.
11544         (sparc_pop_frame): Ditto.
11545         * findvar.c: Update comments.
11546         (value_of_register): Call frame_register instead of
11547         get_saved_register.
11548         (value_from_register): Ditto.
11549         * config/sparc/tm-sparc.h: Update comment.
11550         * breakpoint.c: Update comment.
11551
11552 2003-03-14  Andrew Cagney  <[email protected]>
11553
11554         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11555         GET_SAVED_REGISTER.
11556         * gdbarch.h, gdbarch.c: Re-generate.
11557         * frame.h: Update comments.
11558         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11559         * x86-64-tdep.c (x86_64_init_abi): Update.
11560         * sparc-tdep.c (sparc_gdbarch_init): Update.
11561         * sh-tdep.c (sh_gdbarch_init): Update.
11562         * mips-tdep.c (mips_gdbarch_init): Update.
11563         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11564         * cris-tdep.c (cris_gdbarch_init): Update.
11565         * ia64-tdep.c (ia64_gdbarch_init): Update.
11566         * frame.c (frame_register): Update.
11567         (get_saved_register): Update.
11568         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11569
11570 2003-03-13  Andrew Cagney  <[email protected]>
11571
11572         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11573         * gdbarch.h, gdbarch.c: Regenerate.
11574         * valops.c (hand_function_call): Update comment.
11575         * stack.c (return_command): Update comment.
11576         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11577         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11578         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11579         * x86-64-tdep.c (x86_64_init_abi): Update.
11580         * vax-tdep.c (vax_gdbarch_init): Update.
11581         * v850-tdep.c (v850_gdbarch_init): Update.
11582         * sparc-tdep.c (sparc_gdbarch_init): Update.
11583         * sh-tdep.c (sh_gdbarch_init): Update.
11584         * s390-tdep.c (s390_gdbarch_init): Update.
11585         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11586         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11587         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11588         * mips-tdep.c (mips_gdbarch_init): Update.
11589         * mcore-tdep.c (mcore_gdbarch_init): Update.
11590         * m68k-tdep.c (m68k_gdbarch_init): Update.
11591         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11592         * ia64-tdep.c (ia64_gdbarch_init): Update.
11593         * i386-tdep.c (i386_gdbarch_init): Update.
11594         * hppa-tdep.c (hppa_gdbarch_init): Update.
11595         * h8300-tdep.c (h8300_gdbarch_init): Update.
11596         * frv-tdep.c (frv_gdbarch_init): Update.
11597         * cris-tdep.c (cris_gdbarch_init): Update.
11598         * avr-tdep.c (avr_gdbarch_init): Update.
11599         * arm-tdep.c (arm_gdbarch_init): Update.
11600         * alpha-tdep.c (alpha_gdbarch_init): Update.
11601
11602 2003-03-13  Andrew Cagney  <[email protected]>
11603
11604         * frame.c (legacy_frame_p): New function.
11605         (get_prev_frame): Use legacy_frame_p.
11606         * frame.h (legacy_frame_p): Declare.
11607
11608 2003-03-13  D. Venkatasubramanian <[email protected]>
11609
11610         * MAINTAINERS (write after approval): Alphabetically
11611         listing corrected.
11612
11613 2003-03-13  D. Venkatasubramanian <[email protected]>
11614
11615         * MAINTAINERS (write after approval): Add myself.
11616
11617 2003-03-12  Andrew Cagney  <[email protected]>
11618
11619         * frame.c (get_prev_frame): Rename the frame parameter to
11620         "this_frame".
11621         (get_next_frame, legacy_get_prev_frame): Ditto.
11622
11623 2003-03-12  Andrew Cagney  <[email protected]>
11624
11625         * frame.c (get_current_frame): Check target_has_registers before
11626         checking target_has_stack.
11627         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11628         instead of deprecated_selected_frame.
11629         * findvar.c (value_of_register): Pass "frame", not
11630         deprecated_selected_frame, to value_of_builtin_reg.
11631
11632 2003-03-12  Andrew Cagney  <[email protected]>
11633
11634         * regcache.c (regcache_cooked_write_signed): New function.
11635         (regcache_cooked_write_unsigned): New function.
11636         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11637         (regcache_cooked_read_signed): Fix regnum in range assertion.
11638         * regcache.h (regcache_cooked_write_signed): Declare.
11639         (regcache_cooked_write_unsigned): Declare.
11640
11641 2003-03-12  Andrew Cagney  <[email protected]>
11642
11643         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11644         * gdbarch.h, gdbarch.c: Re-generate.
11645         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11646         * x86-64-tdep.h: Update.
11647         * x86-64-tdep.c (x86_64_init_abi): Update.
11648         * v850-tdep.c (v850_gdbarch_init): Update.
11649         * sparc-tdep.c (sparc_gdbarch_init): Update.
11650         * sh-tdep.c (sh_gdbarch_init): Update.
11651         * s390-tdep.c (s390_gdbarch_init): Update.
11652         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11653         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11654         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11655         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11656         * mips-tdep.c (mips_gdbarch_init): Update.
11657         * mcore-tdep.c (mcore_gdbarch_init): Update.
11658         * m68k-tdep.c (m68k_gdbarch_init): Update.
11659         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11660         * ia64-tdep.c (ia64_gdbarch_init): Update.
11661         * i386-tdep.c (i386_gdbarch_init): Update.
11662         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11663         * hppa-tdep.c (hppa_gdbarch_init): Update.
11664         * h8300-tdep.c (h8300_gdbarch_init): Update.
11665         * frv-tdep.c (frv_gdbarch_init): Update.
11666         * cris-tdep.c (cris_gdbarch_init): Update.
11667         * avr-tdep.c (avr_gdbarch_init): Update.
11668         * arm-tdep.c (arm_gdbarch_init): Update.
11669         * alpha-tdep.c (alpha_gdbarch_init): Update.
11670         * sh-tdep.c (sh_init_extra_frame_info): Update.
11671         (sh64_init_extra_frame_info): Update.
11672         * ns32knbsd-nat.c (frame_num_args): Update.
11673         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11674         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11675         (xstormy16_frame_chain_valid): Update.
11676         * vax-tdep.c (vax_saved_pc_after_call): Update.
11677         * v850-tdep.c (v850_frame_chain): Update.
11678         (v850_pop_frame): Update.
11679         (v850_init_extra_frame_info): Update.
11680         * sparc-tdep.c (setup_arbitrary_frame): Update.
11681         * ns32k-tdep.c (umax_frame_num_args): Update.
11682         * s390-tdep.c (s390_pop_frame_regular): Update.
11683         * mn10300-tdep.c (mn10300_frame_chain): Update.
11684         (mn10300_pop_frame_regular): Update.
11685         (mn10300_init_extra_frame_info): Update.
11686         * mips-tdep.c (mips_init_frame_pc_first): Update.
11687         (mips_frame_chain): Update.
11688         (mips_pop_frame): Update.
11689         * mcore-tdep.c (mcore_frame_chain): Update.
11690         (mcore_pop_frame): Update.
11691         (mcore_init_extra_frame_info): Update.
11692         * arch-utils.c (init_frame_pc_default): Update.
11693         * m68k-tdep.c (isi_frame_num_args): Update.
11694         (delta68_frame_num_args): Update.
11695         (news_frame_num_args): Update.
11696         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11697         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11698         (alpha_frame_chain): Update.
11699         (alpha_pop_frame): Update.
11700         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11701         (hppa_init_extra_frame_info): Update.
11702         (hppa_frame_chain): Update.
11703         (hppa_frame_chain_valid): Update.
11704         * cris-tdep.c (cris_init_extra_frame_info): Update.
11705         * avr-tdep.c (avr_init_extra_frame_info): Update.
11706         * arm-tdep.c (arm_frame_chain_valid): Update.
11707         (arm_init_extra_frame_info): Update.
11708         (arm_pop_frame): Update.
11709         * frame.c (frame_pc_unwind): Update.
11710         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11711         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11712         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11713         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11714         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11715         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11716
11717 2003-03-12  Andrew Cagney  <[email protected]>
11718
11719         Eliminate the need for POP_FRAME.
11720         * frame.c (do_frame_unwind_register): New function.
11721         (frame_pop): When no POP_FRAME, pop the frame using register
11722         unwind and a scratch regcache.
11723         (frame_saved_regs_pop): Delete function.
11724         (trad_frame_unwinder): Update.
11725         * d10v-tdep.c (d10v_frame_pop): Delete function.
11726         (d10v_frame_unwind): Update.
11727         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11728         (sentinel_frame_unwinder): Update.
11729         * dummy-frame.c (dummy_frame_pop): Delete function.
11730         (dummy_frame_unwind): Update.
11731         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11732         (struct frame_unwind): Update.
11733
11734 2003-03-11  Kevin Buettner  <[email protected]>
11735
11736         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11737         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11738         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11739         Do range checks on register number obtained from debugging info.
11740         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11741         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11742         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11743         mapping function.
11744         (do_fp_register_row): Fix typo which caused double type to be
11745         used when attempting to unpack a float.
11746
11747 2003-03-11  J. Brobecker  <[email protected]>
11748
11749         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11750
11751 2003-03-11  Andrew Cagney  <[email protected]>
11752
11753         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11754         frame.  Problem found by Corinna Vinschen.
11755
11756 2003-03-11  Pierre Muller  <[email protected]>
11757
11758         * doublest.c (floatformat_from_length): Accept also
11759         the real size of 'long double' type.
11760
11761 2003-03-10  Daniel Jacobowitz  <[email protected]>
11762
11763         From Klee Dienes <[email protected]>:
11764         * breakpoint.c (bpstat_copy): Copy the command lines as well
11765         as the old value, to match what is freed in bpstat_clear.
11766
11767 2003-03-10  David Carlton  <[email protected]>
11768
11769         * minsyms.c (add_minsym_to_hash_table): Replace
11770         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11771         (compare_minimal_symbols, compact_minimal_symbols)
11772         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11773         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11774         of DEPRECATED_SYMBOL_MATCHES_NAME.
11775         (lookup_minimal_symbol_solib_trampoline): Ditto.
11776
11777 2003-03-10  Andrew Cagney  <[email protected]>
11778
11779         * regcache.h (regcache_cooked_read_ftype): Define.
11780         (regcache_save, regcache_restore): Add a cooked_read parameter.
11781         * regcache.c (regcache_save, regcache_restore): Update.
11782         (do_cooked_read): New function.
11783         (regcache_cpy): Pass do_cooked_read to regcache_save and
11784         regcache_restore.
11785
11786 2003-03-10  Andrew Cagney  <[email protected]>
11787
11788         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11789         * gdbarch.h, gdbarch.c: Re-generate.
11790         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11791         * x86-64-tdep.h: Update.
11792         * x86-64-tdep.c (x86_64_init_abi): Update.
11793         * v850-tdep.c (v850_gdbarch_init): Update.
11794         * sparc-tdep.c (sparc_gdbarch_init): Update.
11795         * sh-tdep.c (sh_gdbarch_init): Update.
11796         * s390-tdep.c (s390_gdbarch_init): Update.
11797         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11798         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11799         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11800         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11801         * mips-tdep.c (mips_gdbarch_init): Update.
11802         * mcore-tdep.c (mcore_gdbarch_init): Update.
11803         * m68k-tdep.c (m68k_gdbarch_init): Update.
11804         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11805         * ia64-tdep.c (ia64_gdbarch_init): Update.
11806         * i386-tdep.c (i386_gdbarch_init): Update.
11807         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11808         * hppa-tdep.c (hppa_gdbarch_init): Update.
11809         * h8300-tdep.c (h8300_gdbarch_init): Update.
11810         * frv-tdep.c (frv_gdbarch_init): Update.
11811         * cris-tdep.c (cris_gdbarch_init): Update.
11812         * avr-tdep.c (avr_gdbarch_init): Update.
11813         * arm-tdep.c (arm_gdbarch_init): Update.
11814         * alpha-tdep.c (alpha_gdbarch_init): Update.
11815         * sh-tdep.c (sh_init_extra_frame_info): Update.
11816         (sh64_init_extra_frame_info): Update.
11817         * ns32knbsd-nat.c (frame_num_args): Update.
11818         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11819         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11820         (xstormy16_frame_chain_valid): Update.
11821         * vax-tdep.c (vax_saved_pc_after_call): Update.
11822         * v850-tdep.c (v850_frame_chain): Update.
11823         (v850_pop_frame): Update.
11824         (v850_init_extra_frame_info): Update.
11825         * sparc-tdep.c (setup_arbitrary_frame): Update.
11826         * ns32k-tdep.c (umax_frame_num_args): Update.
11827         * s390-tdep.c (s390_pop_frame_regular): Update.
11828         * mn10300-tdep.c (mn10300_frame_chain): Update.
11829         (mn10300_pop_frame_regular): Update.
11830         (mn10300_init_extra_frame_info): Update.
11831         * mips-tdep.c (mips_init_frame_pc_first): Update.
11832         (mips_frame_chain): Update.
11833         (mips_pop_frame): Update.
11834         * mcore-tdep.c (mcore_frame_chain): Update.
11835         (mcore_pop_frame): Update.
11836         (mcore_init_extra_frame_info): Update.
11837         * arch-utils.c (init_frame_pc_default): Update.
11838         * m68k-tdep.c (isi_frame_num_args): Update.
11839         (delta68_frame_num_args): Update.
11840         (news_frame_num_args): Update.
11841         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11842         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11843         (alpha_frame_chain): Update.
11844         (alpha_pop_frame): Update.
11845         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11846         (hppa_init_extra_frame_info): Update.
11847         (hppa_frame_chain): Update.
11848         (hppa_frame_chain_valid): Update.
11849         * cris-tdep.c (cris_init_extra_frame_info): Update.
11850         * avr-tdep.c (avr_init_extra_frame_info): Update.
11851         * arm-tdep.c (arm_frame_chain_valid): Update.
11852         (arm_init_extra_frame_info): Update.
11853         (arm_pop_frame): Update.
11854         * frame.c (frame_pc_unwind): Update.
11855         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11856         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11857         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11858         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11859         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11860         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11861
11862 2003-03-10  Andrew Cagney  <[email protected]>
11863
11864         * gdbarch.sh (gdbarch_unwind_pc): New method.
11865         * gdbarch.h, gdbarch.c: Regenerate.
11866         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11867         but use read_pc and FRAME_SAVED_PC as fall backs.
11868         (frame_saved_regs_pc_unwind): Delete function.
11869         (trad_frame_unwinder): Update.
11870         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11871         (struct frame_unwind): Update.
11872         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11873         (dummy_frame_unwind): Update.
11874         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11875         (sentinel_frame_unwinder): Update.
11876         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11877         (d10v_frame_unwind): Update.
11878         (d10v_unwind_pc): New function.
11879         (d10v_gdbarch_init): Set unwind_pc.
11880
11881 2003-03-10  Andrew Cagney  <[email protected]>
11882
11883         * gdbarch.h: Re-generate.
11884
11885         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11886         PC.
11887         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11888         the PC register.
11889
11890 2003-03-08  Mark Kettenis  <[email protected]>
11891
11892         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11893
11894 2003-03-08  Andrew Cagney  <[email protected]>
11895
11896         * cli-out.c: Update copyright.
11897         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11898
11899 2003-03-08  Andrew Cagney  <[email protected]>
11900
11901         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11902         the result.
11903
11904 2003-03-07  Andrew Cagney  <[email protected]>
11905
11906         * gdbarch.sh: Don't generate two macro definitions when an
11907         undefined macro taking no arguments.
11908         * gdbarch.h: Regenerate.
11909
11910 2002-03-07  Michal Ludvig  <[email protected]>
11911
11912         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
11913         (x86_64_unwind_dummy_id): New functions.
11914         (x86_64_init_abi): Register these two new functions.
11915
11916 2003-03-07  Michal Ludvig  <[email protected]>
11917
11918         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
11919         (x86_64_skip_prologue): Move prologue detection to
11920         separate function.
11921         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
11922
11923 2003-03-05  Andrew Cagney  <[email protected]>
11924
11925         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
11926         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
11927         * frame.c (get_prev_frame): Restructure the frame ID unwind code
11928         to use unwind_dummy_id when a dummy frame.
11929         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
11930         predicate.
11931         * gdbarch.h, gdbarch.c: Regneerate.
11932
11933 2003-03-05  Andrew Cagney  <[email protected]>
11934
11935         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
11936         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
11937         Do not use d10v_read_sp or d10v_read_fp when obtaining register
11938         values.
11939
11940 2003-03-05  Andrew Cagney  <[email protected]>
11941
11942         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
11943         (struct d10v_unwind_cache): Delete field "frameless".  Replace
11944         "next_addr" with "sp_offset".  Add "r11_offset".
11945         (d10v_frame_unwind_cache): Update.
11946         (prologue_find_regs): Update.  When "mv r11, sp", save the
11947         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
11948         RN was saved in r11_offset.
11949
11950 2003-03-05  Andrew Cagney  <[email protected]>
11951
11952         * frame.c (deprecated_update_frame_pc_hack): Also update the the
11953         cached PC value in the next frame.
11954
11955 2003-03-05  Andrew Cagney  <[email protected]>
11956
11957         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
11958         "id_unwind_cache" with "id".
11959         (frame_id_unwind): Delete declaration.
11960         * frame.c (frame_id_unwind): Delete function.
11961         (get_prev_frame): Call the frame id unwind method directly.  Store
11962         the returned next frame's ID value in NEXT_FRAME.  Note that there
11963         is a problem with the wrong unwind ID being called with the wrong
11964         unwind cache.
11965
11966 2003-03-05  Daniel Jacobowitz  <[email protected]>
11967
11968         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
11969
11970 2003-03-05  James Ingham <[email protected]>
11971             Daniel Jacobowitz  <[email protected]>
11972
11973         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
11974         (auto_cp_abi): New variable.
11975         (current_cp_abi, num_cp_abis): Make static.
11976         (CP_ABI_MAX): Define.
11977         (cp_abis): Turn into an array.
11978         (value_virtual_fn_field): Fix formatting.
11979         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
11980         takes a pointer.
11981         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
11982         (list_cp_abis, _initialize_cp_abi): New functions.
11983         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
11984         declarations for cp_abis, num_cp_abis, current_cp_abi, and
11985         switch_to_cp_abi.  Update prototype for register_cp_abi.
11986         * Makefile.in (cp-abi.o): Update dependencies.
11987         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
11988         instead of switch_to_cp_abi.
11989         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
11990         register_cp_abi.
11991         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
11992         register_cp_abi.
11993         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
11994
11995 2003-03-05  Daniel Jacobowitz  <[email protected]>
11996
11997         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
11998         * dwarf2loc.c: Include "regcache.h".
11999         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12000         register_size.
12001         * Makefile.in (dwarf2loc.o): Update dependencies.
12002
12003 2003-03-04  Theodore A. Roth  <[email protected]>
12004
12005         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12006         number of io registers reported by remote target is not a multiple of
12007         step.
12008
12009 2003-03-04  David Carlton  <[email protected]>
12010
12011         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12012         (lookup_symbol_aux_psymtabs): Update call to
12013         lookup_partial_symbol.
12014         (lookup_transparent_type, find_main_psymtab)
12015         (make_symbol_overload_list): Ditto.
12016
12017 2003-03-04  Kazu Hirata  <[email protected]>
12018
12019         * MAINTAINERS (Write after approval): Update my email address.
12020
12021 2003-03-03  Andrew Cagney  <[email protected]>
12022
12023         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12024         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12025         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12026         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12027         MAX_REGISTER_VIRTUAL_SIZE.
12028         * regcache.c (legacy_max_register_raw_size): New function.
12029         (legacy_max_register_virtual_size): New function.
12030         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12031         (MAX_REGISTER_RAW_SIZE): Define.
12032         (legacy_max_register_raw_size): Declare.
12033         (legacy_max_register_virtual_size): Declare.
12034         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12035         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12036         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12037         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12038         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12039         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12040         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12041         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12042         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12043         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12044         * vax-tdep.c (vax_gdbarch_init): Update.
12045         * v850-tdep.c (v850_gdbarch_init): Update.
12046         * sparc-tdep.c (sparc_gdbarch_init): Update.
12047         * sh-tdep.c (sh_gdbarch_init): Update.
12048         * s390-tdep.c (s390_gdbarch_init): Update.
12049         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12050         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12051         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12052         * mips-tdep.c (mips_gdbarch_init): Update.
12053         * mcore-tdep.c (mcore_gdbarch_init): Update.
12054         * m68k-tdep.c (m68k_gdbarch_init): Update.
12055         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12056         * ia64-tdep.c (ia64_gdbarch_init): Update.
12057         * i386-tdep.c (i386_gdbarch_init): Update.
12058         * hppa-tdep.c (hppa_gdbarch_init): Update.
12059         * h8300-tdep.c (h8300_gdbarch_init): Update.
12060         * frv-tdep.c (frv_gdbarch_init): Update.
12061         * cris-tdep.c (cris_gdbarch_init): Update.
12062         * avr-tdep.c (avr_gdbarch_init): Update.
12063         * arm-tdep.c (arm_gdbarch_init): Update.
12064         * alpha-tdep.c (alpha_gdbarch_init): Update.
12065         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12066         max_register_raw_size or max_register_virtual_size.
12067
12068 2003-03-03  David Carlton  <[email protected]>
12069
12070         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12071         SYMBOL_MATCHES_NAME, add comment.
12072         (SYMBOL_MATCHES_NATURAL_NAME): New.
12073         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12074         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12075         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12076         * symtab.c (lookup_partial_symbol): Use
12077         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12078         unhelpful comment.
12079         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12080         SYMBOL_MATCHES_NAME.
12081         Fix for PR c++/33.
12082
12083 2003-03-03  David Carlton  <[email protected]>
12084
12085         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12086         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12087         by regexp matching against SYMBOL_NATURAL_NAME.
12088
12089 2003-03-03  David Carlton  <[email protected]>
12090
12091         * linespec.c (find_method): Extract code into collect_methods.
12092         (collect_methods): New.
12093
12094 2003-03-02  Mark Kettenis  <[email protected]>
12095
12096         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12097         get_frame_base.
12098
12099         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12100         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12101
12102 2003-03-02  Stephane Carrez  <[email protected]>
12103
12104         * arch-utils.c (generic_register_byte): Fix to use the loop index
12105         and not regnum when summing the size of all registers up to regnum.
12106
12107 2003-03-01  Andrew Cagney  <[email protected]>
12108
12109         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12110         FRAME_INIT_SAVED_REGS.
12111         * gdbarch.h, gdbarch.c: Regenerate.
12112         * stack.c (frame_info): Update.
12113         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12114         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12115         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12116         * ns32k-tdep.c (ns32k_pop_frame): Update.
12117         * mips-tdep.c (mips_pop_frame): Update.
12118         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12119         * ia64-tdep.c (ia64_frame_chain): Update.
12120         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12121         (ia64_frameless_function_invocation): Update.
12122         (ia64_init_extra_frame_info): Update.
12123         (ia64_pop_frame_regular): Update.
12124         * frame.h (struct frame_info): Update comment.
12125         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12126         * frame.c (frame_saved_regs_register_unwind): Update.
12127         (frame_saved_regs_register_unwind): Update.
12128         (deprecated_generic_get_saved_register): Update.
12129         * cris-tdep.c: Update comment.
12130         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12131         Rename macro.
12132         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12133         * x86-64-tdep.c (x86_64_init_abi): Update.
12134         * vax-tdep.c (vax_gdbarch_init): Update.
12135         * v850-tdep.c (v850_gdbarch_init): Update.
12136         * sparc-tdep.c (sparc_gdbarch_init): Update.
12137         * sh-tdep.c (sh_gdbarch_init): Update.
12138         * s390-tdep.c (s390_gdbarch_init): Update.
12139         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12140         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12141         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12142         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12143         * mips-tdep.c (mips_gdbarch_init): Update.
12144         * mcore-tdep.c (mcore_gdbarch_init): Update.
12145         * m68k-tdep.c (m68k_gdbarch_init): Update.
12146         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12147         * ia64-tdep.c (ia64_gdbarch_init): Update.
12148         * i386-tdep.c (i386_gdbarch_init): Update.
12149         * frv-tdep.c (frv_gdbarch_init): Update.
12150         * avr-tdep.c (avr_gdbarch_init): Update.
12151         * arm-tdep.c (arm_gdbarch_init): Update.
12152         * alpha-tdep.c (alpha_gdbarch_init): Update.
12153
12154 2003-03-01  Andrew Cagney  <[email protected]>
12155
12156         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12157         option enum and switch.  When no windows, set the interpreter to
12158         INTERP_CONSOLE.
12159
12160 2003-03-01  Andrew Cagney  <[email protected]>
12161
12162         * main.c (captured_main): Replace magic option characters with an
12163         enum.
12164
12165 2003-03-01  Andrew Cagney  <[email protected]>
12166
12167         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12168         INIT_EXTRA_FRAME_INFO.
12169         * gdbarch.h, gdbarch.c: Regenerate.
12170         * arm-tdep.c: Update comments.
12171         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12172         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12173         * frame.h, avr-tdep.c: Ditto.
12174         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12175         (create_new_frame, legacy_get_prev_frame): Ditto.
12176         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12177         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12178         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12179         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12180         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12181         * v850-tdep.c (v850_gdbarch_init): Ditto.
12182         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12183         * sh-tdep.c (sh_gdbarch_init): Ditto.
12184         * s390-tdep.c (s390_gdbarch_init): Ditto.
12185         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12186         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12187         * mips-tdep.c (mips_gdbarch_init): Ditto.
12188         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12189         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12190         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12191         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12192         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12193         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12194         * frv-tdep.c (frv_gdbarch_init): Ditto.
12195         * cris-tdep.c (cris_gdbarch_init): Ditto.
12196         * avr-tdep.c (avr_gdbarch_init): Ditto.
12197         * arm-tdep.c (arm_gdbarch_init): Ditto.
12198         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12199         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12200
12201 2003-03-01  Andrew Cagney  <[email protected]>
12202
12203         * gdbarch.sh (register_type): New function with predicate.
12204         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12205         * gdbarch.h, gdbarch.c: Re-generate.
12206         * arch-utils.c (generic_register_byte): Use generic_register_size.
12207         (generic_register_size): When available, use
12208         gdbarch_register_type.
12209         * regcache.c (init_regcache_descr): When available, initialize the
12210         register type array using gdbarch_register_type.  If the
12211         architecture supplies gdbarch_register_type, do not use the legacy
12212         regcache layout.
12213         * d10v-tdep.c (d10v_register_type): Replace
12214         d10v_register_virtual_type.
12215         (d10v_gdbarch_init): Set register_type instead of
12216         register_virtual_type.
12217
12218 2003-03-01  Andrew Cagney  <[email protected]>
12219
12220         * Makefile.in (ax-gdb.o): Update dependencies.
12221         * ax-gdb.c: Include "regcache.h".
12222         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12223         * findvar.c (value_of_register): Ditto.
12224         * infcmd.c (default_print_registers_info): Ditto.
12225
12226 2003-03-01  Mark Kettenis  <[email protected]>
12227
12228         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12229         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12230
12231 2003-03-01  Mark Kettenis  <[email protected]>
12232
12233         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12234         of STREQ.
12235
12236 2003-02-28  Daniel Jacobowitz  <[email protected]>
12237
12238         * Makefile.in (dwarf2loc.o): Update dependencies.
12239         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12240         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12241         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12242         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12243         (locexpr_tracepoint_var_ref): New function.
12244         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12245
12246 2003-02-28  Andrew Cagney  <[email protected]>
12247
12248         * regcache.c (register_size): New function.
12249         * regcache.h (register_size): Declare
12250         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12251         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12252
12253 2003-02-28  David Carlton  <[email protected]>
12254
12255         * linespec.c (decode_compound): Extract code into find_method.
12256         (find_method): New.
12257
12258 2003-02-28  J. Brobecker  <[email protected]>
12259
12260         * Makefile.in: Add rules to build and link in observer.o.
12261
12262 2003-02-27  J. Brobecker  <[email protected]>
12263
12264         * observer.c: Minor comments edits.
12265
12266 2003-02-27  J. Brobecker  <[email protected]>
12267
12268         * observer.h, observer.c: New file.
12269
12270 2003-02-27  Andrew Cagney  <[email protected]>
12271
12272         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12273
12274 2003-02-27  Stephane Carrez  <[email protected]>
12275
12276         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12277         (M6812_OP_STS_EXT): Likewise.
12278         (m6811_prologue): Use the above to recognize prologue.
12279         (m6812_prologue): Likewise.
12280
12281 2003-02-27  David Carlton  <[email protected]>
12282
12283         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12284         SYMBOL_PRINT_NAME.
12285         (compare_psymbols): Ditto.
12286         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12287
12288 2003-02-27  Michael Snyder  <[email protected]>
12289
12290         * f-lang.c (build_fortran_types): New function.
12291         (_initialize_f_language): Gdbarch-register built-in fortran types.
12292         * doublest.c (extract_floating): Fix warning text.
12293
12294 2003-02-27  Andrew Cagney  <[email protected]>
12295
12296         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12297         predicate.  Replaces PUSH_DUMMY_FRAME.
12298         * gdbarch.h, gdbarch.c: Regnerate.
12299         * valops.c (hand_function_call): Update.  Call
12300         generic_push_dummy_frame directly.
12301         * vax-tdep.c (vax_gdbarch_init): Update.
12302         * sparc-tdep.c (sparc_gdbarch_init): Update.
12303         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12304         * m68k-tdep.c (m68k_gdbarch_init): Update.
12305         * hppa-tdep.c (hppa_gdbarch_init): Update.
12306         * alpha-tdep.c (alpha_gdbarch_init): Update.
12307         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12308         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12309         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12310         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12311         push_dummy_frame to generic_push_dummy_frame.
12312         * v850-tdep.c (v850_gdbarch_init): Ditto.
12313         * sh-tdep.c (sh_gdbarch_init): Ditto.
12314         * s390-tdep.c (s390_gdbarch_init): Ditto.
12315         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12316         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12317         * mips-tdep.c (mips_gdbarch_init): Ditto.
12318         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12319         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12320         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12321         * i386-tdep.c (i386_gdbarch_init): Ditto.
12322         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12323         * frv-tdep.c (frv_gdbarch_init): Ditto.
12324         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12325         * cris-tdep.c (cris_gdbarch_init): Ditto.
12326         * avr-tdep.c (avr_gdbarch_init): Ditto.
12327         * arm-tdep.c (arm_gdbarch_init): Ditto.
12328
12329 2003-02-26  Kevin Buettner  <[email protected]>
12330
12331         * mips-tdep.c (show_mips_abi): New function.
12332         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12333         command ``show mips abi''.
12334
12335 2003-02-26  Jeff Johnston  <[email protected]>
12336
12337         From Elena Zannoni  <[email protected]>
12338         * dbxread.c (process_one_symbol): Only record line 0 if one or
12339         more sline entries have been seen for the function.
12340
12341 2003-02-26  Michael Chastain  <[email protected]>
12342
12343         * configure: Regenerate with autoconf 000227.
12344
12345 2003-02-26  Michael Chastain  <[email protected]>
12346
12347         Close PR build/660.
12348         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12349         for old libc5/glibc.
12350         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12351
12352 2003-02-26  Kris Warkentin  <[email protected]>
12353
12354         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12355         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12356
12357 2003-02-26  Michael Chastain  <[email protected]>
12358
12359         * configure.in: New variable HAVE_UINTPTR_T.
12360         * configure, config.in: Regenerated.
12361
12362 2003-02-26  Daniel Jacobowitz  <[email protected]>
12363
12364         Fix PR build/1097.
12365         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12366
12367 2003-02-25  Andrew Cagney  <[email protected]>
12368
12369         * frame.c (get_prev_frame): Add comment on check for
12370         inside_entry_func. Only check for inside_entry_file when not a
12371         dummy and not a sentinel.  Check that the new frame is not inner
12372         to the old frame.
12373
12374 2003-02-25  Andrew Cagney  <[email protected]>
12375
12376         * frame.c (frame_debug): New variable.
12377         (_initialize_frame): Add "set/show debug frame" command.
12378         (get_prev_frame): When frame_debug, print reason why unwind
12379         failed.
12380
12381 2003-02-25  Michael Chastain  <[email protected]>
12382
12383         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12384         to avoid uintptr_t definition problems.
12385
12386 2003-02-25  David Carlton  <[email protected]>
12387
12388         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12389         (SYMBOL_LINKAGE_NAME): Ditto.
12390         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12391         SYMBOL_LINKAGE_NAME.
12392         (struct general_symbol_info): Expand comment.
12393         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12394         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12395         (SYMBOL_MATCHES_REGEXP): Ditto.
12396         * symtab.c (symbol_natural_name): New function.
12397         * objfiles.h: Replace all uses of SYMBOL_NAME by
12398         DEPRECATED_SYMBOL_NAME.
12399         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12400         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12401         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12402         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12403         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12404         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12405         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12406         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12407         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12408         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12409         * ada-exp.y: Ditto.
12410         * ada-exp.y: Update copyright.
12411         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12412         * cp-valprint.c: Ditto.
12413
12414 2003-02-25  Jeff Johnston  <[email protected]>
12415
12416         * infptrace.c (detach): Do not flag error if ptrace detach fails
12417         and errno is set to ESRCH.
12418
12419 2003-02-24  Andrew Cagney  <[email protected]>
12420
12421         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12422         paddr when printing udot_off's value.
12423
12424 2003-02-24  David Carlton  <[email protected]>
12425
12426         * symtab.c (make_symbol_overload_list): Only read in partial
12427         symtabs containing a matching partial symbol.
12428
12429 2003-02-24  David Carlton  <[email protected]>
12430
12431         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12432         do the comparison, not strcmp.
12433         * symfile.c (compare_psymbols): Ditto.
12434         * defs.h: Declare strcmp_iw_ordered.
12435         * utils.c (strcmp_iw_ordered): New function.
12436
12437 2003-02-24  Jim Blandy  <[email protected]>
12438
12439         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12440         support, shared libs): Remove my name from here, to better reflect
12441         reality.
12442
12443 2003-02-24  Kris Warkentin  <[email protected]>
12444
12445         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12446         (target_ops): Add to_have_continuable_watchpoint.
12447         * target.c (update_current_target): Add INHERIT line for
12448         to_have_continuable_watchpoint.
12449         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12450         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12451         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12452         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12453
12454 2003-02-24  Elena Zannoni  <[email protected]>
12455
12456         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12457         maintainership.
12458
12459 2003-02-24  Kris Warkentin  <[email protected]>
12460
12461         * solib.c (solib_open): Call target defined search function after
12462         failing with solib-search-path.
12463         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12464         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12465
12466 2003-02-24  Kris Warkentin  <[email protected]>
12467
12468         * MAINTAINERS: Add myself to Write After section.
12469
12470 2003-02-23  Stephane Carrez  <[email protected]>
12471
12472         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12473
12474 2003-02-22  Stephane Carrez  <[email protected]>
12475
12476         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12477         (m68hc11_add_reggroups): New function.
12478         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12479         (m68hc11_gdbarch_init): Install the reggroups.
12480         (_initialize_m68hc11_tdep): Initialize them.
12481
12482 2003-02-21  James E Wilson  <[email protected]>
12483
12484         * MAINTAINERS: Update my email address.
12485
12486 2003-02-21  David Carlton  <[email protected]>
12487
12488         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12489
12490 2003-02-21  Daniel Jacobowitz  <[email protected]>
12491
12492         Based on a patch from Daniel Berlin ([email protected]).
12493         * symtab.h: Add opaque declarations of struct axs_value and
12494         struct agent_expr.
12495         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12496         (struct location_funcs): New type.
12497         (struct symbol): Add "loc" to aux_value.
12498         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12499         * dwarf2read.c: Include "dwarf2expr.h".
12500         (dwarf2_symbol_mark_computed): New function.
12501         (read_func_scope): Use it.
12502         (var_decode_location): New function.
12503         (new_symbol): Use it.
12504         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12505
12506         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12507         (dwarf2expr_h, dwarf2loc_h): New variables.
12508         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12509         (dwarf2expr.o, dwarf2loc.o): New rules.
12510         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12511         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12512         LOC_COMPUTED_ARG.
12513         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12514         * m2-exp.y (yylex): Likewise.
12515         * printcmd.c (address_info, print_frame_args): Likewise.
12516         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12517         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12518         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12519         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12520         * symtab.c (lookup_block_symbol): Likewise.
12521
12522 2003-02-20  Adam Fedor  <[email protected]>
12523
12524         * symtab.h: Remove objc_specific struct
12525         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12526         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12527         Have language_objc use cplus_specific struct.
12528
12529 2003-02-20  Tom Tromey  <[email protected]>
12530
12531         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12532         TYPE_NAME, when printing a String value.  PR java/1075.
12533
12534 2003-02-20  Adam Fedor  <[email protected]>
12535
12536         * objc-lang.h (find_methods): Remove declaration.
12537         * objc-lang.c (find_methods): Make static.
12538
12539 2003-02-20  Christopher Faylor  <[email protected]>
12540
12541         * win32-nat.c (get_image_name): Check return value from
12542         ReadProcessMemory.
12543         (child_xfer_memory): Ditto.
12544
12545 2003-02-20  Alexandre Oliva  <[email protected]>
12546
12547         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12548         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12549         '${exec_prefix}' (in addition to the expansion thereof) as
12550         relocatable.
12551         * configure: Rebuilt.
12552
12553 2003-02-20  David Carlton  <[email protected]>
12554
12555         * symtab.c (search_symbols): Revert the search_symbols part of my
12556         2002-12-23 patch.  Add comment.
12557
12558 2002-02-20  Daniel Jacobowitz  <[email protected]>
12559
12560         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12561         * dbxread.c (elfstab_build_psymtabs): Don't call
12562         install_minimal_symbols.
12563         (stabsect_build_psymtabs): Likewise.
12564         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12565         earlier.
12566         * somread.c (som_symfile_read): Call install_minimal_symbols
12567         and do_cleanups earlier.
12568         * nlmread.c (nlm_symfile_read): Likewise.
12569         * mdebugread.c (elfmdebug_build_psymtabs): Call
12570         install_minimal_symbols and make appropriate cleanups.
12571
12572 2003-02-20  Kevin Buettner  <[email protected]>
12573
12574         * solib.c (reload_shared_libraries): New function.
12575         (_initialize_solib): Add callbacks for ``set solib-search-path''
12576         and ``set solib-absolute-prefix''.
12577
12578 2003-02-20  David Carlton  <[email protected]>
12579
12580         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12581         expand comment.
12582         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12583         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12584         * ada-typeprint.c (ada_typedef_print): Ditto.
12585         * ax-gdb.c (gen_var_ref): Ditto.
12586         * breakpoint.c (print_one_breakpoint): Ditto.
12587         * buildsym.c (finish_block): Ditto.
12588         * c-valprint.c (c_val_print): Ditto.
12589         * expprint.c (print_subexp): Ditto.
12590         * findvar.c (locate_var_value): Ditto.
12591         * infcmd.c (jump_command): Ditto.
12592         * linespec.c (decode_line_2, decode_compound): Ditto.
12593         * maint.c (maintenance_translate_address): Ditto.
12594         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12595         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12596         Ditto.
12597         * p-valprint.c (pascal_val_print): Ditto.
12598         * stabsread.c (define_symbol): Ditto.
12599         * stack.c (print_frame, frame_info, print_block_frame_locals)
12600         (print_frame_arg_vars, return_command): Ditto.
12601         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12602         * symmisc.c (print_symbol): Ditto.
12603         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12604         (compare_search_syms, print_symbol_info, print_msymbol_info)
12605         (rbreak_command): Ditto.
12606         * tracepoint.c (tracepoints_info): Ditto.
12607         * typeprint.c (typedef_print): Ditto.
12608         * valops.c (value_of_variable, hand_function_call): Ditto.
12609         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12610         * ada-typeprint.c: Update Copyright.
12611         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12612         * tracepoint.c, cli/cli-cmds.c: Ditto.
12613
12614 2003-02-20  Kevin Buettner  <[email protected]>
12615
12616         * frame.c (generic_unwind_get_saved_register): Make non-static.
12617         * frame.h (generic_unwind_get_saved_register): Declare.
12618         * mips-tdep.c (read_next_frame_reg): Fetch register from
12619         current regcache when frame is NULL.
12620         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12621         that must be NULL.
12622         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12623         instead of frame_register_unwind().
12624
12625 2003-02-20  Andrew Cagney  <[email protected]>
12626
12627         * remote-sim.c (gdbsim_insert_breakpoint)
12628         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12629         code.
12630
12631 2003-02-20  Andrew Cagney  <[email protected]>
12632
12633         * remote.c (_initialize_remote): Add commands "set/show remote
12634         hardware-watchpoint-limit" and "set/show remote
12635         hardware-breakpoint-limit".
12636         (remote_hw_watchpoint_limit): Initialize to -1.
12637         (remote_hw_breakpoint_limit): Ditto.
12638         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12639
12640 2003-02-19  Raoul Gough  <[email protected]>
12641
12642         * coff-pe-read.c: New file - support reading of minimal symbols from a
12643         portable executable using the export table.
12644         * coff-pe-read.h: New file.
12645         * coffread.c: Include coff-pe-read.h.
12646         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12647         debugging symbols found.
12648         * Makefile.in (SFILES): Add coff-pe-read.o.
12649         (coff_pe_read_h): Define.
12650         (COMMON_OBS): Add coff-pe-read.o.
12651         (coffread.o): Add coff_pe_read_h dependency.
12652         (coff-pe-read.o): New target.
12653
12654 2003-02-19  David Carlton  <[email protected]>
12655
12656         * Makefile.in (SFILES): Add block.c.
12657         (block_h): New.
12658         (COMMON_OBS): Add block.o.
12659         (block.o): New.
12660         (x86-64-tdep.o): Add $(block_h).
12661         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12662         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12663         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12664         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12665         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12666         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12667         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12668         * value.h: Add opaque declaration for struct block.
12669         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12670         * ada-lang.h: Ditto.
12671         * x86-64-tdep.c: #include "block.h"
12672         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12673         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12674         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12675         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12676         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12677         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12678         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12679         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12680         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12681         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12682         * symtab.c (block_function): Ditto.
12683         (contained_in): Ditto.
12684         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12685         block.h.  Add opaque declaration for struct block.
12686         * symtab.h: Move block_function and contained_in declarations to
12687         block.h.  Add opaque declarations for struct block, struct
12688         blockvector.
12689         (struct block): Move to block.h.
12690         (struct blockvector): Ditto.
12691         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12692         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12693         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12694         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12695         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12696         Ditto.
12697         * block.c: New file.
12698         * block.h: New file.
12699
12700 2003-02-19  Theodore A. Roth  <[email protected]>
12701
12702         * avr-tdep.c (avr_extract_return_value): Remove function.
12703         (avr_store_return_value): Remove function.
12704         (avr_extract_struct_value_address): Remove function.
12705         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12706
12707 2003-02-19  Andrew Cagney  <[email protected]>
12708
12709         * rs6000-tdep.c: Include "gdb_assert.h".
12710         (registers_e500): Add "acc" and "spefscr".
12711         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12712         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12713         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12714         really is "r0".
12715         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12716
12717 2003-02-18  Keith Seitz  <[email protected]>
12718
12719         * Makefile.in: Add gdbtk-interps.c.
12720
12721 2003-02-18  Kevin Buettner  <[email protected]>
12722
12723         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12724         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12725
12726 2003-02-18  Andrew Cagney  <[email protected]>
12727
12728         * symtab.h (struct objfile): Add opaque declaration.
12729
12730 2003-02-18  Elena Zannoni  <[email protected]>
12731
12732         From Jim Ingham   <[email protected]>:
12733         * dbxread.c (process_one_symbol): Use last_function_start rather
12734         than function_start_offset to find the real beginning of the
12735         current function.  The latter is just the text section offset on
12736         some systems, the former is always the real function start.
12737
12738 2003-02-17  Andrew Cagney  <[email protected]>
12739
12740         * configure.in: Revert ${target} != ${host}.
12741
12742 2003-02-17  Andrew Cagney  <[email protected]>
12743
12744         * configure.in (Makefile): Use the test ${target} != ${host},
12745         instead of the absence of the "nm.h" file, to determine of the
12746         configuration non-native.
12747         * configure: Regenerate.
12748
12749 2003-02-14  Elena Zannoni  <[email protected]>
12750
12751         From Brian Ford  <[email protected]>
12752
12753         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12754         conditionalize tui_active test.
12755         (lookup_cmd_1): Ditto.
12756
12757 2003-02-14  Mark Kettenis  <[email protected]>
12758
12759         * configure.in: Add check for _etext.
12760         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12761         available.
12762         * config.in, configure: regenerated.
12763
12764 2003-02-14  Daniel Jacobowitz  <[email protected]>
12765
12766         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12767
12768 2003-02-14  Andrew Cagney  <[email protected]>
12769
12770         * main.c (tui_version): Delete variable.
12771         (captured_main): When --tui, set interpreter_p to "tui" instead of
12772         enabling tui_version.
12773         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12774         tui_version.
12775         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12776         * cli/cli-cmds.c (disassemble_command): Ditto.
12777         * defs.h (tui_version): Delete declaration.
12778         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12779         (tui-interp.o): Add rules.
12780         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12781
12782 2003-02-14  Christopher Faylor  <[email protected]>
12783
12784         * win32-nat.c (register_loaded_dll): Correctly set address range for
12785         just-loaded dll.
12786
12787 2003-02-12  Jason Molenda  ([email protected])
12788
12789         * symmisc.c (print_objfile_statistics): Include information about
12790         the number of psymtabs and symtabs in each object file.
12791
12792 2003-02-13  Keith R Seitz  <[email protected]>
12793
12794         * main.h (struct captured_main_args): Add interpreter_p.
12795         * main.c (captured_main): Initialize interpreter_p from context.
12796         * gdb.c (main): Set interpreter_p argument.
12797         * Makefile.in (gdb.o): Add dependency for interps.h.
12798
12799 2003-02-12  Andrew Cagney  <[email protected]>
12800
12801         * event-top.c (cli_command_loop): Delete declaration.
12802         (_initialize_event_loop): Delete function setting event_loop_hook.
12803         * event-top.h (cli_command_loop): Declare.  Update copyright.
12804         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12805         * interps.c (current_interp_command_loop): When event_loop_p, call
12806         cli_command_loop.
12807
12808 2003-02-12  Andrew Cagney  <[email protected]>
12809
12810         * interps.h (interp_command_loop_ftype): Change return type to
12811         void.
12812
12813 2003-02-12  Michal Ludvig  <[email protected]>
12814
12815         * x86-64-tdep.c (x86_64_extract_return_value)
12816         (x86_64_store_return_value): Use regcache instead of regbuf.
12817         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12818         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12819
12820 2003-02-11  Andrew Cagney  <[email protected]>
12821
12822         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12823         * aclocal.m4: Regenerate.
12824         * configure: Regenerate.
12825
12826         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12827         TCL_LD_SEARCH_FLAGS.
12828
12829 2003-02-10  Michal Ludvig  <[email protected]>
12830
12831         * dwarf2cfi.c: Reindented.
12832
12833 2003-02-09  Andrew Cagney  <[email protected]>
12834
12835         * interps.c (clear_interpreter_hooks): Convert function definition
12836         to ISO C.
12837
12838 2003-02-07  David Carlton  <[email protected]>
12839
12840         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12841
12842 2003-02-07  Kevin Buettner  <[email protected]>
12843
12844         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12845         (struct type): ...to here.
12846         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12847         field.
12848         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12849         (replace_type): Set length on all type variants for a given type.
12850
12851 2003-02-07  Andrew Cagney  <[email protected]>
12852
12853         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12854         <sys/stat.h>.
12855         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12856
12857 2003-02-06  Andrew Cagney  <[email protected]>
12858
12859         * Makefile.in (symm-nat.o): Update dependencies.
12860         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12861         (lynx-nat.o, ia64-linux-nat.): Ditto.
12862         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12863         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12864         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12865
12866         * Makefile.in (inflow_h): Define.
12867         (procfs.o, inflow.o, procfs.o): Update dependencies.
12868         * inftarg.c (child_stop): Delete extern declaration of
12869         inferior_process_group.  Include "inflow.h".
12870         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12871         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12872         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12873         (our_process_group, inferior_process_group): Extern declarations.
12874
12875         * procfs.c: Include "gdb_assert.h".
12876
12877         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12878         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12879         * jv-typeprint.c (java_type_print_base): Ditto.
12880         * typeprint.c (typedef_print): Eliminate STREQ.
12881         * cli/cli-script.c (define_command, define_command): Ditto.
12882         * main.c (captured_main): Ditto.
12883         * values.c (lookup_internalvar): Ditto.
12884         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12885         within `if' conditional.
12886         * linespec.c (decode_line_2): Ditto.
12887         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12888         (bfd_openw_with_cleanup): Ditto.
12889
12890 2003-02-07  Mark Kettenis  <[email protected]>
12891
12892         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12893         legacy_extract_return_value and store_return_value to
12894         legacy_return_value.
12895
12896 2003-02-06  Raoul Gough  <[email protected]>
12897
12898         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12899         section load addresses for symbol handling in relocated DLLs.
12900         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12901
12902 2003-02-05  Fred Fish  <[email protected]>
12903
12904         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12905         '=' and '!='.
12906         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12907         with '&' and '=='.
12908         (angel_RDI_info): Ditto.
12909         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
12910         with '&' and '!='.
12911         (threads_continue_all_with_signals): Ditto.
12912
12913 2003-02-05  Jim Ingham <[email protected]>
12914             Keith Seitz  <[email protected]>
12915             Elena Zannoni  <[email protected]>
12916             Andrew Cagney  <[email protected]>
12917
12918         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
12919         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
12920         (SUBDIR_MI_OBS): Add "mi-interp.o".
12921         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
12922         (SFILES): Add "interps.c".
12923         (COMMON_OBS): Add "interps.o".
12924         (interps_h, mi_main_h): Define.
12925         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
12926         (mi-main.o, main.o, event-top.o): Update dependencies.
12927         * cli/cli-interp.c: New file.
12928         * interps.h, interps.c: New files.
12929         * top.c: (gdb_init): Don't install the default interpreter, handed
12930         by captured_main.
12931         * main.c: Include "interps.h".
12932         (interpreter_p): Note that it should malloc'ed.
12933         (captured_command_loop): Call current_interp_command_loop.
12934         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
12935         xfree and xstrdup when updating interpreter_p.  Install the
12936         default interpreter.  Add hack to stop mi1's copyright notice
12937         being encoded.
12938         * event-top.h (gdb_setup_readline): Declare.
12939         (gdb_disable_readline): Declare.
12940         * event-top.c: Include "interps.h".
12941         (display_gdb_prompt): Call current_interp_display_prompt_p.
12942         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
12943         gdb_stdlog, and gdb_stdtarg.
12944         (_initialize_event_loop): Don't call gdb_setup_readline.
12945         * cli-out.c (cli_out_set_stream): New function.
12946         * cli-out.h (cli_out_set_stream): Declare.
12947
12948 2003-02-06  Mark Kettenis  <[email protected]>
12949
12950         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
12951         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
12952         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
12953         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
12954         config/i386/i386v42mp.mt: Removed.
12955
12956 2003-02-05  Mark Kettenis  <[email protected]>
12957
12958         * configure.tgt (*-*-solaris*): Set gdb_osabi to
12959         GDB_OSABI_SOLARIS.
12960
12961 2003-02-05  Michael Chastain  <[email protected]>
12962
12963         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
12964         2.12.1 and earlier versions.
12965
12966 2003-02-05  Andrew Cagney  <[email protected]>
12967
12968         Remove orphaned hosts, targets and files.
12969         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
12970         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
12971         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
12972         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
12973         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
12974         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
12975         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
12976         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
12977         * config/sparc/tm-sp64sim.h: Delete.
12978         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
12979         hosts.
12980         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
12981         mips*-dec-mach3* targets.
12982
12983 2003-02-04  Michael Chastain  <[email protected]>
12984
12985         * NEWS: Fix typo: sepcifying -> specifying.
12986
12987 2003-02-04  Michael Chastain  <[email protected]>
12988
12989         * dwarfread.c: Add documentation on the state of dwarf-1,
12990         looking towards obsoletion.
12991
12992 2003-02-03  Michael Chastain  <[email protected]>
12993
12994         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
12995         gdb/testsuite/gdb.c++/pr-1023.exp.
12996
12997 2003-02-04  Andrew Cagney  <[email protected]>
12998
12999         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13000         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13001
13002         * utils.c (init_page_info): Delete reference to MPW in comments.
13003         * main.c (captured_main): Delete #ifdef MPW.
13004
13005 2003-02-04  Andrew Cagney  <[email protected]>
13006
13007         * NEWS: Note that the m32r-*-elf* is obsolete.
13008         * monitor.c (monitor_expect): Obsolete reference to m32r.
13009         * configure.tgt: Mark m32r-*-elf* as obsolete.
13010         * MAINTAINERS: Mark m32k as obsolete.
13011         * m32r-rom.c: Obsolete file.
13012         * config/m32r/m32r.mt: Obsolete file.
13013         * config/m32r/tm-m32r.h: Obsolete file.
13014         * m32r-stub.c: Obsolete file.
13015         * m32r-tdep.c: Obsolete file.
13016
13017 2003-02-04  Andrew Cagney  <[email protected]>
13018
13019         * NEWS: Mention that the z8k-zilog-none is obsolete.
13020         * MAINTAINERS: Mark z8k as obsolete.
13021         * configure.tgt: Obsolete the z8k-*-coff* target.
13022         * config/z8k/z8k.mt: Obsolete file.
13023         * config/z8k/tm-z8k.h: Obsolete file.
13024         * z8k-tdep.c: Obsolete file.
13025
13026 2003-02-04  Andrew Cagney  <[email protected]>
13027
13028         * NEWS: Mention that the mn10200-elf is obsolete.
13029         * configure.tgt: Obsolete mn10200-*-* target.
13030         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13031         mention that the mn10200 is obsolete.
13032         * breakpoint.h: Ditto.
13033         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13034         * config/mn10200/mn10200.mt: Obsolete file.
13035         * config/mn10200/tm-mn10200.h: Obsolete file.
13036         * mn10200-tdep.c: Obsolete file.
13037
13038 2003-02-04  Andrew Cagney  <[email protected]>
13039
13040         * MAINTAINERS: Mark h8500 as obsolete.
13041         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13042         * findvar.c (value_from_register): Ditto.
13043         * h8500-tdep.c: Mark file as obsolete.
13044         * config/h8500/h8500.mt: Ditto.
13045         * config/h8500/tm-h8500.h: Ditto.
13046         * NEWS: Mention that h8500 is obsolete.
13047
13048 2003-02-04  David Carlton  <[email protected]>
13049
13050         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13051         start of function.
13052         * jv-lang.c (get_dynamics_objfile): Add comment.
13053
13054 2003-02-04  David Carlton  <[email protected]>
13055
13056         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13057         * printcmd.c (build_address_symbolic): Replace uses of
13058         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13059         SYMBOL_NAME, and asm_demangle.
13060         Update copyright.
13061
13062 2003-02-04  David Carlton  <[email protected]>
13063
13064         * linespec.c (decode_compound): Extract code into
13065         lookup_prefix_sym.
13066         (lookup_prefix_sym): New function.
13067
13068 2003-02-04  David Carlton  <[email protected]>
13069
13070         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13071         FLOAT_COERCION_BADNESS.
13072         * gdbtypes.c (rank_one_type): Replace all uses of
13073         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13074
13075 2003-02-04  Jim Blandy  <[email protected]>
13076
13077         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13078         section, let dwarf_macinfo_section point to it, not
13079         dwarf_loc_section.
13080
13081 2003-02-04  Daniel Jacobowitz  <[email protected]>
13082
13083         Pointed out by Anton Blanchard <[email protected]>.
13084         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13085         (ppc_linux_at_sigtramp_return_path): Use it.
13086
13087 2003-02-04  Daniel Jacobowitz  <[email protected]>
13088
13089         * defs.h (streq): Add prototype.
13090         * utils.c (streq): New function.
13091
13092         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13093         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13094         * mdebugread.c (new_symbol): Likewise.
13095         * stabsread.c (define_symbol): Likewise.
13096         * coffread.c (process_coff_symbol): Likewise.
13097         * dwarfread.c (new_symbol): Likewise.
13098
13099         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13100         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13101         here.
13102         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13103         SYMBOL_INIT_DEMANGLED_NAME.
13104         * objfiles.c: Include "hashtab.h".
13105         (allocate_objfile): Call htab_set_functions_ex for the
13106         demangled_names_hash.
13107         (free_objfile): Call htab_delete for the demangled_names_hash.
13108         * objfiles.h (struct htab): Add declaration.
13109         (struct objfile): Add demangled_names_hash.
13110         * symfile.c: Include "hashtab.h".
13111         (reread_symbols): Call htab_delete for the demangled_names_hash.
13112         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13113         SYMBOL_NAME in the bcache.
13114         * symtab.c: Include "hashtab.h".  Update comments.
13115         (create_demangled_names_hash, symbol_set_names): New functions.
13116         (symbol_find_demangled_name): New function, broken out from
13117         symbol_init_demangled_names.
13118         (symbol_init_demangled_names): Use it.
13119         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13120         (SYMBOL_SET_NAMES): New macro.
13121         (symbol_set_names): Add prototype.
13122
13123 2003-02-03  Jim Blandy  <[email protected]>
13124
13125         Use a single, consistent representation for an empty minimal
13126         symbol table in an objfile.
13127         * objfiles.c (terminate_minimal_symbol_table): New function.
13128         (allocate_objfile): Call it.
13129         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13130         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13131         non-NULL.
13132         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13133         objfile has minimal symbols, compare minimal_symbol_count to zero,
13134         instead of comparing msymbols with NULL.
13135         * objfiles.c (have_minimal_symbols): Same.
13136         * solib-sunos.c (solib_add_common_symbols): Call
13137         terminate_minimal_symbol_table.
13138         * symfile.c (reread_symbols): Same.
13139
13140 2003-02-03  Kevin Buettner  <[email protected]>
13141
13142         * s390-tdep.c (s390_address_class_type_flags)
13143         (s390_address_class_type_flags_to_name)
13144         (s390_address_class_name_to_type_flags): New functions.
13145         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13146         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13147
13148 2003-02-03  Michael Snyder  <[email protected]>
13149
13150         * arm-tdep.c: Fix spell-o in comment.
13151
13152 2003-02-03  Michal Ludvig  <[email protected]>
13153
13154         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13155         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13156         error messages to contain BFD filename.
13157
13158 2003-02-02  Elena Zannoni  <[email protected]>
13159
13160         Fix PR gdb/742 gdb/743 gdb/877
13161         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13162         (do_mixed_source_and_assembly): Use
13163         make_cleanup_ui_out_tuple_begin_end and
13164         make_cleanup_ui_out_tuple_begin_end.
13165         (do_mixed_source_and_assembly): Ditto.
13166         * thread.c (do_captured_list_thread_ids): Ditto.
13167         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13168         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13169         ui_out_tuple_end): Delete prototypes.
13170         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13171         ui_out_list_end, ui_out_tuple_end): Delete.
13172
13173         From Kevin Buettner  <[email protected]>:
13174         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13175         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13176         (do_cleanup_table_end):  New functions.
13177         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13178         Use cleanups to invoke_ui_out_tuple_end().
13179         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13180         * cli/cli-setshow.c (cmd_show_list): Use
13181         make_cleanup_ui_out_tuple_begin_end.
13182
13183 2003-02-02  Andrew Cagney  <[email protected]>
13184
13185         * frame.c (frame_unwind_register): New function.
13186         (frame_unwind_unsigned_register): Use.
13187         (frame_unwind_signed_register): Use.
13188         (frame_read_register): New function.
13189         * frame.h (frame_unwind_register): Declare.
13190         (frame_read_register): Declare.
13191
13192         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13193         and frame_unwind_register instead of read_memory, write_register
13194         and deprecated_write_register_bytes.
13195
13196 2003-02-02  Andrew Cagney  <[email protected]>
13197
13198         * frame.h: Note that namelen can be negative.
13199         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13200         NAME's length.
13201
13202         * NEWS: Mention that the d10v's `regs' command is deprecated.
13203         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13204         (d10v_print_registers_info): New function.
13205         (show_regs): Call d10v_print_registers_info.
13206         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13207
13208 2003-02-02  Mark Kettenis  <[email protected]>
13209
13210         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13211         lost in the previous patch.
13212
13213 2003-02-01  Andrew Cagney  <[email protected]>
13214
13215         From 2002-11-09 Jason Molenda ([email protected])
13216         * stack.c (print_frame_info_base): Output complete FRAME tuple
13217         for synthesized frames.
13218
13219 2003-02-02  Andrew Cagney  <[email protected]>
13220
13221         * mips-nat.c (zerobuf): Delete.
13222         (fetch_inferior_registers): Alloc local zerobuf.
13223         (fetch_core_registers): Alloc local zerobuf.
13224         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13225         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13226         * thread-db.c (thread_db_store_registers): Ditto.
13227         * sh-tdep.c (sh_do_register): Ditto.
13228         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13229         * remote-sim.c (gdbsim_store_register): Ditto.
13230         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13231         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13232         * monitor.c (monitor_supply_register): Ditto.
13233         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13234         * mips-nat.c (fetch_inferior_registers): Ditto.
13235         * m68klinux-nat.c (fetch_register): Ditto.
13236         * lynx-nat.c (fetch_inferior_registers): Ditto.
13237         (fetch_inferior_registers): Ditto.
13238         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13239         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13240         (hpux_thread_store_registers): Ditto.
13241         * hppah-nat.c (fetch_register): Ditto.
13242         * hppab-nat.c (fetch_register): Ditto.
13243         * hppa-tdep.c (pa_register_look_aside): Ditto.
13244         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13245         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13246
13247 2003-02-01  Andrew Cagney  <[email protected]>
13248
13249         * gdbarch.sh: Explictly specify all method levels.  When a
13250         variable with an empty level, provide a non-multi-arch default.
13251         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13252         * gdbarch.h: Re-generate.
13253         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13254         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13255
13256 2003-02-01  Andrew Cagney  <[email protected]>
13257
13258         * defs.h (host_pointer_to_address): Delete declaration.
13259         (address_to_host_pointer): Delete declaration.
13260         * utils.c (host_pointer_to_address): Delete function.
13261         (address_to_host_pointer): Delete function.
13262         * procfs.c (procfs_address_to_host_pointer): New function.
13263         * procfs.c (proc_set_watchpoint): Use.
13264         (procfs_can_use_hw_breakpoint): Update comments.
13265         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13266         (som_solib_add): Use.
13267         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13268         * hppa-tdep.c (unwind_command): Use.
13269
13270 2003-02-01  Andrew Cagney  <[email protected]>
13271
13272         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13273         strlen d_name.
13274
13275         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13276         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13277         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13278         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13279         (define_symbol): Update.
13280         * symfile.c (generic_load): Remove references to nindy.
13281         * symtab.c: Remove references to nindy.
13282
13283 2003-02-01  Andrew Cagney  <[email protected]>
13284
13285         * infcmd.c (print_float_info): Delete code conditional on
13286         FLOAT_INFO.
13287         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13288         * config/m68k/nm-apollo68b.h: Ditto.
13289         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13290         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13291         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13292
13293 2003-02-01  Mark Kettenis  <[email protected]>
13294
13295         * config/i386/tm-i386os9k.h: Removed.
13296
13297         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13298         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13299         they're identical to i[3456]86-*-sysv* now.
13300         * config/i386/i386v32.mh: Removed.
13301         * config/i386/xm-i386v32.h: Removed.
13302         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13303
13304         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13305
13306         * config/i386/i386dgux.mh: Removed.
13307         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13308
13309         * configure.in: Fix typo.
13310         * configure: Regenerated.
13311
13312 2003-01-31  David Carlton  <[email protected]>
13313
13314         * dwarf2read.c (dwarf2_locate_sections): Set
13315         dwarf_ranges_section.
13316
13317 2003-01-31  Andrew Cagney  <[email protected]>
13318
13319         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13320         * utils.c: Update comments documenting legitimate uses of PTR.
13321
13322         * utils.c: Re-indent.
13323
13324         * config/djgpp/fnchange.lst: Delete nindy files.
13325         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13326         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13327         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13328         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13329         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13330         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13331         * Makefile.in (init.c): Remove nindy references.
13332         (saber_gdb): Delete rule.
13333         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13334         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13335         and a68v-nat.c.
13336         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13337         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13338         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13339         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13340         nindy-share/stop.h.
13341         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13342         * saber.suppress: Delete file.
13343
13344 2003-01-31  Daniel Jacobowitz  <[email protected]>
13345
13346         * dbxread.c (stabs_data): New static variable.
13347         (fill_symbuf): Support an in-memory buffer for stabs data.
13348         (stabs_seek): New function.
13349         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13350         (read_ofile_symtab): Use stabs_seek.
13351         (elfstab_build_psymtabs): Take an asection* instead of
13352         an offset and size.  Relocate the stabs data if necessary.
13353         Save the section* for dbx_psymtab_to_symtab.
13354         * dwarf2read.c: Add section variables for each debug section.
13355         (dwarf2_locate_sections): Fill them in.
13356         (dwarf2_read_section): Take an asection* argument.
13357         Relocate the section contents if necessary.
13358         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13359         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13360         it to dwarf2_read_section.
13361         (dwarf2_build_frame_info): Update callers.
13362         * elfread.c (elf_symfile_read): Update call to
13363         elfstab_build_psymtabs.
13364         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13365         (DBX_STAB_SECTION): New macro.
13366         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13367         * symfile.c (symfile_dummy_outputs): New function.
13368         (symfile_relocate_debug_section): New function.
13369         * symfile.h (symfile_relocate_debug_section): Add prototype.
13370
13371 2003-01-31  Richard Henderson  <[email protected]>
13372
13373         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13374         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13375         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13376         * alpha-tdep.c (alpha_register_name): Add "unique".
13377         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13378         (ALPHA_UNIQUE_REGNUM): New.
13379         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13380
13381 2003-01-31  Andrew Cagney  <[email protected]>
13382
13383         * README: Remove reference to Ericsson 1800 monitor.
13384         * Makefile.in (remote-es.o): Delete rule.
13385         (ALLDEPFILES): Delete remote-es.c.
13386         * remote-es.c: Delete file.
13387         * config/m68k/es1800.mt: Delete file.
13388         * config/djgpp/fnchange.lst: Update.
13389         * configure.tgt: Delete m68*-ericsson-* target.
13390
13391 2003-01-31  Adam Fedor  <[email protected]>
13392
13393         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13394         Remove duplicate/shadowing variable of same name.
13395
13396 2003-01-30  Jim Blandy  <[email protected]>
13397
13398         * symfile.c (find_separate_debug_file): Assert that the objfile's
13399         directory name we compute ends with a slash, and then assume that
13400         that's so everywhere we use it.
13401
13402 2003-01-30  Daniel Jacobowitz  <[email protected]>
13403
13404         * valops.c (value_assign): Flush frame cache after stores to memory
13405         also.
13406
13407 2003-01-30  Andrew Cagney  <[email protected]>
13408
13409         * Makefile.in (mon960-rom.o): Delete rule.
13410         * mon960-rom.c: Delete file.
13411
13412 2003-01-30  Andrew Cagney  <[email protected]>
13413
13414         * d10v-tdep.c: Include "frame-unwind.h".
13415         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13416         list.
13417         (next_addr, uses_frame): Delete.
13418         (struct d10v_unwind_cache): Define.
13419         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13420         Use info instead of next_addr and uses_frame globals.
13421         (d10v_frame_init_saved_regs): Delete function.
13422         (d10v_init_extra_frame_info): Delete function.
13423         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13424         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13425         init_frame_pc or frame_saved_pc.
13426         (d10v_pop_frame): Delete function.
13427         (do_d10v_pop_frame): Delete function.
13428         (d10v_frame_chain): Delete function.
13429         (d10v_frame_chain_valid): Delete function.
13430         (d10v_frame_pc_unwind): New function.
13431         (d10v_frame_id_unwind): New function.
13432         (saved_regs_unwinder): New function.
13433         (d10v_frame_register_unwind): New function.
13434         (d10v_frame_pop): New function.
13435         (d10v_frame_unwind): New variable.
13436         (d10v_frame_p): New function.
13437         (d10v_frame_saved_pc): Delete function.
13438         * Makefile.in (d10v-tdep.o): Update dependencies.
13439
13440 2003-01-30  J. Brobecker  <[email protected]>
13441
13442         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13443         causing some regressions due to a change in the default value
13444         for this macro.
13445
13446 2003-01-29  Richard Henderson  <[email protected]>
13447             Elena Zannoni  <[email protected]>
13448             Daniel Jacobowitz  <[email protected]>
13449
13450         Fix PR gdb/961.
13451         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13452         variables.
13453         (RANGES_SECTION): New.
13454         (dwarf_ranges_buffer): New variable.
13455         (struct comp_unit_head): Add member "die".
13456         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13457         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13458         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13459         (dwarf2_locate_sections): Likewise.
13460         (dwarf2_build_psymtabs): Read .debug_ranges.
13461         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13462         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13463         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13464         Look for DW_AT_ranges and return the bounding box.
13465
13466 2003-01-29  Brian Ford <[email protected]>
13467
13468         * win32-nat.c (cygwin_pid): Removed as unused.
13469         (child_attach): Try fall back to Cygwin pid.
13470
13471 2003-01-29  Jim Blandy  <[email protected]>
13472
13473         * objfiles.h (struct objfile): Doc fix.
13474
13475 2003-01-29  Andrew Cagney  <[email protected]>
13476
13477         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13478         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13479         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13480         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13481         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13482         (FRAME_SAVED_PC): Change to a function with predicate.
13483         * gdbarch.h, gdbarch.c: Re-generate.
13484
13485 2003-01-28  Andrew Cagney  <[email protected]>
13486
13487         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13488
13489         * complaints.c (complain): Delete function.
13490         * complaints.h (struct deprecated_complaint): Delete definition.
13491         (complain): Delete declaration.
13492
13493 2003-01-28  Kevin Buettner  <[email protected]>
13494
13495         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13496         dummy frames.
13497
13498 2003-01-27  Andrew Cagney  <[email protected]>
13499
13500         * sentinel-frame.h, sentinel-frame.c: New files.
13501         * Makefile.in (frame.o): Update dependencies.
13502         (SFILES): Add sentinel-frame.c.
13503         (sentinel_frame_h): Define.
13504         (COMMON_OBS): Add sentinel-frame.o.
13505         (sentinel-frame.o): Specify dependencies.
13506         * frame.c: Include "sentinel-frame.h".
13507         (frame_register_unwind): Rewrite assuming that there is always a a
13508         ->next frame.
13509         (frame_register, generic_unwind_get_saved_register): Ditto.
13510         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13511         (create_sentinel_frame, unwind_to_current_frame): New functions.
13512         (get_current_frame): Rewrite using create_sentinel_frame and
13513         unwind_to_current_frame.  When possible, always create a frame.
13514         (create_new_frame): Set next to the sentinel frame.
13515         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13516         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13517         ID cache when necessary.
13518         (frame_saved_regs_id_unwind): Use frame_relative_level.
13519         (deprecated_generic_get_saved_register): Use frame_relative_level,
13520         get_frame_saved_regs, get_frame_pc, get_frame_base and
13521         get_next_frame.
13522         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13523         frame_register.
13524
13525 2003-01-27  Daniel Jacobowitz  <[email protected]>
13526
13527         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13528
13529 2003-01-27  Daniel Jacobowitz  <[email protected]>
13530
13531         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13532         (maintenance_set_profile_cmd): Use error () instead of warning ().
13533
13534 2003-01-27  Daniel Jacobowitz  <[email protected]>
13535
13536         * configure.in: Check that -pg works if using --enable-profiling.
13537         Check for monstartup and _mcleanup regardless of --enable-profiling.
13538         * maint.c: Check for monstartup and _mcleanup before using them.
13539         * config.in: Regenerated.
13540         * configure: Regenerated.
13541
13542 2003-01-24  Nick Clifton  <[email protected]>
13543
13544         * Add sh2e support:
13545
13546         2002-04-02  Elena Zannoni  <[email protected]>
13547
13548                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13549                 (sh2e_show_regs): New.
13550                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13551                 * config/sh/tm-sh.h: Added sh2e to comments.
13552
13553 2003-01-23  Jim Blandy  <[email protected]>
13554
13555         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13556         symbols found)" message here; we haven't checked for a separate
13557         debug info file yet, so we don't know yet.
13558         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13559         we've looked everywhere.  Also, there's no need to print a special
13560         message when we're loading the separate debug info file: the one
13561         symbol_file_add prints is fine.
13562
13563 2003-01-23  Alexander Larsson <[email protected]>
13564             Jim Blandy  <[email protected]>
13565
13566         Add support for executables whose debug info has been separated
13567         out into a separate file, leaving only a link behind.
13568         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13569         and separate_debug_objfile_backlink.
13570         (put_objfile_before): New declaration.
13571         * symfile.c: #include "filenames.h".
13572         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13573         debug info in a separate file, read that, too. Save the addrs
13574         argument, so we can use it again to read the separated debug info;
13575         syms_from_objfile modifies the table we pass it.
13576         (reread_symbols): After re-reading an objfile, call
13577         reread_separate_symbols to refresh its separate debug info
13578         objfile, if it has one.
13579         (reread_separate_symbols, find_separate_debug_file,
13580         get_debug_link_info, separate_debug_file_exists): New functions.
13581         (debug_file_directory): New global var.
13582         (_initialize_symfile): Initialize debug_file_directory, and
13583         provide the new `set debug-file-directory' command to let the user
13584         change it.
13585         * objfiles.c (free_objfile): If this objfile has its debug info in
13586         a separate objfile, free that one too.  If this is itself a
13587         separate debug info objfile, clear our parent's backlink.
13588         (put_objfile_before): New function.
13589         * utils.c (gnu_debuglink_crc32): New function.
13590         * defs.h (gnu_debuglink_crc32): New declaration.
13591         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13592         * configure.in: Handle --with-separate-debug-dir config option.
13593         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13594         * acconfig.h (DEBUGDIR): New macro.
13595         * configure, aclocal.m4, config.in: Regenerated.
13596
13597 2003-01-22  Jim Blandy  <[email protected]>
13598
13599         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13600         like the old symbol_file_add, but taking new arguments: you can
13601         now pass in either a `struct section_addr_info' list to say where
13602         each section is loaded, or a `struct section_offsets' table.  Pass
13603         these new arguments through to syms_from_objfile as appropriate.
13604         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13605         with the appropriate quiescent values for the new arguments.
13606
13607         * symfile.c: #include "gdb_assert.h".
13608         (syms_from_objfile): Add the ability to pass in a section offset
13609         table directly, as an alternative to the section_addr_info table.
13610         Document arguments better.
13611         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13612         * symfile.h (syms_from_objfile): Update declaration.
13613         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13614         syms_from_objfile.
13615         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13616
13617 2003-01-22  Daniel Jacobowitz  <[email protected]>
13618
13619         Original patch by Tom Tromey <[email protected]> and
13620         Jason Molenda <[email protected]>.
13621         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13622         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13623         * NEWS: Mention profiling.
13624         * configure.in (--enable-gdbtk): Fix typo.
13625         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13626         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13627         Fill in function.
13628         (profiling_state): New variable.
13629         (mcleanup_wrapper): New function.
13630         (_initialize_maint): Remove NOTYET, fix call to
13631         add_setshow_boolean_cmd for "maint set profile".
13632         * configure: Regenerated.
13633
13634 2003-01-21  Martin M. Hunt  <[email protected]>
13635
13636         * Makefile.in (install-gdbtk): Install PNG images too.
13637
13638 2003-01-21  Andrew Cagney  <[email protected]>
13639
13640         * exec.c (text_start): Delete global variable.
13641         (exec_file_attach): Make text_start local to the function.
13642         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13643         * valops.c (hand_function_call): Delete code that handles
13644         BEFORE_TEXT_END and AFTER_TEXT_END.
13645         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13646         of CALL_DUMMY_LOCATION.
13647         * gdbarch.c: Regenerate.
13648         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13649         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13650         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13651         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13652         (text_end): Delete extern declaration.
13653
13654 2003-01-21  Andrew Cagney  <[email protected]>
13655
13656         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13657         * blockframe.c (backtrace_below_main): Move to "frame.c".
13658         (frame_chain_valid): Delete check for backtrace_below_main.
13659         (_initialize_blockframe): Delete initialization, move ``set
13660         backtrace-below-main'' command to "frame.c".
13661         (do_flush_frames_sfunc): Delete function.
13662         * frame.c: Include "command.h" and "gdbcmd.h".
13663         (frame_type_from_pc): New function.
13664         (create_new_frame): Use frame_type_from_pc.
13665         (legacy_get_prev_frame): New function.
13666         (get_prev_frame): Rewrite.  When an old style frame, call
13667         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13668         (_initialize_frame): Add ``set backtrace-below-main'' command.
13669         * Makefile.in (frame.o): Update dependencies.
13670
13671 2003-01-19  Andrew Cagney  <[email protected]>
13672
13673         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13674         DEPRECATED_REGISTERS_INFO.
13675
13676 2003-01-19  Andrew Cagney  <[email protected]>
13677
13678         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13679         Maintainers'.  Update `Various Maintainers'.
13680
13681 2003-01-19  Andrew Cagney  <[email protected]>
13682
13683         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13684         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13685         Suppress actual parameters when `-'.
13686         * gdbarch.h, gdbarch.c: Regenerate.
13687
13688 2003-01-19  Andrew Cagney  <[email protected]>
13689
13690         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13691         code handling dummy frames.
13692
13693 2003-01-19  Andrew Cagney  <[email protected]>
13694
13695         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13696         (struct frame_unwind): Add field pop.
13697         * frame.h (frame_pop): Declare.
13698         * frame.c (frame_saved_regs_pop): New function.
13699         (trad_frame_unwinder): Add frame_saved_regs_pop.
13700         (frame_pop): New function.
13701         * dummy-frame.c (dummy_frame_pop): New function.
13702         (discard_innermost_dummy): New function.
13703         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13704         (dummy_frame_unwind): Add dummy_frame_pop.
13705         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13706         * valops.c (hand_function_call): Ditto.
13707         * stack.c (return_command): Ditto.
13708
13709 2003-01-18  Andrew Cagney  <[email protected]>
13710
13711         * cris-tdep.c: Fix function declaration indentation.
13712         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13713         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13714         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13715         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13716         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13717         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13718
13719 2003-01-18  Michael Chastain  <[email protected]>
13720
13721         * README (Unpacking and Installation -- quick overview):
13722         Warn against ".../gdb-5.3/gdb/configure".
13723
13724 2003-01-18  Andrew Cagney  <[email protected]>
13725
13726         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13727         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13728         (struct frame_unwind): Declare opaque.
13729         (dummy_frame_p): Declare function.
13730         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13731         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13732         * dummy-frame.c: Include "frame-unwind.h".
13733         (dummy_frame_p): New function.
13734         (dummy_frame_unwind): New variable.
13735         * frame.c: Include "frame-unwind.h".
13736         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13737         to use the new unwind field.
13738         (set_unwind_by_pc): Delete function.
13739         (create_new_frame, get_prev_frame): Set unwind field using
13740         frame_unwind_find_by_pc.
13741         (trad_frame_unwind, trad_frame_unwinder): New variables.
13742         * frame.h (trad_frame_unwind): Declare variable.
13743         (frame_id_unwind_ftype): Delete declaration.
13744         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13745         (struct frame_unwind): Declare opaque.
13746         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13747         register_unwind with a single unwind pointer.
13748         * frame-unwind.h, frame-unwind.c: New files.
13749         * Makefile.in (SFILES): Add frame-unwind.c.
13750         (frame_unwind_h): Define.
13751         (COMMON_OBS): Add frame-unwind.o.
13752         (frame-unwind.o): Specify dependencies.
13753         (frame.o, dummy-frame.o): Update dependencies.
13754
13755 2003-01-18  Andrew Cagney  <[email protected]>
13756
13757         * ada-valprint.c: Eliminate PTR.
13758         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13759         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13760         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13761         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13762         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13763         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13764         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13765
13766 2003-01-17  Andrew Cagney  <[email protected]>
13767
13768         * main.c (captured_main): Don't use PTR.
13769         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13770         * gdbtypes.c (lookup_primitive_typename): Ditto.
13771         (lookup_struct_elt_type): Ditto.
13772         * f-valprint.c (info_common_command): Ditto.
13773         (list_all_visible_commons): Ditto.
13774         * jv-typeprint.c (java_type_print_base): Ditto.
13775
13776         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13777         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13778         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13779         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13780         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13781         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13782         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13783         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13784         * main.c (captured_main): Use xfree, not free.
13785
13786 2003-01-16  Andrew Cagney  <[email protected]>
13787
13788         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13789         ID back using a parameter.
13790         * frame.c (frame_id_unwind): Update call.
13791         (frame_saved_regs_id_unwind): Update.
13792         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13793         * dummy-frame.h (struct frame_id): Add opaque declaration.
13794         (dummy_frame_id_unwind): Update declaration.
13795
13796 2003-01-15  Andrew Cagney  <[email protected]>
13797
13798         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13799
13800 2003-01-15  Stephen P. Smith <[email protected]>
13801
13802         * MAINTAINERS (Stephen P. Smith): Updated email address.
13803
13804 2003-01-14  Elena Zannoni  <[email protected]>
13805
13806         Fix PR gdb/898
13807         * breakpoint.c (until_break_command): Add new argument.  Use it to
13808         decide whether to stop only at the current frame or not.
13809         * breakpoint.h (until_break_command): Update prototype.
13810         * infcmd.c (until_command): Add new argument to until_break_command
13811         call.
13812         (advance_command): New function.
13813         (_initialize_infcmd): Update help string for 'until' command.
13814         Add new 'advance' command.
13815
13816 2003-01-14  David Carlton  <[email protected]>
13817
13818         * linespec.c (decode_line_1): Normalize comments.
13819         (set_flags): Ditto.
13820         (locate_first_half): Ditto.
13821         (decode_compound): Ditto.
13822         (symtab_from_filename): Ditto.
13823         (decode_all_digits): Ditto.
13824         (decode_dollar): Ditto.
13825         (find_methods): Ditto.
13826         (find_toplevel_char): Ditto.
13827
13828 2003-01-13  Andrew Cagney  <[email protected]>
13829
13830         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13831         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13832         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13833         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13834         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13835         * language.c, language.h, m32r-tdep.c: Update copyright.
13836         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13837         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13838         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13839         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13840         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13841         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13842
13843 2003-01-13  Elena Zannoni  <[email protected]>
13844
13845         * stabsread.h (process_later, resolve_cfront_continuation):
13846         Obsolete.
13847         Update copyright years.
13848         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13849         Update copyright year.
13850         * dbxread.c(struct cont_elem): Obsolete.
13851         (process_later, process_now): Obsolete functions.
13852         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13853         Update copyright year.
13854         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13855         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13856         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13857         (parse_partial_symbols): Obsolete cfront support.
13858         * stabsread.c
13859         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13860         macros.
13861         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13862         read_cfront_baseclasses, read_cfront_member_functions,
13863         resolve_cfront_continuation,read_cfront_static_fields,
13864         copy_cfront_struct_fields): Obsolete functions.
13865         (define_symbol, read_one_struct_field): Obsolete cfront support.
13866         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13867         Update Copyright year.
13868
13869 2003-01-13  Elena Zannoni  <[email protected]>
13870
13871         * stack.c (print_frame_info, print_stack_frame_base_stub,
13872         print_stack_frame_base, show_and_print_stack_frame_stub,
13873         show_and_print_stack_frame, print_only_stack_frame_stub,
13874         print_only_stack_frame): Delete functions.
13875         (print_stack_frame_stub): Call print_frame_info instead of
13876         print_frame_info_base.
13877         (print_frame_info_base): Rename to print_frame_info.
13878         (backtrace_command_1): Call print_frame_info, instead of
13879         print_frame_info_base.
13880         (current_frame_command): Call print_stack_frame, instead of
13881         print_only_stack_frame.
13882         (frame_command): Call print_stack_frame, instead of
13883         show_and_print_stack_frame.
13884         (up_command): Ditto.
13885         (down_command): Ditto.
13886         * frame.h (print_only_stack_frame): Delete prototype.
13887         * infrun.c (normal_stop): Call print_stack_frame, instead of
13888         show_and_print_stack_frame.
13889         * thread.c (info_threads_command): Call print_stack_frame, instead
13890         of print_only_stack_frame.
13891
13892 2003-01-13  Andrew Cagney  <[email protected]>
13893
13894         * README (Graphical interface to GDB): Update URL.  Point at
13895         gdb/links/.
13896
13897         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13898         version match.
13899
13900 2003-01-13  Daniel Jacobowitz  <[email protected]>
13901
13902         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13903         lines.
13904
13905 2003-01-13  Daniel Jacobowitz  <[email protected]>
13906
13907         * thread-db.c (attach_thread): Prototype.
13908         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
13909         thread information (ti), and valid flags (th_valid, ti_valid).
13910         (attach_thread): Move target_pid_to_str call to after the thread
13911         is added to GDB's list.  Initialize the cache.
13912         (thread_get_info_callback, thread_db_map_id2thr)
13913         (thread_db_get_info): New functions.
13914         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
13915         (thread_db_store_registers, thread_db_thread_alive)
13916         (thread_db_get_thread_local_address): Use them.
13917         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
13918         of calling error() for threads in unknown state.
13919
13920         (clear_lwpid_callback): New function.
13921         (thread_db_resume): Use it to clear the cache.
13922
13923 2003-01-13  Daniel Jacobowitz  <[email protected]>
13924
13925         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
13926         (resume_callback): Remove dead code.
13927
13928 2003-01-13  Andrew Cagney  <[email protected]>
13929
13930         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
13931         predicate.
13932         * gdbarch.h, gdbarch.c: Regenerate.
13933         * stack.c (frame_info): Only initialize the saved registers when
13934         FRAME_INIT_SAVED_REGS_P.
13935         * frame.c (frame_saved_regs_register_unwind): Assert
13936         FRAME_INIT_SAVED_REGS_P.
13937         (deprecated_generic_get_saved_register): Ditto.
13938
13939 2003-01-13  Daniel Jacobowitz  <[email protected]>
13940
13941         * source.c (openp): Squelch warning about "filename".
13942
13943 2003-01-13  Daniel Jacobowitz  <[email protected]>
13944
13945         * source.c (openp): If the file does not exist don't necessarily
13946         search the path.
13947
13948 2003-01-13  Daniel Jacobowitz  <[email protected]>
13949
13950         Fix PR gdb/872.
13951         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
13952         (integer_types_same_name_p): New function.
13953         (rank_one_type): Use it.
13954         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
13955
13956 2003-01-13  Daniel Jacobowitz  <[email protected]>
13957
13958         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
13959         variables.
13960         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
13961         * configure.in: Add --with-sysroot.
13962         * configure: Regenerated.
13963         * main.c (gdb_sysroot): New variable.
13964         (captured_main): Initialize gdb_sysroot.
13965         * defs.h (gdb_sysroot): New extern declaration.
13966         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
13967
13968 2003-01-12  Michael Chastain  <[email protected]>
13969
13970         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
13971
13972 2003-01-12  Michael Chastain  <[email protected]>
13973
13974         * top.c (print_gdb_version): Bump copyright year to 2003.
13975
13976 2003-01-12  David Carlton  <[email protected]>
13977
13978         * linespec.c (symtab_from_filename): Rename variable 's' to
13979         'file_symtab'.
13980
13981 2003-01-12  Andrew Cagney  <[email protected]>
13982
13983         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
13984         dummy frame.
13985         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
13986
13987 2003-01-12  Andrew Cagney  <[email protected]>
13988
13989         * d10v-tdep.c: Include "gdb_assert.h".
13990         (d10v_store_return_value): Rewrite to match current interface.
13991         (d10v_extract_struct_value_address): Ditto.
13992         (d10v_extract_return_value): Ditto.
13993         (d10v_gdbarch_init): Set store_restore_value,
13994         extract_struct_value_address and extract_return_value.
13995
13996 2003-01-12  J. Brobecker  <[email protected]>
13997
13998         * hpread.c (set_namestring): New procedure replacing the
13999         SET_NAMESTRING macro.
14000         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14001         by calls to set_namestring.
14002
14003 2003-01-11  J. Brobecker  <[email protected]>
14004
14005         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14006         a compilation warning.
14007         (hpread_process_one_debug_symbol): Likewise.
14008
14009 2003-01-10  David Carlton  <[email protected]>
14010
14011         * linespec.c (decode_line_1): Rename variable 's' to
14012         'file_symtab'.
14013         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14014         (decode_dollar): Ditto.
14015         (decode_variable): Ditto.
14016         (symbol_found): Ditto.
14017
14018 2003-01-09  Michael Chastain  <[email protected]>
14019
14020         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14021
14022 2003-01-07  Corinna Vinschen  <[email protected]>
14023
14024         * win32-nat.c (set_process_privilege): New function.
14025         (child_attach): Call set_process_privilege() to enable the
14026         SE_DEBUG_NAME user privilege if available in process token.
14027
14028 2003-01-10  J. Brobecker  <[email protected]>
14029
14030         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14031         compilation error in the previous revision.
14032
14033 2003-01-09  David Carlton  <[email protected]>
14034
14035         * linespec.c: Update copyright.
14036
14037 2003-01-09  Daniel Jacobowitz  <[email protected]>
14038
14039         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14040         than inferior_ptid.
14041         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14042
14043 2003-01-09  Andrew Cagney  <[email protected]>
14044
14045         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14046         Update comments.
14047         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14048         (frame_saved_regs_zalloc): Update.
14049         (frame_saved_regs_register_unwind): Update.
14050         (create_new_frame): Update.
14051         (get_prev_frame): Update.
14052         (frame_extra_info_zalloc): Update.
14053         (deprecated_get_frame_saved_regs): Update.
14054         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14055         * cris-tdep.c: Update comment.
14056
14057         * somsolib.h: Fix function indentation.
14058         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14059         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14060         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14061         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14062         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14063
14064         * infrun.c (follow_fork): Use ISO C definition.
14065         * expprint.c (print_subexp): Use xfree instead of free.
14066         * charset.c: Include "gdb_string.h" instead of <string.h>.
14067         (register_iconv_charsets): Use ISO C definition.
14068         (host_charset, target_charset): Ditto.
14069         * Makefile.in (charset.o): Update dependencies.
14070         (mi-cmd-env.o): Update dependencies.
14071
14072 2003-01-08  Andrew Cagney  <[email protected]>
14073
14074         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14075         get_frame_base.
14076
14077 2003-01-08  Andrew Cagney  <[email protected]>
14078
14079         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14080         build directories.  Save edited gdb output in Mbuild.log.  If a
14081         build fails, remove any final GDB executable.
14082
14083 2003-01-08  Andrew Cagney  <[email protected]>
14084
14085         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14086         replacing hex constants with function names and stripping leading
14087         file name directory prefixes.
14088
14089 2003-01-08  Andrew Cagney  <[email protected]>
14090
14091         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14092         get_frame_base.
14093
14094 2003-01-08  David Carlton  <[email protected]>
14095
14096         * linespec.c (decode_line_1): Move code into decode_variable.
14097         (decode_variable): New function.
14098
14099 2003-01-08  Andrew Cagney  <[email protected]>
14100
14101         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14102
14103 2003-01-08  Andrew Cagney  <[email protected]>
14104
14105         * cris-tdep.c (cris_frame_init_saved_regs): Use
14106         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14107         saved_regs buffer.
14108         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14109         (sh64_nofp_frame_init_saved_regs): Ditto.
14110         (sh_fp_frame_init_saved_regs): Ditto.
14111         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14112         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14113         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14114         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14115
14116 2003-01-08  Daniel Jacobowitz  <[email protected]>
14117
14118         * minsyms.c (lookup_minimal_symbol): Update comment.
14119         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14120         (lookup_minimal_symbol_solib_trampoline): Likewise.
14121
14122 2003-01-08  Andrew Cagney  <[email protected]>
14123
14124         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14125         frame_relative_level.
14126
14127         * alpha-tdep.c: Use get_frame_extra_info.
14128         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14129         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14130         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14131         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14132
14133         * alpha-tdep.c: Use get_next_frame.
14134         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14135         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14136         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14137         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14138         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14139         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14140         * xstormy16-tdep.c: Ditto.
14141
14142 2003-01-07  Andrew Cagney  <[email protected]>
14143
14144         * alpha-tdep.c: Use get_frame_base.
14145         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14146         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14147         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14148         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14149         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14150         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14151         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14152         * config/sparc/tm-sparc.h: Ditto.
14153
14154 2003-01-07  Andrew Cagney  <[email protected]>
14155
14156         * frame.c (deprecated_get_frame_context): New function.
14157         (deprecated_set_frame_context): New function.
14158         * frame.h (deprecated_get_frame_context): Declare.
14159         (deprecated_set_frame_context): Declare.
14160         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14161         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14162
14163 2003-01-07  Andrew Cagney  <[email protected]>
14164
14165         * frame.c (deprecated_set_frame_next_hack): New function.
14166         (deprecated_set_frame_prev_hack): New function.
14167         * frame.h (deprecated_set_frame_next_hack): Declare.
14168         (deprecated_set_frame_prev_hack): Declare.
14169         * mcore-tdep.c (analyze_dummy_frame): Use
14170         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14171         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14172
14173 2003-01-07  David Carlton  <[email protected]>
14174
14175         * linespec.c (decode_line_1): Move code into decode_dollar.
14176         (decode_dollar): New function.
14177
14178 2003-01-07  Andrew Cagney  <[email protected]>
14179
14180         * arm-tdep.c (arm_init_extra_frame_info): Use
14181         deprecated_update_frame_base_hack.
14182         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14183         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14184         (fix_frame_pointer): Ditto.
14185         (mn10300_analyze_prologue): Ditto.
14186
14187 2003-01-07  Andrew Cagney  <[email protected]>
14188
14189         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14190         extra_info using frame_extra_info_zalloc.
14191         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14192         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14193         (sh64_init_extra_frame_info): Ditto.
14194         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14195         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14196         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14197         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14198         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14199         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14200         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14201         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14202         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14203         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14204         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14205         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14206
14207         * mn10300-tdep.c (analyze_dummy_frame): Use
14208         deprecated_set_frame_extra_info_hack.
14209         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14210
14211 2003-01-07  J. Brobecker  <[email protected]>
14212
14213         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14214         class is not scText. These do not define "real" procedures.
14215         (parse_partial_symbols): Likewise.
14216
14217 2003-01-06  Michael Snyder  <[email protected]>
14218
14219         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14220
14221 2003-01-06  Andrew Cagney  <[email protected]>
14222
14223         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14224         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14225         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14226         deprecated_frame_xmalloc_with_cleanup.
14227         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14228         deprecated_frame_xmalloc.
14229         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14230         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14231
14232 2003-01-06  Andrew Cagney  <[email protected]>
14233
14234         * x86-64-linux-tdep.c: Include "osabi.h".
14235         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14236
14237         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14238
14239 2003-01-06  Andrew Cagney  <[email protected]>
14240
14241         * MAINTAINERS (Target Instruction Set Architectures): Update
14242         arm-elf.  Can be built with -Werror, has been multiarched.
14243
14244         * value.h (unpack_long): Make buffer parameter constant.
14245         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14246         * scm-lang.h (scm_parse): Ditto.
14247         * defs.h (extract_typed_address, extract_address): Ditto.
14248         (extract_long_unsigned_integer): Ditto.
14249         * inferior.h (unsigned_pointer_to_address): Ditto.
14250         (signed_pointer_to_address): Ditto.
14251         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14252         * gdbarch.h, gdbarch.c: Regenerate.
14253         * findvar.c (extract_long_unsigned_integer): Update.
14254         (extract_address): Update.
14255         (extract_typed_address): Update.
14256         (unsigned_pointer_to_address): Update.
14257         * values.c (unpack_long): Update.
14258         (unpack_double): Update.
14259         (unpack_pointer): Update.
14260         (unpack_field_as_long): Update.
14261         * d10v-tdep.c (d10v_pointer_to_address): Update.
14262         * avr-tdep.c (avr_pointer_to_address): Update.
14263         * scm-lang.c (scm_unpack): Update.
14264         * findvar.c (signed_pointer_to_address): Update.
14265
14266 2003-01-06  Michal Ludvig  <[email protected]>
14267
14268         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14269         since it is in i386-tdep.c.
14270
14271 2003-01-06  J. Brobecker  <[email protected]>
14272
14273         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14274         failure introduced in the previous change.
14275
14276 2003-01-05  Michael Chastain  <[email protected]>
14277
14278         * README: Remove references to deleted remote-*.c files:
14279         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14280         remote-nrom.c, remote-os9k.c, remote-udi.c.
14281
14282 2003-01-05  Mark Kettenis  <[email protected]>
14283
14284         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14285         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14286         i386_get_longjmp_target.
14287
14288 2003-01-05  Andrew Cagney  <[email protected]>
14289
14290         * arm-tdep.c (prologue_cache): Change to a pointer.
14291         (_initialize_arm_tdep): Allocate prologue_cache.
14292         (check_prologue_cache): Update.
14293         (save_prologue_cache): Update.
14294         (arm_gdbarch_init): Update.
14295
14296 2003-01-04  Daniel Jacobowitz  <[email protected]>
14297
14298         * stabsread.c (update_method_name_from_physname): Call complaint()
14299         instead of error.
14300
14301 2003-01-04  Daniel Jacobowitz  <[email protected]>
14302
14303         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14304         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14305         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14306
14307         * blockframe.c: Include "gdbcmd.h" and "command.h".
14308         (backtrace_below_main): New variable.
14309         (file_frame_chain_valid, func_frame_chain_valid)
14310         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14311         (generic_func_frame_chain_valid): Remove functions.
14312         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14313         (_initialize_blockframe): New function.
14314         * Makefile.in (blockframe.o): Update dependencies.
14315         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14316         comment.  Call frame_chain_valid ().
14317         * frame.h: Remove old prototypes.  Add prototype for
14318         frame_chain_valid and update comments to match.
14319         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14320         Remove old comment.
14321         * gdbarch.h: Regenerated.
14322         * gdbarch.c: Regenerated.
14323
14324         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14325         set_gdbarch_frame_chain_valid.
14326         * avr-tdep.c (avr_gdbarch_init): Likewise.
14327         * cris-tdep.c (cris_gdbarch_init): Likewise.
14328         * frv-tdep.c (frv_gdbarch_init): Likewise.
14329         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14330         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14331         (i386_nw_init_abi): Likewise.
14332         (i386_gdbarch_init): Likewise.
14333         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14334         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14335         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14336         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14337         * mips-tdep.c (mips_gdbarch_init): Likewise.
14338         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14339         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14340         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14341         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14342         * s390-tdep.c (s390_gdbarch_init): Likewise.
14343         * sh-tdep.c (sh_gdbarch_init): Likewise.
14344         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14345         * v850-tdep.c (v850_gdbarch_init): Likewise.
14346         * vax-tdep.c (vax_gdbarch_init): Likewise.
14347         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14348
14349         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14350         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14351         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14352         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14353         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14354         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14355         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14356         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14357
14358 2002-01-04  Daniel Jacobowitz  <[email protected]>
14359
14360         * Makefile.in (acconfig_h): Remove incorrect macro.
14361         (config_h): Define.
14362         (osabi.o): Update dependencies.
14363         * configure.tgt: Set gdb_osabi based on target triplet.
14364         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14365         * configure: Regenerated.
14366         * config.in: Regenerated.
14367         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14368         (GDB_OSABI_DEFAULT): Define if not already defined.
14369         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14370         (set_osabi_string): New variables.
14371         (gdbarch_register_osabi): Add new OS ABI to
14372         gdb_osabi_available_names.
14373         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14374         (set_osabi, show_osabi): New functions.
14375         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14376
14377 2003-01-04  Daniel Jacobowitz  <[email protected]>
14378
14379         * arch-utils.c (gdbarch_info_init): Set osabi to
14380         GDB_OSABI_UNINITIALIZED.
14381         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14382         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14383         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14384         * gdbarch.c: Regenerated.
14385         * gdbarch.h: Regenerated.
14386         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14387         there's no BFD.
14388         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14389         * osabi.h (enum gdb_osabi): Move to defs.h.
14390         (gdbarch_init_osabi): Update prototype.
14391         * defs.h (enum gdb_osabi): Moved here.
14392         * Makefile.in: Update dependencies.
14393
14394         * alpha-tdep.h: Don't include "osabi.h".
14395         (struct gdbarch_tdep): Remove osabi member.
14396         * alpha-tdep.c: Include "osabi.h".
14397         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14398         iterate over arches.  Update call to gdbarch_init_osabi.
14399         (alpha_dump_tdep): Don't dump osabi.
14400         * alpha-linux-tdep.c: Include "osabi.h".
14401         * alpha-osf1-tdep.c: Include "osabi.h".
14402         * alphafbsd-tdep.c: Include "osabi.h".
14403         * alphanbsd-tdep.c: Include "osabi.h".
14404
14405         * arm-tdep.h: Don't include "osabi.h".
14406         (struct gdbarch_tdep): Remove osabi member.
14407         * arm-tdep.c: Include "osabi.h".
14408         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14409         iterate over arches.  Update call to gdbarch_init_osabi.
14410         (arm_dump_tdep): Don't dump osabi.
14411         * arm-linux-tdep.c: Include "osabi.h".
14412         * armnbsd-tdep.c: Include "osabi.h".
14413
14414         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14415         Update call to gdbarch_init_osabi.
14416
14417         * i386-tdep.h: Don't include "osabi.h".
14418         (struct gdbarch_tdep): Remove osabi member.
14419         * i386-tdep.c: Include "osabi.h".
14420         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14421         iterate over arches.  Update call to gdbarch_init_osabi.
14422         (i386_dump_tdep): Don't dump osabi.
14423         * i386-linux-tdep.c: Include "osabi.h".
14424         * i386-sol2-tdep.c: Include "osabi.h".
14425         * i386bsd-tdep.c: Include "osabi.h".
14426         * i386gnu-tdep.c: Include "osabi.h".
14427         * i386ly-tdep.c: Include "osabi.h".
14428         * i386nbsd-tdep.c: Include "osabi.h".
14429         * i386obsd-tdep.c: Include "osabi.h".
14430
14431         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14432         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14433         check osabi when iterating over arches.  Update call to
14434         gdbarch_init_osabi.
14435         (mips_dump_tdep): Don't dump osabi.
14436
14437         * ns32k-tdep.h: Don't include "osabi.h".
14438         (struct gdbarch_tdep): Remove.
14439         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14440         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14441         allocate tdep.  Update call to gdbarch_init_osabi.
14442         (ns32k_dump_tdep): Remove.
14443         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14444         * ns32knbsd-tdep.c: Include "osabi.h".
14445
14446         * ppc-tdep.h: Don't include "osabi.h".
14447         (struct gdbarch_tdep): Remove osabi member.
14448         * rs6000-tdep.c: Include "osabi.h".
14449         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14450         osabi when iterating over arches.  Update call to
14451         gdbarch_init_osabi.
14452         (rs6000_dump_tdep): Don't dump osabi.
14453         * ppc-linux-tdep.c: Include "osabi.h".
14454         * ppcnbsd-tdep.c: Include "osabi.h".
14455
14456         * sh-tdep.h: Don't include "osabi.h".
14457         (struct gdbarch_tdep): Remove osabi member.
14458         * sh-tdep.c: Include "osabi.h".
14459         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14460         iterate over arches.  Update call to gdbarch_init_osabi.
14461         (sh_dump_tdep): Don't dump osabi.
14462         * shnbsd-tdep.c: Include "osabi.h".
14463
14464         * sparc-tdep.c: Include "osabi.h".
14465         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14466         iterate over arches.  Update call to gdbarch_init_osabi.
14467         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14468         tdep structure.
14469
14470         * vax-tdep.h: Don't include "osabi.h".
14471         (struct gdbarch_tdep): Remove.
14472         * vax-tdep.c: Include "osabi.h".
14473         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14474         iterate over arches.  Don't allocate tdep.  Update call
14475         to gdbarch_init_osabi.
14476         (vax_dump_tdep): Remove.
14477         (_initialize_vax_tdep): Update call to gdbarch_register.
14478
14479 2003-01-04  Daniel Jacobowitz  <[email protected]>
14480
14481         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14482         entirely.
14483         (breakpoint_re_set_one): Don't fetch the value for a disabled
14484         watchpoint.
14485
14486 2003-01-04  Daniel Jacobowitz  <[email protected]>
14487
14488         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14489         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14490         (COERCE_FLOAT_TO_DOUBLE): Remove.
14491         * gdbarch.c: Regenerate.
14492         * gdbarch.h: Regenerate.
14493         * Makefile.in: Remove value_h from gdbarch_h.
14494         * valops.c (coerce_float_to_double): New variable.
14495         (default_coerce_float_to_double): Remove.
14496         (standard_coerce_float_to_double): Remove.
14497         (value_arg_coerce): Use coerce_float_to_double.
14498         (_initialize_valops): Add "set coerce-float-to-double".
14499         * value.h (default_coerce_float_to_double): Remove prototype.
14500         (standard_coerce_float_to_double): Remove prototype.
14501
14502         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14503         prototyped.
14504         * mdebugread.c (parse_symbol): Likewise.
14505         * stabsread.c (define_symbol): Mark all functions as prototyped.
14506
14507         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14508         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14509         set_gdbarch_coerce_float_to_double.
14510         * arm-tdep.c (arm_gdbarch_init): Likewise.
14511         * frv-tdep.c (frv_gdbarch_init): Likewise.
14512         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14513         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14514         * mips-tdep.c (mips_gdbarch_init): Likewise.
14515         (mips_coerce_float_to_double): Remove.
14516         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14517         (rs6000_coerce_float_to_double): Remove.
14518         * s390-tdep.c (s390_gdbarch_init): Likewise.
14519         * sh-tdep.c (sh_gdbarch_init): Likewise.
14520         (sh_coerce_float_to_double): Remove.
14521         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14522         (sparc_coerce_float_to_double): Remove.
14523         * v850-tdep.c (v850_gdbarch_init): Likewise.
14524         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14525         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14526         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14527         (hppa_coerce_float_to_double): Remove prototype.
14528         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14529
14530 2003-01-04  Daniel Jacobowitz  <[email protected]>
14531
14532         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14533
14534 2003-01-04  Daniel Jacobowitz  <[email protected]>
14535
14536         Suggested by Stewart Brown <[email protected]>:
14537         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14538         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14539         (c_type_print_varspec_suffix): Likewise.
14540
14541 2003-01-04  Mark Kettenis  <[email protected]>
14542
14543         * configure.in: Don't set and AC_SUBST SUBDIRS.
14544         * configure: Regenerated.
14545
14546         * configure.in: Remove code dealing with shared libraries.
14547         * Makefile.in: Remove HLDFLAGS and HLDENV.
14548         * configure: Regenerated.
14549
14550 2003-01-04  Andrew Cagney  <[email protected]>
14551
14552         * frame.c (deprecated_frame_xmalloc): New function.
14553         (deprecated_set_frame_saved_regs_hack): New function.
14554         (deprecated_set_frame_extra_info_hack): New function.
14555         * frame.h (deprecated_frame_xmalloc): Declare.
14556         (deprecated_set_frame_saved_regs_hack): Declare.
14557         (deprecated_set_frame_extra_info_hack): Declare.
14558
14559 2003-01-04  Mark Kettenis  <[email protected]>
14560
14561         * configure.in: Move code that provides the --enable-gdbtk option
14562         right after the code that handles the --enable-tui option, and
14563         polish it somewhat.
14564         * configure: Regenerated.
14565
14566         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14567         AC_CHECK_FUNCS and remove the old check for pread64.
14568         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14569         * acconfig.h (_GNU_SOURCE): Add.
14570         (HAVE_PREAD64): Remove.
14571         * configure, aclocal.m4, config.in: Regenerated.
14572
14573 2003-01-03  Andrew Cagney  <[email protected]>
14574
14575         * alpha-tdep.c: Use get_frame_saved_regs.
14576         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14577         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14578         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14579         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14580         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14581
14582 2003-01-03  Mark Kettenis  <[email protected]>
14583
14584         * configure.in: Remove all use of the SUBDIRS variable; add
14585         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14586         code providing the --enable-multi-ice option, and move it right in
14587         front of the code that checks whether gdbserver is supported.
14588         Polish that too.
14589         * configure: Regenerated.
14590         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14591         @SUBDIRS@.
14592
14593 2003-01-03  Andrew Cagney  <[email protected]>
14594
14595         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14596         * avr-tdep.c, cris-tdep.c: Ditto.
14597         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14598         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14599
14600 2003-01-03  Mark Kettenis  <[email protected]>
14601
14602         * configure.in: Remove --enable-netrom option.
14603         * configure: Regenerated.
14604
14605 2003-01-03  Mark Kettenis  <[email protected]>
14606
14607         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14608         declaration for `struct re_pattern_buffer' instead.
14609         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14610
14611 2003-01-03  J. Brobecker  <[email protected]>
14612
14613         * mdebugread.c (parse_symbol): Count until the stEnd matching
14614         the structure name.
14615
14616 2003-01-02  Mark Kettenis  <[email protected]>
14617
14618         * configure.in: Remove --with-cpu option.
14619         subscripts.  Remove evil changequotes here.
14620         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14621         * config.in, configure: Regenerated.
14622
14623         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14624         * configure.in: Cleanup section that sources GDB and BFD configure
14625         subscripts.  Remove evil changequotes here.
14626         * config.in, configure: Regenerated.
14627
14628 2003-01-02  Andrew Cagney  <[email protected]>
14629
14630         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14631         frame accessor methods.
14632         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14633         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14634         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14635         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14636         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14637         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14638         * z8k-tdep.c: Ditto.
14639
14640 2003-01-02  Mark Kettenis  <[email protected]>
14641
14642         * configure.in: Remove UI_OUT configuration code.
14643         * ada-lang.c: Update assuming UI_OUT is always true.
14644         * Makefile.in (UIOUT_CFLAGS): Remove.
14645         * configure: Regenerated.
14646         * TODO: Remove blurb about elimination of -DUI_OUT.
14647
14648         * configure.in: Move code that provides the --enable-gdbcli,
14649         --enable-gdbmi options right before the code that handles the
14650         --enable-tui option.  Polish a bit.
14651         * configure: Regenerated.
14652
14653         * configure.in: Rewrite check for GNU regex and the
14654         --without-included regex option, and move it into the "Checks for
14655         library functions" section.  This makes us use the system regex
14656         again by default on systems with version 2 of the GNU C library.
14657         This was apparently broken.
14658         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14659         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14660         * config.in, configure: Regenerated.
14661
14662         * configure.in: Move code that provides the --enable-tui option
14663         before the "Checks for libraries" section.  Polish the code
14664         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14665         code that looks for a library providing termcap functionality to
14666         match more closely what's done in the Readline library, and move
14667         it into to the "Checks for libraries" section.
14668         * configure: Regenerated.
14669         * Makefile.in (TERMCAP): Remove variable.
14670         * config/i386/go32.mh (TERMCAP): Remove variable.
14671
14672 2003-01-02  Andrew Cagney  <[email protected]>
14673
14674         * MAINTAINERS: Mention gdb_mbuild.sh.
14675         * gdb_mbuild.sh: Rewrite.
14676
14677 2003-01-02  Mark Kettenis  <[email protected]>
14678
14679         * configure.in: Fix typo in last change.
14680         * config.in, configure: Regenerated.
14681
14682 2003-01-02  Andrew Cagney  <[email protected]>
14683
14684         * valarith.c (value_binop): Delete obsolete code and comments.
14685         * configure.host: Ditto.
14686         * buildsym.h (make_blockvector): Ditto.
14687         * buildsym.c (make_blockvector): Ditto.
14688         * defs.h (enum language): Ditto.
14689         (chill_demangle): Ditto.
14690         * elfread.c (elf_symtab_read): Ditto.
14691         * dwarfread.c (CHILL_PRODUCER): Ditto.
14692         (set_cu_language): Ditto.
14693         (handle_producer): Ditto.
14694         * expprint.c (print_subexp): Ditto.
14695         * gdbtypes.c (chill_varying_type): Ditto.
14696         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14697         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14698         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14699         (chill_varying_type): Ditto.
14700         * language.h (_LANG_chill): Ditto.
14701         * language.c (binop_result_type, integral_type): Ditto.
14702         (character_type, string_type, structured_type): Ditto.
14703         (lang_bool_type, binop_type_check): Ditto.
14704         * stabsread.h (os9k_stabs): Ditto.
14705         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14706         (define_symbol, read_type, read_struct_fields): Ditto.
14707         (read_array_type, read_enum_type, read_huge_number): Ditto.
14708         (read_range_type, start_stabs): Ditto.
14709         * symfile.c (init_filename_language_table): Ditto.
14710         (add_psymbol_with_dem_name_to_list): Ditto.
14711         * symtab.c (symbol_init_language_specific): Ditto.
14712         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14713         * symtab.h (struct general_symbol_info): Ditto.
14714         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14715         * typeprint.c (typedef_print): Ditto.
14716         * utils.c (fprintf_symbol_filtered): Ditto.
14717         * valops.c (value_cast, search_struct_field, value_slice): Delete
14718         obsolete code.
14719         (varying_to_slice): Delete function.
14720         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14721         (varying_to_slice): Delete declaration.
14722         * MAINTAINERS: Update.
14723
14724 2003-01-02  Mark Kettenis  <[email protected]>
14725
14726         * configure.in: Reorganize "Checks for library functions section"
14727         a bit.  Remove check for `btowc' and `isascii' functions.
14728         * configure: Regenerated.
14729
14730         * acconfig.h (_MSE_INT_H): Remove.
14731         * configure.in: Create "Checks for header files" section, and move
14732         appropriate tests there.  Don't check for objlist.h, wchar.h,
14733         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14734         misdetection fix.  Also add "Checks for types", "Checks for
14735         compiler characteristics" and "Checks for library functions"
14736         sections.
14737         * config.in, configure: Regenerated.
14738
14739         * configure.in: Create "Checks for programs" section, and move
14740         appropriate tests there.
14741
14742 2003-01-01  Mark Kettenis  <[email protected]>
14743
14744         * configure.in: Create "Checks for libraries" section, and move
14745         appropriate tests there.  Cleanup check for wctype in libw.  Use
14746         AC_SEARCH_LIBS to see whether we need libsocket.
14747         * configure: Regenerated.
14748
14749 For older changes see ChangeLog-2002
14750 \f
14751 Local Variables:
14752 mode: change-log
14753 left-margin: 8
14754 fill-column: 74
14755 version-control: never
14756 End:
This page took 0.857315 seconds and 4 git commands to generate.