2003-11-22 Andrew Cagney <cagney@redhat.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-11-22  Andrew Cagney  <cagney@redhat.com>
2
3         * frame.c (deprecated_get_frame_context): Delete function.
4         (deprecated_set_frame_prev_hack): Delete function.
5         (struct frame_info): Delete member "context".
6         * frame.h (deprecated_get_frame_context): Delete declaration.
7         (deprecated_set_frame_context): Delete declaration.
8
9         * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
10         * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
11         * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
12         * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
13
14         * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
15         (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
16         mips_regsize.
17         (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
18         * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
19         * config/mips/tm-irix5.h: Update copyright.
20         (SIGFRAME_REG_SIZE): Delete macro.
21
22         * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
23         * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
24         declaration.
25         (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
26         * infcall.c (call_function_by_hand): Delete #ifdef
27         DEPRECATED_VALUE_RETURNED_FROM_STACK code.
28         * infcmd.c (print_return_value): Ditto.
29
30         * mips-tdep.c (skip_prologue_using_sal): New function.
31         (mips32_skip_prologue, mips16_skip_prologue): Use
32         skip_prologue_using_sal to get an upper bound on the search.
33
34         * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
35         #if 0'ed macro.
36         * infrun.c (step_into_function): Delete #ifdef
37         PROLOGUE_FIRSTLINE_OVERLAP code.
38         * symtab.c (find_function_start_sal): Ditto.
39
40         * remote-rdp.c: Update copyright.
41         (rdp_init): #if 0 references to "target_byte_order".
42
43         * mips-tdep.c (mips_o32_store_return_value): Delete function.
44         (mips_o32_return_value): Replace mips_o32_xfer_return_value.
45         (mips_o32_extract_return_value): Delete function.
46         (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
47         (mips_n32n64_extract_return_value): Delete function.
48         (mips_n32n64_store_return_value): Delete function.
49         (mips_gdbarch_init): For o32 and n32n64, set "return_value"
50         instead of "store_return_value", "extract_return_value", and
51         "use_struct_convention".
52         (mips_n32n64_use_struct_convention): Delete function.
53
54 2003-11-21  Kevin Buettner  <kevinb@redhat.com>
55
56         * frv-tdep.c (frv_frame_this_id): Eliminate call to
57         inside_entry_func().
58
59 2003-11-20  Mark Kettenis  <kettenis@gnu.org>
60
61         * i386-tdep.c (i386_extract_return_value,
62         i386_store_return_value): Add gdbarch argument.  Use it instead of
63         determining it from REGCACHE.  Remove recursive call for
64         structures with a single member.
65         (i386_use_struct_convention): Remove.
66         (i386_reg_struct_return_p): New function.
67         (i386_return_value): New function.
68         (i386_gdbarch_init): Set return_value, don't set
69         extract_return_value, store_return_value and
70         use_struct_convention.
71         * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
72
73 2003-11-20  Jim Blandy  <jimb@redhat.com>
74
75         * osabi.c (_initialize_gdb_osabi): Don't return before registering
76         the 'set osabi' and 'show osabi' commands.
77
78 2003-11-19  Mark Kettenis  <kettenis@gnu.org>
79
80         * frame.c (get_prev_frame): Use result from
81         get_frame_address_in_block instead of get_frame_pc as argument to
82         inside_main_func.  Fixes PR backtrace/1435.
83
84 2003-11-19  Andrew Cagney  <cagney@redhat.com>
85
86         * stack.c (return_command): Handle "void", "legacy" and "unknown
87         location" return values separatly.
88         * values.c (using_struct_return): Return 0 for a "void" return
89         type.  Mention "register_value_being_returned".
90         (register_value_being_returned): Mention "using_struct_return".
91
92 2003-11-19  Daniel Jacobowitz  <drow@mvista.com>
93
94         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
95         (frame_base_offset): Delete.
96         (read_func_scope): Delete call to decode_locdesc.
97         (decode_locdesc): Update comments.  Don't set the removed variables.
98         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
99         DW_OP_fbreg support.
100
101 2003-11-18  Daniel Jacobowitz  <drow@mvista.com>
102
103         * dwarf2read.c (optimized_out, islocal): Remove.
104         (decode_locdesc): Update comments.  Don't set optimized_out
105         or islocal.
106
107 2003-11-17  Jeff Johnston  <jjohnstn@redhat.com>
108             David Mosberger  <davidm@hpl.hp.com>
109
110         * ia64-tdep.c: Include elf.h.
111         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and 
112         libunwind-ia64.h.
113         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
114         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
115         (ia64_is_fpreg, ia64_access_reg): Ditto.
116         (ia64_access_fpreg, ia64_access_mem): Ditto.
117         (get_kernel_table): Ditto.
118         (ia64_find_unwind_table): Ditto.
119         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
120         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
121         (ia64_libunwind_frame_prev_register): Ditto.
122         (ia64_libunwind_frame_sniffer): Ditto.
123         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
124         sniffer.  Register libunwind functions needed by generic 
125         libunwind frame code using libunwind_frame_set_descr(). 
126
127 2003-11-16  Daniel Jacobowitz  <drow@mvista.com>
128
129         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
130         bp_shlib_disabled breakpoint if there is a shared library mapped
131         at its expected address.
132
133 2003-11-16  Andrew Cagney  <cagney@redhat.com>
134
135         * configure.tgt: Delete mips*tx39*-elf*.
136         * config/mips/tm-tx39.h: Delete file.
137         * config/mips/tx39.mt: Delete file.
138         * config/mips/tx39.mt: Delete file.
139
140         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
141         * remote-mips.c (common_open): Instead of
142         "mips_read_register_type" and "mips_set_processor_type_command"
143         call "deprecated_mips_set_processor_regs_hack".
144         * config/mips/tm-mips.h (mips_read_processor_type): Delete
145         declaration.
146         (mips_set_processor_type_command): Delete declaration.
147         * mips-tdep.c (mips_gdbarch_init): Update comment.
148         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
149         (mips_set_processor_type): Delete function.
150         (NUM_MIPS_PROCESSOR_REGS): Define.
151         (mips_show_processor_type_command): Delete function.
152         (mips_set_processor_type_command): Delete function.
153         (tmp_mips_processor_type): Delete.
154         (mips_processor_type): Delete.
155         (mips_processor_type_table): Delete.
156         (mips_r3051_reg_names): Delete.
157         (mips_r3081_reg_names): Delete.
158         (mips_lsi33k_reg_names): Delete.
159         (mips_processor_reg_names): Delete.
160         (mips_read_processor_type): Delete function.
161         (deprecated_mips_set_processor_regs_hack): New function.
162         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
163         (mips_register_name): Get the processor names from the tdep.
164         (mips_tx39_reg_names): New array.
165         (mips_generic_reg_names): Wire to a standard set of names.
166         (mips_gdbarch_init): Set "mips_processor_reg_names".    
167         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
168         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
169         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
170
171 2003-11-16  Andrew Cagney  <cagney@redhat.com>
172
173         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
174         (mips_fpa0_regnum, mips_regnum): New function.
175         (mips_gdbarch_init): Fill in the "regnum" fields.
176         * mips-tdep.h (struct mips_regnum): Define.
177         (mips_regnum): Declare.
178         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
179         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
180         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
181         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
182         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
183         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
184         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
185         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
186         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
187         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
188         * remote-mips.c: Include "mips-tdep.h".  Update.
189         * mipsnbsd-tdep.c: Update.
190         * mipsv4-nat.c: Update.
191         * mips-tdep.c: Update.
192         * mips-nat.c: Update.
193         * mips-linux-tdep.c: Update.
194         * mips-linux-nat.c: Update.
195         * irix5-nat.c: Update.
196         * dve3900-rom.c: Include "mips-tdep.h".  Update.
197         (ignore_packet): Supress GCC warning.
198         * config/mips/nm-riscos.h: Update.
199
200 2003-11-16  Andrew Cagney  <cagney@redhat.com>
201
202         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
203         register_size.
204         (mips_register_raw_size): Delete function.
205         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
206         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
207         Check and set "mips64_transfers_32bit_regs_p".
208         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
209         (mips_register_convertible): Check the architecture's
210         "mips64_transfers_32bit_regs_p".
211         (set_mips64_transfers_32bit_regs): New function.
212         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
213         "set remote-mips64-transfers-32bit-regs" command.  Specify
214         set_mips64_transfers_32bit_regs as the set function.
215         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
216
217 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
218
219         * i386-tdep.h (i386_supply_gregset): Provide prototype.
220         * i386-tdep.c (i386_supply_gregset): Make public.
221
222 2003-11-16  Andrew Cagney  <cagney@redhat.com>
223
224         * mips-tdep.c (mips_register_byte): Delete function.
225         (mips_gdbarch_init): Do not set "deprecated_register_byte".
226         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
227         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
228         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
229
230 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
231
232         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
233
234 2003-11-16  Andrew Cagney  <cagney@redhat.com>
235
236         * config/mips/linux64.mt: Delete file.
237         * config/mips/tm-linux64.h: Delete file.
238         * config/mips/tm-mips64.h: Delete file.
239         * config/mips/embed64.mt: Delete file.
240         * config/djgpp/fnchange.lst: Update.
241         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
242         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
243         * config/mips/tm-irix6.h: Update copyright.  Include
244         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
245         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
246         "OP_LDGPR".
247
248 2003-11-15  Andrew Cagney  <cagney@redhat.com>
249
250         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
251         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
252         n32 registers 64 bit.
253         (mips_register_raw_size, mips_register_byte): For pseudo
254         registers, use the register's pseudo size and not the
255         corresponding raw register's size.
256         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
257         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
258         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
259         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
260
261 2003-11-15  Andrew Cagney  <cagney@redhat.com>
262
263         * mips-tdep.c (struct gdbarch_tdep): Delete member
264         gdb_target_is_mips64.
265         (GDB_TARGET_IS_MIPS64): Delete macro.
266         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
267         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
268         (mips_addr_bits_remove): Simplify.
269
270         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
271         register_size.
272
273         Replace MIPS_REGSIZE with mips_regsize.
274         * mips-tdep.c (mips_regsize): New function.
275         * mips-tdep.h (mips_regsize): Declare.
276         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
277         (SIZEOF_STRUCT_REG): Update.
278         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
279         (mipsnbsd_fill_reg): Update.
280         (mipsnbsd_supply_fpreg): Update.
281         (mipsnbsd_fill_fpreg): Update.
282         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
283         * mips-tdep.c (mips_register_raw_size): Update.
284         (mips_register_type): Update.
285         (SIGFRAME_BASE): Update.
286         (SIGFRAME_PC_OFF): Update.
287         (SIGFRAME_REGSAVE_OFF): Update.
288         (SIGFRAME_FPREGSAVE_OFF): Update.
289         (SIGFRAME_REG_SIZE): Update.
290         (mips32_heuristic_proc_desc): Update.
291         (print_gp_register_row): Update.
292         (mips_dump_tdep): Do not print MIPS_REGSIZE.
293         * irix5-nat.c (supply_gregset): Update.
294         (fetch_core_registers): Update.
295         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
296         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
297         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
298         (MIPS_REGISTER_BYTE): Update.
299         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
300
301 2003-11-15  Andrew Cagney  <cagney@redhat.com>
302
303         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
304         USE_REGISTER_NOT_ARG.
305         * stabsread.c (define_symbol): Update.
306
307 2003-11-15  Andrew Cagney  <cagney@redhat.com>
308
309         * bcache.h (deprecated_bcache): Declare.
310         (bcache): Make returned buffer constant.
311         * bcache.c (deprecated_bcache): New function.
312         (bcache_data): New function.
313         (bcache): Call bcache data.
314         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
315         (add_psymbol_with_dem_name_to_list): Ditto.
316
317 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
318
319         * glibc-tdep.h (struct gdbarch): Declare opaque.
320         (glibc_skip_solib_resolver): Adjust prototype.
321         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
322         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
323         (arm_linux_init_abi): Set skip_solib_resolver.
324         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
325         (i386_linux_init_abi): Set skip_solib_resolver.
326         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
327         (arm_linux_skip_solib_resolver): Remove prototype.
328         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
329         (i386_linux_skip_solib_resolver): Remove prototype.
330
331 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
332
333         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
334         function.
335         * gdbarch.c, gdbarch.h: Regenerate.
336         * infrun.c (handle_inferior_event): Call
337         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
338         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
339         definition.
340         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
341         prototype.
342
343 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
344
345         * libunwind-frame.c: New file.
346         * libunwind-frame.h: New file.
347         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
348         * configure.in: Add --with-libunwind option support.  Define
349         HAVE_LIBUNWIND if libunwind support selected / defaulted.  
350         Also check for libunwind.h and libunwind-ia64.h headers.
351         * configure: Regenerated.
352         * Makefile.in: Add support for libunwind-frame.o.
353         * config.in: Regenerated.
354
355 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
356  
357         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
358         set up the ia64 linux native target method for getting the kernel
359         unwind table.
360         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
361         * inftarg.c (child_xfer_partial): Enable section of code to
362         handle TARGET_OBJECT_UNWIND_TABLE.
363         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
364
365 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
366
367         * config/arm/nbsd.mt (TM_FILE): Define.
368         * config/arm/tm-nbsd.h: New file.
369
370 2003-11-14  Andrew Cagney  <cagney@redhat.com>
371
372         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
373         * ppc-sysv-tdep.c: Include "objfiles.h".
374         (ppc64_sysv_abi_push_dummy_call): Provide the
375         the FN's objfile when looking for the descriptor.
376
377         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
378         "name_of_malloc" to ".malloc".
379
380 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
381
382         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
383
384 2003-11-13  David Carlton  <carlton@kealia.com>
385
386         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
387
388 2003-11-13  Andrew Cagney  <cagney@redhat.com>
389
390         * arch-utils.h (selected_architecture_name): Declare.
391         (selected_byte_order): Declare.
392         * arch-utils.c (selected_byte_order): New function.
393         (selected_architecture_name): New function.
394         (target_architecture_auto): Make static.
395         (set_architecture_string): Make static.
396         (target_byte_order): Make static.
397         (target_byte_order_auto): Make static.
398         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
399         non-multi-arch definition.
400         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
401         (target_byte_order, target_architecture): Delete declaration.
402         (target_byte_order_auto, target_architecture_auto): Ditto.
403         * gdbarch.h: Re-generate.
404         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
405         "selected_byte_order".
406         
407 2003-11-13  Andrew Cagney  <cagney@redhat.com>
408
409         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
410
411 2003-11-13  Jim Blandy  <jimb@redhat.com>
412
413         * cp-namespace.c: Doc fix.
414
415 2003-11-12  Michael Snyder  <msnyder@redhat.com>
416
417         * sh64_tdep.c: Regularize some names.
418         (sh_sh64_register_name): Rename to sh64_register_name.
419         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
420         (sh_sh64_register_byte): Rename to sh64_register_byte.
421         (sh_sh64_build_float_register_type): 
422         Rename to sh64_build_float_register_type.
423         (sh_sh64_register_convert_to_virtual): 
424         Rename to sh64_register_convert_to_virtual.
425         (sh_sh64_register_convert_to_raw): 
426         Rename to sh64_register_convert_to_raw.
427
428         * sh64-tdep.c (translate_insn_rn, is_media_pseudo, 
429         sh64_media_reg_base_num, sh64_compact_reg_base_num, 
430         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
431         sh64_extract_return_value, sh64_show_media_regs, 
432         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type, 
433         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
434         sh64_pseudo_register_read, sh64_pseudo_register_write, 
435         sh64_do_pseudo_register, sh_compact_print_registers_info):
436         Delete unused variable 'tdep'.
437
438         * sh64-tdep.c: Coding standard and spelling comment fixes.
439         (sh64_extract_return_value): Replace deprecated_store_floating
440         with store_typed_floating.
441         (sh_sh64_register_convert_to_raw): Replace 
442         deprecated_store_floating with store_typed_floating.
443         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
444         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
445         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
446         sh64_extract_struct_value_address, sh64_pop_frame, 
447         sh64_extract_return_value, sh64_store_return_value,
448         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read, 
449         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
450         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
451         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
452         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
453         deprecated_register_virtual_type, deprecated_register_raw_size,
454         deprecated_max_register_raw_size, or 
455         deprecated_max_register_virtual_size.  Instead, just set
456         gdbarch_register_type.
457         (sh_sh64_register_raw_size): Delete.
458         (sh_sh64_register_virtual_size): Delete.
459
460 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
461
462         * dwarf2read.c (struct dwarf2_cu): New type.
463
464         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
465         dwarf2_cu structure to pass down.
466
467         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
468         (add_partial_enumeration, locate_pdi_sibling, process_die)
469         (read_file_scope, read_func_scope)
470         (read_lexical_block_scope, dwarf2_get_pc_bounds)
471         (dwarf2_add_field, dwarf2_attach_fields_to_type)
472         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
473         (read_structure_scope, read_enumeration, read_array_type)
474         (read_common_block, read_namespace, read_tag_pointer_type)
475         (read_tag_ptr_to_member_type, read_tag_reference_type)
476         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
477         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
478         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
479         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
480         (read_full_die. read_attribute_value, read_attribute)
481         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
482         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
483         (die_containing_type, type_at_offset, tag_type_to_type)
484         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
485         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
486
487 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
488
489         PR breakpoints/1450
490         * breakpoint.c (insert_bp_location): Fix a logic error by returning
491         0 after a catchpoint fails.
492
493 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
494
495         * mips-tdep.c (msymbol_size): Delete.
496
497 2003-11-07  Michael Chastain  <mec@shout.net>
498
499         * symtab.h (struct minimal_symbol): Add size.
500         * dbxread.c: Use it.
501         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
502         Rename to record_minimal_symbol.
503         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
504         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
505         (install_minimal_symbols): Ditto.
506         * objfiles.c (terminate_minimal_symbol_table): Ditto.
507         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
508         * m68hc11-tdep.c: Ditto.
509         * mips-tdep.c: Ditto.
510         * sh64-tdep.c: Ditto.
511
512 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
513
514         * MAINTAINERS: Change my e-mail address.
515
516 2003-11-10  Andrew Cagney  <cagney@redhat.com>
517
518         * gdbarch.sh (return_value): Replace "inval" and "outval" with
519         "readbuf" and "writebuf".
520         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
521         * d10v-tdep.c (d10v_return_value): Ditto.
522         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
523         (ppc_sysv_abi_broken_return_value): Ditto.
524         (ppc64_sysv_abi_return_value): Ditto.
525         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
526         (ppc_sysv_abi_return_value): Ditto.
527         (ppc_sysv_abi_broken_return_value): Ditto.
528         (ppc64_sysv_abi_return_value): Ditto.
529         * values.c (register_value_being_returned): Update call.
530         * stack.c (return_command): Update call.
531         * gdbarch.h, gdbarch.c: Re-generate.
532
533         * target.h (struct target_ops): Order xfer buffer parameters "read
534         write" not "write read".
535         * bfd-target.c (target_bfd_xfer_partial): Update.
536         * remote.c (remote_xfer_partial): Update.
537         * inftarg.c (child_xfer_partial): Update.
538         * target.c (default_xfer_partial): Update.
539         (target_read_partial, target_write_partial): Update.
540         (debug_to_xfer_partial): Update.
541
542         * arch-utils.h, arch-utils.c: Fix typo in comment.
543
544         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
545         (gdbarch_from_bfd): Call gdbarch_find_by_info.
546         (set_gdbarch_from_file): Call
547         "deprecated_current_gdbarch_select_hack".
548
549 2003-11-09  Andrew Cagney  <cagney@redhat.com>
550
551         * arch-utils.c (gdbarch_update_p): New function.
552         * gdbarch.sh (gdbarch_update_p): Delete function.
553         (find_arch_by_info, gdbarch_find_by_info): New functions.
554         (deprecated_current_gdbarch_select_hack): New function.
555         * gdbarch.c: Re-generate.
556
557         * gdbarch.sh (clear_gdbarch_swap): Delete function.
558         (swapout_gdbarch_swap): Delete function.
559         (swapin_gdbarch_swap): Delete function.
560         (init_gdbarch_swap): Delete function.
561         (initialize_non_multiarch): Delete function.
562         (current_gdbarch_swap_in_hack): New function.
563         (current_gdbarch_swap_out_hack): New function.
564         (current_gdbarch_swap_init_hack): New function.
565         * gdbarch.c: Re-generate.
566
567         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
568         parameter to "current_gdbarch".  Add comment explaining why.
569         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
570         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
571         * gdbarch.c: Re-generate.
572         
573         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
574         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
575         * config/s390/xm-linux.h: Delete file.
576         * config/m88k/xm-delta88v4.h: Delete stray.
577
578         * Makefile.in (arch-utils.o): Update dependencies.
579         * arch-utils.c: Include "osabi.h".
580         (gdbarch_info_fill): New function.
581         * arch-utils.h (gdbarch_info_fill): Declare.
582         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
583         * gdbarch.c: Re-generate.
584
585 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
586             David S. Miller  <davem@redhat.com>
587
588         * glibc-tdep.c, glibc-tdep.h: New files.
589         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
590         * config/i386/linux.mt (TDEPFILES): Likewise.
591         * i386-linux-tdep.c (glibc-tdep.h): Include.
592         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
593         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
594         * arm-linux-tdep.c (glibc-tdep.h): Include.
595         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
596         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
597         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
598         (glibc_tdep_h): Define.
599         (glibc-tdep.o): Add dependencies.
600         (arm-linux-tdep.o): Update dependencies.
601         (i386-linux-tdep.o): Likewise.
602
603 2003-11-09  Andrew Cagney  <cagney@redhat.com>
604
605         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
606         * config/mips/nm-irix6.h: Delete file.
607         * config/mips/nm-linux.h: Update copyright.
608         (MIPS_GNULINUX_TARGET): Delete macro.
609         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
610         * config/mips/xm-irix6.h: Delete file.
611         * config/mips/linux.mh (XM_FILE): Delete definition.
612         * config/mips/xm-linux.h: Delete file.
613
614 2003-11-09  Andrew Cagney  <cagney@redhat.com>
615
616         * d10v-tdep.c (d10v_return_value): New function.
617         (d10v_use_struct_convention): Delete function.
618         (d10v_store_return_value): Delete function.
619         (d10v_extract_struct_value_address): Delete function.
620         (d10v_gdbarch_init): Set "return_value" instead of
621         "extract_return_value", "store_return_value",
622         "extract_struct_value_address", and "use_struct_convention".
623         (RET1_REGNUM): Delete const.
624
625 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
626
627         From David S. Miller  <davem@redhat.com>:
628         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
629         * gdbarch.c, gdbarch.h: Regenerated.
630         * arch-utils.c (generic_skip_solib_resolver): New function.
631         * arch-utils.h (generic_skip_solib_resolver): New prototype.
632         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
633
634 2003-11-07  Andrew Cagney  <cagney@redhat.com>
635
636         * top.c (print_gdb_version): Replace STREQ with strcmp.
637         * valops.c (value_struct_elt_for_reference): Ditto.
638         (value_struct_elt_for_reference): Ditto.
639         * symtab.c (gdb_mangle_name): Ditto.
640         (find_line_symtab): Ditto.
641         * symmisc.c (maintenance_print_symbols): Ditto.
642         * symfile.c (symbol_file_command): Ditto.
643         * stabsread.c (define_symbol, read_type): Ditto.
644         (cleanup_undefined_types, scan_file_globals): Ditto.
645         * solib.c (solib_map_sections): Ditto.
646         * solib-svr4.c (bfd_lookup_symbol): Ditto.
647         * rs6000-tdep.c (skip_prologue): Ditto.
648         * p-valprint.c (pascal_value_print): Ditto.
649         (pascal_object_is_vtbl_ptr_type): Ditto.
650         * objfiles.c (in_plt_section): Ditto.
651         * minsyms.c (lookup_minimal_symbol): Ditto.
652         (compact_minimal_symbols): Ditto.
653         (find_solib_trampoline_target): Ditto.
654         * mdebugread.c (parse_type): Ditto.
655         * language.c (set_language_command): Ditto.
656         (set_type_command, set_range_command): Ditto.
657         * f-lang.c (add_common_block): Ditto.
658         (add_common_block): Ditto.
659         (find_first_common_named): Ditto.
660         (patch_all_commons_by_name): Ditto.
661         * elfread.c (elf_locate_sections): Ditto.
662         (elf_locate_sections): Ditto.
663         (elfstab_offset_sections): Ditto.
664         * dwarf2read.c (dwarf2_locate_sections): Ditto.
665         * dbxread.c (add_old_header_file): Ditto.
666         (find_corresponding_bincl_psymtab): Ditto.
667         (read_dbx_symtab, process_one_symbol): Ditto.
668         * coffread.c (patch_opaque_types): Ditto.
669         * cli/cli-decode.c (delete_cmd): Ditto.
670         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
671         * c-typeprint.c (c_type_print_base): Ditto.
672         * breakpoint.c (bpstat_stop_status): Ditto.
673         (clear_command, breakpoint_re_set_one): Ditto.
674
675 2003-11-07  Andrew Cagney  <cagney@redhat.com>
676
677         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
678         * bcache.c (struct bstring): Make "length" an unsigned short, add
679         "half_hash".
680         (struct bcache): Add "half_hash_error_count".
681         (bcache): Compute and save the "half_hash".  Compare the
682         "half_hash" before comparing the length.  Update
683         half_hash_error_count.
684
685 2003-11-07  Andrew Cagney  <cagney@redhat.com>
686
687         * inftarg.c (child_xfer_partial): New function
688         (init_child_ops): Set "to_xfer_partial".
689
690 2003-11-07  Andrew Cagney  <cagney@redhat.com>
691
692         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
693         set "return_value" instead of "use_struct_convention".
694         (ppc_linux_use_struct_convention): Delete function.
695         (ppc_linux_return_value): New function.
696         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
697         (ppc_sysv_abi_broken_return_value): New function.
698         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
699         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
700         static.
701         (ppc_sysv_abi_extract_return_value): Delete function.
702         (ppc_sysv_abi_broken_extract_return_value): Delete function.
703         (ppc_sysv_abi_store_return_value): Delete function.
704         (ppc_sysv_abi_broken_store_return_value): Delete function.
705         (ppc_sysv_abi_use_struct_convention): Delete function.
706         (ppc64_sysv_abi_use_struct_convention): Delete function.
707         (ppc64_sysv_abi_extract_return_value): Delete function.
708         (ppc64_sysv_abi_store_return_value): Delete function.
709         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
710         (ppcnbsd_init_abi): Set "return_value", instead of
711         "use_struct_convention", "extract_return_value", and
712         "store_return_value".
713         (ppcnbsd_use_struct_convention): Delete function.
714         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
715         (ppc_sysv_abi_return_value): Declare.
716         (ppc_sysv_abi_broken_return_value): Declare.
717         (ppc_sysv_abi_use_struct_convention): Delete.
718         (ppc_sysv_abi_store_return_value): Delete.
719         (ppc_sysv_abi_extract_return_value): Delete.
720         (ppc_sysv_abi_broken_store_return_value): Delete.
721         (ppc_sysv_abi_broken_extract_return_value): Delete.
722         (ppc64_sysv_abi_use_struct_convention): Delete.
723         (ppc64_sysv_abi_extract_return_value): Delete.
724         (ppc64_sysv_abi_store_return_value): Delete.
725         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
726         set "return_value" instead of "extract_return_value",
727         "store_return_value", and "use_struct_convention".
728
729 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
730
731         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
732
733         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
734         fscanf.
735
736 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
737
738         * fbsd-proc.c: Fix formatting.
739
740 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
741
742         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
743         Define.
744         (new_variant): Set name for iacc0_regnum.
745         (frv_register_name): Accommodate pseudo-registers.
746         (frv_register_type): Add case for iacc0_regnum.
747         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
748         (frv_gdbarch_init): Set number of pseudo registers.  Establish
749         pseudo-register read/write methods.
750
751 2003-11-06  Andrew Cagney  <cagney@redhat.com>
752
753         * valops.c (destructor_name_p): Replace STREQN with strncmp.
754         * top.c (command_line_input): Ditto.
755         * objc-exp.y (yylex): Ditto.
756         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
757         * jv-exp.y (yylex): Ditto.
758         * f-exp.y (yylex): Ditto.
759         * event-top.c (command_line_handler): Ditto.
760         * environ.c (get_in_environ): Ditto.
761         (set_in_environ): Ditto.
762         * dwarfread.c (handle_producer): Ditto.
763         * dbxread.c (process_one_symbol): Ditto.
764         * c-typeprint.c (c_type_print_base): Ditto.
765         * c-exp.y (yylex): Ditto.
766
767 2003-11-06  Andrew Cagney  <cagney@redhat.com>
768             Jeff Johnston  <jjohnstn@redhat.com>
769
770         * target.c (add_target): Only set "to_xfer_partial" when NULL.
771         (init_dummy_target): Set "to_xfer_partial".
772
773 2003-11-06  Andrew Cagney  <cagney@redhat.com>
774
775         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
776         REGISTER_CONVENTION.
777
778 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
779
780         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
781         static.
782
783 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
784
785         * breakpoint.c (remove_breakpoint): Take an bp_location
786         instead of a breakpoint argument.  Check the bp_location's type.
787         Fix a reversed condition for hardware breakpoints.
788
789         (insert_bp_location): Update call to remove_breakpoint.
790         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
791         (remove_hw_watchpoints): Likewise.
792         (reattach_breakpoints): Likewise.
793         (detach_breakpoints): Likewise.
794         (delete_breakpoint): Likewise.
795
796 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
797
798         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
799         (beakpoint_init_inferior): Likewise.
800         (breakpoint_here_p): Likewise.  Only check addresses for software
801         or hardware breakpoints.
802         (breakpoint_inserted_here_p): Likewise.
803         (breakpoint_thread_match): Likewise.  Correct comment.
804         (bpstat_have_active_hw_watchpoints): Likewise.
805         (check_duplicates): Likewise.
806
807 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
808
809         * breakpoints.c (insert_bp_location): New function, broken out
810         from insert_breakpoints.  Work on an bp_location instead of a
811         breakpoint.
812         (insert_breakpoints): Use it.
813
814 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
815
816         * breakpoint.h (struct bp_location): Add section.
817         (struct breakpoint): Remove section.
818         * breakpoint.c (insert_breakpoints, remove_breakpoint)
819         (breakpoint_here_p, breakpoint_inserted_here_p)
820         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
821         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
822         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
823         section through loc.
824
825 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
826
827         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
828         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
829
830 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
831
832         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
833         arguments.  Initialize owner and type for the new breakpoint
834         location item.
835         (set_raw_breakpoint): Update call to allocate_bp_location.
836
837 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
838
839         * breakpoint.h (struct bp_location): Add a chain pointer.
840         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
841         macros.
842         (bp_location_chain): New variable.
843         (allocate_bp_location): New function.
844         (set_raw_breakpoint): Use it.
845         (delete_breakpoint): Remove ->loc from the bp_location_chain.
846
847 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
848
849         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
850         (struct breakpoint): Remove address, shadow_contents, inserted,
851         requested_address, and duplicate.  Add a struct bp_location.
852         * breakpoint.c (condition_command, read_memory_nobpt)
853         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
854         (reattach_breakpoints, update_breakpoints_after_exec)
855         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
856         (breakpoint_init_inferior, breakpoint_here_p)
857         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
858         (breakpoint_thread_match, bpstat_stop_status)
859         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
860         (describe_other_breakpoints, check_duplicates)
861         (make_breakpoint_permanent, create_thread_event_breakpoint)
862         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
863         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
864         (watch_command_1, print_one_exception_catchpoint)
865         (clear_command, breakpoint_re_set_one): Adjust member accesses to
866         use the breakpoint's ->loc.
867         (set_raw_breakpoint): Likewise.  Initialize ->loc.
868         (delete_breakpoint): Likewise.  Free ->loc.
869
870 2003-11-05  Andrew Cagney  <cagney@redhat.com>
871
872         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
873         macro.
874         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
875         * config/i386/tm-cygwin.h
876         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
877         * config/powerpc/tm-linux.h
878         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
879         (at_subroutine_call_instruction_target): Delete declaration.
880         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
881         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
882         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
883
884         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
885         "struct bfd_section" and "struct bfd".
886         * target.h (struct section_table): Ditto.
887         * rs6000-nat.c (xcoff_relocate_core): Ditto.
888         * solib-svr4.c (elf_locate_base): Ditto.
889         * pa64solib.c (dld_cache_t): Ditto.
890         * objfiles.h (struct obj_section): Ditto.
891         * objfiles.c (add_to_objfile_sections): Ditto.
892         * exec.c (bfdsec_to_vmap): Ditto.
893         (add_to_section_table): Ditto.
894         (build_section_table): Ditto.
895         * corelow.c (get_core_register_section): Ditto.
896         * coffread.c (find_linenos): Ditto.
897         * elfread.c (elf_interpreter): Delete #if0'd function.
898
899         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
900         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
901         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
902         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
903
904         * arch-utils.h (generic_cannot_extract_struct_value_address):
905         Delete declaration.
906         * wince.c (_initialize_wince): Fix multi-line string.
907         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
908
909 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
910
911         * top.c (execute_command): Fix broken logic for command execution
912         while inferior is running in async mode.
913
914 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
915
916         * dwarf2-frame.c (execute_cfa_program): Mark register as
917         REG_SAVED_REG for DW_CFA_register opcode.
918
919 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
920
921         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
922         %rsp, %rip and %eflags to match ABI-change.
923
924 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
925
926         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
927         (ia64_gdbarch_init): Don't bother calculating the os.  
928         Instead use the gdbarch_info struct and look at the osabi field.  
929         Also use gdbarch_list_lookup_by_info() to look for a 
930         candidate gdbarch. 
931
932 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
933
934         * frv-tdep.c (frv_register_byte): Delete.
935         (frv_extract_return_value, frv_store_return_value)
936         (frv_extract_struct_value_address): Don't call frv_register_byte().
937         Convert to non-deprecated form.
938         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
939         Convert calls to set_gdbarch_deprecated_extract_return_value(),
940         set_gdbarch_deprecated_store_return_value(), and
941         set_gdbarch_deprecated_extract_struct_value_address() into
942         non-deprecated forms.
943
944 2003-11-05  Andrew Cagney  <cagney@redhat.com>
945
946         * mips-tdep.c (mips_dump_tdep): Do not print
947         PRINT_EXTRA_FRAME_INFO.
948         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
949         Rename PRINT_EXTRA_FRAME_INFO.
950         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
951         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
952         (mips_print_extra_frame_info): Delete declaration.
953         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
954
955 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
956
957         * coffread.c (coff_symtab_read): Remove passing of info parameter
958         to prim_record_minimal_symbol_and_info.
959
960 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
961
962         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
963         (decode_base_type): Delete ifdeffed out code.
964
965 2003-11-04  Andrew Cagney  <cagney@redhat.com>
966
967         * symtab.c (find_active_alias): Delete function.
968         (lookup_block_symbol): Delete alias code.
969         * stabsread.c (resolve_live_range): Delete function.
970         (add_live_range): Delete function.
971         (resolve_symbol_reference): Delete function.
972         (define_symbol): Delete live range and alias code.
973         (scan_file_globals): Delete alias code.
974         * symtab.h (SYMBOL_RANGES): Delete macro.
975         (struct range_list): Delete structure.
976         (struct symbol): Delete field "ranges".
977         (SYMBOL_ALIASES): Delete macro.
978         (struct alias_list): Delete structure.
979         (struct symbol): Delete field "aliases".
980
981 2003-11-04  Michael Snyder  <msnyder@redhat.com>
982
983         * MAINTAINERS: Remove myself as owner of breakpoints and 
984         of sparc/solaris.
985
986 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
987
988         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
989         (sh_sh4al_dsp_register_name): Ditto.
990         (sh4_nofpu_show_regs): Ditto.
991         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
992         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
993
994 2003-11-03  Andrew Cagney  <cagney@redhat.com>
995
996         * bcache.c: Include "gdb_assert.h".
997         (struct bcache): Add fields "expand_count" and
998         "expand_hash_count".
999         (expand_hash_table): Update the expand counts.
1000         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
1001         on object sizes and hashes.
1002         * Makefile.in (bcache.o): Update dependencies.
1003
1004 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1005
1006         * exec.c (xfer_memory): Eliminate xfer_fn.
1007
1008 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
1009
1010         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1011         (opcodes/frv-desc.h): Include.
1012         (iacc0h_regnum, iacc0l_regnum): Define.
1013         (last_spr_regnum, frv_num_regs): Update.
1014         (new_variant): Don't supply default names for holes in the SPRs.
1015         Supply names for iacc0h_regnum and iacc0l_regnum.
1016         (frv_register_type): Use symbolic constants first_fpr_regnum and
1017         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
1018         builtin_type_int instead of builtin_type_int32.
1019         (frv_register_sim_regno): New function.
1020         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1021         * Makefile.in (gdb_sim_frv_h): Define.
1022         (frv-tdep.o): Update dependencies.
1023
1024 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1025
1026         * avr-tdep.c (avr_frame_this_id): Do not call
1027         deprecated_inside_entry_file.
1028         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1029         * m32r-tdep.c (m32r_frame_this_id): Ditto.
1030         * d10v-tdep.c (d10v_frame_this_id): Ditto.
1031         * arm-tdep.c (arm_prologue_this_id): Ditto.
1032         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1033
1034 2003-10-31  Jim Blandy  <jimb@redhat.com>
1035
1036         * elfread.c (elf_symtab_read): Allocate correct number of tail
1037         elements to sectinfo structure.  (Fix from Woody LaRue.)
1038
1039 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1040
1041         * stack.c (return_command): Use get_frame_type, instead of
1042         CALL_DUMMY_HAS_COMPLETED.
1043         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1044         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1045
1046 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1047
1048         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1049         explicitly specify size of array.
1050         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1051         TDEP->sc_num_regs.
1052
1053 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1054
1055         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1056         function.
1057         (s390_gdbarch_init): Set extract_struct_value_address.
1058         * arch-utils.c (generic_cannot_extract_struct_value_address):
1059         Delete function.
1060         * arch-utils.h (generic_cannot_extract_struct_value_address):
1061         Delete definition.
1062
1063 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1064
1065         * i386-linux-nat.c (fetch_core_registers): Remove.
1066         (linux_elf_core_fns): Remove.
1067         (_initialize_i386_linux_nat): Remove.
1068
1069 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1070
1071         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
1072         "exec.h".
1073         (exec_entry_point): New function.
1074         (enable_break): Create a "tmp_bfd_target", use that and
1075         entry_point_address when computing the relocation offset.
1076         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1077         * Makefile.in (solib-svr4.o): Update dependencies.
1078
1079 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1080
1081         * defs.h (XZALLOC): Define.
1082         * target.h (struct target_ops): Add "to_data";
1083         * bfd-target.h, bfd-target.c: New files.
1084         * Makefile.in (SFILES): Add "bfd-target.c".
1085         (COMMON_OBS): Add "bfd-target.o".
1086         (bfd-target.o): Specify dependencies.
1087         (bfd_target_h): Define.
1088         * defs.h (XZALLOC): Define.
1089
1090 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1091
1092         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1093         adjust_breakpoint_address.
1094         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1095         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1096         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1097         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1098
1099 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1100
1101         * target.h (struct target_ops): Replace "to_read_partial" and
1102         "to_write_partial" with "to_xfer_partial".  Update comments.
1103         * target.c (debug_to_write_partial): Delete function.
1104         (debug_to_xfer_partial): Replace debug_to_read_partial.
1105         (add_target, update_current_target, setup_target_debug): Set
1106         "to_xfer_partial" instead of "to_read_partial" and
1107         "to_write_partial".
1108         (default_xfer_partial): Replace "default_write_partial".
1109         (default_read_partial): Delete.
1110         (target_read_partial, target_write_partial): Call
1111         "to_xfer_partial".
1112         * remote.c (init_remote_ops): Set "to_xfer_partial".
1113         (init_remote_async_ops): Ditto.
1114         (remote_xfer_partial): Replace "remote_read_partial".
1115
1116 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1117
1118         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1119         registers in `fxsave' format.
1120         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1121
1122 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
1123
1124         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1125         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1126         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1127
1128         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1129         specify size of array.
1130         (i386_linux_init_abi): Remove initialization of
1131         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1132         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1133
1134         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1135         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1136         core-regset.o.
1137
1138         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1139         the ELF header.
1140
1141 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1142
1143         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1144         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1145         core-regset.o.
1146
1147         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1148
1149         * corelow.c: Include "arch-utils.h", "regset.h" and
1150         "gdb_assert.h".
1151         (core_gdbarch): New variable.
1152         (sniff_core_bfd): Don't sniff if we have support for register sets
1153         in CORE_GDBARCH.
1154         (core_close): Reset CORE_GDBARCH.
1155         (core_open): Initialize CORE_GDBARCH.
1156         (get_core_register_section): Use register sets if they are
1157         supported by CORE_GDBARCH.
1158         (get_core_registers): Don't print error message if we have support
1159         for register sets in CORE_GDBARCH.
1160
1161 2003-10-29  Andrew Cagney  <cagney@redhat.com>
1162
1163         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1164         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1165
1166 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1167
1168         * objfiles.h (clear_objfile_data): New prototype.
1169         * objfiles.c (clear_objfile_data): New function.
1170         * symfile.c (reread_symbols): Clear per-objfile data.
1171
1172 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
1173  
1174         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1175         printf_unfiltered instead of printf_filtered for output messages.
1176         (add_symbol_file_command): Ditto.
1177         (reread_symbols): Ditto.
1178         (overlay_auto_command): Ditto.
1179         (overlay_manual_command): Ditto.
1180         (overlay_off_command): Ditto.
1181
1182 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
1183
1184         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1185         (gdbarch_from_bfd): New function.
1186         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1187         deprecated_select_gdbarch_hack.
1188         * arch-utils.h (gdbarch_from_bfd): New prototype.
1189
1190 2003-10-27  Andrew Cagney  <cagney@redhat.com>
1191
1192         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1193         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1194         deprecated bfd_printable_arch_mach.
1195
1196 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
1197
1198         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1199         Delete.
1200         (frv_register_type): Rename from frv_register_virtual_type.  Add
1201         ``struct gdbarch *'' parameter.
1202         (frv_gdbarch_init): Delete calls to the following functions:
1203         set_gdbarch_deprecated_size(),
1204         set_gdbarch_deprecated_register_bytes(),
1205         set_gdbarch_deprecated_register_raw_size(),
1206         set_gdbarch_deprecated_max_register_raw_size(),
1207         set_gdbarch_deprecated_register_virtual_size(),
1208         set_gdbarch_deprecated_max_register_virtual_size(),
1209         set_gdbarch_deprecated_register_virtual_size(),
1210         set_gdbarch_deprecated_register_virtual_type().
1211         Add call to function set_gdbarch_register_type().
1212
1213 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
1214
1215         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1216         FDOFF_REGNUM): Remove defines.
1217         * win32-nat.c (do_child_fetch_inferior_registers): Include
1218         "i387-tdep.h".
1219         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1220         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1221         undefine I387_ST0_REGNUM.
1222
1223         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1224         * x86-64-tdep.c (x86_64_store_return_value): Use
1225         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1226
1227         Change register numbers to enumartion values.
1228         * i386-tdep.h (enum i386_regnum): New.
1229         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1230         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1231         I386_ST0_REGNUM): Remove defines.
1232         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1233         I386_EDI_REGNUM): Remove defines.
1234
1235 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1236
1237         * target.c: Include "gdbcore.h".
1238         (get_target_memory, get_target_memory_unsigned): New functions.
1239         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1240         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1241         Use get_target_memory_unsigned.
1242         * Makefile.in (target.o): Update dependencies.
1243
1244 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1245
1246         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1247         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1248         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1249         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1250         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1251
1252         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1253         (can_run_code_for): Use the OO term "singleton".
1254
1255 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1256
1257         * Makefile.in (stack.o): Add $(regcache_h).
1258         * stack.c: Include "regcache.h"
1259         (return_command): Rewrite.  Use get_frame_id and
1260         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1261         about unhandled return-values.
1262         * value.h (set_return_value): Delete declaration.
1263         * values.c (set_return_value): Delete function.
1264
1265 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1266
1267         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1268         (pseudo_regs): Add comment regarding register stack registers.
1269         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1270         (floatformat_valid): New static routine.
1271         (floatformat_ia64_ext): Add name field and set up is_valid routine
1272         to floatformat_valid().
1273         (examine_prologue):  For the previous cfm, use
1274         frame_unwind_register()
1275         if the cfm is not stored in a register-stack register.  Save the
1276         previous cfm value in the prev_cfm field.  Add debug output.
1277         (ia64_frame_this_id): Use frame_id_build_special() to also register
1278         the bsp.  Add debug output.
1279         (ia64_sigtramp_frame_this_id): Ditto.
1280         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1281         registers and also add some checks for framelessness before accepting
1282         current register values for fields such as return address.  For cfm,
1283         use the cached prev_cfm field if available.  Add comment to explain
1284         PSR logic.  Add debug output.
1285         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1286         as part of initialization.
1287         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1288         calculated.  Cache the bsp and cfm values.
1289         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1290         instead of using ia64_frame_prev_register() which doesn't expect most
1291         registers to be saved.  The saved values for bsp and sp
1292         can be taken from the cache.  Add debug output.
1293         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1294         the bsp.
1295
1296 2003-10-23  Jim Blandy  <jimb@redhat.com>
1297
1298         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1299         architecture the current arch can run code for --- but not if it's
1300         a superset.
1301         (can_run_code_for): New function.
1302
1303 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1304
1305         * MAINTAINERS: Move myself from paper trail section back to write
1306         after approval section.
1307
1308 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1309
1310         * exec.h: New file.
1311         * win32-nat.c: Include "exec.h".
1312         * solib.c: Include "exec.h".
1313         * target.h (build_section_table): Delete declaration.
1314         * somsolib.c: Include "exec.h".
1315         (exec_ops): Delete extern declaration.
1316         * rs6000-nat.c: Update copyright.  Include "exec.h".
1317         (exec_ops): Delete extern declaration.
1318         * pa64solib.c: Update copyright.  Include "exec.h".
1319         (exec_ops): Delete extern declaration.
1320         * exec.c: Update copyright.  Include "exec.h".
1321         * corelow.c: Update dependencies.  Include "exec.h".
1322         * Makefile.in (exec_h): Define.
1323         (exec.o, somsolib.o): Update dependencies.
1324         (pa64solib.o, corelow.o): Update dependencies.
1325
1326 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1327
1328         * target.c: Include "gdb_assert.h" (target_read): Call
1329         "target_read_partial", not "target_write_partial".
1330         (default_read_partial, default_write_partial): New function.
1331         (target_read_partial, target_write_partial): Simplify, assume that
1332         there is always a read/write method.
1333         (update_current_target, add_target): Always set "to_read_partial"
1334         and "to_write_partial".
1335         (target_write, target_read): Fail on a zero byte transfer.
1336         * Makefile.in (target.o): Update dependencies.
1337         * target.h: Update copyright date.
1338         (target_object): Fix typo.
1339
1340 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1341
1342         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1343         multi-arch method, add "targ" parameter.
1344         (struct target_ops): Declare.   
1345         * gdbarch.h, gdbarch.c: Re-generate.
1346         * Makefile.in (c-valprint.o): Update dependencies.
1347         * arch-utils.h: Update copyright.
1348         (convert_from_func_ptr_addr_identity): Declare.
1349         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1350         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1351         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1352         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1353         * infcall.c (find_function_addr, call_function_by_hand): Update.
1354         * c-valprint.c: Include "target.h".
1355         (print_function_pointer_address): Update.
1356
1357 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1358
1359         * target.c (target_close): New function.
1360         (debug_to_close): Use "target_close".
1361         (push_target): Use "target_close".
1362         (unpush_target): Use "target_close".
1363         (pop_target): Use "target_close".
1364         * target.h (struct target_ops): Add "to_xclose".
1365         (target_open): Delete macro.  Move comment to "to_open".
1366         (target_close): Replace macro with function that takes a target.
1367         * top.c (quit_target): Pass "current_target" to "target_close".
1368
1369 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1370
1371         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1372         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1373         * symtab.h (lookup_minimal_symbol_text): Update.
1374         * breakpoint.c (create_overlay_event_breakpoint,
1375         create_longjmp_breakpoint): Update callers.
1376         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1377         * symtab.c (find_pc_sect_line): Ditto.
1378
1379 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1380
1381         * target.c (errno): Delete extern declaration.
1382
1383 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1384
1385         * ia64-tdep.c: Change all occurrences of
1386         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1387         (ia64_frame_prev_register): Minor whitespace change.
1388
1389 2003-10-20  Michael Chastain  <mec@shout.net>
1390
1391         * config/djgpp/fnchange.lst: Add lines for:
1392         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1393         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1394         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1395         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1396         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1397         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1398         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1399
1400 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1401
1402         * values.c (register_value_being_returned): Update comments.  Use
1403         "gdbarch_return_value" when available.
1404         (using_struct_return): Ditto.
1405         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1406         available..  Print a warning, and not an error, when an unhandled
1407         return type is encountered.
1408         * infcmd.c: Include "gdb_assert.h".
1409         (print_return_value): When gdbarch_return_value_p, and using
1410         struct return, assume that the value is not available.
1411         * defs.h (return_value_convention): Define.
1412         * gdbarch.sh (gdbarch_return_value): New predicate method.
1413         * gdbarch.h, gdbarch.c: Re-generate
1414         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1415
1416 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1417
1418         * symtab.c: Replace "struct sec" with "struct bfd_section".
1419         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1420
1421 2003-10-19  Michael Chastain  <mec@shout.net>
1422
1423         * config/djgpp/fnchange.lst: Add lines for:
1424         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1425         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1426         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1427
1428 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1429
1430         * amd64fbsd-nat.c (fetch_inferior_registers,
1431         store_inferior_registers): Remove functions.
1432         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1433
1434 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1435
1436         Add NetBSD/amd64 native configuration:
1437         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1438         * amd64nbsd-tdep.c: New file.
1439         * amd64nbsd-nat.c: New file.
1440         * amd64bsd-nat.c: New file.
1441         * config/i386/nbsd64.mh: New file.
1442         * config/i386/nbsd64.mt: New file.
1443         * configure.host: Add x86_64-*-netbsd*.
1444         * configure.tgt: Add x86_64-*-netbsd*.
1445         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1446         New targets.
1447         * NEWS (New native configurations): Mention NetBSD/amd64.
1448
1449 2003-10-17  Michael Chastain  <mec@shout.net>
1450
1451         * config/djgpp/fnchange.lst: Remove dead lines for:
1452         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1453         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1454         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1455         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1456         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1457         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1458         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1459         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1460         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1461         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1462         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1463         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1464         gdb/config/sparc/tm-sparclite.h,
1465         gdb/gdbtk/generic/ChangeLog-2001,
1466         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1467         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1468         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1469         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1470         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1471         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1472         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1473         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1474         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1475         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1476         itcl/iwidgets3.0.0/demos/fileselectionbox,
1477         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1478         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1479         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1480         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1481         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1482         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1483         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1484         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1485         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1486         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1487         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1488         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1489         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1490         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1491         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1492         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1493         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1494         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1495         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1496         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1497         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1498         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1499         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1500         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1501         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1502         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1503         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1504         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1505         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1506         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1507         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1508         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1509         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1510         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1511         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1512         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1513         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1514         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1515         itcl/iwidgets3.0.0/demos/scrolledframe,
1516         itcl/iwidgets3.0.0/demos/scrolledhtml,
1517         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1518         itcl/iwidgets3.0.0/demos/scrolledtext,
1519         itcl/iwidgets3.0.0/demos/selectionbox,
1520         itcl/iwidgets3.0.0/demos/selectiondialog,
1521         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1522         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1523         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1524         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1525         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1526         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1527         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1528         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1529         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1530         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1531         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1532         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1533         itcl/iwidgets3.0.0/doc/selectionbox.n,
1534         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1535         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1536         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1537         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1538         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1539         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1540         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1541         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1542         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1543         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1544         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1545         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1546         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1547         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1548         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1549         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1550         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1551         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1552         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1553         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1554         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1555         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1556         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1557         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1558         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1559         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1560         itcl/iwidgets3.0.0/tests/selectionbox.test,
1561         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1562         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1563         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1564         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1565         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1566         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1567         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1568         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1569         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1570         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1571         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1572         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1573         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1574         tk/mac/tkMacProjects.sit.hqx.
1575
1576 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1577
1578         * target.c (target_section_by_addr): New function.
1579         (do_xfer_memory): Use "target_section_by_addr".
1580         * target.h (target_section_by_addr): Declare.
1581
1582         * target.h (struct target_ops): Add "to_read_partial" and
1583         "to_write_partial", delete "to_query".
1584         (target_read_partial, target_write_partial): Declare.
1585         (target_read, target_write): Declare.
1586         (target_query): Delete macro.
1587         * target.c (target_read_partial): New function.
1588         (target_write_partial, target_read, target_write): New function.
1589         (update_current_target): Delete inheritance of "to_query".  Add
1590         comments about "to_read_partial" and "to_write_partial".
1591         (debug_to_partial_read, debug_to_partial_write): New functions.
1592         (debug_to_query): Delete function.
1593         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1594         instead of "to_query".
1595         * remote.c (remote_read_partial): Replace "remote_query".
1596         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1597         (init_remote_async_ops): Ditto.
1598         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1599         "target_read_partial" instead of "target_query".
1600         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1601         Use "target_read_partial" instead of "target_query".
1602
1603 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1604
1605         * frame.h (struct frame_id): Add new field: special_addr.
1606         (frame_id_build_special): New prototype.
1607         * frame.c (frame_id_build_special): New function.
1608         (frame_id_build): Change to call frame_id_build_special().
1609         (frame_id_eq): Change to also test special_addr field. 
1610         (frame_id_inner): Update comment. 
1611
1612 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1613
1614         * target.c (update_current_target): Perform the target cleanup.
1615         Put the target stack beneath the squashed "current_target".
1616         (add_target): Delete disabled call to "cleanup_target".
1617         (cleanup_target): Delete function.
1618         (push_target, unpush_target): Do not call "cleanup_target".
1619
1620 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1621
1622         * target.c (target_stack): Change to a static target_ops.
1623         (update_current_target): Walk the "struct target_ops" stack.
1624         (pop_target, do_xfer_memory, target_info): Ditto.
1625         (find_target_beneath): Ditto.
1626         (push_target): Rewrite to use the "struct target_ops" stack.
1627         (unpush_target): Ditto.
1628         * target.h (struct target_stack_item): Delete definition.
1629         (target_stack): Delete declaration.
1630         (struct target_ops): Add field "beneath".
1631
1632 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1633
1634         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1635         declaration.
1636         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1637         (h8300_examine_prologue): Use h8300_normal_mode flag
1638         (h8300_gdbarch_init): Set architecture info for normal mode
1639
1640 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1641
1642         * remote.c (remote_protocol_vcont): New variable.
1643         (set_remote_protocol_vcont_packet_cmd): New function.
1644         (show_remote_protocol_vcont_packet_cmd): New function.
1645         (init_all_packet_configs): Handle remote_protocol_vcont.
1646         (remote_vcont_probe): New function.
1647         (remote_vcont_resume): New function.
1648         (remote_resume): Use it.
1649         (remote_async_resume): Call remote_resume.
1650         (_initialize_remote): Add verbose-resume packet commands.
1651
1652 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1653
1654         * infrun.c (handle_inferior_event): Add comment about
1655         "frame_id_inner" being too weak.
1656
1657 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1658
1659         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1660         second parameter, which is always null. Remove
1661         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1662         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1663         accordingly.
1664         * somsolib.c (som_solib_create_inferior_hook,
1665         som_solib_desire_dynamic_linker_symbols): Update callers.
1666         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
1667
1668 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
1669
1670         * remote-m32r-sdi.c : New file, interface to m32r on-chip
1671         debug interface, SDI (Scalable Debug Interface).
1672         * NEWS: Mention m32r SDI protocol was supported.
1673         * Makefile.in (remote-m32r-sdi.o): Add build rule.
1674         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1675
1676 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
1677
1678         * ia64-linux-tdep.c: Include gdbcore.h.
1679         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1680         (ia64_linux_sigcontext_register_addr): Find the address of the
1681         sigcontext area stored in the sigframe instead of using
1682         a magic offset constant. 
1683
1684 2003-10-15  Andrew Cagney  <cagney@redhat.com>
1685
1686         * remote.c (remote_search): Delete function.
1687         * target.h (target_search): Delete disabled macro.
1688         (struct target_ops): Delete disabled field "to_search".
1689
1690 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
1691
1692         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1693         instead of deprecated_inside_entry_file().
1694
1695 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
1696
1697         * sh-tdep.c: Fix copy/paste hangover in comment.
1698         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1699         mode.
1700         (sh3e_sh4_extract_return_value): Ditto.
1701
1702 2003-10-13  Richard Henderson  <rth@redhat.com>
1703
1704         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1705         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
1706         match c_val_print a bit closer.
1707
1708 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1709
1710         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1711         (frv_gdbarch_adjust_breakpoint_address): New function.
1712         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1713         method.
1714
1715 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1716
1717         * breakpoint.h (struct breakpoint): Add new member
1718         ``requested_address''.
1719         * breakpoint.c (breakpoint_adjustment_warning)
1720         (adjust_breakpoint_address): New static functions.
1721         (print_it_typical): Issue warning if breakpoint's address is different
1722         from its requested address.
1723         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1724         (breakpoint_re_set_one):  Set breakpoint's
1725         ``requested_address'' field.  Set ``address'' field to the
1726         result of calling adjust_breakpoint_address() on the requested
1727         address.
1728
1729 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
1730
1731         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1732         * gdbarch.h, gdbarch.c: Regenerate.
1733
1734 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1735
1736         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1737         TDEP->sc_num_regs.
1738
1739         * i386fbsd-tdep.c: New file.
1740         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1741         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1742         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1743         i386bsd-tdep.c.
1744         (_initialize_i386fbsd_tdep): New function.
1745         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1746         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1747         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1748         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
1749         TDEP->sc_num_regs.
1750         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1751         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1752         to initialize TDEP->sc_num_regs.
1753         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1754         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1755         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1756         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1757         FreeBSD ELF OS/ABI's here.
1758         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1759         (i386fbsd-tdep.o): New target.
1760         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1761         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
1762
1763         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1764         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1765         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
1766         in initialization of TDEP->sc_num_regs.
1767
1768         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1769         (x86_64_init_abi): Initialize regset_from_core_section if
1770         appropriate.
1771
1772         * i386-tdep.c (i386_regset_from_core_section): New function.
1773         (i386_gdbarch_init): Initialize regset_from_core_section if
1774         appropriate.
1775         * i386-tdep.h (i386_regset_from_core_section): New declaration.
1776
1777         * i386-tdep.h (struct regset): Declare opaque.
1778
1779         * gdbarch.sh (regset_from_core_section): New method.
1780         (struct regset): Declare opaque.
1781         * gdbarch.c, gdbarch.h: Regenerated.
1782
1783 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
1784
1785         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1786         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
1787         Correct test for pc within section.
1788
1789 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
1790
1791         * gdbarch.sh: Remove trailing whitepsace from comments.
1792
1793 2003-10-08  Roland McGrath  <roland@redhat.com>
1794
1795         * gcore.c (make_mem_sec): Function removed, folded into ...
1796         (gcore_create_callback): ... here.  To omit a section, clear its
1797         SEC_LOAD bit rather than zeroing its size.
1798         Omit read-only sections only if they correspond to a known disk file.
1799         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1800
1801 2003-10-10  Michael Snyder  <msnyder@redhat.com>
1802
1803         * d10v-tdep.c: Fix typo in comment.
1804
1805 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1806
1807         * rs6000-tdep.c (e500_store_return_value): Delete function.
1808         (e500_extract_return_value): Delete function.
1809         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1810         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1811         "ppc_sysv_abi_restore_return_value" where applicable.
1812         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1813         (ppc_sysv_abi_extract_return_value): Declare.
1814         (ppc_sysv_abi_broken_store_return_value): Declare.
1815         (ppc_sysv_abi_broken_extract_return_value): Declare.
1816         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1817         * ppc-sysv-tdep.c (return_value_convention): Move definition to
1818         start of file.
1819         (do_ppc_sysv_return_value): New function.
1820         (ppc_sysv_abi_extract_return_value): New function.
1821         (ppc_sysv_abi_store_return_value): New function.
1822         (ppc_sysv_abi_broken_extract_return_value): New function.
1823         (ppc_sysv_abi_broken_store_return_value): New function.
1824         (ppc_sysv_abi_use_struct_convention): Call
1825         do_ppc_sysv_return_value.
1826
1827 2003-10-10  J. Brobecker  <brobecker@gnat.com>
1828
1829         * blockframe.c (inside_main_func): No longer use symbol_lookup()
1830         to lookup the main function symbol.
1831
1832 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1833
1834         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1835         types correctly.
1836         (sh_push_dummy_call_fpu): Fix argument passing rules.
1837         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1838         float types.
1839         (sh3e_sh4_store_return_value): Ditto.
1840
1841 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
1842
1843         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1844         comment.
1845
1846 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
1847
1848         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1849         more readable code.  Accomodate passing of bitfields.
1850
1851 2003-10-10  Andrew Cagney  <cagney@redhat.com>
1852
1853         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1854         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1855         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1856         * ppc-sysv-tdep.c: Include "gdb_assert.h".
1857         (ppc64_sysv_abi_push_dummy_call): New function.
1858         (ppc64_sysv_abi_broken_push_dummy_call): New function.
1859         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1860         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1861
1862 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
1863
1864         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1865         * README: Ditto.
1866         * d10v-tdep.c: Ditto.
1867         * h8300-tdep.c: Ditto.
1868         * remote-e7000.c: Ditto.
1869         * remote-hms.c: Ditto.
1870         * ser-e7kpc.c: Ditto.
1871         * sh-stub.c: Ditto.
1872         * sh-tdep.c: Ditto.
1873         * sh-tdep.h: Ditto.
1874         * sh3-rom.c: Ditto.
1875         * sh64-tdep.c: Ditto.
1876         * top.c: Ditto.
1877         * wince.c: Ditto.
1878         * config/d10v/d10v.mt: Ditto.
1879         * config/sh/embed.mt: Ditto.
1880         * config/sh/linux.mt: Ditto.
1881         * config/sh/tm-linux.h: Ditto.
1882         * config/sh/tm-sh.h: Ditto.
1883         * config/sh/wince.mt: Ditto.
1884
1885 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1886
1887         * ppc-tdep.h (struct type): Declare opaque.
1888         * x86-64-tdep.h (struct regcache): Declare opaque.
1889         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1890         coding style.
1891
1892 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1893
1894         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1895         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1896         (SOFTWARE_SINGLE_STEP_P): Ditto.
1897         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1898         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1899         (SOFTWARE_SINGLE_STEP_P): Ditto.
1900         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1901         software_single_step to rs6000_software_single_step.
1902
1903 2003-10-09  Andrew Cagney  <cagney@redhat.com>
1904
1905         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1906
1907 2003-10-09  Michael Snyder  <msnyder@redhat.com>
1908
1909         * frame.h: Fix typo in comment.
1910         * dummy-frame.c: Fix typo in comment.
1911         * d10v-tdep.c: Random whitespace/comment tweaks.
1912
1913 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
1914
1915         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1916         (sh_push_dummy_code): Delete function, it's only used for dummy calls
1917         on stack.
1918
1919         Based on input by Stephen Clarke (stephen.clarke@superh.com):
1920         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1921         in detail.
1922
1923 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1924
1925         * remote-mips.c (mips_initialize): Remove unneeded call to
1926         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1927
1928 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
1929
1930         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1931         a memory pointer.
1932
1933 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
1934
1935         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1936         for any lwp we resume.
1937         (running_callback): Add lwps that have pending status events
1938         against them to be considered running.
1939
1940 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
1941
1942         * m32r-tdep.c : Include "dis-asm.h".
1943         * Makefile.in (m32r-tdep.o): Update dependencies.
1944
1945 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1946
1947         * completer.h (get_gdb_completer_word_break_characters): Delete.
1948         * completer.c: include language.h.
1949         (gdb_completer_word_break_characters): Delete.
1950         (get_gdb_completer_word_break_characters): Delete.
1951         (location_completer): Use the word break characters of the current
1952         language.
1953         (complete_line): Likewise.
1954         (line_completion_function): Likewise.
1955         (skip_quoted_chars): Likewise.
1956         * Makefile.in (completer.o): Add dependency on language.h.
1957         * top.c (init_main): Set the readline word break characters
1958         to GDB's default word break characters.
1959
1960 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1961
1962         * language.h (language_defn): new field, la_word_break_characters.
1963         * language.c (unknown_language_defn): Set new field to
1964         default_word_break_characters.
1965         (auto_language_defn): Likewise.
1966         (local_language_defn): Likewise.
1967         * ada-lang.c (ada_language_defn): Likewise.
1968         * c-lang.c (c_language_defn): Likewise.
1969         (cplus_language_defn): Likewise.
1970         (asm_language_defn): Likewise.
1971         (minimal_language_defn): Likewise.
1972         * f-lang.c (f_language_defn): Likewise.
1973         * jv-lang.c (java_language_defn): Likewise.
1974         * m2-lang.c (m2_language_defn): Likewise.
1975         * objc-lang.c (objc_language_defn): Likewise.
1976         * p-lang.c (pascal_language_defn): Likewise.
1977         * scm-lang.c (scm_language_defn): Likewise.
1978
1979 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1980
1981         * ppc-sysv-tdep.c: Re-indent.
1982
1983 2003-10-06  J. Brobecker  <brobecker@gnat.com>
1984
1985         * language.h (default_word_break_characters): Add prototype.
1986         * language.c (default_word_break_characters): New function.
1987
1988 2003-10-06  Andreas Schwab  <schwab@suse.de>
1989
1990         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
1991         with %eax.
1992
1993 2003-10-06  Andrew Cagney  <cagney@redhat.com>
1994
1995         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
1996         "h8500-tdep.c".
1997         (z8k-tdep.o): Delete custom build rule.
1998
1999 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2000
2001         * Makefile.in: Update all dependencies.
2002
2003         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2004         No longer list PA as as obsolete candidate.  List m32r as
2005         broken instead of obsolete.
2006
2007         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2008         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2009         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2010         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2011         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2012         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2013         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2014         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2015         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2016         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2017         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2018         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2019         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2020         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2021         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2022         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2023         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2024         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2025         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2026         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2027         * config/z8k/z8k.mt: Ditto.
2028
2029         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2030         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2031         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2032         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2033         sparclite were removed.
2034         * configure.host, configure.tgt: Remove corresponding tuples.
2035
2036         * breakpoint.c, breakpoint.h: Remove obsolete code.
2037         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2038         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2039         * stabsread.h, xcoffread.c: Ditto.
2040
2041         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2042         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2043         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2044         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2045
2046 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
2047
2048         * f-valprint.c: Reformatting
2049
2050 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
2051
2052         * x86-64-tdep.c: Remove duplicate comment.
2053
2054         * x86-64-tdep.c (x86_64_store_return_value): Don't use
2055         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
2056         names for return values.  This fixes a bug since we looked at %rbx
2057         instead of %rdx.
2058
2059 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
2060
2061         * x86-64-tdep.c: Include "regset.h".
2062
2063         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2064         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2065         sizeof_fpregset.
2066         * i386-tdep.c: Include "regset.h".
2067         (i386_supply_gregset): New function.
2068         (i386_supply_fpregset): New function.
2069         (i386_gdbarch_init): Initialze register set-related members of
2070         TDEP.
2071         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2072         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2073
2074 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2075
2076         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2077         set extract_return_value, store_return_value and
2078         use_struct_convention to ppc64_sysv_abi_extract_return_value,
2079         ppc64_sysv_abi_store_return_value and
2080         ppc64_sysv_abi_use_struct_convention.
2081         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2082         (ppc64_sysv_abi_store_return_value): Declare.
2083         (ppc64_sysv_abi_use_struct_convention): Declare.
2084         * ppc-sysv-tdep.c (enum return_value_convention): Define.
2085         (ppc64_sysv_abi_extract_return_value): New function.
2086         (ppc64_sysv_abi_store_return_value): New function.
2087         (ppc64_sysv_abi_use_struct_convention): New function.
2088         (ppc64_sysv_abi_return_value): New function.
2089
2090 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2091
2092         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2093         convert a descriptor to a function when it's in the ".opd"
2094         section.
2095
2096 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2097
2098         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2099         reg_size to keep GCC silent.
2100
2101 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2102
2103         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2104         base for DW_EH_PE_textrel encodings.
2105         (read_encoded_value): Add a DW_EH_PE_textrel case.
2106         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2107         section.
2108
2109 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
2110
2111         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2112
2113 2003-10-02  Andrew Cagney  <cagney@redhat.com>
2114
2115         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2116         REGISTER_RAW_SIZE.
2117         * gdbarch.h, gdbarch.c: Re-generate.
2118         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2119         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2120         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2121         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2122         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2123         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2124         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2125         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2126         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2127         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2128         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2129         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2130         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2131         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2132         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2133         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2134
2135 2003-10-02  Jim Blandy  <jimb@redhat.com>
2136
2137         * dwarf2read.c (struct die_info): Doc fix.
2138
2139 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2140
2141         * sh-tdep.c: Running thru gdb_indent.sh.
2142
2143 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2144
2145         * sh-tdep.c (sh_justify_value_in_reg): New function.
2146         (sh_stack_allocsize): Ditto.
2147         (flt_argreg_array): New array used for floating point argument
2148         passing.
2149         (sh_init_flt_argreg): New function.
2150         (sh_next_flt_argreg): Ditto.
2151         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2152         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2153         Fix argument passing strategy.
2154         (sh_push_dummy_call_nofpu): Ditto.
2155
2156 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2157
2158         * value.h (register_value_being_returned): Declare.  Replace
2159         "value_being_returned".
2160         * infcall.c (call_function_by_hand): Use
2161         register_value_being_returned.
2162         * infcmd.c (print_return_value): Call
2163         "register_value_being_returned", handle struct return locally.
2164         * values.c (register_value_being_returned): New function.  Replace
2165         "value_being_returned".
2166
2167 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
2168
2169         * linux-proc.c (linux_do_registers): New function.
2170         (linux_make_note_section): Use linux_do_registers in case of
2171         single threaded inferior programs.
2172
2173 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2174
2175         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2176         use STRUCT_ADDR.  When not using "struct return convention", pass
2177         "0" to "value_being_returned".  Add FIXMEs.
2178         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2179         value_being_returned.  Add comments.
2180         * values.c (value_being_returned): Add fixme.
2181         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2182         (hppa_value_returned_from_stack): Add FIXME.
2183
2184 2003-09-30  David Carlton  <carlton@kealia.com>
2185
2186         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2187         'has_children' and 'next' by 'child' and 'sibling'.
2188         (read_comp_unit): Rework algorithm, breaking body into
2189         read_die_and_children and read_die_and_siblings.
2190         (read_die_and_children, read_die_and_siblings): New.
2191         (read_full_die): Add 'has_children' argument; set it instead of
2192         the die's 'has_children' field.  Minor formatting cleanup.
2193         (free_die_list): Use die->child and die->sibling instead of
2194         die->next.
2195         (dump_die_list): Ditto.
2196         (sibling_die): Use die->sibling.
2197         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2198         'has_children' and 'next' fields.
2199         (process_die, read_file_scope, read_func_scope)
2200         (read_lexical_block_scope, read_structure_scope)
2201         (read_enumeration, read_array_type, read_common_block)
2202         (read_namespace, read_subroutine_type, dump_die): Ditto.
2203
2204 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2205
2206         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2207         to 224, not 220.
2208
2209 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2210
2211         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2212         REGISTER_VIRTUAL_SIZE.
2213         * gdbarch.h, gdbarch.c: Regenerate.
2214         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2215         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2216         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2217
2218 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2219
2220         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2221         REGISTER_VIRTUAL_TYPE.
2222         * gdbarch.h, gdbarch.c: Regenerate.
2223         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2224         * sh64-tdep.c, sparc-tdep.c: Update.
2225
2226         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2227         * remote-vxmips.c (vx_read_register): Ditto.
2228         * remote-vx68.c (vx_read_register): Ditto.
2229         * gnu-nat.c (inf_validate_procs): Ditto.
2230
2231 2003-09-29  J. Brobecker  <brobecker@gnat.com>
2232
2233         * infcall.c (call_function_by_hand): Fix build failure
2234         introduced in the previous change to this file.
2235
2236 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2237
2238         * NEWS: Mention Objective-C.
2239
2240 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2241
2242         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2243         test if the register has been saved on the stack.
2244         (arm_scan_prologue_cache): When analysing the instruction
2245         "str lr, [sp, #-4]", save the address where lr has been stored.
2246
2247 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2248
2249         * frame.c (frame_read_unsigned_register): Delete function.
2250         * frame.h (frame_read_unsigned_register): Delete declaration.
2251         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2252         get_frame_register_unsigned.
2253         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2254         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2255         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2256
2257         * frame.h (frame_read_register): Delete declaration.
2258         * frame.c (frame_read_register): Delete function.
2259         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2260         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2261         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2262         * mips-tdep.c (mips_register_to_value): Ditto.
2263         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2264         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2265
2266         * frame.c (frame_read_signed_register): Delete function.
2267         (frame_read_unsigned_register): Update comments.
2268         * frame.h (frame_read_signed_register): Delete declaration.
2269         * h8300-tdep.c (h8300_print_register): Use
2270         get_frame_register_signed.
2271         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2272
2273         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2274         Rename VALUE_RETURNED_FROM_STACK.
2275         * infcmd.c (print_return_value): Update.
2276         * infcall.c (call_function_by_hand): Update.
2277
2278 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2279
2280         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2281         regcache argument and reverse the order of the other two
2282         arguments.  Remove local regcache variable.  Determine
2283         architecture from REGCACHE.  Update comments.
2284         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2285         reverse the order of the other two arguments.  Remove local
2286         regcache variable.  Determine architecture from REGCACHE.  Update
2287         comments.
2288         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2289         prototypes.  Update comments.
2290         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2291         comment.
2292         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2293         Update.
2294         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2295         * i386-interix-nat.c (supply_fpregset): Update.
2296         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2297         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2298         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2299         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2300         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2301         Update.
2302         * i386obsd-tdep.c (fetch_core_registers): Update.
2303         * i386v4-nat.c (supply_fpregset): Update.
2304         * x86-64-linux-nat.c (supply_fpregset): Update.
2305         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2306
2307 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2308
2309         * i386-tdep.h: Put opaque declarations in alphabetical
2310         order.  Remove spurious whitespace.
2311         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2312         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2313         * i386-tdep.c (MM0_REGNUM): Remove define.
2314         (i386_mmx_regnum_p): Add gdbarch argument.
2315         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2316         Rewrite using new macro definitions for FPU/SSE registers.
2317         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2318         definitions from i387-tdep.h.
2319         (i386_register_name): Update.
2320         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2321         new macro definitions for FPU/SSE registers.
2322         (i386_extract_return_value): Determine whether floating-point
2323         registers are present by examining REGCACHE's architecture.
2324         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2325         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2326         FPU/SSE registers.
2327         (i386_register_type): Update.
2328         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2329         definitions for FPU registers.  Use REGCACHE's architecture to
2330         determine the appropriate register numbers.
2331         (i386_pseudo_register_read, i386_pseudo_register_write,
2332         i386_register_reggroup_p): Update.
2333         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2334         TDEP->mm0_regnum.
2335         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2336         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2337         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2338         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2339         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2340         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2341         *' to `void *'.
2342         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2343         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2344         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2345         definitions for FPU/SSE registers.
2346         (FXSAVE_MXCSR_ADDR): New define.
2347         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2348         TDEP->mm0_regnum.
2349         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2350         (I387_ST0_REGNUM): Define.
2351
2352         * regcache.h (get_regcache_arch): New prototype.
2353         * regcache.c (get_regcache_arch): New function.
2354
2355         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2356         whitespace.
2357
2358         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2359         Initialize using ARRAY_SIZE.
2360
2361 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2362
2363         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2364         "init_frame_pc_default".
2365         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2366         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2367         * vax-tdep.c (vax_gdbarch_init): Update.
2368         * v850-tdep.c (v850_gdbarch_init): Update.
2369         * sh64-tdep.c (sh64_gdbarch_init): Update.
2370         * s390-tdep.c (s390_gdbarch_init): Update.
2371         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2372         * mcore-tdep.c (mcore_gdbarch_init): Update.
2373         * h8300-tdep.c (h8300_gdbarch_init): Update.
2374         * cris-tdep.c (cris_gdbarch_init): Update.
2375         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2376
2377 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2378
2379         * regset.h: New file.
2380         * Makefile.in (regset_h): Add.
2381
2382 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2383
2384         * frame.h (deprecated_frame_saved_regs): Rename
2385         get_frame_saved_regs.
2386         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2387         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2388         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2389         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2390         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2391
2392 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2393
2394         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2395         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2396         and Java.
2397         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2398         arm*-*-* do not use the new frame code.
2399
2400 2003-09-25  David Carlton  <carlton@kealia.com>
2401
2402         * c-exp.y: Remove 'register' declarations.
2403         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2404
2405 2003-09-25  David Carlton  <carlton@kealia.com>
2406
2407         * c-exp.y: Include cp-support.h.  Add qualified_type.
2408         (yylex): Delete nested type hack; add comments.
2409         * cp-namespace.c (cp_lookup_nested_type): New function.
2410         * cp-support.h: Declare cp_lookup_nested_type.
2411         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2412         instead of value_struct_elt_for_reference.
2413         * valops.c: Include cp-support.h.
2414         (value_aggregate_elt): New function.
2415         (value_namespace_elt): Ditto.
2416         (value_struct_elt_for_reference): Make static.
2417         * value.h: Delete declaration of value_struct_elt_for_reference;
2418         add declaration for value_aggregate_elt.
2419         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2420         (valops.o): Ditto.
2421
2422 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2423
2424         * stack.c: Include "reggroups.h".
2425         (frame_info): Only display registers in all_reggroup.
2426         * Makefile.in (stack.o): Update dependencies.
2427
2428 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2429
2430         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2431         "add ip, sp #n" in the prologue.
2432         (arm_scan_prologue): Ditto.
2433
2434 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2435
2436         * MAINTAINERS (write after approval): Add myself.
2437
2438 2003-09-25  Andreas Schwab  <schwab@suse.de>
2439
2440         * m68k-tdep.c: Include "dwarf2-frame.h".
2441         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2442         * Makefile.in (m68k-tdep.o): Update dependencies.
2443
2444 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2445
2446         * sh-tdep.c (struct frame_extra_info): Remove.
2447         (struct sh_frame_cache): New structure.
2448         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2449         (GET_TARGET_REG): Ditto but target register.
2450         (GET_PUSHED_REG): Remove.
2451         (IS_MOV_ARG_TO_REG): New macro.
2452         (IS_MOV_ARG_TO_IND_R14): New macro.
2453         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2454         (IS_MOVW_PCREL_TO_REG): New macro.
2455         (IS_MOVL_PCREL_TO_REG): New macro.
2456         (IS_SUB_REG_FROM_SP): New macro.
2457         (IS_ARG_MOV): Remove.
2458         (IS_MOV_TO_R14): Remove.
2459         (IS_RESTORE_FP): New macro.
2460         (IS_RTS): New macro.
2461         (IS_LDS): New macro.
2462         (IS_MOV_FP_SP): New macro.
2463         (IS_ADD_REG_TO_FP): New macro.
2464         (IS_ADD_IMM_FP): New macro.
2465         (sh_skip_prologue_hard_way): Remove.
2466         (sh_saved_pc_after_call): Remove.
2467         (sh_frame_chain): Remove.
2468         (sh_find_callers_reg): Remove.
2469         (sh_nofp_frame_init_saved_regs): Remove.
2470         (sh_fp_frame_init_saved_regs): Remove.
2471         (sh_init_extra_frame_info): Remove.
2472         (sh_analyze_prologue): New function.
2473         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2474         sh_analyze_prologue when after_prologue fails.
2475         (sh_frame_saved_pc): Remove.
2476         (sh_alloc_frame_cache): New function.
2477         (sh_frame_cache): Ditto.
2478         (sh_frame_prev_register): Ditto.
2479         (sh_frame_this_id): Ditto.
2480         (sh_frame_unwind): New structure defining the heuristic frame
2481         sniffer interface.
2482         (sh_frame_sniffer): New function.
2483         (sh_unwind_sp): Ditto.
2484         (sh_unwind_pc): Ditto.
2485         (sh_unwind_dummy_id): Ditto.
2486         (sh_frame_base_address): Ditto.
2487         (sh_frame_base): New structure defining new frame base code.
2488         (sh_in_function_epilogue_p): New function.
2489         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2490         code and to call all new code instead.  Initialize dwarf2 and
2491         heuristic frame sniffer.
2492
2493 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2494
2495         * parser-defs.h (struct exp_descriptor): New definition, containing
2496         language-specific info for printing, prefixifying, dumping, and
2497         evaluating expressions.
2498         (exp_descriptor_standard): Declare new variable.
2499         (print_subexp): Make global and declare here (from expprint.c).
2500         (dump_subexp): Ditto.
2501         (dump_subexp_body_standard): Declare.
2502         (operator_length_standard): Declare.
2503         (op_name_standard): Declare.
2504         (print_subexp): Declare.
2505         (print_subexp_standard): Declare.
2506
2507         * language.h (struct language_defn): Add la_exp_desc field to hold
2508         pointer to table for language-specific operators.
2509         Remove evaluate_exp field, which is now in struct exp_descriptor.
2510
2511         * parse.c (operator_length): Move most code to new
2512         operator_length_standard function.  Use language-specific information.
2513         (operator_length_standard): New function taking most code from
2514         operator_length.
2515         (exp_descriptor_standard): New constant.
2516
2517         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2518         and OP_EXTENDED_LAST.
2519
2520         * expprint.c (print_subexp): Use language-specific print_subexp.
2521         Make global; remove static declaration.
2522         Move most code to print_subexp_standard.
2523         (print_subexp_standard): New function, containing code formerly in
2524         print_subexp.
2525         (op_name): Add expression to argument signature.
2526         Use langauge-specific op_name.
2527         Move most code to op_name_standard.
2528         (op_name_standard): New function, containing code formerly in op_name.
2529         (dump_subexp):  Use new version of op_name function.
2530         Use language-specific dump_subexp_body, and move most existing code to
2531         dump_subexp_body_standard.
2532         (dump_raw_expression): Use new op_name interface.
2533         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2534         (dump_subexp_body_standard): New function, containing code formerly
2535         in dump_subexp_body.
2536
2537         * language.c (unknown_language): Add default la_exp_desc field and
2538         remove evaluate_exp field.
2539         (auto_language): Ditto.
2540         (local_language): Ditto.
2541         * f-lang.c (f_language_defn): Ditto.
2542         * c-lang.c (c_language_defn): Ditto.
2543         (cplus_language_defn): Ditto.
2544         (asm_language_defn): Ditto.
2545         (minimal_language_defn): Ditto.
2546         * p-lang.c (pascal_language_defn): Ditto.
2547         * m2-lang.c (m2_language_defn): Ditto.
2548         * objc-lang.c (objc_language_defn): Ditto.
2549
2550         * jv-lang.c (exp_descriptor_java): New variable, containing
2551         Java-specific expression evaluator.
2552         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2553         field.
2554         * scm-lang.c (exp_descriptor_scm): New variable, containing
2555         Scheme-specific expression evaluator.
2556         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2557         field.
2558         * objc-lang.c (print_object_command): Take evaluate_exp from the
2559         la_exp_desc field.
2560
2561         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2562
2563         * eval.c: Include parser-defs.h for the full declaration of
2564         la_exp_desc's type.
2565         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2566
2567 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2568
2569         * parser-defs.h (operator_length): Declare.
2570
2571         * parse.c (length_of_subexp): Use operator_length to get operator
2572         lengths and arities for operators.
2573         Move most code to new operator_length function.
2574         (operator_length): New function absorbing most code from
2575         length_of_subexp.
2576         (prefixify_subexp): Remove large case and use operator_length instead.
2577         (parse_exp_1): Use renamings:
2578         dump_prefix_expression => dump_raw_expression and
2579         dump_postfix_expression => dump_prefix_expression.
2580
2581         * expression.h (dump_prefix_expression): Rename to ...
2582         (dump_raw_expression): New name.
2583         (dump_postfix_expression): Rename to ...
2584         (dump_prefix_expression): New name.
2585
2586         * expprint.c (dump_subexp): Make global.  Add comment.
2587         Move most existing code to dump_subexp_body.
2588         (dump_subexp_body): New function.
2589         (dump_prefix_expression): Rename to dump_raw_expression.
2590         Remove attempt to print the expression via print_expression: it can't
2591         work before the expression is prefixified.
2592         (dump_raw_expression): Renamed from dump_prefix_expression.
2593         (dump_postfix_expression): Rename to dump_prefix_expression, since
2594         that's what it does.
2595         Remove 'note' parameter, since this routine must be used on
2596         prefixified expression.
2597         (dump_prefix_expression): Renamed from dump_postfix_expression.
2598
2599 2003-09-22  Jim Blandy  <jimb@redhat.com>
2600
2601         * dwarf2read.c (read_array_type): When building the type for an
2602         array of unspecified length, make sure to choose the upper bound
2603         so that the array's total length comes out to be zero --- that's
2604         how we represent such arrays.
2605
2606 2003-09-22  Michael Chastain  <mec@shout.net>
2607
2608         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2609
2610 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2611
2612         * top.c (quit_force): Fix indirect call to quit_target so
2613         a struct qt_args pointer is passed.
2614
2615 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2616
2617         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2618         * arch-utils.c (init_frame_pc_noop): Delete function.
2619         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2620         "init_frame_pc".
2621         * mips-tdep.c (mips_gdbarch_init): Ditto.
2622         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2623         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2624         declaration.
2625         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2626         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2627         declaration.
2628         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2629
2630 2003-09-22  Anthony Green  <green@redhat.com>
2631
2632         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2633         declaration.
2634
2635 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2636
2637         * breakpoint.c: Eliminate ARGSUSED.
2638         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2639         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2640         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2641         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2642         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2643         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2644         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2645         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2646         * wince.c, remote-vx.c: Ditto.
2647
2648         * cli/cli-script.c: Remove "register" attributes.
2649         * config/pa/tm-hppa.h: Ditto.
2650         * cli/cli-decode.c: Ditto.
2651         * cli/cli-cmds.c: Ditto.
2652
2653 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2654
2655         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2656         DEPRECATED_NPC_REGNUM.
2657         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2658
2659 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2660
2661         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2662
2663 2003-09-19  Jim Blandy  <jimb@redhat.com>
2664
2665         * macrotab.c (macro_include): Use the correct comparison to find
2666         the appropriate place for this inclusion in the list.
2667
2668 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2669
2670         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2671         (DEPRECATED_HPUX_TEXT_END): Define.
2672         (deprecated_hpux_text_end): Declare.
2673         (struct target_ops): Declare opaque.
2674         * hppah-nat.c (text_end): Make static.
2675         (deprecated_hpux_text_end): New function.
2676         * exec.c (text_end): Delete global variable.
2677         (NEED_TEXT_START_END): Do not define.
2678         (exec_file_attach): Replace code computing "text_end" code with
2679         call to DEPRECATED_HPUX_TEXT_END.
2680
2681 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2682
2683         * utils.c (align_up, align_down): New functions.
2684         * defs.h (align_up, align_down): Declare.
2685         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2686         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2687         and "align_down".
2688         (round_up, round_down): Delete functions.
2689         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2690         "align_down".
2691         (ROUND_DOWN, ROUND_UP): Delete macros.
2692         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2693         * h8300-tdep.c: Replace "round_up" and "round_down" with
2694         "align_up" and "align_down".
2695         (round_up, round_down): Delete macros.
2696         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2697         "align_down".
2698         (ROUND_UP, ROUND_DOWN): Delete macros.
2699
2700 2003-09-18  J. Brobecker  <brobecker@gnat.com>
2701
2702         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2703         hard-coded constant. Use the proper machine name instead.
2704
2705 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2706
2707         * sparc-tdep.c (legacy_register_name): Delete function.
2708         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2709         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2710         * infcmd.c (gdb_register_name): Delete variable.
2711         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2712         REGISTER_NAME and "tm.h".
2713         * gdbarch.h, gdbarch.c: Regenerate.
2714         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2715         REGISTER_NAMES in comments.
2716         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2717         * m68klinux-nat.c (regmap): Ditto.
2718
2719 2003-09-17  Jim Blandy  <jimb@redhat.com>
2720
2721         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2722
2723 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2724
2725         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2726         (ppcnbsd_init_abi): Set "use_struct_convention" to
2727         "ppcnbsd_use_struct_convention".
2728
2729 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
2730
2731         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2732         * gdbarch.h, gdbarch.c: Regenerate.
2733         (stabs_argument_has_addr): New architecture method.
2734         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2735         * arch-utils.c: Include "buildsym.h".
2736         (default_stabs_argument_has_addr): New function.
2737         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2738         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2739
2740 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2741
2742         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2743         * gdbarch.h, gdbarch.c: Regenerate.
2744         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2745         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2746         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2747         * sparcnbsd-tdep.c: Update.
2748
2749 2003-09-17  Andrew Cagney  <cagney@redhat.com>
2750
2751         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2752         * gdbarch.h, gdbarch.c: Regenerate.
2753         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2754         * d10v-tdep.c, frame.c: Update.
2755         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2756         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2757         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2758         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2759         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2760         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2761         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2762         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2763         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2764         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2765         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2766         * config/pa/nm-hppah.h: Update.
2767
2768 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2769
2770         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2771         "use_struct_convention" to "ppc_linux_use_struct_convention".
2772         (ppc_linux_use_struct_convention): New function.
2773         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2774         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2775         "rs6000_use_struct_convention".
2776         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2777         declaration.
2778         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2779         Delete function.
2780
2781 2003-09-16  Andrew Cagney  <cagney@redhat.com>
2782
2783         * buildsym.c: Remove more occurances of "register".
2784         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2785         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2786         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2787         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2788         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2789         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2790         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2791         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2792
2793 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
2794
2795         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
2796         numbers to enumeration values.
2797         * sh-tdep.c: Accomodate above change.
2798         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2799         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2800         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2801         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2802         (IS_FPUSH): Rename from IS_FMOV.
2803         (sh_extract_struct_value_address): Remove useless comment.
2804         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2805         instead of own local values.
2806         (sh_dump_tdep): Remove.
2807         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2808         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2809
2810 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2811
2812         * doublest.c (convert_floatformat_to_doublest): No longer need to
2813         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
2814
2815 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2816
2817         * values.c (unpack_double): Call floatformat_is_valid.
2818
2819 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
2820
2821         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2822         ps_strings into a long.
2823
2824         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2825         _initialize_am64fbsd_nat.
2826
2827 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
2828
2829         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2830         associated with DW_AT_ranges attribute is out of bounds.
2831
2832 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
2833
2834         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2835
2836 2003-09-14  Michael Chastain  <mec@shout.net>
2837
2838         * config/m68k/nm-apollo68v.h: Delete.
2839         * config/m68k/xm-apollo68v.h: Delete.
2840
2841 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2842
2843         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2844         * dcache.c: Update copyrights and descriptions.
2845         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2846
2847 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2848
2849         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2850         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2851
2852 2003-09-14  Andrew Cagney  <cagney@redhat.com>
2853
2854         * alpha-nat.c: Remove some occurances of "register".
2855         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2856         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2857         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2858         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2859         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2860         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2861         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2862         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2863         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2864         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2865         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2866         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2867         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2868         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2869         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2870         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2871         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2872         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2873         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2874         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2875         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2876         * values.c, vax-tdep.c, xcoffread.c: Ditto.
2877
2878 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2879
2880         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2881         * ppc-tdep.h (struct regcache): Declare opaque.
2882         * objfiles.h (struct objfile_data): Declare opaque.
2883         * cp-support.h (struct objfile): Declare opaque.
2884         * linux-nat.h (target_waitstatus): Declare opaque.
2885
2886 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
2887
2888         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2889         (stabs_argument_has_addr): New architecture method.
2890         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2891         * arch-utils.c: Include "buildsym.h".
2892         (default_stabs_argument_has_addr): New function.
2893         * stabsread.c (define_symbol): Use stabs_argument_has_addr
2894         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2895
2896         * cris-tdep.c (cris_gdbarch_init): Set
2897         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2898         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2899         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2900         * mips-tdep.c (mips_gdbarch_init): Likewise.
2901         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2902         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2903
2904 2003-09-13  Andrew Cagney  <cagney@redhat.com>
2905
2906         * values.c (using_struct_return): Delete "function" and "funcaddr"
2907         parameters.
2908         * value.h (using_struct_return): Update declaration.
2909         * infcmd.c (finish_command_continuation): Update.
2910         (finish_command): Update.
2911         * infcall.c (call_function_by_hand): Update.
2912         * eval.c (evaluate_subexp_standard): Update.
2913
2914 2003-09-13  Christopher Faylor  <cgf@redhat.com>
2915
2916         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2917         SSE registers since gdb will not operate correctly without this.
2918         Restore include file ordering munged in previous change.
2919         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2920
2921 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
2922
2923         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2924         REG_STRUCT_HAS_ADDR.
2925         * gdbarch.c, gdbarch.h: Updated.
2926         * infcall.c (call_function_by_hand): Update.
2927         * stabsread.c (define_symbol): Updated.
2928
2929         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2930
2931 2003-09-12  Christopher Faylor  <cgf@redhat.com>
2932
2933         * win32-nat.c: Reorganize so that defines used by target headers are
2934         actually defined by the system headers.
2935         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2936         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2937
2938 2003-09-12  Jim Blandy  <jimb@redhat.com>
2939
2940         * dbxread.c (read_dbx_symtab): Don't report an internal error if
2941         the file has no .data, .bss, or .rodata sections.  Instead wait
2942         until we see a variable alleged to live in one of those sections.
2943
2944         * dbxread.c (read_dbx_symtab): If we have no .data section and no
2945         .bss section, presume that any variables we find live in the
2946         .rodata section.
2947
2948         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
2949         offsets for global and static variables.
2950
2951         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
2952         symbol types are, by definition, in the .data section, so it is
2953         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
2954         If there is no .data section, there should be no N_DATA or N_DATA
2955         | N_EXT symbols.
2956
2957 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
2958
2959         * amd64fbsd-tdep.c: Fix sigtramp recognition.
2960         (amd64fbsd_sigcontext_addr): Rewrite.
2961         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
2962         with correct values.
2963         (amd64fbsd_sc_reg_offset): Initialize with correct values.
2964         (amd64fbsd_init_abi): Fix typo.
2965
2966 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2967
2968         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
2969         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
2970
2971 2003-09-12  Andrew Cagney  <cagney@redhat.com>
2972
2973         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
2974         "entry_file_highpc".  Update comments.
2975         * defs.h (deprecated_inside_entry_file): Rename
2976         "inside_entry_file".
2977         * blockframe.c (deprecated_inside_entry_file): Rename
2978         "inside_entry_file".
2979         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
2980         * vax-tdep.c (vax_frame_chain): Update.
2981         * sh64-tdep.c (sh64_frame_chain): Update.
2982         * sh-tdep.c (sh_frame_chain): Update.
2983         * rs6000-tdep.c (rs6000_frame_chain): Update.
2984         * ns32k-tdep.c (ns32k_frame_chain): Update.
2985         * mips-tdep.c (mips_frame_chain): Update.
2986         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
2987         * m32r-tdep.c (m32r_frame_this_id): Update.
2988         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
2989         * frv-tdep.c (frv_frame_this_id): Update.
2990         * d10v-tdep.c (d10v_frame_this_id): Update.
2991         * cris-tdep.c (cris_frame_chain): Update.
2992         * blockframe.c (legacy_frame_chain_valid): Update.
2993         * avr-tdep.c (avr_frame_this_id): Update.
2994         * arm-tdep.c (arm_prologue_this_id): Update.
2995         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
2996         * objfiles.c (objfile_relocate): Update.
2997         * mipsread.c (mipscoff_symfile_read): Update.
2998         (mipscoff_symfile_read): Update.
2999         * mdebugread.c (parse_partial_symbols): Update.
3000         * dwarfread.c (read_file_scope): Update.
3001         * dwarf2read.c (read_file_scope): Update.
3002         * dbxread.c (read_dbx_symtab): Update.
3003         (read_dbx_symtab): Update.
3004         * coffread.c (complete_symtab): Update.
3005
3006 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
3007
3008         * top.c (quit_target): New static helper function.
3009         (quit_force): Moved code to quit_target().  Call quit_target()
3010         via catch_errors() to catch errors during quit.
3011
3012 2003-09-11  David Carlton  <carlton@kealia.com>
3013
3014         * buildsym.c (finish_block): Use allocate_block to allocate the
3015         block.
3016         * mdebugread.c (new_block): Add FIXME.
3017
3018 2003-09-11  David Carlton  <carlton@kealia.com>
3019
3020         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3021         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3022         (recursive_dump_type): Ditto.
3023         * printcmd.c (print_formatted): Ditto.
3024         * typeprint.c (print_type_scalar): Ditto.
3025         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3026         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3027         * cp-support.h: Declare cp_check_possible_namespace_symbols,
3028         maint_cplus_cmd_list.
3029         * cp-support.c: Make maint_cplus_cmd_list extern.
3030         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3031         command.h.
3032         (lookup_symbol_file): Look in possible namespace blocks when
3033         appropriate.
3034         (initialize_namespace_symtab): New.
3035         (get_possible_namespace_block, free_namespace_block)
3036         (check_possible_namespace_symbols)
3037         (check_possible_namespace_symbols_loop)
3038         (check_one_possible_namespace_symbol)
3039         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3040         (_initialize_cp_namespace): Ditto.
3041         * block.h: Declare allocate_block.
3042         * block.c (allocate_block): New.
3043         * jv-lang.c (get_java_class_symtab): Allocate blocks via
3044         allocate_block.
3045         * symfile.h: Update declaration of add_psymbol_to_list.
3046         * symfile.c (add_psymbol_to_list): Return the partial symbol in
3047         question.
3048         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3049         scan_partial_symbols_call.
3050         (scan_partial_symbols): Add NAMESPACE argument; update calls to
3051         helper functions.
3052         (add_partial_symbol): If necessary, scan mangled names for names
3053         of namespaces.
3054         (add_partial_namespace): Add NAMESPACE argument; generate partial
3055         symbols associated  to namespaces.
3056         (add_partial_enumeration): Add NAMESPACE argument.
3057         (new_symbol): Allow namespace syms.
3058         (read_namespace): Generate namespace syms.
3059         * objfiles.h: Add opaque declaration of struct symtab.
3060         (struct objfile): Add cp_namespace_symtab member.
3061         * objfiles.c (allocate_objfile): Set
3062         objfile->cp_namespace_symtab.
3063         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3064         dictionary_h, command_h.
3065
3066 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3067
3068         * rs6000-tdep.c (rs6000_push_dummy_call): Use
3069         regcache_raw_write_signed to set SP_REGNUM, move the operation to
3070         near the function's end.
3071         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3072         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3073         regcache_raw_write_signed to set SP_REGNUM.
3074
3075 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
3076
3077         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3078         orig_addrs is set up properly.
3079
3080 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3081
3082         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3083         * gdbarch.h, gdbarch.c: Re-generate.
3084         * infcall.c (call_function_by_hand): Update.
3085         * hppa-tdep.c (hppa_push_arguments): Update.
3086         * ada-lang.c (place_on_stack): Update.
3087         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3088         * sparc-tdep.c (sparc_gdbarch_init): Update.
3089         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3090         * hppa-tdep.c (hppa_gdbarch_init): Update.
3091         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3092         stack_align.
3093
3094 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
3095
3096         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3097         register do need a frame.
3098
3099 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3100
3101         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3102         buildable since GDB 5.0.
3103         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3104         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3105         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3106         * irix4-nat.c: Delete file.
3107         * config/mips/irix4.mh: Delete file.
3108         * config/mips/irix3.mh: Delete file.
3109         * config/mips/irix3.mt: Delete file.
3110         * config/mips/tm-irix3.h: Delete file.
3111         * config/mips/nm-irix3.h: Delete file.
3112         * config/mips/xm-irix3.h: Delete file.
3113         * config/mips/nm-irix4.h: Delete file.
3114         * config/mips/xm-irix4.h: Delete file.
3115         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3116
3117 2003-09-10  J. Brobecker  <brobecker@gnat.com>
3118
3119         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3120         * Makefile.in (hppa-tdep.o): Update dependencies.
3121
3122 2003-09-10  James E Wilson  <wilson@specifixinc.com>
3123
3124         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3125         section.
3126
3127 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3128
3129         * MAINTAINERS (frv): New ISA entry.
3130
3131 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3132
3133         * frv-tdep.c (dis-asm.h): Include.
3134         * Makefile.in (frv-tdep.o): Update dependencies.
3135
3136 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3137
3138         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3139         Fix typo for high range of floating registers.
3140
3141 2003-09-09  David Carlton  <carlton@kealia.com>
3142
3143         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3144         highpc initialization here out of scan_partial_symbols.
3145         (scan_partial_symbols): Restructure into a recursive version,
3146         calling add_partial_namespace and add_partial_enumeration when
3147         appropriate.
3148         (add_partial_namespace): New.
3149         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3150
3151 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3152
3153         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3154         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3155         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3156         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3157
3158         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3159         (rs6000_push_dummy_call): Set the "TOC" register.
3160
3161         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3162         methods "max_register_raw_size", "max_register_virtual_size" or
3163         "register_virtual_size".
3164
3165 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
3166
3167         * MAINTAINERS: Update my e-mail address.
3168
3169 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3170
3171         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3172         (rs6000_push_dummy_call): Store the struct return address.
3173         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3174
3175 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3176
3177         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3178         "ppc_sysv_abi_push_arguments".
3179         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3180         "ppc_sysv_abi_push_arguments".
3181         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3182         instead of "push_arguments".
3183         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3184
3185 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3186
3187         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3188         instead of CALL_DUMMY_ADDRESS.
3189
3190 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
3191
3192         * p-lang.c: Eliminate "register".
3193         * c-lang.c: Ditto.
3194         * expprint.c: Ditto.
3195         * f-lang.c: Ditto.
3196         * jv-lang.c: Ditto.
3197         * language.c: Ditto.
3198         * m2-lang.c: Ditto.
3199         * parse.c: Ditto.
3200         * scm-lang.c: Ditto.
3201         * objc-lang.c: Ditto.
3202
3203 2003-09-09  Nick Clifton  <nickc@redhat.com>
3204
3205         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3206
3207 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3208
3209         * avr-tdep.c: Include "dis-asm.h".
3210         * cris-tdep.c: Include "dis-asm.h".
3211         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3212         instead of corresponding typedef.
3213         * h8300-tdep.c: Include "dis-asm.h".
3214         * ia64-tdep.c: Include "dis-asm.h".
3215         * i386-tdep.c: Include "dis-asm.h".
3216         (i386_print_insn): Use "struct disassemble_info" instead of
3217         corresponding typedef.
3218         * m68k-tdep.c: Include "dis-asm.h".
3219         * mcore-tdep.c: Include "dis-asm.h".
3220         * mips-tdep.c: Include "dis-asm.h".
3221         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3222         instead of corresponding typedef.
3223         * ns32k-tdep.c: Include "dis-asm.h".
3224         * s390-tdep.c: Include "dis-asm.h".
3225         * sparc-tdep.c: Include "dis-asm.h".
3226         * vax-tdep.c: Include "dis-asm.h".
3227         * v850-tdep.c: Include "dis-asm.h".
3228         * mn10300-tdep.c: Include "dis-asm.h".
3229         * rs6000-tdep.c: Include "dis-asm.h".
3230         * xstormy16-tdep.c: Include "dis-asm.h".
3231         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3232         print_insn_xstormy16.
3233         * Makefile.in (v850-tdep.o): Update dependencies.
3234         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3235         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3236         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3237         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3238         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3239         (gdbarch_h): Remove $(dis_asm_h).
3240         * disasm.c: Include "dis-asm.h".
3241         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3242         corresponding typedef.
3243         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3244         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3245         * gdbarch.sh: Do not include "dis-asm.h".
3246         (struct disassemble_info): Declare opaque.
3247         (TARGET_PRINT_INSN): Update declaration.
3248         * gdbarch.h, gdbarch.c: Re-generate.
3249
3250 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3251
3252         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3253         CALL_DUMMY_ADDRESS, change to a predicate.
3254         * gdbarch.h, gdbarch.c: Re-generate.
3255         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3256         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3257         * infcall.c (call_function_by_hand): Ditto.
3258         * sparc-tdep.c (sparc_push_return_address): Ditto.
3259         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3260         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3261         CALL_DUMMY_ADDRESS with entry_point_address.
3262         * v850-tdep.c (v850_push_return_address): Ditto.
3263         * s390-tdep.c (s390_push_return_address): Ditto.
3264         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3265         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3266         * mcore-tdep.c (mcore_push_return_address): Ditto.
3267         * cris-tdep.c (cris_push_return_address): Ditto.
3268         * arm-tdep.c (arm_push_return_address): Ditto.
3269
3270 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3271
3272         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3273         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3274         and REG_UNMODIFIED to REG_SAME_VALUE.
3275         (execute_cfa_program): Update.
3276         (dwarf2_frame_cache): Update.  Initialize table to
3277         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3278         location.
3279         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3280
3281 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3282
3283         * gnu-nat.c: Remove "inline" function attribute.
3284         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3285
3286 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3287
3288         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3289         target.
3290
3291 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3292
3293         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3294         (frame_extra_info): Rename this struct to frv_unwind_cache.
3295         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3296         Add fields ``prev_sp'' and ``base''.
3297         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3298         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3299         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3300         Delete.
3301         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3302         Revise all callers.  Fill in the unwind cache argument and make
3303         other adjustments to account for new frame mechanisms.
3304         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3305         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3306         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3307         (frv_frame_unwind, frv_frame_base): New structs.
3308         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3309         additional arguments expected by this method and adjust function
3310         body accordingly.
3311         (frv_gdbarch_init): Remove calls to the following functions:
3312         set_gdbarch_deprecated_init_frame_pc(),
3313         set_gdbarch_deprecated_saved_pc_after_call(),
3314         set_gdbarch_deprecated_frame_chain(),
3315         set_gdbarch_deprecated_frame_saved_pc(),
3316         set_gdbarch_deprecated_frame_init_saved_regs(),
3317         set_gdbarch_deprecated_push_arguments(),
3318         set_gdbarch_deprecated_push_return_address(),
3319         set_gdbarch_deprecated_pop_frame(),
3320         set_gdbarch_deprecated_call_dummy_words(),
3321         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3322         set_gdbarch_deprecated_init_extra_frame_info(),
3323         set_gdbarch_deprecated_dummy_write_sp(), and
3324         set_gdbarch_deprecated_pc_in_call_dummy().
3325         Add calls to the following functions:
3326         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3327         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3328         frame_base_set_default().
3329         * Makefile.in (frv-tdep.o): Update dependencies.
3330
3331 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3332
3333         * dwarf2-frame.c (read_encoded_value): Add support for
3334         DW_EH_PE_aligned encoding.
3335
3336 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3337
3338         * infrun.c (normal_stop): Don't print a message if the inferior
3339         has exited.
3340
3341 2003-09-08  Jim Blandy  <jimb@redhat.com>
3342
3343         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3344         * dbxread.c: #include "gdb_assert.h".
3345         (read_dbx_symtab): If the objfile has no .data section, use the
3346         section index for the .bss section instead.
3347
3348 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3349
3350         * frame.c (deprecated_safe_get_selected_frame): New function.
3351         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3352         * findvar.c (read_var_value): Call it.
3353
3354 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3355
3356         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3357         (sh64-tdep.o): Add dependencies.
3358         * configure.tgt: Add FIXME to sh-*-linux*.
3359         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3360         (sh_gdbarch_init): Always set correct sh_show_regs function
3361         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3362         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3363         * sh64-tdep.c: New file, containing all sh64 related code from
3364         sh-tdep.c.
3365         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3366         * config/sh/linux.mt (TDEPFILES): Ditto.
3367         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3368         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3369         * config/sh/wince.mt (TDEPFILES): Ditto.
3370
3371 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3372
3373         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3374         (stop_wait_callback): Handle !lp->signalled also.
3375         (lin_lwp_has_pending, flush_callback): New functions.
3376         (lin_lwp_wait): Call flush_callback.
3377         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3378         (linux_proc_pending_signals): New function.
3379         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3380
3381 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3382
3383         From Nick Kelsey <nickk@ubicom.com>:
3384         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3385         when the stop PC is at the beginning of a function also.
3386
3387 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3388
3389         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3390         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3391
3392 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3393
3394         * sol-thread.c: Include "gdb_string.h".
3395
3396 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3397
3398         * gcore.c: Reorder include files in alphabetical order.  Include
3399         "gdb_assert.h".  Various coding style fixes.
3400         (derive_stack_segment, derive_heap_segment): Replace check for
3401         non-null BOTTOM and TOP with gdb_assert.
3402         (derive_heap_segment): Replace check for successful creation of
3403         ZERO with gdb_assert.
3404         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3405
3406 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3407
3408         * thread-db.c (verbose_dlsym): New function.
3409         (thread_db_load): Use verbose_dlsym
3410         (thread_db_new_objfile): Print that libthread_db was loaded, and
3411         that thread debugging was enabled.
3412
3413 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3414
3415         * configure.tgt: Add "mips64*-*-*" target.  Delete
3416         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3417         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3418         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3419         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3420         mips*-sony-*, and mips64*-*-elf* targets.
3421         * config/mips/embedl.mt: Delete file.
3422         * config/mips/embedl64.mt: Delete file.
3423         * config/mips/mips.mt: Delete file.
3424         * config/mips/mips64.mt: Delete file.
3425         * config/mips/tm-embed.h: Delete file.
3426         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3427         * config/mips/embed64.mt: Delete out-of-date comment.
3428
3429 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3430
3431         * hppa-tdep.c (hppa_gdbarch_init): Set
3432         "have_nonsteppable_watchpoint".
3433         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3434         * mips-tdep.c (mips_dump_tdep): Do not print
3435         HAVE_NONSTEPPABLE_WATCHPOINT.
3436         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3437         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3438         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3439         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3440
3441 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3442
3443         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3444         unused code.  Add comment.
3445
3446 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3447
3448         * breakpoint.c (watchpoint_check): Check for pc being in an
3449         epilogue if watchpoint frame couldn't be found.
3450
3451 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3452
3453         * Makefile.in: Re-generate all dependencies.
3454
3455 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3456
3457         * arch-utils.h (legacy_print_insn): Delete declaration.
3458         * arch-utils.c (legacy_print_insn): Delete function.
3459         * disasm.c (deprecated_tm_print_insn_info): Delete.
3460         (_initialize_disasm): Delete function, contained code initializing
3461         deprecated_tm_print_insn_info.
3462         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3463         (deprecated_tm_print_insn_info): Delete.
3464         (TARGET_PRINT_INSN): Do not provide a default.
3465         * gdbarch.h, gdbarch.c: Re-generate.
3466
3467 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3468
3469         * disasm.c (fprintf_disasm): New function.
3470         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3471         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3472         reverts 2003-08-14 change.
3473         (_initialize_disasm): Call "init_disassemble_info", instead of
3474         INIT_DISASSEMBLE_INFO_NO_ARCH.
3475
3476 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3477
3478         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3479
3480 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3481
3482         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3483         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3484         * symfile.c (syms_from_objfile): Update.
3485         (reread_symbols): `Update
3486         * exec.c (exec_file_attach): Update.
3487         (exec_file_attach): Update.
3488         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3489         2003-08-29 change.
3490         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3491
3492 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3493
3494         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3495         trad-frame.h.
3496         (arm_get_cache): Delete macro.
3497         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3498         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3499         to prev_sp.
3500         (thumb_scan_prologue): Update for cache changes.  Don't call
3501         DEPRECATED_PC_IN_CALL_DUMMY.
3502         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3503         argument and use it in desperation search for our prologue.  Do not
3504         search past the specified PC.
3505         (arm_make_prologue_cache): Simplify.
3506
3507         (arm_prologue_this_id, arm_prologue_prev_register)
3508         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3509         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3510         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3511         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3512         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3513
3514         (arm_frame_chain_valid, arm_find_callers_reg)
3515         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3516         (arm_pop_frame): Delete obsolete methods.
3517         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3518
3519         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3520         and sigtramp unwinders.  Set the default frame base method.
3521
3522         * Makefile.in (arm-tdep.o): Update dependencies.
3523         * varobj.c (find_frame_addr_in_frame_chain): Call
3524         get_frame_base_address.
3525         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3526
3527 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3528
3529         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3530         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3531         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3532         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3533         Take NEXT_FRAME and CACHE arguments.  Call
3534         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3535         Set unwound_pc in CACHE instead of modifying the frame argument.
3536         Don't bother checking the frame type when looking for sigtramp
3537         frames.
3538         (arm_make_prologue_cache, arm_frame_chain)
3539         (arm_init_extra_frame_info): New functions.
3540
3541 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3542
3543         * arm-tdep.c (arm_get_cache): Define.
3544         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3545         unwound_sp, unwound_pc, and saved_regs.
3546         (thumb_scan_prologue): Take a cache instead of the frame.
3547         (arm_scan_prologue): Likewise.
3548         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3549         instead of a temporary frame.
3550         (arm_init_extra_frame_info): Allocate and use a cache.
3551         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3552
3553 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3554
3555         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3556         * config/mips/wince.mt (TM_CLIBS): Ditto.
3557         * config/sh/wince.mt (TM_CLIBS): Ditto.
3558         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3559         * config/sparc/sp64.mt (CC): Delete.
3560
3561 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3562
3563         * defs.h: Do not include "arch-utils.h".
3564         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3565         GDB_MULTI_ARCH_PURE.
3566         * configure.in (GDB_MULTI_ARCH): Do not define.
3567         * configure, config.in: Regenerate.
3568         * configure.tgt: Do not set variable "gdb_multi_arch".
3569         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3570         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3571         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3572         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3573         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3574         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3575         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3576         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3577         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3578         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3579         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3580         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3581         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3582         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3583         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3584         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3585         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3586         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3587
3588 2003-08-30  Michael Chastain  <mec@shout.net>
3589
3590         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3591         * config/m68k/nm-hp300hpux.h: Delete.
3592         * config/m68k/tm-hp300hpux.h: Delete.
3593         * config/m68k/xm-hp300hpux.h: Delete.
3594         * config/m68k/xm-hp300bsd.h: Delete.
3595         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3596         tm-hp300hpux.h, xm-hp300hpux.h.
3597         * somsolib.c: Remove comment about hp300 shared libraries.
3598
3599 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
3600
3601         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3602         Only define PTRACE_GET_THREAD_AREA is not already defined.
3603         Various style fixes in code and comments and some additional
3604         spelling fixes in comments.  Move after functions dealing with
3605         debug registers.
3606         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3607         Fix coding-style.
3608
3609         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3610         frame_unwind_register_unsigned instead of
3611         frame_unwind_unsigned_register.
3612
3613 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
3614
3615         * configure.in: Search for gethostbyname in libnsl.
3616         * configure: Regenerated.
3617
3618 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3619
3620         * configure.in: Remove redundant AC_MSG_RESULT in check for
3621         uintptr_t in stdint.h.
3622         * configure: Regenerated.
3623
3624         * amd64-nat.h (struct regcache): Add opaque declaration.
3625
3626         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3627         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3628         Change "register array" to "register cache" in comments.
3629         (x86_64_linux_gregset64_reg_offset): New variable.
3630         (GETREGS_SUPPLIES): Remove macro.
3631         (supply_gregset): Call amd64_supply_native_gregset instead of
3632         x86_64_linux_supply_gregset.
3633         (fill_gregset): Rename `regno' to `regnum'.  Call
3634         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3635         (store_regs): Rename `regno' to `regnum'.
3636         (store_fpregs): Rename `regno' to `regnum'.
3637         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3638         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3639         Reorganize function a bit.
3640         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3641         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3642         Reorganize function a bit.
3643         (_initialize_x86_64_linux_nat): New function.
3644         * config/i386/x86-64linux.mh.
3645
3646 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3647
3648         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3649         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3650         (target_remove_watchpoint): Delete macro.
3651         (target_insert_watchpoint): Delete macro.
3652         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3653         (remote_mips_stopped_by_watchpoint): Delete declaration.
3654         (remote_mips_remove_watchpoint): Delete declaration.
3655         (remote_mips_set_watchpoint): Delete declaration.
3656         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3657         * remote-mips.c (_initialize_remote_mips): Set
3658         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3659         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3660         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3661         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3662         (mips_stopped_by_watchpoint): Rename
3663         remote_mips_stopped_by_watchpoint.
3664         (mips_can_hardware_watchpoint): Rename
3665         remote_mips_can_use_hardware_watchpoint, update function
3666         signature.
3667
3668 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3669
3670         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3671         USER_DS.  We haven't given them a register number yet.
3672
3673         * amd64-nat.h: New file.
3674         * amd64-nat.c: New file.
3675         * amd64fbsd-nat.c: Include "amd64-nat.h".
3676         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3677         (amd64fbsd32_r_reg_offset): New variable.
3678         (supply_gregset): Simply call amd64_supply_native_gregset.
3679         (fill_gregset): Rename `regno' to `regnum'.  Simply call
3680         amd64_collect_native_gregset.
3681         (fill_fpregset): Rename `regno' to `regnum'.
3682         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
3683         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3684         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3685         `fpregset_t'.  Call amd64_supply_native_gregset instead of
3686         supply_gregset.  Call x86_64_supply_fxsave instead of
3687         supply_fpregset.
3688         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
3689         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3690         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3691         `fpregset_t'.  Call amd64_collect_native_gregset instead of
3692         fill_gregset.  Call x86_64_collect_fxsave instead of
3693         fill_fpregset.
3694         (_initialize_am64fbsd_nat): Initialize
3695         amd64_native_gregset32_reg_offset and
3696         amd64_native_gregset64_reg_offset.
3697         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3698
3699         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3700         null pointer.  Fix typo in comment.
3701
3702         * regcache.c (supply_register): Reimplement to call
3703         regcache_raw_supply.
3704         (regcache_collect): Reimplement by calling regcache_raw_collect.
3705
3706 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
3707
3708         * regcache.c (register_buffer): Consitify first argument.
3709         (regcache_raw_supply, regcache_raw_collect): New
3710         functions.
3711
3712 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3713
3714         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
3715         by Nathan J. Williams.
3716
3717 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
3718
3719         * lin-lwp.c (wait_lwp): New function, copied from
3720         stop_wait_callback.  Clean up.
3721         (stop_wait_callback): Use wait_lwp.
3722
3723 2003-08-28  Andrew Cagney  <cagney@redhat.com>
3724
3725         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3726         flavour and disassembler options.
3727         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3728         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
3729         deprecated_tm_print_insn_info.
3730
3731 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3732
3733         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3734         Use target_read_memory.
3735         (s390_get_frame_info): Update.  Do not reference
3736         deprecated_tm_print_insn_info.
3737         (s390_check_function_end, s390_is_sigreturn): Ditto.
3738
3739 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3740
3741         * Makefile.in (cris-tdep.o): Update dependencies.
3742         * cris-tdep.c: Include "gdb_assert.h".
3743         (cris_gdbarch_init): Set print_insn.
3744         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3745         (cris_delayed_get_disassembler): Simplify, directly call the
3746         disassembler returned by cris_get_disassembler.
3747         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3748         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3749         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3750         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3751         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3752         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3753         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3754         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3755         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3756         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3757         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3758         (gdb_print_insn_sparc): Delete function.
3759         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3760         deprecated_tm_print_insn_info.
3761         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3762         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3763         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3764         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3765         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3766         * s390-tdep.c (gdb_print_insn_s390): Delete function.
3767         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3768         (s390_gdbarch_init): Set print_insn.
3769
3770 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3771
3772         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3773         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3774         * infcall.c (call_function_by_hand): Convert the entry point
3775         address into a code address.
3776
3777 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3778
3779         * dsrec.c: Include "gdb_string.h".
3780         * Makefile.in (dsrec.o): Update dependencies.
3781
3782 2003-08-27  Michael Chastain  <mec@shout.net>
3783
3784         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3785
3786 2003-08-27  Andrew Cagney  <cagney@redhat.com>
3787
3788         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3789         (alpha_osf1_init_abi): Do not set call_dummy_address.
3790
3791 2003-08-27  David Carlton  <carlton@kealia.com>
3792
3793         From Randolph Chung  <tausq@debian.org>:
3794         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3795         compiles with -Wformat-nonliteral -Werror.
3796
3797 2003-08-26  Jim Blandy  <jimb@redhat.com>
3798
3799         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3800         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3801         bfd_lookup_symbol, since we only want symbols in code sections.
3802         (look_for_base): Pass zero as the SECT_FLAGS argument to
3803         bfd_lookup_symbol, since we're not concerned about which section
3804         the symbol is in.
3805
3806 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3807
3808         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3809         we are frameless or the return address register is already known.
3810
3811 2003-08-26  Andrew Cagney  <cagney@redhat.com>
3812
3813         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3814         in size.  Add comments.
3815
3816 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
3817
3818         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3819         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3820
3821 2003-08-26  Jason Merrill  <jason@redhat.com>
3822
3823         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3824         case out of #ifdef MIPS block.
3825
3826 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
3827
3828         PR java/1322
3829         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3830         available before calling SECT_OFF_TEXT.
3831         * PROBLEMS: Remove description of java/1322.
3832
3833 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
3834
3835         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
3836         bof, and nat0-nat127 as pseudo-registers.
3837         (ia64_frame_cache): New struct used to cache frame info.
3838         (ia64_register_reggroup_p): New routine used to override default
3839         register grouping so registers without names are still saved and
3840         restored.
3841         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3842         pseudo values.
3843         (ia64_pseudo_register_read): New routine to read pseudo-registers.
3844         (ia64_pseudo_register_write): New routine to write pseudo-registers.
3845         (ia64_alloc_frame_cache): New routine to create a new
3846         ia64_frame_cache.
3847         (examine_prologue): Change prototype to add next_frame pointer.
3848         Assume frameless until otherwise proven.  Verify that the cfm for
3849         current frame matches the cfm that should occur for the prologues
3850         alloc insn and if equal, mark as not frameless.  At end of routine,
3851         if not frameless, calculate registers for the previous frame and store
3852         in the cache, if a cache is provided.
3853         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
3854         and pass 0 for next_frame.
3855         (ia64_store_return_value): Change to use convert_typed_floating()
3856         instead of calling ia64_convert_to_raw().
3857         (ia64_extract_return_value): Change to use convert_typed_floating()
3858         instead of calling ia64_convert_to_virtual().
3859         (ia64_frame_cache): New routine to support new frame model.
3860         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3861         (ia64_frame_sniffer): Ditto.
3862         (ia64_sigtramp_frame_init_saved_regs): Ditto.
3863         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3864         (ia64_sigtramp_frame_prev_register): Ditto.
3865         (ia64_sigtramp_frame_sniffer): Ditto.
3866         (ia64_frame_base_address): Ditto.
3867         (ia64_extract_struct_value_address): Change to issue error message.
3868         (ia64_frame_align): New routine to align sp.
3869         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
3870         (ia64_push_arguments): Removed.  Logic moved to
3871         ia64_push_dummy_call().
3872         (ia64_push_return_address): Ditto.
3873         (ia64_unwind_dummy_id): New function.
3874         (ia64_unwind_pc): Ditto.
3875         (ia64_convert_register_p): Ditto.
3876         (ia64_register_to_value): Ditto.
3877         (ia64_value_to_register): Ditto.
3878         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3879         (ia64_register_byte, ia64_register_raw_size): Ditto.
3880         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3881         (ia64_saved_pc_after_call): Ditto.
3882         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3883         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3884         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3885         (ia64_register_convert_to_raw): Ditto.
3886         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3887         (ia64_init_extra_frame_info): Ditto.
3888         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3889         (ia64_gdbarch_init): Remove registering of deprecated functions that
3890         are no longer used.  Add registration of new gdbarch functions.
3891         Remove registering deprecated_write_sp.  Replace
3892         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3893         Delete set_gdbarch_deprecated_register_convertible(),
3894         set_gdbarch_deprecated_register_convert_to_virtual(), and
3895         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
3896         set_gdbarch_deprecated_register_size(),
3897         set_gdbarch_deprecated_register_bytes(),
3898         set_gdbarch_pcregnum(),
3899         set_gdbarch_deprecated_register_byte(),
3900         set_gdbarch_deprecated_register_raw_size(),
3901         set_gdbarch_deprecated_max_register_raw_size(),
3902         set_gdbarch_deprecated_register_virtual_size(),
3903         and set_gdbarch_deprecated_max_register_virtual_size() calls.
3904         Replace set_gdbarch_deprecated_extract_return_value() with
3905         set_gdbarch_extract_return_value().  Remove calls to:
3906         set_gdbarch_deprecated_saved_pc_after_call();
3907         set_gdbarch_deprecated_frame_chain(),
3908         set_gdbarch_deprecated_frame_saved_pc(),
3909         set_gdbarch_deprecated_frame_init_saved_regs(),
3910         set_gdbarch_deprecated_get_saved_register(),
3911         set_gdbarch_deprecated_call_dummy_words(),
3912         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3913         set_gdbarch_deprecated_init_extra_frame_info(),
3914         set_gdbarch_deprecated_frame_args_address(),
3915         set_gdbarch_deprecated_frame_locals_address(),
3916         and set_gdbarch_deprecated_dummy_write_sp().
3917         Add set_gdbarch_convert_register_p(),
3918         set_gdbarch_register_to_value(),
3919         set_gdbarch_value_to_register(),
3920         set_gdbarch_push_dummy_call(),
3921         set_gdbarch_frame_align(),
3922         set_gdbarch_unwind_dummy_id(),
3923         set_gdbarch_unwind_pc(),
3924         frame_unwind_append_sniffer(),
3925         frame_unwind_append_sniffer(),
3926         and frame_base_set_default().
3927
3928 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
3929
3930         * configure.tgt: Document need for special "mipsisa64" handling.
3931         (mipsisa64*-*-linux64): Handle as target linux64.
3932         (mipsisa64*-*-*): Handle as target embed64.
3933
3934 2003-08-18  Michael Chastain  <mec@shout.net>
3935
3936         * PROBLEMS: Document pr gdb/1322, the Java anonymous
3937         objfile bug.
3938
3939 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
3940
3941         * i387-tdep.h: Update copyright date.
3942         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3943
3944         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3945         CFLAGS games to reflect reality.
3946
3947 2003-08-24  Andrew Cagney  <cagney@redhat.com>
3948
3949         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
3950         GDB_MULTI_ARCH is always non-zero.
3951         * osabi.c (_initialize_gdb_osabi): Ditto.
3952         (gdbarch_init_osabi): Ditto.
3953         * sparc-tdep.c: Ditto for #if code.
3954
3955 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3956
3957         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
3958         Update comments.
3959         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
3960         comments.
3961         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
3962         x86_64_supply_fxsave.
3963         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
3964         x86_64_supply_fxsave.
3965         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
3966         x86_64_supply_fxsave.
3967
3968 2003-08-23  Andreas Jaeger  <aj@suse.de>
3969
3970         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
3971         i387_supply_fxsave.
3972
3973 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
3974
3975         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
3976         i387_supply_register.
3977         (go32_fetch_registers): Adjust call to i387_supply_fsave.
3978         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
3979         i387_supply_fsave.
3980         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
3981         i387_supply_fxsave.
3982         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
3983         i387_supply_fsave.
3984         * i386bsd-nat.c (supply_fpregset): Adjust call to
3985         i387_supply_fsave.
3986         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
3987         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
3988         supply_fpregset.
3989         (store_inferior_registers): Remove extraneous whitespace.  Call
3990         i387_fill_fsave instead of fill_fpregset.
3991         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
3992         (supply_fpregset): Likewise.
3993         * i386v4-nat.c (supply_fpregset): Adjust call to
3994         i387_supply_fsave.
3995         * i386-interix-nat.c (supply_fpregset): Adjust call to
3996         i387_supply_fsave.
3997         * i386-linux-nat.c (supply_fpregset): Adjust call to
3998         i387_supply_fsave.
3999         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4000         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4001         i387supply_fsave and i387_supply_fxsave.
4002         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4003         Incorporate code from `i387_supply_register.
4004         (i387_supply_register): Remove.
4005         (i387_supply_fxsave): Add `regnum' argument.
4006         Update comments.
4007         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4008         prototype.
4009         (i387_supply_register): remove prototype.
4010         Update comments.
4011
4012 2003-08-22  Michael Chastain  <mec@shout.net>
4013
4014         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4015         Add lines for files in gdb/testsuite/gdb.cp/* that are
4016         still not 8.3 unique.
4017
4018 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
4019
4020         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4021         TYPE_VPTR_FIELDNO is valid.
4022
4023 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
4024
4025         * utils.c (set_width_command): Remove prototypes.
4026         (set_screen_size): New prototype.
4027         (init_page_info): Simplify by fetching the screen size from
4028         Readline.  Call set_screen_size.
4029         (set_screen_size): New function.
4030         (set_width): Add missing whitespace in comment.
4031         (set_width_command): Call set_screen_size.
4032         (set_height_command): New function.
4033         (initialize_utils): Fix formatting.  Make "set height" command
4034         call set_height_command.  Remove redundant code that turns off
4035         pagination if output isn't a terminal.  Remove redundant call to
4036         set_width_command.
4037
4038 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
4039
4040         * sparc64-tdep.h (sparc64_regnum): Fix comment.
4041         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4042         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4043         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4044         `case' keyword.
4045         (sparc64_register_info): Give the reister with number
4046         SPARC64_STATE_REGNUM a name.
4047         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4048         %asi and %ccr.
4049         (sparc64_push_dummy_call): Take BIAS into account when checking
4050         stcak alignment.
4051         (sparc_software_single_step): Remove assertions that check whether
4052         NPC and NNPC were zero.
4053         (sparc_supply_rwindow): Make public.  Merge functionality with
4054         sparc64_supply_rwindow.
4055         (sparc_fill_rwindow): Make public.  Merge functionality with
4056         sparc64_fill_rwindow.
4057         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4058         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4059         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4060         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4061         sparc_supply_rwindow instead of sparc64_supply_rwindow.
4062
4063         * reggroups.c: Add whitespace after declarations of local
4064         variables in functions.
4065
4066 2003-08-21  Michael Chastain  <mec@shout.net>
4067
4068         * gdbtypes.h: Change array bound type from an int to enum.
4069
4070 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4071
4072         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4073         * config/sparc/tm-sparc.h: Ditto.
4074         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4075         unconditionally.
4076         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4077
4078 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4079
4080         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4081         (register_objfile_data, set_objfile_data, objfile_data): New
4082         prototypes.
4083         * objfiles.c (objfile_alloc_data, objfile_free_data): New
4084         prototypes.
4085         (allocate_objfile): Call objfile_alloc_data.
4086         (free_objfile): Call objfile_free_data.
4087         (struct objfile_data): New.
4088         (struct objfile_data_registration): New.
4089         (struct objfile_data_registry): New.
4090         (objfile_data_registry): New variable.
4091         (register_objfile_data): New function.
4092         (objfile_alloc_data, objfile_free_data): New functions.
4093         (set_objfile_data, objfile_data): New functions.
4094         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4095         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4096         (_initialize_dwarf2_frame): New function and prototype.
4097
4098 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4099
4100         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4101         a specific architecture.
4102         * arch-utils.h (set_architecture_from_arch_mach): Delete
4103         declaration.
4104         (target_architecture_hook): Delete declaration.
4105         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4106         (default_float_format): Assume GDB_MULTI_ARCH.
4107         (default_double_format): Assume GDB_MULTI_ARCH.
4108         (set_endian_from_file): Delete function.
4109         (arch_ok): Delete function.
4110         (set_arch): Delete function.
4111         (set_architecture_from_arch_mach): Delete function.
4112         (set_architecture_from_file): Delete function.
4113         (set_architecture): Assume GDB_MULTI_ARCH.
4114         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4115
4116 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
4117
4118         Rewrite FreeBSD/sparc64 native configuration.
4119         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4120         * sparc64fbsd-nat.c: New file.
4121         * sparc64fbsd-tdep.c: New file.
4122         * sparc64-tdep.c sparc64-tdep.h: New files.
4123         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4124         sparc64fbsd-tdep.o): New dependencies.
4125         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4126         and sparc64fbsd-tdep.c.
4127         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4128         * config/sparc/fbsd.mh: Remove copyright notice.
4129         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4130         sparcbsd-nat.o.
4131         * config/sparc/fbsd.mt: Remove copyright notice.
4132         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4133         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4134         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4135         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4136         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4137         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4138         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4139         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4140         "sparc/tm-sp64.h".
4141         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4142         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4143
4144 2003-08-21  Michael Chastain  <mec@shout.net>
4145
4146         * symtab.h: Add doco on the space critical structures and
4147         some measurements of space usage.
4148
4149 2003-08-21  Michael Snyder  <msnyder@redhat.com>
4150
4151         * tracepoint.c (trace_dump_command): Trace break address
4152         is subject to DECR_PC_AFTER_BREAK.
4153         (set_traceframe_context): Make "trace_line" an int.
4154         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
4155
4156 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4157
4158         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4159         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4160         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4161         argument passing.
4162         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4163         functions, replace sh_push_dummy_call.
4164         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4165
4166 2003-08-20  Michael Chastain  <mec@shout.net>
4167
4168         * gdbtypes.h (struct main_type): Rearrange to save space.
4169
4170 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4171
4172         * trad-frame.c: Comment typo fix.
4173
4174 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4175             Kevin Buettner  <kevinb@redhat.com>
4176
4177         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4178         (frv_frame_init_saved_regs): Add declaration.
4179         (frame_extra_info): Add new field ``saved_regs''.
4180         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4181         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4182         Update frame related code.
4183         (frv_extract_struct_value_address): Adjust formatting.
4184         * Makefile.in (frv-tdep.o): Update dependencies.
4185         * config/frv/tm-frv.h (target_insert_watchpoint)
4186         (target_remove_watchpoint, target_insert_hw_breakpoint)
4187         (target_remove_hw_breakpoint): Delete these macros.
4188         (remote_insert_watchpoint, remote_remove_watchpoint)
4189         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4190         these declarations.
4191
4192 2003-08-20  Michael Chastain  <mec@shout.net>
4193
4194         * defs.h (ENUM_BITFIELD): New macro.
4195         * symtab.h (ENUM_BITFIELD): Use it.
4196         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4197
4198 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
4199
4200         * MAINTAINERS (write after approval): Add myself.
4201
4202 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4203
4204         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4205         * gdbarch.h, gdbarch.c: Re-generate.
4206         * infcall.c (call_function_by_hand): Adjust the SP by
4207         frame_red_zone_size before allocating any stack space.
4208         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4209         * x86-64-tdep.c (x86_64_frame_align): New function.
4210         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4211
4212         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4213         Remove code adjusting SP so that it skips over the Red Zone.
4214
4215 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4216
4217         * NEWS (New native configurations): Mention FreeBSD/amd64.
4218
4219 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4220
4221         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4222         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4223         "m68k_frame_p".
4224         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4225
4226 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4227
4228         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4229
4230 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
4231
4232         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4233         Define.
4234         * i386-linux-nat.c: Include "linux-nat.h".
4235         (child_post_startup_inferior): New function.
4236
4237 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4238
4239         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4240         at the start of a frameless function.  This probably fixes PR
4241         backtrace/1338.
4242
4243 2003-08-17  Michael Chastain  <mec@shout.net>
4244
4245         * symfile.c (find_sym_fns): Remove special case for apollo target.
4246
4247 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4248
4249         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4250         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4251         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4252         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4253         (linux_supports_tracevforkdone): New function.
4254         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4255         TRACEVFORKDONE.
4256         (child_follow_fork): Handle vfork.
4257         (linux_handle_extended_wait): Likewise.  Also handle exec.
4258         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4259         * NEWS: Mention fork tracing.
4260
4261 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4262
4263         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4264
4265 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4266
4267         * Makefile.in (i386-linux-nat.o): Update dependencies.
4268         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4269         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4270         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4271         * i386-linux-nat.c: Include "linux-nat.h".
4272         (child_post_startup_inferior): New function.
4273         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4274         * infptrace.c (kill_inferior): Wrap in #ifdef.
4275         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4276         attaching to each LWP.
4277         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4278         (init_lin_lwp_ops): Fill in some more operations.
4279         * linux-nat.h (linux_enable_event_reporting)
4280         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4281         prototypes.
4282         * linux-nat.c (linux_enable_event_reporting): New function.
4283         (child_post_attach, linux_child_post_startup_inferior)
4284         (child_post_startup_inferior, child_follow_fork)
4285         (linux_handle_extended_wait, kill_inferior): New functions.
4286
4287 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4288
4289         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4290         * gdbarch.h, gdbarch.c: Re-generate.
4291
4292 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4293
4294         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4295
4296 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4297
4298         * NEWS: Mention that "set prompt-escape-char" was deleted.
4299         * top.c (get_prompt_1): Delete function.
4300         (gdb_prompt_escape):
4301         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4302         prompt-escape-char" command.
4303         (MAX_PROMPT_SIZE): Delete macro.
4304         (get_prompt): Simplify, do not call get_prompt_1.
4305
4306 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4307
4308         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4309         -Werror.  -Wformat-nonliteral problems.
4310
4311 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4312
4313         Further multiarching work mostly for hppa64-*-hpux11:
4314         * hppa-tdep.h: New file.
4315         * hppa-tdep.c: #include hppa-tdep.c.
4316         (hppa32_num_regs): Renamed from hppa_num_regs.
4317         (hppa64_num_regs): New constant.
4318         (hppa64_call_dummy_breakpoint_offset): New constant.
4319         (hppa32_call_dummy_length): New constant.
4320         (hppa64_call_dummy_length): New constant.
4321         (hppa32_stack_align): Make name 32bit explicit.
4322         (hppa32_register_virtual_type): Likewise.
4323         (hppa32_extract_return_value): Likewise.
4324         (hppa32_use_struct_convention): Likewise.
4325         (hppa32_store_return_value): Likewise.
4326         (hppa64_register_virtual_type): New function.
4327         (hppa64_extract_return_value): New function.
4328         (hppa64_use_struct_convention): New function.
4329         (hppa64_store_return_value): New function.
4330         (hppa_frame_locals_address): Remove declaration, function does
4331         not exist anymore.
4332         (hppa_register_byte): Add support for PA64 ABI.
4333         (hppa_gdbarch_init): Add support for PA64 ABI.
4334         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4335         Make name 32bit explicit.
4336         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4337         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4338         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4339         (hppa64_hpux_frame_base_before_sigtramp): New function.
4340         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4341         * config/pa/tm-hppa64.h: Remove macros that are no longer
4342         necessary now that the gdbarch vector is properly setup.
4343         Transform some macros into function calls. Some minor cleanup.
4344         * config/pa/tm-hppah.h: Update function calls in macros
4345         following the function renaming in hppa-hpux-tdep.c.
4346         * Makefile.in (hppa_tdep_h): New variable.
4347         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4348
4349 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4350
4351         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4352
4353 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4354
4355         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4356         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4357         routine.
4358
4359 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4360
4361         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4362         (frv_saved_pc_after_call): Use deprecated ftype.
4363         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4364         (frv_remote_translate_xfer_address): Remove.
4365         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4366
4367 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4368
4369         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4370         initialization after the common gdbarch initialization, not before.
4371
4372 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4373
4374         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4375         (ADDR_BITS_REMOVE): Remove, redundant.
4376
4377 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4378
4379         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4380         gdbarch method to clear the 2 low bits of text addresses.
4381
4382 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4383
4384         * Makefile.in (dsrec.o): Update dependencies.
4385         * dsrec.c: Include "gdb_assert.h".
4386         (make_srec): Use snprintf instead of sprintf, use a literal format
4387         string.
4388
4389 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4390
4391         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4392         FRAME_OBSTACK_ZALLOC.
4393
4394 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4395
4396         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4397         SSE registers.
4398
4399 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4400
4401         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4402         amd64fbsd_sc_reg_offset): Add extern declarations.
4403         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4404         declarations.
4405
4406 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
4407
4408         * MAINTAINERS (write after approval): Update my mail address.
4409
4410 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4411
4412         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4413
4414 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4415
4416         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4417         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4418         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4419         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4420         i386bsd_sc_reg_offset): Add extern declarations.
4421         * i386obsd-nat.c: Include "i386-tdep.h"
4422         (_initialize_i386obsd_nat): Remove extern declarations.
4423         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4424         declarations.
4425         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4426         declarations.
4427
4428         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4429         instead of frame_read_register.
4430         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4431         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4432         SP_REGNUM.
4433         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4434         instead of frame_unwind_unsigned_register.  Use
4435         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4436         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4437         instead of read_register.  Use builtin_type_void_data_ptr instead
4438         of builtin_type_void_func_ptr when extracting the address of the
4439         jmp_buf.
4440         (i386_extract_return_value, i386_store_return_value,
4441         i386_pseudo_register_read, i386_pseudo_register_write): Use
4442         register_size instead REGISTER_RAW_SIZE.
4443
4444 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4445
4446         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4447         sprintf.  Make "name" constant.
4448
4449 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4450
4451         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4452         instead of frame_read_register.
4453         (i387_print_float_info): Use get_frame_register and
4454         get_frame_register_unsigned instead of frame_register_read.
4455
4456         * i386fbsd-nat.c: Include "i386-tdep.h".
4457         (child_resume): Make `eflags' an ULONGEST.  Use
4458         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4459         instead of register_read and register_write.
4460
4461         * i386bsd-nat.c (fetch_inferior_registers,
4462         store_inferior_registers): Don't use && at the end of a line.
4463         (_initialize_i386bsd_nat): Fix typo.
4464
4465         * frame.c (_initialize_frame): Add missing backslash.
4466
4467         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4468         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4469         and supply_register instead of manipulating the register buffer
4470         directly.
4471
4472         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4473         * config/i386/nm-i386sol2.h
4474         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4475
4476         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4477         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4478         instructions that GCC likes to mingle into the prologue.  Fixes
4479         gdb/1253 and gdb/1255.
4480
4481 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4482
4483         Fix GDB PR cli/926.
4484         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4485         * command.h (add_setshow_uinteger_cmd): Declare.
4486         * frame.c (set_backtrace_cmd): New function.
4487         (show_backtrace_cmd): New function.
4488         * frame.c (_initialize_frame): Replace "set/show
4489         backtrace-below-main" with "set/show backtrace past-main".  Add
4490         command "set/show backtrace limit".
4491         (backtrace_past_main): Rename "backtrace_below_main".
4492         (backtrace_limit): New variable.
4493         (get_prev_frame): Update.  Check the backtrace_limit.
4494
4495 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4496
4497         * defs.h (xstrprintf): Declare.
4498         * utils.c (xstrprintf): New function.
4499         * breakpoint.c (insert_breakpoints): Replace sprintf and
4500         non-literal format strings, with xstrprintf and cleanups.
4501         (delete_breakpoint,breakpoint_re_set): Ditto.
4502         (commands_command, insert_breakpoints): Ditto.
4503         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4504         (break_at_finish_command_1): Ditto.
4505
4506 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4507
4508         * MAINTAINERS (language support): List Adam Fedor as Objective C
4509         maintainer.
4510
4511 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4512
4513         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4514         are now multiarched.
4515
4516 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4517
4518         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4519         longer necessary now that hppa64 is partially multiarch'ed.
4520
4521 2003-08-08  Andrew Cagney  <cagney@redhat.com>
4522
4523         * interps.c (interp_set): Check for a NULL "old_interp".
4524
4525 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4526
4527         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4528         (install-only): Support DESTDIR.
4529         (uninstall): Likewise.
4530         (install-gdbtk): Likewise.
4531
4532 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
4533
4534         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4535         contains something meaningful at all times.
4536
4537 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4538
4539         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4540
4541 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4542
4543         * MAINTAINERS (write after approval): Added self.
4544
4545 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4546
4547         * inferior.h (AT_SYMBOL): Define.
4548         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4549         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4550         * mips-tdep.c (mips_call_dummy_address): Delete function.
4551         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4552         set call_dummy_address.
4553
4554 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4555
4556         * language.c (op_error): Delete function.
4557         (binop_type_check): Delete function.
4558         * language.h (type_op_error, range_op_error): Delete macros.
4559         (op_error): Delete declaration.
4560
4561 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4562
4563         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4564
4565 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
4566
4567         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4568         (x86_64_push_arguments): Skip the red zone.
4569
4570 2003-08-05  Andrew Cagney  <cagney@redhat.com>
4571
4572         * reggroups.c (reggroup_next): Check for the final entry.
4573
4574 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4575
4576         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4577         * cli/cli-script.c (define_command): Call query directly, instead
4578         of passing it a buffer.
4579         * ocd.c (ocd_error): Pass error a constant format string.
4580         * remote-mips.c (mips_error): Use fputs_filtered.
4581
4582         * solib-svr4.c (_initialize_svr4_solib): Update
4583         register_gdbarch_data call.
4584         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4585
4586         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4587         (register_gdbarch_data): Delete "free" parameter.  Update
4588         comments.
4589         * gdbarch.h, gdbarch.c: Re-generate.
4590         * reggroups.c (_initialize_reggroup): Update.
4591         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4592         * frame-base.c (_initialize_frame_base): Update.
4593         * frame-unwind.c (_initialize_frame_unwind): Update.
4594         * user-regs.c (_initialize_user_regs): Update.
4595         * remote.c (_initialize_remote): Update.
4596         * regcache.c (_initialize_regcache): Update.
4597
4598         * regcache.c (xfree_regcache_descr): Delete function.
4599         (_initialize_regcache): Update call to register_gdbarch_data.
4600         (init_regcache_descr, init_legacy_regcache_descr): Use
4601         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4602
4603         * remote.c (free_remote_state): Delete function.
4604         (_initialize_remote): Update register_gdbarch_data.
4605         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4606         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4607
4608 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4609
4610         * reggroups.c (struct reggroup_el): Define.
4611         (struct reggroups): Delete field "nr_group".  Replace array
4612         "group" with a "first" to "last" linked list.
4613         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4614         (reggroups_free): Delete function.
4615         (add_group): Update.  Add "el" parameter.
4616         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4617         (default_groups): Update.
4618         (reggroup_next): Replace reggroups.
4619         (reggroups_dump): Update.
4620         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4621         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4622         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4623
4624 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4625
4626         * Makefile.in (tui-interp.o): Update dependencies.
4627
4628 2003-08-04  David Carlton  <carlton@kealia.com>
4629
4630         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4631         to internal_error call.
4632         * source.c (forward_search_command): Add "%s" format argument.
4633         (reverse_search_command): Ditto.
4634         * top.c (quit_confirm): Ditto.
4635         * cli/cli-setshow.c (do_setshow_command): Ditto.
4636         * cp-valprint.c (cp_print_class_method): Replace
4637         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4638         (cp_print_class_member): Ditto.
4639         * event-top.c (command_line_handler): Ditto.
4640         * linux-proc.c (linux_info_proc_cmd): Ditto.
4641         * p-typeprint.c (pascal_type_print_base): Ditto.
4642         * p-valprint.c (pascal_object_print_class_method): Ditto.
4643         (pascal_object_print_class_member): Ditto.
4644         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4645         * remote.c (remote_cisco_section_offsets): Ditto.
4646         * top.c (command_line_input): Ditto.
4647         * utils.c (vwarning,error_stream,quit): Ditto.
4648         * valprint.c (print_floating,print_binary_chars)
4649         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4650
4651 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4652
4653         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4654
4655 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4656
4657         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4658         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4659         amd64fbsd-nat.c.
4660
4661 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4662
4663         * Makefile.in: Update all dependencies and definitions.
4664
4665 2003-08-02  Adam Fedor  <fedor@gnu.org>
4666
4667         * linespec.c (is_objc_method_format): New function
4668         (decode_line_1, locate_first_half): Use it.
4669         Fixes PR objc/1298
4670
4671 2003-08-01  Andrew Cagney  <cagney@redhat.com>
4672
4673         * NEWS: Mention that m32r is multi-arch.
4674         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4675         * configure.tgt: Recognize m32r-*-*.
4676         * config/m32r/tm-m32r.h: Delete file.
4677         * config/m32r/m32r.mt: New file.
4678         * m32r-rom.c (m32r_upload_command): Use hostent only when
4679         gethostname succeeds, in order to avoid a compilation
4680         warning.
4681         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4682         compiler warning.
4683
4684 2003-08-01  Michael Snyder  <msnyder@redhat.com>
4685
4686         * sh-tdep.c (sh_frame_align): New gdbarch method.
4687         (sh_gdbarch_init): Set up frame_align method.
4688
4689 2003-07-31  Michael Snyder  <msnyder@redhat.com>
4690
4691         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4692         which is already covered by the new frames infrastructure.
4693
4694 2003-07-31  Andrew Cagney  <cagney@redhat.com>
4695
4696         * user-regs.c (struct user_reg): Add "next" link.
4697         (struct user_regs): Replace "user" with "first" and "last" links.
4698         (append_user_reg): Add pre-allocated "reg" parameter.
4699         (builtin_user_regs): Provide initial value for "last".
4700         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4701         (user_regs_init): Allocate memory from the gdbarch obstack.
4702         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4703         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4704         linked list.
4705         (usernum_to_user_reg): New function.
4706         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4707         (value_of_user_reg): Use usernum_to_user_reg.
4708         (user_regs_free): Delete function.
4709         (_initialize_user_regs): Update register_gdbarch_data call.
4710
4711 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
4712
4713         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4714
4715 2003-07-30  Michael Snyder  <msnyder@redhat.com>
4716
4717         * value.h (value_being_returned): Add a struct_addr argument.
4718         * infcall.c (call_function_by_hand): Pass struct_addr to
4719         value_being_returned.
4720         * infcmd.c (print_return_value): Pass zero as struct_addr.
4721         * values.c (value_being_returned): If struct_addr is passed,
4722         use it instead of trying to recover it from the inferior.
4723
4724 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
4725
4726         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4727         the prologue analyzer won't need to attempt to extract the pc
4728         value from the woefully incomplete dummy frame.
4729         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4730         possible.  Disable code which modifies the frame.
4731
4732 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4733
4734         * annotate.c (annotate_breakpoints_headers): Restrict annotation
4735         to level 2.
4736         (annotate_breakpoints_table, annotate_record): Ditto.
4737         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4738         (annotate_field_name_end, annotate_field_value): Ditto.
4739         (annotate_field_end, annotate_frame_source_begin): Ditto.
4740         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4741         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4742         (annotate_frame_begin, annotate_frame_function_name): Ditto.
4743         (annotate_frame_address_end, annotate_frame_address): Ditto.
4744         (annotate_frame_args, annotate_frame_end): Ditto.
4745         (annotate_frame_where, annotate_arg_begin): Ditto.
4746         (annotate_arg_name_end, annotate_arg_value): Ditto.
4747         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4748         (annotate_function_call, annotate_signal_name): Ditto.
4749         (annotate_signal_string, annotate_signal_name_end): Ditto.
4750         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4751         (annotate_value_begin, annotate_value_history_value): Ditto.
4752         (annotate_value_history_end, annotate_value_end): Ditto.
4753         (annotate_display_begin, annotate_display_number_end): Ditto.
4754         (annotate_display_format, annotate_display_expression): Ditto.
4755         (annotate_display_expression_end, annotate_display_value): Ditto.
4756         (annotate_display_end, annotate_array_section_begin): Ditto.
4757         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4758         (annotate_elt, annotate_array_section_end): Ditto.
4759
4760 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4761
4762         * regcache.c (struct regcache_descr): Update comments on
4763         nr_raw_registers.
4764         (init_legacy_regcache_descr): Don't set nr_raw_registers or
4765         sizeof_raw_register_valid_p.
4766         (init_regcache_descr): Set nr_raw_registers and
4767         sizeof_raw_register_valid_p before calling
4768         init_legacy_regcache_descr.
4769
4770 2003-07-28  Andrew Cagney  <cagney@redhat.com>
4771
4772         * mips-tdep.c (print_gp_register_row): Print the GPR's register
4773         MOD NUM_REGS.
4774
4775 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
4776
4777         * thread.c (info_threads_command): Use get_selected_frame ().
4778         Check that there is at least one non-sentinel frame.
4779
4780 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4781
4782         * m68hc11-tdep.c (struct frame_extra_info): Remove.
4783         (m68hc11_pop_frame): Remove.
4784         (m68hc11_frame_saved_pc): Remove.
4785         (m68hc11_frame_chain): Remove.
4786         (m68hc11_frame_init_saved_regs): Remove.
4787         (m68hc11_init_extra_frame_info): Remove.
4788         (m68hc11_store_struct_return): Remove.
4789         (m68hc11_saved_pc_after_call): Remove.
4790
4791 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4792
4793         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4794         frame unwind information.
4795         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4796         and adapted for frame unwinding.
4797         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4798         (m68hc11_unwind_pc): New function.
4799         (m68hc11_frame_unwind_cache): New function to analyze frames.
4800         (m68hc11_frame_this_id): New function to create new frame struct.
4801         (m68hc11_frame_prev_register): New function to unwind a register from
4802         the frame.
4803         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4804         (m68hc11_frame_p): New function for the above.
4805         (m68hc11_frame_base_address): New function to return fp of frame.
4806         (m68hc11_frame_args_address): Update for frame.
4807         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4808         (m68hc11_unwind_sp): New function.
4809         (m68hc11_unwind_dummy_id): New function.
4810         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4811         calls.
4812
4813 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4814
4815         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4816         (m68hc11_guess_from_prologue): Advance the pc and frame size only
4817         when we are beyond the current pc.
4818
4819 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
4820
4821         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4822         from m68hc11_push_arguments.
4823         (m68hc11_push_arguments): Remove.
4824         (m68hc11_push_return_address): Remove.
4825         (m68hc11_gdbarch_init): Install the above; remove above deprecated
4826         handlers; remove deprecated_extra_stack_alignment_needed.
4827
4828 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4829
4830         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4831         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4832         REAL_PC and not the pointer.
4833         * hppa-hpux-tdep.c: Include frame.h
4834
4835 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4836
4837         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4838         GDB_MULTI_ACH_PARTIAL.
4839
4840 2003-07-27  Andrew Cagney  <cagney@redhat.com>
4841
4842         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4843         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4844         operator at start and not end of line.
4845         (decode_prologue): Ditto.
4846         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4847         frame_unwind_register_unsigned instead of
4848         frame_unwind_unsigned_register.
4849         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4850         read_register.
4851         (m32r_push_dummy_call): Use register_size instead of
4852         REGISTER_RAW_SIZE.
4853         (m32r_frame_sniffer): Replace m32r_frame_p.
4854         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4855         * m32r-rom.c (report_transfer_performance): Delete extern
4856         declaration.
4857         (m32r_load, m32r_upload_command): Use print_transfer_performance
4858         instead of report_transfer_performance.
4859         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4860         / add_show_from_set.
4861
4862 2003-07-26  Andrew Cagney  <cagney@redhat.com>
4863
4864         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4865         store_return_value and extract_struct_value_address.
4866
4867 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
4868
4869         PR c++/1267
4870         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4871         NULL, default to the section containing PC.
4872
4873 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
4874
4875         * NEWS: Mention "regs" deprecated for m68hc11 too.
4876
4877         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4878         (m68hc11_print_register): New function to print out one register.
4879         (m68hc11_print_registers_info): New function to print registers.
4880         (show_regs): Deprecate and use the above.
4881         (m68hc11_gdbarch_init): Install the print_registers_info.
4882
4883 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
4884
4885         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4886         that we have a SIGTRAP before returning non-zero.
4887
4888 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
4889             Elena Zannoni  <ezannoni@redhat.com>
4890
4891         * linespec.c (decode_line_2): Avoid crash if
4892         find_function_start_sal() returns empty record.
4893
4894 2003-07-23  Andreas Schwab  <schwab@suse.de>
4895
4896         * ia64-tdep.c (ia64_print_insn): New function.
4897         (ia64_gdbarch_init): Set print_insn to it.
4898         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4899         deprecated_tm_print_insn_info.
4900
4901 2003-07-22  Michael Snyder  <msnyder@redhat.com>
4902
4903         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4904         handle 8-bit returns (long long).
4905         (h8300h_extract_return_value): Ditto.
4906         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4907
4908 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4909
4910         * gdbarch.c Include "gdb_obstack.h".
4911         (struct gdbarch): Add an "obstack".
4912         (alloc_gdbarch_data): Allocate the gdbarch data using
4913         GDBARCH_OBSTACK_CALLOC.
4914         (free_gdbarch_data): Delete function.
4915         (gdbarch_obstack_zalloc): New function.
4916         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4917         Assert that the architecture is not initialized.
4918         (gdbarch_alloc): Allocate an obstack, allocate the architecture
4919         vector from the obstack.
4920         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4921         architecture obstack.
4922         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4923         (set_gdbarch_data): Assert that the data is not initialized.
4924         (struct gdbarch_data): Delete member "free".
4925         (register_gdbarch_data): Do not initialize "free".
4926         * gdbarch.h, gdbarch.c: Re-generate.
4927
4928 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4929
4930         * configure.in (build_warnings): Add -Wformat-nonliteral.
4931         * configure: Re-generate.
4932
4933 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4934
4935         * dwarf2loc.c (locexpr_describe_location): Fix typos.
4936
4937 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
4938
4939         * findvar.c (read_var_value): Remove case for thread local storage
4940         variables.  It is now entirely handled by the dwarf2 location
4941         expression code.
4942         * printcmd.c (address_info): Ditto.
4943         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4944         enumeration value.
4945         (struct symbol): Remove objfile field, which was used by
4946         LOC_THREAD_LOCAL_STATIC only.
4947         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
4948         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
4949         usage of objfile pointer.
4950         * dwarf2loc.c (locexpr_describe_location): Add case to handle
4951         thread local variables.
4952         Add include of objfiles.h.
4953         * dwarf2expr.c (execute_stack_op): Add comments about thread local
4954         storage variables.
4955         * Makefile.in (dwarf2loc.o): Update dependencies.
4956
4957 2003-07-22  Andrew Cagney  <cagney@redhat.com>
4958
4959         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
4960         get_frame_base.
4961         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
4962         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
4963         (struct value): Add opaque declaration.
4964         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
4965
4966 2003-07-21  Andrew Cagney  <cagney@redhat.com>
4967
4968         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
4969         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
4970
4971 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4972
4973         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4974         regcache_cooked_read_unsigned instead of read_register.
4975         (m68hc11_saved_pc_after_call): Likewise.
4976         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
4977         instead of write_register.
4978         (m68hc11_register_type): New function.
4979         (m68hc11_register_virtual_type): Remove.
4980         (m68hc11_store_return_value): Convert to use the regcache.
4981         (m68hc11_extract_struct_value_address): Likewise.
4982         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
4983         m68hc11_register_type; undeprecate store_return_value and
4984         extract_struct_value_address.
4985
4986 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
4987
4988         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
4989         and translate to use regcache.
4990         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
4991
4992 2003-07-18  Andrew Cagney  <cagney@redhat.com>
4993
4994         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
4995         * gdbarch.h, gdbarch.c: Re-generate.
4996         * i386-tdep.c (i386_gdbarch_init): Do not set
4997         DWARF2_BUILD_FRAME_INFO.
4998         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
4999         unconditionally.
5000         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5001         DWARF2_BUILD_FRAME_INFO.
5002
5003 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5004
5005         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5006         * disasm.c (gdb_disassemble_info): Initilize di.arch.
5007
5008 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5009
5010         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5011         frame_unwind_address_in_block, instead of frame_pc_unwind.
5012         (dwarf2_frame_cache): Ditto.
5013
5014 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5015
5016         * user-regs.h (struct gdbarch): Declare opaque.
5017         * ui-out.h (struct ui_file): Declare opaque.
5018         * dwarf2-frame.h (struct frame_info): Declare opaque.
5019
5020 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
5021
5022         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
5023         #include "...".
5024         (procfs_meminfo): Change strerror to safe_strerror.
5025         (procfs_can_run): Remove K&R badness.
5026
5027 2003-07-17  Michael Snyder  <msnyder@redhat.com>
5028
5029         * remote-sim.c: Comment typo fix.
5030
5031 2003-07-17  Andrew Cagney  <cagney@redhat.com>
5032
5033         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
5034         configure.
5035         * sparc-tdep.c (sparc_intreg_size): Make non-static.
5036         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5037         GDB_MULTI_ARCH_PARTIAL.
5038
5039 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
5040
5041         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5042         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
5043         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5044
5045 2003-07-16  Theodore A. Roth  <troth@openavr.org>
5046
5047         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5048         found.
5049         (avr_frame_unwind_cache): Don't unwind FP for main.
5050         Update a comment.
5051         Save the computed prev_sp.
5052         (avr_saved_regs_unwinder): Remove function.
5053         (avr_frame_prev_register): Use PC unwind logic from
5054         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5055
5056 2003-07-16  Andrew Cagney  <cagney@redhat.com>
5057
5058         * frame-base.h (frame_base_p_ftype): Delete definition.
5059         (frame_base_append_predicate): Delete declaration.
5060         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5061         (frame_unwind_append_predicate): Delete declaration.
5062         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5063         (append_predicate): Delete parameter "p".
5064         (frame_unwind_append_predicate): Delete function.
5065         (frame_unwind_append_sniffer): Update call to append_predicate.
5066         (frame_unwind_free): Delete function.
5067         (_initialize_frame_unwind): Pass NULL as "free" to
5068         register_gdbarch_data.
5069         (frame_unwind_init): Append the dummy_frame_sniffer.
5070         (frame_unwind_find_by_frame): Simplify.
5071         * frame-base.c (struct frame_base_table): Delete field "p".
5072         (append_predicate): Delete parameter "p".
5073         (frame_base_append_predicate): Delete function.
5074         (frame_base_append_sniffer): Update call to append_predicate.
5075         (frame_base_free): Delete function.
5076         (frame_base_find_by_frame): Simplify.
5077         (_initialize_frame_base): Pass NULL as "free" to
5078         register_gdbarch_data.
5079         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5080         (x86_64_sigtramp_frame_sniffer): Replace
5081         "x86_64_sigtramp_frame_p".
5082         (x86_64_init_abi): Set the frame unwind sniffers.
5083         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5084         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5085         (m68k_gdbarch_init): Set the frame unwind sniffers.
5086         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5087         "i386_sigtramp_frame_p".
5088         (i386_frame_sniffer): Replace "i386_frame_p".
5089         (i386_gdbarch_init): Set the frame unwind sniffers.
5090         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5091         (avr_gdbarch_init): Set the frame unwind sniffers.
5092         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5093         "alpha_sigtramp_frame_p"
5094         (alpha_heuristic_frame_sniffer): Replace
5095         "alpha_heuristic_frame_p".
5096         (alpha_gdbarch_init): Set the frame unwind sniffers.
5097         (alpha_dwarf2_init_abi): Ditto.
5098         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5099         "alpha_debug_frame_p".
5100         (alpha_mdebug_frame_base_sniffer): Replace
5101         "alpha_mdebug_frame_base_p".
5102         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5103         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5104         (d10v_gdbarch_init): Set the frame unwind sniffer.
5105         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5106         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5107         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5108         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5109         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5110         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5111
5112 2003-07-16  Michael Snyder  <msnyder@redhat.com>
5113
5114         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5115         should go thru sh_dsp_register_sim_regno, else the dsp regs
5116         will not get the right values.
5117
5118 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5119
5120         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5121         deprecated_store_floating by call to store_typed_floating.
5122         (sh_sh4_register_convert_to_raw): Substitute call to
5123         deprecated_extract_floating by call to extract_typed_floating.
5124
5125 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5126
5127         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5128
5129 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5130
5131         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5132         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5133         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5134         as possible.
5135         (do_pseudo_register): Remove.
5136         (sh_push_dummy_code): New function.
5137         (sh64_store_struct_return): Rename from sh_store_struct_return.
5138         Only called for sh64 now.
5139         (sh_extract_struct_value_address): Regcache'ify.
5140         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5141         and accomodate new tasks.
5142         (sh64_push_return_address): Rename from sh_push_return_address.
5143         Only called for sh64 now.
5144         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5145         Regcache'ify.
5146         (sh3e_sh4_extract_return_value): Regcache'ify.
5147         (sh_default_store_return_value): Ditto.
5148         (sh3e_sh4_store_return_value): Ditto.
5149         (sh_default_register_byte): Remove.
5150         (sh_sh4_register_byte): Remove.
5151         (sh_default_register_raw_size): Remove.
5152         (sh_sh4_register_raw_size): Remove.
5153         (sh_register_virtual_size): Remove.
5154         (sh_sh3e_register_virtual_type): Remove.
5155         (sh_sh3e_register_type): New function.
5156         (sh_sh4_register_virtual_type): Remove.
5157         (sh_sh4_register_type): New function.
5158         (sh_default_register_virtual_type): Remove.
5159         (sh_default_register_type): New function.
5160         (do_fv_register_info): Add parameters to accomodate call from
5161         sh_print_registers_info.
5162         (do_dr_register_info): Ditto.
5163         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5164         Add parameters to accomodate call from sh_print_registers_info.
5165         (sh_do_fp_register): Ditto.
5166         (sh64_do_pseudo_register): Call do_dr_register_info,
5167         do_fv_register_info and sh_do_fp_register with default parameters.
5168         (sh_do_register): Add parameters to accomodate call from
5169         sh_print_registers_info.
5170         (sh_print_register): Ditto.
5171         (sh_print_registers_info): Rename from sh_do_registers_info.
5172         Add parameters to be used as gdbarch_print_registers_info
5173         implementation.  Accomodate removed do_pseudo_register function
5174         pointer.
5175         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5176         function pointer. Call sh_print_register with default parameters.
5177         (sh64_do_registers_info): Call sh_print_registers_info instead of
5178         sh_do_registers_info.
5179         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5180         detection of deprecated vs. non-deprecated functionality.
5181         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5182         function pointer assignments by direct function calls.
5183
5184 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5185
5186         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5187         (frame_register_unwind, create_new_frame): Ditto.
5188         (legacy_get_prev_frame, get_frame_type): Ditto.
5189         (get_frame_base_address): Use frame_base_find_by_frame.
5190         (get_frame_locals_address): Use frame_base_find_by_frame.
5191         (get_frame_args_address): Use frame_base_find_by_frame.
5192         * frame-base.h (frame_base_sniffer_ftype): Declare.
5193         (frame_base_append_sniffer): Declare.
5194         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5195         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5196         (frame_base_append_sniffer): New function.
5197         (frame_base_append_predicate): Add a NULL sniffer.
5198         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5199         (struct frame_base_table): Add "sniffer".
5200         (frame_base_free): Free the "sniffer" table.
5201         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5202         (frame_unwind_append_sniffer): Declare.
5203         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5204         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5205         (struct frame_unwind_table): Add "sniffer", delete "middle".
5206         (append_predicate): Add "sniffer" parameter, append the sniffer.
5207         (frame_unwind_init): Update append_predicate call.
5208         (frame_unwind_append_sniffer): New function.
5209         (frame_unwind_append_predicate): Update append_predicate call.
5210         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5211
5212 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5213
5214         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5215         before code inhibiting repeated unwind attempts.  Add to
5216         commentary on that test's problems.
5217         * blockframe.c (inside_main_func): Look for "main" in the minimal
5218         symbol table.
5219         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5220         identical.
5221
5222 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5223
5224         * complaints.c (struct explanation): Define.
5225         (struct complaints): Change type of "explanation" to "struct
5226         explanation".
5227         (symfile_explanations): Convert to a "struct explanation" table.
5228         (vcomplaint): Update.
5229
5230 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
5231
5232         * x86-64-linux-nat.c (regmap): Removed.
5233         (supply_gregset, fill_gregset): Call
5234         x86_64_linux_(fill,supply)_gregset functions.
5235         * x86-64-linux-tdep.c (USER_*): New defines.
5236         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5237         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5238         New functions.
5239         (fetch_core_registers): Ditto.
5240         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5241         * x86-64-linux-tdep.h: New file.
5242         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5243         and core-regset.o.
5244         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5245
5246 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5247
5248         * x86-64-tdep.c (x86_64_store_return_value): Use
5249         regcache_cooked_write_part instead of regcache_cooked_write.
5250
5251         * configure.host: Add x86_64-*-freebsd*.
5252         * configure.tgt: Add x86_64-*-freebsd*.
5253         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5254         * amd64fbsd-nat.c: New file.
5255         * amd64fbsd-tdep.c: New file.
5256         * config/i386/nm-fbsd64.h: New file.
5257         * config/i386/fbsd64.mh: New file.
5258         * config/i386/fbsd64.mt: New file.
5259
5260 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5261
5262         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5263         `sc_regs_offset' and `sc_fpregs_offset'.
5264         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5265         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5266         (alpha_sigtramp_register_address): Rewrite to use new members of
5267         `struct gdbarch_tdep'.
5268         (alpha_gdbarch_init): Initialize new members of struct
5269         gdbarch_tdep'.
5270         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5271         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5272         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5273         (alphafbsd_pc_in_sigtramp): Implement.
5274         (alphafbsd_sigtramp_offset): New function.
5275         (alphafbsd_sigcontext_addr): New function.
5276         (alphafbsd_init_abi): Initialize signal trampoline related members
5277         of `struct gdbarch_tdep'.
5278         (_initialize_alphafbsd_tdep): Add prototype.
5279
5280 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5281
5282         * Makefile.in (install-only): Quote sed expression when generating
5283         transformed_name.
5284
5285 2003-07-11  Richard Henderson  <rth@redhat.com>
5286
5287         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5288         * dwarf2-frame.c: Include complaints.h.
5289         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5290         variable initialization; return NULL on error.
5291         (decode_frame_entry): New.
5292
5293 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5294
5295         * frame.h (frame_address_in_block): Delete declaration.
5296         * blockframe.c (frame_address_in_block): Delete function.
5297         (get_frame_block): Use get_frame_address_in_block.
5298         (block_innermost_frame): Ditto.
5299         * stack.c (print_frame, backtrace_command_1): Ditto.
5300
5301         * frame.h (get_frame_address_in_block): Declare.
5302         (frame_unwind_address_in_block): Declare.
5303         * frame.c (frame_unwind_address_in_block): New function.
5304         (get_frame_address_in_block): New function.
5305
5306 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5307
5308         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5309         pre-default.   Note: re-generate has no effect.
5310
5311 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5312
5313         * gdbarch.sh: When a variable, but not a function, compare against
5314         0.  Fix problem in previous patch.
5315         * gdbarch.c: Re-generate.
5316
5317 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5318
5319         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5320         functions against NULL, not 0.
5321         * gdbarch.c: Re-generate.
5322
5323 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5324
5325         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5326         null string instead of a null pointer.
5327         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5328
5329 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5330
5331         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5332
5333 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5334
5335         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5336         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5337         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5338         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5339         * x86-64-tdep.c: ... from here.
5340
5341 2003-07-09  Andreas Schwab  <schwab@suse.de>
5342
5343         * m68k-tdep.h (enum struct_return): Define.
5344         (struct gdbarch_tdep): Add struct_return.
5345         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5346         bytes are padded to the right, not to the left.  Pass struct value
5347         address in register %a1, not on stack.
5348         (m68k_use_struct_convention): New function.
5349         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5350         struct_return in tdep to pcc_struct_return.
5351         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5352         reg_struct_return.
5353
5354 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5355
5356         * somread.c (som_symfile_offsets): Fix compilation error.
5357
5358 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5359
5360         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5361         Add comments about the checks.
5362
5363 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5364
5365         * Makefile.in: Make dependency section headers consistent.
5366         (config_h): Move to $BUILD headers section.
5367         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5368         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5369         (ada-exp.tab.c): Move to YACC/LEX section.
5370         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5371         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5372
5373 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5374
5375         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5376         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5377         of strerror with safe_strerror, use ISO C function definitions,
5378         and replace instances of sprintf with snprintf.
5379
5380 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5381
5382         * frame.c (get_prev_frame): Enable check for identical frames.
5383         Update comments.  Update error messages.
5384
5385 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5386
5387         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5388
5389 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5390
5391         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5392         sort_symtab_syms, no longer necessary.
5393
5394 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5395
5396         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5397
5398 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5399
5400         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5401         (mips_register_byte): Likewise.
5402
5403 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5404
5405         * Makefile.in (sparc_tdep_h): New.
5406         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5407         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5408         * sparc-linux-nat.c: Include "sparc-tdep.h".
5409         * sparc-nat.c: Likewise.
5410         * sparc-tdep.c: Likewise.
5411         * sparc64nbsd-nat.c: Likewise.
5412         * sparcnbsd-nat.c: Likewise.
5413         * sparcnbsd-tdep.c: Likewise.
5414         * sparc-tdep.h: New file.
5415         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5416         and sparc_npc_regnum.
5417
5418 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5419
5420         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5421         (mips_linux_cannot_store_register): List supported instead of
5422         unsupported registers.
5423
5424 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5425
5426         * disasm.c (dump_insns): Separate instructions from addresses.
5427
5428 2003-07-07  Andreas Schwab  <schwab@suse.de>
5429
5430         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5431         dependencies.
5432         * m68k-tdep.c (NUM_FREGS): Delete.
5433         (SIG_PC_FP_OFFSET): Delete.
5434         (TARGET_M68K): Delete.
5435         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5436         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5437         P_MOVEL_SP, P_MOVEML_SP): Define.
5438         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5439         P_TRAP): Delete.
5440         (m68k_register_raw_size): Delete.
5441         (m68k_register_virtual_size): Delete.
5442         (m68k_register_type): Renamed from m68k_register_virtual_type and
5443         add gdbarch argument.
5444         (m68k_store_struct_return): Delete.
5445         (m68k_deprecated_extract_return_value): Delete.
5446         (m68k_deprecated_extract_struct_value_address): Delete.
5447         (m68k_frame_chain): Delete.
5448         (m68k_frame_saved_pc): Delete.
5449         (m68k_fix_call_dummy): Delete.
5450         (m68k_push_dummy_frame): Delete.
5451         (m68k_pop_frame): Delete.
5452         (m68k_extract_return_value): New function.
5453         (m68k_store_return_value): Rewrite using regcache.
5454         (m68k_extract_struct_value_address): Rewrite using regcache.
5455         (m68k_push_dummy_call): New function.
5456         (struct m68k_frame_cache): Define.
5457         (m68k_alloc_frame_cache): New function.
5458         (m68k_analyze_frame_setup): New function.
5459         (m68k_analyze_register_saves): New function.
5460         (m68k_analyze_prologue): New function.
5461         (m68k_skip_prologue): Rewrite using above functions.
5462         (m68k_unwind_pc): New function.
5463         (m68k_frame_cache): New function.
5464         (m68k_frame_this_id): New function.
5465         (m68k_frame_prev_register): New function.
5466         (m68k_frame_unwind): New variable.
5467         (m68k_frame_p): New function.
5468         (m68k_sigtramp_frame_cache): New function.
5469         (m68k_sigtramp_frame_this_id): New function.
5470         (m68k_sigtramp_frame_prev_register): New function.
5471         (m68k_sigtramp_frame_unwind): New variable.
5472         (m68k_sigtramp_frame_p): New function.
5473         (m68k_frame_base_address): New function.
5474         (m68k_frame_base): New function.
5475         (m68k_unwind_dummy_id): New function.
5476         (fill_gregset): Use regcache_collect.
5477         (fill_fpregset): Likewise.
5478         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5479         defined.
5480         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5481         deprecated_init_frame_pc, deprecated_store_struct_return,
5482         deprecated_extract_return_value, deprecated_store_return_value,
5483         deprecated_frame_chain, deprecated_frame_saved_pc,
5484         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5485         deprecated_register_virtual_size,
5486         deprecated_max_register_raw_size,
5487         deprecated_max_register_virtual_size,
5488         deprecated_register_virtual_type, deprecated_register_size,
5489         deprecated_register_byte, deprecated_register_bytes,
5490         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5491         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5492         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5493         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5494         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5495         deprecated_push_dummy_frame, deprecated_pop_frame,
5496         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5497         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5498         store_return_value, extract_struct_value_address, register_type,
5499         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5500         predicates.
5501         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5502         M68K_MAX_REGISTER_SIZE): Define.
5503         (struct m68k_sigtramp_info): Define.
5504         (struct gdbarch_tdep): Add get_sigtramp_info.
5505         * m68klinux-nat.c (fetch_register): Use register_size instead of
5506         REGISTER_RAW_SIZE.  Don't put assignment in if.
5507         (store_register): Likewise.
5508         (fetch_inferior_registers): Likewise.
5509         (store_inferior_registers): Likewise.
5510         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5511         (m68k_linux_frame_saved_pc): Delete.
5512         (m68k_linux_sigcontext_reg_offset,
5513         m68k_linux_ucontext_reg_offset): Define.
5514         (m68k_linux_get_sigtramp_info): New function.
5515         (m68k_linux_extract_return_value): Rewrite using regcache.
5516         (m68k_linux_store_return_value): Likewise.
5517         (m68k_linux_extract_struct_value_address): Likewise.
5518         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5519         Don't set deprecated_frame_saved_pc,
5520         deprecated_extract_return_value, deprecated_store_return_value,
5521         deprecated_extract_struct_value_address.  Set
5522         extract_return_value, store_return_value,
5523         extract_struct_value_address.
5524
5525 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5526
5527         * expprint.c: Include "user-regs.h" instead of "frame.h".
5528         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5529         frame_map_regnum_to_name.
5530         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5531         (frame_map_name_to_regnum): Simplify, call
5532         user_reg_map_name_to_regnum.
5533         (frame_map_regnum_to_name): Simplify, call
5534         user_reg_map_regnum_to_name.
5535         (frame_register_unwind): Update.
5536         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5537         (_initialize_frame_reg): Call user_reg_add_builtin.
5538         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5539         (value_of_register): Use value_of_user_reg.
5540         * eval.c (evaluate_subexp_standard): Update.
5541         * parse.c (write_dollar_variable): Update.
5542         * d10v-tdep.c (d10v_print_registers_info): Update.
5543         * infcmd.c (registers_info): Update.
5544         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5545         (builtin_regs_h): Delete macro.
5546         (user_regs_h): Define.
5547         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5548         (builtin-regs.o): Delete target.
5549         (user-regs.o): Specify dependencies.
5550         (expprint.o): Update dependencies.
5551         (findvar.o): Update dependencies.
5552         (frame.o): Update dependencies.
5553         (std-regs.o): Update dependencies.
5554
5555 2003-07-06  Christopher Faylor  <cgf@redhat.com>
5556
5557         * win32-nat.c (solib_symbols_add): Use one variable for all section
5558         address stuff.  Pass variable rather than address of variable to
5559         safe_symbol_file_add.
5560
5561 2003-07-06  Andreas Schwab  <schwab@suse.de>
5562
5563         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5564
5565 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
5566
5567         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5568
5569 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5570
5571         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5572
5573 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5574
5575         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5576         * config/i386/nto.mh: New file.
5577         * config/i386/nm-nto.h: New file.
5578         * configure.host: Add i[3456]86-*-nto*.
5579
5580 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
5581
5582         * remote-vx.c (vx_add_symbols): Fix compilation error.
5583
5584 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5585
5586         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5587         * gdbarch.h, gdbarch.c: Re-generate.
5588         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5589         (legacy_register_name): Declare.
5590         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5591         (REGISTER_NAME): Define.
5592         * sparc-tdep.c (legacy_register_name): New function.
5593         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5594         (REGISTER_NAME): Define.
5595         (hppa64_register_name): Declare.
5596         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5597         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5598         (hppa64_register_name): New function.
5599         (hppa_register_name): New function.
5600         * arch-utils.c (legacy_register_name): Delete.
5601         * arch-utils.h (legacy_register_name): Delete.
5602
5603 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
5604
5605         * cli/cli-interp.c (cli_interpreter_resume): Update the
5606         cli_uiout's stream to gdb_stdout.
5607
5608 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5609
5610         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5611         predicate.
5612         * gdbarch.h, gdbarch.c: Re-generate.
5613         * regcache.c (init_regcache_descr): Use legacy code when either
5614         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5615
5616 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5617
5618         * NEWS: Move "set logging" entry into GDB 6.0 section.
5619
5620 2003-07-02  Jim Blandy  <jimb@redhat.com>
5621
5622         * s390-tdep.c (struct frame_extra_info): new member:
5623         'stack_bought_valid'.
5624         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5625         initialize fextra_info->stack_bought.
5626         (s390_frameless_function_invocation): Don't trust the value of
5627         fextra_info_ptr->stack_bought unless
5628         fextra_info->stack_bought_valid is set.
5629
5630         New S390 prologue analyzer.
5631         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5632         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5633         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5634         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5635         compute_x_addr, s390_on_stack, s390_store,
5636         s390_get_signal_frame_info): New functions.
5637         (S390_NUM_SPILL_SLOTS): New macro.
5638         (s390_get_frame_info): Rewritten.
5639         (is_arg_reg): Deleted.
5640
5641         Break out the decoding of S/390 instructions into separate
5642         functions, to make it more legible, and easier to check
5643         against the spec.
5644         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5645         is_rx, is_rxe): New functions.
5646         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5647         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5648         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5649         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5650         enums for opcode values.  (Is this an improvement?)
5651
5652 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5653
5654         * i386-tdep.c: Revert change committed as part of trad-frame code
5655         below.
5656
5657 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5658
5659         * breakpoint.c (insert_catchpoint): Make static.
5660
5661 2003-07-02  Andreas Schwab  <schwab@suse.de>
5662
5663         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5664         former ia64_push_arguments and ia64_push_return_address, and use
5665         regcache functions instead of read/write_register.
5666         (ia64_gdbarch_init): Set push_dummy_call instead of
5667         deprecated_push_arguments and deprecated_push_return_address.
5668
5669 2003-07-01  Andreas Jaeger  <aj@suse.de>
5670
5671         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5672         before the call.
5673         Set %rax only to number of SSE registers used.
5674
5675 2003-07-01  Andrew Cagney  <cagney@redhat.com>
5676
5677         * trad-frame.h: Update comments, a -1 .addr is reserved.
5678         (trad_frame_value_p, trad_frame_addr_p): Declare.
5679         (trad_frame_reg_p): Declare.
5680         (trad_frame_set_value): Rename trad_frame_register_value.
5681         (trad_frame_set_unknown): Declare.
5682         * trad-frame.c (trad_frame_realreg_p): New function.
5683         (trad_frame_addr_p, trad_frame_value_p): New function.
5684         (trad_frame_set_unknown): New function.
5685         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5686         (trad_frame_prev_register): Use trad_frame_realreg_p,
5687         trad_frame_addr_p and trad_frame_value_p.
5688         (trad_frame_set_value): Rename trad_frame_register_value.
5689         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5690         and trad_frame_set_value.
5691
5692 2003-06-30  Jim Blandy  <jimb@redhat.com>
5693
5694         Patch from IBM (authors unspecified, probably Ulrich Weigand and
5695         Gerhard Tonn) for argument passing on the S/390 and S/390x:
5696         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5697         for 16 registers, and then 32 more bytes.
5698         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5699         New macros.
5700         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5701         Move up in the file, since it's now used by is_simple_arg.
5702         (is_simple_arg): Don't assume registers are four bytes long.
5703         Exclude all double arguments.  Extended floats are not simple
5704         args.
5705         (is_power_of_two): New function.
5706         (pass_by_copy_ref): Call is_power_of_two, and check that the
5707         length fits in a register, rather than listing all the acceptable
5708         sizes.  Extended floats are not passed by reference.
5709         (s390_push_arguments): Don't assume registers are four bytes long.
5710         Reserve an argument register to point to the buffer for structures
5711         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
5712         S390_STACK_FRAME_OVERHEAD.
5713
5714 2003-06-30  Andreas Schwab  <schwab@suse.de>
5715
5716         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5717         format error message.
5718
5719 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
5720
5721         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5722
5723 2003-06-30  David Carlton  <carlton@kealia.com>
5724
5725         Band-aid for PR c++/1245.
5726         * Makefile.in (cp-support.o): Depend on complaints_h.
5727         * cp-support.c: Include complaints.h.  Add declaration for
5728         find_last_component.
5729         (cp_find_first_component): Separate code into
5730         cp_find_first_component_aux.
5731         (cp_find_first_component_aux): Call demangled_name_complaint.
5732         (demangled_name_complaint): New.
5733
5734 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5735
5736         * remote.c (remote_write_bytes): Explicitly compute and then use
5737         the payload size.  Update comments to reflect.  Fixes problem of
5738         GDB not sending small packets as found by Fred Fish.
5739
5740 2003-06-30  Andrew Cagney  <cagney@redhat.com>
5741
5742         * remote.c (remote_async_wait): Fix -Wformat problem.
5743
5744 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5745
5746         * remote.c (remote_wait): Call error, and not warning, when the
5747         packet is corrupt.
5748         (remote_async_wait): Ditto.
5749
5750 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5751
5752         * sparc-tdep.c (sparc_y_regnum): Make external again.
5753
5754 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
5755
5756         * cli/cli-logging.c (pop_output_files): Add void to function
5757         definition.
5758
5759 2003-06-29  Andrew Cagney  <cagney@redhat.com>
5760
5761         * frame.c (frame_register_unwind): Use unsigned char when dumping
5762         the buffer contents.
5763
5764 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
5765
5766         * cli/cli-logging.c: New file.
5767         * cli-out.c (struct ui_out_data): Add original_stream.
5768         (cli_redirect): New function.
5769         (cli_ui_out_impl): Add cli_redirect.
5770         (cli_out_new): Initialize original_stream.
5771         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5772         (uo_redirect, ui_out_redirect): New.
5773         * ui-out.h (struct ui_out_impl): Add redirect member.
5774         (redirect_ftype): New.
5775         (ui_out_redirect): Add prototype.
5776         * Makefile.in: Add rules for cli-logging.c.
5777         * NEWS: Mention "set logging".
5778
5779 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5780
5781         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5782
5783 2003-06-27  Andrew Cagney  <cagney@redhat.com>
5784
5785         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5786         (m68hc11_gdbarch_init): Do not set call_dummy_address.
5787         * avr-tdep.c (avr_call_dummy_address): Delete function.
5788         (avr_gdbarch_init): Do not set call_dummy_address.
5789
5790 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5791
5792         * symfile.c (syms_from_objfile): Move variables to inner block.
5793         Move the checks for the non-mainline case a bit earlier to avoid
5794         doing some useless computations.
5795
5796 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
5797
5798         * dwarfread.c (decode_modified_type): Gag new compiler warning.
5799
5800 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
5801
5802         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5803         sections.
5804
5805 2003-06-26  Michael Chastain  <mec@shout.net>
5806
5807         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5808         gdb/testsuite/gdb.c++/pr-1210.exp.
5809
5810 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5811
5812         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5813         altivec_expression.h and altivec_registers.h.
5814
5815 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5816
5817         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5818         info->mach when MIPS16.  Patch suggested by Fred Fish.
5819
5820 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5821
5822         * utils.c (internal_vproblem): Print the problem to a reason
5823         buffer and then pass to query.  Make the msg variable more local.
5824
5825 2003-06-26  Andrew Cagney  <cagney@redhat.com>
5826
5827         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
5828         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
5829         * gdbarch.h, gdbarch.c: Re-generate.
5830         * frame-base.c (default_frame_args_address): Update.  Use
5831         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5832         not available.
5833         (default_frame_locals_address): Ditto for
5834         DEPRECATED_FRAME_LOCALS_ADDRESS.
5835         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5836         (vax_frame_num_args): Update.
5837         (vax_gdbarch_init): Update.
5838         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5839         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5840         * mcore-tdep.c (mcore_gdbarch_init): Update.
5841         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5842         * ia64-tdep.c (ia64_gdbarch_init): Update.
5843         * symtab.h (address_class): Update comments.
5844         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5845         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5846         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5847         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5848         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5849         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5850         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5851         * alpha-mdebug-tdep.c: Update.
5852         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5853
5854 2003-06-26  Andreas Jaeger  <aj@suse.de>
5855
5856         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5857         of SSE registers so that varargs functions work.  Rework handling
5858         of passing arguments on the stack.
5859         (x86_64_store_return_value): Return double and float values in SSE
5860         register.
5861
5862 2003-06-24  Michael Chastain  <mec@shout.net>
5863
5864         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5865         the "constructor breakpoints ignored" bug.
5866
5867 2003-06-25  David Carlton  <carlton@kealia.com>
5868
5869         * MAINTAINERS: Update e-mail address.
5870
5871 2003-06-24  Jim Blandy  <jimb@redhat.com>
5872
5873         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5874
5875         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5876         function.
5877         (ppc_linux_init_abi): Register it as the
5878         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5879
5880         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5881         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5882         method.
5883
5884         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5885         (ppc64_standard_linkage_target): Use it.
5886
5887 2003-06-23  Andrew Cagney  <cagney@redhat.com>
5888
5889         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5890         for 0 "int0" and 4 "int32" sized registers.
5891         * gdbtypes.c (builtin_type_int0): Define.
5892         (build_gdbtypes): Initialize builtin_type_int0.
5893         * gdbtypes.h (builtin_type_int0): Declare.
5894
5895 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
5896
5897         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5898         as characters are unsigned.
5899
5900 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5901
5902         PR gdb/1179
5903         * dwarfread.c (struct_type): Skip static fields without crashing.
5904
5905 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5906
5907         GDB 6.0 branch created.
5908         * README: Update.
5909         * PROBLEMS: Update.  Empty.
5910         * NEWS: Update.
5911
5912 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5913
5914         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5915         Suggested by Nick Hibma <n_hibma@webweaving.org>.
5916
5917 2003-06-22  Andrew Cagney  <cagney@redhat.com>
5918
5919         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5920         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
5921         Velikov.
5922
5923 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
5924
5925         * cli/cli-cmds.c (shell_escape): Silence warnings from old
5926         compilers.
5927
5928 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5929
5930         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5931         argument of val_print.
5932         * cp-valprint.c (cp_print_value): Don't add the offset parameter
5933         to the address argument of baseclass_offset or target_read_memory.
5934         Do add it to the argument of cp_print_value_fields.
5935
5936 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5937
5938         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5939         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5940         instead of 0..NUM_REGS.
5941         (mips_register_reggroup_p): New function.
5942         (mips_pseudo_register_write): New function.
5943         (mips_pseudo_register_read): New function.
5944         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5945         based on the register's type.
5946         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
5947         cooked.
5948         (mips_get_saved_register): Simplify.  Assert that REGNO is a
5949         pseudo / cooked.
5950         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
5951         (mips_register_type): Replace mips_register_virtual_type.  Map
5952         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
5953         when available.
5954         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
5955         that the register is cooked / virtual.
5956         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
5957         Only get the extra info when needed.
5958         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
5959         (mips32_heuristic_proc_desc): Fetch the cooked register.
5960         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
5961         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
5962         (mips_print_register): Use gdbarch_register_type, instead of
5963         REGISTER_VIRTUAL_TYPE.
5964         (print_gp_register_row): Use gdbarch_register_type, instead of
5965         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
5966         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5967         Print the pseudo / cooked registers.
5968         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
5969         Print the pseudo / cooked registers.
5970         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
5971         REG_NUM is pseudo / cooked.
5972         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
5973         (mips_n32n64_xfer_return_value): Ditto.
5974         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
5975         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
5976         (mips_register_sim_regno): New function.
5977         (mips_gdbarch_init): Set deprecated_register_byte,
5978         register_group_p, pseudo_register_write, pseudo_register_read,
5979         register_sim_regno, and num_pseudo_regs.  Set register_type,
5980         instead of register_virtual_type.
5981         * Makefile.in (mips-tdep.o): Update dependencies.
5982         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
5983         REGISTER_VIRTUAL_TYPE.
5984         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
5985         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
5986         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
5987         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
5988         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
5989
5990 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
5991
5992         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
5993         * cli/cli-cmds.c: Include "gdb_vfork.h".
5994         (shell_escape): Use vfork.
5995
5996 2003-06-21  Andrew Cagney  <cagney@redhat.com>
5997
5998         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
5999         32 bit floating-point register saves.
6000
6001         * frame.h (deprecated_unwind_get_saved_register): Delete.
6002         * frame.c (deprecated_unwind_get_saved_register): Delete function.
6003         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6004         and deprecated_get_next_frame_hack instead of
6005         deprecated_unwind_get_saved_register.
6006
6007         * mips-tdep.c (mips_dump_tdep): Do not print
6008         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6009
6010         * frame.c (get_frame_register): New function.
6011         (frame_unwind_register_signed): New function.
6012         (get_frame_register_signed): New function.
6013         (frame_unwind_register_unsigned): New function.
6014         (get_frame_register_unsigned): New function.
6015         * frame.h: Add comments on naming schema.
6016         (get_frame_register, frame_unwind_register_signed): Declare.
6017         (get_frame_register_signed, get_frame_register_signed): Declare.
6018         (frame_unwind_register_unsigned): Declare.
6019         (get_frame_register_unsigned): Declare.
6020
6021 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6022
6023         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6024
6025 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6026
6027         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6028         (avr_read_sp): Ditto.
6029
6030 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
6031
6032         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6033         * config/arm/nm-linux.h: Likewise.
6034         * config/arm/tm-linux.h: Likewise.
6035         * config/ia64/nm-linux.h: Likewise.
6036         * config/ia64/tm-ia64.h: Likewise.
6037         * config/s390/tm-linux.h: Likewise.
6038         * config/s390/tm-s390.h: Likewise.
6039         * s390-nat.c: Likewise.
6040         * s390-tdep.c: Likewise.
6041
6042         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6043         * config/ia64/linux.mt: Likewise.
6044         * config/m68k/linux.mh: Likewise.
6045         * config/mips/linux.mt: Likewise.
6046         * config/powerpc/linux.mh: Likewise.
6047         * config/sh/linux.mt: Likewise.
6048
6049 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
6050
6051         * solib.c (solib_open): Change tests for whether to search
6052         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
6053         comments.
6054
6055 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6056
6057         * avr-tdep.c (avr_frame_address): Delete function.
6058         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6059         set_gdbarch_frame_args_address.
6060
6061 2003-06-19  Andrew Cagney  <cagney@redhat.com>
6062
6063         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6064         (REGISTER_CONVERT_FROM_TYPE): Delete.
6065         (mips_register_convert_to_type): Delete declaration.
6066         (mips_register_convert_from_type): Delete declaration.
6067         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
6068         kernel/.
6069
6070 2003-06-19  Michael Snyder  <msnyder@redhat.com>
6071
6072         * linux-nat.h: New file.
6073         * linux-nat.c: Include linux-nat.h.
6074         * lin-lwp.c: Include linux-nat.h.
6075         Move struct lwp_info def to linux-nat.h.
6076         * linux-proc.c: Include linux-nat.h.
6077         (linux_make_note_section): Iterate over lwps instead of threads.
6078         (linux_do_thread_registers): Use lwp instead of merged pid.
6079         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6080         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6081         Add dependency on linux_nat_h.
6082
6083 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6084
6085         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6086
6087 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6088
6089         * varobj.c (get_type, get_target_type): Use check_typedef.
6090
6091 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6092
6093         * breakpoint.c (insert_catchpoint): Call internal_error.
6094
6095 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6096
6097         * avr-tdep.c (avr_push_dummy_code): Delete function.
6098         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6099
6100 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6101
6102         * arch-utils.c (default_prepare_to_proceed): Remove.
6103         (generic_prepare_to_proceed): Remove.
6104         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6105         (generic_prepare_to_proceed): Remove prototype.
6106         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6107         * gdbarch.c: Regenerate.
6108         * gdbarch.h: Regenerate.
6109         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6110         * hppah-nat.c (hppa_switched_threads): Remove.
6111         * infrun.c (prepare_to_proceed): New static function, copied from
6112         generic_prepare_to_proceed.  Remove select_it argument.
6113         (proceed): Call prepare_to_proceed.
6114         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6115         variables.
6116         (ptrace_wait): Don't set the removed variables.
6117         (hppa_switched_threads): Remove.
6118         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6119         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6120         (lin_lwp_prepare_to_proceed): Remove prototype.
6121         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6122         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6123
6124 2003-06-18  Theodore A. Roth  <troth@openavr.org>
6125
6126         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6127         trad-frame.h.
6128         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6129         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6130         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6131         (AVR_PROLOGUE_*): Enumerate prologue types.
6132         (struct frame_extra_info): Remove.
6133         (struct avr_unwind_cache): Define.
6134         (avr_write_sp): Delete function.
6135         (avr_read_fp): Ditto.
6136         (avr_init_extra_frame_info): Ditto.
6137         (avr_pop_frame): Ditto.
6138         (avr_frame_saved_pc): Ditto.
6139         (avr_saved_pc_after_call): Ditto.
6140         (avr_push_return_address): Ditto.
6141         (avr_frame_chain): Ditto.
6142         (avr_store_struct_return): Ditto.
6143         (avr_push_arguments): Ditto.
6144         (avr_scan_prologue): Update comments. Changed to set up the info for
6145         cache unwinding. Now returns end of prologue PC.
6146         (avr_skip_prologue): Better handling of functions lacking a prologue
6147         by using avr_scan_prologue.
6148         (avr_scan_arg_moves): New function.
6149         (avr_saved_regs_unwinder): Ditto.
6150         (avr_frame_unwind_cache): Ditto.
6151         (avr_unwind_pc): Ditto.
6152         (avr_frame_this_id): Ditto.
6153         (avr_frame_prev_register): Ditto.
6154         (avr_frame_p): Ditto.
6155         (avr_frame_base_address ): Ditto.
6156         (avr_unwind_dummy_id): Ditto.
6157         (avr_push_dummy_code): Ditto.
6158         (push_stack_item): Ditto.
6159         (pop_stack_item): Ditto.
6160         (avr_push_dummy_call): Ditto.
6161         (struct stack_item): Define.
6162         (avr_frame_unwind): Declare structure.
6163         (avr_frame_base): Ditto.
6164         (avr_gdbarch_init): Remove calls to
6165         set_gdbarch_deprecated_init_frame_pc,
6166         set_gdbarch_deprecated_target_read_fp,
6167         set_gdbarch_deprecated_dummy_write_sp,
6168         set_gdbarch_deprecated_fp_regnum,
6169         set_gdbarch_deprecated_push_arguments,
6170         set_gdbarch_deprecated_push_return_address,
6171         set_gdbarch_deprecated_pop_frame,
6172         set_gdbarch_deprecated_store_struct_return,
6173         set_gdbarch_deprecated_frame_init_saved_regs,
6174         set_gdbarch_deprecated_init_extra_frame_info,
6175         set_gdbarch_deprecated_frame_chain,
6176         set_gdbarch_deprecated_frame_saved_pc,
6177         set_gdbarch_deprecated_saved_pc_after_call.
6178         Add calls to set_gdbarch_push_dummy_call,
6179         set_gdbarch_push_dummy_code,
6180         frame_unwind_append_predicate,
6181         frame_base_set_default,
6182         set_gdbarch_unwind_dummy_id,
6183         set_gdbarch_unwind_pc.
6184         Wrap a long line.
6185
6186 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
6187
6188         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6189         registers for H8/300S.
6190         (h8300_print_registers_info): Ditto.
6191         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6192
6193 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
6194
6195         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6196         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6197         (lin_lwp_wait): Likewise.  Update comments.
6198         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6199         (pull_pid_from_list, linux_record_stopped_pid): New.
6200
6201 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6202
6203         * ada-lang.c (scan_discrim_bound): Name first argument.
6204         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6205         declared by ALL_BLOCK_SYMBOLS.
6206
6207 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6208
6209         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6210         ("regcache.h"): Include it.
6211         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6212
6213 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6214
6215         * NEWS: Mention gdbserver detach change and "disconnect" command.
6216         * infcmd.c (disconnect_command): New function.
6217         (_initialize_infcmd): Add ``disconnect'' command.
6218         * remote.c (remote_async_detach): Delete.
6219         (remote_detach): Merge remote_async_detach.
6220         (remote_disconnect): New.
6221         (init_remote_ops): Set to_disconnect.
6222         (init_remote_cisco_ops): Likewise.
6223         (init_remote_async_ops): Likewise.  Use remote_detach.
6224         * target.c (cleanup_target): Default to_disconnect.
6225         (update_current_target): Inherit to_disconnect.
6226         (target_disconnect, debug_to_disconnect): New functions.
6227         (setup_target_debug): Set to_disconnect.
6228         * target.h (struct target_ops): Add to_disconnect.
6229         (target_disconnect): Add prototype.
6230
6231 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6232
6233         * breakpoint.c (insert_catchpoint): New function.
6234         (insert_breakpoints): Use catch_exceptions to call
6235         insert_catchpoint.  Disable catchpoints if they fail to insert.
6236
6237 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6238
6239         * symfile.c (reread_symbols): Clear sym_private.
6240
6241 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6242
6243         * trad-frame.h (struct frame_info): Add opaque declaration.
6244         * remote-fileio.h (struct cmd_list_element): Add opaque
6245         declaration.
6246         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6247         comments.
6248
6249 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6250
6251         * remote.c (remote_prepare_to_store): Replace call to
6252         deprecated_read_register_bytes with multiple regcache_raw_read
6253         calls.
6254
6255 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6256
6257         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6258         (nto_find_and_open_solib): Likewise.
6259         (nto_init_solib_absolute_prefix): Likewise.
6260         (_initialize_nto_tdep): Fix indentation.
6261
6262 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6263
6264         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6265
6266 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6267
6268         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6269
6270 2003-06-17  Jim Blandy  <jimb@redhat.com>
6271
6272         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6273
6274 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6275
6276         * avr-tdep.c (avr_extract_return_value): New function.
6277         (avr_gdbarch_init): Set extract_return_value method.
6278
6279 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6280
6281         * frame.h (deprecated_get_next_frame_hack): Declare.
6282         * frame.c (legacy_saved_regs_prev_register): Only require
6283         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6284         there are always saved regs.
6285         (deprecated_generic_get_saved_register): Do not require
6286         DEPRECATED_FRAME_INIT_SAVED_REGS.
6287         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6288         use frame ID unwind instead.
6289         (deprecated_get_next_frame_hack): New function.
6290
6291 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6292
6293         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6294         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6295         (h8300_push_return_address): Remove.
6296         (h8300_gdbarch_init): Remove calls to
6297         set_gdbarch_deprecated_dummy_write_sp,
6298         set_gdbarch_deprecated_push_arguments and
6299         set_gdbarch_deprecated_push_return_address.
6300         Add call to set_gdbarch_push_dummy_call.
6301
6302 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6303
6304         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6305         (E_PSEUDO_EXR_REGNUM): Ditto.
6306         (h8300_is_argument_spill): Check for instructions moving argument
6307         registers into safe registers.
6308         (h8300_skip_prologue): Check for stm instruction to push registers
6309         used for register variables onto stack.
6310         (gdb_print_insn_h8300): Remove.
6311         (h8300_examine_prologue): Add a comment.
6312         (h8300_register_name): Take pseudo registers into account.
6313         (h8300s_register_name): Ditto.
6314         (h8300sx_register_name): Ditto.
6315         (h8300_print_register): Ditto.
6316         (h8300_print_registers_info): Define "nice" printing order.
6317         (h8300_saved_pc_after_call): Take pseudo registers into account.
6318         (h8300_register_type): Ditto.  Return type used for remote connection
6319         when requesting real CCR or EXR register, return actual type when
6320         requesting pseudo CCR or EXR.
6321         (h8300_pseudo_register_read): New function.
6322         (h8300_pseudo_register_write): Ditto.
6323         (h8300_dbg_reg_to_regnum): Ditto.
6324         (h8300s_dbg_reg_to_regnum): Ditto.
6325         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6326         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6327         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6328         set_gdbarch_print_insn architecture dependent.
6329         Call set_gdbarch_pseudo_register_read and
6330         set_gdbarch_pseudo_register_write.
6331         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6332
6333 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6334
6335         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6336         * gdbarch.h, gdbarch.c: Re-generate.
6337         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6338         * s390-tdep.c (s390_gdbarch_init): Update.
6339         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6340         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6341         * mips-tdep.c (mips_gdbarch_init): Update.
6342         * mcore-tdep.c (mcore_gdbarch_init): Update.
6343         * cris-tdep.c (cris_gdbarch_init): Update.
6344         * infcall.c (call_function_by_hand): Update.
6345         * ia64-tdep.c (ia64_push_arguments): Update comment.
6346         * frame.c (legacy_get_prev_frame): Do not assume
6347         SAVE_DUMMY_FRAME_TOS_P.
6348         * dummy-frame.c (find_dummy_frame): Update comment.
6349
6350 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6351
6352         * regcache.c (do_cooked_read): Do not use register_valid_p.
6353
6354 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6355
6356         * avr-tdep.c (avr_register_type): Remove a blank line.
6357         (avr_scan_prologue): Correct some comments.
6358
6359 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6360
6361         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6362         prologue types.
6363         Properly scan prologues generated by gcc with the -mcall-prologues
6364         option.
6365         Add code to scan -mcall-prologues for mega devices.
6366
6367 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6368
6369         * avr-tdep.c (avr_register_byte): Delete function.
6370         (avr_register_raw_size): Delete function.
6371         (avr_register_virtual_size): Delete function.
6372         (avr_register_virtual_type): Delete function.
6373         (avr_register_type): New function.
6374         (avr_address_to_pointer): Remove unused code.
6375         (avr_read_fp): Need to read FP as two separate bytes due to change to
6376         avr_register_type() usage.
6377         (avr_gdbarch_init): Don't set deprecated_register_size.
6378         Don't set deprecated_register_bytes.
6379         Don't set deprecated_register_byte.
6380         Don't set deprecated_register_raw_size.
6381         Don't set deprecated_max_register_raw_size.
6382         Don't set deprecated_register_virtual_size.
6383         Don't set deprecated_max_register_virtual_size.
6384         Don't set deprecated_register_virtual_type.
6385         Set register_type method.
6386
6387 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6388
6389         * Makefile.in (linux-nat.o): Add rule.
6390         * linux-nat.c: New file.
6391         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6392         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6393         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6394         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6395         * config/arm/linux.mh (NATDEPFILES): Likewise.
6396         * config/i386/linux.mh (NATDEPFILES): Likewise.
6397         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6398         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6399         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6400         * config/mips/linux.mh (NATDEPFILES): Likewise.
6401         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6402         * config/s390/s390.mh (NATDEPFILES): Likewise.
6403         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6404
6405 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6406
6407         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6408         replace out-of-date comment.
6409
6410 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6411
6412         * rdi-share/host.h (Fail): Change to a varargs function.
6413         * remote-rdi.c (Fail): Update.
6414
6415 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6416
6417         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6418         (i386_convert_register_p, i386_register_to_value,
6419         i386_register_from_value): Handle types longer than 8 bytes.
6420
6421 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6422
6423         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6424         Move floating-point code to new function in i387-tdep.c.
6425         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6426         New functions containing code moved here from i386-tdep.c.
6427         * i387-tdep.h: Add opaque declaration for `struct type'.
6428         (i387_register_to_value, i387_value_to_register): New prototypes.
6429         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6430         (x86_64_init_abi): Set convert_register_p, register_to_value and
6431         value_to_register here.
6432
6433 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6434
6435         * mips-tdep.c (mips_register_to_value): Make static.
6436         (mips_value_to_register): Make static.
6437         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6438         * ia64-tdep.c (ia64_register_raw_size): Make static.
6439         (ia64_register_virtual_size): Make static.
6440         (ia64_register_byte): Make static.
6441         * i387-tdep.c: Include "i387-tdep.h".
6442         (print_387_control_word): Delete function.
6443         (print_387_status_word): Delete function.
6444         (print_387_status_bits): Delete function.
6445         (print_387_control_bits): Delete function.
6446         * Makefile.in (i387-tdep.o): Update dependencies.
6447         * rdi-share/host.h (Fail): Declare.
6448         * remote-rdi.c (Fail): Update to match declaration.
6449
6450 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6451
6452         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6453         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6454         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6455         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6456         * README: Delete reference to remote-array.
6457         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6458         (remote-array.o): Delete target.
6459         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6460         * remote-array.c: Delete file.
6461
6462 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6463             Mark Kettenis  <kettenis@gnu.org>
6464
6465         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6466         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6467         parameter with "frame".
6468         * gdbarch.h, gdbarch.c: Re-generate.
6469         * frame.h (put_frame_register): Declare.
6470         * frame.c (put_frame_register): New function.
6471         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6472         (legacy_register_to_value): Rewrite, use "frame" to get the
6473         register value.
6474         (legacy_value_to_register): Rewrite, use "frame" to find the
6475         register's location before storing.
6476         * arch-utils.h (legacy_convert_register_p): Update.
6477         (legacy_register_to_value, legacy_value_to_register): Update.
6478         * findvar.c (value_from_register): Rewrite, eliminate use of
6479         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6480         "frame" to REGISTER_TO_VALUE.
6481         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6482         lval_reg_frame_relative + lval_register branch of the switch.  Do
6483         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6484         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6485         I386_EDI_REGNUM): New defines.
6486         (i386_next_regnum, i386_convert_register_p,
6487         i386_register_to_value, i386_value_to_register): New functions.
6488         (i386_register_convertible, i386_register_convert_to_virtual,
6489         i386_convert_to_raw): Remove functions.
6490         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6491         value_to_register instead of register_convertible,
6492         register_convert_to_virtual and register_convert_to_raw.
6493         * mips-tdep.c (mips_convert_register_p): New function.
6494         (mips_value_to_register): Replace mips_register_convert_from_type.
6495         (mips_register_to_value): Replace mips_register_convert_to_type.
6496         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6497         register_to_value.
6498         * alpha-tdep.c (alpha_convert_register_p): Update.
6499         (alpha_value_to_register): Update, store the register.
6500         (alpha_register_to_value): Update, fetch the register.
6501
6502 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6503
6504         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6505         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6506         Don't set deprecated_call_dummy_words.
6507         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6508         Don't set remote_translate_xfer_address.
6509         (avr_io_reg_read_command): Remove commented out debug printf.
6510         Wrap a long line.
6511
6512 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6513
6514         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6515         causes gdb to seg fault.
6516
6517 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
6518
6519         * sparc-nat.c (fetch_inferior_registers): Correct
6520         a reference to "registers".
6521
6522 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
6523
6524         * Makefile.in (exc_request_U_h): Define
6525         (exc_request_S_h): Likewise.
6526         (msg_reply_S_h): Likewise.
6527         (msg_U_h): Likewise.
6528         (notify_S_h): Likewise.
6529         (process_reply_S_h): Likewise.
6530         (gnu-nat.o): Depend on gdb_obstack_h
6531         * gnu-nat.c: Include "gdb_obstack.h".
6532
6533 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6534
6535         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6536         * gdbarch.h, gdbarch.c: Re-generate.
6537
6538 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6539
6540         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6541         when deprecated REGISTER macros can be deleted.
6542         * gdbarch.h, gdbarch.c: Re-generate.
6543
6544 2003-06-13  Jim Blandy  <jimb@redhat.com>
6545
6546         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6547         Linux entry point symbols for _dl_debug_state, too.
6548
6549 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6550
6551         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6552         available, do not use the FP register, and always save the TOS.
6553         * dummy-frame.c (dummy_frame_this_id): Do not assert
6554         SAVE_DUMMY_FRAME_TOS.
6555         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6556         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6557         (i386_push_dummy_call): Add 8 to the returned SP.
6558         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6559         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6560         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6561         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6562         (x86_64_push_dummy_call): Return "sp + 16".
6563         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6564         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6565         save_dummy_frame_tos.
6566
6567 2003-06-13  Jim Blandy  <jimb@redhat.com>
6568
6569         * frv-tdep.c (frv_use_struct_convention): Delete static
6570         declaration for function deleted in my change of 2003-06-12.
6571
6572 2003-06-13  Theodore A. Roth  <troth@openavr.org>
6573
6574         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6575         (avr_pointer_to_address): Shift code addrs left 1 bit.
6576         (avr_convert_from_func_ptr_addr): Delete function since operation is
6577         better handled by avr_address_to_pointer and avr_pointer_to_address.
6578         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6579
6580 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
6581
6582         From Kelley Cook  <kelleycook@wideopenwest.com>:
6583         * configure.host: Accept i[34567]86 variants.
6584         * configure.tgt: Likewise.
6585         * nlm/configure.in: Likewise.
6586         * nlm/configure: Regenerated.
6587
6588 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
6589
6590         * arm-tdep.c (solib-svr4.h): Dont' include it.
6591         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6592         * arm-linux-tdep.c: ... here.  Make static.
6593         (arm_linux_init_abi): Register it.
6594         (solib-svr4.h): Include it.
6595         * Makefile.in: Update dependencies.
6596         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6597         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6598
6599 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6600
6601         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6602         indicate registers used for return values.
6603         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6604         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6605         members.
6606         (h8300_init_extra_frame_info): Ditto.
6607         (h8300_frame_locals_address): Removed.
6608         (h8300_frame_args_address): Removed.
6609         (h8300_extract_return_value): Use new regcache structure. Only care
6610         for 16 bit CPUs.
6611         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6612         (h8300_store_return_value): Use new regcache structure. Only care
6613         for 16 bit CPUs.
6614         (h8300h_store_return_value): Same function for 32 bit CPUs.
6615         (h8300_store_struct_return): Removed.
6616         (h8300_extract_struct_value_address): Use new regcache structure.
6617         (h8300h_extract_struct_value_address): Removed.
6618         (h8300_push_dummy_code): New function.
6619         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6620         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6621         set_gdbarch_store_return_value architecture dependent.
6622         Call set_gdbarch_push_dummy_code and
6623         set_gdbarch_extract_struct_value_address.
6624         Remove calls to set_gdbarch_frame_args_address,
6625         set_gdbarch_frame_locals_address,
6626         set_gdbarch_deprecated_store_struct_return,
6627         set_gdbarch_deprecated_extract_return_value,
6628         set_gdbarch_deprecated_extract_struct_value_address,
6629         set_gdbarch_deprecated_call_dummy_words and
6630         set_gdbarch_deprecated_sizeof_call_dummy_words.
6631
6632 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6633
6634         * h8300-tdep.c (h8300_register_byte): Remove.
6635         (h8300h_register_byte): Remove.
6636         (h8300_register_virtual_type): Remove.  Substitute by...
6637         (h8300_register_type): New function.
6638         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6639         (h8300h_extract_struct_value_address): Ditto.
6640         (h8300_gdbarch_init): Drop calls to
6641         set_gdbarch_deprecated_register_byte and
6642         set_gdbarch_deprecated_register_virtual_type.
6643         Add call to set_gdbarch_register_type.
6644
6645 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6646
6647         * gdbarch.sh: Update comments on registers.
6648         (deprecated_register_byte): Rename register_byte.
6649         (deprecated_register_raw_size): Rename register_raw_size.
6650         (deprecated_register_virtual_size): Rename register_virtual_size.
6651         (deprecated_register_virtual_type): Rename register_virtual_type.
6652         * gdbarch.h, gdbarch.c: Re-generate.
6653         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6654         * vax-tdep.c (vax_gdbarch_init): Update.
6655         * v850-tdep.c (v850_gdbarch_init): Update.
6656         * sparc-tdep.c (sparc_gdbarch_init): Update.
6657         * sh-tdep.c (sh_gdbarch_init): Update.
6658         * s390-tdep.c (s390_gdbarch_init): Update.
6659         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6660         * ns32k-tdep.c: Update.
6661         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6662         * mips-tdep.c (mips_gdbarch_init): Update.
6663         * mcore-tdep.c (mcore_gdbarch_init): Update.
6664         * m68k-tdep.c (m68k_gdbarch_init): Update.
6665         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6666         * ia64-tdep.c (ia64_gdbarch_init): Update.
6667         * hppa-tdep.c (hppa_gdbarch_init): Update.
6668         * h8300-tdep.c (h8300_gdbarch_init): Update.
6669         * frv-tdep.c (frv_gdbarch_init): Update.
6670         * cris-tdep.c (cris_gdbarch_init): Update.
6671         * avr-tdep.c (avr_gdbarch_init): Update.
6672         * alpha-tdep.c (alpha_gdbarch_init): Update.
6673         * arm-tdep.c (arm_gdbarch_init): Update.
6674
6675 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6676
6677         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6678         mips_o32_use_struct_convention with always_use_struct_convention.
6679
6680 2003-06-12  David Carlton  <carlton@kealia.com>
6681
6682         * cp-namespace.c (cp_set_block_scope): Comment out
6683         processing_has_namespace_info branch.
6684
6685 2003-06-12  Jim Blandy  <jimb@redhat.com>
6686
6687         Recognize and skip 64-bit PowerPC Linux linkage functions.
6688         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6689         insn_pattern, insns_match_pattern, d_field, ds_field): New
6690         functions, macros, and types for working with PPC instructions.
6691         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6692         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6693         ppc64_skip_trampoline_code): New functions, variables, and macros
6694         for recognizing and skipping linkage functions.
6695         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6696         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6697
6698         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6699         register offsets for both the 32- and 64-bit interfaces.
6700
6701         Actually finish the job started by my change of 2003-05-29.
6702         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6703         other #definition of this.
6704         (ppc_linux_skip_trampoline_code): Remove declaration.
6705         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6706         static.
6707         (ppc_linux_init_abi): Register it as the skip_trampoline_code
6708         method for GDBARCH.
6709
6710         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6711         'long' on ppc64-*-linux*.
6712
6713         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6714         isn't #defined, assume the register doesn't exist: act as if
6715         tdep->ppc_mq_regnum were -1.
6716
6717         * configure.host, configure.tgt: Add entries for
6718         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6719         powerpc/linux.mt.
6720         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6721         New files.
6722
6723         * arch-utils.c (always_use_struct_convention): New function.
6724         * arch-utils.h (always_use_struct_convention): New prototype.
6725         * alpha-tdep.c (alpha_use_struct_convention): Delete.
6726         (alpha_gdbarch_init): Register always_use_struct_convention,
6727         instead of alpha_use_struct_convention.
6728         * cris-tdep.c (cris_use_struct_convention): Delete.
6729         (cris_gdbarch_init): Register always_use_struct_convention,
6730         instead of cris_use_struct_convention.
6731         * frv-tdep.c (frv_use_struct_convention): Delete.
6732         (frv_gdbarch_init): Register always_use_struct_convention,
6733         instead of frv_use_struct_convention.
6734         * h8300-tdep.c (h8300_use_struct_convention): Delete.
6735         (h8300_gdbarch_init): Register always_use_struct_convention,
6736         instead of h8300_use_struct_convention.
6737         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6738         (mips_o32_gdbarch_init): Register always_use_struct_convention,
6739         instead of mips_o32_use_struct_convention.
6740
6741 2003-06-12  Andrew Cagney  <cagney@redhat.com>
6742
6743         * wince.c: Include "mips-tdep.h".
6744         * mips-tdep.h (mips_next_pc): Declare.
6745         * mcore-tdep.c: Make more local functions static.
6746         * Makefile.in (wince.o): Update dependencies.
6747
6748 2003-06-12  David Carlton  <carlton@kealia.com>
6749
6750         * symtab.c (lookup_symbol_aux_minsyms): Replace
6751         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6752         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6753         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6754         SYMBOL_NATURAL_NAME.
6755
6756 2003-06-12  Andreas Schwab  <schwab@suse.de>
6757
6758         * Makefile.in (tuiDisassem.o): Update dependencies.
6759
6760 2003-06-12  David Carlton  <carlton@bactrian.org>
6761
6762         * symtab.h: Delete declaration of make_symbol_overload_list.
6763         Add declaration of lookup_partial_symbol.
6764         * symtab.c (remove_params): Move to cp-support.c.
6765         (overload_list_add_symbol, make_symbol_overload_list)
6766         (sym_return_val_size, sym_return_val_index): Ditto.
6767         (lookup_partial_symbol): Make extern.
6768         * cp-support.h: Add declaration of make_symbol_overload_list.
6769         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6770         symtab.h, and block.h.
6771         (remove_params): Move here from symtab.c.
6772         (overload_list_add_symbol, make_symbol_overload_list)
6773         (sym_return_val_size, sym_return_val_index): Ditto.
6774         * valops.c: Include cp-support.h.
6775         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6776         frame_h, and block_h.
6777         (valops.o): Depend on cp_support_h.
6778
6779 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
6780
6781         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6782         substitute by NUM_REGS throughout.
6783         (h8300_register_name): Only care for H8/300 and H8/300H registers.
6784         (h8300s_register_name): New function for H8S registers.
6785         (h8300sx_register_name): Ditto for H8SX registers.
6786         (h8300_print_register): Revise register printing, avoid depending
6787         on 32 bit long.
6788         (h8300_register_byte): Only care for H8/300 registers.
6789         (h8300h_register_byte): New function for any other architecture.
6790         (h8300_register_raw_size): Remove.
6791         (h8300_register_virtual_type): Revise to return actually useful
6792         type.
6793         (h8300_extract_struct_value_address): Only care for H8/300 registers.
6794         (h8300h_extract_struct_value_address): New function for any other
6795         architecture.
6796         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
6797         set_gdbarch_register_name, set_gdbarch_register_byte,
6798         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6799         Remove calls to set_gdbarch_deprecated_register_size,
6800         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6801         set_gdbarch_deprecated_max_register_raw_size,
6802         set_gdbarch_register_virtual_size and
6803         set_gdbarch_deprecated_max_register_virtual_size entirely.
6804         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6805         set_gdbarch_long_double_bit.
6806
6807 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6808
6809         * doublest.c (convert_doublest_to_floatformat): When dealing
6810         with the implied integer bit, only alter mant_bits if we are
6811         processing a full 32 bits of mantissa.
6812
6813 2003-06-11  David Carlton  <carlton@bactrian.org>
6814
6815         * dictionary.h: New.
6816         * dictionary.c: New.
6817         * block.h: Add opaque declaration for struct dictionary.
6818         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6819         'sym' members.
6820         (BLOCK_DICT): New macro.
6821         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6822         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6823         BLOCK_SHOULD_SORT.
6824         (ALL_BLOCK_SYMBOLS): Update definition.
6825         * Makefile.in (SFILES): Add dictionary.c.
6826         (dictionary_h): New.
6827         (COMMON_OBS): Add dictionary.o.
6828         (dictionary.o): New.
6829         (ada-lang.o): Depend on dictionary_h.
6830         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6831         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6832         (mi-cmd-stack.o): Ditto.
6833         (gdbtk-cmds.o): Update dependencies.
6834         (gdbtk-stack.o): Ditto.
6835         * ada-lang.c: Include dictionary.h.
6836         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6837         (fill_in_ada_prototype, debug_print_block): Ditto.
6838         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6839         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
6840         'is_sorted'.
6841         * mdebugread.c: Include dictionary.h.
6842         (struct parse_stack): Delete 'maxsyms' member.
6843         (parse_symbol): Update calls to new_block.  Delete calls to
6844         shrink_block.  Use dictionary methods.
6845         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6846         Update calls to new_symtab.  Don't maintain maxsyms data.
6847         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6848         (add_symbol): Just call dict_add_symbol.
6849         (new_symtab): Delete 'maxsyms' argument.
6850         (new_symtab): Update calls to new_block.
6851         (new_block): Delete 'maxsyms' argument; add 'function' argument.
6852         (shrink_block): Delete function.
6853         (fixup_sigtramp): Update call to new_block.  Add symbol via
6854         dict_add_symbol.
6855         * jv-lang.c: Include dictionary.h.
6856         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6857         appropriately.  Set class_symtab->free_func.  Make sure the
6858         blockvector is big enough to hold two blocks.
6859         (add_class_symtab_symbol): Use dictionary methods.
6860         (free_class_block): New function.
6861         (type_from_class): Replace explicit iteration by
6862         ALL_BLOCK_SYMBOLS.
6863         * symtab.h (struct symtab): Replace 'free_ptr' method by
6864         'free_func'.
6865         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6866         sort_symtab_syms.
6867         * dwarfread.c (psymtab_to_symtab_1): Delete call to
6868         sort_symtab_syms.
6869         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6870         Include dictionary.h.
6871         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6872         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6873         sort_symtab_syms.
6874         * objfiles.c: Include dictionary.h.
6875         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6876         * buildsym.c: Include dictionary.h.
6877         (finish_block): Use dictionary methods.
6878         (end_symtab): Set free_func to NULL, not free_ptr.
6879         * tracepoint.c: Include dictionary.h.
6880         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6881         (scope_info): Ditto.
6882         * stack.c: Include dictionary.h.
6883         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6884         (print_block_frame_labels, print_frame_arg_vars)
6885         (print_frame_args): Ditto.
6886         * symmisc.c (free_symtab_block): Use dictionary methods.
6887         (dump_symtab): Ditto.
6888         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6889         Include dictionary.h.
6890         * symfile.h: Delete declarations of sort_block_syms,
6891         sort_symtab_syms.
6892         * symfile.c (sort_block_syms): Delete.
6893         (sort_symtab_syms): Delete.
6894         * symtab.c: Include dictionary.h.
6895         (lookup_block_symbol): Use dictionary iterators.
6896         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6897         (search_symbols, make_symbol_completion_list): Ditto.
6898         (make_symbol_overload_list): Ditto.
6899         * valops.c (value_of_local): Use dict_empty.
6900         Include dictionary.h.
6901
6902 2003-06-11  J. Brobecker  <brobecker@gnat.com>
6903
6904         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6905
6906 2003-06-11  David Carlton  <carlton@bactrian.org>
6907
6908         * block.h (BLOCK_SHOULD_SORT): Delete.
6909         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6910         blocks.
6911         * ada-lang.c (ada_add_block_symbols): Ditto.
6912         * symfile.c (sort_block_syms): Delete.
6913         (sort_symtab_syms): Ditto.
6914         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6915         declarations.
6916         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6917         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6918         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6919         * dwarfread.c (psymtab_to_symtab_1): Ditto.
6920         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6921         * mdebugread.c (psymtab_to_symtab_1): Ditto.
6922         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6923
6924 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
6925
6926         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6927         bits to 128.
6928
6929 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6930
6931         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6932         REGISTER_CONVERTIBLE.
6933         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6934         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6935         * gdbarch.h, gdbarch.c: Re-generate.
6936         * arch-utils.h (deprecated_register_convertible_not): Rename
6937         generic_register_convertible_not.
6938         * arch-utils.c (deprecated_register_convertible_not): Rename
6939         generic_register_convertible.
6940         (legacy_convert_register_p, legacy_register_to_value): Update.
6941         * sh-tdep.c (sh64_push_arguments): Update.
6942         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6943         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6944         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6945         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6946         * arch-utils.c (legacy_value_to_register): Update.
6947         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6948         (rs6000_register_convert_to_raw): Make parameter "from" const.
6949         * mips-tdep.c (mips_gdbarch_init): Update.
6950         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
6951         * infcmd.c (default_print_registers_info): Update.
6952         * ia64-tdep.c (ia64_gdbarch_init): Update.
6953         (ia64_register_convert_to_raw): Make parameter "from" const.
6954         * i386-tdep.c (i386_gdbarch_init): Update.
6955         (i386_register_convert_to_raw): Update.
6956
6957 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6958
6959         * remote-fileio.c: Include "remote-fileio.h".
6960         * Makefile.in (remote-fileio.o): Update dependencies.
6961         (remote_fileio_h): Fix typo.
6962
6963 2003-06-11  Andrew Cagney  <cagney@redhat.com>
6964
6965         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
6966         (xstormy16_save_dummy_frame_tos): Make static.
6967         (_initialize_xstormy16_tdep): Add declaration.
6968         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6969         * v850-tdep.c: Make local functions static.
6970         (_initialize_v850_tdep): Add declaration.
6971         * sparc-tdep.c: Make local functions static.
6972         (_initialize_sparc_tdep): Add declaration.
6973         * sh-tdep.c: Make local functions static.
6974         (_initialize_sh_tdep): Add declaration.
6975         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
6976         * s390-tdep.c: Make local functions static.
6977         (_initialize_s390_tdep): Add declaration.
6978         * dbxread.c (find_stab_function_addr): Make static.
6979         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
6980         * ocd.c (_initialize_remote_ocd): Add declaration.
6981         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
6982         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
6983         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
6984         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
6985         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6986         * remote-array.c (_initialize_array): Add declaration.
6987         (_initialize_remote_monitors): Add declaration.
6988         * remote-mips.c: Make local functions static.
6989         (_initialize_remote_mips): Add declaration.
6990         * mcore-tdep.c: Make all local functions static.
6991         (_initialize_mcore_tdep): Add declaration.
6992         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
6993         * abug-rom.c (_initialize_abug_rom): Add declaration.
6994         * rom68k-rom.c (_initialize_rom68k): Add declaration.
6995         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
6996         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6997         * remote-est.c (_initialize_est): Add declaration.
6998         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6999         (m68hc11_call_dummy_address): Make static.
7000         * ia64-tdep.c: Make local functions static.
7001         (_initialize_ia64_tdep): Add declaration.
7002         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7003         * monitor.c (monitor_wait_filter): Make static.
7004         (_initialize_remote_monitors): Add declaration.
7005         * remote-hms.c (_initialize_remote_hms): Add declaration.
7006         * remote-e7000.c (fetch_regs_from_dump): Make static.
7007         (expect_n): Make static.
7008         (_initialize_remote_e7000): Add declaration.
7009         * ser-e7kpc.c: Always include "defs.h".
7010         (_initialize_ser_e7000pc): Add declaration.
7011         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7012         * cris-tdep.c: Make all but one function static.
7013         (_initialize_cris_tdep): Add declaration.
7014         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7015         * solib.c (update_solib_list): Make static.
7016         (_initialize_solib): Add declaration.
7017         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7018         (_initialize_avr_tdep): Add declaration.
7019         * remote-rdi.c (voiddummy): Make static.
7020         (_initialize_remote_rdi): Add declaration.
7021         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7022         * remote-rdp.c (send_rdp): Make static.
7023         (_initialize_remote_rdp): Add declaration.
7024         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7025
7026 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
7027
7028         * remote-fileio.c: Make ari happy.
7029
7030 2003-06-10  J. Brobecker  <brobecker@gnat.com>
7031
7032         * rs6000-nat.c (child_xfer_memory): Compute the right address when
7033         fetching the trailing bytes of the buffer we are about to write.
7034
7035 2003-06-10  Andrew Cagney  <cagney@redhat.com>
7036
7037         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7038         * Makefile.in (remote-fileio.o): Update dependencies.
7039         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
7040         include <setjmp.h>, or <sys/types.h> conditional on USG.
7041         (remote_fio_jmp_buf): Delete global variable.
7042
7043 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
7044             Martin M. Hunt  <hunt@redhat.com>
7045
7046         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7047         (SFILES): Add remote-fileio.c.
7048         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
7049         dependencies for building remote.o.
7050         * remote-fileio.c: New file implementing the remote File-I/O protocol.
7051         * remote-fileio.h: New header file defining remote File-I/O interface.
7052         * remote.c (remote_write_bytes, remote_read_bytes): Remove
7053         static storage class.
7054         (remote_wait, remote_async_wait): Call remote_fileio_request() on
7055         'F' packet.
7056         (_initialize_remote): Call initialize_remote_fileio().
7057         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7058         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7059         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7060         (captured_main): Initialize new ui_files.
7061         * ui-file.c: Add read and fgets input functions.
7062         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7063         (null_file_read): New function.
7064         (ui_file_read): New function.
7065         (set_ui_file_read): New function.
7066         (stdio_file_read): New function.
7067         * ui-file.h: New type ui_file_read_ftype.
7068         (set_ui_file_read): Declare.
7069         (ui_file_read): Declare.
7070
7071 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7072
7073         * frame.h (deprecated_unwind_get_saved_register): Rename
7074         generic_unwind_get_saved_register, update comments.
7075         * mips-tdep.c (mips_get_saved_register): Update.
7076         * frame.c (deprecated_unwind_get_saved_register): Update.
7077
7078 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7079
7080         * vax-tdep.c (vax_frame_locals_address): Delete function.
7081         (vax_gdbarch_init): Do not set frame_locals_address.
7082         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7083         (m68hc11_gdbarch_init): Do not set frame_locals_address.
7084         * s390-tdep.c (s390_frame_args_address): Delete function.
7085         (s390_gdbarch_init): Do not set frame_args_address or
7086         frame_locals_address.
7087         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7088         (ns32k_gdbarch_init): Do not set frame_locals_address.
7089         * hppa-tdep.c (hppa_frame_args_address): Delete function.
7090         (hppa_frame_locals_address): Delete function.
7091         (hppa_gdbarch_init): Do not set frame_args_address, or
7092         frame_locals_address.
7093         * arm-tdep.c (arm_frame_args_address): Delete.
7094         (arm_frame_locals_address): Delete.
7095         (arm_gdbarch_init): Do not set frame_args_address, or
7096         frame_locals_address.
7097
7098 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7099
7100         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7101         * gdbarch.h, gdbarch.c: Re-generate.
7102         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7103         * arch-utils.c (frame_num_args_unknown): Delete function.
7104         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7105         (frame_info): Use FRAME_NUM_ARGS_P.
7106         * arm-tdep.c (arm_frame_num_args): Delete function.
7107         (arm_gdbarch_init): Do not set frame_num_args.
7108         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7109         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7110         (hppa_gdbarch_init): Do not set frame_num_args.
7111         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7112         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7113         frame_num_args to default frame_num_args_unknown.
7114         * v850-tdep.c (v850_gdbarch_init): Ditto.
7115         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7116         * sh-tdep.c (sh_gdbarch_init): Ditto.
7117         * s390-tdep.c (s390_gdbarch_init): Ditto.
7118         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7119         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7120         * mips-tdep.c (mips_gdbarch_init): Ditto.
7121         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7122         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7123         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7124         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7125         * i386-tdep.c (i386_gdbarch_init): Ditto.
7126         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7127         * frv-tdep.c (frv_gdbarch_init): Ditto.
7128         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7129         * cris-tdep.c (cris_gdbarch_init): Ditto.
7130         * avr-tdep.c (avr_gdbarch_init): Ditto.
7131         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7132
7133 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7134
7135         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7136         (print_frame_args): Moved to "stack.c".
7137         * stack.c: Include "gdb_assert.h".
7138         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7139         (print_frame_args): Moved from "printcmd.c".
7140         * frame.h (print_frame_args): Delete declaration.
7141         * Makefile.in (stack.o): Update dependencies.
7142
7143 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7144
7145         * frame.c (get_prev_frame): Remove reference to
7146         frame_args_address_correct in comments.
7147         * frame-base.c (default_frame_args_address): Delete code
7148         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7149         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7150         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7151         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7152         (vax_frame_args_address_correct): Delete declaration.
7153
7154 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7155
7156         * gdbarch.sh (UNWIND_SP): Add.
7157         * gdbarch.h, gdbarch.c: Re-generate.
7158         * frame.c (frame_sp_unwind): New function.
7159         (get_frame_sp): New function.
7160         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7161         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7162         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7163         value.
7164         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7165         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7166
7167 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7168
7169         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7170         REMOTE_BREAKPOINT.
7171         * remote.c: Update.
7172         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7173         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7174         * config/m68k/tm-sun3.h: Update.
7175         * config/m68k/tm-m68klynx.h: Update.
7176         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7177
7178         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7179         trad_frame".  Update comments.
7180         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7181         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7182         (trad_frame_register_value, trad_frame_prev_register): Update.
7183
7184 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7185
7186         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7187         from GCC's acinclude.m4.
7188         * configure.in: Check for getopt's delcaration.
7189         * aclocal.m4, config.in, configure: Re-generate.
7190         * main.c (error_init): Delete declaration.
7191         * defs.h (error_init): Declare.
7192         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7193         (rs6000_convert_from_func_ptr_addr): Make static.
7194         (_initialize_rs6000_tdep): Add declaration.
7195         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7196         (show_commands, set_verbose, show_history): Delete declaration.
7197         * top.h (set_verbose): Add declaration.
7198         (show_history, set_history, show_commands): Add declaration.
7199         (do_restore_instream_cleanup): Add declaration.
7200         * objc-lang.c (specialcmp): Make static.
7201         (print_object_command): Make static.
7202         (find_objc_msgsend): Make static.
7203         (find_objc_msgcall_submethod_helper): Make static.
7204         (find_objc_msgcall_submethod): Make static.
7205         (_initialize_objc_language): Add declaration.
7206         (find_implementation_from_class): Make static.
7207         (find_implementation): Make static.
7208         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7209         * objc-lang.h (lookup_struct_typedef): Add declaration.
7210         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7211         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7212         (do_restore_user_call_depth): Make static.
7213         (do_restore_instream_cleanup): Delete declaration.
7214         (dont_repeat): Delete declaration.
7215         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7216         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7217         * reggroups.c (_initialize_reggroup): Add declaration.
7218         * cp-support.c (_initialize_cp_support): Add declaration.
7219         * cp-abi.c (_initialize_cp_abi): Add declaration.
7220         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7221         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7222         (_initialize_gnu_v3_abi): Add declaration.
7223         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7224         (_initialize_gnu_v2_abi): Add declaration.
7225         * frame-base.c (_initialize_frame_base): Add declaration.
7226         * doublest.c (floatformat_from_length): Make static.
7227         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7228         * frame.c (create_sentinel_frame): Make static.
7229         (_initialize_frame): Add declaration.
7230         * top.c (do_catch_errors): Make static.
7231         (gdb_rl_operate_and_get_next_completion): Make static.
7232         * typeprint.c: Include "typeprint.h".
7233         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7234         (sentinel_frame_this_id): Make static.
7235         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7236         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7237         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7238         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7239         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7240         * maint.c (maintenance_print_architecture): Make static.
7241         * signals/signals.c (_initialize_signals): Add declaration.
7242         * std-regs.c (_initialize_frame_reg): Add declaration.
7243         * jv-exp.y (push_variable): ISO C definition.
7244         (push_qualified_expression_name): Ditto.
7245         * memattr.c (_initialize_mem): Add declaration.
7246         * remote.c (remote_check_watch_resources): Make static.
7247         (remote_stopped_by_watchpoint): Make static.
7248         (remote_stopped_data_address): Make static.
7249         * d10v-tdep.c (nr_dmap_regs): Make static.
7250         (a0_regnum): Make static.
7251         (d10v_frame_unwind_cache): Make static.
7252         (d10v_frame_p): Make static.
7253         * osabi.c (show_osabi): Make static.
7254         (_initialize_gdb_osabi): Add extern declaration.
7255         * gdbtypes.c (make_qualified_type): Make static.
7256         (safe_parse_type): Make static.
7257         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7258         * macrotab.c (macro_bcache_free): Make static.
7259         * interps.c (interp_set_quiet): Make static.
7260         (interpreter_exec_cmd): Make static.
7261         * stack.h (select_frame_command): New file.
7262         * stack.c: Include "stack.h".
7263         (select_frame_command_wrapper): Delete function.
7264         (select_frame_command): Make global.
7265         * infcall.c: Include "infcall.h".
7266         * linespec.c: Include "linespec.h".
7267         * symfile.c (sections_overlap): Make static.
7268         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7269         * charset.c (_initialize_charset): Add missing prototype.
7270         * regcache.c (init_legacy_regcache_descr): Make static.
7271         (do_regcache_xfree): Make static.
7272         (regcache_xfer_part): Make static.
7273         (_initialize_regcache): Add missing prototype.
7274         * breakpoint.c (parse_breakpoint_sals): Make static.
7275         (breakpoint_sals_to_pc): Make static.
7276         * interps.h (clear_interpreter_hooks): ISO C declaration.
7277         * Makefile.in (stack_h): Define.
7278         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7279         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7280
7281 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7282
7283         * Makefile.in (d10v-tdep.o): Update dependencies.
7284         (SFILES): Add trad-frame.c.
7285         (trad_frame_h): Define.
7286         (COMMON_OBS): Add trad-frame.o.
7287         (trad-frame.o): Specify dependencies.
7288         * d10v-tdep.c: Include "trad-frame.h".
7289         (saved_regs_unwinder): Delete function.
7290         (d10v_frame_prev_register): Use trad_frame_prev_register.
7291         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7292         trad_frame", delete "regs" and "prev_sp".
7293         (prologue_find_regs): Use trad-frame.
7294         * trad-frame.h, trad-frame.c: New files.
7295
7296 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7297
7298         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7299
7300 2003-06-07  Adam Fedor  <fedor@gnu.org>
7301
7302         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7303         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7304         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7305         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7306         resolve_msgsend_super, resolve_msgsend_super_stret):
7307         Use it.
7308
7309 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7310
7311         * symfile.h: Re-indent, clean up comments.
7312
7313 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7314
7315         * inferior.h (deprecated_write_sp): Replace
7316         generic_target_write_sp.
7317         * regcache.c (deprecated_write_sp): Replace
7318         generic_target_write_sp.
7319         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7320         * vax-tdep.c (vax_gdbarch_init): Update.
7321         * v850-tdep.c (v850_gdbarch_init): Update.
7322         * sparc-tdep.c (sparc_gdbarch_init): Update.
7323         * sh-tdep.c (sh_gdbarch_init): Update.
7324         * s390-tdep.c (s390_gdbarch_init): Update.
7325         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7326         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7327         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7328         * mcore-tdep.c (mcore_gdbarch_init): Update.
7329         * m68k-tdep.c (m68k_gdbarch_init): Update.
7330         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7331         * ia64-tdep.c (ia64_gdbarch_init): Update.
7332         * h8300-tdep.c (h8300_gdbarch_init): Update.
7333         * frv-tdep.c (frv_gdbarch_init): Update.
7334         * cris-tdep.c (cris_gdbarch_init): Update.
7335         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7336
7337 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7338
7339         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7340         Assert that PC_REGNUM is valid.
7341         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7342
7343 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7344
7345         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7346         * gdbarch.h, gdbarch.c: Regenerate.
7347         * mn10300-tdep.c: Include "gdb_assert.h".
7348         (mn10300_read_fp): New function.
7349         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7350         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7351         * ia64-tdep.c: Include "gdb_assert.h".
7352         (ia64_read_fp): New function.
7353         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7354         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7355         * regcache.c (generic_target_read_sp): Delete function.
7356         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7357         * inferior.h (generic_target_read_sp): Delete declaration.
7358         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7359         generic_target_read_sp.
7360         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7361         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7362         * sh-tdep.c (sh_gdbarch_init): Ditto.
7363         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7364         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7365
7366 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7367
7368         * gdbarch.sh: Comment each field of startup_gdbarch.
7369         * gdbarch.h, gdbarch.c: Re-generate.
7370
7371 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7372
7373         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7374         * gdbarch.h, gdbarch.c: Re-generate.
7375         * regcache.c: Update comments on read_pc et.al.
7376         (generic_target_read_pc): Delete function.
7377         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7378         * inferior.h (generic_target_read_pc): Delete declaration.
7379         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7380         generic_target_read_pc.
7381         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7382         * sh-tdep.c (sh_gdbarch_init): Ditto.
7383         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7384         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7385
7386 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7387
7388         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7389         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7390         Append period to coments.
7391
7392 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7393
7394         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7395         (elfstab_offset_sections): Likewise.
7396         * gdb-stabs.h (stab_section_info): Likewise.
7397         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7398         * objfiles.c (objfile_relocate): Likewise.
7399         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7400         * remote.c (get_offsets): Likewise.
7401         (remote_cisco_objfile_relocate): Likewise.
7402         * somread.c (som_symfile_offsets): Likewise.
7403         * symfile.c (alloc_section_addr_info): New function.
7404         (build_section_addr_info_from_section_tab): Use it.
7405         (free_section_addr_info): Adjust.
7406         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7407         (syms_from_objfile): Allocate local_addr dynamically.
7408         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7409         dynamically.
7410         (add_symbol_file_command): Allocate sect_opts dynamically.
7411         (reread_symbols): Avoid use of SECT_OFF_MAX.
7412         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7413         (alloc_section_addr_info): Declare it.
7414         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7415         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7416         dynamically.
7417         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7418
7419 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7420
7421         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7422         (d10v_frame_unwind_cache): Do not set "return_pc".
7423
7424 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7425
7426         * h8300-tdep.c: Make tidy (long lines).
7427
7428 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7429
7430         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7431         to regcache_collect().
7432
7433 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7434
7435         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7436         pc_in_sigtramp multiarch method.
7437         (hppa_hpux_som_init_abi): Use it.
7438         (hppa_hpux_elf_init_abi): Likewise.
7439         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7440         macro has been multiarched.
7441         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7442         macro here, as hppa64 isn't multiarched yet.
7443
7444 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7445
7446         * Makefile.in (value_h): Add $(frame_h).
7447         * value.h: Include "frame.h".
7448         (struct value): Replace "frame_addr" with "frame_id".
7449         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7450         * values.c (allocate_value): Use VALUE_FRAME_ID.
7451         (value_copy): Use VALUE_FRAME_ID.
7452         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7453         * valops.c (value_assign): Update.  Use frame_find_by_id.
7454
7455 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7456
7457         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7458         in each pass.
7459
7460 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7461
7462         * thread-db.c (check_event): For create/death event breakpoints,
7463         loop through all messages to ensure that we read the message
7464         corresponding to the breakpoint we are at.
7465
7466 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7467
7468         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7469
7470 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7471
7472         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7473         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7474         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7475         when handling .eh_frame sections.
7476
7477 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7478
7479         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7480         prepare_to_proceed procedure instead of the hppa-specific one.
7481         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7482
7483 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7484
7485         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7486         * config.in: Regenerated.
7487         * configure.in: Add test for syscall function and check for
7488         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7489         * configure: Regenerated.
7490         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7491         <sys/syscall.h>.
7492         (kill_lwp): New function that uses tkill syscall or
7493         uses kill, depending on whether threading model is nptl or not.
7494         All callers of kill() changed to use kill_lwp().
7495         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7496         see if all threads have already exited in the nptl model.
7497         (stop_and_resume_callback): New callback function used by the
7498         lin_lwp_wait thread exit handling code.
7499         (stop_wait_callback): Check for threads already having exited and
7500         delete such threads fromt the lwp list when discovered.
7501         (stop_callback): Don't assert retcode of kill call.
7502
7503         Roland McGrath  <roland@redhat.com>
7504         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7505         nptl libthread_db.
7506
7507 2003-06-03  Richard Henderson  <rth@redhat.com>
7508
7509         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7510         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7511         (alpha_sigtramp_frame_prev_register): Likewise.
7512         (alpha_heuristic_frame_prev_register): Likewise.
7513         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7514
7515         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7516         alpha-specific register id names.
7517         (alpha_mdebug_frame_unwind_cache): Likewise.
7518         (alpha_mdebug_frame_prev_register): Likewise.
7519
7520 2003-06-03  Richard Henderson  <rth@redhat.com>
7521
7522         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7523         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7524         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7525         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7526         unwind routines.
7527         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7528         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7529         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7530
7531         * alpha-linux-tdep.c: Remove unnecessary includes.
7532         * Makefile.in (alpha-linux-tdep.o): Update.
7533
7534 2003-06-03  Richard Henderson  <rth@redhat.com>
7535
7536         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7537         (alphabsd_fill_fpreg): Likewise.
7538
7539 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7540
7541         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7542         references to struct frame_info fields by calls to the equivalent
7543         accessors. Necessary now that frame_info is opaque.
7544
7545 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7546
7547         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7548         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7549         structure, field no longer exists.
7550
7551 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7552
7553         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7554         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7555
7556 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7557
7558         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7559         references to struct frame_info fields by calls to the equivalent
7560         accessors. Necessary now that frame_info is opaque.
7561
7562 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7563
7564         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7565         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7566         structure, field no longer exists.
7567
7568 2003-06-03  Theodore A. Roth  <troth@openavr.org>
7569
7570         * remote.c (init_remote_state): Compute sizeof_g_packet by
7571         accumulation of the size of all registers instead of blindly using
7572         DEPRECATED_REGISTER_BYTES.
7573
7574 2003-06-03  Michael Snyder  <msnyder@redhat.com>
7575
7576         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7577         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7578         for h8300sx.
7579
7580 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7581
7582         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7583         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7584
7585 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7586
7587         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7588         (sparc_convert_to_raw): Delete function.
7589         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7590         register_convert_to_virtual.
7591
7592 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7593
7594         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7595         layer if not dealing with a statically-linked threaded program.
7596
7597 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
7598
7599         * solib.c (solib_open): Update comment to reflect actual search order.
7600
7601 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7602
7603         * frame.c (get_frame_memory_signed): New function.
7604         (get_frame_memory, get_frame_memory_unsigned): New function.
7605         (get_frame_arch): New function.
7606         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7607         (get_frame_memory, get_frame_unsigned_memory): Declare.
7608         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7609         get_frame_memory_unsigned and get_frame_arch.
7610         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7611
7612 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
7613
7614         * MAINTAINERS (write after approval): Add myself.
7615
7616 2003-06-03  Jim Blandy  <jimb@redhat.com>
7617
7618         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7619         elements of gregset_t are 64 bits each, but access registers
7620         are still 32 bits, so they're packed two per gregset_t
7621         element.  Unpack/pack them properly.
7622
7623 2003-06-02  David Carlton  <carlton@bactrian.org>
7624
7625         * linespec.c (find_methods): Break out code into
7626         add_matching_methods and add_constructors.
7627         (add_matching_methods): New.
7628         (add_constructors): Ditto.
7629
7630 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7631
7632         * sparc-tdep.c (sparc_print_registers): Delete call to
7633         REGISTER_CONVERTIBLE.
7634         (sparc_gdbarch_init): Do not set register_convertible.
7635         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7636         * frv-tdep.c (frv_gdbarch_init): Ditto.
7637         * cris-tdep.c (cris_gdbarch_init): Ditto.
7638
7639 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7640
7641         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7642         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7643         (syms_from_objfile): Ditto.
7644
7645 2003-06-03  Andreas Schwab  <schwab@suse.de>
7646
7647         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7648         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7649
7650 2003-06-02  Richard Henderson  <rth@redhat.com>
7651
7652         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7653         a member of all_reggroup.
7654
7655 2003-06-02  Richard Henderson  <rth@redhat.com>
7656
7657         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7658         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7659         (alpha_lds, alpha_sts): New.
7660         (alpha_convert_register_p): Change from _register_convertible.
7661         (alpha_register_to_value): Change from _convert_to_virtual;
7662         restructure and fail for type sizes other than 4 or 8.
7663         (alpha_value_to_register): Similarly.
7664         (alpha_extract_return_value): Use alpha_sts.
7665         (alpha_store_return_value): Use alpha_lds.
7666         (alpha_gdbarch_init): Update hooks.
7667
7668 2003-06-02  Richard Henderson  <rth@redhat.com>
7669
7670         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7671         regnum identifiers.
7672         (alpha_sigtramp_register_address): Likewise.
7673
7674 2003-06-02  Richard Henderson  <rth@redhat.com>
7675
7676         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7677         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7678         * alpha-tdep.h: Declare them.
7679
7680         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7681         Remove zerobuf.  Don't error on UNIQUE.
7682         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7683         (ALPHA_REGSET_UNIQUE): Provide default.
7684         (supply_gregset): Use alpha_supply_int_regs.
7685         (fill_gregset): Use alpha_fill_int_regs.
7686         (supply_fpregset): Use alpha_supply_fp_regs.
7687         (fill_fpregset): Use alpha_fill_fp_regs.
7688         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7689         (alphabsd_supply_reg): Use alpha_supply_int_regs.
7690         (alphabsd_fill_reg): Use alpha_fill_int_regs.
7691         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7692         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7693         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7694
7695 2003-06-02  Richard Henderson  <rth@redhat.com>
7696
7697         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7698
7699         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7700         (alpha_store_return_value): Likewise.
7701
7702 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7703
7704         * block.c (contained_in): Add 'const' to arguments.
7705         (block_function): Ditto.
7706         * block.h: Update declarations for block_function and
7707         contained_in.
7708
7709 2003-06-02  David Carlton  <carlton@math.stanford.edu>
7710
7711         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7712         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7713         * p-valprint.c (pascal_val_print): Ditto.
7714         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7715
7716 2003-06-02  Richard Henderson  <rth@redhat.com>
7717
7718         * alpha-tdep.c (alpha_push_dummy_call): Use
7719         builtin_type_ieee_double_little instead of builtin_type_double.
7720
7721         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7722         sign-extension of 32-bit values.
7723         (alpha_store_return_value): Similarly.
7724
7725         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7726         (alpha_extract_return_value): Likewise.
7727         (alpha_store_return_value): Likewise.
7728
7729         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7730         (alpha_store_return_value): Error on IEEE Quad floats.
7731
7732         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7733         (alpha_extract_struct_value_address): Likewise.
7734         (alpha_store_return_value): Likewise.
7735         (alpha_store_struct_return): Remove.
7736         (alpha_gdbarch_init): Update hook registration to match.
7737
7738         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7739         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7740         macros where appropriate.
7741         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
7742         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
7743
7744         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7745         for SP, GP; void_func_ptr for PC; non-language-specific types
7746         for all others.
7747         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7748
7749 2003-06-02  Richard Henderson  <rth@redhat.com>
7750
7751         * top.h (lim_at_start): Declare.
7752         * main.c (captured_main): Set it.
7753         * top.c (lim_at_start): Define.
7754         (command_loop): Use it instead of &environ.
7755         * event-top.c (command_handler): Likewise.
7756
7757 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
7758
7759         * mipsnbsd-tdep.c: Update copyright years.
7760         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7761
7762 2003-06-01  Richard Henderson  <rth@redhat.com>
7763
7764         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7765         (alpha-linux-tdep.o): Update dependencies.
7766         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7767         * alpha-mdebug-tdep.c: Remove unneeded includes.
7768
7769 2003-06-01  Richard Henderson  <rth@redhat.com>
7770
7771         * alpha-tdep.c (alpha_register_reggroup_p): New.
7772         (alpha_gdbarch_init): Register it.
7773
7774 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7775
7776         * dwarfread.c: Eliminate "register"
7777         (decode_die_type): Eliminate assignment within "if".
7778         (struct_type, decode_array_element_type): Ditto.
7779         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7780         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7781         (decode_modified_type, completedieinfo): Ditto.
7782         * block.c: Eliminate "register".
7783         (blockvector_for_pc_sect): Eliminate assignment within "if".
7784         * cp-support.h (struct symbol): Opaque declaration.
7785         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7786
7787 2003-06-01  Richard Henderson  <rth@redhat.com>
7788
7789         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7790         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7791
7792 2003-06-01  Adam Fedor  <fedor@gnu.org>
7793
7794         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7795         * gdbarch.[ch]: Regenerate.
7796         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7797         (hppa_gdbarch_init): Set it in the gdbarch vector.
7798         * i386-tdep.c (i386_fetch_pointer_argument): New
7799         (i386_gdbarch_init): Set it into gdbarch.
7800         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7801         (rs6000_gdbarch_init): Set it in gdbarch.
7802         * sparc-tdep.c (sparc_fetch_pointer_argument): New
7803         (sparc_gdbarch_init): Set it in gdbarch.
7804
7805 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7806
7807         * defs.h (extract_address): Delete declaration.
7808         * findvar.c (extract_address): Delete function.
7809         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7810         extract_address with the inline equivalent,
7811         extract_unsigned_integer.
7812         (xstormy16_extract_struct_value_address): Ditto.
7813         (xstormy16_pointer_to_address): Ditto.
7814         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7815         * v850-tdep.c (v850_push_arguments): Ditto.
7816         (v850_extract_return_value): Ditto.
7817         (v850_extract_struct_value_address): Ditto.
7818         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7819         (sparcnbsd_get_longjmp_target_64): Ditto.
7820         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7821         (get_longjmp_target): Ditto.
7822         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7823         (sh64_extract_struct_value_address): Ditto.
7824         (sh_push_arguments): Ditto.
7825         (sh64_push_arguments): Ditto.
7826         * remote-vxsparc.c (vx_read_register): Ditto.
7827         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7828         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7829         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7830         * mipsv4-nat.c (get_longjmp_target): Ditto.
7831         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7832         * mips-nat.c (get_longjmp_target): Ditto.
7833         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7834         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7835         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7836         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7837         * irix5-nat.c (get_longjmp_target): Ditto.
7838         * irix4-nat.c (get_longjmp_target): Ditto.
7839         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7840         (ia64_push_arguments): Ditto.
7841         * hpux-thread.c (hpux_thread_store_registers): Ditto.
7842         * h8300-tdep.c (h8300_push_arguments): Ditto.
7843         (h8300_store_return_value): Ditto.
7844         (h8300_extract_struct_value_address): Ditto.
7845         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7846         (frv_push_arguments): Ditto.
7847         * avr-tdep.c (avr_pointer_to_address): Ditto.
7848         (avr_push_arguments): Ditto.
7849         * arm-tdep.c (arm_push_dummy_call): Ditto.
7850         (arm_get_longjmp_target): Ditto.
7851         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7852         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7853         (alpha_get_longjmp_target): Ditto.
7854
7855         * solib-irix.c (extract_mips_address): Inline extract_address,
7856         replacing it with extract_signed_integer.
7857         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7858         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7859         (first_link_map_member, open_symbol_file_object): Ditto.
7860         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7861         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7862         (LM_NEXT, LM_NAME): Ditto.
7863
7864 2003-06-01  Richard Henderson  <rth@redhat.com>
7865
7866         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7867         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7868         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7869         (alpha_cannot_store_register): Likewise.
7870         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7871         * alpha-nat.c (supply_gregset): Likewise.
7872         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
7873
7874 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7875
7876         * infcall.c (call_function_by_hand): Update comment on
7877         DEPRECATED_DUMMY_WRITE_SP.
7878
7879         * mips-tdep.c (mips_gdbarch_init): Do not set
7880         deprecated_dummy_write_sp.
7881         (mips_eabi_push_dummy_call): Set the SP register.
7882         (mips_o64_push_dummy_call): Set the SP register.
7883         (mips_o32_push_dummy_call): Set the SP register.
7884         (mips_n32n64_push_dummy_call): Set the SP register.
7885
7886 2003-06-01  Richard Henderson  <rth@redhat.com>
7887
7888         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7889         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7890         (supply_gregset): Likewise.
7891         * alpha-tdep.c (alpha_store_return_value): Likewise.
7892         (alpha_get_longjmp_target): Likewise.
7893         (alpha_register_name): Constify array.
7894         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7895         deprecated_register_size, deprecated_register_bytes,
7896         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7897         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7898         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
7899
7900 2003-06-01  Richard Henderson  <rth@redhat.com>
7901
7902         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
7903         from arg_reg_buffer to regcache to avoid double conversion.
7904
7905 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
7906
7907         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7908         SP_REGNUM.
7909         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7910         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7911
7912 2003-06-01  Richard Henderson  <rth@redhat.com>
7913
7914         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7915         (decode_frame_entry): Set it.  Skip FDE augmentation.
7916
7917 2003-06-01  Richard Henderson  <rth@redhat.com>
7918
7919         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7920         not overlapping PC_REGNUM.
7921
7922 2003-06-01  Richard Henderson  <rth@redhat.com>
7923
7924         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7925         alpha_push_arguments.  Don't dump argument register data to
7926         the target stack.  Fix float and 128-bit long double semantics.
7927         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
7928         (alpha_fix_call_dummy): Remove.
7929         (alpha_call_dummy_words): Remove.
7930         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
7931
7932 2003-06-01  Richard Henderson  <rth@redhat.com>
7933
7934         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7935
7936 2003-06-01  Andrew Cagney  <cagney@redhat.com>
7937
7938         * mips-tdep.c (is_mips16_addr): New function.
7939         (make_mips16_addr, unmake_mips16_addr): New functions.
7940         (pc_is_mips16, mips_fetch_instruction): Use.
7941         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7942         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7943         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7944         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7945         TARGET_MIPS.
7946         * config/mips/tm-mips.h: Update copyright.
7947         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
7948         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
7949         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
7950         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
7951         (TM_PRINT_INSN_MACH): Delete.
7952         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
7953
7954         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
7955         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
7956         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
7957         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
7958         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
7959         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
7960         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
7961         mips*-*-riscos* and mips*-*-sysv* onto mips.
7962         * config/mips/mips64.mt: New file.
7963         * config/mips/mips.mt: New file.
7964         * config/mips/littlemips.mt: Delete file.
7965         * config/mips/decstation.mt: Delete file.
7966         * config/mips/vr4300el.mt: Delete file.
7967         * config/mips/vr5000el.mt: Delete file.
7968         * config/mips/vr5000.mt: Delete file.
7969         * config/mips/vr4100.mt: Delete file.
7970         * config/mips/vr4xxxel.mt: Delete file.
7971         * config/mips/vr4300.mt: Delete file.
7972         * config/mips/vr4xxx.mt: Delete file.
7973         * config/mips/bigmips.mt: Delete file.
7974         * config/mips/bigmips64.mt: Delete file.
7975         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
7976         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
7977         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
7978         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
7979         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
7980         "tm-bigmips.h".
7981         * config/mips/tm-irix3.h: Ditto.
7982         * config/mips/tm-mipsv4.h: Ditto.
7983         * config/mips/tm-embed.h: Ditto.
7984         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
7985         "tm-bigmips64.h".
7986         * config/mips/tm-vr5000el.h: Delete file.
7987         * config/mips/tm-tx39l.h: Delete file.
7988         * config/mips/tm-vr4300el.h: Delete file.
7989         * config/mips/tm-vr4xxxel.h: Delete file.
7990         * config/mips/tm-vr4300.h: Delete file.
7991         * config/mips/tm-vr4100.h: Delete file.
7992         * config/mips/tm-vr4xxx.h: Delete file.
7993         * config/mips/tm-vr5000.h: Delete file.
7994         * config/mips/tm-embedl64.h: Delete file.
7995         * config/mips/tm-embedl.h: Delete file.
7996         * config/mips/tm-embed64.h: Delete file.
7997         * config/mips/tm-bigmips64.h: Delete file.
7998         * config/mips/tm-bigmips.h: Delete file.
7999
8000 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8001
8002         Fix gdb/1216.
8003         * shnbsd-nat.c: Include "sh-tdep.h".
8004
8005         From Richard Henderson  <rth@redhat.com>:
8006         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8007
8008 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8009
8010         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
8011         forward declaration.
8012         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8013         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8014         (mips_find_saved_regs): Use set_reg_offset.
8015         (mips_frame_init_saved_regs): Delete function.
8016         (mips_pop_frame): Call mips_find_saved_regs instead of
8017         DEPRECATED_FRAME_INIT_SAVED_REGS.
8018
8019 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8020
8021         * mips-tdep.c (mips_gdbarch_init): Do not set
8022         deprecated_max_register_raw_size, register_virtual_size, and
8023         deprecated_max_register_virtual_size.
8024
8025 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8026
8027         * i386-tdep.c: Include "dwarf2-frame.h".
8028         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8029         * Makefile.in (i386-tdep.o): Update dependencies.
8030
8031         * dwarf2-frame.c, dwarf2-frame.h: New files.
8032         * Makefile.in (SFILES): Add dwarf2-frame.c.
8033         (dwarf2_frame_h): Define.
8034         (COMMON_OBS): Add dwarf2-frame.o.
8035         (dwarf2-frame.o): Add dependencies.
8036
8037 2003-05-31  Andreas Jaeger  <aj@suse.de>
8038
8039         * x86-64-linux-nat.c: Fix comment.
8040
8041 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8042
8043         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8044         function signature.
8045
8046         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8047         have a sigcontext_addr handler.
8048         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8049         sigcontext_addr handler.
8050
8051 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8052
8053         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8054         (print_fp_register_row): Replace do_fp_register_row.
8055         (mips_print_fp_register): Add "file" and "frame" parameters.
8056         (mips_print_register): Add "file" and "frame" parameters.
8057         (mips_print_registers_info): Replace mips_do_registers_info.
8058         (mips_gdbarch_init): Set print_registers_info instead of
8059         deprecated_do_registers_info.
8060         (mips_read_fp_register_single): Add "frame" parameter.
8061         (mips_read_fp_register_double): Add "frame" parameter.
8062
8063 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8064
8065         * i386-tdep.c (i386_register_name): Check for MMX registers first.
8066         Fixes a bug where GDB would print the wrong register names for
8067         targets without SSE.
8068
8069         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8070         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8071         registers.
8072
8073         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8074         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8075         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8076         TDEP->sc_sp_offset.
8077
8078         From Michal Ludvig  <mludvig@suse.cz>:
8079         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8080         and `sc_num_regs'.
8081         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8082         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8083         I386_ST0_REGNUM): Move here from...
8084         * i386-tdep.c: ... here.
8085         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8086         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8087         registers if possible.
8088         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8089         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8090         Remove variables.
8091         (i386bsd_sc_reg_offset): New variable.
8092         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8093         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8094         TDEP->sc_sp_offset.
8095         (i386fbsd_sc_reg_offset): New variable.
8096         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8097         TDEP->sc_num_regs.
8098         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8099         variables.
8100         (i386fbsd4_sc_reg_offset): New variable.
8101         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8102         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8103         TDEP->sc_sp_offset.
8104         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8105         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8106         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8107         Remove variables.
8108         (i386nbsd_sc_reg_offset): New variable.
8109         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8110         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8111         TDEP->sc_sp_offset.
8112         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8113         Remove variables.
8114         (i386obsd_sc_reg_offset): New variable.
8115         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8116         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8117         TDEP->sc_sp_offset.
8118         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8119         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8120         for frame pointer offset in `struct sigcontext'.
8121
8122 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8123
8124         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8125         architecture methods call_dummy_words, sizeof_call_dummy_words,
8126         push_return_address, store_struct_return, and fix_call_dummy.  Set
8127         push_dummy_call instead of deprecated_push_arguments.
8128         (mips_store_struct_return): Delete function.
8129         (mips_fix_call_dummy): Delete function.
8130         (mips_push_return_address): Delete function.
8131         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8132         RA_REGNUM and T9_REGNUM.
8133         (mips_n32n64_push_dummy_call): Ditto for
8134         mips_n32n64_push_arguments.
8135         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8136         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8137
8138 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8139
8140         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8141         "dummy_addr" to "bp_addr".
8142         * infcall.c (call_function_by_hand): Pass "funaddr" to
8143         gdbarch_push_dummy_call.
8144         * gdbarch.h, gdbarch.c: Re-generate.
8145         * i386-tdep.c (i386_push_dummy_call): Update.
8146         * arm-tdep.c (arm_push_dummy_call): Update.
8147         * d10v-tdep.c (d10v_push_dummy_call): Update.
8148
8149 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8150
8151         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8152         variable declarations.
8153         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8154         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8155         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8156         x86_64_init_frame_pc, x86_64_init_frame_pc,
8157         x86_64_function_has_prologue): Remove prototypes.
8158         (X86_64_NUM_GREGS): New define.
8159         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8160         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8161         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8162         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8163         XMM1_REGNUM): Remove defines.
8164         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8165         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8166         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8167         X86_64_XMM1_REGNUM): New defines.
8168         (struct x86_64_register_info): Renamed from `struct
8169         register_info'.  Remove `size' member.
8170         (x86_64_register_info_table): Remove variable.
8171         (x86_64_register_info): New variable.
8172         (X86_64_NUM_REGS): New define.
8173         (X86_64_NUM_GREGS): Remove define.
8174         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8175         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8176         Remove variables.
8177         (x86_54_dwarf2_reg_to_regnum): Remove function.
8178         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8179         (x86_64_dwarf_reg_to_regnum): New function.
8180         (x86_64_register_name): Rewrite.
8181         (x86_64_register_raw_size): Remove function.
8182         (x86_64_register_byte_table): Remove variable.
8183         (x86_64_register_byte): Remove function.
8184         (x86_64_register_virtual_type): Remove function.
8185         (x86_64_register_type): New function.
8186         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8187         x86_64_register_convert_to_raw): Remove functions.
8188         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8189         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8190         defines.
8191         (x86_64_frame_init_saved_regs): Remove function.
8192         (x86_64_push_arguments): Make static.  Change to accept a regcache
8193         as argument.
8194         (x86_64_store_return_value, x86_64_extract_return_value): Make
8195         static.  Rewrite based on i386 counterparts.
8196         (x86_64_push_dummy_call): New function.
8197         (X86_64_NUM_SAVED_REGS): New define.
8198         (x86_64_register_number): Remove function.
8199         (x86_64_store_struct_return): Remove function.
8200         (x86_64_frameless_function_invocation,
8201         x86_64_function_has_prologue): Remove functions.
8202         (PROLOG_BUFSIZE): Remove define.
8203         (struct x86_64_frame_cache): New structure.
8204         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8205         x86_64_frame_cache, x86_64_frame_this_id,
8206         x86_64_frame_prev_register, x86_64_frame_p,
8207         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8208         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8209         functions.
8210         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8211         variables.
8212         (x86_64_skip_prologue): Rewrite in terms of
8213         x86_64_analyze_prologue.
8214         (x86_64_frame_base_address): New function.
8215         (x86_64_frame_base): New variable.
8216         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8217         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8218         set deprecated_fp_regnum, deprecated_register_size,
8219         deprecated_register_bytes, register_raw_size, register_byte,
8220         register_virtual_type, register_convertiable,
8221         register_convert_to_virtual, convert_to_raw,
8222         deprecated_get_saved_register, deprecated_target_read_fp,
8223         deprecated_push_arguments, deprecated_push_return_address,
8224         deprecated_pop_frame, deprecated_store_struct_return,
8225         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8226         frameless_function_invocation, deprecated_frame_saved_pc,
8227         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8228         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8229         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8230         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8231         and x86_64_frame_p.  Call frame_base_set_default to register
8232         x86_64_frame_base.
8233         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8234         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8235         (_initialize_x86_64_tdep): Remove function.
8236         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8237         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8238         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8239         define.
8240         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8241         (x86_64_linux_sigcontext_addr): Rewrite.
8242         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8243         x86_64_linux_frame_saved_pc): Remove functions.
8244         (x86_64_linux_pc_in_sigtramp): Renamed from
8245         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8246         trampoline.
8247         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8248         Remove_functions.
8249         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8250         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8251         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8252         (x86_64_regmap): Rename to regmap.
8253         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8254         x86_64_num_gregs.
8255         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8256         x86_64_regmap.
8257         (x86_64_fxsave_offset): Remove function.
8258         (supply_fpregset): Simply call x86_64_supply_fxsave.
8259         (fill_fpregset): Simply call x86_64_fill_fxsave.
8260         (fetch_inferior_registers, store_inferior_registers): Avoid
8261         asignment in if-statement.
8262         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8263         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8264         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8265         (fetch_core_registers): Remove function.
8266         (linux_elf_core_fns): Remove.
8267         (offsetoff): Don't define.
8268         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8269         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8270         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8271         add core-regset.o.
8272         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8273         protection against multiple includes instead of NM_X86_64_h.  Add
8274         various comments.  Include "config/nm-linux.h".  Don't include
8275         <signal.h>.
8276         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8277         GET_THREAD_SIGNALS): Remove defines.
8278         (x86_64_register_u_addr, kernel_u_size,
8279         lin_thread_get_thread_signals): Remove prototypes.
8280         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8281         [HAVE_LINK_H]: Don't include "solib.h".
8282         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8283         * config/i386/tm-x86-64linux.h: Fix comments.
8284         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8285         x86-64-tdep.o): Update dependencies.
8286
8287 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8288
8289         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8290         Change parameter type to a "struct regcache *".
8291
8292         * gdbarch.sh: Regardless of the multi-arch level, always define
8293         the macro when not already defined.
8294         * gdbarch.h, gdbarch.c: Re-generate.
8295
8296 2003-05-30  Richard Henderson  <rth@redhat.com>
8297
8298         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8299         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8300         (alpha_mdebug_frame_this_id): Likewise.
8301         (alpha_mdebug_frame_prev_register): Likewise.
8302         (alpha_mdebug_frame_base_address): Likewise.
8303         (alpha_mdebug_frame_locals_address): Likewise.
8304         (alpha_mdebug_frame_args_address): Likewise.
8305         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8306         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8307         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8308         loop increment.
8309         (alpha_heuristic_frame_this_id): Make static.
8310         (alpha_heuristic_frame_prev_register): Likewise.
8311         (alpha_heuristic_frame_base_address): Likewise.
8312         * alpha-tdep.h: Update.
8313
8314 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8315
8316         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8317         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8318         defenitions.
8319         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8320         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8321         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8322         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8323         I386_ST0_REGNUM): New defines.
8324         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8325         codestream_get): Remove define.
8326         (codestream_next_addr, condestream_addr, condestream_buf,
8327         codestream_off, codestream_cnt): Remove variables.
8328         (codestream_fill, codestream_seek, codestream_read): Remove
8329         functions.
8330         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8331         functionality.
8332         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8333         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8334         i386_frame_saved_pc, i386_saved_pc_after_call,
8335         i386_frame_num_args, i386_frame_init_saved_regs,
8336         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8337         i386_push_arguments): Remove functions.
8338         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8339         functionality.  Use i386_analyze_prologue instead of
8340         i386_get_frame_setup.
8341         (I386_NUM_SAVED_REGS): New define.
8342         (struct i386_frame_cache): New structure.
8343         (i386_alloc_frame_cache, i386_analyze_struct_return,
8344         i386_skip_probe, i386_analyze_frame_setup,
8345         i386_analyze_register_saves, i386_analyze_prologue,
8346         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8347         i386_frame_prev_register, i386_sigtramp_frame_cache,
8348         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8349         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8350         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8351         New functions.
8352         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8353         New variables.
8354         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8355         I386_EAX_REGNUM and I386_EDX_REGNUM.
8356         (i386_extract_return_value, i386_store_return_value): Use
8357         I386_ST0_REGNUM where appropriate.
8358         (i386_extract_struct_value_address): Rewrite to use extract_address.
8359         (i386_svr4_pc_in_sigtramp): Add comment.
8360         (i386_svr4_sigcontext_addr): Rewrite.
8361         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8362         TDEP->sc_sp_offset.
8363         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8364         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8365         of new defines.  Set push_dummy_call, don't set
8366         deprecated_push_arguments, deprecated_push_return_address,
8367         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8368         deprecated_frame_chain, deprecated_frame_saved_pc,
8369         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8370         save_dummy_frame_tos, unwind_pc.  Call
8371         frame_unwind_append_predicate and frame_base_set_default.  Don't
8372         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8373         Don't set frameless_function_invocation.  Don't set
8374         deprecated_register_bytes, deprecated_register_size,
8375         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8376         * i386-linux-tdep.c: Fix formatting in some comments.
8377         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8378         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8379         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8380         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8381         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8382         redundant parentheses.
8383         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8384         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8385         (find_minsym_and_objfile): Change name of second argument.
8386         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8387         changed.  Use frame_pc_unwind instead of
8388         DEPRECATED_SAVED_PC_AFTER_CALL.
8389         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8390         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8391         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8392         unwinder.
8393         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8394         "dummy-frame.h".
8395         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8396         (_initialize_i386_cygwin_tdep): New prototype.
8397         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8398         deprecated_frame_chain_valid.
8399         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8400         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8401         Rely on the SVR4 defaults.
8402         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8403         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8404
8405 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8406
8407         * infcall.c (call_function_by_hand): Always call
8408         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8409
8410 2003-05-30  Richard Henderson  <rth@redhat.com>
8411
8412         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8413         increment.
8414
8415 2003-05-29  Jim Blandy  <jimb@redhat.com>
8416
8417         Use gdbarch methods for solib stuff on PowerPC Linux.
8418         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8419         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8420         show through.
8421         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8422         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8423         giving the same effect as the #definitions above.
8424
8425 2003-05-29  Adam Fedor  <fedor@gnu.org>
8426
8427         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8428         (find_implementation_from_class): Replace it with the standard
8429         case i.e. do nothing.
8430
8431 2003-05-29  Richard Henderson  <rth@redhat.com>
8432
8433         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8434         (alpha_linux_sigtramp_offset): Use it.  Make static.
8435         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8436         update for new frame model.
8437         * alpha-mdebug-tdep.c: New file.
8438         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8439         (alpha_osf1_init_abi): Install it.
8440         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8441         (linked_proc_desc_table): Remove.
8442         (alpha_frame_past_sigtramp_frame): Remove.
8443         (alpha_dynamic_sigtramp_offset): Remove.
8444         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8445         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8446         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8447         (push_sigtramp_desc): Remove.
8448         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8449         (alpha_cannot_store_register): Likewise.
8450         (alpha_sigcontext_addr): Remove.
8451         (alpha_find_saved_regs): Remove.
8452         (alpha_frame_init_saved_regs): Remove.
8453         (alpha_init_frame_pc_first): Remove.
8454         (read_next_frame_reg): Remove.
8455         (alpha_frame_saved_pc): Remove.
8456         (alpha_saved_pc_after_call): Remove.
8457         (temp_proc_desc, temp_saved_regs): Remove.
8458         (alpha_about_to_return): Remove.
8459         (cached_proc_desc): Remove.
8460         (alpha_frame_chain): Remove.
8461         (alpha_print_extra_frame_info): Remove.
8462         (alpha_init_extra_frame_info): Remove.
8463         (alpha_frame_locals_address): Remove.
8464         (alpha_frame_args_address): Remove.
8465         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8466         (alpha_push_dummy_frame): Remove.
8467         (alpha_pop_frame): Remove.
8468         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8469         (alpha_read_insn): New.
8470         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8471         for different insn encodings.
8472         (alpha_in_lenient_prologue): Remove.
8473         (struct alpha_sigtramp_unwind_cache): New.
8474         (alpha_sigtramp_frame_unwind_cache): New.
8475         (alpha_sigtramp_register_address): New.
8476         (alpha_sigtramp_frame_this_id): New.
8477         (alpha_sigtramp_frame_prev_register): New.
8478         (alpha_sigtramp_frame_unwind): New.
8479         (alpha_sigtramp_frame_p): New.
8480         (struct alpha_heuristic_unwind_cache): New.
8481         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8482         don't count nop insns that occur between functions.
8483         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8484         heuristic_proc_desc, but without the mdebug wrapping.
8485         (alpha_heuristic_frame_this_id): New.
8486         (alpha_heuristic_frame_prev_register): New.
8487         (alpha_heuristic_frame_unwind): New.
8488         (alpha_heuristic_frame_p): New.
8489         (alpha_heuristic_frame_base_address): New.
8490         (alpha_heuristic_frame_base): New.
8491         (alpha_unwind_dummy_id): New.
8492         (alpha_unwind_pc): New.
8493         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8494         frame related deprecated initializations; install replacements.
8495         (alpha_dump_tdep): Remove.
8496         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8497         (alpha_read_insn, alpha_after_prologue,
8498         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8499         alpha_heuristic_frame_prev_register,
8500         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8501         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8502         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8503         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8504
8505 2003-05-29  Andrew Cagney  <cagney@redhat.com>
8506
8507         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8508         dependant on the availability of ASSERT_FUNCTION.
8509         (ASSERT_FUNCTION): Do not define when there is no function name.
8510
8511 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
8512
8513         From Jimi X <jimix@watson.ibm.com>:
8514         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8515
8516 2003-05-28  Jim Blandy  <jimb@redhat.com>
8517
8518         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8519         argument to ptrace to int; the system headers should give it the
8520         right type, and pointers don't fit in ints on powerpc64-*-*.
8521
8522 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
8523
8524         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8525         DW_TAG_catch_block.
8526
8527 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8528
8529         * stabsread.c (dbx_lookup_type): Make static.
8530         (read_type): Ditto.
8531         (add_undefined_type): Ditto.
8532         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8533         not export.
8534
8535 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8536
8537         * hpread.c (hpread_has_name): Make static.
8538         (hpread_psymtab_to_symtab): Ditto.
8539         (file_exists): Ditto.
8540         (hpread_call_pxdb): Ditto.
8541         (hpread_pxdb_needed): Ditto.
8542         (hpread_quick_traverse): Ditto.
8543         (hpread_get_header): Ditto.
8544         (hpread_get_lntt): Ditto.
8545         (hpread_get_slt): Ditto.
8546         (class_of): Ditto.
8547
8548 2003-05-25  Andreas Schwab  <schwab@suse.de>
8549
8550         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8551         stack_align and deprecated_extra_stack_alignment_needed.
8552         (m68k_stack_align): Delete.
8553
8554         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8555         (m68k_register_virtual_size): Likewise.
8556         (altos_skip_prologue): Remove obsolete function.
8557         (isi_frame_num_args): Likewise.
8558         (news_frame_num_args): Likewise.
8559         (m68k_fix_call_dummy): Make static.
8560         (m68k_push_dummy_frame): Likewise.
8561         (m68k_pop_frame): Likewise.
8562         (m68k_skip_prologue): Likewise.
8563         (m68k_frame_init_saved_regs): Likewise.
8564         (m68k_saved_pc_after_call): Likewise.
8565         (m68k_get_longjmp_target): Make multi-arch.
8566         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8567         structure.  Register m68k_get_longjmp_target if enabled.
8568         * m68k-tdep.h (struct gdbarch_tdep): Define.
8569         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8570
8571         * Makefile.in (config.status): Also depend on configure.tgt
8572         and configure.host.
8573         (m68klinux-tdep.o): Update dependencies.
8574         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8575         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8576         (M68K_LINUX_JB_PC): Define.
8577         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8578         and take additional parameter.
8579         (m68k_linux_sigtramp_saved_pc): Update.
8580         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8581         m68k_linux_pc_in_sigtramp, in_plt_section,
8582         find_solib_trampoline_target.
8583         * config/m68k/tm-linux.h: Don't include any tm headers.
8584         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8585         (JB_ELEMENT_SIZE): Likewise.
8586         (JB_PC): Likewise.
8587         (GET_LONGJMP_TARGET): Likewise.
8588         (IN_SIGTRAMP): Likewise.
8589         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8590
8591 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8592
8593         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8594         (sparc32_push_arguments): Re-implement by calling
8595         sparc32_do_push_arguments.
8596
8597 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8598
8599         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8600         SPARC_O1_REGNUM): New defines.
8601         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8602         (sparc32_store_return_value): New function.
8603         (sparc_extract_struct_value_address): Rewrite to operate on a
8604         regcache.
8605         (sparc_gdbarch_init): Don't set
8606         deprecated_extract_struct_value_address.  Set
8607         extract_struct_value_address instead. Don't set
8608         deprecated_extract_return_value and deprecated_store_return_value
8609         for 32-bit targets.  Set extract_return_value and
8610         store_return_value instead.
8611         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8612         DEPRECATED_EXTRACT_RETURN_VALUE,
8613         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8614         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8615         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8616         (sparc_store_return_value): Remove prototype.
8617         (sparc32_store_return_value): New prototype.
8618         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8619         Adjust prototypes.
8620
8621 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
8622
8623         * sparcnbsd-tdep.c: Include "gdb_string.h".
8624
8625 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8626
8627         * p-valprint.c (pascal_val_print): Replace extract_address with
8628         the inline equivalent extract_unsigned_integer.
8629         * jv-valprint.c (java_value_print): Ditto.
8630         * ada-valprint.c (ada_val_print_1): Ditto.
8631         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8632
8633 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8634
8635         * blockframe.c (frameless_look_for_prologue): Remove unused
8636         after_prologue variable.
8637
8638 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8639
8640         * blockframe.c (get_pc_function_start): Rewrite to avoid
8641         asignments in if-statements.
8642
8643 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8644
8645         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8646         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8647         files, don't relocate absolute symbols (and do use mst_abs).
8648
8649 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8650
8651         * objc-lang.c: Include "gdb_assert.h".
8652         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8653         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8654         (gdb_check, gdb_check_fatal): Delete functions.
8655         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8656         gdb_assert.
8657         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8658         * Makefile.in (objc-lang.o): Update dependencies.
8659
8660 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8661
8662         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8663         with fprintf_filtered, not fprintf_unfiltered.
8664
8665 2003-05-22  Andrew Cagney  <cagney@redhat.com>
8666
8667         * stack.c (frame_info): Inline extract_address, replacing it with
8668         extract_unsigned_integer.
8669         * findvar.c (unsigned_pointer_to_address): Ditto.
8670         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8671         * dwarf2expr.c (dwarf2_read_address): Ditto.
8672         * frame.c (frame_pc_unwind): Update comment.
8673         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8674
8675 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
8676
8677         * infptrace.c (detach): Call print_sys_errmsg rather than
8678         perror_with_name to issue warning message when errno is non-zero
8679         after calling ptrace detach.
8680
8681 2003-05-21  J. Brobecker  <brobecker@gnat.com>
8682
8683         * config/pa/tm-hppa.h: Delete some unused macros. Move some
8684         macro definitions from here...
8685         * hppa-tdep.c: ...to there.
8686
8687 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
8688
8689         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8690         register_ptrace_addr().  Fix all callers.
8691
8692 2003-05-21  Andreas Schwab  <schwab@suse.de>
8693
8694         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8695         dependencies.
8696         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8697         end.
8698         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8699         (_initialize_m68k_linux_tdep): New function.
8700         (m68k_linux_frame_saved_pc): Make static.
8701         (m68k_linux_extract_return_value): Likewise.
8702         (m68k_linux_store_return_value): Likewise.
8703         (m68k_linux_extract_struct_value_address): Likewise.
8704         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8705         Remove.
8706         (DEPRECATED_STORE_RETURN_VALUE): Remove.
8707         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8708         (DEPRECATED_FRAME_SAVED_PC): Remove.
8709
8710 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
8711
8712         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8713         regset numbering rather than our own.
8714
8715 2003-05-19  David Carlton  <carlton@bactrian.org>
8716
8717         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8718
8719 2003-05-19  David Carlton  <carlton@bactrian.org>
8720
8721         Partial fix for PR c++/827.
8722         * cp-support.h: Include symtab.h.
8723         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8724         * cp-namespace.c: Update contributors.
8725         (cp_lookup_symbol_nonlocal): New.
8726         (lookup_namespace_scope, cp_lookup_symbol_namespace)
8727         (lookup_symbol_file): Ditto.
8728         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8729         * block.h: Declare block_scope, block_using, block_global_block.
8730         * block.c (block_scope): New.
8731         (block_using, block_global_block): Ditto.
8732         * Makefile.in (cp_support_h): Depend on symtab_h.
8733         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8734
8735 2003-05-19  David Carlton  <carlton@bactrian.org>
8736
8737         * language.h (struct language_defn): Add 'la_value_of_this'
8738         and 'la_lookup_symbol_nonlocal' members.
8739         * symtab.h: Declare basic_lookup_symbol_nonlocal,
8740         lookup_symbol_static, lookup_symbol_global,
8741         lookup_symbol_aux_block.
8742         * symtab.c (lookup_symbol_aux): Call language hooks to determine
8743         if we should search fields of this and how to do static/global
8744         lookup.
8745         (lookup_symbol_aux_block): Make extern.
8746         (basic_lookup_symbol_nonlocal): New.
8747         (lookup_symbol_static, lookup_symbol_global): Ditto.
8748         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8749         'la_lookup_symbol_nonlocal' members.
8750         * c-lang.c (c_language_defn, cplus_language_defn)
8751         (asm_language_defn, minimal_language_defn): Ditto.
8752         * jv-lang.c (java_language_defn): Ditto.
8753         * language.c (unknown_language_defn, auto_language_defn)
8754         (local_language_defn): Ditto.
8755         * m2-lang.c (m2_language_defn): Ditto.
8756         * objc-lang.c (objc_language_defn): Ditto.
8757         * scm-lang.c (scm_language_defn): Ditto.
8758         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8759         * p-lang.c (pascal_language_defn): Ditto for both.
8760         * Makefile.in (f-lang.o): Depend on value_h.
8761         (p-lang.o): Ditto.
8762
8763 2003-05-19  David Carlton  <carlton@bactrian.org>
8764
8765         * block.h: Declare block_static_block.
8766         * block.c (block_static_block): New.
8767         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8768         lookup_symbol_aux_local, calling block_static_block instead.
8769         (lookup_symbol_aux_local): Delete 'static_block' argument.
8770
8771 2003-05-19  David Carlton  <carlton@bactrian.org>
8772
8773         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8774
8775 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
8776
8777         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8778         register numbers mapping.
8779
8780 2003-05-18  Adam Fedor  <fedor@gnu.org>
8781
8782         * symtab.c (completion_list_objc_symbol): New function.
8783         (make_symbol_completion_list): Use it to add ObjC symbols
8784         when looking though the list.
8785         (language_search_unquoted_string): New function.
8786         (make_file_symbol_completion_list): Use it.
8787
8788 2003-05-18  Andreas Schwab  <schwab@suse.de>
8789
8790         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8791         dependencies.
8792         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8793         as m68k_linux_extract_return_value.
8794         (DEPRECATED_STORE_RETURN_VALUE): Define as
8795         m68k_linux_store_return_value.
8796         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8797         m68k_linux_extract_struct_value_address.
8798         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8799         get_next_frame, get_frame_base, get_frame_pc.
8800         (m68k_linux_frame_saved_pc): Use get_frame_base.
8801         (m68k_linux_extract_return_value): New function.
8802         (m68k_linux_store_return_value): New function.
8803         (m68k_linux_extract_struct_value_address): New function.
8804         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8805
8806         * c-exp.y (typebase): Remove duplicate occurence of
8807         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
8808         of lookup_signed_typename.
8809
8810 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
8811
8812         * dwarf2loc.c (find_location_expression): Change type of second
8813         argument to `size_t *'.
8814         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8815         for size variable.
8816
8817 2003-05-18  David Carlton  <carlton@bactrian.org>
8818
8819         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8820         'linkage_name'.  Add comment.
8821         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8822         'linkage_name'.
8823         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8824         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8825         (lookup_block_symbol): Ditto.
8826
8827 2003-05-16  Andrew Cagney  <cagney@redhat.com>
8828
8829         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8830         * gdbarch.h, gdbarch.c: Re-generate.
8831         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8832         * TODO (REGISTER_BYTES): Delete reference.
8833         * alpha-tdep.c (alpha_gdbarch_init): Update.
8834         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8835         * x86-64-tdep.c (x86_64_init_abi): Update.
8836         * vax-tdep.c (vax_gdbarch_init): Update.
8837         * v850-tdep.c (v850_gdbarch_init): Update.
8838         * sparc-tdep.c (sparc_gdbarch_init): Update.
8839         * sh-tdep.c (sh_gdbarch_init): Update.
8840         * s390-tdep.c (s390_gdbarch_init): Update.
8841         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8842         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8843         (ns32k_gdbarch_init_32382): Update.
8844         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8845         * mcore-tdep.c (mcore_gdbarch_init): Update.
8846         * m68k-tdep.c (m68k_gdbarch_init): Update.
8847         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8848         * ia64-tdep.c (ia64_gdbarch_init): Update.
8849         * i386-tdep.c (i386_gdbarch_init): Update.
8850         * i386-linux-tdep.c (i386_linux_init_abi): Update.
8851         * hppa-tdep.c (hppa_gdbarch_init): Update.
8852         * h8300-tdep.c (h8300_gdbarch_init): Update.
8853         * frv-tdep.c (frv_gdbarch_init): Update.
8854         * cris-tdep.c (cris_gdbarch_init): Update.
8855         * avr-tdep.c (avr_gdbarch_init): Update.
8856         * arm-tdep.c (arm_gdbarch_init): Update.
8857         * sparc-tdep.c (sparc_pop_frame): Update.
8858         * rs6000-tdep.c (rs6000_pop_frame): Update.
8859         * remote.c (init_remote_state): Update.
8860         (remote_prepare_to_store): Update.
8861         * remote-vx.c (vx_prepare_to_store): Update.
8862         * remote-sds.c (sds_fetch_registers): Update.
8863         (sds_prepare_to_store): Update.
8864         * remote-array.c: Update.
8865         * regcache.c (init_legacy_regcache_descr): Update.
8866         (init_regcache_descr): Update.
8867         * mips-tdep.c (mips_eabi_extract_return_value): Update.
8868         (mips_o64_extract_return_value): Update.
8869         * irix5-nat.c (fetch_core_registers): Update.
8870         * irix4-nat.c (fetch_core_registers): Update.
8871         * i386-tdep.h: Update.
8872         * hppa-tdep.c (pa_do_registers_info): Update.
8873         (pa_do_strcat_registers_info): Update.
8874         * cris-tdep.c (cris_register_bytes_ok): Update.
8875         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8876         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8877         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8878         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8879         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8880         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8881         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8882         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8883         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8884         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8885         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8886         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8887         (REGISTER_BYTES_OK): Update.
8888         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8889         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8890
8891 2003-05-16  Ian Lance Taylor  <ian@airs.com>
8892
8893         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8894         (vax_print_insn, print_insn_arg): Remove static functions.
8895         (vax_gdbarch_init): Call set_gdbarch_print_insn with
8896         print_insn_vax from opcodes library.
8897         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8898
8899 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8900
8901         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8902         * target.h (memory_breakpoint_from_pc): Delete declaration.
8903         * mem-break.c (memory_breakpoint_from_pc): Delete function.
8904         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8905         * monitor.c (monitor_insert_breakpoint): Use
8906         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8907         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8908         * gdbarch.h, gdbarch.c: Re-generate.
8909         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8910         (sparc_gdbarch_init): Set breakpoint_from_pc to
8911         sparc_breakpoint_from_pc.
8912         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8913         (BREAKPOINT_FROM_PC): Define.
8914         (sparc_breakpoint_from_pc): Declare.
8915         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8916         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8917         (BREAKPOINT_FROM_PC): Define.
8918         (BREAKPOINT): Delete macro.
8919         * target.h: Update comment.
8920         * s390-tdep.c (s390_gdbarch_init): Update comments.
8921         * remote.c: Update comments.
8922         * remote-mips.c: Update comments.
8923         * proc-api.c (write_with_trace): Do not check for a breakpoint.
8924         * mem-break.c: Update comment.
8925         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8926         (ia64_memory_insert_breakpoint): Update.
8927         * config/sparc/tm-sparc.h: Update comment.
8928         * config/pa/tm-hppa64.h: Update comment.
8929         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8930         (rs6000_breakpoint_from_pc): Update.
8931         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8932         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8933         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8934         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8935         (mips_breakpoint_from_pc): Update.
8936         (mips_dump_tdep): Update.
8937
8938         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8939         * minsyms.c (lookup_minimal_symbol): Inline
8940         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
8941
8942         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8943         * p-valprint.c (pascal_object_print_value_fields): Ditto.
8944         * p-lang.c (pascal_printstr): Ditto.
8945         * objc-lang.c (objc_printstr): Ditto.
8946         * m2-lang.c (m2_printstr): Ditto.
8947         * jv-valprint.c (java_print_value_fields): Ditto.
8948         * f-lang.c (f_printstr): Ditto.
8949         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
8950         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
8951         for repeat_count_threshold.
8952         * Makefile.in (cp-valprint.o): Update dependencies.
8953
8954 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
8955
8956         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
8957         (examine_prologue): Support looking through leaf functions, knowing
8958         they start with mov r2,r12.  Support skipping over indirect stores
8959         of the input registers.  Upon hitting a non-nop branch instruction
8960         or predicated instruction, bail out by setting lim_pc to the current
8961         pc value in the loop.  At the end, if the lim_pc value is still
8962         beyond our calculated value and we have trust_limit set,
8963         use the lim_pc value.
8964
8965 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8966
8967         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
8968         generic_find_dummy_frame.
8969         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
8970         (deprecated_generic_find_dummy_frame): Update.
8971         (deprecated_read_register_dummy): Update.
8972         * frame.c (deprecated_generic_get_saved_register): Update.
8973
8974 2003-05-15  Theodore A. Roth  <troth@openavr.org>
8975
8976         * avr-tdep.c (avr_breakpoint_from_pc): New function.
8977         (avr_gdbarch_init): Set breakpoint_from_pc method.
8978
8979 2003-05-15  Andrew Cagney  <cagney@redhat.com>
8980
8981         * regcache.c (build_regcache): Set deprecated_register_valid
8982         directly.
8983         (deprecated_grub_regcache_for_register_valid): Delete function.
8984         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
8985         declaration.
8986
8987 2003-05-15  David Carlton  <carlton@bactrian.org>
8988
8989         Committed by Elena Zannoni <ezannoni@redhat.com>
8990         * symtab.c (lookup_symbol_aux): Delete calls to
8991         lookup_symbol_aux_minsyms.
8992         (lookup_symbol_aux_minsyms): Comment out function and
8993         prototype. Delete lookup by mangled name.
8994
8995 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
8996
8997         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
8998         correctly indicate an empty stack and ``stack_allocated'' to the
8999         indicate the number of elements initially allocated.
9000         (dwarf_expr_grow_stack): Simplify method for computing new
9001         stack size.  Don't loop infinitely if ``stack_len'' is zero.
9002         (execute_stack_op): Move ``ctx->in_reg'' initialization
9003         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9004         be used in conjuction with DW_OP_piece.  Revise error message
9005         accordingly.
9006
9007 2003-05-14  Theodore A. Roth  <troth@openavr.org>
9008
9009         * MAINTAINERS: Update my email address.
9010         * avr-tdep.c: Ditto.
9011
9012 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
9013
9014         * symtab.h (enum domain_enum): Rename from namespace_enum.
9015         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9016         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9017         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9018         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9019         TYPES_NAMESPACE, METHODS_NAMESPACE.
9020         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9021         (struct symbol, struct partial_symbol): Rename field
9022         'namespace_enum namespace' to 'domain_enum domain'.
9023         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9024         Delete old define kludge for namespace.
9025
9026         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9027         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9028         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9029         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9030         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9031         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9032         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9033         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9034         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9035         occurrences of the above.
9036
9037 2003-05-14  Ian Lance Taylor  <ian@airs.com>
9038
9039         * Makefile.in (install-only): Use $(SHELL) when running
9040         mkinstalldirs.
9041
9042 2003-05-13  Ian Lance Taylor  <ian@airs.com>
9043
9044         * MAINTAINERS (write after approval): Add myself.
9045
9046         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9047         second and third arguments.
9048         * ser-tcp.c (_initialize_ser_tcp): Likewise.
9049         * ser-unix.c (_initialize_ser_hardwire): Likewise.
9050
9051 2003-05-13  Andrew Cagney  <cagney@redhat.com>
9052
9053         * defs.h (store_address): Delete declaration.
9054         findvar.c (store_address): Delete function.
9055         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9056         store_unsigned_integer.
9057         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9058         * v850-tdep.c (v850_push_arguments): Ditto.
9059         * sparc-tdep.c (sparc_get_saved_register): Ditto.
9060         * sh-tdep.c (sh64_get_saved_register): Ditto.
9061         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9062         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9063         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9064         (mips_get_saved_register): Ditto.
9065         * ia64-tdep.c (ia64_get_saved_register): Ditto.
9066         (find_func_descr, ia64_push_arguments): Ditto.
9067         * i386-tdep.c (i386_push_arguments): Ditto.
9068         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9069         * frv-tdep.c (frv_push_arguments): Ditto.
9070         * frame.c (legacy_saved_regs_prev_register): Ditto.
9071         (deprecated_generic_get_saved_register): Ditto.
9072         * findvar.c (unsigned_address_to_pointer): Ditto.
9073         * dwarf2read.c (dwarf2_const_value): Ditto.
9074         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9075         * alpha-tdep.c (alpha_push_arguments): Ditto.
9076
9077 2003-05-12  J. Brobecker  <brobecker@gnat.com>
9078
9079         * NEWS: Mention that the hppa-hpux port has been partially
9080         multiarched (32bit ABIT only, so far).
9081
9082 2003-05-11  Andrew Cagney  <cagney@redhat.com>
9083
9084         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9085         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9086         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9087         sim/testsuite/sim/arm/misaligned2.ms, and
9088         sim/testsuite/sim/arm/misaligned3.ms.
9089         * disasm.h (struct ui_file): Add opaque struct declaration.
9090         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9091         * frame.h (struct ui_file): Ditto.
9092
9093 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
9094
9095         * value.h: Pretty print.
9096
9097 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
9098
9099         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9100
9101 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9102
9103         * regcache.h (max_register_size): Delete declaration.
9104         * regcache.c (max_register_size): Delete function.
9105         (struct regcache_descr): Delete field "max_register_size".
9106         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9107         registers fit in MAX_REGISTER_SIZE.
9108         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9109         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9110         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9111         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9112         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9113         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9114         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9115         * dve3900-rom.c, hppa-tdep.c: Ditto.
9116
9117 2003-05-08  David Carlton  <carlton@math.stanford.edu>
9118
9119         * valops.c (push_word): Fix typo.
9120
9121 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9122
9123         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9124         * gdbarch.h: Re-generate.
9125         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9126         (legacy_max_register_raw_size): Delete declaration.
9127         * regcache.c (legacy_max_register_raw_size): Delete function.
9128         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9129         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9130         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9131         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9132         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9133         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9134         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9135         * findvar.c, dwarf2cfi.c: Ditto.
9136
9137 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9138
9139         * mips-tdep.c (read_signed_register): New function, moved to here
9140         from "regcache.c".
9141         (read_signed_register_pid): Ditto.
9142         * regcache.c (read_signed_register_pid): Delete function, moved to
9143         "mips-tdep.c".
9144         (read_signed_register): Ditto.
9145         * regcache.h (read_signed_register): Delete declaration.
9146         (read_signed_register_pid): Delete declaration.
9147
9148 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9149
9150         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9151         * gdbarch.h: Re-generate.
9152         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9153         (legacy_max_register_virtual_size): Delete declaration.
9154         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9155         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9156         * tracepoint.c (memrange_sortmerge): Ditto.
9157         * sparc-tdep.c (sparc_print_registers): Ditto.
9158         * regcache.c (legacy_max_register_virtual_size): Delete function.
9159
9160 2002-05-08  J. Brobecker  <brobecker@gnat.com>
9161
9162         * fork-child.c (escape_bang_in_quoted_argument): New function.
9163         (fork_inferior): Escape '!' characters in quoted arguments
9164         only when needed.
9165
9166 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9167
9168         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9169         the language of the CU is not currently supported by GDB.
9170
9171 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9172
9173         * defs.h (language): Add language_minimal enum value.
9174         * c-lang.c (minimal_language_defn): New language definition.
9175         (_initialize_c_language): Add the new minimal language to the list
9176         of languages known to GDB.
9177
9178 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
9179
9180         * frame.c (get_frame_type): Don't attempt to lazily initialize
9181         frame's unwinder for legacy frames.
9182
9183 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9184
9185         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9186         and "regcache" parameters.
9187         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9188
9189 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9190
9191         * dwarf2read.c (dwarf_decode_lines): Only use output of
9192         check_cu_functions() when calling record_line().  Do not update
9193         the current address.
9194
9195 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9196
9197         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9198         code.
9199
9200 2003-05-07  Jim Blandy  <jimb@redhat.com>
9201
9202         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9203         'maint info symtabs' and 'maint info psymtabs'.
9204         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9205         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9206         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9207         Declarations updated.
9208         * maint.c (maintenance_list_command): Delete.
9209         (_initialize_maint_cmds): Update calls to add_cmd.
9210         * gdbcmd.h (maintenancelistlist): Delete declaration.
9211         * cli/cli-cmds.c (maintenancelistlist): Delete.
9212         (init_cmd_lists): Don't initialize it.
9213         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9214
9215 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9216
9217         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9218         "regcache".
9219         (d10v_print_registers_info): Update.
9220         (d10v_dmap_register, d10v_imap_register): Delete functions.
9221         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9222         and "imap_register".
9223         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9224         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9225         * arch-utils.c (generic_remote_translate_xfer_address): Add
9226         "regcache" and "gdbarch" parameters.
9227         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9228         parameter.  Change class to multi-arch.
9229         * gdbarch.h, gdbarch.c: Re-generate.
9230         * remote.c (remote_xfer_memory): Use
9231         gdbarch_remote_translate_xfer_address.
9232
9233 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9234
9235         * infrun.c (prev_pc): Move declaration ahead of proceed().
9236         (proceed): Refresh prev_pc value before resuming.
9237         (stop_stepping): Remove code to refresh prev_pc.
9238
9239 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9240
9241         * nto-tdep.c: Removed stray comment.
9242
9243 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9244
9245         * i386-nto-tdep.c: Fix old K&R function definitions.
9246         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9247         Also change add_show_from_set() call to add_setshow_cmd().
9248         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9249
9250 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9251
9252         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9253         (fprint_dummy_frames): New function.
9254         (maintenance_print_dummy_frames): New function.
9255         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9256         * frame.c (fprint_frame_id): Make global.
9257         * frame.h (fprint_frame_id): Declare.
9258         * Makefile.in (dummy-frame.o): Update dependencies.
9259
9260 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9261
9262         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9263         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9264         SIZEOF_CALL_DUMMY_WORDS.
9265         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9266         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9267         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9268         CALL_DUMMY_BREAKPOINT_OFFSET.
9269         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9270         CALL_DUMMY_START_OFFSET.
9271         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9272         * gdbarch.h, gdbarch.c: Re-generate.
9273         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9274         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9275         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9276         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9277         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9278         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9279         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9280         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9281         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9282         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9283         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9284         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9285         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9286         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9287         * config/sparc/tm-sparc.h: Update.
9288
9289 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9290
9291         * configure.tgt: Add i[3456]86-*-nto*.
9292         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9293         * nto-tdep.c: New file. Neutrino target support routines.
9294         * nto-tdep.h: New file. Neutrino target header.
9295         * config/tm-qnxnto.h: New file.
9296         * config/i386/i386nto.mt: New file.
9297         * config/i386/tm-i386nto.h: New file.
9298
9299 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9300
9301         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9302         (load_infrun_state): Ditto.
9303         (struct thread_info): Drop "prev_func_name" field.
9304         * thread.c (load_infrun_state): Update.
9305         (save_infrun_state): Update.
9306         * infrun.c (prev_func_name): Delete variable.
9307         (init_wait_for_inferior): Do not clear prev_func_name.
9308         (stop_stepping, keep_going, context_switch): Do not swap
9309         prev_func_name.
9310         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9311         instead of PC_IN_SIGTRAMP.
9312
9313 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9314
9315         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9316         REGISTER_BYTE with register_offset_hack.
9317         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9318         that REGISTER_BYTE is consistent with the regcache.
9319         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9320         * gdbarch.h, gdbarch.c: Regenerate.
9321
9322 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9323
9324         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9325         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9326
9327         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9328
9329 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9330
9331         From Thierry Schneider <tpschneider1@yahoo.com>
9332         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9333         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9334         (mi-cmd-symbol.o): Add rule.
9335
9336 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9337
9338         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9339         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9340         * gdbarch.h, gdbarch.c: Re-generate.
9341         * d10v-tdep.c (d10v_push_dummy_code): New function.
9342         (d10v_gdbarch_init): Set push_dummy_code.
9343         * infcall.c (legacy_push_dummy_code): New function.
9344         (generic_push_dummy_code): New function.
9345         (push_dummy_code): New function.
9346         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9347         instead of dummy_addr, to push_dummy_call.  Move call to
9348         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9349         switch.
9350         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9351
9352 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9353
9354         * disasm.h (print_insn): Declare.
9355         * disasm.c (init_gdb_disassemble_info): New function.
9356         (gdb_disassembly): Call init_gdb_disassemble_info.
9357         (gdb_print_insn): New function.
9358         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9359         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9360         * mcore-tdep.c: Include "disasm.h"
9361         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9362         * d10v-tdep.c: Include "disasm.h".
9363         (display_trace): Call gdb_print_insn, instead of print_insn.
9364         (print_insn): Delete function.
9365         * printcmd.c: Include "disasm.h".
9366         (print_insn): Delete function.
9367         (print_formatted): Call gdb_print_insn, instead of print_insn.
9368         * Makefile.in (printcmd.o): Update dependencies.
9369         (mcore-tdep.o, d10v-tdep.o): Ditto.
9370
9371 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9372
9373         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9374         PC_REGNUM, re-indent.
9375         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9376         PC_REGNUM isn't set.
9377
9378         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9379         * gdbarch.h, gdbarch.c: Re-generate.
9380         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9381         register_virtual_size, pc_regnum, or register_bytes.
9382         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9383         (d10v_register_type): Use D10V_PC_REGNUM.
9384         (d10v_print_registers_info, d10v_read_pc): Ditto.
9385         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9386         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9387
9388 2003-05-02  David Carlton  <carlton@bactrian.org>
9389
9390         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9391         the name with mstrsave.
9392
9393 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9394
9395         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9396         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9397         (host_charset_name, target_charset_name): New vars for use by
9398         set/show commands.
9399         (host_charset_enum, target_charset_enum): New enums for set/show
9400         commands.
9401         (set_charset_sfunc, set_host_charset_sfunc,
9402         set_target_charset_sfunc): New functions.
9403         (set_host_charset, set_target_charset): Make static.
9404         (list_charsets, set_host_charset_command,
9405         set_target_charset_command): Delete functions.
9406         (show_charset_command): Rewrite as....
9407         (show_charset): Hook this up with the set/show command mechanism.
9408         (_initialize_charset): Change names of charsets to match the
9409         set/show enums. Use host_charset_name and target_charset_name.
9410         Use set/show mechanism for charset, host-charset, target-charset
9411         commands. Do not make 'show host-charset' and 'show
9412         target-charset' be aliases of 'show charset'.
9413
9414         * charset.h (set_host_charset, set_target_charset): Don't export,
9415         they are not used outside the file.
9416
9417 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9418
9419         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9420         (gdb_disassembly): Make "di" non static, always initialize and
9421         cleanup.  Always use dis_asm_read_memory.
9422         (gdb_dis_asm_read_memory): Delete function.
9423
9424 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9425
9426         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9427         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9428
9429 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9430
9431         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9432         "tm_print_insn_info".
9433         (TARGET_PRINT_INSN_INFO): Delete macro.
9434         (dis_asm_read_memory): Delete function declaration.
9435         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9436         (tm_print_insn_info): Delete variable definition.
9437         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9438         * gdbarch.h, gdbarch.c: Re-generate.
9439         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9440         "deprecated_tm_print_insn_info".
9441         * mcore-tdep.c (mcore_dump_insn): Ditto.
9442         * mips-tdep.c (mips_gdbarch_init): Ditto.
9443         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9444         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9445         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9446         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9447         instead of TARGET_PRINT_INSN_INFO, add comment.
9448         * s390-tdep.c (s390_get_frame_info): Instead of
9449         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9450         (s390_check_function_end, s390_is_sigreturn): Ditto.
9451         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9452         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9453         * disasm.c: Include "gdbcore.h".
9454         (_initialize_disasm): New function, initialize
9455         "deprecated_tm_print_insn_info".
9456         (deprecated_tm_print_insn_info): New variable.
9457         (dis_asm_read_memory): Moved from "corefile.c", made static.
9458         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9459         * Makefile.in (disasm.o): Update dependencies.
9460
9461 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9462
9463         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9464
9465 2003-04-29  Adam Fedor  <fedor@gnu.org>
9466
9467         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9468         * infcall.c (find_function_addr): Make non-static.
9469         * infcall.h (find_function_addr): Declare.
9470         * Makefile.in (eval.o): Update dependencies.
9471
9472 2003-04-28  Adam Fedor  <fedor@gnu.org>
9473
9474         * symtab.c (symbol_find_demangled_name): Check for and demangle
9475         ObjC symbols.
9476         (symbol_init_demangled_name): Init for language_objc as well.
9477
9478 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9479
9480         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9481         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9482         * gdbarch.h, gdbarch.c: Re-generate.
9483         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9484         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9485         * inferior.h (deprecated_read_fp): Rename read_fp.
9486         (generic_target_read_fp): Delete declaration.
9487         * regcache.c (generic_target_read_fp): Delete function.
9488         (deprecated_read_fp): Replace read_fp, use
9489         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9490         * d10v-tdep.c (d10v_read_fp): Delete function.
9491         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9492
9493         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9494         deprecated_target_read_fp to generic_target_read_fp.
9495         * sh-tdep.c (sh_gdbarch_init): Ditto.
9496         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9497         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9498         * frv-tdep.c (frv_gdbarch_init): Ditto.
9499
9500         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9501         deprecated_fp_regnum.
9502         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9503         * vax-tdep.c (vax_gdbarch_init): Ditto.
9504         * v850-tdep.c (v850_gdbarch_init): Ditto.
9505         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9506         * sh-tdep.c (sh_gdbarch_init): Ditto.
9507         * s390-tdep.c (s390_gdbarch_init): Ditto.
9508         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9509         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9510         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9511         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9512         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9513         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9514         * i386-tdep.c (i386_gdbarch_init): Ditto.
9515         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9516         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9517         * frv-tdep.c (frv_gdbarch_init): Ditto.
9518         * cris-tdep.c (cris_gdbarch_init): Ditto.
9519         * avr-tdep.c (avr_gdbarch_init): Ditto.
9520         * arm-tdep.c (arm_gdbarch_init): Ditto.
9521         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9522
9523         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9524         * v850-tdep.c (v850_gdbarch_init): Ditto.
9525         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9526         * sh-tdep.c (sh_gdbarch_init): Ditto.
9527         * s390-tdep.c (s390_gdbarch_init): Ditto.
9528         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9529         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9530         * mips-tdep.c (mips_gdbarch_init): Ditto.
9531         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9532         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9533         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9534         * frv-tdep.c (frv_gdbarch_init): Ditto.
9535         * avr-tdep.c (avr_gdbarch_init): Ditto.
9536         * arm-tdep.c (arm_gdbarch_init): Ditto.
9537
9538         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9539         DEPRECATED_FP_REGNUM.
9540         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9541         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9542         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9543         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9544         (sparc32_register_virtual_type): Ditto.
9545         * sh-tdep.c (sh64_frame_chain): Ditto.
9546         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9547         (sh_nofp_frame_init_saved_regs): Ditto.
9548         (sh64_nofp_frame_init_saved_regs): Ditto.
9549         (sh_fp_frame_init_saved_regs): Ditto.
9550         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9551         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9552         * procfs.c (procfs_fetch_registers): Ditto.
9553         (procfs_store_registers): Ditto.
9554         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9555         (store_inferior_registers, fetch_core_registers): Ditto.
9556         (fetch_kcore_registers, clear_regs): Ditto.
9557         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9558         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9559         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9560         * nlm/i386.c (do_status): Ditto.
9561         * mipsv4-nat.c (supply_gregset): Ditto.
9562         * mips-tdep.c: Ditto for comments.
9563         * mips-nat.c (fetch_inferior_registers): Ditto.
9564         (store_inferior_registers, fetch_core_registers): Ditto.
9565         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9566         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9567         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9568         (i386_do_pop_frame, i386_register_type): Ditto.
9569         * hppa-tdep.c (hppa_frame_chain): Ditto.
9570         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9571         (hppa_pop_frame, hppa_read_fp): Ditto.
9572         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9573         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9574         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9575         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9576         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9577         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9578         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9579         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9580         * blockframe.c: Ditto for comments.
9581         * arch-utils.h: Ditto for comments.
9582         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9583         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9584         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9585         * alpha-tdep.h: Ditto for comments.
9586         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9587         (alpha_cannot_store_register): Ditto.
9588         (alpha_push_dummy_frame): Ditto.
9589         * alpha-nat.c (supply_gregset): Ditto.
9590
9591         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9592         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9593         * config/sparc/tm-sparc.h: Update comment.
9594
9595         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9596         deprecated_read_fp instead of TARGET_READ_FP.
9597         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9598         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9599         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9600         deprecated_read_fp instead of read_fp.
9601         * s390-tdep.c (s390_push_arguments): Ditto.
9602         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9603         * frame.h: Ditto in comments.
9604         * frame.c (legacy_get_prev_frame): Ditto.
9605         * dummy-frame.c (dummy_frame_this_id): Ditto.
9606         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9607
9608 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9609
9610         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9611         * gdbarch.h, gdbarch.c: Re-generate.
9612         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9613         * vax-tdep.c (_initialize_vax_tdep): Update.
9614         * v850-tdep.c (_initialize_v850_tdep): Update.
9615         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9616         * s390-tdep.c (_initialize_s390_tdep): Update.
9617         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9618         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9619         * mips-tdep.c (_initialize_mips_tdep): Update.
9620         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9621         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9622         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9623         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9624         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9625         * frv-tdep.c (_initialize_frv_tdep): Update.
9626         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9627         (_initialize_cris_tdep): Update.
9628         * arch-utils.c (legacy_print_insn): Update.
9629         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9630
9631 2003-04-26  Adam Fedor  <fedor@gnu.org>
9632
9633         * linespec.c (decode_objc): New function to decode ObjC calls
9634         (decode_line_1): Check for ObjC calls (using decode_objc)
9635         * Makefile (linespec.o): Update dependencies.
9636
9637 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9638
9639         * breakpoint.h (struct breakpoint_ops): New.
9640         (struct breakpoint): Add ops member.
9641
9642         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9643         (mention): Use new breakpoint ops member.
9644         (set_raw_breakpoint): Initialize ops field to NULL.
9645         (print_exception_catchpoint, print_one_exception_catchpoint)
9646         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9647         (gnu_v3_exception_catchpoint_ops): New.
9648         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9649
9650 2003-04-25  Adam Fedor  <fedor@gnu.org>
9651
9652         * Makefile.in (COMMON_OBS): Add objc-lang.o
9653
9654 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9655
9656         * d10v-tdep.c (print_insn): Delete function.
9657         (display_trace): Use TARGET_PRINT_INSN.
9658         (_initialize_d10v_tdep): Do not set tm_print_insn.
9659         (d10v_gdbarch_init): Set print_insn.
9660
9661 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9662
9663         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9664         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9665         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9666         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9667         (nr_dmap_regs, a0_regnum): ... new functions.
9668         (d10v_print_registers_info): Use a0_regnum, use register_size.
9669         (d10v_register_byte): Delete function.
9670         (d10v_register_raw_size): Delete function.
9671         (d10v_register_type): Use a0_regnum.
9672         (d10v_print_registers_info): Use a0_regnum.
9673         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9674         (d10v_gdbarch_init): Do not set register_byte or
9675         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9676         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9677         extract_address.
9678         (trace_command): Use XCALLOC.
9679         (print_insn): Delete reference to tm_print_insn.
9680         (saved_regs_unwinder): Use store_unsigned_integer instead of
9681         store_address.
9682         * frame.h (FRAME_OBSTACK_CALLOC): Define
9683
9684 2003-04-25  David Carlton  <carlton@bactrian.org>
9685
9686         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9687
9688 2003-04-24  Adam Fedor  <fedor@gnu.org>
9689
9690         * objc-lang.c: Include "valprint.h"
9691         * Makefile.in (objc-lang.o): Update dependencies.
9692
9693 2003-04-24  Adam Fedor  <fedor@gnu.org>
9694
9695         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9696         architecture dependant compilation and mark as unimplemented
9697         (until they get put in the gdbarch vector).
9698
9699 2003-04-23  David Carlton  <carlton@bactrian.org>
9700
9701         * cp-support.c (cp_find_first_component): Accept 'operator' in
9702         more locations.
9703
9704 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9705
9706         * infcall.c (call_function_by_hand): Eliminate redundant
9707         indentation.  Move "saved_async" and "old_cleanups" to where they
9708         are needed.
9709
9710 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9711
9712         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9713         and "buffer".  Move the "name" code to where it is needed.
9714
9715 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9716
9717         * infcall.c (call_function_by_hand): Move variables "start_sp",
9718         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9719         code to ON_STACK switch branch.
9720
9721 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9722
9723         * infcall.c (call_function_by_hand): Make declaration of "i",
9724         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
9725         lint.
9726
9727 2003-04-23  Andrew Cagney  <cagney@redhat.com>
9728
9729         * infcall.c (call_function_by_hand): Delete variable
9730         "n_method_args".  Localize "param_type"'s declaration to the loop
9731         that it is used.  Reinstate code assigning to said variable -
9732         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
9733         Rationalize code using "param_type".
9734
9735 2003-04-22  Andrew Cagney  <cagney@redhat.com>
9736
9737         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9738         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
9739         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
9740         to DEPRECATED_PUSH_RETURN_ADDRESS.
9741
9742 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
9743
9744         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9745         on the DWARF2 register number prior to fetching a register.
9746
9747 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9748
9749         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9750         Update all the tests using SOFT_FLOAT considering the fact that
9751         this macro was always set to 0.
9752         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9753         considering the fact that this macro was always set to 0.
9754         * hppa-tdep.h (hppa_store_return_value): Likewise.
9755         (hppa_extract_return_value): Likewise.
9756
9757 2003-04-22  J. Brobecker  <brobecker@gnat.com>
9758
9759         * config/pa/tm-hppa.h: Remove obsolete code, was used by
9760         the hppa-pro target only.
9761
9762 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9763
9764         Ongoing multi-arch conversion effort for HP/UX:
9765         * config/pa/tm-hppa.h: Move all macro that are no longer
9766         defined now that GDB_MULTI_ARCH is now set to 1 from here...
9767         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9768
9769 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9770
9771         * config/pa/tm-hppa.h: Obsolete a section that was only used
9772         for hppa-pro.
9773
9774 2003-04-21  J. Brobecker  <brobecker@gnat.com>
9775
9776         Ongoing multi-arch conversion for HP/UX.
9777         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9778         if already defined (allows hppa64 to stay non-multiarched for now).
9779         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9780
9781 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9782
9783         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9784
9785 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9786
9787         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9788         "i386_num_mmx_regs".
9789
9790 2003-04-21  Andrew Cagney  <cagney@redhat.com>
9791
9792         * infcall.c: New file.
9793         * infcall.h: New file.
9794         * valarith.c: Include "infcall.h".
9795         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9796         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9797         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9798         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9799         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9800         (SFILES): Add "infcall.c"
9801         (COMMON_OBS): Add "infcall.o".
9802         (infcall.o): Specify dependencies.
9803         * value.h (call_function_by_hand): Delete declaration.
9804         * inferior.h (run_stack_dummy): Delete declaration.
9805         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9806         (run_stack_dummy): Move to "infcall.c", merged into
9807         call_function_by_hand.
9808         * valops.c (call_function_by_hand): Moved to "infcall.c".
9809         (find_function_addr, value_arg_coerce): Ditto.
9810         (unwindonsignal_p, coerce_float_to_double): Ditto.
9811         (_initialize_valops): Move "set/show coerce-float-to-double", and
9812         "set/show unwindonsignal" commands to "infcall.c".
9813         * v850-tdep.c, target.h: Update comments.
9814         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9815         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9816         (sh64_init_extra_frame_info): Update comments.
9817         * mn10300-tdep.c: Update comments.
9818         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9819         * config/sparc/tm-sparc.h: Update comments.
9820         * breakpoint.h: Update comments.
9821         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9822         * arm-tdep.c: Update comment.
9823
9824 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9825
9826         * i386-tdep.c (i386_num_register_names): New variable.
9827         (i386_num_mmx_regs): Renamed from mmx_num_regs.
9828         (MM0_REGNUM): Remove redundant parentheses in define.
9829         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9830         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9831         i386_mxcsr_regnum_p): Remove redundant parentheses.
9832         (i386_register_name): Use i386_num_register_names.
9833
9834         * i386-tdep.c (i386_extract_return_value,
9835         i386_store_return_value): Correct check for availability of
9836         floating-point registers.
9837
9838         * i386-tdep.c (i386_frame_num_args): Remove function.
9839         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9840
9841         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9842         mmx_regnum_to_fp_regnum.  Adjust all callers.
9843
9844         * i386-tdep.c (i386_get_longjmp_target): Use
9845         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9846         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
9847         extract_address.
9848
9849 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
9850
9851         * core-regset.c: Update comments to reflect reality.  Re-order
9852         includes.
9853         (fetch_core_registers): Use switch instead of if.  Remove
9854         redundant prototype.
9855
9856 2003-04-18  Jim Blandy  <jimb@redhat.com>
9857
9858         * s390-tdep.c (s390_frame_align): New function.
9859         (s390_gdbarch_init): Register it with the gdbarch object.
9860
9861 2003-04-17  Richard Henderson  <rth@redhat.com>
9862
9863         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9864
9865 2003-04-17  Michael Snyder  <msnyder@redhat.com>
9866             Karen Bennet  <bennet@redhat.com>
9867
9868         Committed by Elena Zannoni  <ezannoni@redhat.com>
9869         * gdb_gcore.sh: New script to create a core dump of a process.
9870
9871 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
9872
9873         * values.c (value_being_returned): Don't fetch the return
9874         value if the return type is void.
9875
9876 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9877
9878         * thread-db.c: Reindented.
9879
9880 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
9881
9882         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9883         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
9884         as types.
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
9911
9912         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9913         the size of ``long double'' to 16, instead of 8.
9914
9915 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
9916
9917         * i386-linux-nat.c: Add some whitespace to make things more
9918         readable.
9919         (fetch_register, store_register, fetch_inferior_registers,
9920         store_inferior_registers): Get rid of assignment in if-statement.
9921         (store_register): Fix typo in error message.
9922
9923 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9924
9925         * utils.c (xmmalloc): Always allocate something, matches
9926         libiberty/xmalloc's semantics.
9927         (xmrealloc, xmcalloc): Ditto.
9928
9929 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9930
9931         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9932         update comments.
9933         (get_frame_type): Initialize unwind and type when needed.
9934         (get_frame_id, frame_register_unwind): Ditto.
9935
9936 2003-04-16  Andrew Cagney  <cagney@redhat.com>
9937
9938         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9939         obsolete.
9940         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9941         * sparcl-stub.c: Obsolete file.
9942         * config/sparc/tm-sparclet.h: Obsolete file.
9943         * sparclet-stub.c: Obsolete file.
9944         * sparclet-rom.c: Obsolete file.
9945         * sparcl-tdep.c: Obsolete file.
9946         * config/sparc/tm-sparclite.h: Obsolete file.
9947         * config/sparc/sparclite.mt: Obsolete file.
9948         * config/sparc/sparclet.mt: Obsolete file.
9949         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
9950         sparc86x-*-* obsolete.
9951
9952 2003-04-15  David Carlton  <carlton@math.stanford.edu>
9953
9954         * Makefile.in (SFILES): Add cp-namespace.c.
9955         (COMMON_OBS): Add cp-namespace.o.
9956         (block.o): Depend on gdb_obstack_h and cp_support_h.
9957         (buildsym.o): Depend on cp_support_h.
9958         (cp-namespace.o): New.
9959         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
9960         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
9961         (dwarf2read.o): Depend on cp_support_h.
9962         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
9963         * dwarf2read.c (process_die): Set processing_has_namespace_info,
9964         processing_current_namespace.
9965         (read_namespace): Update processing_current_namespace; check for
9966         anonymous namespaces.
9967         (dwarf2_name): New function.
9968         (dwarf2_extension): Ditto.
9969         * cp-support.h: Update copyright, contributors.
9970         Add inclusion guards.
9971         Add opaque declaration for structs obstack, block, symbol.
9972         (struct using_direct): New struct.
9973         Add declarations for cp_find_first_component,
9974         cp_entire_prefix_len, processing_has_namespace_info,
9975         processing_current_namespace, cp_is_anonymous,
9976         cp_add_using_directive, cp_initialize_namespace,
9977         cp_finalize_namespace, cp_set_block_scope,
9978         cp_scan_for_anonymous_namespaces.
9979         * cp-namespace.c: New file.
9980         * cp-support.c: Update copyright.
9981         Include ctype.h, gdb_assert.h, gdbcmd.h.
9982         New variable maint_cplus_cmd_list.
9983         (cp_find_first_component): New function.
9984         (cp_entire_prefix_len, maint_cplus_command)
9985         (first_component_command, _initialize_cp_support): Ditto.
9986         * buildsym.c: Include cp-support.h.
9987         New variable using_list.
9988         (add_symbol_to_list): Check for anonymous namespaces.
9989         (finish_block): Set block's scope.
9990         (start_symtab): Initialize C++ namespace support.
9991         (end_symtab): Finalize C++ namespace support.
9992         * block.h: Add opaque declarations for structs
9993         block_namespace_info, using_direct, and obstack.
9994         Add declarations for block_set_scope and block_set_using.
9995         (struct block): Add 'language_specific' member.
9996         (BLOCK_NAMESPACE): New macro.
9997         * block.c: Include gdb_obstack.h and cp-support.h.
9998         (struct block_namespace_info): New struct.
9999         (block_set_scope): New function.
10000         (block_set_using, block_initialize_namespace): Ditto.
10001
10002 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
10003
10004         * solib-svr4.c (svr4_have_link_map_offsets): New function.
10005         (locate_base): Return early if there aren't any link map offsets.
10006         (svr4_solib_create_inferior_hook): Warn if shared library support
10007         is unavailable.
10008
10009 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10010
10011         * symtab.c (symbol_set_names): Add prefix when storing Java names
10012         in hash table.  Fix for PR java/1039.
10013
10014 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10015
10016         * symtab.c (symbol_set_names): Rename 'name' arg to
10017         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10018         * symtab.h: Change 'name' argument in declaration of
10019         symbol_set_names to 'linkage_name'.
10020         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10021
10022 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10023
10024         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10025         return the fully sign-extended register value.
10026         (get_frame_pointer): Ditto.
10027         (mips_pop_frame): Initialize "proc_desc" after checking for a
10028         dummy frame.
10029
10030 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10031
10032         * mips-tdep.c (mips_push_dummy_frame): Delete function.
10033         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10034         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10035         (mips_push_register): Delete function.
10036         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10037         PUSH_FP_REGNUM.
10038
10039 2003-04-14  Jim Blandy  <jimb@redhat.com>
10040
10041         * symmisc.c: #include "gdb_regex.h".
10042         (maintenance_list_symtabs, maintenance_list_psymtabs): New
10043         functions.
10044         * maint.c (maintenance_list_command): New function.
10045         (_initialize_maint_cmds): Register the above as commands.
10046         * symtab.h (maintenance_list_symtabs,
10047         maintenance_list_psymtabs): New declarations.
10048         * cli/cli-cmds.c (maintenancelistlist): New variable.
10049         (init_cmd_lists): Initialize it.
10050         * cli/cli-cmds.h (maintenancelistlist): New declaration.
10051         * gdbcmd.h (maintenancelistlist): New declaration.
10052         * Makefile.in (symmisc.o): Update dependencies.
10053
10054 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
10055
10056         * s390-nat.c: Include asm/types.h for addr_t.
10057
10058 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
10059
10060         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10061         actually incoming type.
10062
10063 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10064
10065         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10066         get_next_frame and get_frame_saved_regs.
10067
10068 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10069
10070         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10071         of gdbarch_num_regs.
10072
10073 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10074
10075         * frame.h: Mention what replaced what in "struct frame_info".
10076         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10077         deprecated_update_frame_base_hack and
10078         deprecated_update_frame_pc_hack.
10079         * hppa-tdep.c: Ditto.
10080
10081 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10082
10083         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10084         to read_reg and update its comment.  Remove regnum member.
10085         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10086         Don't call read_reg when setting in_reg.  Call read_reg to get
10087         the frame base if it's in a register.  Return the register number
10088         on the stack instead of in the context.  Remove extra arguments
10089         to read_reg.
10090         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10091         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10092         the register number on the expression stack.
10093         (needs_frame_read_reg): Remove extra arguments.
10094
10095 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10096
10097         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10098         made non-static.
10099         (execute_stack_op): All callers updated.
10100         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10101         * dwarf2loc.c (find_location_expression): New function.
10102         (dwarf_expr_frame_base): Call it.
10103         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10104         (dwarf2_tracepoint_var_ref): New function, broken out from
10105         locexpr_tracepoint_var_ref.
10106         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10107         Make static.
10108         (loclist_read_variable, loclist_read_needs_frame): New functions.
10109         (loclist_describe_location, loclist_tracepoint_var_ref): New
10110         functions.
10111         (dwarf2_loclist_funcs): New struct location_funcs.
10112         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10113         (struct dwarf2_locexpr_baton): Add comments.
10114         (dwarf2_loclist_funcs): New extern.
10115         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10116         base_address and base_known.
10117         (dwarf_loc_buffer): New variable.
10118         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10119         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10120         (dwarf2_has_info): Initialize dwarf_loc_offset.
10121         (dwarf2_build_psymtabs): Read in .debug_loc.
10122         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10123         DWARF_LOC_SIZE.
10124         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10125         here, from...
10126         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10127         cu_header.
10128         (dwarf2_symbol_mark_computed): Handle location lists.
10129
10130 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10131
10132         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10133         if the linkage name demangled successfully.
10134
10135 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10136
10137         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10138         disassmbly_flavour): Removed.
10139
10140         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10141
10142 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10143
10144         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10145
10146 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10147
10148         * frame.h (struct frame_info): Move definition from here ...
10149         * frame.c (struct frame_info): ... to here.
10150
10151 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10152
10153         * gdbthread.h (save_infrun_state): Delete parameter
10154         "prev_func_start".
10155         (struct thread_info): Delete field "prev_func_start".
10156         (load_infrun_state): Ditto.
10157         * thread.c (load_infrun_state, save_infrun_state): Update.
10158         * infrun.c (prev_func_start): Delete variable.
10159         (context_switch, init_wait_for_inferior): Update.
10160         (stop_stepping, keep_going): Update.
10161
10162 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10163
10164         * gdbarch.sh: Add missing opaque declarations.
10165         * gdbarch.h: Regnerate.
10166         * symtab.h: Add missing opaque declarations.
10167         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10168         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10169         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10170         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10171         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10172         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10173         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10174         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10175         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10176         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10177         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10178         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10179         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10180
10181 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10182
10183         * frame.c (get_frame_id): Return this frame's "id".
10184         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10185         function start.
10186         (legacy_saved_regs_this_id): Replace function body with
10187         internal-error.
10188         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10189         FRAME_OBSTACK_ZALLOC.
10190         (create_new_frame): Mark the frame ID as valid.
10191
10192 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
10193
10194         * Makefile.in (libbfd_h): Added missing setting.
10195         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10196         according to the selected ABI.
10197
10198 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
10199
10200         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10201
10202 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10203
10204         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10205         SAVED_PC_AFTER_CALL.
10206         * gdbarch.h, gdbarch.c: Regenerate.
10207         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10208         * x86-64-tdep.c (x86_64_init_abi): Update.
10209         * vax-tdep.c (vax_gdbarch_init): Update.
10210         * v850-tdep.c (v850_gdbarch_init): Update.
10211         * sparc-tdep.c (sparc_gdbarch_init): Update.
10212         * sh-tdep.c (sh_gdbarch_init): Update.
10213         * s390-tdep.c (s390_gdbarch_init): Update.
10214         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10215         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10216         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10217         * mips-tdep.c (mips_gdbarch_init): Update.
10218         * mcore-tdep.c (mcore_gdbarch_init): Update.
10219         * m68k-tdep.c (m68k_gdbarch_init): Update.
10220         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10221         * ia64-tdep.c (ia64_gdbarch_init): Update.
10222         (ia64_saved_pc_after_call): Update declaration.
10223         * i386ly-tdep.c (i386lynx_init_abi): Update.
10224         * i386-tdep.c (i386_gdbarch_init): Update.
10225         * hppa-tdep.c (hppa_gdbarch_init): Update.
10226         * h8300-tdep.c (h8300_gdbarch_init): Update.
10227         * frv-tdep.c (frv_gdbarch_init): Update.
10228         * cris-tdep.c (cris_gdbarch_init): Update.
10229         * avr-tdep.c (avr_gdbarch_init): Update.
10230         * arm-tdep.c (arm_gdbarch_init): Update.
10231         * alpha-tdep.c (alpha_gdbarch_init): Update.
10232         * ns32knbsd-nat.c (frame_num_args): Update.
10233         * ns32k-tdep.c (umax_frame_num_args): Update.
10234         * mips-tdep.c (mips_init_frame_pc_first): Update.
10235         * infrun.c (step_over_function): Update.
10236         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10237         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10238         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10239         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10240         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10241         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10242         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10243         * arch-utils.c (init_frame_pc_default): Update.
10244         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10245         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10246         declaration.
10247
10248 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10249
10250         * i387-tdep.c: Update copyright.
10251         (i387_to_double): Delete function.
10252         (double_to_i387): Delete function.
10253
10254 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10255
10256         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10257         frame's function's address.  Simplify.
10258         (d10v_frame_unwind_cache): Check that the frame's function is
10259         non-zero.
10260
10261 2003-04-10  Jim Blandy  <jimb@redhat.com>
10262
10263         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10264         call to set_gdbarch_deprecated_push_arguments.
10265
10266 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10267
10268         * frame.c (fprint_frame_id): New function.
10269         (fprint_frame_type, fprint_frame): New function.
10270         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10271         (create_sentinel_frame, get_frame_id): Ditto.
10272         (frame_id_p, frame_id_eq): Ditto.
10273         (frame_id_inner, create_new_frame): Ditto.
10274         (legacy_get_prev_frame, get_prev_frame): Ditto.
10275         (deprecated_update_frame_pc_hack): Ditto.
10276         (frame_register_unwind): Ditto.
10277         (deprecated_update_frame_base_hack): Ditto.
10278
10279 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10280
10281         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10282         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10283         frame_chain function.
10284         * Makefile.in: Add dependencies due to above change.
10285
10286 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10287
10288         * blockframe.c (legacy_frame_chain_valid): Move call to
10289         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10290         inside_entry_file.
10291
10292 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10293
10294         * frame.h (struct frame_id): Replace "pc" and "base" with
10295         "stack_addr" and "code_addr".  Update comments.
10296         (frame_id_build): Update parameter names and comment.
10297         (struct frame_info): Replace "id_p" and "id" with "this_id".
10298         * dummy-frame.c (dummy_frame_this_id): Update.
10299         * breakpoint.c (print_one_breakpoint): Update.
10300         * frame.c (get_frame_id): Update.
10301         (get_frame_base, frame_id_build): Update.
10302         (create_sentinel_frame, legacy_get_prev_frame): Update.
10303         (deprecated_update_frame_base_hack): Update.
10304         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10305         (frame_id_inner): Ditto.
10306
10307 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10308
10309         * defs.h (gdb_print_host_address): Make "addr" parameter a
10310         pointer constant.
10311         * utils.c (gdb_print_host_address): Update.
10312
10313 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10314
10315         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10316         register number for R0 is 0.
10317
10318 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10319
10320         * frame.h (struct gdbarch): Add opaque structure definition
10321         to avoid a compilation warning on LynxOS 4.0.
10322
10323 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10324
10325         * frame.h (struct frame_info): Delete field "pc".  Replace
10326         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10327         structure.
10328         * frame.c (frame_pc_unwind): Update.
10329         (create_sentinel_frame): Do not set "pc".
10330         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10331         (get_frame_pc): Call frame_pc_unwind.
10332         (deprecated_update_frame_pc_hack): Update.
10333         (create_new_frame): Use "pc" not "->pc".
10334
10335 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10336
10337         * frame.c (get_frame_id): Eliminate code updating "frame".
10338         (legacy_get_prev_frame): Ditto.
10339         (get_frame_base): Return id.base directly.
10340         (deprecated_update_frame_base_hack): Update "id.base".
10341         * frame.h (struct frame_info): Delete field "frame".
10342
10343 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10344
10345         * NEWS: Mention that the "Sequent family" is obsolete.
10346         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10347         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10348         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10349         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10350         * config/i386/tm-ptx4.h: Obsolete file.
10351         * config/i386/tm-ptx.h: Obsolete file.
10352         * symm-tdep.c: Obsolete file.
10353         * config/i386/symmetry.mt: Obsolete file.
10354         * config/i386/tm-symmetry.h: Obsolete file.
10355         * symm-nat.c: Obsolete file.
10356         * config/i386/nm-symmetry.h: Obsolete file.
10357         * config/i386/xm-symmetry.h: Obsolete file.
10358         * config/i386/symmetry.mh: Obsolete file.
10359         * config/i386/nm-ptx4.h: Obsolete file.
10360         * config/i386/ptx4.mh: Obsolete file.
10361         * config/i386/ptx.mt: Obsolete file.
10362         * config/i386/ptx.mh: Obsolete file.
10363         * config/i386/xm-ptx4.h: Obsolete file.
10364         * config/i386/xm-ptx.h: Obsolete file.
10365
10366 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10367
10368         Obsolete mips*-*-mach3*.
10369         * NEWS: Mention that mips*-*-mach3* is obsolete.
10370         * m3-nat.c: Obsolete file.
10371         * config/nm-m3.h: Obsolete file.
10372         * config/mips/tm-mipsm3.h: Obsolete file.
10373         * config/mips/mipsm3.mt: Obsolete file.
10374         * config/mips/mipsm3.mh: Obsolete file.
10375         * config/mips/xm-mipsm3.h: Obsolete file.
10376         * mipsm3-nat.c: Obsolete file.
10377         * configure.host: Obsolete mips-dec-mach3*.
10378         * configure.tgt: Obsolete mips*-*-mach3*.
10379
10380 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10381
10382         * doublest.h: Update copyright.
10383         (deprecated_store_floating, deprecated_extract_floating): Rename
10384         store_floating and extract_floating.  Update comments.
10385         * doublest.c: Update copyright.
10386         (extract_floating_by_length): Replace extract_floating.
10387         (store_floating_by_length): Replace store_floating.
10388         (deprecated_extract_floating): New function.
10389         (deprecated_store_floating): New function.
10390         (extract_typed_floating): Call extract_floating_by_length.
10391         (store_typed_floating): Call store_floating_by_length.
10392         * x86-64-tdep.c (x86_64_store_return_value): Update.
10393         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10394         (sh64_extract_return_value): Update.
10395         (sh_sh4_register_convert_to_virtual): Update.
10396         (sh_sh64_register_convert_to_virtual): Update.
10397         (sh_sh4_register_convert_to_raw): Update.
10398         (sh_sh64_register_convert_to_raw): Update.
10399         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10400         (rs6000_register_convert_to_raw): Update.
10401         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10402         (ia64_register_convert_to_raw): Update.
10403         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10404         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10405         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10406         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10407         (alpha_register_convert_to_raw): Update.
10408
10409 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10410
10411         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10412         * gdbarch.h, gdbarch.c: Re-generate.
10413         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10414         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10415         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10416         conditionally, use frame_pc_unwind as an alternative.  Add
10417         comments.
10418         * arch-utils.c (init_frame_pc_default): Only call
10419         SAVED_PC_AFTER_CALL when available.
10420
10421 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10422
10423         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10424         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10425         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10426         (start_remote): Ditto.
10427         (handle_inferior_event): Ditto.
10428         (save_inferior_status): Ditto.
10429         (restore_inferior_status): Ditto.
10430         * infcmd.c (attach_command): Ditto.
10431         * fork-child.c (startup_inferior): Ditto.
10432         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10433         * alpha-tdep.c (heuristic_proc_start): Ditto.
10434         * mips-tdep.c (heuristic_proc_start): Ditto.
10435         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10436         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10437         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10438         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10439         * remote-vx.c (vx_create_inferior): Ditto.
10440
10441 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10442
10443         * infrun.c (stop_soon_quietly): Make it an enum, to better
10444         override the default behavior of handle_inferior_event.
10445         (clear_proceed_status): Update uses of stop_soon_quietly to
10446         reflect that it is now an enum.
10447         (start_remote): Ditto.
10448         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10449         is set to handle the new GNU/Linux kernel behavior for
10450         attach/sigstop.  Update uses of stop_soon_quietly.
10451         * inferior.h (enum stop_kind): New enum.
10452         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10453         Reset normal handle_inferior_event behavior, afterwards.
10454         * fork-child.c (startup_inferior): Update.
10455         * alpha-tdep.c (heuristic_proc_start): Update.
10456         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10457         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10458         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10459         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10460         * remote-vx.c (vx_create_inferior): Update.
10461         * mips-tdep.c (heuristic_proc_start): Update.
10462
10463 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10464
10465         * disasm.c (dump_insns):  Move variables inside loop, or they will
10466         be freed more than once, causing wild memory corruptions.
10467         (gdb_disassembly): Look for the substring "-thread",
10468         instead of "-threads" in the target name, to make sure to find
10469         the 'multi-thread' target.  Also, make sure we do the right thing
10470         with the "core" target.
10471
10472 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10473
10474         * mips-tdep.c (mips_print_fp_register): New function, created from
10475         do_fp_register_row().  Registers are now (also) printed as hex.
10476         Only one register is printed per row.
10477         (mips_print_register, do_fp_register_row): Print floating point
10478         registers with mips_print_fp_register().
10479
10480 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10481
10482         * valprint.h (inspect_it): Add extern declaration.
10483         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10484         (selectors_info, classes_info): Ditto.
10485         (find_objc_msgcall): Fix indentation.
10486         (objc_printstr): Delete extern declarations.
10487
10488         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10489
10490 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10491
10492         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10493         Update comment.
10494         * frame.c (legacy_saved_regs_this_id): Update.
10495         (legacy_get_prev_frame): Update.
10496         * xstormy16-tdep.c: Update comment.
10497         * sparc-tdep.c (sparc_frame_chain): Update comment.
10498         * blockframe.c (legacy_frame_chain_valid): Update.
10499
10500 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10501
10502         * valprint.c (val_print_type_code_int): Delete #ifdef
10503         PRINT_TYPELESS_INTEGER code.
10504
10505         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10506         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10507         multi-arch definition.
10508         * gdbarch.h: Re-generate.
10509
10510 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10511
10512         Eliminate FRAME_FIND_SAVED_REGS.
10513         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10514         Change FSR parameter to a pointer.
10515         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10516         Assume FSR parameter is a pointer.
10517         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10518         Make fsr a pointer.
10519         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10520         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10521         saved_regs a pointer.
10522         (hppa_frame_saved_pc): Ditto.
10523         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10524         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10525         pointer.
10526         (restore_pc_queue): Make fsr a pointer.
10527         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10528         (hppa_frame_chain): Make saved_regs a pointer, call
10529         hppa_frame_init_saved_regs.
10530         * sparc-tdep.c: Include "gdb_assert.h".
10531         (sparc_frame_find_saved_regs): Replace internal_error with
10532         gdb_assert.
10533         * remote-vxsparc.c (vx_read_register): Delete reference to
10534         FRAME_FIND_SAVED_REGS.
10535         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10536         * gdbarch.h: Regenerate.
10537         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10538         (deprecated_get_frame_saved_regs): Delete declaration.
10539         (struct frame_saved_regs): Delete definition.
10540         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10541         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10542         (hppa_frame_find_saved_regs): Delete declaration.
10543         (FRAME_FIND_SAVED_REGS): Delete macro.
10544         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10545         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10546         FRAME_FIND_SAVED_REGS in comment.
10547
10548 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10549
10550         * frame.c (frame_func_unwind, get_frame_func): New functions.
10551         * frame.h (get_frame_func, frame_func_unwind): Declare.
10552         (struct frame_info): Add field "prev_func" for caching the
10553         previous frame's function address.
10554         * arm-tdep.c (arm_frameless_function_invocation): Combine
10555         get_pc_function_start and get_frame_pc into get_frame_func.
10556         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10557         (sh64_nofp_frame_init_saved_regs): Ditto.
10558         * s390-tdep.c (s390_function_start): Ditto.
10559         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10560         (rs6000_frameless_function_invocation): Ditto.
10561         (rs6000_frame_saved_pc): Ditto.
10562         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10563         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10564         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10565         (i386_frame_init_saved_regs): Ditto.
10566         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10567         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10568         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10569         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10570         * blockframe.c (frameless_look_for_prologue): Ditto.
10571
10572 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10573
10574         * frame.c (legacy_get_prev_frame): Link prev to next at the
10575         function start.  Update comments.
10576
10577 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10578
10579         * frame.c (get_frame_id): Update comment.
10580         (legacy_get_prev_frame): Update comment.
10581         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10582         * gdbarch.h: Regenerate.
10583         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10584         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10585
10586 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10587
10588         * stack.c (print_frame_info): Use get_frame_pc.
10589
10590 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10591
10592         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10593         the frame's type from the unwinder.
10594         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10595         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10596         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10597         (get_frame_base_address): Use get_frame_type.
10598         (get_frame_locals_address, get_frame_args_address): Ditto.
10599         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10600         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10601         (struct frame_info): Add comment explaining why the frame contains
10602         a "type" field.
10603         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10604         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10605         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10606         NORMAL_FRAME.
10607         * frame-unwind.h: Include "frame.h".
10608         (struct frame_unwind): Add "type" field.
10609         * Makefile.in (frame_unwind_h): Add $(frame_h).
10610
10611 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10612
10613         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10614         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10615         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10616         get_frame_base.
10617         (d10v_unwind_dummy_id): Use frame_id_build.
10618         * frame.c (find_frame_sal): Use get_frame_pc.
10619         (create_new_frame): Use deprecated_update_frame_pc_hack and
10620         deprecated_update_frame_base_hack.
10621         (create_sentinel_frame): Add comment about ->pc going away.
10622         (get_prev_frame): Add comment about ->pc going away.
10623         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10624         frame_id_build, deprecated_update_frame_pc_hack and
10625         deprecated_update_frame_base_hack.
10626         (select_frame): Use get_frame_pc.
10627         (legacy_saved_regs_this_id): Use frame_id_build.
10628
10629 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10630
10631         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10632         signed integer case.
10633         (classify_argument): Handle enumerations and references.
10634
10635 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10636
10637         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10638         ID to NULL.
10639
10640 2003-04-01  Adam Fedor  <fedor@gnu.org>
10641
10642         * gdb/objc-lang.c (selectors_info): Replace calls to
10643         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10644         SYMBOL_NATURAL_NAME.
10645         (classes_info, find_methods): Likewise.
10646
10647 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10648
10649         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10650         ``mach'' to the value determined by bfd_default_set_arch_mach().
10651
10652 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10653
10654         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10655         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10656         (mi-cmd-file.o): Update dependencies.
10657
10658 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10659
10660         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10661         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10662
10663 2003-04-01  Adam Fedor  <fedor@gnu.org>
10664
10665         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10666         * language.h (struct language_defn): Add la_demangle.
10667         (language_demangle): Declare.
10668         * language.c (language_demangle): New function.
10669         (unk_lang_demangle): Likewise.
10670         (unknown_language_defn, auto_language_defn, local_language_defn):
10671         Add ukn_lang_demangle.
10672         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10673         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
10674         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10675         (cplus_language_defn): Add cplus_demangle for la_demangle element.
10676         * jv-lang.c (java_demangle): New function
10677         (java_language_defn): Use it for la_demangle element.
10678         * objc-lang.c (objc_demangle): Add options argument
10679         (objc_language_defn): Use objc_demangle for la_demangle element.
10680         * maint.c (maintenance_demangle): Replace switch with
10681         call to language_demangle.
10682         * utils.c (fprintf_symbol_filtered): Likewise.
10683
10684 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10685
10686         * printcmd.c (print_frame_nameless_args): Delete #ifdef
10687         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10688         PRINT_TYPELESS_INTEGER.
10689         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10690         PUSH_RETURN_ADDRESS.
10691
10692 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10693
10694         * Makefile.in (d10v-tdep.o): Update dependencies.
10695         * d10v-tdep.c: Include "frame-base.h".
10696         (d10v_frame_unwind): Make constant.
10697         (d10v_frame_base_address): New function.
10698         (d10v_frame_base): New variable.
10699         (d10v_gdbarch_init): Set frame_base default.
10700         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
10701         comment for base.
10702         (d10v_frame_unwind_cache): Set and use "prev_sp".
10703         (d10v_frame_this_id): Use the previous frame's inner most stack
10704         address and this frame's func address for the frame ID.  Use
10705         frame_id_build.  Don't analyze beyond the current instruction.
10706
10707 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10708
10709         * frame.h (get_frame_locals_address, get_frame_args_address):
10710         Refer to the base address, instead of the address of the first
10711         local or parameter.
10712
10713 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10714
10715         Add frame debug info addresses:
10716         * frame-base.c: New file.
10717         * frame-base.h: New file.
10718         * frame.h (struct frame_base): Add opaque declaration.
10719         (get_frame_base): Update comment.
10720         (get_frame_base_address): Declare.
10721         (get_frame_locals_address): Declare.
10722         (get_frame_args_address): Declare.
10723         (struct frame_info): Add "base" and "base_cache".  Update
10724         comments on the unwinder.
10725         * frame.c: Include "frame-base.h".
10726         (get_frame_locals_address): New function.
10727         (get_frame_base_address): New function.
10728         (get_frame_args_address): New function.
10729         * findvar.c (read_var_value): Use get_frame_locals_address and
10730         get_frame_args_address.
10731         * stack.c (frame_info): Use get_frame_locals_address and
10732         get_frame_args_address.
10733         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10734         moved to "frame-base.c".
10735         * printcmd.c (print_frame_nameless_args): Ditto.
10736         * symtab.h (address_class): Update comments.
10737         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10738         get_frame_base_address.
10739         * dwarf2expr.c (execute_stack_op): Ditto.
10740         * Makefile.in (frame_base_h): Define.
10741         (frame.o): Update dependencies.
10742         (frame-base.o): Add dependencies.
10743         (SFILES): Add frame-base.c.
10744         (COMMON_OBS): Add frame-base.o.
10745
10746 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10747
10748         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10749         CALL_DUMMY_LENGTH): Ditto.
10750         * gdbarch.c: Re-generate.
10751         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10752         (CALL_DUMMY_LENGTH): Delete macro.
10753         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10754         * arm-tdep.c (arm_gdbarch_init): Ditto.
10755         * avr-tdep.c (avr_gdbarch_init): Ditto.
10756         * cris-tdep.c (cris_gdbarch_init): Ditto.
10757         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10758         * frv-tdep.c (frv_gdbarch_init): Ditto.
10759         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10760         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10761         * i386-tdep.c (i386_gdbarch_init): Ditto.
10762         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10763         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10764         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10765         * mips-tdep.c (mips_gdbarch_init): Ditto.
10766         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10767         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10768         * s390-tdep.c (s390_gdbarch_init): Ditto.
10769         * sh-tdep.c (sh_gdbarch_init): Ditto.
10770         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10771         * v850-tdep.c (v850_gdbarch_init): Ditto.
10772         * vax-tdep.c (vax_gdbarch_init): Ditto.
10773         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10774
10775 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
10776
10777         * frame.c (get_prev_frame): Disable call to inside_entry_file().
10778
10779 2003-04-01  Andrew Cagney  <cagney@redhat.com>
10780
10781         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10782         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10783         * gdbarch.h, gdbarch.c: Re-generate.
10784         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10785         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10786         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10787         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10788         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10789         * infcmd.c (run_stack_dummy): Simplify assuming
10790         CALL_DUMMY_BREAKPOINT_OFFSET_P.
10791         * infrun.c (handle_inferior_event): Ditto.
10792         * alpha-tdep.c (alpha_gdbarch_init): Do not set
10793         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10794         * arm-tdep.c (arm_gdbarch_init): Ditto.
10795         * avr-tdep.c (avr_gdbarch_init): Ditto.
10796         * cris-tdep.c (cris_gdbarch_init): Ditto.
10797         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10798         * frv-tdep.c (frv_gdbarch_init): Ditto.
10799         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10800         * i386-tdep.c (i386_gdbarch_init): Ditto.
10801         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10802         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10803         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10804         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10805         * mips-tdep.c (mips_gdbarch_init): Ditto.
10806         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10807         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10808         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10809         * s390-tdep.c (s390_gdbarch_init): Ditto.
10810         * sh-tdep.c (sh_gdbarch_init): Ditto.
10811         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10812         * v850-tdep.c (v850_gdbarch_init): Ditto.
10813         * vax-tdep.c (vax_gdbarch_init): Ditto.
10814         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10815
10816 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
10817
10818         * symfile.c (symfile_relocate_debug_section): Update call to
10819         bfd_simple_get_relocated_section_contents.
10820
10821 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10822
10823         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10824         * gdbarch.h, gdbarch.c: Regenerate.
10825         * inferior.h (FIX_CALL_DUMMY): Delete macro.
10826         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10827         available.
10828         * frame.h (generic_fix_call_dummy): Delete declaration.
10829         * dummy-frame.h: Update comment.
10830         * dummy-frame.c (generic_fix_call_dummy): Delete function.
10831         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10832         fix_call_dummy.
10833         * sh-tdep.c (sh_gdbarch_init): Ditto.
10834         * s390-tdep.c (s390_gdbarch_init): Ditto.
10835         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10836         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10837         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10838         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10839         * i386-tdep.c (i386_gdbarch_init): Ditto.
10840         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10841         * frv-tdep.c (frv_gdbarch_init): Ditto.
10842         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10843         * cris-tdep.c (cris_gdbarch_init): Ditto.
10844         * avr-tdep.c (avr_gdbarch_init): Ditto.
10845         * arm-tdep.c (arm_gdbarch_init): Ditto.
10846
10847 2003-03-31  J. Brobecker  <brobecker@gnat.com>
10848
10849         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10850         (INIT_FRAME_AP): Likewise.
10851         (EXTRA_FRAME_INFO): Likewise.
10852
10853 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10854
10855         * gdbarch.sh: Include "symfile.h".
10856         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10857         * gdbarch.h, gdbarch.c: Re-generate.
10858         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10859         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10860         call_dummy_address, the default is at entry_point_address.
10861         * v850-tdep.c (v850_gdbarch_init): Ditto.
10862         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10863         * sh-tdep.c (sh_gdbarch_init): Ditto.
10864         * s390-tdep.c (s390_gdbarch_init): Ditto.
10865         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10866         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10867         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10868         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10869         * i386-tdep.c (i386_gdbarch_init): Ditto.
10870         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10871         * frv-tdep.c (frv_gdbarch_init): Ditto.
10872         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10873         * cris-tdep.c (cris_gdbarch_init): Ditto.
10874         * arm-tdep.c (arm_gdbarch_init): Ditto.
10875
10876 2003-03-31  Andrew Cagney  <cagney@redhat.com>
10877
10878         * gdbarch.sh (CALL_DUMMY_P): Delete.
10879         * gdbarch.h, gdbarch.c: Re-generate.
10880         * inferior.h (CALL_DUMMY_P): Delete macro.
10881         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10882         * vax-tdep.c (vax_gdbarch_init): Update.
10883         * v850-tdep.c (v850_gdbarch_init): Update.
10884         * sparc-tdep.c (sparc_gdbarch_init): Update.
10885         * sh-tdep.c (sh_gdbarch_init): Update.
10886         * s390-tdep.c (s390_gdbarch_init): Update.
10887         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10888         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10889         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10890         * mips-tdep.c (mips_gdbarch_init): Update.
10891         * mcore-tdep.c (mcore_gdbarch_init): Update.
10892         * m68k-tdep.c (m68k_gdbarch_init): Update.
10893         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10894         * ia64-tdep.c (ia64_gdbarch_init): Update.
10895         * i386-tdep.c (i386_gdbarch_init): Update.
10896         * h8300-tdep.c (h8300_gdbarch_init): Update.
10897         * frv-tdep.c (frv_gdbarch_init): Update.
10898         * d10v-tdep.c (d10v_gdbarch_init): Update.
10899         * cris-tdep.c (cris_gdbarch_init): Update.
10900         * breakpoint.c (deprecated_frame_in_dummy): Update.
10901         * avr-tdep.c (avr_gdbarch_init): Update.
10902         * alpha-tdep.c (alpha_gdbarch_init): Update.
10903         * arm-tdep.c (arm_gdbarch_init): Update.
10904         * dummy-frame.c (dummy_frame_this_id): Update comments.
10905         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10906         * frame.c (legacy_get_prev_frame): Ditto.
10907         * valops.c (call_function_by_hand): Delete function.
10908         (hand_function_call): Rename to call_function_by_hand
10909
10910 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10911
10912         2002-11-10 Klee Dienes <kdienes@apple.com>
10913         * value.h (struct value): Update comment.
10914
10915 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10916
10917         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10918         D10V_FP_REGNUM.
10919         (d10v_gdbarch_init): Do not set fp_regnum.
10920
10921         * frame.c (get_frame_base): Force ID initialization.
10922         (get_prev_frame): Move computation of the frame ID from here ...
10923         (get_frame_id): ... to here.
10924         (legacy_get_prev_frame): Mark the frame ID as valid.
10925         * frame.h (struct frame_info): Add field "id_p".
10926
10927 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
10928
10929         * i386-tdep.c (i386_store_struct_return): Removed.
10930         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10931
10932 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10933
10934         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10935         * gdbarch.h, gdbarch.c: Regenerate.
10936         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10937         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10938         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10939         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10940         * i386-tdep.c (i386_gdbarch_init): Ditto.
10941         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10942         * cris-tdep.c (cris_gdbarch_init): Ditto.
10943         * vax-tdep.c (vax_gdbarch_init): Ditto.
10944         * s390-tdep.c (s390_gdbarch_init): Ditto.
10945         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10946         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10947         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10948         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
10949         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
10950         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
10951         * sparc-tdep.c (sparc_gdbarch_init): Update.
10952         * sh-tdep.c (sh_gdbarch_init): Update.
10953         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10954         * mips-tdep.c (mips_gdbarch_init): Update.
10955         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10956         * ia64-tdep.c (ia64_gdbarch_init): Update.
10957         * frv-tdep.c (frv_gdbarch_init): Update.
10958         * avr-tdep.c (avr_gdbarch_init): Update.
10959         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
10960         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
10961         instead of when push_dummy_call is not available.
10962
10963 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10964
10965         * infttrace.c: Include "gdbthread.h".
10966         (parent_attach_all): Fix function signature.
10967         (call_ptrace): Update call.
10968         * Makefile.in (infttrace.o): Update dependencies.
10969
10970 2003-03-30  Andrew Cagney  <cagney@redhat.com>
10971
10972         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
10973         PUSH_RETURN_ADDRESS.
10974         * gdbarch.h, gdbarch.c: Regenerate.
10975         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10976         * x86-64-tdep.c (x86_64_init_abi): Update.
10977         * v850-tdep.c (v850_gdbarch_init): Update.
10978         * sparc-tdep.c (sparc_gdbarch_init): Update.
10979         * sh-tdep.c (sh_gdbarch_init): Update.
10980         * s390-tdep.c (s390_gdbarch_init): Update.
10981         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10982         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10983         * mips-tdep.c (mips_gdbarch_init): Update.
10984         * mcore-tdep.c (mcore_gdbarch_init): Update.
10985         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10986         * ia64-tdep.c (ia64_gdbarch_init): Update.
10987         * i386-tdep.c (i386_gdbarch_init): Update.
10988         * h8300-tdep.c (h8300_gdbarch_init): Update.
10989         * frv-tdep.c (frv_gdbarch_init): Update.
10990         * cris-tdep.c (cris_gdbarch_init): Update.
10991         * avr-tdep.c (avr_gdbarch_init): Update.
10992         * arm-tdep.c (arm_gdbarch_init): Update.
10993         * valops.c (hand_function_call): Update.
10994
10995 2003-03-29  Andrew Cagney  <cagney@redhat.com>
10996
10997         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
10998         sizeof_call_dummy_words.
10999         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11000         define.
11001         * gdbarch.h: Regenerate.
11002
11003 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11004
11005         * infttrace.h: New file.
11006         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11007         (hpread_get_textlow): Detect an uninitialized dn_bufp.
11008         (hpread_read_doc_function_type): Detect an initialized type1.
11009         (hpread_quick_traverse): Initialize mod_name_string.
11010         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11011         (som_solib_get_solib_by_pc): Declare.
11012         (so_lib_thread_start_addr): Declare.
11013         (no_shared_libraries): Declare.
11014         * somread.c (init_import_symbols): Make static.  Add forward
11015         declaration.
11016         * config/pa/nm-hppah.h: Include "infttrace.h" for
11017         parent_attach_all.
11018         (hppa_insert_hw_watchpoint): Declare.
11019         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11020         * hppah-nat.c: Include "gdb_string.h".
11021         (parent_attach_all): Delete extern declaration, moved to
11022         "infttrace.h".
11023         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11024         int.
11025         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11026         * Makefile.in (infttrace_h): Define.
11027         (hpread.o): Update dependencies.
11028         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11029         * hppa-hpux-tdep.c: Include "gdb_string.h".
11030         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11031         * infrun.c (handle_inferior_event): Always initialize
11032         stepped_after_stopped_by_watchpoint.  Add default and remove
11033         fallthrough in switch statement.
11034         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11035         parameter to int.
11036         (hppa_remove_hw_watchpoint): Ditto.
11037
11038 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11039
11040         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11041         offset.
11042
11043 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
11044
11045         * arm-tdep.c (arm_push_arguments): Delete.
11046         (struct stack_item): New type.
11047         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11048         (arm_store_struct_return): Delte.
11049         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
11050         arm_push_arguments or arm_store_struct_return.
11051
11052 2003-03-28  Andrew Cagney  <cagney@redhat.com>
11053
11054         * Makefile.in (d10v-tdep.o): Update dependencies.
11055         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11056         * d10v-tdep.c: Include "remote.h".
11057         (target_resume_hook): Delete extern declaration.
11058         (target_wait_loop_hook): Ditto.
11059         (tdisassemble_command): Eliminate assignment in "if" conditional.
11060         (d10v_ts2_register_sim_regno): Eliminate call to
11061         legacy_register_sim_regno.
11062         (d10v_ts3_register_sim_regno): Ditto.
11063
11064 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
11065
11066         * thread.c: Reindented.
11067         * lin-lwp.c: Ditto.
11068         * linux-proc.c: Ditto.
11069
11070 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
11071
11072         * MAINTAINERS (write after approval): Add myself.
11073
11074 2003-03-27  Theodore A. Roth  <troth@openavr.org>
11075
11076         * objc-exp.y: Add missing semi-colons.
11077
11078 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11079
11080         * regcache.c (write_sp): Delete function and references.
11081         * inferior.h (write_sp): Delete declaration.
11082         * valops.c (hand_function_call): Replace write_sp with
11083         TARGET_WRITE_SP.
11084         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11085         (sparc_pop_frame): Ditto.
11086
11087 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11088
11089         * NEWS: Mention removal of support for hppa*-*-bsd* and
11090         hppa*-*-osf* natives, and hppa*-*-pro* target.
11091         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11092         * config/pa/xm-pa.h: Obsolete file.
11093         * config/pa/xm-hppab.h: Obsolete file.
11094         * config/pa/nm-hppab.h: Obsolete file.
11095         * config/pa/tm-hppab.h: Obsolete file.
11096         * config/pa/tm-hppao.h: Obsolete file.
11097         * config/pa/nm-hppao.h: Obsolete file.
11098         * config/pa/tm-pro.h: Obsolete file.
11099         * config/pa/hppaosf.mt: Obsolete file.
11100         * config/pa/hppaosf.mh: Obsolete file.
11101         * config/pa/hppapro.mt: Obsolete file.
11102         * config/pa/hppabsd.mt: Obsolete file.
11103         * config/pa/hppabsd.mh: Obsolete file.
11104         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11105         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11106         hppa*-*-osf*.
11107
11108 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11109
11110         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11111         push_arguments.  Don't set push_return_address or write_sp.
11112         (d10v_push_dummy_call): Replace d10v_push_arguments.
11113         (d10v_push_return_address, d10v_write_sp): Delete function,
11114         handled by push_dummy_call.
11115
11116 2003-03-26  Andrew Cagney  <cagney@redhat.com>
11117
11118         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11119         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11120         regcache and dummy_addr parameters.
11121         * gdbarch.h, gdbarch.c: Re-generate.
11122         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11123         available; assume it will handle stack alignment and return
11124         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11125         legacy_push_arguments.
11126         (legacy_push_arguments): Rename default_push_arguments.
11127         * value.h (legacy_push_arguments): Rename default_push_arguments.
11128         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11129         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11130         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11131         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11132         * config/i386/tm-symmetry.h: Update.
11133         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11134         * x86-64-tdep.c (x86_64_init_abi): Update.
11135         * v850-tdep.c (v850_gdbarch_init): Update.
11136         * sparc-tdep.c (sparc_gdbarch_init): Update.
11137         * sh-tdep.c (sh_gdbarch_init): Update.
11138         * s390-tdep.c (s390_gdbarch_init): Update.
11139         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11140         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11141         * mips-tdep.c (mips_gdbarch_init): Update.
11142         * mcore-tdep.c (mcore_gdbarch_init): Update.
11143         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11144         * ia64-tdep.c (ia64_gdbarch_init): Update.
11145         * i386-tdep.c (i386_gdbarch_init): Update.
11146         * hppa-tdep.c (hppa_gdbarch_init): Update.
11147         * h8300-tdep.c (h8300_gdbarch_init): Update.
11148         * frv-tdep.c (frv_gdbarch_init): Update.
11149         * d10v-tdep.c (d10v_gdbarch_init): Update.
11150         * cris-tdep.c (cris_gdbarch_init): Update.
11151         * avr-tdep.c (avr_gdbarch_init): Update.
11152         * arm-tdep.c (arm_gdbarch_init): Update.
11153         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11154         * alpha-tdep.c (alpha_gdbarch_init): Update.
11155
11156 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11157
11158         * signals/signals.c (do_target_signal_to_host): Correct realtime
11159         signal range test.
11160
11161 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11162
11163         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11164         (struct sal_chain, map_catch_names): Remove.
11165         (catch_exception_command_1): Don't call
11166         handle_gnu_4_16_catch_command.
11167
11168 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11169
11170         From Mark Dettinger <dettinge@de.ibm.com>:
11171         * dwarf2cfi.c (read_2u): Increment pointer by two.
11172
11173 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11174
11175         * signals/signals.c: Fix typos in last change.
11176
11177 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11178
11179         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11180         not already defined.  Use __SIGRTMIN if available.
11181         (target_signal_from_host): Remove SIGRTMIN block.
11182         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11183         the signal is within the realtime range.
11184
11185 2003-03-25  Adam Fedor  <fedor@gnu.org>
11186
11187         * Makefile.in (infrun.o): Add $(language_h)
11188         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11189         for language specific trampolines.
11190         * language.h (struct language_defn): Add skip_trampoline.
11191         (skip_language_trampoline): Declare.
11192         * language.c (unk_lang_trampoline, skip_language_trampoline):
11193         New functions.
11194         (unknown_language_defn, auto_language_defn, local_language_defn):
11195         Add ukn_lang_trampoline.
11196         * ada-lang.c (ada_language_defn): Add NULL for language
11197         specific skip_trampoline.
11198         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11199         scm-lang.c: Likewise.
11200         * objc-lang.c (objc_skip_trampoline): New function.
11201         (objc_language_defn): Add objc_skip_trampoline.
11202
11203 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11204
11205         * frame.c (get_prev_frame): Delay validating a frame's ID -
11206         non-NULL, didn't go backwards - until an attempt to unwind it to
11207         the previous frame.
11208
11209 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11210
11211         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11212         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11213         * gdbarch.h, gdbarch.c: Re-generate.
11214         * config/sparc/tm-sparc.h
11215         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11216         * sparc-tdep.c (sparc_gdbarch_init): Set
11217         deprecated_extra_stack_alignment_needed.
11218         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11219         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11220         extra_stack_alignment_needed.
11221         * v850-tdep.c (v850_gdbarch_init): Ditto.
11222         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11223         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11224         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11225         * cris-tdep.c (cris_gdbarch_init): Ditto.
11226         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11227         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11228
11229 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11230
11231         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11232         STORE_STRUCT_RETURN.
11233         * gdbarch.h, gdbarch.c: Regenerate.
11234         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11235         (d10v_push_arguments): Set the struct return register.
11236         (d10v_gdbarch_init): Update.
11237         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11238         * x86-64-tdep.c (x86_64_init_abi): Update.
11239         * vax-tdep.c (vax_gdbarch_init): Update.
11240         * v850-tdep.c (v850_gdbarch_init): Update.
11241         * sparc-tdep.c (sparc_gdbarch_init): Update.
11242         * sh-tdep.c (sh_gdbarch_init): Update.
11243         * s390-tdep.c (s390_gdbarch_init): Update.
11244         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11245         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11246         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11247         * mips-tdep.c (mips_gdbarch_init): Update.
11248         * mcore-tdep.c (mcore_gdbarch_init): Update.
11249         * m68k-tdep.c (m68k_gdbarch_init): Update.
11250         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11251         * ia64-tdep.c (ia64_gdbarch_init): Update.
11252         * i386-tdep.c (i386_gdbarch_init): Update.
11253         * hppa-tdep.c (hppa_gdbarch_init): Update.
11254         * h8300-tdep.c (h8300_gdbarch_init): Update.
11255         * frv-tdep.c (frv_gdbarch_init): Update.
11256         * cris-tdep.c (cris_gdbarch_init): Update.
11257         * avr-tdep.c (avr_gdbarch_init): Update.
11258         * arm-tdep.c (arm_gdbarch_init): Update.
11259         * alpha-tdep.c (alpha_gdbarch_init): Update.
11260
11261 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11262
11263         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11264         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11265         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11266         * gdbarch.h, gdbarch.c: Regenerate.
11267         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11268         call_dummy_stack_adjust_p.
11269         * vax-tdep.c (vax_gdbarch_init): Ditto.
11270         * v850-tdep.c (v850_gdbarch_init): Ditto.
11271         * sh-tdep.c (sh_gdbarch_init): Ditto.
11272         * s390-tdep.c (s390_gdbarch_init): Ditto.
11273         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11274         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11275         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11276         * mips-tdep.c (mips_gdbarch_init): Ditto.
11277         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11278         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11279         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11280         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11281         * i386-tdep.c (i386_gdbarch_init): Ditto.
11282         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11283         * frv-tdep.c (frv_gdbarch_init): Ditto.
11284         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11285         * cris-tdep.c (cris_gdbarch_init): Ditto.
11286         * avr-tdep.c (avr_gdbarch_init): Ditto.
11287         * arm-tdep.c (arm_gdbarch_init): Ditto.
11288         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11289         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11290         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11291         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11292         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11293         call_dummy_stack_adjust_p.
11294         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11295         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11296         * sparc-tdep.c (sparc32_push_arguments): Update.
11297         * valops.c (hand_function_call): Update.
11298
11299 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11300
11301         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11302         set_gdbarch_char_signed.
11303
11304 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11305
11306         PR cli/548
11307         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11308
11309 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11310
11311         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11312         (_initialize_arm_tdep): Don't set tm_print_insn.
11313
11314 2003-03-24  Adam Fedor  <fedor@gnu.org>
11315
11316         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11317         * objc-lang.h: Add multiple inclusion protection.
11318         (start_msglist, add_msglist, end_msglist): Additional declarations.
11319
11320 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11321
11322         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11323         value was renamed to ARM_FLOAT_SOFT_FPA.
11324
11325 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11326
11327         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11328         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11329         * gdbarch.h, gdbarch.c: Regenerate.
11330         * valops.c (hand_function_call): Update.
11331         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11332         * frame.c (legacy_saved_regs_this_id): Update.
11333         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11334         * dummy-frame.h: Update.
11335         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11336         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11337         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11338         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11339         * config/m68k/tm-sun3.h: Update.
11340         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11341         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11342         * x86-64-tdep.c (x86_64_init_abi): Update.
11343         * vax-tdep.c (vax_gdbarch_init): Update.
11344         * v850-tdep.c (v850_gdbarch_init): Update.
11345         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11346         * sh-tdep.c (sh_gdbarch_init): Update.
11347         * s390-tdep.c (s390_gdbarch_init): Update.
11348         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11349         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11350         (frame_get_saved_regs): Update.
11351         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11352         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11353         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11354         * mips-tdep.c (mips_gdbarch_init): Update.
11355         * mcore-tdep.c (mcore_gdbarch_init): Update.
11356         * m68k-tdep.c (m68k_gdbarch_init): Update.
11357         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11358         * ia64-tdep.c (ia64_gdbarch_init): Update.
11359         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11360         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11361         (i386_interix_back_one_frame): Update.
11362         * hppa-tdep.c (hppa_gdbarch_init): Update.
11363         (hppa_init_extra_frame_info): Update.
11364         * h8300-tdep.c (h8300_gdbarch_init): Update.
11365         * frv-tdep.c (frv_gdbarch_init): Update.
11366         * cris-tdep.c (cris_gdbarch_init): Update.
11367         * avr-tdep.c (avr_gdbarch_init): Update.
11368         * arm-tdep.c (arm_gdbarch_init): Update.
11369         * alpha-tdep.c (alpha_gdbarch_init): Update.
11370
11371 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11372
11373         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11374         (arm_get_fp_model): Declare.
11375         * arm-tdep.c (fp_model_strings): New string array.
11376         (arm_fp_model, current_fp_model): New variables.
11377         (arm_get_fp_model): New function.
11378         (arm_set_fp): New function.
11379         (set_fp_model_sfunc): New function.
11380         (show_fp_model): New function.
11381         (_initialize_arm_tdep): Add new command to set/show the FPU.
11382         (arm_extract_return_value): Use arm_get_fp_model.
11383         (arm_store_return_value): Likewise.
11384         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11385         to initialize the floating-point data types.
11386         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11387         model is FPA.
11388
11389 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11390
11391         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11392         the current setting of each value.
11393         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11394         new_set and new_show.  Use add_setshow_cmd_full and
11395         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11396         commands and add new version as subcommands of "set/show arm".
11397
11398 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11399
11400         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11401         (set_arm_command, show_arm_command): New functions.
11402         (_initialize_arm_tdep): Add them.
11403         (num_disassembly_options): Renamed from num_flavor_options.
11404         (valid_disassembly_styles): Renamed from valid_flavors.
11405         (disassembly_style): Renamed from disassembly_flavor.
11406         (set_disassembly_style_sfunc): Renamed from
11407         set_disassembly_flavor_sfunc.
11408         (set_disassembly_style): Renamed from set_disassembly_flavor.
11409         (arm_othernames): Updated.
11410         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11411         command.  Add "set/show arm disassembly" commands.  Deprecate
11412         "othernames" command.
11413
11414 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11415
11416         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11417         (arm-tdep.o): Depend on elf_arm_h.
11418
11419 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11420
11421         * Makefile.in (coff_internal_h): Define.
11422         (arm-tdep.o): Update dependencies.
11423
11424 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11425
11426         * arm-tdep.c (prologue_cache): Delete.
11427         (check_prologue_cache, save_prologue_cache): Delete.
11428         (arm_scan_prologue): Don't check or update the prologue_cache.
11429         (arm_gdb_arch_init): Don't initialize it.
11430         (_initialize_arm_tdep): Likewise.
11431
11432 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11433
11434         * MAINTAINERS (tui): Maintainer of tui code.
11435
11436 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11437
11438         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11439         (i386-cygwin-tdep.o): Add dependencies.
11440         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11441         * i386-cygwin-tdep.c: New file.
11442         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11443         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11444
11445 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11446
11447         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11448         (handle_inferior_event): Remove code calling
11449         DYNAMIC_TRAMPOLINE_NEXTPC.
11450
11451         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11452         already has a full path.
11453
11454         * main.c (gdb_main): Return 1.
11455         (captured_main): Call error to report an invalid interpreter.
11456
11457         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11458         * alpha-osf1-tdep.c: Include "gdb_string.h".
11459
11460 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11461
11462         Continuing work to convert the hppa targets to multiarch partial.
11463
11464         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11465         method, now that hppa_push_dummy_frame has a conformant prototype.
11466         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11467         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11468         for the switch to multiarch partial.
11469
11470 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11471
11472         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11473         when iss is issNull.
11474
11475 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11476
11477         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11478         NUM_REGS bounds check.
11479
11480 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11481
11482         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11483         * mips-tdep.c (gdb_assert.h): Include.
11484         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11485         (mips_register_name): Handle integer registers explicitly.  Add
11486         bounds checking.
11487         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11488         (mips_lsi33k_reg_names): Don't list integer registers; they're
11489         handled by mips_register_name() now.
11490         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11491         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11492         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11493         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11494         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11495
11496 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11497
11498         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11499         a void pointer.
11500         * gdbtypes.h (print_scalar_formatted): Update declaration.
11501         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11502
11503 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11504
11505         * infrun.c (observer.h): Add #include.
11506         (normal_stop): Add call to observer_notify_normal_stop.
11507         * Makefile.in (infrun.o): Add dependency on observer.h.
11508
11509 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11510
11511         Continuing work to convert the hppa targets to multiarch partial.
11512         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11513         parameter. Reformat comment.
11514         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11515         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11516         to match new profile.
11517
11518 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11519
11520         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11521         appear to be working in any case.
11522
11523 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11524
11525         * observer.c (observer_test_first_observer): New static variable.
11526         (observer_test_second_observer): Likewise.
11527         (observer_test_third_observer): Likewise.
11528         (observer_test_first_notification_function): New static function.
11529         (observer_test_second_notification_function): Likewise.
11530         (observer_test_third_notification_function): Likewise.
11531
11532 2003-03-17  J. Brobecker  <brobecker@gnat.com>
11533
11534         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11535         * somsolib.c (gdb_assert.h): Likewise.
11536         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11537         (somsolib.o): Likewise.
11538
11539 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11540
11541         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11542         BFD.  Simplify setting of di.endian.
11543
11544 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11545
11546         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11547         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11548
11549         From Elena Zannoni  <ezannoni@redhat.com>
11550         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11551         vector and floating-point parameters.
11552         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11553         convention.
11554         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11555
11556 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
11557
11558         * MAINTAINERS: Remove my name from several maintainership roles.
11559
11560 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11561
11562         Fix frame off-by-one bug.
11563         * frame-unwind.h (frame_this_id_ftype): Replace
11564         frame_unwind_id_ftype.
11565         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11566         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11567         with "prev_register".
11568         * frame-unwind.c (frame_unwind_find_by_pc): Return
11569         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11570         comment.
11571         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11572         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11573         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11574         (dummy_frame_unwind): Update.
11575         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11576         sentinel_frame_register_unwind.
11577         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11578         (sentinel_frame_unwinder): Update.
11579         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11580         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11581         * frame.c (create_sentinel_frame): Update. Initialize
11582         "prologue_cache" instead of "unwind_cache".
11583         (frame_register_unwind): Call this frame's prev_register with the
11584         next frame and this frame's prologue cache.
11585         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11586         this frame and prev frame's prologue cache.  Document that this
11587         call is shifted one to the left when compared to the
11588         frame_register_unwind call.
11589         (legacy_saved_regs_prev_register): Replace
11590         frame_saved_regs_register_unwind.
11591         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11592         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11593         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11594         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11595         (d10v_frame_unwind): Update.
11596         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11597         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11598         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11599         "saved_regs" with "this_saved_regs".
11600
11601 2003-03-16  Andrew Cagney  <cagney@redhat.com>
11602
11603         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11604         problem reported by Mark Kettenis.
11605
11606 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
11607
11608         * i386-tdep.c (i386_register_type): Renamed from
11609         i386_register_virtual_type.  Adjust function signature.
11610         (i386_gdbarch_init): Set register_type instead of
11611         deprecated_max_register_raw_size,
11612         deprecated_max_register_virtual_size and register_virtual_type.
11613
11614 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11615
11616         * frame.c (get_prev_frame): When a legacy frame, always call
11617         legacy_get_prev_frame.  Simplify unwind code using assumption that
11618         the unwinder is new.
11619         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11620         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11621         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11622
11623 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11624
11625         * frame.c (get_saved_register): Delete function.
11626         * frame.h (get_saved_register): Delete declaration.
11627         * xstormy16-tdep.c: Update comment.
11628         * regcache.h: Update comments.
11629         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11630         get_saved_register and extract_address, use
11631         frame_read_unsigned_register.
11632         (sparc_frame_saved_pc): Ditto.
11633         (sparc_get_saved_register): Instead of get_saved_register, use
11634         frame_register.
11635         (sparc_pop_frame): Ditto.
11636         * findvar.c: Update comments.
11637         (value_of_register): Call frame_register instead of
11638         get_saved_register.
11639         (value_from_register): Ditto.
11640         * config/sparc/tm-sparc.h: Update comment.
11641         * breakpoint.c: Update comment.
11642
11643 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11644
11645         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11646         GET_SAVED_REGISTER.
11647         * gdbarch.h, gdbarch.c: Re-generate.
11648         * frame.h: Update comments.
11649         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11650         * x86-64-tdep.c (x86_64_init_abi): Update.
11651         * sparc-tdep.c (sparc_gdbarch_init): Update.
11652         * sh-tdep.c (sh_gdbarch_init): Update.
11653         * mips-tdep.c (mips_gdbarch_init): Update.
11654         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11655         * cris-tdep.c (cris_gdbarch_init): Update.
11656         * ia64-tdep.c (ia64_gdbarch_init): Update.
11657         * frame.c (frame_register): Update.
11658         (get_saved_register): Update.
11659         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11660
11661 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11662
11663         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11664         * gdbarch.h, gdbarch.c: Regenerate.
11665         * valops.c (hand_function_call): Update comment.
11666         * stack.c (return_command): Update comment.
11667         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11668         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11669         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11670         * x86-64-tdep.c (x86_64_init_abi): Update.
11671         * vax-tdep.c (vax_gdbarch_init): Update.
11672         * v850-tdep.c (v850_gdbarch_init): Update.
11673         * sparc-tdep.c (sparc_gdbarch_init): Update.
11674         * sh-tdep.c (sh_gdbarch_init): Update.
11675         * s390-tdep.c (s390_gdbarch_init): Update.
11676         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11677         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11678         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11679         * mips-tdep.c (mips_gdbarch_init): Update.
11680         * mcore-tdep.c (mcore_gdbarch_init): Update.
11681         * m68k-tdep.c (m68k_gdbarch_init): Update.
11682         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11683         * ia64-tdep.c (ia64_gdbarch_init): Update.
11684         * i386-tdep.c (i386_gdbarch_init): Update.
11685         * hppa-tdep.c (hppa_gdbarch_init): Update.
11686         * h8300-tdep.c (h8300_gdbarch_init): Update.
11687         * frv-tdep.c (frv_gdbarch_init): Update.
11688         * cris-tdep.c (cris_gdbarch_init): Update.
11689         * avr-tdep.c (avr_gdbarch_init): Update.
11690         * arm-tdep.c (arm_gdbarch_init): Update.
11691         * alpha-tdep.c (alpha_gdbarch_init): Update.
11692
11693 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11694
11695         * frame.c (legacy_frame_p): New function.
11696         (get_prev_frame): Use legacy_frame_p.
11697         * frame.h (legacy_frame_p): Declare.
11698
11699 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11700
11701         * MAINTAINERS (write after approval): Alphabetically
11702         listing corrected.
11703
11704 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11705
11706         * MAINTAINERS (write after approval): Add myself.
11707
11708 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11709
11710         * frame.c (get_prev_frame): Rename the frame parameter to
11711         "this_frame".
11712         (get_next_frame, legacy_get_prev_frame): Ditto.
11713
11714 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11715
11716         * frame.c (get_current_frame): Check target_has_registers before
11717         checking target_has_stack.
11718         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11719         instead of deprecated_selected_frame.
11720         * findvar.c (value_of_register): Pass "frame", not
11721         deprecated_selected_frame, to value_of_builtin_reg.
11722
11723 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11724
11725         * regcache.c (regcache_cooked_write_signed): New function.
11726         (regcache_cooked_write_unsigned): New function.
11727         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11728         (regcache_cooked_read_signed): Fix regnum in range assertion.
11729         * regcache.h (regcache_cooked_write_signed): Declare.
11730         (regcache_cooked_write_unsigned): Declare.
11731
11732 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11733
11734         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11735         * gdbarch.h, gdbarch.c: Re-generate.
11736         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11737         * x86-64-tdep.h: Update.
11738         * x86-64-tdep.c (x86_64_init_abi): Update.
11739         * v850-tdep.c (v850_gdbarch_init): Update.
11740         * sparc-tdep.c (sparc_gdbarch_init): Update.
11741         * sh-tdep.c (sh_gdbarch_init): Update.
11742         * s390-tdep.c (s390_gdbarch_init): Update.
11743         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11744         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11745         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11746         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11747         * mips-tdep.c (mips_gdbarch_init): Update.
11748         * mcore-tdep.c (mcore_gdbarch_init): Update.
11749         * m68k-tdep.c (m68k_gdbarch_init): Update.
11750         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11751         * ia64-tdep.c (ia64_gdbarch_init): Update.
11752         * i386-tdep.c (i386_gdbarch_init): Update.
11753         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11754         * hppa-tdep.c (hppa_gdbarch_init): Update.
11755         * h8300-tdep.c (h8300_gdbarch_init): Update.
11756         * frv-tdep.c (frv_gdbarch_init): Update.
11757         * cris-tdep.c (cris_gdbarch_init): Update.
11758         * avr-tdep.c (avr_gdbarch_init): Update.
11759         * arm-tdep.c (arm_gdbarch_init): Update.
11760         * alpha-tdep.c (alpha_gdbarch_init): Update.
11761         * sh-tdep.c (sh_init_extra_frame_info): Update.
11762         (sh64_init_extra_frame_info): Update.
11763         * ns32knbsd-nat.c (frame_num_args): Update.
11764         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11765         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11766         (xstormy16_frame_chain_valid): Update.
11767         * vax-tdep.c (vax_saved_pc_after_call): Update.
11768         * v850-tdep.c (v850_frame_chain): Update.
11769         (v850_pop_frame): Update.
11770         (v850_init_extra_frame_info): Update.
11771         * sparc-tdep.c (setup_arbitrary_frame): Update.
11772         * ns32k-tdep.c (umax_frame_num_args): Update.
11773         * s390-tdep.c (s390_pop_frame_regular): Update.
11774         * mn10300-tdep.c (mn10300_frame_chain): Update.
11775         (mn10300_pop_frame_regular): Update.
11776         (mn10300_init_extra_frame_info): Update.
11777         * mips-tdep.c (mips_init_frame_pc_first): Update.
11778         (mips_frame_chain): Update.
11779         (mips_pop_frame): Update.
11780         * mcore-tdep.c (mcore_frame_chain): Update.
11781         (mcore_pop_frame): Update.
11782         (mcore_init_extra_frame_info): Update.
11783         * arch-utils.c (init_frame_pc_default): Update.
11784         * m68k-tdep.c (isi_frame_num_args): Update.
11785         (delta68_frame_num_args): Update.
11786         (news_frame_num_args): Update.
11787         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11788         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11789         (alpha_frame_chain): Update.
11790         (alpha_pop_frame): Update.
11791         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11792         (hppa_init_extra_frame_info): Update.
11793         (hppa_frame_chain): Update.
11794         (hppa_frame_chain_valid): Update.
11795         * cris-tdep.c (cris_init_extra_frame_info): Update.
11796         * avr-tdep.c (avr_init_extra_frame_info): Update.
11797         * arm-tdep.c (arm_frame_chain_valid): Update.
11798         (arm_init_extra_frame_info): Update.
11799         (arm_pop_frame): Update.
11800         * frame.c (frame_pc_unwind): Update.
11801         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11802         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11803         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11804         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11805         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11806         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11807
11808 2003-03-12  Andrew Cagney  <cagney@redhat.com>
11809
11810         Eliminate the need for POP_FRAME.
11811         * frame.c (do_frame_unwind_register): New function.
11812         (frame_pop): When no POP_FRAME, pop the frame using register
11813         unwind and a scratch regcache.
11814         (frame_saved_regs_pop): Delete function.
11815         (trad_frame_unwinder): Update.
11816         * d10v-tdep.c (d10v_frame_pop): Delete function.
11817         (d10v_frame_unwind): Update.
11818         * sentinel-frame.c (sentinel_frame_pop): Delete function.
11819         (sentinel_frame_unwinder): Update.
11820         * dummy-frame.c (dummy_frame_pop): Delete function.
11821         (dummy_frame_unwind): Update.
11822         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11823         (struct frame_unwind): Update.
11824
11825 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
11826
11827         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11828         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11829         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11830         Do range checks on register number obtained from debugging info.
11831         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11832         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
11833         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11834         mapping function.
11835         (do_fp_register_row): Fix typo which caused double type to be
11836         used when attempting to unpack a float.
11837
11838 2003-03-11  J. Brobecker  <brobecker@gnat.com>
11839
11840         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11841
11842 2003-03-11  Andrew Cagney  <cagney@redhat.com>
11843
11844         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11845         frame.  Problem found by Corinna Vinschen.
11846
11847 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
11848
11849         * doublest.c (floatformat_from_length): Accept also
11850         the real size of 'long double' type.
11851
11852 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
11853
11854         From Klee Dienes <kdienes@apple.com>:
11855         * breakpoint.c (bpstat_copy): Copy the command lines as well
11856         as the old value, to match what is freed in bpstat_clear.
11857
11858 2003-03-10  David Carlton  <carlton@math.stanford.edu>
11859
11860         * minsyms.c (add_minsym_to_hash_table): Replace
11861         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11862         (compare_minimal_symbols, compact_minimal_symbols)
11863         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11864         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11865         of DEPRECATED_SYMBOL_MATCHES_NAME.
11866         (lookup_minimal_symbol_solib_trampoline): Ditto.
11867
11868 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11869
11870         * regcache.h (regcache_cooked_read_ftype): Define.
11871         (regcache_save, regcache_restore): Add a cooked_read parameter.
11872         * regcache.c (regcache_save, regcache_restore): Update.
11873         (do_cooked_read): New function.
11874         (regcache_cpy): Pass do_cooked_read to regcache_save and
11875         regcache_restore.
11876
11877 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11878
11879         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11880         * gdbarch.h, gdbarch.c: Re-generate.
11881         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11882         * x86-64-tdep.h: Update.
11883         * x86-64-tdep.c (x86_64_init_abi): Update.
11884         * v850-tdep.c (v850_gdbarch_init): Update.
11885         * sparc-tdep.c (sparc_gdbarch_init): Update.
11886         * sh-tdep.c (sh_gdbarch_init): Update.
11887         * s390-tdep.c (s390_gdbarch_init): Update.
11888         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11889         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11890         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11891         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11892         * mips-tdep.c (mips_gdbarch_init): Update.
11893         * mcore-tdep.c (mcore_gdbarch_init): Update.
11894         * m68k-tdep.c (m68k_gdbarch_init): Update.
11895         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11896         * ia64-tdep.c (ia64_gdbarch_init): Update.
11897         * i386-tdep.c (i386_gdbarch_init): Update.
11898         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11899         * hppa-tdep.c (hppa_gdbarch_init): Update.
11900         * h8300-tdep.c (h8300_gdbarch_init): Update.
11901         * frv-tdep.c (frv_gdbarch_init): Update.
11902         * cris-tdep.c (cris_gdbarch_init): Update.
11903         * avr-tdep.c (avr_gdbarch_init): Update.
11904         * arm-tdep.c (arm_gdbarch_init): Update.
11905         * alpha-tdep.c (alpha_gdbarch_init): Update.
11906         * sh-tdep.c (sh_init_extra_frame_info): Update.
11907         (sh64_init_extra_frame_info): Update.
11908         * ns32knbsd-nat.c (frame_num_args): Update.
11909         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11910         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11911         (xstormy16_frame_chain_valid): Update.
11912         * vax-tdep.c (vax_saved_pc_after_call): Update.
11913         * v850-tdep.c (v850_frame_chain): Update.
11914         (v850_pop_frame): Update.
11915         (v850_init_extra_frame_info): Update.
11916         * sparc-tdep.c (setup_arbitrary_frame): Update.
11917         * ns32k-tdep.c (umax_frame_num_args): Update.
11918         * s390-tdep.c (s390_pop_frame_regular): Update.
11919         * mn10300-tdep.c (mn10300_frame_chain): Update.
11920         (mn10300_pop_frame_regular): Update.
11921         (mn10300_init_extra_frame_info): Update.
11922         * mips-tdep.c (mips_init_frame_pc_first): Update.
11923         (mips_frame_chain): Update.
11924         (mips_pop_frame): Update.
11925         * mcore-tdep.c (mcore_frame_chain): Update.
11926         (mcore_pop_frame): Update.
11927         (mcore_init_extra_frame_info): Update.
11928         * arch-utils.c (init_frame_pc_default): Update.
11929         * m68k-tdep.c (isi_frame_num_args): Update.
11930         (delta68_frame_num_args): Update.
11931         (news_frame_num_args): Update.
11932         * ia64-tdep.c (ia64_pop_frame_regular): Update.
11933         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11934         (alpha_frame_chain): Update.
11935         (alpha_pop_frame): Update.
11936         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11937         (hppa_init_extra_frame_info): Update.
11938         (hppa_frame_chain): Update.
11939         (hppa_frame_chain_valid): Update.
11940         * cris-tdep.c (cris_init_extra_frame_info): Update.
11941         * avr-tdep.c (avr_init_extra_frame_info): Update.
11942         * arm-tdep.c (arm_frame_chain_valid): Update.
11943         (arm_init_extra_frame_info): Update.
11944         (arm_pop_frame): Update.
11945         * frame.c (frame_pc_unwind): Update.
11946         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11947         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11948         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11949         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11950         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11951         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
11952
11953 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11954
11955         * gdbarch.sh (gdbarch_unwind_pc): New method.
11956         * gdbarch.h, gdbarch.c: Regenerate.
11957         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
11958         but use read_pc and FRAME_SAVED_PC as fall backs.
11959         (frame_saved_regs_pc_unwind): Delete function.
11960         (trad_frame_unwinder): Update.
11961         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
11962         (struct frame_unwind): Update.
11963         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
11964         (dummy_frame_unwind): Update.
11965         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
11966         (sentinel_frame_unwinder): Update.
11967         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
11968         (d10v_frame_unwind): Update.
11969         (d10v_unwind_pc): New function.
11970         (d10v_gdbarch_init): Set unwind_pc.
11971
11972 2003-03-10  Andrew Cagney  <cagney@redhat.com>
11973
11974         * gdbarch.h: Re-generate.
11975
11976         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
11977         PC.
11978         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
11979         the PC register.
11980
11981 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
11982
11983         * gdbarch.sh (save_dummy_frame_tos): Add comment.
11984
11985 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11986
11987         * cli-out.c: Update copyright.
11988         (cli_out_data): Define typedef.  Use instead of ui_out_data.
11989
11990 2003-03-08  Andrew Cagney  <cagney@redhat.com>
11991
11992         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
11993         the result.
11994
11995 2003-03-07  Andrew Cagney  <cagney@redhat.com>
11996
11997         * gdbarch.sh: Don't generate two macro definitions when an
11998         undefined macro taking no arguments.
11999         * gdbarch.h: Regenerate.
12000
12001 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
12002
12003         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12004         (x86_64_unwind_dummy_id): New functions.
12005         (x86_64_init_abi): Register these two new functions.
12006
12007 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
12008
12009         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12010         (x86_64_skip_prologue): Move prologue detection to
12011         separate function.
12012         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12013
12014 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12015
12016         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12017         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12018         * frame.c (get_prev_frame): Restructure the frame ID unwind code
12019         to use unwind_dummy_id when a dummy frame.
12020         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12021         predicate.
12022         * gdbarch.h, gdbarch.c: Regneerate.
12023
12024 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12025
12026         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12027         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12028         Do not use d10v_read_sp or d10v_read_fp when obtaining register
12029         values.
12030
12031 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12032
12033         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12034         (struct d10v_unwind_cache): Delete field "frameless".  Replace
12035         "next_addr" with "sp_offset".  Add "r11_offset".
12036         (d10v_frame_unwind_cache): Update.
12037         (prologue_find_regs): Update.  When "mv r11, sp", save the
12038         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
12039         RN was saved in r11_offset.
12040
12041 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12042
12043         * frame.c (deprecated_update_frame_pc_hack): Also update the the
12044         cached PC value in the next frame.
12045
12046 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12047
12048         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12049         "id_unwind_cache" with "id".
12050         (frame_id_unwind): Delete declaration.
12051         * frame.c (frame_id_unwind): Delete function.
12052         (get_prev_frame): Call the frame id unwind method directly.  Store
12053         the returned next frame's ID value in NEXT_FRAME.  Note that there
12054         is a problem with the wrong unwind ID being called with the wrong
12055         unwind cache.
12056
12057 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12058
12059         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12060
12061 2003-03-05  James Ingham <jingham@apple.com>
12062             Daniel Jacobowitz  <drow@mvista.com>
12063
12064         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12065         (auto_cp_abi): New variable.
12066         (current_cp_abi, num_cp_abis): Make static.
12067         (CP_ABI_MAX): Define.
12068         (cp_abis): Turn into an array.
12069         (value_virtual_fn_field): Fix formatting.
12070         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
12071         takes a pointer.
12072         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12073         (list_cp_abis, _initialize_cp_abi): New functions.
12074         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
12075         declarations for cp_abis, num_cp_abis, current_cp_abi, and
12076         switch_to_cp_abi.  Update prototype for register_cp_abi.
12077         * Makefile.in (cp-abi.o): Update dependencies.
12078         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12079         instead of switch_to_cp_abi.
12080         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
12081         register_cp_abi.
12082         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12083         register_cp_abi.
12084         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12085
12086 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12087
12088         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12089         * dwarf2loc.c: Include "regcache.h".
12090         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12091         register_size.
12092         * Makefile.in (dwarf2loc.o): Update dependencies.
12093
12094 2003-03-04  Theodore A. Roth  <troth@openavr.org>
12095
12096         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12097         number of io registers reported by remote target is not a multiple of
12098         step.
12099
12100 2003-03-04  David Carlton  <carlton@math.stanford.edu>
12101
12102         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12103         (lookup_symbol_aux_psymtabs): Update call to
12104         lookup_partial_symbol.
12105         (lookup_transparent_type, find_main_psymtab)
12106         (make_symbol_overload_list): Ditto.
12107
12108 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12109
12110         * MAINTAINERS (Write after approval): Update my email address.
12111
12112 2003-03-03  Andrew Cagney  <cagney@redhat.com>
12113
12114         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12115         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12116         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12117         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12118         MAX_REGISTER_VIRTUAL_SIZE.
12119         * regcache.c (legacy_max_register_raw_size): New function.
12120         (legacy_max_register_virtual_size): New function.
12121         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12122         (MAX_REGISTER_RAW_SIZE): Define.
12123         (legacy_max_register_raw_size): Declare.
12124         (legacy_max_register_virtual_size): Declare.
12125         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12126         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12127         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12128         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12129         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12130         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12131         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12132         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12133         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12134         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12135         * vax-tdep.c (vax_gdbarch_init): Update.
12136         * v850-tdep.c (v850_gdbarch_init): Update.
12137         * sparc-tdep.c (sparc_gdbarch_init): Update.
12138         * sh-tdep.c (sh_gdbarch_init): Update.
12139         * s390-tdep.c (s390_gdbarch_init): Update.
12140         * rs6000-tdep.c (rs6000_gdbarch_init): 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         * hppa-tdep.c (hppa_gdbarch_init): Update.
12150         * h8300-tdep.c (h8300_gdbarch_init): Update.
12151         * frv-tdep.c (frv_gdbarch_init): Update.
12152         * cris-tdep.c (cris_gdbarch_init): Update.
12153         * avr-tdep.c (avr_gdbarch_init): Update.
12154         * arm-tdep.c (arm_gdbarch_init): Update.
12155         * alpha-tdep.c (alpha_gdbarch_init): Update.
12156         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12157         max_register_raw_size or max_register_virtual_size.
12158
12159 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12160
12161         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12162         SYMBOL_MATCHES_NAME, add comment.
12163         (SYMBOL_MATCHES_NATURAL_NAME): New.
12164         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12165         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12166         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12167         * symtab.c (lookup_partial_symbol): Use
12168         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12169         unhelpful comment.
12170         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12171         SYMBOL_MATCHES_NAME.
12172         Fix for PR c++/33.
12173
12174 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12175
12176         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12177         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12178         by regexp matching against SYMBOL_NATURAL_NAME.
12179
12180 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12181
12182         * linespec.c (find_method): Extract code into collect_methods.
12183         (collect_methods): New.
12184
12185 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
12186
12187         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12188         get_frame_base.
12189
12190         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12191         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12192
12193 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12194
12195         * arch-utils.c (generic_register_byte): Fix to use the loop index
12196         and not regnum when summing the size of all registers up to regnum.
12197
12198 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12199
12200         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12201         FRAME_INIT_SAVED_REGS.
12202         * gdbarch.h, gdbarch.c: Regenerate.
12203         * stack.c (frame_info): Update.
12204         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12205         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12206         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12207         * ns32k-tdep.c (ns32k_pop_frame): Update.
12208         * mips-tdep.c (mips_pop_frame): Update.
12209         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12210         * ia64-tdep.c (ia64_frame_chain): Update.
12211         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12212         (ia64_frameless_function_invocation): Update.
12213         (ia64_init_extra_frame_info): Update.
12214         (ia64_pop_frame_regular): Update.
12215         * frame.h (struct frame_info): Update comment.
12216         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12217         * frame.c (frame_saved_regs_register_unwind): Update.
12218         (frame_saved_regs_register_unwind): Update.
12219         (deprecated_generic_get_saved_register): Update.
12220         * cris-tdep.c: Update comment.
12221         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12222         Rename macro.
12223         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12224         * x86-64-tdep.c (x86_64_init_abi): Update.
12225         * vax-tdep.c (vax_gdbarch_init): Update.
12226         * v850-tdep.c (v850_gdbarch_init): Update.
12227         * sparc-tdep.c (sparc_gdbarch_init): Update.
12228         * sh-tdep.c (sh_gdbarch_init): Update.
12229         * s390-tdep.c (s390_gdbarch_init): Update.
12230         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12231         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12232         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12233         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12234         * mips-tdep.c (mips_gdbarch_init): Update.
12235         * mcore-tdep.c (mcore_gdbarch_init): Update.
12236         * m68k-tdep.c (m68k_gdbarch_init): Update.
12237         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12238         * ia64-tdep.c (ia64_gdbarch_init): Update.
12239         * i386-tdep.c (i386_gdbarch_init): Update.
12240         * frv-tdep.c (frv_gdbarch_init): Update.
12241         * avr-tdep.c (avr_gdbarch_init): Update.
12242         * arm-tdep.c (arm_gdbarch_init): Update.
12243         * alpha-tdep.c (alpha_gdbarch_init): Update.
12244
12245 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12246
12247         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12248         option enum and switch.  When no windows, set the interpreter to
12249         INTERP_CONSOLE.
12250
12251 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12252
12253         * main.c (captured_main): Replace magic option characters with an
12254         enum.
12255
12256 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12257
12258         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12259         INIT_EXTRA_FRAME_INFO.
12260         * gdbarch.h, gdbarch.c: Regenerate.
12261         * arm-tdep.c: Update comments.
12262         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12263         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12264         * frame.h, avr-tdep.c: Ditto.
12265         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12266         (create_new_frame, legacy_get_prev_frame): Ditto.
12267         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12268         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12269         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12270         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12271         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12272         * v850-tdep.c (v850_gdbarch_init): Ditto.
12273         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12274         * sh-tdep.c (sh_gdbarch_init): Ditto.
12275         * s390-tdep.c (s390_gdbarch_init): Ditto.
12276         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12277         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12278         * mips-tdep.c (mips_gdbarch_init): Ditto.
12279         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12280         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12281         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12282         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12283         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12284         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12285         * frv-tdep.c (frv_gdbarch_init): Ditto.
12286         * cris-tdep.c (cris_gdbarch_init): Ditto.
12287         * avr-tdep.c (avr_gdbarch_init): Ditto.
12288         * arm-tdep.c (arm_gdbarch_init): Ditto.
12289         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12290         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12291
12292 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12293
12294         * gdbarch.sh (register_type): New function with predicate.
12295         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12296         * gdbarch.h, gdbarch.c: Re-generate.
12297         * arch-utils.c (generic_register_byte): Use generic_register_size.
12298         (generic_register_size): When available, use
12299         gdbarch_register_type.
12300         * regcache.c (init_regcache_descr): When available, initialize the
12301         register type array using gdbarch_register_type.  If the
12302         architecture supplies gdbarch_register_type, do not use the legacy
12303         regcache layout.
12304         * d10v-tdep.c (d10v_register_type): Replace
12305         d10v_register_virtual_type.
12306         (d10v_gdbarch_init): Set register_type instead of
12307         register_virtual_type.
12308
12309 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12310
12311         * Makefile.in (ax-gdb.o): Update dependencies.
12312         * ax-gdb.c: Include "regcache.h".
12313         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12314         * findvar.c (value_of_register): Ditto.
12315         * infcmd.c (default_print_registers_info): Ditto.
12316
12317 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12318
12319         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12320         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12321
12322 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12323
12324         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12325         of STREQ.
12326
12327 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12328
12329         * Makefile.in (dwarf2loc.o): Update dependencies.
12330         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12331         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12332         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12333         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12334         (locexpr_tracepoint_var_ref): New function.
12335         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12336
12337 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12338
12339         * regcache.c (register_size): New function.
12340         * regcache.h (register_size): Declare
12341         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12342         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12343
12344 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12345
12346         * linespec.c (decode_compound): Extract code into find_method.
12347         (find_method): New.
12348
12349 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12350
12351         * Makefile.in: Add rules to build and link in observer.o.
12352
12353 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12354
12355         * observer.c: Minor comments edits.
12356
12357 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12358
12359         * observer.h, observer.c: New file.
12360
12361 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12362
12363         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12364
12365 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12366
12367         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12368         (M6812_OP_STS_EXT): Likewise.
12369         (m6811_prologue): Use the above to recognize prologue.
12370         (m6812_prologue): Likewise.
12371
12372 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12373
12374         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12375         SYMBOL_PRINT_NAME.
12376         (compare_psymbols): Ditto.
12377         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12378
12379 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12380
12381         * f-lang.c (build_fortran_types): New function.
12382         (_initialize_f_language): Gdbarch-register built-in fortran types.
12383         * doublest.c (extract_floating): Fix warning text.
12384
12385 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12386
12387         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12388         predicate.  Replaces PUSH_DUMMY_FRAME.
12389         * gdbarch.h, gdbarch.c: Regnerate.
12390         * valops.c (hand_function_call): Update.  Call
12391         generic_push_dummy_frame directly.
12392         * vax-tdep.c (vax_gdbarch_init): Update.
12393         * sparc-tdep.c (sparc_gdbarch_init): Update.
12394         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12395         * m68k-tdep.c (m68k_gdbarch_init): Update.
12396         * hppa-tdep.c (hppa_gdbarch_init): Update.
12397         * alpha-tdep.c (alpha_gdbarch_init): Update.
12398         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12399         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12400         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12401         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12402         push_dummy_frame to generic_push_dummy_frame.
12403         * v850-tdep.c (v850_gdbarch_init): Ditto.
12404         * sh-tdep.c (sh_gdbarch_init): Ditto.
12405         * s390-tdep.c (s390_gdbarch_init): Ditto.
12406         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12407         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12408         * mips-tdep.c (mips_gdbarch_init): Ditto.
12409         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12410         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12411         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12412         * i386-tdep.c (i386_gdbarch_init): Ditto.
12413         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12414         * frv-tdep.c (frv_gdbarch_init): Ditto.
12415         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12416         * cris-tdep.c (cris_gdbarch_init): Ditto.
12417         * avr-tdep.c (avr_gdbarch_init): Ditto.
12418         * arm-tdep.c (arm_gdbarch_init): Ditto.
12419
12420 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12421
12422         * mips-tdep.c (show_mips_abi): New function.
12423         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12424         command ``show mips abi''.
12425
12426 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12427
12428         From Elena Zannoni  <ezannoni@redhat.com>
12429         * dbxread.c (process_one_symbol): Only record line 0 if one or
12430         more sline entries have been seen for the function.
12431
12432 2003-02-26  Michael Chastain  <mec@shout.net>
12433
12434         * configure: Regenerate with autoconf 000227.
12435
12436 2003-02-26  Michael Chastain  <mec@shout.net>
12437
12438         Close PR build/660.
12439         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12440         for old libc5/glibc.
12441         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12442
12443 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12444
12445         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12446         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12447
12448 2003-02-26  Michael Chastain  <mec@shout.net>
12449
12450         * configure.in: New variable HAVE_UINTPTR_T.
12451         * configure, config.in: Regenerated.
12452
12453 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12454
12455         Fix PR build/1097.
12456         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12457
12458 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12459
12460         * frame.c (get_prev_frame): Add comment on check for
12461         inside_entry_func. Only check for inside_entry_file when not a
12462         dummy and not a sentinel.  Check that the new frame is not inner
12463         to the old frame.
12464
12465 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12466
12467         * frame.c (frame_debug): New variable.
12468         (_initialize_frame): Add "set/show debug frame" command.
12469         (get_prev_frame): When frame_debug, print reason why unwind
12470         failed.
12471
12472 2003-02-25  Michael Chastain  <mec@shout.net>
12473
12474         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12475         to avoid uintptr_t definition problems.
12476
12477 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12478
12479         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12480         (SYMBOL_LINKAGE_NAME): Ditto.
12481         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12482         SYMBOL_LINKAGE_NAME.
12483         (struct general_symbol_info): Expand comment.
12484         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12485         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12486         (SYMBOL_MATCHES_REGEXP): Ditto.
12487         * symtab.c (symbol_natural_name): New function.
12488         * objfiles.h: Replace all uses of SYMBOL_NAME by
12489         DEPRECATED_SYMBOL_NAME.
12490         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12491         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12492         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12493         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12494         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12495         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12496         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12497         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12498         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12499         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12500         * ada-exp.y: Ditto.
12501         * ada-exp.y: Update copyright.
12502         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12503         * cp-valprint.c: Ditto.
12504
12505 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
12506
12507         * infptrace.c (detach): Do not flag error if ptrace detach fails
12508         and errno is set to ESRCH.
12509
12510 2003-02-24  Andrew Cagney  <cagney@redhat.com>
12511
12512         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12513         paddr when printing udot_off's value.
12514
12515 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12516
12517         * symtab.c (make_symbol_overload_list): Only read in partial
12518         symtabs containing a matching partial symbol.
12519
12520 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12521
12522         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12523         do the comparison, not strcmp.
12524         * symfile.c (compare_psymbols): Ditto.
12525         * defs.h: Declare strcmp_iw_ordered.
12526         * utils.c (strcmp_iw_ordered): New function.
12527
12528 2003-02-24  Jim Blandy  <jimb@redhat.com>
12529
12530         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12531         support, shared libs): Remove my name from here, to better reflect
12532         reality.
12533
12534 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12535
12536         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12537         (target_ops): Add to_have_continuable_watchpoint.
12538         * target.c (update_current_target): Add INHERIT line for
12539         to_have_continuable_watchpoint.
12540         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12541         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12542         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12543         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12544
12545 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
12546
12547         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12548         maintainership.
12549
12550 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12551
12552         * solib.c (solib_open): Call target defined search function after
12553         failing with solib-search-path.
12554         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12555         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12556
12557 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12558
12559         * MAINTAINERS: Add myself to Write After section.
12560
12561 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
12562
12563         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12564
12565 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
12566
12567         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12568         (m68hc11_add_reggroups): New function.
12569         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12570         (m68hc11_gdbarch_init): Install the reggroups.
12571         (_initialize_m68hc11_tdep): Initialize them.
12572
12573 2003-02-21  James E Wilson  <wilson@tuliptree.org>
12574
12575         * MAINTAINERS: Update my email address.
12576
12577 2003-02-21  David Carlton  <carlton@math.stanford.edu>
12578
12579         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12580
12581 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
12582
12583         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12584         * symtab.h: Add opaque declarations of struct axs_value and
12585         struct agent_expr.
12586         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12587         (struct location_funcs): New type.
12588         (struct symbol): Add "loc" to aux_value.
12589         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12590         * dwarf2read.c: Include "dwarf2expr.h".
12591         (dwarf2_symbol_mark_computed): New function.
12592         (read_func_scope): Use it.
12593         (var_decode_location): New function.
12594         (new_symbol): Use it.
12595         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12596
12597         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12598         (dwarf2expr_h, dwarf2loc_h): New variables.
12599         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12600         (dwarf2expr.o, dwarf2loc.o): New rules.
12601         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12602         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12603         LOC_COMPUTED_ARG.
12604         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12605         * m2-exp.y (yylex): Likewise.
12606         * printcmd.c (address_info, print_frame_args): Likewise.
12607         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12608         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12609         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12610         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12611         * symtab.c (lookup_block_symbol): Likewise.
12612
12613 2003-02-20  Adam Fedor  <fedor@gnu.org>
12614
12615         * symtab.h: Remove objc_specific struct
12616         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12617         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12618         Have language_objc use cplus_specific struct.
12619
12620 2003-02-20  Tom Tromey  <tromey@redhat.com>
12621
12622         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12623         TYPE_NAME, when printing a String value.  PR java/1075.
12624
12625 2003-02-20  Adam Fedor  <fedor@gnu.org>
12626
12627         * objc-lang.h (find_methods): Remove declaration.
12628         * objc-lang.c (find_methods): Make static.
12629
12630 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12631
12632         * win32-nat.c (get_image_name): Check return value from
12633         ReadProcessMemory.
12634         (child_xfer_memory): Ditto.
12635
12636 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12637
12638         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12639         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12640         '${exec_prefix}' (in addition to the expansion thereof) as
12641         relocatable.
12642         * configure: Rebuilt.
12643
12644 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12645
12646         * symtab.c (search_symbols): Revert the search_symbols part of my
12647         2002-12-23 patch.  Add comment.
12648
12649 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12650
12651         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12652         * dbxread.c (elfstab_build_psymtabs): Don't call
12653         install_minimal_symbols.
12654         (stabsect_build_psymtabs): Likewise.
12655         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12656         earlier.
12657         * somread.c (som_symfile_read): Call install_minimal_symbols
12658         and do_cleanups earlier.
12659         * nlmread.c (nlm_symfile_read): Likewise.
12660         * mdebugread.c (elfmdebug_build_psymtabs): Call
12661         install_minimal_symbols and make appropriate cleanups.
12662
12663 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12664
12665         * solib.c (reload_shared_libraries): New function.
12666         (_initialize_solib): Add callbacks for ``set solib-search-path''
12667         and ``set solib-absolute-prefix''.
12668
12669 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12670
12671         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12672         expand comment.
12673         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12674         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12675         * ada-typeprint.c (ada_typedef_print): Ditto.
12676         * ax-gdb.c (gen_var_ref): Ditto.
12677         * breakpoint.c (print_one_breakpoint): Ditto.
12678         * buildsym.c (finish_block): Ditto.
12679         * c-valprint.c (c_val_print): Ditto.
12680         * expprint.c (print_subexp): Ditto.
12681         * findvar.c (locate_var_value): Ditto.
12682         * infcmd.c (jump_command): Ditto.
12683         * linespec.c (decode_line_2, decode_compound): Ditto.
12684         * maint.c (maintenance_translate_address): Ditto.
12685         * objc-lang.c (compare_selectors, compare_classes): Ditto.
12686         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12687         Ditto.
12688         * p-valprint.c (pascal_val_print): Ditto.
12689         * stabsread.c (define_symbol): Ditto.
12690         * stack.c (print_frame, frame_info, print_block_frame_locals)
12691         (print_frame_arg_vars, return_command): Ditto.
12692         * symfile.c (compare_symbols, compare_psymbols): Ditto.
12693         * symmisc.c (print_symbol): Ditto.
12694         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12695         (compare_search_syms, print_symbol_info, print_msymbol_info)
12696         (rbreak_command): Ditto.
12697         * tracepoint.c (tracepoints_info): Ditto.
12698         * typeprint.c (typedef_print): Ditto.
12699         * valops.c (value_of_variable, hand_function_call): Ditto.
12700         * cli/cli-cmds.c (edit_command, list_command): Ditto.
12701         * ada-typeprint.c: Update Copyright.
12702         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12703         * tracepoint.c, cli/cli-cmds.c: Ditto.
12704
12705 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
12706
12707         * frame.c (generic_unwind_get_saved_register): Make non-static.
12708         * frame.h (generic_unwind_get_saved_register): Declare.
12709         * mips-tdep.c (read_next_frame_reg): Fetch register from
12710         current regcache when frame is NULL.
12711         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12712         that must be NULL.
12713         (mips_get_saved_register): Call generic_unwind_get_saved_register()
12714         instead of frame_register_unwind().
12715
12716 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12717
12718         * remote-sim.c (gdbsim_insert_breakpoint)
12719         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12720         code.
12721
12722 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
12723
12724         * remote.c (_initialize_remote): Add commands "set/show remote
12725         hardware-watchpoint-limit" and "set/show remote
12726         hardware-breakpoint-limit".
12727         (remote_hw_watchpoint_limit): Initialize to -1.
12728         (remote_hw_breakpoint_limit): Ditto.
12729         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12730
12731 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
12732
12733         * coff-pe-read.c: New file - support reading of minimal symbols from a
12734         portable executable using the export table.
12735         * coff-pe-read.h: New file.
12736         * coffread.c: Include coff-pe-read.h.
12737         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12738         debugging symbols found.
12739         * Makefile.in (SFILES): Add coff-pe-read.o.
12740         (coff_pe_read_h): Define.
12741         (COMMON_OBS): Add coff-pe-read.o.
12742         (coffread.o): Add coff_pe_read_h dependency.
12743         (coff-pe-read.o): New target.
12744
12745 2003-02-19  David Carlton  <carlton@math.stanford.edu>
12746
12747         * Makefile.in (SFILES): Add block.c.
12748         (block_h): New.
12749         (COMMON_OBS): Add block.o.
12750         (block.o): New.
12751         (x86-64-tdep.o): Add $(block_h).
12752         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12753         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12754         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12755         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12756         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12757         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12758         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12759         * value.h: Add opaque declaration for struct block.
12760         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12761         * ada-lang.h: Ditto.
12762         * x86-64-tdep.c: #include "block.h"
12763         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12764         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12765         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12766         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12767         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12768         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12769         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12770         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12771         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12772         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12773         * symtab.c (block_function): Ditto.
12774         (contained_in): Ditto.
12775         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12776         block.h.  Add opaque declaration for struct block.
12777         * symtab.h: Move block_function and contained_in declarations to
12778         block.h.  Add opaque declarations for struct block, struct
12779         blockvector.
12780         (struct block): Move to block.h.
12781         (struct blockvector): Ditto.
12782         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12783         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12784         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12785         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12786         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12787         Ditto.
12788         * block.c: New file.
12789         * block.h: New file.
12790
12791 2003-02-19  Theodore A. Roth  <troth@openavr.org>
12792
12793         * avr-tdep.c (avr_extract_return_value): Remove function.
12794         (avr_store_return_value): Remove function.
12795         (avr_extract_struct_value_address): Remove function.
12796         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12797
12798 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
12799
12800         * rs6000-tdep.c: Include "gdb_assert.h".
12801         (registers_e500): Add "acc" and "spefscr".
12802         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12803         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12804         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
12805         really is "r0".
12806         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12807
12808 2003-02-18  Keith Seitz  <keiths@redhat.com>
12809
12810         * Makefile.in: Add gdbtk-interps.c.
12811
12812 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
12813
12814         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12815         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12816
12817 2003-02-18  Andrew Cagney  <cagney@redhat.com>
12818
12819         * symtab.h (struct objfile): Add opaque declaration.
12820
12821 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
12822
12823         From Jim Ingham   <jingham@apple.com>:
12824         * dbxread.c (process_one_symbol): Use last_function_start rather
12825         than function_start_offset to find the real beginning of the
12826         current function.  The latter is just the text section offset on
12827         some systems, the former is always the real function start.
12828
12829 2003-02-17  Andrew Cagney  <cagney@redhat.com>
12830
12831         * configure.in: Revert ${target} != ${host}.
12832
12833 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
12834
12835         * configure.in (Makefile): Use the test ${target} != ${host},
12836         instead of the absence of the "nm.h" file, to determine of the
12837         configuration non-native.
12838         * configure: Regenerate.
12839
12840 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
12841
12842         From Brian Ford  <ford@vss.fsi.com>
12843
12844         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12845         conditionalize tui_active test.
12846         (lookup_cmd_1): Ditto.
12847
12848 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
12849
12850         * configure.in: Add check for _etext.
12851         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12852         available.
12853         * config.in, configure: regenerated.
12854
12855 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
12856
12857         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12858
12859 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
12860
12861         * main.c (tui_version): Delete variable.
12862         (captured_main): When --tui, set interpreter_p to "tui" instead of
12863         enabling tui_version.
12864         * printcmd.c (display_command) [TUI]: Test tui_active instead of
12865         tui_version.
12866         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12867         * cli/cli-cmds.c (disassemble_command): Ditto.
12868         * defs.h (tui_version): Delete declaration.
12869         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12870         (tui-interp.o): Add rules.
12871         (SUBDIR_TUI_OBS): Add "tui-interp.o".
12872
12873 2003-02-14  Christopher Faylor  <cgf@redhat.com>
12874
12875         * win32-nat.c (register_loaded_dll): Correctly set address range for
12876         just-loaded dll.
12877
12878 2003-02-12  Jason Molenda  (jmolenda@apple.com)
12879
12880         * symmisc.c (print_objfile_statistics): Include information about
12881         the number of psymtabs and symtabs in each object file.
12882
12883 2003-02-13  Keith R Seitz  <keiths@redhat.com>
12884
12885         * main.h (struct captured_main_args): Add interpreter_p.
12886         * main.c (captured_main): Initialize interpreter_p from context.
12887         * gdb.c (main): Set interpreter_p argument.
12888         * Makefile.in (gdb.o): Add dependency for interps.h.
12889
12890 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12891
12892         * event-top.c (cli_command_loop): Delete declaration.
12893         (_initialize_event_loop): Delete function setting event_loop_hook.
12894         * event-top.h (cli_command_loop): Declare.  Update copyright.
12895         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
12896         * interps.c (current_interp_command_loop): When event_loop_p, call
12897         cli_command_loop.
12898
12899 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
12900
12901         * interps.h (interp_command_loop_ftype): Change return type to
12902         void.
12903
12904 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
12905
12906         * x86-64-tdep.c (x86_64_extract_return_value)
12907         (x86_64_store_return_value): Use regcache instead of regbuf.
12908         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12909         * x86-64-linux-nat.c (fill_gregset): Use regcache.
12910
12911 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
12912
12913         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12914         * aclocal.m4: Regenerate.
12915         * configure: Regenerate.
12916
12917         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12918         TCL_LD_SEARCH_FLAGS.
12919
12920 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
12921
12922         * dwarf2cfi.c: Reindented.
12923
12924 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
12925
12926         * interps.c (clear_interpreter_hooks): Convert function definition
12927         to ISO C.
12928
12929 2003-02-07  David Carlton  <carlton@math.stanford.edu>
12930
12931         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12932
12933 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
12934
12935         * gdbtypes.h (struct main_type): Move ``length'' field from here...
12936         (struct type): ...to here.
12937         (TYPE_LENGTH): Adjust to reflect different location of ``length''
12938         field.
12939         * gdbtypes.c (make_qualified_type): Set length on newly created type.
12940         (replace_type): Set length on all type variants for a given type.
12941
12942 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
12943
12944         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12945         <sys/stat.h>.
12946         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
12947
12948 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
12949
12950         * Makefile.in (symm-nat.o): Update dependencies.
12951         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
12952         (lynx-nat.o, ia64-linux-nat.): Ditto.
12953         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
12954         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
12955         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
12956
12957         * Makefile.in (inflow_h): Define.
12958         (procfs.o, inflow.o, procfs.o): Update dependencies.
12959         * inftarg.c (child_stop): Delete extern declaration of
12960         inferior_process_group.  Include "inflow.h".
12961         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
12962         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
12963         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
12964         (our_process_group, inferior_process_group): Extern declarations.
12965
12966         * procfs.c: Include "gdb_assert.h".
12967
12968         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12969         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
12970         * jv-typeprint.c (java_type_print_base): Ditto.
12971         * typeprint.c (typedef_print): Eliminate STREQ.
12972         * cli/cli-script.c (define_command, define_command): Ditto.
12973         * main.c (captured_main): Ditto.
12974         * values.c (lookup_internalvar): Ditto.
12975         * utils.c (safe_strerror, parse_escape): Eliminate assignment
12976         within `if' conditional.
12977         * linespec.c (decode_line_2): Ditto.
12978         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
12979         (bfd_openw_with_cleanup): Ditto.
12980
12981 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
12982
12983         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
12984         legacy_extract_return_value and store_return_value to
12985         legacy_return_value.
12986
12987 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
12988
12989         * win32-nat.c (get_relocated_section_addrs): New function.  Find
12990         section load addresses for symbol handling in relocated DLLs.
12991         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
12992
12993 2003-02-05  Fred Fish  <fnf@intrinsity.com>
12994
12995         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
12996         '=' and '!='.
12997         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
12998         with '&' and '=='.
12999         (angel_RDI_info): Ditto.
13000         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13001         with '&' and '!='.
13002         (threads_continue_all_with_signals): Ditto.
13003
13004 2003-02-05  Jim Ingham <jingham@apple.com>
13005             Keith Seitz  <keiths@redhat.com>
13006             Elena Zannoni  <ezannoni@redhat.com>
13007             Andrew Cagney  <ac131313@redhat.com>
13008
13009         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13010         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13011         (SUBDIR_MI_OBS): Add "mi-interp.o".
13012         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13013         (SFILES): Add "interps.c".
13014         (COMMON_OBS): Add "interps.o".
13015         (interps_h, mi_main_h): Define.
13016         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13017         (mi-main.o, main.o, event-top.o): Update dependencies.
13018         * cli/cli-interp.c: New file.
13019         * interps.h, interps.c: New files.
13020         * top.c: (gdb_init): Don't install the default interpreter, handed
13021         by captured_main.
13022         * main.c: Include "interps.h".
13023         (interpreter_p): Note that it should malloc'ed.
13024         (captured_command_loop): Call current_interp_command_loop.
13025         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
13026         xfree and xstrdup when updating interpreter_p.  Install the
13027         default interpreter.  Add hack to stop mi1's copyright notice
13028         being encoded.
13029         * event-top.h (gdb_setup_readline): Declare.
13030         (gdb_disable_readline): Declare.
13031         * event-top.c: Include "interps.h".
13032         (display_gdb_prompt): Call current_interp_display_prompt_p.
13033         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13034         gdb_stdlog, and gdb_stdtarg.
13035         (_initialize_event_loop): Don't call gdb_setup_readline.
13036         * cli-out.c (cli_out_set_stream): New function.
13037         * cli-out.h (cli_out_set_stream): Declare.
13038
13039 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
13040
13041         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13042         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
13043         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13044         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13045         config/i386/i386v42mp.mt: Removed.
13046
13047 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
13048
13049         * configure.tgt (*-*-solaris*): Set gdb_osabi to
13050         GDB_OSABI_SOLARIS.
13051
13052 2003-02-05  Michael Chastain  <mec@shout.net>
13053
13054         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13055         2.12.1 and earlier versions.
13056
13057 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
13058
13059         Remove orphaned hosts, targets and files.
13060         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13061         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13062         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13063         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13064         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13065         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13066         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13067         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13068         * config/sparc/tm-sp64sim.h: Delete.
13069         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13070         hosts.
13071         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13072         mips*-dec-mach3* targets.
13073
13074 2003-02-04  Michael Chastain  <mec@shout.net>
13075
13076         * NEWS: Fix typo: sepcifying -> specifying.
13077
13078 2003-02-04  Michael Chastain  <mec@shout.net>
13079
13080         * dwarfread.c: Add documentation on the state of dwarf-1,
13081         looking towards obsoletion.
13082
13083 2003-02-03  Michael Chastain  <mec@shout.net>
13084
13085         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13086         gdb/testsuite/gdb.c++/pr-1023.exp.
13087
13088 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13089
13090         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13091         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13092
13093         * utils.c (init_page_info): Delete reference to MPW in comments.
13094         * main.c (captured_main): Delete #ifdef MPW.
13095
13096 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13097
13098         * NEWS: Note that the m32r-*-elf* is obsolete.
13099         * monitor.c (monitor_expect): Obsolete reference to m32r.
13100         * configure.tgt: Mark m32r-*-elf* as obsolete.
13101         * MAINTAINERS: Mark m32k as obsolete.
13102         * m32r-rom.c: Obsolete file.
13103         * config/m32r/m32r.mt: Obsolete file.
13104         * config/m32r/tm-m32r.h: Obsolete file.
13105         * m32r-stub.c: Obsolete file.
13106         * m32r-tdep.c: Obsolete file.
13107
13108 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13109
13110         * NEWS: Mention that the z8k-zilog-none is obsolete.
13111         * MAINTAINERS: Mark z8k as obsolete.
13112         * configure.tgt: Obsolete the z8k-*-coff* target.
13113         * config/z8k/z8k.mt: Obsolete file.
13114         * config/z8k/tm-z8k.h: Obsolete file.
13115         * z8k-tdep.c: Obsolete file.
13116
13117 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13118
13119         * NEWS: Mention that the mn10200-elf is obsolete.
13120         * configure.tgt: Obsolete mn10200-*-* target.
13121         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13122         mention that the mn10200 is obsolete.
13123         * breakpoint.h: Ditto.
13124         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13125         * config/mn10200/mn10200.mt: Obsolete file.
13126         * config/mn10200/tm-mn10200.h: Obsolete file.
13127         * mn10200-tdep.c: Obsolete file.
13128
13129 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13130
13131         * MAINTAINERS: Mark h8500 as obsolete.
13132         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13133         * findvar.c (value_from_register): Ditto.
13134         * h8500-tdep.c: Mark file as obsolete.
13135         * config/h8500/h8500.mt: Ditto.
13136         * config/h8500/tm-h8500.h: Ditto.
13137         * NEWS: Mention that h8500 is obsolete.
13138
13139 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13140
13141         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13142         start of function.
13143         * jv-lang.c (get_dynamics_objfile): Add comment.
13144
13145 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13146
13147         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13148         * printcmd.c (build_address_symbolic): Replace uses of
13149         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13150         SYMBOL_NAME, and asm_demangle.
13151         Update copyright.
13152
13153 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13154
13155         * linespec.c (decode_compound): Extract code into
13156         lookup_prefix_sym.
13157         (lookup_prefix_sym): New function.
13158
13159 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13160
13161         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13162         FLOAT_COERCION_BADNESS.
13163         * gdbtypes.c (rank_one_type): Replace all uses of
13164         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13165
13166 2003-02-04  Jim Blandy  <jimb@redhat.com>
13167
13168         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13169         section, let dwarf_macinfo_section point to it, not
13170         dwarf_loc_section.
13171
13172 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13173
13174         Pointed out by Anton Blanchard <anton@samba.org>.
13175         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13176         (ppc_linux_at_sigtramp_return_path): Use it.
13177
13178 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13179
13180         * defs.h (streq): Add prototype.
13181         * utils.c (streq): New function.
13182
13183         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13184         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13185         * mdebugread.c (new_symbol): Likewise.
13186         * stabsread.c (define_symbol): Likewise.
13187         * coffread.c (process_coff_symbol): Likewise.
13188         * dwarfread.c (new_symbol): Likewise.
13189
13190         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13191         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13192         here.
13193         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13194         SYMBOL_INIT_DEMANGLED_NAME.
13195         * objfiles.c: Include "hashtab.h".
13196         (allocate_objfile): Call htab_set_functions_ex for the
13197         demangled_names_hash.
13198         (free_objfile): Call htab_delete for the demangled_names_hash.
13199         * objfiles.h (struct htab): Add declaration.
13200         (struct objfile): Add demangled_names_hash.
13201         * symfile.c: Include "hashtab.h".
13202         (reread_symbols): Call htab_delete for the demangled_names_hash.
13203         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13204         SYMBOL_NAME in the bcache.
13205         * symtab.c: Include "hashtab.h".  Update comments.
13206         (create_demangled_names_hash, symbol_set_names): New functions.
13207         (symbol_find_demangled_name): New function, broken out from
13208         symbol_init_demangled_names.
13209         (symbol_init_demangled_names): Use it.
13210         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13211         (SYMBOL_SET_NAMES): New macro.
13212         (symbol_set_names): Add prototype.
13213
13214 2003-02-03  Jim Blandy  <jimb@redhat.com>
13215
13216         Use a single, consistent representation for an empty minimal
13217         symbol table in an objfile.
13218         * objfiles.c (terminate_minimal_symbol_table): New function.
13219         (allocate_objfile): Call it.
13220         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13221         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13222         non-NULL.
13223         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13224         objfile has minimal symbols, compare minimal_symbol_count to zero,
13225         instead of comparing msymbols with NULL.
13226         * objfiles.c (have_minimal_symbols): Same.
13227         * solib-sunos.c (solib_add_common_symbols): Call
13228         terminate_minimal_symbol_table.
13229         * symfile.c (reread_symbols): Same.
13230
13231 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
13232
13233         * s390-tdep.c (s390_address_class_type_flags)
13234         (s390_address_class_type_flags_to_name)
13235         (s390_address_class_name_to_type_flags): New functions.
13236         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13237         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13238
13239 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13240
13241         * arm-tdep.c: Fix spell-o in comment.
13242
13243 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13244
13245         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13246         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13247         error messages to contain BFD filename.
13248
13249 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13250
13251         Fix PR gdb/742 gdb/743 gdb/877
13252         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13253         (do_mixed_source_and_assembly): Use
13254         make_cleanup_ui_out_tuple_begin_end and
13255         make_cleanup_ui_out_tuple_begin_end.
13256         (do_mixed_source_and_assembly): Ditto.
13257         * thread.c (do_captured_list_thread_ids): Ditto.
13258         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13259         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13260         ui_out_tuple_end): Delete prototypes.
13261         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13262         ui_out_list_end, ui_out_tuple_end): Delete.
13263
13264         From Kevin Buettner  <kevinb@redhat.com>:
13265         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13266         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13267         (do_cleanup_table_end):  New functions.
13268         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13269         Use cleanups to invoke_ui_out_tuple_end().
13270         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13271         * cli/cli-setshow.c (cmd_show_list): Use
13272         make_cleanup_ui_out_tuple_begin_end.
13273
13274 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13275
13276         * frame.c (frame_unwind_register): New function.
13277         (frame_unwind_unsigned_register): Use.
13278         (frame_unwind_signed_register): Use.
13279         (frame_read_register): New function.
13280         * frame.h (frame_unwind_register): Declare.
13281         (frame_read_register): Declare.
13282
13283         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13284         and frame_unwind_register instead of read_memory, write_register
13285         and deprecated_write_register_bytes.
13286
13287 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13288
13289         * frame.h: Note that namelen can be negative.
13290         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13291         NAME's length.
13292
13293         * NEWS: Mention that the d10v's `regs' command is deprecated.
13294         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13295         (d10v_print_registers_info): New function.
13296         (show_regs): Call d10v_print_registers_info.
13297         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13298
13299 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13300
13301         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13302         lost in the previous patch.
13303
13304 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13305
13306         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13307         * stack.c (print_frame_info_base): Output complete FRAME tuple
13308         for synthesized frames.
13309
13310 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13311
13312         * mips-nat.c (zerobuf): Delete.
13313         (fetch_inferior_registers): Alloc local zerobuf.
13314         (fetch_core_registers): Alloc local zerobuf.
13315         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13316         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13317         * thread-db.c (thread_db_store_registers): Ditto.
13318         * sh-tdep.c (sh_do_register): Ditto.
13319         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13320         * remote-sim.c (gdbsim_store_register): Ditto.
13321         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13322         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13323         * monitor.c (monitor_supply_register): Ditto.
13324         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13325         * mips-nat.c (fetch_inferior_registers): Ditto.
13326         * m68klinux-nat.c (fetch_register): Ditto.
13327         * lynx-nat.c (fetch_inferior_registers): Ditto.
13328         (fetch_inferior_registers): Ditto.
13329         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13330         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13331         (hpux_thread_store_registers): Ditto.
13332         * hppah-nat.c (fetch_register): Ditto.
13333         * hppab-nat.c (fetch_register): Ditto.
13334         * hppa-tdep.c (pa_register_look_aside): Ditto.
13335         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13336         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13337
13338 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13339
13340         * gdbarch.sh: Explictly specify all method levels.  When a
13341         variable with an empty level, provide a non-multi-arch default.
13342         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13343         * gdbarch.h: Re-generate.
13344         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13345         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13346
13347 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13348
13349         * defs.h (host_pointer_to_address): Delete declaration.
13350         (address_to_host_pointer): Delete declaration.
13351         * utils.c (host_pointer_to_address): Delete function.
13352         (address_to_host_pointer): Delete function.
13353         * procfs.c (procfs_address_to_host_pointer): New function.
13354         * procfs.c (proc_set_watchpoint): Use.
13355         (procfs_can_use_hw_breakpoint): Update comments.
13356         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13357         (som_solib_add): Use.
13358         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13359         * hppa-tdep.c (unwind_command): Use.
13360
13361 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13362
13363         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13364         strlen d_name.
13365
13366         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13367         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13368         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13369         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13370         (define_symbol): Update.
13371         * symfile.c (generic_load): Remove references to nindy.
13372         * symtab.c: Remove references to nindy.
13373
13374 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13375
13376         * infcmd.c (print_float_info): Delete code conditional on
13377         FLOAT_INFO.
13378         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13379         * config/m68k/nm-apollo68b.h: Ditto.
13380         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13381         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13382         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13383
13384 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13385
13386         * config/i386/tm-i386os9k.h: Removed.
13387
13388         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13389         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13390         they're identical to i[3456]86-*-sysv* now.
13391         * config/i386/i386v32.mh: Removed.
13392         * config/i386/xm-i386v32.h: Removed.
13393         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13394
13395         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13396
13397         * config/i386/i386dgux.mh: Removed.
13398         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13399
13400         * configure.in: Fix typo.
13401         * configure: Regenerated.
13402
13403 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13404
13405         * dwarf2read.c (dwarf2_locate_sections): Set
13406         dwarf_ranges_section.
13407
13408 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13409
13410         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13411         * utils.c: Update comments documenting legitimate uses of PTR.
13412
13413         * utils.c: Re-indent.
13414
13415         * config/djgpp/fnchange.lst: Delete nindy files.
13416         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13417         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13418         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13419         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13420         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13421         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13422         * Makefile.in (init.c): Remove nindy references.
13423         (saber_gdb): Delete rule.
13424         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13425         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13426         and a68v-nat.c.
13427         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13428         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13429         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13430         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13431         nindy-share/stop.h.
13432         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13433         * saber.suppress: Delete file.
13434
13435 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13436
13437         * dbxread.c (stabs_data): New static variable.
13438         (fill_symbuf): Support an in-memory buffer for stabs data.
13439         (stabs_seek): New function.
13440         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13441         (read_ofile_symtab): Use stabs_seek.
13442         (elfstab_build_psymtabs): Take an asection* instead of
13443         an offset and size.  Relocate the stabs data if necessary.
13444         Save the section* for dbx_psymtab_to_symtab.
13445         * dwarf2read.c: Add section variables for each debug section.
13446         (dwarf2_locate_sections): Fill them in.
13447         (dwarf2_read_section): Take an asection* argument.
13448         Relocate the section contents if necessary.
13449         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13450         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13451         it to dwarf2_read_section.
13452         (dwarf2_build_frame_info): Update callers.
13453         * elfread.c (elf_symfile_read): Update call to
13454         elfstab_build_psymtabs.
13455         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13456         (DBX_STAB_SECTION): New macro.
13457         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13458         * symfile.c (symfile_dummy_outputs): New function.
13459         (symfile_relocate_debug_section): New function.
13460         * symfile.h (symfile_relocate_debug_section): Add prototype.
13461
13462 2003-01-31  Richard Henderson  <rth@redhat.com>
13463
13464         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13465         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13466         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13467         * alpha-tdep.c (alpha_register_name): Add "unique".
13468         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13469         (ALPHA_UNIQUE_REGNUM): New.
13470         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13471
13472 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13473
13474         * README: Remove reference to Ericsson 1800 monitor.
13475         * Makefile.in (remote-es.o): Delete rule.
13476         (ALLDEPFILES): Delete remote-es.c.
13477         * remote-es.c: Delete file.
13478         * config/m68k/es1800.mt: Delete file.
13479         * config/djgpp/fnchange.lst: Update.
13480         * configure.tgt: Delete m68*-ericsson-* target.
13481
13482 2003-01-31  Adam Fedor  <fedor@gnu.org>
13483
13484         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13485         Remove duplicate/shadowing variable of same name.
13486
13487 2003-01-30  Jim Blandy  <jimb@redhat.com>
13488
13489         * symfile.c (find_separate_debug_file): Assert that the objfile's
13490         directory name we compute ends with a slash, and then assume that
13491         that's so everywhere we use it.
13492
13493 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13494
13495         * valops.c (value_assign): Flush frame cache after stores to memory
13496         also.
13497
13498 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13499
13500         * Makefile.in (mon960-rom.o): Delete rule.
13501         * mon960-rom.c: Delete file.
13502
13503 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13504
13505         * d10v-tdep.c: Include "frame-unwind.h".
13506         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13507         list.
13508         (next_addr, uses_frame): Delete.
13509         (struct d10v_unwind_cache): Define.
13510         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13511         Use info instead of next_addr and uses_frame globals.
13512         (d10v_frame_init_saved_regs): Delete function.
13513         (d10v_init_extra_frame_info): Delete function.
13514         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13515         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13516         init_frame_pc or frame_saved_pc.
13517         (d10v_pop_frame): Delete function.
13518         (do_d10v_pop_frame): Delete function.
13519         (d10v_frame_chain): Delete function.
13520         (d10v_frame_chain_valid): Delete function.
13521         (d10v_frame_pc_unwind): New function.
13522         (d10v_frame_id_unwind): New function.
13523         (saved_regs_unwinder): New function.
13524         (d10v_frame_register_unwind): New function.
13525         (d10v_frame_pop): New function.
13526         (d10v_frame_unwind): New variable.
13527         (d10v_frame_p): New function.
13528         (d10v_frame_saved_pc): Delete function.
13529         * Makefile.in (d10v-tdep.o): Update dependencies.
13530
13531 2003-01-30  J. Brobecker  <brobecker@gnat.com>
13532
13533         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13534         causing some regressions due to a change in the default value
13535         for this macro.
13536
13537 2003-01-29  Richard Henderson  <rth@redhat.com>
13538             Elena Zannoni  <ezannoni@redhat.com>
13539             Daniel Jacobowitz  <drow@mvista.com>
13540
13541         Fix PR gdb/961.
13542         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13543         variables.
13544         (RANGES_SECTION): New.
13545         (dwarf_ranges_buffer): New variable.
13546         (struct comp_unit_head): Add member "die".
13547         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13548         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13549         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13550         (dwarf2_locate_sections): Likewise.
13551         (dwarf2_build_psymtabs): Read .debug_ranges.
13552         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13553         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13554         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13555         Look for DW_AT_ranges and return the bounding box.
13556
13557 2003-01-29  Brian Ford <ford@vss.fsi.com>
13558
13559         * win32-nat.c (cygwin_pid): Removed as unused.
13560         (child_attach): Try fall back to Cygwin pid.
13561
13562 2003-01-29  Jim Blandy  <jimb@redhat.com>
13563
13564         * objfiles.h (struct objfile): Doc fix.
13565
13566 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
13567
13568         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13569         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13570         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13571         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13572         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13573         (FRAME_SAVED_PC): Change to a function with predicate.
13574         * gdbarch.h, gdbarch.c: Re-generate.
13575
13576 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
13577
13578         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13579
13580         * complaints.c (complain): Delete function.
13581         * complaints.h (struct deprecated_complaint): Delete definition.
13582         (complain): Delete declaration.
13583
13584 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
13585
13586         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13587         dummy frames.
13588
13589 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
13590
13591         * sentinel-frame.h, sentinel-frame.c: New files.
13592         * Makefile.in (frame.o): Update dependencies.
13593         (SFILES): Add sentinel-frame.c.
13594         (sentinel_frame_h): Define.
13595         (COMMON_OBS): Add sentinel-frame.o.
13596         (sentinel-frame.o): Specify dependencies.
13597         * frame.c: Include "sentinel-frame.h".
13598         (frame_register_unwind): Rewrite assuming that there is always a a
13599         ->next frame.
13600         (frame_register, generic_unwind_get_saved_register): Ditto.
13601         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13602         (create_sentinel_frame, unwind_to_current_frame): New functions.
13603         (get_current_frame): Rewrite using create_sentinel_frame and
13604         unwind_to_current_frame.  When possible, always create a frame.
13605         (create_new_frame): Set next to the sentinel frame.
13606         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13607         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13608         ID cache when necessary.
13609         (frame_saved_regs_id_unwind): Use frame_relative_level.
13610         (deprecated_generic_get_saved_register): Use frame_relative_level,
13611         get_frame_saved_regs, get_frame_pc, get_frame_base and
13612         get_next_frame.
13613         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13614         frame_register.
13615
13616 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13617
13618         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13619
13620 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13621
13622         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13623         (maintenance_set_profile_cmd): Use error () instead of warning ().
13624
13625 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13626
13627         * configure.in: Check that -pg works if using --enable-profiling.
13628         Check for monstartup and _mcleanup regardless of --enable-profiling.
13629         * maint.c: Check for monstartup and _mcleanup before using them.
13630         * config.in: Regenerated.
13631         * configure: Regenerated.
13632
13633 2003-01-24  Nick Clifton  <nickc@redhat.com>
13634
13635         * Add sh2e support:
13636
13637         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13638
13639                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13640                 (sh2e_show_regs): New.
13641                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13642                 * config/sh/tm-sh.h: Added sh2e to comments.
13643
13644 2003-01-23  Jim Blandy  <jimb@redhat.com>
13645
13646         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13647         symbols found)" message here; we haven't checked for a separate
13648         debug info file yet, so we don't know yet.
13649         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13650         we've looked everywhere.  Also, there's no need to print a special
13651         message when we're loading the separate debug info file: the one
13652         symbol_file_add prints is fine.
13653
13654 2003-01-23  Alexander Larsson <alexl@redhat.com>
13655             Jim Blandy  <jimb@redhat.com>
13656
13657         Add support for executables whose debug info has been separated
13658         out into a separate file, leaving only a link behind.
13659         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13660         and separate_debug_objfile_backlink.
13661         (put_objfile_before): New declaration.
13662         * symfile.c: #include "filenames.h".
13663         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13664         debug info in a separate file, read that, too. Save the addrs
13665         argument, so we can use it again to read the separated debug info;
13666         syms_from_objfile modifies the table we pass it.
13667         (reread_symbols): After re-reading an objfile, call
13668         reread_separate_symbols to refresh its separate debug info
13669         objfile, if it has one.
13670         (reread_separate_symbols, find_separate_debug_file,
13671         get_debug_link_info, separate_debug_file_exists): New functions.
13672         (debug_file_directory): New global var.
13673         (_initialize_symfile): Initialize debug_file_directory, and
13674         provide the new `set debug-file-directory' command to let the user
13675         change it.
13676         * objfiles.c (free_objfile): If this objfile has its debug info in
13677         a separate objfile, free that one too.  If this is itself a
13678         separate debug info objfile, clear our parent's backlink.
13679         (put_objfile_before): New function.
13680         * utils.c (gnu_debuglink_crc32): New function.
13681         * defs.h (gnu_debuglink_crc32): New declaration.
13682         * Makefile.in (symfile.o): Note dependency on "filenames.h".
13683         * configure.in: Handle --with-separate-debug-dir config option.
13684         * acinclude.m4 (AC_DEFINE_DIR): New macro.
13685         * acconfig.h (DEBUGDIR): New macro.
13686         * configure, aclocal.m4, config.in: Regenerated.
13687
13688 2003-01-22  Jim Blandy  <jimb@redhat.com>
13689
13690         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13691         like the old symbol_file_add, but taking new arguments: you can
13692         now pass in either a `struct section_addr_info' list to say where
13693         each section is loaded, or a `struct section_offsets' table.  Pass
13694         these new arguments through to syms_from_objfile as appropriate.
13695         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13696         with the appropriate quiescent values for the new arguments.
13697
13698         * symfile.c: #include "gdb_assert.h".
13699         (syms_from_objfile): Add the ability to pass in a section offset
13700         table directly, as an alternative to the section_addr_info table.
13701         Document arguments better.
13702         (symbol_file_add): Pass extra arguments to syms_from_objfile.
13703         * symfile.h (syms_from_objfile): Update declaration.
13704         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13705         syms_from_objfile.
13706         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13707
13708 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
13709
13710         Original patch by Tom Tromey <tromey@cygnus.com> and
13711         Jason Molenda <jmolenda@apple.com>.
13712         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13713         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13714         * NEWS: Mention profiling.
13715         * configure.in (--enable-gdbtk): Fix typo.
13716         (--enable-profiling): New.  Set PROFILE_CFLAGS.
13717         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13718         Fill in function.
13719         (profiling_state): New variable.
13720         (mcleanup_wrapper): New function.
13721         (_initialize_maint): Remove NOTYET, fix call to
13722         add_setshow_boolean_cmd for "maint set profile".
13723         * configure: Regenerated.
13724
13725 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
13726
13727         * Makefile.in (install-gdbtk): Install PNG images too.
13728
13729 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13730
13731         * exec.c (text_start): Delete global variable.
13732         (exec_file_attach): Make text_start local to the function.
13733         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13734         * valops.c (hand_function_call): Delete code that handles
13735         BEFORE_TEXT_END and AFTER_TEXT_END.
13736         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13737         of CALL_DUMMY_LOCATION.
13738         * gdbarch.c: Regenerate.
13739         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13740         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13741         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13742         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13743         (text_end): Delete extern declaration.
13744
13745 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
13746
13747         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13748         * blockframe.c (backtrace_below_main): Move to "frame.c".
13749         (frame_chain_valid): Delete check for backtrace_below_main.
13750         (_initialize_blockframe): Delete initialization, move ``set
13751         backtrace-below-main'' command to "frame.c".
13752         (do_flush_frames_sfunc): Delete function.
13753         * frame.c: Include "command.h" and "gdbcmd.h".
13754         (frame_type_from_pc): New function.
13755         (create_new_frame): Use frame_type_from_pc.
13756         (legacy_get_prev_frame): New function.
13757         (get_prev_frame): Rewrite.  When an old style frame, call
13758         legacy_get_prev_frame.  Otherwize, unwind the PC first.
13759         (_initialize_frame): Add ``set backtrace-below-main'' command.
13760         * Makefile.in (frame.o): Update dependencies.
13761
13762 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13763
13764         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13765         DEPRECATED_REGISTERS_INFO.
13766
13767 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13768
13769         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13770         Maintainers'.  Update `Various Maintainers'.
13771
13772 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13773
13774         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13775         * gdbarch.sh (POP_FRAME): Change to function with predicate.
13776         Suppress actual parameters when `-'.
13777         * gdbarch.h, gdbarch.c: Regenerate.
13778
13779 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13780
13781         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13782         code handling dummy frames.
13783
13784 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
13785
13786         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13787         (struct frame_unwind): Add field pop.
13788         * frame.h (frame_pop): Declare.
13789         * frame.c (frame_saved_regs_pop): New function.
13790         (trad_frame_unwinder): Add frame_saved_regs_pop.
13791         (frame_pop): New function.
13792         * dummy-frame.c (dummy_frame_pop): New function.
13793         (discard_innermost_dummy): New function.
13794         (generic_pop_dummy_frame): Use discard_innermost_dummy.
13795         (dummy_frame_unwind): Add dummy_frame_pop.
13796         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13797         * valops.c (hand_function_call): Ditto.
13798         * stack.c (return_command): Ditto.
13799
13800 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13801
13802         * cris-tdep.c: Fix function declaration indentation.
13803         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13804         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13805         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13806         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13807         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13808         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13809
13810 2003-01-18  Michael Chastain  <mec@shout.net>
13811
13812         * README (Unpacking and Installation -- quick overview):
13813         Warn against ".../gdb-5.3/gdb/configure".
13814
13815 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13816
13817         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13818         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13819         (struct frame_unwind): Declare opaque.
13820         (dummy_frame_p): Declare function.
13821         * dummy-frame.c (dummy_frame_id_unwind): Make static.
13822         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13823         * dummy-frame.c: Include "frame-unwind.h".
13824         (dummy_frame_p): New function.
13825         (dummy_frame_unwind): New variable.
13826         * frame.c: Include "frame-unwind.h".
13827         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13828         to use the new unwind field.
13829         (set_unwind_by_pc): Delete function.
13830         (create_new_frame, get_prev_frame): Set unwind field using
13831         frame_unwind_find_by_pc.
13832         (trad_frame_unwind, trad_frame_unwinder): New variables.
13833         * frame.h (trad_frame_unwind): Declare variable.
13834         (frame_id_unwind_ftype): Delete declaration.
13835         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13836         (struct frame_unwind): Declare opaque.
13837         (struct frame_info): Replace the fields id_unwind, pc_unwind and
13838         register_unwind with a single unwind pointer.
13839         * frame-unwind.h, frame-unwind.c: New files.
13840         * Makefile.in (SFILES): Add frame-unwind.c.
13841         (frame_unwind_h): Define.
13842         (COMMON_OBS): Add frame-unwind.o.
13843         (frame-unwind.o): Specify dependencies.
13844         (frame.o, dummy-frame.o): Update dependencies.
13845
13846 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
13847
13848         * ada-valprint.c: Eliminate PTR.
13849         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13850         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13851         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13852         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13853         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13854         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13855         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
13856
13857 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
13858
13859         * main.c (captured_main): Don't use PTR.
13860         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13861         * gdbtypes.c (lookup_primitive_typename): Ditto.
13862         (lookup_struct_elt_type): Ditto.
13863         * f-valprint.c (info_common_command): Ditto.
13864         (list_all_visible_commons): Ditto.
13865         * jv-typeprint.c (java_type_print_base): Ditto.
13866
13867         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13868         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13869         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
13870         i386-interix-nat.c and i386-interix-tdep.c.  Rename
13871         m68klinux-nat.c and m68klinux-tdep.c.  Rename
13872         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
13873         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
13874         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13875         * main.c (captured_main): Use xfree, not free.
13876
13877 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
13878
13879         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13880         ID back using a parameter.
13881         * frame.c (frame_id_unwind): Update call.
13882         (frame_saved_regs_id_unwind): Update.
13883         * dummy-frame.c (dummy_frame_id_unwind): Update function.
13884         * dummy-frame.h (struct frame_id): Add opaque declaration.
13885         (dummy_frame_id_unwind): Update declaration.
13886
13887 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
13888
13889         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13890
13891 2003-01-15  Stephen P. Smith <ischis2@cox.net>
13892
13893         * MAINTAINERS (Stephen P. Smith): Updated email address.
13894
13895 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
13896
13897         Fix PR gdb/898
13898         * breakpoint.c (until_break_command): Add new argument.  Use it to
13899         decide whether to stop only at the current frame or not.
13900         * breakpoint.h (until_break_command): Update prototype.
13901         * infcmd.c (until_command): Add new argument to until_break_command
13902         call.
13903         (advance_command): New function.
13904         (_initialize_infcmd): Update help string for 'until' command.
13905         Add new 'advance' command.
13906
13907 2003-01-14  David Carlton  <carlton@math.stanford.edu>
13908
13909         * linespec.c (decode_line_1): Normalize comments.
13910         (set_flags): Ditto.
13911         (locate_first_half): Ditto.
13912         (decode_compound): Ditto.
13913         (symtab_from_filename): Ditto.
13914         (decode_all_digits): Ditto.
13915         (decode_dollar): Ditto.
13916         (find_methods): Ditto.
13917         (find_toplevel_char): Ditto.
13918
13919 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13920
13921         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13922         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13923         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13924         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13925         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13926         * language.c, language.h, m32r-tdep.c: Update copyright.
13927         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13928         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13929         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13930         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13931         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13932         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13933
13934 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13935
13936         * stabsread.h (process_later, resolve_cfront_continuation):
13937         Obsolete.
13938         Update copyright years.
13939         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13940         Update copyright year.
13941         * dbxread.c(struct cont_elem): Obsolete.
13942         (process_later, process_now): Obsolete functions.
13943         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13944         Update copyright year.
13945         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13946         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13947         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
13948         (parse_partial_symbols): Obsolete cfront support.
13949         * stabsread.c
13950         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
13951         macros.
13952         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
13953         read_cfront_baseclasses, read_cfront_member_functions,
13954         resolve_cfront_continuation,read_cfront_static_fields,
13955         copy_cfront_struct_fields): Obsolete functions.
13956         (define_symbol, read_one_struct_field): Obsolete cfront support.
13957         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
13958         Update Copyright year.
13959
13960 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
13961
13962         * stack.c (print_frame_info, print_stack_frame_base_stub,
13963         print_stack_frame_base, show_and_print_stack_frame_stub,
13964         show_and_print_stack_frame, print_only_stack_frame_stub,
13965         print_only_stack_frame): Delete functions.
13966         (print_stack_frame_stub): Call print_frame_info instead of
13967         print_frame_info_base.
13968         (print_frame_info_base): Rename to print_frame_info.
13969         (backtrace_command_1): Call print_frame_info, instead of
13970         print_frame_info_base.
13971         (current_frame_command): Call print_stack_frame, instead of
13972         print_only_stack_frame.
13973         (frame_command): Call print_stack_frame, instead of
13974         show_and_print_stack_frame.
13975         (up_command): Ditto.
13976         (down_command): Ditto.
13977         * frame.h (print_only_stack_frame): Delete prototype.
13978         * infrun.c (normal_stop): Call print_stack_frame, instead of
13979         show_and_print_stack_frame.
13980         * thread.c (info_threads_command): Call print_stack_frame, instead
13981         of print_only_stack_frame.
13982
13983 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
13984
13985         * README (Graphical interface to GDB): Update URL.  Point at
13986         gdb/links/.
13987
13988         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
13989         version match.
13990
13991 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13992
13993         * symtab.c (find_pc_sect_line): Don't consider end-of-function
13994         lines.
13995
13996 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
13997
13998         * thread-db.c (attach_thread): Prototype.
13999         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
14000         thread information (ti), and valid flags (th_valid, ti_valid).
14001         (attach_thread): Move target_pid_to_str call to after the thread
14002         is added to GDB's list.  Initialize the cache.
14003         (thread_get_info_callback, thread_db_map_id2thr)
14004         (thread_db_get_info): New functions.
14005         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14006         (thread_db_store_registers, thread_db_thread_alive)
14007         (thread_db_get_thread_local_address): Use them.
14008         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
14009         of calling error() for threads in unknown state.
14010
14011         (clear_lwpid_callback): New function.
14012         (thread_db_resume): Use it to clear the cache.
14013
14014 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14015
14016         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14017         (resume_callback): Remove dead code.
14018
14019 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14020
14021         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14022         predicate.
14023         * gdbarch.h, gdbarch.c: Regenerate.
14024         * stack.c (frame_info): Only initialize the saved registers when
14025         FRAME_INIT_SAVED_REGS_P.
14026         * frame.c (frame_saved_regs_register_unwind): Assert
14027         FRAME_INIT_SAVED_REGS_P.
14028         (deprecated_generic_get_saved_register): Ditto.
14029
14030 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14031
14032         * source.c (openp): Squelch warning about "filename".
14033
14034 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14035
14036         * source.c (openp): If the file does not exist don't necessarily
14037         search the path.
14038
14039 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14040
14041         Fix PR gdb/872.
14042         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14043         (integer_types_same_name_p): New function.
14044         (rank_one_type): Use it.
14045         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14046
14047 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14048
14049         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14050         variables.
14051         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14052         * configure.in: Add --with-sysroot.
14053         * configure: Regenerated.
14054         * main.c (gdb_sysroot): New variable.
14055         (captured_main): Initialize gdb_sysroot.
14056         * defs.h (gdb_sysroot): New extern declaration.
14057         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14058
14059 2003-01-12  Michael Chastain  <mec@shout.net>
14060
14061         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14062
14063 2003-01-12  Michael Chastain  <mec@shout.net>
14064
14065         * top.c (print_gdb_version): Bump copyright year to 2003.
14066
14067 2003-01-12  David Carlton  <carlton@bactrian.org>
14068
14069         * linespec.c (symtab_from_filename): Rename variable 's' to
14070         'file_symtab'.
14071
14072 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14073
14074         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14075         dummy frame.
14076         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14077
14078 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14079
14080         * d10v-tdep.c: Include "gdb_assert.h".
14081         (d10v_store_return_value): Rewrite to match current interface.
14082         (d10v_extract_struct_value_address): Ditto.
14083         (d10v_extract_return_value): Ditto.
14084         (d10v_gdbarch_init): Set store_restore_value,
14085         extract_struct_value_address and extract_return_value.
14086
14087 2003-01-12  J. Brobecker  <brobecker@gnat.com>
14088
14089         * hpread.c (set_namestring): New procedure replacing the
14090         SET_NAMESTRING macro.
14091         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14092         by calls to set_namestring.
14093
14094 2003-01-11  J. Brobecker  <brobecker@gnat.com>
14095
14096         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14097         a compilation warning.
14098         (hpread_process_one_debug_symbol): Likewise.
14099
14100 2003-01-10  David Carlton  <carlton@math.stanford.edu>
14101
14102         * linespec.c (decode_line_1): Rename variable 's' to
14103         'file_symtab'.
14104         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14105         (decode_dollar): Ditto.
14106         (decode_variable): Ditto.
14107         (symbol_found): Ditto.
14108
14109 2003-01-09  Michael Chastain  <mec@shout.net>
14110
14111         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14112
14113 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
14114
14115         * win32-nat.c (set_process_privilege): New function.
14116         (child_attach): Call set_process_privilege() to enable the
14117         SE_DEBUG_NAME user privilege if available in process token.
14118
14119 2003-01-10  J. Brobecker  <brobecker@gnat.com>
14120
14121         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14122         compilation error in the previous revision.
14123
14124 2003-01-09  David Carlton  <carlton@math.stanford.edu>
14125
14126         * linespec.c: Update copyright.
14127
14128 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
14129
14130         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14131         than inferior_ptid.
14132         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14133
14134 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
14135
14136         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14137         Update comments.
14138         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14139         (frame_saved_regs_zalloc): Update.
14140         (frame_saved_regs_register_unwind): Update.
14141         (create_new_frame): Update.
14142         (get_prev_frame): Update.
14143         (frame_extra_info_zalloc): Update.
14144         (deprecated_get_frame_saved_regs): Update.
14145         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14146         * cris-tdep.c: Update comment.
14147
14148         * somsolib.h: Fix function indentation.
14149         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14150         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14151         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14152         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14153         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14154
14155         * infrun.c (follow_fork): Use ISO C definition.
14156         * expprint.c (print_subexp): Use xfree instead of free.
14157         * charset.c: Include "gdb_string.h" instead of <string.h>.
14158         (register_iconv_charsets): Use ISO C definition.
14159         (host_charset, target_charset): Ditto.
14160         * Makefile.in (charset.o): Update dependencies.
14161         (mi-cmd-env.o): Update dependencies.
14162
14163 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14164
14165         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14166         get_frame_base.
14167
14168 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14169
14170         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14171         build directories.  Save edited gdb output in Mbuild.log.  If a
14172         build fails, remove any final GDB executable.
14173
14174 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14175
14176         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14177         replacing hex constants with function names and stripping leading
14178         file name directory prefixes.
14179
14180 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14181
14182         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14183         get_frame_base.
14184
14185 2003-01-08  David Carlton  <carlton@math.stanford.edu>
14186
14187         * linespec.c (decode_line_1): Move code into decode_variable.
14188         (decode_variable): New function.
14189
14190 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14191
14192         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14193
14194 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14195
14196         * cris-tdep.c (cris_frame_init_saved_regs): Use
14197         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14198         saved_regs buffer.
14199         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14200         (sh64_nofp_frame_init_saved_regs): Ditto.
14201         (sh_fp_frame_init_saved_regs): Ditto.
14202         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14203         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14204         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14205         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14206
14207 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
14208
14209         * minsyms.c (lookup_minimal_symbol): Update comment.
14210         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14211         (lookup_minimal_symbol_solib_trampoline): Likewise.
14212
14213 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14214
14215         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14216         frame_relative_level.
14217
14218         * alpha-tdep.c: Use get_frame_extra_info.
14219         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14220         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14221         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14222         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14223
14224         * alpha-tdep.c: Use get_next_frame.
14225         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14226         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14227         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14228         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14229         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14230         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14231         * xstormy16-tdep.c: Ditto.
14232
14233 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14234
14235         * alpha-tdep.c: Use get_frame_base.
14236         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14237         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14238         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14239         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14240         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14241         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14242         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14243         * config/sparc/tm-sparc.h: Ditto.
14244
14245 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14246
14247         * frame.c (deprecated_get_frame_context): New function.
14248         (deprecated_set_frame_context): New function.
14249         * frame.h (deprecated_get_frame_context): Declare.
14250         (deprecated_set_frame_context): Declare.
14251         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14252         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14253
14254 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14255
14256         * frame.c (deprecated_set_frame_next_hack): New function.
14257         (deprecated_set_frame_prev_hack): New function.
14258         * frame.h (deprecated_set_frame_next_hack): Declare.
14259         (deprecated_set_frame_prev_hack): Declare.
14260         * mcore-tdep.c (analyze_dummy_frame): Use
14261         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14262         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14263
14264 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14265
14266         * linespec.c (decode_line_1): Move code into decode_dollar.
14267         (decode_dollar): New function.
14268
14269 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14270
14271         * arm-tdep.c (arm_init_extra_frame_info): Use
14272         deprecated_update_frame_base_hack.
14273         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14274         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14275         (fix_frame_pointer): Ditto.
14276         (mn10300_analyze_prologue): Ditto.
14277
14278 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14279
14280         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14281         extra_info using frame_extra_info_zalloc.
14282         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14283         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14284         (sh64_init_extra_frame_info): Ditto.
14285         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14286         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14287         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14288         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14289         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14290         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14291         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14292         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14293         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14294         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14295         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14296         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14297
14298         * mn10300-tdep.c (analyze_dummy_frame): Use
14299         deprecated_set_frame_extra_info_hack.
14300         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14301
14302 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14303
14304         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14305         class is not scText. These do not define "real" procedures.
14306         (parse_partial_symbols): Likewise.
14307
14308 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14309
14310         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14311
14312 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14313
14314         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14315         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14316         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14317         deprecated_frame_xmalloc_with_cleanup.
14318         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14319         deprecated_frame_xmalloc.
14320         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14321         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14322
14323 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14324
14325         * x86-64-linux-tdep.c: Include "osabi.h".
14326         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14327
14328         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14329
14330 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14331
14332         * MAINTAINERS (Target Instruction Set Architectures): Update
14333         arm-elf.  Can be built with -Werror, has been multiarched.
14334
14335         * value.h (unpack_long): Make buffer parameter constant.
14336         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14337         * scm-lang.h (scm_parse): Ditto.
14338         * defs.h (extract_typed_address, extract_address): Ditto.
14339         (extract_long_unsigned_integer): Ditto.
14340         * inferior.h (unsigned_pointer_to_address): Ditto.
14341         (signed_pointer_to_address): Ditto.
14342         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14343         * gdbarch.h, gdbarch.c: Regenerate.
14344         * findvar.c (extract_long_unsigned_integer): Update.
14345         (extract_address): Update.
14346         (extract_typed_address): Update.
14347         (unsigned_pointer_to_address): Update.
14348         * values.c (unpack_long): Update.
14349         (unpack_double): Update.
14350         (unpack_pointer): Update.
14351         (unpack_field_as_long): Update.
14352         * d10v-tdep.c (d10v_pointer_to_address): Update.
14353         * avr-tdep.c (avr_pointer_to_address): Update.
14354         * scm-lang.c (scm_unpack): Update.
14355         * findvar.c (signed_pointer_to_address): Update.
14356
14357 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14358
14359         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14360         since it is in i386-tdep.c.
14361
14362 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14363
14364         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14365         failure introduced in the previous change.
14366
14367 2003-01-05  Michael Chastain  <mec@shout.net>
14368
14369         * README: Remove references to deleted remote-*.c files:
14370         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14371         remote-nrom.c, remote-os9k.c, remote-udi.c.
14372
14373 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14374
14375         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14376         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14377         i386_get_longjmp_target.
14378
14379 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14380
14381         * arm-tdep.c (prologue_cache): Change to a pointer.
14382         (_initialize_arm_tdep): Allocate prologue_cache.
14383         (check_prologue_cache): Update.
14384         (save_prologue_cache): Update.
14385         (arm_gdbarch_init): Update.
14386
14387 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14388
14389         * stabsread.c (update_method_name_from_physname): Call complaint()
14390         instead of error.
14391
14392 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14393
14394         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14395         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14396         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14397
14398         * blockframe.c: Include "gdbcmd.h" and "command.h".
14399         (backtrace_below_main): New variable.
14400         (file_frame_chain_valid, func_frame_chain_valid)
14401         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14402         (generic_func_frame_chain_valid): Remove functions.
14403         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14404         (_initialize_blockframe): New function.
14405         * Makefile.in (blockframe.o): Update dependencies.
14406         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14407         comment.  Call frame_chain_valid ().
14408         * frame.h: Remove old prototypes.  Add prototype for
14409         frame_chain_valid and update comments to match.
14410         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14411         Remove old comment.
14412         * gdbarch.h: Regenerated.
14413         * gdbarch.c: Regenerated.
14414
14415         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14416         set_gdbarch_frame_chain_valid.
14417         * avr-tdep.c (avr_gdbarch_init): Likewise.
14418         * cris-tdep.c (cris_gdbarch_init): Likewise.
14419         * frv-tdep.c (frv_gdbarch_init): Likewise.
14420         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14421         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14422         (i386_nw_init_abi): Likewise.
14423         (i386_gdbarch_init): Likewise.
14424         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14425         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14426         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14427         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14428         * mips-tdep.c (mips_gdbarch_init): Likewise.
14429         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14430         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14431         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14432         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14433         * s390-tdep.c (s390_gdbarch_init): Likewise.
14434         * sh-tdep.c (sh_gdbarch_init): Likewise.
14435         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14436         * v850-tdep.c (v850_gdbarch_init): Likewise.
14437         * vax-tdep.c (vax_gdbarch_init): Likewise.
14438         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14439
14440         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14441         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14442         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14443         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14444         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14445         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14446         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14447         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14448
14449 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14450
14451         * Makefile.in (acconfig_h): Remove incorrect macro.
14452         (config_h): Define.
14453         (osabi.o): Update dependencies.
14454         * configure.tgt: Set gdb_osabi based on target triplet.
14455         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14456         * configure: Regenerated.
14457         * config.in: Regenerated.
14458         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14459         (GDB_OSABI_DEFAULT): Define if not already defined.
14460         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14461         (set_osabi_string): New variables.
14462         (gdbarch_register_osabi): Add new OS ABI to
14463         gdb_osabi_available_names.
14464         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14465         (set_osabi, show_osabi): New functions.
14466         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14467
14468 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14469
14470         * arch-utils.c (gdbarch_info_init): Set osabi to
14471         GDB_OSABI_UNINITIALIZED.
14472         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14473         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14474         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14475         * gdbarch.c: Regenerated.
14476         * gdbarch.h: Regenerated.
14477         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14478         there's no BFD.
14479         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14480         * osabi.h (enum gdb_osabi): Move to defs.h.
14481         (gdbarch_init_osabi): Update prototype.
14482         * defs.h (enum gdb_osabi): Moved here.
14483         * Makefile.in: Update dependencies.
14484
14485         * alpha-tdep.h: Don't include "osabi.h".
14486         (struct gdbarch_tdep): Remove osabi member.
14487         * alpha-tdep.c: Include "osabi.h".
14488         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14489         iterate over arches.  Update call to gdbarch_init_osabi.
14490         (alpha_dump_tdep): Don't dump osabi.
14491         * alpha-linux-tdep.c: Include "osabi.h".
14492         * alpha-osf1-tdep.c: Include "osabi.h".
14493         * alphafbsd-tdep.c: Include "osabi.h".
14494         * alphanbsd-tdep.c: Include "osabi.h".
14495
14496         * arm-tdep.h: Don't include "osabi.h".
14497         (struct gdbarch_tdep): Remove osabi member.
14498         * arm-tdep.c: Include "osabi.h".
14499         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14500         iterate over arches.  Update call to gdbarch_init_osabi.
14501         (arm_dump_tdep): Don't dump osabi.
14502         * arm-linux-tdep.c: Include "osabi.h".
14503         * armnbsd-tdep.c: Include "osabi.h".
14504
14505         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14506         Update call to gdbarch_init_osabi.
14507
14508         * i386-tdep.h: Don't include "osabi.h".
14509         (struct gdbarch_tdep): Remove osabi member.
14510         * i386-tdep.c: Include "osabi.h".
14511         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14512         iterate over arches.  Update call to gdbarch_init_osabi.
14513         (i386_dump_tdep): Don't dump osabi.
14514         * i386-linux-tdep.c: Include "osabi.h".
14515         * i386-sol2-tdep.c: Include "osabi.h".
14516         * i386bsd-tdep.c: Include "osabi.h".
14517         * i386gnu-tdep.c: Include "osabi.h".
14518         * i386ly-tdep.c: Include "osabi.h".
14519         * i386nbsd-tdep.c: Include "osabi.h".
14520         * i386obsd-tdep.c: Include "osabi.h".
14521
14522         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14523         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14524         check osabi when iterating over arches.  Update call to
14525         gdbarch_init_osabi.
14526         (mips_dump_tdep): Don't dump osabi.
14527
14528         * ns32k-tdep.h: Don't include "osabi.h".
14529         (struct gdbarch_tdep): Remove.
14530         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14531         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14532         allocate tdep.  Update call to gdbarch_init_osabi.
14533         (ns32k_dump_tdep): Remove.
14534         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14535         * ns32knbsd-tdep.c: Include "osabi.h".
14536
14537         * ppc-tdep.h: Don't include "osabi.h".
14538         (struct gdbarch_tdep): Remove osabi member.
14539         * rs6000-tdep.c: Include "osabi.h".
14540         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14541         osabi when iterating over arches.  Update call to
14542         gdbarch_init_osabi.
14543         (rs6000_dump_tdep): Don't dump osabi.
14544         * ppc-linux-tdep.c: Include "osabi.h".
14545         * ppcnbsd-tdep.c: Include "osabi.h".
14546
14547         * sh-tdep.h: Don't include "osabi.h".
14548         (struct gdbarch_tdep): Remove osabi member.
14549         * sh-tdep.c: Include "osabi.h".
14550         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14551         iterate over arches.  Update call to gdbarch_init_osabi.
14552         (sh_dump_tdep): Don't dump osabi.
14553         * shnbsd-tdep.c: Include "osabi.h".
14554
14555         * sparc-tdep.c: Include "osabi.h".
14556         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14557         iterate over arches.  Update call to gdbarch_init_osabi.
14558         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14559         tdep structure.
14560
14561         * vax-tdep.h: Don't include "osabi.h".
14562         (struct gdbarch_tdep): Remove.
14563         * vax-tdep.c: Include "osabi.h".
14564         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14565         iterate over arches.  Don't allocate tdep.  Update call
14566         to gdbarch_init_osabi.
14567         (vax_dump_tdep): Remove.
14568         (_initialize_vax_tdep): Update call to gdbarch_register.
14569
14570 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14571
14572         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14573         entirely.
14574         (breakpoint_re_set_one): Don't fetch the value for a disabled
14575         watchpoint.
14576
14577 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14578
14579         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14580         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14581         (COERCE_FLOAT_TO_DOUBLE): Remove.
14582         * gdbarch.c: Regenerate.
14583         * gdbarch.h: Regenerate.
14584         * Makefile.in: Remove value_h from gdbarch_h.
14585         * valops.c (coerce_float_to_double): New variable.
14586         (default_coerce_float_to_double): Remove.
14587         (standard_coerce_float_to_double): Remove.
14588         (value_arg_coerce): Use coerce_float_to_double.
14589         (_initialize_valops): Add "set coerce-float-to-double".
14590         * value.h (default_coerce_float_to_double): Remove prototype.
14591         (standard_coerce_float_to_double): Remove prototype.
14592
14593         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14594         prototyped.
14595         * mdebugread.c (parse_symbol): Likewise.
14596         * stabsread.c (define_symbol): Mark all functions as prototyped.
14597
14598         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14599         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14600         set_gdbarch_coerce_float_to_double.
14601         * arm-tdep.c (arm_gdbarch_init): Likewise.
14602         * frv-tdep.c (frv_gdbarch_init): Likewise.
14603         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14604         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14605         * mips-tdep.c (mips_gdbarch_init): Likewise.
14606         (mips_coerce_float_to_double): Remove.
14607         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14608         (rs6000_coerce_float_to_double): Remove.
14609         * s390-tdep.c (s390_gdbarch_init): Likewise.
14610         * sh-tdep.c (sh_gdbarch_init): Likewise.
14611         (sh_coerce_float_to_double): Remove.
14612         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14613         (sparc_coerce_float_to_double): Remove.
14614         * v850-tdep.c (v850_gdbarch_init): Likewise.
14615         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14616         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14617         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14618         (hppa_coerce_float_to_double): Remove prototype.
14619         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14620
14621 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14622
14623         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14624
14625 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14626
14627         Suggested by Stewart Brown <sb24@avaya.com>:
14628         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14629         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14630         (c_type_print_varspec_suffix): Likewise.
14631
14632 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14633
14634         * configure.in: Don't set and AC_SUBST SUBDIRS.
14635         * configure: Regenerated.
14636
14637         * configure.in: Remove code dealing with shared libraries.
14638         * Makefile.in: Remove HLDFLAGS and HLDENV.
14639         * configure: Regenerated.
14640
14641 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14642
14643         * frame.c (deprecated_frame_xmalloc): New function.
14644         (deprecated_set_frame_saved_regs_hack): New function.
14645         (deprecated_set_frame_extra_info_hack): New function.
14646         * frame.h (deprecated_frame_xmalloc): Declare.
14647         (deprecated_set_frame_saved_regs_hack): Declare.
14648         (deprecated_set_frame_extra_info_hack): Declare.
14649
14650 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14651
14652         * configure.in: Move code that provides the --enable-gdbtk option
14653         right after the code that handles the --enable-tui option, and
14654         polish it somewhat.
14655         * configure: Regenerated.
14656
14657         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14658         AC_CHECK_FUNCS and remove the old check for pread64.
14659         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14660         * acconfig.h (_GNU_SOURCE): Add.
14661         (HAVE_PREAD64): Remove.
14662         * configure, aclocal.m4, config.in: Regenerated.
14663
14664 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
14665
14666         * alpha-tdep.c: Use get_frame_saved_regs.
14667         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14668         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14669         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14670         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14671         * vax-tdep.c, xstormy16-tdep.c: Ditto.
14672
14673 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14674
14675         * configure.in: Remove all use of the SUBDIRS variable; add
14676         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
14677         code providing the --enable-multi-ice option, and move it right in
14678         front of the code that checks whether gdbserver is supported.
14679         Polish that too.
14680         * configure: Regenerated.
14681         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14682         @SUBDIRS@.
14683
14684 2003-01-03  Andrew Cagney  <cagney@redhat.com>
14685
14686         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14687         * avr-tdep.c, cris-tdep.c: Ditto.
14688         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14689         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14690
14691 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14692
14693         * configure.in: Remove --enable-netrom option.
14694         * configure: Regenerated.
14695
14696 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
14697
14698         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14699         declaration for `struct re_pattern_buffer' instead.
14700         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14701
14702 2003-01-03  J. Brobecker  <brobecker@gnat.com>
14703
14704         * mdebugread.c (parse_symbol): Count until the stEnd matching
14705         the structure name.
14706
14707 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14708
14709         * configure.in: Remove --with-cpu option.
14710         subscripts.  Remove evil changequotes here.
14711         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14712         * config.in, configure: Regenerated.
14713
14714         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14715         * configure.in: Cleanup section that sources GDB and BFD configure
14716         subscripts.  Remove evil changequotes here.
14717         * config.in, configure: Regenerated.
14718
14719 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14720
14721         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14722         frame accessor methods.
14723         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14724         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14725         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14726         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14727         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14728         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14729         * z8k-tdep.c: Ditto.
14730
14731 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14732
14733         * configure.in: Remove UI_OUT configuration code.
14734         * ada-lang.c: Update assuming UI_OUT is always true.
14735         * Makefile.in (UIOUT_CFLAGS): Remove.
14736         * configure: Regenerated.
14737         * TODO: Remove blurb about elimination of -DUI_OUT.
14738
14739         * configure.in: Move code that provides the --enable-gdbcli,
14740         --enable-gdbmi options right before the code that handles the
14741         --enable-tui option.  Polish a bit.
14742         * configure: Regenerated.
14743
14744         * configure.in: Rewrite check for GNU regex and the
14745         --without-included regex option, and move it into the "Checks for
14746         library functions" section.  This makes us use the system regex
14747         again by default on systems with version 2 of the GNU C library.
14748         This was apparently broken.
14749         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14750         * acconfig.h (USE_INCLUDED_REGEX): Remove.
14751         * config.in, configure: Regenerated.
14752
14753         * configure.in: Move code that provides the --enable-tui option
14754         before the "Checks for libraries" section.  Polish the code
14755         somewhat and set need_curses to yes if we build the TUI.  Rewrite
14756         code that looks for a library providing termcap functionality to
14757         match more closely what's done in the Readline library, and move
14758         it into to the "Checks for libraries" section.
14759         * configure: Regenerated.
14760         * Makefile.in (TERMCAP): Remove variable.
14761         * config/i386/go32.mh (TERMCAP): Remove variable.
14762
14763 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14764
14765         * MAINTAINERS: Mention gdb_mbuild.sh.
14766         * gdb_mbuild.sh: Rewrite.
14767
14768 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14769
14770         * configure.in: Fix typo in last change.
14771         * config.in, configure: Regenerated.
14772
14773 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
14774
14775         * valarith.c (value_binop): Delete obsolete code and comments.
14776         * configure.host: Ditto.
14777         * buildsym.h (make_blockvector): Ditto.
14778         * buildsym.c (make_blockvector): Ditto.
14779         * defs.h (enum language): Ditto.
14780         (chill_demangle): Ditto.
14781         * elfread.c (elf_symtab_read): Ditto.
14782         * dwarfread.c (CHILL_PRODUCER): Ditto.
14783         (set_cu_language): Ditto.
14784         (handle_producer): Ditto.
14785         * expprint.c (print_subexp): Ditto.
14786         * gdbtypes.c (chill_varying_type): Ditto.
14787         * gdbtypes.h (builtin_type_chill_bool): Ditto.
14788         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14789         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14790         (chill_varying_type): Ditto.
14791         * language.h (_LANG_chill): Ditto.
14792         * language.c (binop_result_type, integral_type): Ditto.
14793         (character_type, string_type, structured_type): Ditto.
14794         (lang_bool_type, binop_type_check): Ditto.
14795         * stabsread.h (os9k_stabs): Ditto.
14796         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14797         (define_symbol, read_type, read_struct_fields): Ditto.
14798         (read_array_type, read_enum_type, read_huge_number): Ditto.
14799         (read_range_type, start_stabs): Ditto.
14800         * symfile.c (init_filename_language_table): Ditto.
14801         (add_psymbol_with_dem_name_to_list): Ditto.
14802         * symtab.c (symbol_init_language_specific): Ditto.
14803         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14804         * symtab.h (struct general_symbol_info): Ditto.
14805         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14806         * typeprint.c (typedef_print): Ditto.
14807         * utils.c (fprintf_symbol_filtered): Ditto.
14808         * valops.c (value_cast, search_struct_field, value_slice): Delete
14809         obsolete code.
14810         (varying_to_slice): Delete function.
14811         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14812         (varying_to_slice): Delete declaration.
14813         * MAINTAINERS: Update.
14814
14815 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
14816
14817         * configure.in: Reorganize "Checks for library functions section"
14818         a bit.  Remove check for `btowc' and `isascii' functions.
14819         * configure: Regenerated.
14820
14821         * acconfig.h (_MSE_INT_H): Remove.
14822         * configure.in: Create "Checks for header files" section, and move
14823         appropriate tests there.  Don't check for objlist.h, wchar.h,
14824         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
14825         misdetection fix.  Also add "Checks for types", "Checks for
14826         compiler characteristics" and "Checks for library functions"
14827         sections.
14828         * config.in, configure: Regenerated.
14829
14830         * configure.in: Create "Checks for programs" section, and move
14831         appropriate tests there.
14832
14833 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
14834
14835         * configure.in: Create "Checks for libraries" section, and move
14836         appropriate tests there.  Cleanup check for wctype in libw.  Use
14837         AC_SEARCH_LIBS to see whether we need libsocket.
14838         * configure: Regenerated.
14839
14840 For older changes see ChangeLog-2002
14841 \f
14842 Local Variables:
14843 mode: change-log
14844 left-margin: 8
14845 fill-column: 74
14846 version-control: never
14847 End: