OSDN Git Service

Fix GDB crash problem when object file of different H8 cpu is loaded
[pf3gnuchains/sourceware.git] / gdb / ChangeLog
1 2003-12-11  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
2
3         * config/h8300/tm-h8300.h (h8300hmode): Remove.
4         (h8300hmode): Likewise.
5         (h8300smode): Likewise.
6         (h8300sxmode): Likewise.
7         (h8300_normal_mode): Likewise.
8         (GDB_TARGET_IS_H8300): Likewise.
9         (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
10         * h8300-tdep.c (is_h8300hmode): New function.
11         (is_h8300smode): New function.
12         (is_h8300sxmode): New function.
13         (is_h8300_normal_mode): New function.
14         (BINWORD): Use new functions.
15         (h8300_examine_prologue): Likewise.
16         (h8300_print_register): Likewise.
17         (h8300_print_registers_info): Likewise.
18         (h8300_register_type): Likewise.
19         (h8300_gdbarch_init): Remove use of globals like h8300hmode.
20         * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
21         (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
22         (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
23
24 2003-12-10  J. Brobecker  <brobecker@gnat.com>
25
26         * frame.c (select_frame): Get the current frame PC using
27         get_frame_address_in_block() instead of get_frame_pc().
28         * stack.c (get_frame_language): Likewise.
29
30 2003-12-08  Kevin Buettner  <kevinb@redhat.com>
31
32         * remote.c (remote_open_1, remote_cisco_open): Avoid closing
33         remote_desc more than once.
34
35 2003-12-07  Andrew Cagney  <cagney@redhat.com>
36
37         * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
38         directly calling strcmp equivalents.  Add disclaimer.
39
40 2003-12-06  Andrew Cagney  <cagney@redhat.com>
41
42         * remote.c (remote_fetch_registers): For short packets, explicitly
43         supply a zero value.  Use regcache_raw_supply.  Fix suggested by
44         Jonathan Larmour.
45
46 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
47
48         * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
49         format to be the i387 extended float format which is used for
50         long doubles stored in memory. 
51
52 2003-12-05  Mark Kettenis  <kettenis@gnu.org>
53
54         From Ulrich Weigand  <weigand@informatik.uni-erlangen.de>:
55         * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
56         column instead of translating it.
57
58 2003-12-04  Michael Chastain  <mec.gnu@mindspring.com>
59
60         Partial fix for PR c++/1465.
61         Fix for PR c++/1377.
62         * cp-support.h (cp_lookup_rtti_type): New function.
63         * cp-support.c (cp_lookup_rtti_type): New function.
64         * gnu-v2-abi.c: Update copyright years.
65         (gnuv2_rtti_type): Call cp_lookup_rtti_type.
66         * gnu-v3-abi.c: Update copyright years.
67         (gnuv3_rtti_type): Call cp_lookup_rtti_type.
68
69 2003-12-04  J. Brobecker  <brobecker@gnat.com>
70
71         * stabsread.c (read_type): Save a reference to types that are defined
72         as cross references to other types.
73
74 2003-12-02  Roland McGrath  <roland@redhat.com>
75
76         * thread-db.c (enable_thread_event): Change return type to
77         td_err_e.  Return TD_OK or error code.
78         (enable_thread_event_reporting): Update callers.
79
80 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
81
82         * NEWS: Mention new C++ demangler code.
83
84 2003-12-03  Andrew Cagney  <cagney@redhat.com>
85
86         * ppc-linux-nat.c (store_register, fetch_register): Convert
87         between ptrace and regcache's wordsize.
88         (ppc_register_u_addr): Use the ptrace wordsize.
89
90 2003-12-02  Kevin Buettner  <kevinb@redhat.com>
91
92         * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
93
94 2003-12-02  Daniel Jacobowitz  <drow@mvista.com>
95
96         * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
97         (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
98         (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
99         (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
100         Delete.
101         (dwarf2_read_section): Remove offset and size arguments.  Use
102         bfd_get_section_size_before_reloc and sectp->filepos.
103         (dwarf2_has_info): Clear section variables instead of offsets.
104         (dwarf2_locate_sections): Don't initialize the deleted variables.
105         (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
106         (dwarf2_build_psymtabs_easy): Likewise.
107         * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
108         (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
109         declarations.
110         (dwarf2_read_section): Update prototype.
111         (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
112         Use bfd_get_section_size_before_reloc instead of global size
113         variables.
114
115 2003-12-01  Michael Chastain  <mec.gnu@mindspring.com>
116
117         * dwarfread.c: Update documentation on the state of dwarf-1.
118
119 2003-12-01  Andrew Cagney  <cagney@redhat.com>
120
121         Obsolete old MIPS SVr3 and SVr4 systems.
122         * NEWS: Mention obsoleted systems.
123         * configure.tgt: Mark mips*-*-sysv4* as obsolete.
124         * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
125         mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
126         obsolete.
127         * config/mips/decstation.mh: Mark as obsolete.
128         * config/mips/littlemips.mh: Mark as obsolete.
129         * config/mips/nm-mips.h: Mark as obsolete.
130         * config/mips/xm-mips.h: Mark as obsolete.
131         * config/mips/news-mips.mh: Mark as obsolete.
132         * config/mips/nm-news-mips.h: Mark as obsolete.
133         * config/mips/riscos.mh: Mark as obsolete.
134         * config/mips/nm-riscos.h: Mark as obsolete.
135         * config/mips/xm-riscos.h: Mark as obsolete.
136         * config/mips/mipsv4.mt: Mark as obsolete.
137         * config/mips/tm-mipsv4.h: Mark as obsolete.
138         * config/mips/xm-mipsv4.h: Mark as obsolete.
139
140         Obsolete old m68k systems.
141         * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
142         m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
143         m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
144         m680[01]0-sun-sunos3* as obsolete.
145         * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
146         m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
147         m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
148         * config/m68k/sun3os4.mh: Mark file obsolete.
149         * config/m68k/xm-sun3os4.h: Mark file obsolete.
150         * config/m68k/sun3os3.mh: Mark file obsolete.
151         * config/m68k/nm-sun3.h: Mark file obsolete.
152         * config/m68k/xm-sun3.h: Mark file obsolete.
153         * config/m68k/sun2os4.mh: Mark file obsolete.
154         * config/m68k/sun2os3.mh: Mark file obsolete.
155         * config/m68k/nm-sun2.h: Mark file obsolete.
156         * config/m68k/xm-sun2.h: Mark file obsolete.
157         * config/m68k/m68kv4.mh: Mark file obsolete.
158         * config/m68k/nm-sysv4.h: Mark file obsolete.
159         * config/m68k/xm-m68kv4.h: Mark file obsolete.
160         * config/m68k/m68klynx.mh: Mark file obsolete.
161         * config/m68k/nm-m68klynx.h: Mark file obsolete.
162         * config/m68k/dpx2.mh: Mark file obsolete.
163         * config/m68k/xm-dpx2.h: Mark file obsolete.
164         * config/m68k/nm-dpx2.h: Mark file obsolete.
165         * config/m68k/delta68.mh: Mark file obsolete.
166         * config/m68k/xm-delta68.h: Mark file obsolete.
167         * config/m68k/nm-delta68.h: Mark file obsolete.
168         * config/m68k/3b1.mh: Mark file obsolete.
169         * config/m68k/xm-3b1.h: Mark file obsolete.
170         * config/m68k/sun3os4.mt: Mark file obsolete.
171         * config/m68k/tm-sun3os4.h: Mark file obsolete.
172         * config/m68k/sun3os3.mt: Mark file obsolete.
173         * config/m68k/tm-sun3.h: Mark file obsolete.
174         * config/m68k/sun2os4.mt: Mark file obsolete.
175         * config/m68k/tm-sun2os4.h: Mark file obsolete.
176         * config/m68k/sun2os3.mt: Mark file obsolete.
177         * config/m68k/tm-sun2.h: Mark file obsolete.
178         * config/m68k/m68kv4.mt: Mark file obsolete.
179         * config/m68k/tm-m68kv4.h: Mark file obsolete.
180         * config/m68k/m68klynx.mt: Mark file obsolete.
181         * config/m68k/tm-m68klynx.h: Mark file obsolete.
182         * config/m68k/dpx2.mt: Mark file obsolete.
183         * config/m68k/tm-dpx2.h: Mark file obsolete.
184         * config/m68k/delta68.mt: Mark file obsolete.
185         * config/m68k/tm-delta68.h: Mark file obsolete.
186         * config/m68k/3b1.mt: Mark file obsolete.
187         * config/m68k/tm-3b1.h: Mark file obsolete.
188
189 2003-11-29  Mark Kettenis  <kettenis@gnu.org>
190
191         * x86-64-tdep.c (MAX_CLASSES): Remove macro.
192         (x86_64_reg_class): Remove enum.
193         (merge_classes, classify_argument, examine_argument): Remove
194         functions.
195         (INT_REGS, SSE_REGS): Remove macros.
196         (x86_64_push_arguments): Remove function.
197         (amd64_push_arguments): New function.
198         (x86_64_push_dummy_call): Call amd64_push_arguments instead of
199         x86_64_push_arguments.
200
201 2003-11-28  Mark Kettenis  <kettenis@gnu.org>
202
203         * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
204         zero.  Reorganize code a bit.
205
206 2003-11-27  Mark Kettenis  <kettenis@gnu.org>
207
208         * dwarf2-frame.c: Fix another comment.
209
210         * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
211         (x86_64_use_struct_convention, x86_64_extract_return_value,
212         x86_64_store_return_value): Remove.
213         (amd64_reg_class): New enum.
214         (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
215         amd64_return_value): New functions.
216         (x86_64_init_abi): Don't set extract_return_value,
217         store_return_value and use_struct_convention.  Set return_value to
218         amd64_return_value.
219         * i387-tdep.h (i387_return_value): New prototype.
220         * i387-tdep.c (i387_return_value): New function.
221
222         * dwarf2-frame.c: Fix some comments and whitespace problems.
223
224         * i386nbsd-tdep.c: Don't include "gdbtypes.h".  Include
225         "gdb_assert.h" and "gdb_string.h".
226         (i386nbsd_r_reg_offset): Rename from regmap.
227         (SIZEOF_STRUCT_REG): Remove.
228         (i386nbsd_supply_reg, fetch_core_registers,
229         fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
230         Remove.
231         (i386nbsd_aout_supply_regset,
232         i386nbsd_aout_regset_from_core_section): New functions.
233         (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
234         (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
235         TDEP->gregset_num_regs amd sizeof_gregset.  Use ARRAY_SIZE to
236         initialize TDEP->sc_num_regs.
237         (i386nbsdaout_init_abi): New function.
238         (i386nbsdelf_init_abi): Remove initialization of
239         TDEP->num_xmm_regs.  Don't set num_regs here.
240         (_initialize_i386nbsd_tdep): Don't call add_core_fns.  Use
241         i386nbsd_aout_init to register NetBSD a.out OS/ABI.
242
243         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
244         .note.netbsdcore.procinfo section to recognize NetBSD core files.
245
246 2003-11-26  Michael Chastain  <mec.gnu@mindspring.com>
247
248         * cp-abi.c: Update copyright years.
249
250 2003-11-25  Andrew Cagney  <cagney@redhat.com>
251
252         * thread-db.c (enable_thread_event): New function.  Ensure that BP
253         is a code address.
254         (enable_thread_event_reporting): Use enable_thread_event.
255
256 2003-11-25  Michael Snyder  <msnyder@redhat.com>
257
258         * mips-tdep.c (mips_o64_extract_return_value): Correct for
259         NUM_REGS (see changes 2003-06-21).
260         (mips_eabi_extract_return_value): Ditto.
261
262 2003-11-25  Andrew Cagney  <cagney@redhat.com>
263
264         * infrun.c: Don't include "exec.h".
265         (handle_inferior_event): Pass current_target, instead of exec_ops,
266         to SOLIB_ADD.  Add comments.
267         * Makefile.in (infrun.o): Update dependencies.
268
269 2003-11-24  Daniel Jacobowitz  <drow@mvista.com>
270
271         * NEWS: Mention improved location expression support.
272
273 2003-11-23  Andrew Cagney  <cagney@redhat.com>
274
275         * Makefile.in (infrun.o): Update dependencies.
276         * infrun.c: Include "exec.h".
277         (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
278
279 2003-11-23  Andrew Cagney  <cagney@redhat.com>
280
281         * frame.c (frame_unwind_signed_register): Delete function.
282         * frame.h (frame_unwind_register_signed): Delete declaration.
283         * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
284
285         * arch-utils.h (generic_cannot_extract_struct_value_address):
286         Delete declaration.
287
288         * defs.h (DEPRECATED_STREQN): Rename STREQN.
289         (DEPRECATED_STREQ): Rename STREQ.
290         * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
291         * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
292         * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
293         * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
294         * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
295         * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
296         * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
297         * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
298         * source.c, sparc-tdep.c, stack.c, target.c: Update.
299
300         * symfile.c (symbol_file_command): Replace STREQ with strcmp.
301         * elfread.c (elf_symtab_read): Delete STREQ from comment.
302
303 2003-11-22  Andrew Cagney  <cagney@redhat.com>
304
305         * frame.c (deprecated_frame_xmalloc): Delete function.
306         (deprecated_set_frame_extra_info_hack): Delete function.
307         (deprecated_set_frame_saved_regs_hack): Delete function.
308         * frame.h (deprecated_frame_xmalloc): Delete declaration.
309         (deprecated_set_frame_extra_info_hack): Delete declaration.
310         (deprecated_set_frame_saved_regs_hack): Delete declaration.
311         * mcore-tdep.c (analyze_dummy_frame): Instead of
312         deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
313         and deprecated_set_frame_extra_info_hack use
314         deprecated_frame_xmalloc_with_cleanup.
315         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
316         * mips-tdep.c (mips_init_extra_frame_info): Delete call to
317         deprecated_set_frame_saved_regs_hack.
318
319         * mips-tdep.c (mips_frame_chain): Delete call to
320         deprecated_inside_entry_file.
321
322         * frame.h (deprecated_set_frame_next_hack): Delete declaration.
323         (deprecated_set_frame_prev_hack): Delete declaration.
324         * frame.c (deprecated_set_frame_next_hack): Delete function.
325         (deprecated_set_frame_prev_hack): Delete function.
326         * mcore-tdep.c (analyze_dummy_frame): Delete calls to
327         "deprecated_set_frame_next_hack" and
328         "deprecated_set_frame_prev_hack".
329         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
330
331         * mips-tdep.c (mips_register_convertible): Delete function.
332         (mips_register_convert_to_virtual): Delete function.
333         (mips_register_convert_to_raw): Delete function.
334         (mips_gdbarch_init): Do not set "deprecated_register_convertible",
335         "deprecated_register_convert_to_virtual", or
336         "deprecated_register_convert_to_raw".
337         (mips_pseudo_register_write, mips_pseudo_register_read): Handle
338         32/64 cooked to raw register conversions.
339
340         * frame.c (deprecated_get_frame_context): Delete function.
341         (deprecated_set_frame_context): Delete function.
342         (struct frame_info): Delete member "context".
343         * frame.h (deprecated_get_frame_context): Delete declaration.
344         (deprecated_set_frame_context): Delete declaration.
345
346         * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
347         * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
348         * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
349         * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
350
351         * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
352         (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
353         mips_regsize.
354         (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
355         * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
356         * config/mips/tm-irix5.h: Update copyright.
357         (SIGFRAME_REG_SIZE): Delete macro.
358
359         * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
360         * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
361         declaration.
362         (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
363         * infcall.c (call_function_by_hand): Delete #ifdef
364         DEPRECATED_VALUE_RETURNED_FROM_STACK code.
365         * infcmd.c (print_return_value): Ditto.
366
367         * mips-tdep.c (skip_prologue_using_sal): New function.
368         (mips32_skip_prologue, mips16_skip_prologue): Use
369         skip_prologue_using_sal to get an upper bound on the search.
370
371         * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
372         #if 0'ed macro.
373         * infrun.c (step_into_function): Delete #ifdef
374         PROLOGUE_FIRSTLINE_OVERLAP code.
375         * symtab.c (find_function_start_sal): Ditto.
376
377         * remote-rdp.c: Update copyright.
378         (rdp_init): #if 0 references to "target_byte_order".
379
380         * mips-tdep.c (mips_o32_store_return_value): Delete function.
381         (mips_o32_return_value): Replace mips_o32_xfer_return_value.
382         (mips_o32_extract_return_value): Delete function.
383         (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
384         (mips_n32n64_extract_return_value): Delete function.
385         (mips_n32n64_store_return_value): Delete function.
386         (mips_gdbarch_init): For o32 and n32n64, set "return_value"
387         instead of "store_return_value", "extract_return_value", and
388         "use_struct_convention".
389         (mips_n32n64_use_struct_convention): Delete function.
390
391 2003-11-21  Kevin Buettner  <kevinb@redhat.com>
392
393         * frv-tdep.c (frv_frame_this_id): Eliminate call to
394         inside_entry_func().
395
396 2003-11-20  Mark Kettenis  <kettenis@gnu.org>
397
398         * i386-tdep.c (i386_extract_return_value,
399         i386_store_return_value): Add gdbarch argument.  Use it instead of
400         determining it from REGCACHE.  Remove recursive call for
401         structures with a single member.
402         (i386_use_struct_convention): Remove.
403         (i386_reg_struct_return_p): New function.
404         (i386_return_value): New function.
405         (i386_gdbarch_init): Set return_value, don't set
406         extract_return_value, store_return_value and
407         use_struct_convention.
408         * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
409
410 2003-11-20  Jim Blandy  <jimb@redhat.com>
411
412         * osabi.c (_initialize_gdb_osabi): Don't return before registering
413         the 'set osabi' and 'show osabi' commands.
414
415 2003-11-19  Mark Kettenis  <kettenis@gnu.org>
416
417         * frame.c (get_prev_frame): Use result from
418         get_frame_address_in_block instead of get_frame_pc as argument to
419         inside_main_func.  Fixes PR backtrace/1435.
420
421 2003-11-19  Andrew Cagney  <cagney@redhat.com>
422
423         * stack.c (return_command): Handle "void", "legacy" and "unknown
424         location" return values separatly.
425         * values.c (using_struct_return): Return 0 for a "void" return
426         type.  Mention "register_value_being_returned".
427         (register_value_being_returned): Mention "using_struct_return".
428
429 2003-11-19  Daniel Jacobowitz  <drow@mvista.com>
430
431         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
432         (frame_base_offset): Delete.
433         (read_func_scope): Delete call to decode_locdesc.
434         (decode_locdesc): Update comments.  Don't set the removed variables.
435         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
436         DW_OP_fbreg support.
437
438 2003-11-18  Daniel Jacobowitz  <drow@mvista.com>
439
440         * dwarf2read.c (optimized_out, islocal): Remove.
441         (decode_locdesc): Update comments.  Don't set optimized_out
442         or islocal.
443
444 2003-11-17  Jeff Johnston  <jjohnstn@redhat.com>
445             David Mosberger  <davidm@hpl.hp.com>
446
447         * ia64-tdep.c: Include elf.h.
448         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
449         libunwind-ia64.h.
450         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
451         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
452         (ia64_is_fpreg, ia64_access_reg): Ditto.
453         (ia64_access_fpreg, ia64_access_mem): Ditto.
454         (get_kernel_table): Ditto.
455         (ia64_find_unwind_table): Ditto.
456         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
457         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
458         (ia64_libunwind_frame_prev_register): Ditto.
459         (ia64_libunwind_frame_sniffer): Ditto.
460         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
461         sniffer.  Register libunwind functions needed by generic
462         libunwind frame code using libunwind_frame_set_descr().
463
464 2003-11-16  Daniel Jacobowitz  <drow@mvista.com>
465
466         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
467         bp_shlib_disabled breakpoint if there is a shared library mapped
468         at its expected address.
469
470 2003-11-16  Andrew Cagney  <cagney@redhat.com>
471
472         * configure.tgt: Delete mips*tx39*-elf*.
473         * config/mips/tm-tx39.h: Delete file.
474         * config/mips/tx39.mt: Delete file.
475         * config/mips/tx39.mt: Delete file.
476
477         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
478         * remote-mips.c (common_open): Instead of
479         "mips_read_register_type" and "mips_set_processor_type_command"
480         call "deprecated_mips_set_processor_regs_hack".
481         * config/mips/tm-mips.h (mips_read_processor_type): Delete
482         declaration.
483         (mips_set_processor_type_command): Delete declaration.
484         * mips-tdep.c (mips_gdbarch_init): Update comment.
485         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
486         (mips_set_processor_type): Delete function.
487         (NUM_MIPS_PROCESSOR_REGS): Define.
488         (mips_show_processor_type_command): Delete function.
489         (mips_set_processor_type_command): Delete function.
490         (tmp_mips_processor_type): Delete.
491         (mips_processor_type): Delete.
492         (mips_processor_type_table): Delete.
493         (mips_r3051_reg_names): Delete.
494         (mips_r3081_reg_names): Delete.
495         (mips_lsi33k_reg_names): Delete.
496         (mips_processor_reg_names): Delete.
497         (mips_read_processor_type): Delete function.
498         (deprecated_mips_set_processor_regs_hack): New function.
499         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
500         (mips_register_name): Get the processor names from the tdep.
501         (mips_tx39_reg_names): New array.
502         (mips_generic_reg_names): Wire to a standard set of names.
503         (mips_gdbarch_init): Set "mips_processor_reg_names".
504         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
505         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
506         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
507
508 2003-11-16  Andrew Cagney  <cagney@redhat.com>
509
510         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
511         (mips_fpa0_regnum, mips_regnum): New function.
512         (mips_gdbarch_init): Fill in the "regnum" fields.
513         * mips-tdep.h (struct mips_regnum): Define.
514         (mips_regnum): Declare.
515         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
516         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
517         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
518         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
519         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
520         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
521         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
522         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
523         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
524         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
525         * remote-mips.c: Include "mips-tdep.h".  Update.
526         * mipsnbsd-tdep.c: Update.
527         * mipsv4-nat.c: Update.
528         * mips-tdep.c: Update.
529         * mips-nat.c: Update.
530         * mips-linux-tdep.c: Update.
531         * mips-linux-nat.c: Update.
532         * irix5-nat.c: Update.
533         * dve3900-rom.c: Include "mips-tdep.h".  Update.
534         (ignore_packet): Supress GCC warning.
535         * config/mips/nm-riscos.h: Update.
536
537 2003-11-16  Andrew Cagney  <cagney@redhat.com>
538
539         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
540         register_size.
541         (mips_register_raw_size): Delete function.
542         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
543         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
544         Check and set "mips64_transfers_32bit_regs_p".
545         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
546         (mips_register_convertible): Check the architecture's
547         "mips64_transfers_32bit_regs_p".
548         (set_mips64_transfers_32bit_regs): New function.
549         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
550         "set remote-mips64-transfers-32bit-regs" command.  Specify
551         set_mips64_transfers_32bit_regs as the set function.
552         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
553
554 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
555
556         * i386-tdep.h (i386_supply_gregset): Provide prototype.
557         * i386-tdep.c (i386_supply_gregset): Make public.
558
559 2003-11-16  Andrew Cagney  <cagney@redhat.com>
560
561         * mips-tdep.c (mips_register_byte): Delete function.
562         (mips_gdbarch_init): Do not set "deprecated_register_byte".
563         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
564         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
565         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
566
567 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
568
569         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
570
571 2003-11-16  Andrew Cagney  <cagney@redhat.com>
572
573         * config/mips/linux64.mt: Delete file.
574         * config/mips/tm-linux64.h: Delete file.
575         * config/mips/tm-mips64.h: Delete file.
576         * config/mips/embed64.mt: Delete file.
577         * config/djgpp/fnchange.lst: Update.
578         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
579         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
580         * config/mips/tm-irix6.h: Update copyright.  Include
581         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
582         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
583         "OP_LDGPR".
584
585 2003-11-15  Andrew Cagney  <cagney@redhat.com>
586
587         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
588         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
589         n32 registers 64 bit.
590         (mips_register_raw_size, mips_register_byte): For pseudo
591         registers, use the register's pseudo size and not the
592         corresponding raw register's size.
593         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
594         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
595         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
596         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
597
598 2003-11-15  Andrew Cagney  <cagney@redhat.com>
599
600         * mips-tdep.c (struct gdbarch_tdep): Delete member
601         gdb_target_is_mips64.
602         (GDB_TARGET_IS_MIPS64): Delete macro.
603         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
604         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
605         (mips_addr_bits_remove): Simplify.
606
607         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
608         register_size.
609
610         Replace MIPS_REGSIZE with mips_regsize.
611         * mips-tdep.c (mips_regsize): New function.
612         * mips-tdep.h (mips_regsize): Declare.
613         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
614         (SIZEOF_STRUCT_REG): Update.
615         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
616         (mipsnbsd_fill_reg): Update.
617         (mipsnbsd_supply_fpreg): Update.
618         (mipsnbsd_fill_fpreg): Update.
619         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
620         * mips-tdep.c (mips_register_raw_size): Update.
621         (mips_register_type): Update.
622         (SIGFRAME_BASE): Update.
623         (SIGFRAME_PC_OFF): Update.
624         (SIGFRAME_REGSAVE_OFF): Update.
625         (SIGFRAME_FPREGSAVE_OFF): Update.
626         (SIGFRAME_REG_SIZE): Update.
627         (mips32_heuristic_proc_desc): Update.
628         (print_gp_register_row): Update.
629         (mips_dump_tdep): Do not print MIPS_REGSIZE.
630         * irix5-nat.c (supply_gregset): Update.
631         (fetch_core_registers): Update.
632         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
633         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
634         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
635         (MIPS_REGISTER_BYTE): Update.
636         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
637
638 2003-11-15  Andrew Cagney  <cagney@redhat.com>
639
640         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
641         USE_REGISTER_NOT_ARG.
642         * stabsread.c (define_symbol): Update.
643
644 2003-11-15  Andrew Cagney  <cagney@redhat.com>
645
646         * bcache.h (deprecated_bcache): Declare.
647         (bcache): Make returned buffer constant.
648         * bcache.c (deprecated_bcache): New function.
649         (bcache_data): New function.
650         (bcache): Call bcache data.
651         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
652         (add_psymbol_with_dem_name_to_list): Ditto.
653
654 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
655
656         * glibc-tdep.h (struct gdbarch): Declare opaque.
657         (glibc_skip_solib_resolver): Adjust prototype.
658         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
659         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
660         (arm_linux_init_abi): Set skip_solib_resolver.
661         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
662         (i386_linux_init_abi): Set skip_solib_resolver.
663         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
664         (arm_linux_skip_solib_resolver): Remove prototype.
665         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
666         (i386_linux_skip_solib_resolver): Remove prototype.
667
668 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
669
670         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
671         function.
672         * gdbarch.c, gdbarch.h: Regenerate.
673         * infrun.c (handle_inferior_event): Call
674         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
675         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
676         definition.
677         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
678         prototype.
679
680 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
681
682         * libunwind-frame.c: New file.
683         * libunwind-frame.h: New file.
684         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
685         * configure.in: Add --with-libunwind option support.  Define
686         HAVE_LIBUNWIND if libunwind support selected / defaulted.
687         Also check for libunwind.h and libunwind-ia64.h headers.
688         * configure: Regenerated.
689         * Makefile.in: Add support for libunwind-frame.o.
690         * config.in: Regenerated.
691
692 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
693
694         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
695         set up the ia64 linux native target method for getting the kernel
696         unwind table.
697         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
698         * inftarg.c (child_xfer_partial): Enable section of code to
699         handle TARGET_OBJECT_UNWIND_TABLE.
700         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
701
702 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
703
704         * config/arm/nbsd.mt (TM_FILE): Define.
705         * config/arm/tm-nbsd.h: New file.
706
707 2003-11-14  Andrew Cagney  <cagney@redhat.com>
708
709         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
710         * ppc-sysv-tdep.c: Include "objfiles.h".
711         (ppc64_sysv_abi_push_dummy_call): Provide the
712         the FN's objfile when looking for the descriptor.
713
714         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
715         "name_of_malloc" to ".malloc".
716
717 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
718
719         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
720
721 2003-11-13  David Carlton  <carlton@kealia.com>
722
723         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
724
725 2003-11-13  Andrew Cagney  <cagney@redhat.com>
726
727         * arch-utils.h (selected_architecture_name): Declare.
728         (selected_byte_order): Declare.
729         * arch-utils.c (selected_byte_order): New function.
730         (selected_architecture_name): New function.
731         (target_architecture_auto): Make static.
732         (set_architecture_string): Make static.
733         (target_byte_order): Make static.
734         (target_byte_order_auto): Make static.
735         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
736         non-multi-arch definition.
737         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
738         (target_byte_order, target_architecture): Delete declaration.
739         (target_byte_order_auto, target_architecture_auto): Ditto.
740         * gdbarch.h: Re-generate.
741         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
742         "selected_byte_order".
743
744 2003-11-13  Andrew Cagney  <cagney@redhat.com>
745
746         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
747
748 2003-11-13  Jim Blandy  <jimb@redhat.com>
749
750         * cp-namespace.c: Doc fix.
751
752 2003-11-12  Michael Snyder  <msnyder@redhat.com>
753
754         * sh64_tdep.c: Regularize some names.
755         (sh_sh64_register_name): Rename to sh64_register_name.
756         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
757         (sh_sh64_register_byte): Rename to sh64_register_byte.
758         (sh_sh64_build_float_register_type):
759         Rename to sh64_build_float_register_type.
760         (sh_sh64_register_convert_to_virtual):
761         Rename to sh64_register_convert_to_virtual.
762         (sh_sh64_register_convert_to_raw):
763         Rename to sh64_register_convert_to_raw.
764
765         * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
766         sh64_media_reg_base_num, sh64_compact_reg_base_num,
767         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
768         sh64_extract_return_value, sh64_show_media_regs,
769         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
770         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
771         sh64_pseudo_register_read, sh64_pseudo_register_write,
772         sh64_do_pseudo_register, sh_compact_print_registers_info):
773         Delete unused variable 'tdep'.
774
775         * sh64-tdep.c: Coding standard and spelling comment fixes.
776         (sh64_extract_return_value): Replace deprecated_store_floating
777         with store_typed_floating.
778         (sh_sh64_register_convert_to_raw): Replace
779         deprecated_store_floating with store_typed_floating.
780         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
781         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
782         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
783         sh64_extract_struct_value_address, sh64_pop_frame,
784         sh64_extract_return_value, sh64_store_return_value,
785         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
786         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
787         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
788         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
789         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
790         deprecated_register_virtual_type, deprecated_register_raw_size,
791         deprecated_max_register_raw_size, or
792         deprecated_max_register_virtual_size.  Instead, just set
793         gdbarch_register_type.
794         (sh_sh64_register_raw_size): Delete.
795         (sh_sh64_register_virtual_size): Delete.
796
797 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
798
799         * dwarf2read.c (struct dwarf2_cu): New type.
800
801         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
802         dwarf2_cu structure to pass down.
803
804         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
805         (add_partial_enumeration, locate_pdi_sibling, process_die)
806         (read_file_scope, read_func_scope)
807         (read_lexical_block_scope, dwarf2_get_pc_bounds)
808         (dwarf2_add_field, dwarf2_attach_fields_to_type)
809         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
810         (read_structure_scope, read_enumeration, read_array_type)
811         (read_common_block, read_namespace, read_tag_pointer_type)
812         (read_tag_ptr_to_member_type, read_tag_reference_type)
813         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
814         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
815         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
816         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
817         (read_full_die. read_attribute_value, read_attribute)
818         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
819         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
820         (die_containing_type, type_at_offset, tag_type_to_type)
821         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
822         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
823
824 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
825
826         PR breakpoints/1450
827         * breakpoint.c (insert_bp_location): Fix a logic error by returning
828         0 after a catchpoint fails.
829
830 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
831
832         * mips-tdep.c (msymbol_size): Delete.
833
834 2003-11-07  Michael Chastain  <mec@shout.net>
835
836         * symtab.h (struct minimal_symbol): Add size.
837         * dbxread.c: Use it.
838         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
839         Rename to record_minimal_symbol.
840         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
841         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
842         (install_minimal_symbols): Ditto.
843         * objfiles.c (terminate_minimal_symbol_table): Ditto.
844         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
845         * m68hc11-tdep.c: Ditto.
846         * mips-tdep.c: Ditto.
847         * sh64-tdep.c: Ditto.
848
849 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
850
851         * MAINTAINERS: Change my e-mail address.
852
853 2003-11-10  Andrew Cagney  <cagney@redhat.com>
854
855         * gdbarch.sh (return_value): Replace "inval" and "outval" with
856         "readbuf" and "writebuf".
857         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
858         * d10v-tdep.c (d10v_return_value): Ditto.
859         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
860         (ppc_sysv_abi_broken_return_value): Ditto.
861         (ppc64_sysv_abi_return_value): Ditto.
862         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
863         (ppc_sysv_abi_return_value): Ditto.
864         (ppc_sysv_abi_broken_return_value): Ditto.
865         (ppc64_sysv_abi_return_value): Ditto.
866         * values.c (register_value_being_returned): Update call.
867         * stack.c (return_command): Update call.
868         * gdbarch.h, gdbarch.c: Re-generate.
869
870         * target.h (struct target_ops): Order xfer buffer parameters "read
871         write" not "write read".
872         * bfd-target.c (target_bfd_xfer_partial): Update.
873         * remote.c (remote_xfer_partial): Update.
874         * inftarg.c (child_xfer_partial): Update.
875         * target.c (default_xfer_partial): Update.
876         (target_read_partial, target_write_partial): Update.
877         (debug_to_xfer_partial): Update.
878
879         * arch-utils.h, arch-utils.c: Fix typo in comment.
880
881         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
882         (gdbarch_from_bfd): Call gdbarch_find_by_info.
883         (set_gdbarch_from_file): Call
884         "deprecated_current_gdbarch_select_hack".
885
886 2003-11-09  Andrew Cagney  <cagney@redhat.com>
887
888         * arch-utils.c (gdbarch_update_p): New function.
889         * gdbarch.sh (gdbarch_update_p): Delete function.
890         (find_arch_by_info, gdbarch_find_by_info): New functions.
891         (deprecated_current_gdbarch_select_hack): New function.
892         * gdbarch.c: Re-generate.
893
894         * gdbarch.sh (clear_gdbarch_swap): Delete function.
895         (swapout_gdbarch_swap): Delete function.
896         (swapin_gdbarch_swap): Delete function.
897         (init_gdbarch_swap): Delete function.
898         (initialize_non_multiarch): Delete function.
899         (current_gdbarch_swap_in_hack): New function.
900         (current_gdbarch_swap_out_hack): New function.
901         (current_gdbarch_swap_init_hack): New function.
902         * gdbarch.c: Re-generate.
903
904         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
905         parameter to "current_gdbarch".  Add comment explaining why.
906         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
907         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
908         * gdbarch.c: Re-generate.
909
910         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
911         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
912         * config/s390/xm-linux.h: Delete file.
913         * config/m88k/xm-delta88v4.h: Delete stray.
914
915         * Makefile.in (arch-utils.o): Update dependencies.
916         * arch-utils.c: Include "osabi.h".
917         (gdbarch_info_fill): New function.
918         * arch-utils.h (gdbarch_info_fill): Declare.
919         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
920         * gdbarch.c: Re-generate.
921
922 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
923             David S. Miller  <davem@redhat.com>
924
925         * glibc-tdep.c, glibc-tdep.h: New files.
926         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
927         * config/i386/linux.mt (TDEPFILES): Likewise.
928         * i386-linux-tdep.c (glibc-tdep.h): Include.
929         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
930         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
931         * arm-linux-tdep.c (glibc-tdep.h): Include.
932         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
933         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
934         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
935         (glibc_tdep_h): Define.
936         (glibc-tdep.o): Add dependencies.
937         (arm-linux-tdep.o): Update dependencies.
938         (i386-linux-tdep.o): Likewise.
939
940 2003-11-09  Andrew Cagney  <cagney@redhat.com>
941
942         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
943         * config/mips/nm-irix6.h: Delete file.
944         * config/mips/nm-linux.h: Update copyright.
945         (MIPS_GNULINUX_TARGET): Delete macro.
946         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
947         * config/mips/xm-irix6.h: Delete file.
948         * config/mips/linux.mh (XM_FILE): Delete definition.
949         * config/mips/xm-linux.h: Delete file.
950
951 2003-11-09  Andrew Cagney  <cagney@redhat.com>
952
953         * d10v-tdep.c (d10v_return_value): New function.
954         (d10v_use_struct_convention): Delete function.
955         (d10v_store_return_value): Delete function.
956         (d10v_extract_struct_value_address): Delete function.
957         (d10v_gdbarch_init): Set "return_value" instead of
958         "extract_return_value", "store_return_value",
959         "extract_struct_value_address", and "use_struct_convention".
960         (RET1_REGNUM): Delete const.
961
962 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
963
964         From David S. Miller  <davem@redhat.com>:
965         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
966         * gdbarch.c, gdbarch.h: Regenerated.
967         * arch-utils.c (generic_skip_solib_resolver): New function.
968         * arch-utils.h (generic_skip_solib_resolver): New prototype.
969         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
970
971 2003-11-07  Andrew Cagney  <cagney@redhat.com>
972
973         * top.c (print_gdb_version): Replace STREQ with strcmp.
974         * valops.c (value_struct_elt_for_reference): Ditto.
975         (value_struct_elt_for_reference): Ditto.
976         * symtab.c (gdb_mangle_name): Ditto.
977         (find_line_symtab): Ditto.
978         * symmisc.c (maintenance_print_symbols): Ditto.
979         * symfile.c (symbol_file_command): Ditto.
980         * stabsread.c (define_symbol, read_type): Ditto.
981         (cleanup_undefined_types, scan_file_globals): Ditto.
982         * solib.c (solib_map_sections): Ditto.
983         * solib-svr4.c (bfd_lookup_symbol): Ditto.
984         * rs6000-tdep.c (skip_prologue): Ditto.
985         * p-valprint.c (pascal_value_print): Ditto.
986         (pascal_object_is_vtbl_ptr_type): Ditto.
987         * objfiles.c (in_plt_section): Ditto.
988         * minsyms.c (lookup_minimal_symbol): Ditto.
989         (compact_minimal_symbols): Ditto.
990         (find_solib_trampoline_target): Ditto.
991         * mdebugread.c (parse_type): Ditto.
992         * language.c (set_language_command): Ditto.
993         (set_type_command, set_range_command): Ditto.
994         * f-lang.c (add_common_block): Ditto.
995         (add_common_block): Ditto.
996         (find_first_common_named): Ditto.
997         (patch_all_commons_by_name): Ditto.
998         * elfread.c (elf_locate_sections): Ditto.
999         (elf_locate_sections): Ditto.
1000         (elfstab_offset_sections): Ditto.
1001         * dwarf2read.c (dwarf2_locate_sections): Ditto.
1002         * dbxread.c (add_old_header_file): Ditto.
1003         (find_corresponding_bincl_psymtab): Ditto.
1004         (read_dbx_symtab, process_one_symbol): Ditto.
1005         * coffread.c (patch_opaque_types): Ditto.
1006         * cli/cli-decode.c (delete_cmd): Ditto.
1007         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1008         * c-typeprint.c (c_type_print_base): Ditto.
1009         * breakpoint.c (bpstat_stop_status): Ditto.
1010         (clear_command, breakpoint_re_set_one): Ditto.
1011
1012 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1013
1014         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
1015         * bcache.c (struct bstring): Make "length" an unsigned short, add
1016         "half_hash".
1017         (struct bcache): Add "half_hash_error_count".
1018         (bcache): Compute and save the "half_hash".  Compare the
1019         "half_hash" before comparing the length.  Update
1020         half_hash_error_count.
1021
1022 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1023
1024         * inftarg.c (child_xfer_partial): New function
1025         (init_child_ops): Set "to_xfer_partial".
1026
1027 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1028
1029         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1030         set "return_value" instead of "use_struct_convention".
1031         (ppc_linux_use_struct_convention): Delete function.
1032         (ppc_linux_return_value): New function.
1033         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1034         (ppc_sysv_abi_broken_return_value): New function.
1035         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1036         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1037         static.
1038         (ppc_sysv_abi_extract_return_value): Delete function.
1039         (ppc_sysv_abi_broken_extract_return_value): Delete function.
1040         (ppc_sysv_abi_store_return_value): Delete function.
1041         (ppc_sysv_abi_broken_store_return_value): Delete function.
1042         (ppc_sysv_abi_use_struct_convention): Delete function.
1043         (ppc64_sysv_abi_use_struct_convention): Delete function.
1044         (ppc64_sysv_abi_extract_return_value): Delete function.
1045         (ppc64_sysv_abi_store_return_value): Delete function.
1046         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1047         (ppcnbsd_init_abi): Set "return_value", instead of
1048         "use_struct_convention", "extract_return_value", and
1049         "store_return_value".
1050         (ppcnbsd_use_struct_convention): Delete function.
1051         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1052         (ppc_sysv_abi_return_value): Declare.
1053         (ppc_sysv_abi_broken_return_value): Declare.
1054         (ppc_sysv_abi_use_struct_convention): Delete.
1055         (ppc_sysv_abi_store_return_value): Delete.
1056         (ppc_sysv_abi_extract_return_value): Delete.
1057         (ppc_sysv_abi_broken_store_return_value): Delete.
1058         (ppc_sysv_abi_broken_extract_return_value): Delete.
1059         (ppc64_sysv_abi_use_struct_convention): Delete.
1060         (ppc64_sysv_abi_extract_return_value): Delete.
1061         (ppc64_sysv_abi_store_return_value): Delete.
1062         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1063         set "return_value" instead of "extract_return_value",
1064         "store_return_value", and "use_struct_convention".
1065
1066 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1067
1068         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1069
1070         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1071         fscanf.
1072
1073 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1074
1075         * fbsd-proc.c: Fix formatting.
1076
1077 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
1078
1079         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1080         Define.
1081         (new_variant): Set name for iacc0_regnum.
1082         (frv_register_name): Accommodate pseudo-registers.
1083         (frv_register_type): Add case for iacc0_regnum.
1084         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1085         (frv_gdbarch_init): Set number of pseudo registers.  Establish
1086         pseudo-register read/write methods.
1087
1088 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1089
1090         * valops.c (destructor_name_p): Replace STREQN with strncmp.
1091         * top.c (command_line_input): Ditto.
1092         * objc-exp.y (yylex): Ditto.
1093         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1094         * jv-exp.y (yylex): Ditto.
1095         * f-exp.y (yylex): Ditto.
1096         * event-top.c (command_line_handler): Ditto.
1097         * environ.c (get_in_environ): Ditto.
1098         (set_in_environ): Ditto.
1099         * dwarfread.c (handle_producer): Ditto.
1100         * dbxread.c (process_one_symbol): Ditto.
1101         * c-typeprint.c (c_type_print_base): Ditto.
1102         * c-exp.y (yylex): Ditto.
1103
1104 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1105             Jeff Johnston  <jjohnstn@redhat.com>
1106
1107         * target.c (add_target): Only set "to_xfer_partial" when NULL.
1108         (init_dummy_target): Set "to_xfer_partial".
1109
1110 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1111
1112         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1113         REGISTER_CONVENTION.
1114
1115 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1116
1117         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1118         static.
1119
1120 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1121
1122         * breakpoint.c (remove_breakpoint): Take an bp_location
1123         instead of a breakpoint argument.  Check the bp_location's type.
1124         Fix a reversed condition for hardware breakpoints.
1125
1126         (insert_bp_location): Update call to remove_breakpoint.
1127         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
1128         (remove_hw_watchpoints): Likewise.
1129         (reattach_breakpoints): Likewise.
1130         (detach_breakpoints): Likewise.
1131         (delete_breakpoint): Likewise.
1132
1133 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1134
1135         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1136         (beakpoint_init_inferior): Likewise.
1137         (breakpoint_here_p): Likewise.  Only check addresses for software
1138         or hardware breakpoints.
1139         (breakpoint_inserted_here_p): Likewise.
1140         (breakpoint_thread_match): Likewise.  Correct comment.
1141         (bpstat_have_active_hw_watchpoints): Likewise.
1142         (check_duplicates): Likewise.
1143
1144 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1145
1146         * breakpoints.c (insert_bp_location): New function, broken out
1147         from insert_breakpoints.  Work on an bp_location instead of a
1148         breakpoint.
1149         (insert_breakpoints): Use it.
1150
1151 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1152
1153         * breakpoint.h (struct bp_location): Add section.
1154         (struct breakpoint): Remove section.
1155         * breakpoint.c (insert_breakpoints, remove_breakpoint)
1156         (breakpoint_here_p, breakpoint_inserted_here_p)
1157         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1158         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1159         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1160         section through loc.
1161
1162 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1163
1164         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1165         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
1166
1167 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1168
1169         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1170         arguments.  Initialize owner and type for the new breakpoint
1171         location item.
1172         (set_raw_breakpoint): Update call to allocate_bp_location.
1173
1174 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1175
1176         * breakpoint.h (struct bp_location): Add a chain pointer.
1177         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1178         macros.
1179         (bp_location_chain): New variable.
1180         (allocate_bp_location): New function.
1181         (set_raw_breakpoint): Use it.
1182         (delete_breakpoint): Remove ->loc from the bp_location_chain.
1183
1184 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1185
1186         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1187         (struct breakpoint): Remove address, shadow_contents, inserted,
1188         requested_address, and duplicate.  Add a struct bp_location.
1189         * breakpoint.c (condition_command, read_memory_nobpt)
1190         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1191         (reattach_breakpoints, update_breakpoints_after_exec)
1192         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1193         (breakpoint_init_inferior, breakpoint_here_p)
1194         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1195         (breakpoint_thread_match, bpstat_stop_status)
1196         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1197         (describe_other_breakpoints, check_duplicates)
1198         (make_breakpoint_permanent, create_thread_event_breakpoint)
1199         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1200         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1201         (watch_command_1, print_one_exception_catchpoint)
1202         (clear_command, breakpoint_re_set_one): Adjust member accesses to
1203         use the breakpoint's ->loc.
1204         (set_raw_breakpoint): Likewise.  Initialize ->loc.
1205         (delete_breakpoint): Likewise.  Free ->loc.
1206
1207 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1208
1209         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1210         macro.
1211         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1212         * config/i386/tm-cygwin.h
1213         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1214         * config/powerpc/tm-linux.h
1215         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1216         (at_subroutine_call_instruction_target): Delete declaration.
1217         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1218         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1219         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1220
1221         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1222         "struct bfd_section" and "struct bfd".
1223         * target.h (struct section_table): Ditto.
1224         * rs6000-nat.c (xcoff_relocate_core): Ditto.
1225         * solib-svr4.c (elf_locate_base): Ditto.
1226         * pa64solib.c (dld_cache_t): Ditto.
1227         * objfiles.h (struct obj_section): Ditto.
1228         * objfiles.c (add_to_objfile_sections): Ditto.
1229         * exec.c (bfdsec_to_vmap): Ditto.
1230         (add_to_section_table): Ditto.
1231         (build_section_table): Ditto.
1232         * corelow.c (get_core_register_section): Ditto.
1233         * coffread.c (find_linenos): Ditto.
1234         * elfread.c (elf_interpreter): Delete #if0'd function.
1235
1236         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1237         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1238         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1239         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1240
1241         * arch-utils.h (generic_cannot_extract_struct_value_address):
1242         Delete declaration.
1243         * wince.c (_initialize_wince): Fix multi-line string.
1244         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1245
1246 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1247
1248         * top.c (execute_command): Fix broken logic for command execution
1249         while inferior is running in async mode.
1250
1251 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
1252
1253         * dwarf2-frame.c (execute_cfa_program): Mark register as
1254         REG_SAVED_REG for DW_CFA_register opcode.
1255
1256 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
1257
1258         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1259         %rsp, %rip and %eflags to match ABI-change.
1260
1261 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1262
1263         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1264         (ia64_gdbarch_init): Don't bother calculating the os.
1265         Instead use the gdbarch_info struct and look at the osabi field.
1266         Also use gdbarch_list_lookup_by_info() to look for a
1267         candidate gdbarch.
1268
1269 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
1270
1271         * frv-tdep.c (frv_register_byte): Delete.
1272         (frv_extract_return_value, frv_store_return_value)
1273         (frv_extract_struct_value_address): Don't call frv_register_byte().
1274         Convert to non-deprecated form.
1275         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1276         Convert calls to set_gdbarch_deprecated_extract_return_value(),
1277         set_gdbarch_deprecated_store_return_value(), and
1278         set_gdbarch_deprecated_extract_struct_value_address() into
1279         non-deprecated forms.
1280
1281 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1282
1283         * mips-tdep.c (mips_dump_tdep): Do not print
1284         PRINT_EXTRA_FRAME_INFO.
1285         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1286         Rename PRINT_EXTRA_FRAME_INFO.
1287         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1288         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1289         (mips_print_extra_frame_info): Delete declaration.
1290         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1291
1292 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
1293
1294         * coffread.c (coff_symtab_read): Remove passing of info parameter
1295         to prim_record_minimal_symbol_and_info.
1296
1297 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1298
1299         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1300         (decode_base_type): Delete ifdeffed out code.
1301
1302 2003-11-04  Andrew Cagney  <cagney@redhat.com>
1303
1304         * symtab.c (find_active_alias): Delete function.
1305         (lookup_block_symbol): Delete alias code.
1306         * stabsread.c (resolve_live_range): Delete function.
1307         (add_live_range): Delete function.
1308         (resolve_symbol_reference): Delete function.
1309         (define_symbol): Delete live range and alias code.
1310         (scan_file_globals): Delete alias code.
1311         * symtab.h (SYMBOL_RANGES): Delete macro.
1312         (struct range_list): Delete structure.
1313         (struct symbol): Delete field "ranges".
1314         (SYMBOL_ALIASES): Delete macro.
1315         (struct alias_list): Delete structure.
1316         (struct symbol): Delete field "aliases".
1317
1318 2003-11-04  Michael Snyder  <msnyder@redhat.com>
1319
1320         * MAINTAINERS: Remove myself as owner of breakpoints and
1321         of sparc/solaris.
1322
1323 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
1324
1325         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1326         (sh_sh4al_dsp_register_name): Ditto.
1327         (sh4_nofpu_show_regs): Ditto.
1328         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1329         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1330
1331 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1332
1333         * bcache.c: Include "gdb_assert.h".
1334         (struct bcache): Add fields "expand_count" and
1335         "expand_hash_count".
1336         (expand_hash_table): Update the expand counts.
1337         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
1338         on object sizes and hashes.
1339         * Makefile.in (bcache.o): Update dependencies.
1340
1341 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1342
1343         * exec.c (xfer_memory): Eliminate xfer_fn.
1344
1345 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
1346
1347         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1348         (opcodes/frv-desc.h): Include.
1349         (iacc0h_regnum, iacc0l_regnum): Define.
1350         (last_spr_regnum, frv_num_regs): Update.
1351         (new_variant): Don't supply default names for holes in the SPRs.
1352         Supply names for iacc0h_regnum and iacc0l_regnum.
1353         (frv_register_type): Use symbolic constants first_fpr_regnum and
1354         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
1355         builtin_type_int instead of builtin_type_int32.
1356         (frv_register_sim_regno): New function.
1357         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1358         * Makefile.in (gdb_sim_frv_h): Define.
1359         (frv-tdep.o): Update dependencies.
1360
1361 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1362
1363         * avr-tdep.c (avr_frame_this_id): Do not call
1364         deprecated_inside_entry_file.
1365         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1366         * m32r-tdep.c (m32r_frame_this_id): Ditto.
1367         * d10v-tdep.c (d10v_frame_this_id): Ditto.
1368         * arm-tdep.c (arm_prologue_this_id): Ditto.
1369         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1370
1371 2003-10-31  Jim Blandy  <jimb@redhat.com>
1372
1373         * elfread.c (elf_symtab_read): Allocate correct number of tail
1374         elements to sectinfo structure.  (Fix from Woody LaRue.)
1375
1376 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1377
1378         * stack.c (return_command): Use get_frame_type, instead of
1379         CALL_DUMMY_HAS_COMPLETED.
1380         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1381         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1382
1383 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1384
1385         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1386         explicitly specify size of array.
1387         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1388         TDEP->sc_num_regs.
1389
1390 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1391
1392         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1393         function.
1394         (s390_gdbarch_init): Set extract_struct_value_address.
1395         * arch-utils.c (generic_cannot_extract_struct_value_address):
1396         Delete function.
1397         * arch-utils.h (generic_cannot_extract_struct_value_address):
1398         Delete definition.
1399
1400 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1401
1402         * i386-linux-nat.c (fetch_core_registers): Remove.
1403         (linux_elf_core_fns): Remove.
1404         (_initialize_i386_linux_nat): Remove.
1405
1406 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1407
1408         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
1409         "exec.h".
1410         (exec_entry_point): New function.
1411         (enable_break): Create a "tmp_bfd_target", use that and
1412         entry_point_address when computing the relocation offset.
1413         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1414         * Makefile.in (solib-svr4.o): Update dependencies.
1415
1416 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1417
1418         * defs.h (XZALLOC): Define.
1419         * target.h (struct target_ops): Add "to_data";
1420         * bfd-target.h, bfd-target.c: New files.
1421         * Makefile.in (SFILES): Add "bfd-target.c".
1422         (COMMON_OBS): Add "bfd-target.o".
1423         (bfd-target.o): Specify dependencies.
1424         (bfd_target_h): Define.
1425         * defs.h (XZALLOC): Define.
1426
1427 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1428
1429         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1430         adjust_breakpoint_address.
1431         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1432         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1433         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1434         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1435
1436 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1437
1438         * target.h (struct target_ops): Replace "to_read_partial" and
1439         "to_write_partial" with "to_xfer_partial".  Update comments.
1440         * target.c (debug_to_write_partial): Delete function.
1441         (debug_to_xfer_partial): Replace debug_to_read_partial.
1442         (add_target, update_current_target, setup_target_debug): Set
1443         "to_xfer_partial" instead of "to_read_partial" and
1444         "to_write_partial".
1445         (default_xfer_partial): Replace "default_write_partial".
1446         (default_read_partial): Delete.
1447         (target_read_partial, target_write_partial): Call
1448         "to_xfer_partial".
1449         * remote.c (init_remote_ops): Set "to_xfer_partial".
1450         (init_remote_async_ops): Ditto.
1451         (remote_xfer_partial): Replace "remote_read_partial".
1452
1453 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1454
1455         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1456         registers in `fxsave' format.
1457         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1458
1459 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
1460
1461         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1462         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1463         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1464
1465         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1466         specify size of array.
1467         (i386_linux_init_abi): Remove initialization of
1468         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1469         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1470
1471         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1472         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1473         core-regset.o.
1474
1475         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1476         the ELF header.
1477
1478 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1479
1480         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1481         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1482         core-regset.o.
1483
1484         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1485
1486         * corelow.c: Include "arch-utils.h", "regset.h" and
1487         "gdb_assert.h".
1488         (core_gdbarch): New variable.
1489         (sniff_core_bfd): Don't sniff if we have support for register sets
1490         in CORE_GDBARCH.
1491         (core_close): Reset CORE_GDBARCH.
1492         (core_open): Initialize CORE_GDBARCH.
1493         (get_core_register_section): Use register sets if they are
1494         supported by CORE_GDBARCH.
1495         (get_core_registers): Don't print error message if we have support
1496         for register sets in CORE_GDBARCH.
1497
1498 2003-10-29  Andrew Cagney  <cagney@redhat.com>
1499
1500         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1501         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1502
1503 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1504
1505         * objfiles.h (clear_objfile_data): New prototype.
1506         * objfiles.c (clear_objfile_data): New function.
1507         * symfile.c (reread_symbols): Clear per-objfile data.
1508
1509 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
1510
1511         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1512         printf_unfiltered instead of printf_filtered for output messages.
1513         (add_symbol_file_command): Ditto.
1514         (reread_symbols): Ditto.
1515         (overlay_auto_command): Ditto.
1516         (overlay_manual_command): Ditto.
1517         (overlay_off_command): Ditto.
1518
1519 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
1520
1521         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1522         (gdbarch_from_bfd): New function.
1523         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1524         deprecated_select_gdbarch_hack.
1525         * arch-utils.h (gdbarch_from_bfd): New prototype.
1526
1527 2003-10-27  Andrew Cagney  <cagney@redhat.com>
1528
1529         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1530         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1531         deprecated bfd_printable_arch_mach.
1532
1533 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
1534
1535         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1536         Delete.
1537         (frv_register_type): Rename from frv_register_virtual_type.  Add
1538         ``struct gdbarch *'' parameter.
1539         (frv_gdbarch_init): Delete calls to the following functions:
1540         set_gdbarch_deprecated_size(),
1541         set_gdbarch_deprecated_register_bytes(),
1542         set_gdbarch_deprecated_register_raw_size(),
1543         set_gdbarch_deprecated_max_register_raw_size(),
1544         set_gdbarch_deprecated_register_virtual_size(),
1545         set_gdbarch_deprecated_max_register_virtual_size(),
1546         set_gdbarch_deprecated_register_virtual_size(),
1547         set_gdbarch_deprecated_register_virtual_type().
1548         Add call to function set_gdbarch_register_type().
1549
1550 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
1551
1552         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1553         FDOFF_REGNUM): Remove defines.
1554         * win32-nat.c (do_child_fetch_inferior_registers): Include
1555         "i387-tdep.h".
1556         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1557         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1558         undefine I387_ST0_REGNUM.
1559
1560         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1561         * x86-64-tdep.c (x86_64_store_return_value): Use
1562         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1563
1564         Change register numbers to enumartion values.
1565         * i386-tdep.h (enum i386_regnum): New.
1566         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1567         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1568         I386_ST0_REGNUM): Remove defines.
1569         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1570         I386_EDI_REGNUM): Remove defines.
1571
1572 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1573
1574         * target.c: Include "gdbcore.h".
1575         (get_target_memory, get_target_memory_unsigned): New functions.
1576         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1577         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1578         Use get_target_memory_unsigned.
1579         * Makefile.in (target.o): Update dependencies.
1580
1581 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1582
1583         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1584         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1585         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1586         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1587         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1588
1589         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1590         (can_run_code_for): Use the OO term "singleton".
1591
1592 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1593
1594         * Makefile.in (stack.o): Add $(regcache_h).
1595         * stack.c: Include "regcache.h"
1596         (return_command): Rewrite.  Use get_frame_id and
1597         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1598         about unhandled return-values.
1599         * value.h (set_return_value): Delete declaration.
1600         * values.c (set_return_value): Delete function.
1601
1602 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1603
1604         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1605         (pseudo_regs): Add comment regarding register stack registers.
1606         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1607         (floatformat_valid): New static routine.
1608         (floatformat_ia64_ext): Add name field and set up is_valid routine
1609         to floatformat_valid().
1610         (examine_prologue):  For the previous cfm, use
1611         frame_unwind_register()
1612         if the cfm is not stored in a register-stack register.  Save the
1613         previous cfm value in the prev_cfm field.  Add debug output.
1614         (ia64_frame_this_id): Use frame_id_build_special() to also register
1615         the bsp.  Add debug output.
1616         (ia64_sigtramp_frame_this_id): Ditto.
1617         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1618         registers and also add some checks for framelessness before accepting
1619         current register values for fields such as return address.  For cfm,
1620         use the cached prev_cfm field if available.  Add comment to explain
1621         PSR logic.  Add debug output.
1622         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1623         as part of initialization.
1624         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1625         calculated.  Cache the bsp and cfm values.
1626         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1627         instead of using ia64_frame_prev_register() which doesn't expect most
1628         registers to be saved.  The saved values for bsp and sp
1629         can be taken from the cache.  Add debug output.
1630         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1631         the bsp.
1632
1633 2003-10-23  Jim Blandy  <jimb@redhat.com>
1634
1635         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1636         architecture the current arch can run code for --- but not if it's
1637         a superset.
1638         (can_run_code_for): New function.
1639
1640 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1641
1642         * MAINTAINERS: Move myself from paper trail section back to write
1643         after approval section.
1644
1645 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1646
1647         * exec.h: New file.
1648         * win32-nat.c: Include "exec.h".
1649         * solib.c: Include "exec.h".
1650         * target.h (build_section_table): Delete declaration.
1651         * somsolib.c: Include "exec.h".
1652         (exec_ops): Delete extern declaration.
1653         * rs6000-nat.c: Update copyright.  Include "exec.h".
1654         (exec_ops): Delete extern declaration.
1655         * pa64solib.c: Update copyright.  Include "exec.h".
1656         (exec_ops): Delete extern declaration.
1657         * exec.c: Update copyright.  Include "exec.h".
1658         * corelow.c: Update dependencies.  Include "exec.h".
1659         * Makefile.in (exec_h): Define.
1660         (exec.o, somsolib.o): Update dependencies.
1661         (pa64solib.o, corelow.o): Update dependencies.
1662
1663 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1664
1665         * target.c: Include "gdb_assert.h" (target_read): Call
1666         "target_read_partial", not "target_write_partial".
1667         (default_read_partial, default_write_partial): New function.
1668         (target_read_partial, target_write_partial): Simplify, assume that
1669         there is always a read/write method.
1670         (update_current_target, add_target): Always set "to_read_partial"
1671         and "to_write_partial".
1672         (target_write, target_read): Fail on a zero byte transfer.
1673         * Makefile.in (target.o): Update dependencies.
1674         * target.h: Update copyright date.
1675         (target_object): Fix typo.
1676
1677 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1678
1679         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1680         multi-arch method, add "targ" parameter.
1681         (struct target_ops): Declare.
1682         * gdbarch.h, gdbarch.c: Re-generate.
1683         * Makefile.in (c-valprint.o): Update dependencies.
1684         * arch-utils.h: Update copyright.
1685         (convert_from_func_ptr_addr_identity): Declare.
1686         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1687         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1688         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1689         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1690         * infcall.c (find_function_addr, call_function_by_hand): Update.
1691         * c-valprint.c: Include "target.h".
1692         (print_function_pointer_address): Update.
1693
1694 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1695
1696         * target.c (target_close): New function.
1697         (debug_to_close): Use "target_close".
1698         (push_target): Use "target_close".
1699         (unpush_target): Use "target_close".
1700         (pop_target): Use "target_close".
1701         * target.h (struct target_ops): Add "to_xclose".
1702         (target_open): Delete macro.  Move comment to "to_open".
1703         (target_close): Replace macro with function that takes a target.
1704         * top.c (quit_target): Pass "current_target" to "target_close".
1705
1706 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1707
1708         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1709         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1710         * symtab.h (lookup_minimal_symbol_text): Update.
1711         * breakpoint.c (create_overlay_event_breakpoint,
1712         create_longjmp_breakpoint): Update callers.
1713         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1714         * symtab.c (find_pc_sect_line): Ditto.
1715
1716 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1717
1718         * target.c (errno): Delete extern declaration.
1719
1720 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1721
1722         * ia64-tdep.c: Change all occurrences of
1723         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1724         (ia64_frame_prev_register): Minor whitespace change.
1725
1726 2003-10-20  Michael Chastain  <mec@shout.net>
1727
1728         * config/djgpp/fnchange.lst: Add lines for:
1729         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1730         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1731         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1732         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1733         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1734         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1735         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1736
1737 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1738
1739         * values.c (register_value_being_returned): Update comments.  Use
1740         "gdbarch_return_value" when available.
1741         (using_struct_return): Ditto.
1742         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1743         available..  Print a warning, and not an error, when an unhandled
1744         return type is encountered.
1745         * infcmd.c: Include "gdb_assert.h".
1746         (print_return_value): When gdbarch_return_value_p, and using
1747         struct return, assume that the value is not available.
1748         * defs.h (return_value_convention): Define.
1749         * gdbarch.sh (gdbarch_return_value): New predicate method.
1750         * gdbarch.h, gdbarch.c: Re-generate
1751         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1752
1753 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1754
1755         * symtab.c: Replace "struct sec" with "struct bfd_section".
1756         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1757
1758 2003-10-19  Michael Chastain  <mec@shout.net>
1759
1760         * config/djgpp/fnchange.lst: Add lines for:
1761         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1762         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1763         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1764
1765 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1766
1767         * amd64fbsd-nat.c (fetch_inferior_registers,
1768         store_inferior_registers): Remove functions.
1769         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1770
1771 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1772
1773         Add NetBSD/amd64 native configuration:
1774         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1775         * amd64nbsd-tdep.c: New file.
1776         * amd64nbsd-nat.c: New file.
1777         * amd64bsd-nat.c: New file.
1778         * config/i386/nbsd64.mh: New file.
1779         * config/i386/nbsd64.mt: New file.
1780         * configure.host: Add x86_64-*-netbsd*.
1781         * configure.tgt: Add x86_64-*-netbsd*.
1782         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1783         New targets.
1784         * NEWS (New native configurations): Mention NetBSD/amd64.
1785
1786 2003-10-17  Michael Chastain  <mec@shout.net>
1787
1788         * config/djgpp/fnchange.lst: Remove dead lines for:
1789         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1790         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1791         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1792         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1793         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1794         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1795         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1796         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1797         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1798         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1799         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1800         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1801         gdb/config/sparc/tm-sparclite.h,
1802         gdb/gdbtk/generic/ChangeLog-2001,
1803         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1804         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1805         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1806         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1807         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1808         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1809         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1810         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1811         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1812         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1813         itcl/iwidgets3.0.0/demos/fileselectionbox,
1814         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1815         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1816         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1817         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1818         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1819         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1820         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1821         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1822         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1823         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1824         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1825         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1826         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1827         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1828         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1829         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1830         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1831         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1832         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1833         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1834         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1835         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1836         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1837         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1838         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1839         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1840         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1841         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1842         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1843         itcl/iwidgets3.0.0/demos/html/shell.n.html,
1844         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1845         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1846         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1847         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1848         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1849         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1850         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1851         itcl/iwidgets3.0.0/demos/scrolledcanvas,
1852         itcl/iwidgets3.0.0/demos/scrolledframe,
1853         itcl/iwidgets3.0.0/demos/scrolledhtml,
1854         itcl/iwidgets3.0.0/demos/scrolledlistbox,
1855         itcl/iwidgets3.0.0/demos/scrolledtext,
1856         itcl/iwidgets3.0.0/demos/selectionbox,
1857         itcl/iwidgets3.0.0/demos/selectiondialog,
1858         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1859         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1860         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1861         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1862         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1863         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1864         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1865         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1866         itcl/iwidgets3.0.0/doc/scrolledframe.n,
1867         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1868         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1869         itcl/iwidgets3.0.0/doc/scrolledtext.n,
1870         itcl/iwidgets3.0.0/doc/selectionbox.n,
1871         itcl/iwidgets3.0.0/doc/selectiondialog.n,
1872         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1873         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1874         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1875         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1876         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1877         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1878         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1879         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1880         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1881         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1882         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1883         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1884         itcl/iwidgets3.0.0/generic/selectionbox.itk,
1885         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1886         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1887         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1888         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1889         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1890         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1891         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1892         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1893         itcl/iwidgets3.0.0/tests/scrolledframe.test,
1894         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1895         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1896         itcl/iwidgets3.0.0/tests/scrolledtext.test,
1897         itcl/iwidgets3.0.0/tests/selectionbox.test,
1898         itcl/iwidgets3.0.0/tests/selectiondialog.test,
1899         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1900         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1901         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1902         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1903         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1904         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1905         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1906         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1907         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1908         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1909         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1910         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1911         tk/mac/tkMacProjects.sit.hqx.
1912
1913 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1914
1915         * target.c (target_section_by_addr): New function.
1916         (do_xfer_memory): Use "target_section_by_addr".
1917         * target.h (target_section_by_addr): Declare.
1918
1919         * target.h (struct target_ops): Add "to_read_partial" and
1920         "to_write_partial", delete "to_query".
1921         (target_read_partial, target_write_partial): Declare.
1922         (target_read, target_write): Declare.
1923         (target_query): Delete macro.
1924         * target.c (target_read_partial): New function.
1925         (target_write_partial, target_read, target_write): New function.
1926         (update_current_target): Delete inheritance of "to_query".  Add
1927         comments about "to_read_partial" and "to_write_partial".
1928         (debug_to_partial_read, debug_to_partial_write): New functions.
1929         (debug_to_query): Delete function.
1930         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1931         instead of "to_query".
1932         * remote.c (remote_read_partial): Replace "remote_query".
1933         (init_remote_ops): Set "to_read_partial" instead of "to_query".
1934         (init_remote_async_ops): Ditto.
1935         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
1936         "target_read_partial" instead of "target_query".
1937         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1938         Use "target_read_partial" instead of "target_query".
1939
1940 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
1941
1942         * frame.h (struct frame_id): Add new field: special_addr.
1943         (frame_id_build_special): New prototype.
1944         * frame.c (frame_id_build_special): New function.
1945         (frame_id_build): Change to call frame_id_build_special().
1946         (frame_id_eq): Change to also test special_addr field.
1947         (frame_id_inner): Update comment.
1948
1949 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1950
1951         * target.c (update_current_target): Perform the target cleanup.
1952         Put the target stack beneath the squashed "current_target".
1953         (add_target): Delete disabled call to "cleanup_target".
1954         (cleanup_target): Delete function.
1955         (push_target, unpush_target): Do not call "cleanup_target".
1956
1957 2003-10-17  Andrew Cagney  <cagney@redhat.com>
1958
1959         * target.c (target_stack): Change to a static target_ops.
1960         (update_current_target): Walk the "struct target_ops" stack.
1961         (pop_target, do_xfer_memory, target_info): Ditto.
1962         (find_target_beneath): Ditto.
1963         (push_target): Rewrite to use the "struct target_ops" stack.
1964         (unpush_target): Ditto.
1965         * target.h (struct target_stack_item): Delete definition.
1966         (target_stack): Delete declaration.
1967         (struct target_ops): Add field "beneath".
1968
1969 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
1970
1971         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1972         declaration.
1973         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1974         (h8300_examine_prologue): Use h8300_normal_mode flag
1975         (h8300_gdbarch_init): Set architecture info for normal mode
1976
1977 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
1978
1979         * remote.c (remote_protocol_vcont): New variable.
1980         (set_remote_protocol_vcont_packet_cmd): New function.
1981         (show_remote_protocol_vcont_packet_cmd): New function.
1982         (init_all_packet_configs): Handle remote_protocol_vcont.
1983         (remote_vcont_probe): New function.
1984         (remote_vcont_resume): New function.
1985         (remote_resume): Use it.
1986         (remote_async_resume): Call remote_resume.
1987         (_initialize_remote): Add verbose-resume packet commands.
1988
1989 2003-10-16  Andrew Cagney  <cagney@redhat.com>
1990
1991         * infrun.c (handle_inferior_event): Add comment about
1992         "frame_id_inner" being too weak.
1993
1994 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
1995
1996         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1997         second parameter, which is always null. Remove
1998         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1999         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2000         accordingly.
2001         * somsolib.c (som_solib_create_inferior_hook,
2002         som_solib_desire_dynamic_linker_symbols): Update callers.
2003         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2004
2005 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
2006
2007         * remote-m32r-sdi.c : New file, interface to m32r on-chip
2008         debug interface, SDI (Scalable Debug Interface).
2009         * NEWS: Mention m32r SDI protocol was supported.
2010         * Makefile.in (remote-m32r-sdi.o): Add build rule.
2011         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2012
2013 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2014
2015         * ia64-linux-tdep.c: Include gdbcore.h.
2016         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2017         (ia64_linux_sigcontext_register_addr): Find the address of the
2018         sigcontext area stored in the sigframe instead of using
2019         a magic offset constant.
2020
2021 2003-10-15  Andrew Cagney  <cagney@redhat.com>
2022
2023         * remote.c (remote_search): Delete function.
2024         * target.h (target_search): Delete disabled macro.
2025         (struct target_ops): Delete disabled field "to_search".
2026
2027 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
2028
2029         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2030         instead of deprecated_inside_entry_file().
2031
2032 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
2033
2034         * sh-tdep.c: Fix copy/paste hangover in comment.
2035         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2036         mode.
2037         (sh3e_sh4_extract_return_value): Ditto.
2038
2039 2003-10-13  Richard Henderson  <rth@redhat.com>
2040
2041         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2042         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
2043         match c_val_print a bit closer.
2044
2045 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2046
2047         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2048         (frv_gdbarch_adjust_breakpoint_address): New function.
2049         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2050         method.
2051
2052 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2053
2054         * breakpoint.h (struct breakpoint): Add new member
2055         ``requested_address''.
2056         * breakpoint.c (breakpoint_adjustment_warning)
2057         (adjust_breakpoint_address): New static functions.
2058         (print_it_typical): Issue warning if breakpoint's address is different
2059         from its requested address.
2060         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2061         (breakpoint_re_set_one):  Set breakpoint's
2062         ``requested_address'' field.  Set ``address'' field to the
2063         result of calling adjust_breakpoint_address() on the requested
2064         address.
2065
2066 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2067
2068         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2069         * gdbarch.h, gdbarch.c: Regenerate.
2070
2071 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2072
2073         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2074         TDEP->sc_num_regs.
2075
2076         * i386fbsd-tdep.c: New file.
2077         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2078         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2079         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2080         i386bsd-tdep.c.
2081         (_initialize_i386fbsd_tdep): New function.
2082         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2083         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2084         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2085         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
2086         TDEP->sc_num_regs.
2087         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2088         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2089         to initialize TDEP->sc_num_regs.
2090         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2091         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2092         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2093         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2094         FreeBSD ELF OS/ABI's here.
2095         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2096         (i386fbsd-tdep.o): New target.
2097         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2098         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
2099
2100         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2101         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2102         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2103         in initialization of TDEP->sc_num_regs.
2104
2105         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2106         (x86_64_init_abi): Initialize regset_from_core_section if
2107         appropriate.
2108
2109         * i386-tdep.c (i386_regset_from_core_section): New function.
2110         (i386_gdbarch_init): Initialize regset_from_core_section if
2111         appropriate.
2112         * i386-tdep.h (i386_regset_from_core_section): New declaration.
2113
2114         * i386-tdep.h (struct regset): Declare opaque.
2115
2116         * gdbarch.sh (regset_from_core_section): New method.
2117         (struct regset): Declare opaque.
2118         * gdbarch.c, gdbarch.h: Regenerated.
2119
2120 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
2121
2122         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2123         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
2124         Correct test for pc within section.
2125
2126 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2127
2128         * gdbarch.sh: Remove trailing whitepsace from comments.
2129
2130 2003-10-08  Roland McGrath  <roland@redhat.com>
2131
2132         * gcore.c (make_mem_sec): Function removed, folded into ...
2133         (gcore_create_callback): ... here.  To omit a section, clear its
2134         SEC_LOAD bit rather than zeroing its size.
2135         Omit read-only sections only if they correspond to a known disk file.
2136         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2137
2138 2003-10-10  Michael Snyder  <msnyder@redhat.com>
2139
2140         * d10v-tdep.c: Fix typo in comment.
2141
2142 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2143
2144         * rs6000-tdep.c (e500_store_return_value): Delete function.
2145         (e500_extract_return_value): Delete function.
2146         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2147         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2148         "ppc_sysv_abi_restore_return_value" where applicable.
2149         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2150         (ppc_sysv_abi_extract_return_value): Declare.
2151         (ppc_sysv_abi_broken_store_return_value): Declare.
2152         (ppc_sysv_abi_broken_extract_return_value): Declare.
2153         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2154         * ppc-sysv-tdep.c (return_value_convention): Move definition to
2155         start of file.
2156         (do_ppc_sysv_return_value): New function.
2157         (ppc_sysv_abi_extract_return_value): New function.
2158         (ppc_sysv_abi_store_return_value): New function.
2159         (ppc_sysv_abi_broken_extract_return_value): New function.
2160         (ppc_sysv_abi_broken_store_return_value): New function.
2161         (ppc_sysv_abi_use_struct_convention): Call
2162         do_ppc_sysv_return_value.
2163
2164 2003-10-10  J. Brobecker  <brobecker@gnat.com>
2165
2166         * blockframe.c (inside_main_func): No longer use symbol_lookup()
2167         to lookup the main function symbol.
2168
2169 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2170
2171         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2172         types correctly.
2173         (sh_push_dummy_call_fpu): Fix argument passing rules.
2174         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2175         float types.
2176         (sh3e_sh4_store_return_value): Ditto.
2177
2178 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
2179
2180         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2181         comment.
2182
2183 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2184
2185         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2186         more readable code.  Accomodate passing of bitfields.
2187
2188 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2189
2190         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2191         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2192         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2193         * ppc-sysv-tdep.c: Include "gdb_assert.h".
2194         (ppc64_sysv_abi_push_dummy_call): New function.
2195         (ppc64_sysv_abi_broken_push_dummy_call): New function.
2196         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2197         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2198
2199 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
2200
2201         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2202         * README: Ditto.
2203         * d10v-tdep.c: Ditto.
2204         * h8300-tdep.c: Ditto.
2205         * remote-e7000.c: Ditto.
2206         * remote-hms.c: Ditto.
2207         * ser-e7kpc.c: Ditto.
2208         * sh-stub.c: Ditto.
2209         * sh-tdep.c: Ditto.
2210         * sh-tdep.h: Ditto.
2211         * sh3-rom.c: Ditto.
2212         * sh64-tdep.c: Ditto.
2213         * top.c: Ditto.
2214         * wince.c: Ditto.
2215         * config/d10v/d10v.mt: Ditto.
2216         * config/sh/embed.mt: Ditto.
2217         * config/sh/linux.mt: Ditto.
2218         * config/sh/tm-linux.h: Ditto.
2219         * config/sh/tm-sh.h: Ditto.
2220         * config/sh/wince.mt: Ditto.
2221
2222 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2223
2224         * ppc-tdep.h (struct type): Declare opaque.
2225         * x86-64-tdep.h (struct regcache): Declare opaque.
2226         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2227         coding style.
2228
2229 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2230
2231         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2232         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2233         (SOFTWARE_SINGLE_STEP_P): Ditto.
2234         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2235         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2236         (SOFTWARE_SINGLE_STEP_P): Ditto.
2237         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2238         software_single_step to rs6000_software_single_step.
2239
2240 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2241
2242         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2243
2244 2003-10-09  Michael Snyder  <msnyder@redhat.com>
2245
2246         * frame.h: Fix typo in comment.
2247         * dummy-frame.c: Fix typo in comment.
2248         * d10v-tdep.c: Random whitespace/comment tweaks.
2249
2250 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
2251
2252         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2253         (sh_push_dummy_code): Delete function, it's only used for dummy calls
2254         on stack.
2255
2256         Based on input by Stephen Clarke (stephen.clarke@superh.com):
2257         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2258         in detail.
2259
2260 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2261
2262         * remote-mips.c (mips_initialize): Remove unneeded call to
2263         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2264
2265 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2266
2267         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2268         a memory pointer.
2269
2270 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2271
2272         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2273         for any lwp we resume.
2274         (running_callback): Add lwps that have pending status events
2275         against them to be considered running.
2276
2277 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
2278
2279         * m32r-tdep.c : Include "dis-asm.h".
2280         * Makefile.in (m32r-tdep.o): Update dependencies.
2281
2282 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2283
2284         * completer.h (get_gdb_completer_word_break_characters): Delete.
2285         * completer.c: include language.h.
2286         (gdb_completer_word_break_characters): Delete.
2287         (get_gdb_completer_word_break_characters): Delete.
2288         (location_completer): Use the word break characters of the current
2289         language.
2290         (complete_line): Likewise.
2291         (line_completion_function): Likewise.
2292         (skip_quoted_chars): Likewise.
2293         * Makefile.in (completer.o): Add dependency on language.h.
2294         * top.c (init_main): Set the readline word break characters
2295         to GDB's default word break characters.
2296
2297 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2298
2299         * language.h (language_defn): new field, la_word_break_characters.
2300         * language.c (unknown_language_defn): Set new field to
2301         default_word_break_characters.
2302         (auto_language_defn): Likewise.
2303         (local_language_defn): Likewise.
2304         * ada-lang.c (ada_language_defn): Likewise.
2305         * c-lang.c (c_language_defn): Likewise.
2306         (cplus_language_defn): Likewise.
2307         (asm_language_defn): Likewise.
2308         (minimal_language_defn): Likewise.
2309         * f-lang.c (f_language_defn): Likewise.
2310         * jv-lang.c (java_language_defn): Likewise.
2311         * m2-lang.c (m2_language_defn): Likewise.
2312         * objc-lang.c (objc_language_defn): Likewise.
2313         * p-lang.c (pascal_language_defn): Likewise.
2314         * scm-lang.c (scm_language_defn): Likewise.
2315
2316 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2317
2318         * ppc-sysv-tdep.c: Re-indent.
2319
2320 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2321
2322         * language.h (default_word_break_characters): Add prototype.
2323         * language.c (default_word_break_characters): New function.
2324
2325 2003-10-06  Andreas Schwab  <schwab@suse.de>
2326
2327         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2328         with %eax.
2329
2330 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2331
2332         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2333         "h8500-tdep.c".
2334         (z8k-tdep.o): Delete custom build rule.
2335
2336 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2337
2338         * Makefile.in: Update all dependencies.
2339
2340         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2341         No longer list PA as as obsolete candidate.  List m32r as
2342         broken instead of obsolete.
2343
2344         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2345         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2346         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2347         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2348         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2349         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2350         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2351         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2352         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2353         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2354         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2355         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2356         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2357         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2358         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2359         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2360         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2361         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2362         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2363         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2364         * config/z8k/z8k.mt: Ditto.
2365
2366         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2367         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2368         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2369         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2370         sparclite were removed.
2371         * configure.host, configure.tgt: Remove corresponding tuples.
2372
2373         * breakpoint.c, breakpoint.h: Remove obsolete code.
2374         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2375         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2376         * stabsread.h, xcoffread.c: Ditto.
2377
2378         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2379         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2380         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2381         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2382
2383 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
2384
2385         * f-valprint.c: Reformatting
2386
2387 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
2388
2389         * x86-64-tdep.c: Remove duplicate comment.
2390
2391         * x86-64-tdep.c (x86_64_store_return_value): Don't use
2392         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
2393         names for return values.  This fixes a bug since we looked at %rbx
2394         instead of %rdx.
2395
2396 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
2397
2398         * x86-64-tdep.c: Include "regset.h".
2399
2400         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2401         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2402         sizeof_fpregset.
2403         * i386-tdep.c: Include "regset.h".
2404         (i386_supply_gregset): New function.
2405         (i386_supply_fpregset): New function.
2406         (i386_gdbarch_init): Initialze register set-related members of
2407         TDEP.
2408         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2409         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2410
2411 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2412
2413         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2414         set extract_return_value, store_return_value and
2415         use_struct_convention to ppc64_sysv_abi_extract_return_value,
2416         ppc64_sysv_abi_store_return_value and
2417         ppc64_sysv_abi_use_struct_convention.
2418         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2419         (ppc64_sysv_abi_store_return_value): Declare.
2420         (ppc64_sysv_abi_use_struct_convention): Declare.
2421         * ppc-sysv-tdep.c (enum return_value_convention): Define.
2422         (ppc64_sysv_abi_extract_return_value): New function.
2423         (ppc64_sysv_abi_store_return_value): New function.
2424         (ppc64_sysv_abi_use_struct_convention): New function.
2425         (ppc64_sysv_abi_return_value): New function.
2426
2427 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2428
2429         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2430         convert a descriptor to a function when it's in the ".opd"
2431         section.
2432
2433 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2434
2435         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2436         reg_size to keep GCC silent.
2437
2438 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2439
2440         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2441         base for DW_EH_PE_textrel encodings.
2442         (read_encoded_value): Add a DW_EH_PE_textrel case.
2443         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2444         section.
2445
2446 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
2447
2448         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2449
2450 2003-10-02  Andrew Cagney  <cagney@redhat.com>
2451
2452         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2453         REGISTER_RAW_SIZE.
2454         * gdbarch.h, gdbarch.c: Re-generate.
2455         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2456         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2457         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2458         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2459         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2460         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2461         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2462         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2463         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2464         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2465         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2466         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2467         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2468         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2469         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2470         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2471
2472 2003-10-02  Jim Blandy  <jimb@redhat.com>
2473
2474         * dwarf2read.c (struct die_info): Doc fix.
2475
2476 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2477
2478         * sh-tdep.c: Running thru gdb_indent.sh.
2479
2480 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2481
2482         * sh-tdep.c (sh_justify_value_in_reg): New function.
2483         (sh_stack_allocsize): Ditto.
2484         (flt_argreg_array): New array used for floating point argument
2485         passing.
2486         (sh_init_flt_argreg): New function.
2487         (sh_next_flt_argreg): Ditto.
2488         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2489         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2490         Fix argument passing strategy.
2491         (sh_push_dummy_call_nofpu): Ditto.
2492
2493 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2494
2495         * value.h (register_value_being_returned): Declare.  Replace
2496         "value_being_returned".
2497         * infcall.c (call_function_by_hand): Use
2498         register_value_being_returned.
2499         * infcmd.c (print_return_value): Call
2500         "register_value_being_returned", handle struct return locally.
2501         * values.c (register_value_being_returned): New function.  Replace
2502         "value_being_returned".
2503
2504 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
2505
2506         * linux-proc.c (linux_do_registers): New function.
2507         (linux_make_note_section): Use linux_do_registers in case of
2508         single threaded inferior programs.
2509
2510 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2511
2512         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2513         use STRUCT_ADDR.  When not using "struct return convention", pass
2514         "0" to "value_being_returned".  Add FIXMEs.
2515         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2516         value_being_returned.  Add comments.
2517         * values.c (value_being_returned): Add fixme.
2518         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2519         (hppa_value_returned_from_stack): Add FIXME.
2520
2521 2003-09-30  David Carlton  <carlton@kealia.com>
2522
2523         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2524         'has_children' and 'next' by 'child' and 'sibling'.
2525         (read_comp_unit): Rework algorithm, breaking body into
2526         read_die_and_children and read_die_and_siblings.
2527         (read_die_and_children, read_die_and_siblings): New.
2528         (read_full_die): Add 'has_children' argument; set it instead of
2529         the die's 'has_children' field.  Minor formatting cleanup.
2530         (free_die_list): Use die->child and die->sibling instead of
2531         die->next.
2532         (dump_die_list): Ditto.
2533         (sibling_die): Use die->sibling.
2534         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2535         'has_children' and 'next' fields.
2536         (process_die, read_file_scope, read_func_scope)
2537         (read_lexical_block_scope, read_structure_scope)
2538         (read_enumeration, read_array_type, read_common_block)
2539         (read_namespace, read_subroutine_type, dump_die): Ditto.
2540
2541 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2542
2543         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2544         to 224, not 220.
2545
2546 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2547
2548         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2549         REGISTER_VIRTUAL_SIZE.
2550         * gdbarch.h, gdbarch.c: Regenerate.
2551         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2552         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2553         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2554
2555 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2556
2557         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2558         REGISTER_VIRTUAL_TYPE.
2559         * gdbarch.h, gdbarch.c: Regenerate.
2560         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2561         * sh64-tdep.c, sparc-tdep.c: Update.
2562
2563         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2564         * remote-vxmips.c (vx_read_register): Ditto.
2565         * remote-vx68.c (vx_read_register): Ditto.
2566         * gnu-nat.c (inf_validate_procs): Ditto.
2567
2568 2003-09-29  J. Brobecker  <brobecker@gnat.com>
2569
2570         * infcall.c (call_function_by_hand): Fix build failure
2571         introduced in the previous change to this file.
2572
2573 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2574
2575         * NEWS: Mention Objective-C.
2576
2577 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2578
2579         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2580         test if the register has been saved on the stack.
2581         (arm_scan_prologue_cache): When analysing the instruction
2582         "str lr, [sp, #-4]", save the address where lr has been stored.
2583
2584 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2585
2586         * frame.c (frame_read_unsigned_register): Delete function.
2587         * frame.h (frame_read_unsigned_register): Delete declaration.
2588         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2589         get_frame_register_unsigned.
2590         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2591         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2592         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2593
2594         * frame.h (frame_read_register): Delete declaration.
2595         * frame.c (frame_read_register): Delete function.
2596         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2597         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2598         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2599         * mips-tdep.c (mips_register_to_value): Ditto.
2600         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2601         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2602
2603         * frame.c (frame_read_signed_register): Delete function.
2604         (frame_read_unsigned_register): Update comments.
2605         * frame.h (frame_read_signed_register): Delete declaration.
2606         * h8300-tdep.c (h8300_print_register): Use
2607         get_frame_register_signed.
2608         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2609
2610         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2611         Rename VALUE_RETURNED_FROM_STACK.
2612         * infcmd.c (print_return_value): Update.
2613         * infcall.c (call_function_by_hand): Update.
2614
2615 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2616
2617         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2618         regcache argument and reverse the order of the other two
2619         arguments.  Remove local regcache variable.  Determine
2620         architecture from REGCACHE.  Update comments.
2621         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2622         reverse the order of the other two arguments.  Remove local
2623         regcache variable.  Determine architecture from REGCACHE.  Update
2624         comments.
2625         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2626         prototypes.  Update comments.
2627         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2628         comment.
2629         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2630         Update.
2631         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2632         * i386-interix-nat.c (supply_fpregset): Update.
2633         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2634         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2635         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2636         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2637         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2638         Update.
2639         * i386obsd-tdep.c (fetch_core_registers): Update.
2640         * i386v4-nat.c (supply_fpregset): Update.
2641         * x86-64-linux-nat.c (supply_fpregset): Update.
2642         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2643
2644 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2645
2646         * i386-tdep.h: Put opaque declarations in alphabetical
2647         order.  Remove spurious whitespace.
2648         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2649         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2650         * i386-tdep.c (MM0_REGNUM): Remove define.
2651         (i386_mmx_regnum_p): Add gdbarch argument.
2652         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2653         Rewrite using new macro definitions for FPU/SSE registers.
2654         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2655         definitions from i387-tdep.h.
2656         (i386_register_name): Update.
2657         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2658         new macro definitions for FPU/SSE registers.
2659         (i386_extract_return_value): Determine whether floating-point
2660         registers are present by examining REGCACHE's architecture.
2661         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2662         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2663         FPU/SSE registers.
2664         (i386_register_type): Update.
2665         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2666         definitions for FPU registers.  Use REGCACHE's architecture to
2667         determine the appropriate register numbers.
2668         (i386_pseudo_register_read, i386_pseudo_register_write,
2669         i386_register_reggroup_p): Update.
2670         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2671         TDEP->mm0_regnum.
2672         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2673         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2674         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2675         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2676         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2677         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2678         *' to `void *'.
2679         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2680         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2681         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2682         definitions for FPU/SSE registers.
2683         (FXSAVE_MXCSR_ADDR): New define.
2684         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2685         TDEP->mm0_regnum.
2686         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2687         (I387_ST0_REGNUM): Define.
2688
2689         * regcache.h (get_regcache_arch): New prototype.
2690         * regcache.c (get_regcache_arch): New function.
2691
2692         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2693         whitespace.
2694
2695         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2696         Initialize using ARRAY_SIZE.
2697
2698 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2699
2700         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2701         "init_frame_pc_default".
2702         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2703         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2704         * vax-tdep.c (vax_gdbarch_init): Update.
2705         * v850-tdep.c (v850_gdbarch_init): Update.
2706         * sh64-tdep.c (sh64_gdbarch_init): Update.
2707         * s390-tdep.c (s390_gdbarch_init): Update.
2708         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2709         * mcore-tdep.c (mcore_gdbarch_init): Update.
2710         * h8300-tdep.c (h8300_gdbarch_init): Update.
2711         * cris-tdep.c (cris_gdbarch_init): Update.
2712         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2713
2714 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2715
2716         * regset.h: New file.
2717         * Makefile.in (regset_h): Add.
2718
2719 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2720
2721         * frame.h (deprecated_frame_saved_regs): Rename
2722         get_frame_saved_regs.
2723         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2724         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2725         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2726         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2727         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2728
2729 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2730
2731         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2732         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2733         and Java.
2734         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2735         arm*-*-* do not use the new frame code.
2736
2737 2003-09-25  David Carlton  <carlton@kealia.com>
2738
2739         * c-exp.y: Remove 'register' declarations.
2740         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2741
2742 2003-09-25  David Carlton  <carlton@kealia.com>
2743
2744         * c-exp.y: Include cp-support.h.  Add qualified_type.
2745         (yylex): Delete nested type hack; add comments.
2746         * cp-namespace.c (cp_lookup_nested_type): New function.
2747         * cp-support.h: Declare cp_lookup_nested_type.
2748         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2749         instead of value_struct_elt_for_reference.
2750         * valops.c: Include cp-support.h.
2751         (value_aggregate_elt): New function.
2752         (value_namespace_elt): Ditto.
2753         (value_struct_elt_for_reference): Make static.
2754         * value.h: Delete declaration of value_struct_elt_for_reference;
2755         add declaration for value_aggregate_elt.
2756         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2757         (valops.o): Ditto.
2758
2759 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2760
2761         * stack.c: Include "reggroups.h".
2762         (frame_info): Only display registers in all_reggroup.
2763         * Makefile.in (stack.o): Update dependencies.
2764
2765 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2766
2767         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2768         "add ip, sp #n" in the prologue.
2769         (arm_scan_prologue): Ditto.
2770
2771 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2772
2773         * MAINTAINERS (write after approval): Add myself.
2774
2775 2003-09-25  Andreas Schwab  <schwab@suse.de>
2776
2777         * m68k-tdep.c: Include "dwarf2-frame.h".
2778         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2779         * Makefile.in (m68k-tdep.o): Update dependencies.
2780
2781 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2782
2783         * sh-tdep.c (struct frame_extra_info): Remove.
2784         (struct sh_frame_cache): New structure.
2785         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2786         (GET_TARGET_REG): Ditto but target register.
2787         (GET_PUSHED_REG): Remove.
2788         (IS_MOV_ARG_TO_REG): New macro.
2789         (IS_MOV_ARG_TO_IND_R14): New macro.
2790         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2791         (IS_MOVW_PCREL_TO_REG): New macro.
2792         (IS_MOVL_PCREL_TO_REG): New macro.
2793         (IS_SUB_REG_FROM_SP): New macro.
2794         (IS_ARG_MOV): Remove.
2795         (IS_MOV_TO_R14): Remove.
2796         (IS_RESTORE_FP): New macro.
2797         (IS_RTS): New macro.
2798         (IS_LDS): New macro.
2799         (IS_MOV_FP_SP): New macro.
2800         (IS_ADD_REG_TO_FP): New macro.
2801         (IS_ADD_IMM_FP): New macro.
2802         (sh_skip_prologue_hard_way): Remove.
2803         (sh_saved_pc_after_call): Remove.
2804         (sh_frame_chain): Remove.
2805         (sh_find_callers_reg): Remove.
2806         (sh_nofp_frame_init_saved_regs): Remove.
2807         (sh_fp_frame_init_saved_regs): Remove.
2808         (sh_init_extra_frame_info): Remove.
2809         (sh_analyze_prologue): New function.
2810         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2811         sh_analyze_prologue when after_prologue fails.
2812         (sh_frame_saved_pc): Remove.
2813         (sh_alloc_frame_cache): New function.
2814         (sh_frame_cache): Ditto.
2815         (sh_frame_prev_register): Ditto.
2816         (sh_frame_this_id): Ditto.
2817         (sh_frame_unwind): New structure defining the heuristic frame
2818         sniffer interface.
2819         (sh_frame_sniffer): New function.
2820         (sh_unwind_sp): Ditto.
2821         (sh_unwind_pc): Ditto.
2822         (sh_unwind_dummy_id): Ditto.
2823         (sh_frame_base_address): Ditto.
2824         (sh_frame_base): New structure defining new frame base code.
2825         (sh_in_function_epilogue_p): New function.
2826         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2827         code and to call all new code instead.  Initialize dwarf2 and
2828         heuristic frame sniffer.
2829
2830 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2831
2832         * parser-defs.h (struct exp_descriptor): New definition, containing
2833         language-specific info for printing, prefixifying, dumping, and
2834         evaluating expressions.
2835         (exp_descriptor_standard): Declare new variable.
2836         (print_subexp): Make global and declare here (from expprint.c).
2837         (dump_subexp): Ditto.
2838         (dump_subexp_body_standard): Declare.
2839         (operator_length_standard): Declare.
2840         (op_name_standard): Declare.
2841         (print_subexp): Declare.
2842         (print_subexp_standard): Declare.
2843
2844         * language.h (struct language_defn): Add la_exp_desc field to hold
2845         pointer to table for language-specific operators.
2846         Remove evaluate_exp field, which is now in struct exp_descriptor.
2847
2848         * parse.c (operator_length): Move most code to new
2849         operator_length_standard function.  Use language-specific information.
2850         (operator_length_standard): New function taking most code from
2851         operator_length.
2852         (exp_descriptor_standard): New constant.
2853
2854         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2855         and OP_EXTENDED_LAST.
2856
2857         * expprint.c (print_subexp): Use language-specific print_subexp.
2858         Make global; remove static declaration.
2859         Move most code to print_subexp_standard.
2860         (print_subexp_standard): New function, containing code formerly in
2861         print_subexp.
2862         (op_name): Add expression to argument signature.
2863         Use langauge-specific op_name.
2864         Move most code to op_name_standard.
2865         (op_name_standard): New function, containing code formerly in op_name.
2866         (dump_subexp):  Use new version of op_name function.
2867         Use language-specific dump_subexp_body, and move most existing code to
2868         dump_subexp_body_standard.
2869         (dump_raw_expression): Use new op_name interface.
2870         (dump_subexp_body): Move most code to dump_subexp_body_standard.
2871         (dump_subexp_body_standard): New function, containing code formerly
2872         in dump_subexp_body.
2873
2874         * language.c (unknown_language): Add default la_exp_desc field and
2875         remove evaluate_exp field.
2876         (auto_language): Ditto.
2877         (local_language): Ditto.
2878         * f-lang.c (f_language_defn): Ditto.
2879         * c-lang.c (c_language_defn): Ditto.
2880         (cplus_language_defn): Ditto.
2881         (asm_language_defn): Ditto.
2882         (minimal_language_defn): Ditto.
2883         * p-lang.c (pascal_language_defn): Ditto.
2884         * m2-lang.c (m2_language_defn): Ditto.
2885         * objc-lang.c (objc_language_defn): Ditto.
2886
2887         * jv-lang.c (exp_descriptor_java): New variable, containing
2888         Java-specific expression evaluator.
2889         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2890         field.
2891         * scm-lang.c (exp_descriptor_scm): New variable, containing
2892         Scheme-specific expression evaluator.
2893         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2894         field.
2895         * objc-lang.c (print_object_command): Take evaluate_exp from the
2896         la_exp_desc field.
2897
2898         * Makefile.in (eval.o): Add dependency on parser-defs.h.
2899
2900         * eval.c: Include parser-defs.h for the full declaration of
2901         la_exp_desc's type.
2902         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2903
2904 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2905
2906         * parser-defs.h (operator_length): Declare.
2907
2908         * parse.c (length_of_subexp): Use operator_length to get operator
2909         lengths and arities for operators.
2910         Move most code to new operator_length function.
2911         (operator_length): New function absorbing most code from
2912         length_of_subexp.
2913         (prefixify_subexp): Remove large case and use operator_length instead.
2914         (parse_exp_1): Use renamings:
2915         dump_prefix_expression => dump_raw_expression and
2916         dump_postfix_expression => dump_prefix_expression.
2917
2918         * expression.h (dump_prefix_expression): Rename to ...
2919         (dump_raw_expression): New name.
2920         (dump_postfix_expression): Rename to ...
2921         (dump_prefix_expression): New name.
2922
2923         * expprint.c (dump_subexp): Make global.  Add comment.
2924         Move most existing code to dump_subexp_body.
2925         (dump_subexp_body): New function.
2926         (dump_prefix_expression): Rename to dump_raw_expression.
2927         Remove attempt to print the expression via print_expression: it can't
2928         work before the expression is prefixified.
2929         (dump_raw_expression): Renamed from dump_prefix_expression.
2930         (dump_postfix_expression): Rename to dump_prefix_expression, since
2931         that's what it does.
2932         Remove 'note' parameter, since this routine must be used on
2933         prefixified expression.
2934         (dump_prefix_expression): Renamed from dump_postfix_expression.
2935
2936 2003-09-22  Jim Blandy  <jimb@redhat.com>
2937
2938         * dwarf2read.c (read_array_type): When building the type for an
2939         array of unspecified length, make sure to choose the upper bound
2940         so that the array's total length comes out to be zero --- that's
2941         how we represent such arrays.
2942
2943 2003-09-22  Michael Chastain  <mec@shout.net>
2944
2945         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2946
2947 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
2948
2949         * top.c (quit_force): Fix indirect call to quit_target so
2950         a struct qt_args pointer is passed.
2951
2952 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2953
2954         * arch-utils.h (init_frame_pc_noop): Delete declaration.
2955         * arch-utils.c (init_frame_pc_noop): Delete function.
2956         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2957         "init_frame_pc".
2958         * mips-tdep.c (mips_gdbarch_init): Ditto.
2959         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2960         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2961         declaration.
2962         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2963         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2964         declaration.
2965         (DEPRECATED_INIT_FRAME_PC): Delete macro.
2966
2967 2003-09-22  Anthony Green  <green@redhat.com>
2968
2969         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2970         declaration.
2971
2972 2003-09-20  Andrew Cagney  <cagney@redhat.com>
2973
2974         * breakpoint.c: Eliminate ARGSUSED.
2975         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2976         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2977         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2978         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2979         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2980         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2981         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2982         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2983         * wince.c, remote-vx.c: Ditto.
2984
2985         * cli/cli-script.c: Remove "register" attributes.
2986         * config/pa/tm-hppa.h: Ditto.
2987         * cli/cli-decode.c: Ditto.
2988         * cli/cli-cmds.c: Ditto.
2989
2990 2003-09-19  Andrew Cagney  <cagney@redhat.com>
2991
2992         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2993         DEPRECATED_NPC_REGNUM.
2994         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2995
2996 2003-09-19  Christopher Faylor  <cgf@redhat.com>
2997
2998         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2999
3000 2003-09-19  Jim Blandy  <jimb@redhat.com>
3001
3002         * macrotab.c (macro_include): Use the correct comparison to find
3003         the appropriate place for this inclusion in the list.
3004
3005 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3006
3007         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3008         (DEPRECATED_HPUX_TEXT_END): Define.
3009         (deprecated_hpux_text_end): Declare.
3010         (struct target_ops): Declare opaque.
3011         * hppah-nat.c (text_end): Make static.
3012         (deprecated_hpux_text_end): New function.
3013         * exec.c (text_end): Delete global variable.
3014         (NEED_TEXT_START_END): Do not define.
3015         (exec_file_attach): Replace code computing "text_end" code with
3016         call to DEPRECATED_HPUX_TEXT_END.
3017
3018 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3019
3020         * utils.c (align_up, align_down): New functions.
3021         * defs.h (align_up, align_down): Declare.
3022         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3023         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3024         and "align_down".
3025         (round_up, round_down): Delete functions.
3026         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3027         "align_down".
3028         (ROUND_DOWN, ROUND_UP): Delete macros.
3029         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3030         * h8300-tdep.c: Replace "round_up" and "round_down" with
3031         "align_up" and "align_down".
3032         (round_up, round_down): Delete macros.
3033         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3034         "align_down".
3035         (ROUND_UP, ROUND_DOWN): Delete macros.
3036
3037 2003-09-18  J. Brobecker  <brobecker@gnat.com>
3038
3039         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3040         hard-coded constant. Use the proper machine name instead.
3041
3042 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3043
3044         * sparc-tdep.c (legacy_register_name): Delete function.
3045         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3046         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3047         * infcmd.c (gdb_register_name): Delete variable.
3048         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3049         REGISTER_NAME and "tm.h".
3050         * gdbarch.h, gdbarch.c: Regenerate.
3051         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3052         REGISTER_NAMES in comments.
3053         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3054         * m68klinux-nat.c (regmap): Ditto.
3055
3056 2003-09-17  Jim Blandy  <jimb@redhat.com>
3057
3058         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3059
3060 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3061
3062         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3063         (ppcnbsd_init_abi): Set "use_struct_convention" to
3064         "ppcnbsd_use_struct_convention".
3065
3066 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
3067
3068         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3069         * gdbarch.h, gdbarch.c: Regenerate.
3070         (stabs_argument_has_addr): New architecture method.
3071         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3072         * arch-utils.c: Include "buildsym.h".
3073         (default_stabs_argument_has_addr): New function.
3074         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3075         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3076
3077 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3078
3079         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3080         * gdbarch.h, gdbarch.c: Regenerate.
3081         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3082         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3083         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3084         * sparcnbsd-tdep.c: Update.
3085
3086 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3087
3088         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3089         * gdbarch.h, gdbarch.c: Regenerate.
3090         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3091         * d10v-tdep.c, frame.c: Update.
3092         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3093         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3094         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3095         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3096         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3097         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3098         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3099         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3100         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3101         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3102         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3103         * config/pa/nm-hppah.h: Update.
3104
3105 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3106
3107         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3108         "use_struct_convention" to "ppc_linux_use_struct_convention".
3109         (ppc_linux_use_struct_convention): New function.
3110         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3111         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3112         "rs6000_use_struct_convention".
3113         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3114         declaration.
3115         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3116         Delete function.
3117
3118 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3119
3120         * buildsym.c: Remove more occurances of "register".
3121         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3122         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3123         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3124         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3125         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3126         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3127         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3128         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3129
3130 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
3131
3132         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
3133         numbers to enumeration values.
3134         * sh-tdep.c: Accomodate above change.
3135         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3136         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3137         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3138         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3139         (IS_FPUSH): Rename from IS_FMOV.
3140         (sh_extract_struct_value_address): Remove useless comment.
3141         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3142         instead of own local values.
3143         (sh_dump_tdep): Remove.
3144         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3145         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3146
3147 2003-09-15  Andrew Cagney  <cagney@redhat.com>
3148
3149         * doublest.c (convert_floatformat_to_doublest): No longer need to
3150         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
3151
3152 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
3153
3154         * values.c (unpack_double): Call floatformat_is_valid.
3155
3156 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
3157
3158         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3159         ps_strings into a long.
3160
3161         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3162         _initialize_am64fbsd_nat.
3163
3164 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
3165
3166         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3167         associated with DW_AT_ranges attribute is out of bounds.
3168
3169 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
3170
3171         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3172
3173 2003-09-14  Michael Chastain  <mec@shout.net>
3174
3175         * config/m68k/nm-apollo68v.h: Delete.
3176         * config/m68k/xm-apollo68v.h: Delete.
3177
3178 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3179
3180         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3181         * dcache.c: Update copyrights and descriptions.
3182         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3183
3184 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3185
3186         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3187         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3188
3189 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3190
3191         * alpha-nat.c: Remove some occurances of "register".
3192         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3193         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3194         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3195         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3196         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3197         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3198         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3199         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3200         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3201         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3202         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3203         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3204         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3205         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3206         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3207         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3208         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3209         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3210         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3211         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3212         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3213         * values.c, vax-tdep.c, xcoffread.c: Ditto.
3214
3215 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3216
3217         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3218         * ppc-tdep.h (struct regcache): Declare opaque.
3219         * objfiles.h (struct objfile_data): Declare opaque.
3220         * cp-support.h (struct objfile): Declare opaque.
3221         * linux-nat.h (target_waitstatus): Declare opaque.
3222
3223 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
3224
3225         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3226         (stabs_argument_has_addr): New architecture method.
3227         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3228         * arch-utils.c: Include "buildsym.h".
3229         (default_stabs_argument_has_addr): New function.
3230         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3231         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3232
3233         * cris-tdep.c (cris_gdbarch_init): Set
3234         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3235         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3236         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3237         * mips-tdep.c (mips_gdbarch_init): Likewise.
3238         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3239         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3240
3241 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3242
3243         * values.c (using_struct_return): Delete "function" and "funcaddr"
3244         parameters.
3245         * value.h (using_struct_return): Update declaration.
3246         * infcmd.c (finish_command_continuation): Update.
3247         (finish_command): Update.
3248         * infcall.c (call_function_by_hand): Update.
3249         * eval.c (evaluate_subexp_standard): Update.
3250
3251 2003-09-13  Christopher Faylor  <cgf@redhat.com>
3252
3253         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3254         SSE registers since gdb will not operate correctly without this.
3255         Restore include file ordering munged in previous change.
3256         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3257
3258 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
3259
3260         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3261         REG_STRUCT_HAS_ADDR.
3262         * gdbarch.c, gdbarch.h: Updated.
3263         * infcall.c (call_function_by_hand): Update.
3264         * stabsread.c (define_symbol): Updated.
3265
3266         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3267
3268 2003-09-12  Christopher Faylor  <cgf@redhat.com>
3269
3270         * win32-nat.c: Reorganize so that defines used by target headers are
3271         actually defined by the system headers.
3272         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3273         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3274
3275 2003-09-12  Jim Blandy  <jimb@redhat.com>
3276
3277         * dbxread.c (read_dbx_symtab): Don't report an internal error if
3278         the file has no .data, .bss, or .rodata sections.  Instead wait
3279         until we see a variable alleged to live in one of those sections.
3280
3281         * dbxread.c (read_dbx_symtab): If we have no .data section and no
3282         .bss section, presume that any variables we find live in the
3283         .rodata section.
3284
3285         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3286         offsets for global and static variables.
3287
3288         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3289         symbol types are, by definition, in the .data section, so it is
3290         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3291         If there is no .data section, there should be no N_DATA or N_DATA
3292         | N_EXT symbols.
3293
3294 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
3295
3296         * amd64fbsd-tdep.c: Fix sigtramp recognition.
3297         (amd64fbsd_sigcontext_addr): Rewrite.
3298         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3299         with correct values.
3300         (amd64fbsd_sc_reg_offset): Initialize with correct values.
3301         (amd64fbsd_init_abi): Fix typo.
3302
3303 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3304
3305         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3306         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3307
3308 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3309
3310         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3311         "entry_file_highpc".  Update comments.
3312         * defs.h (deprecated_inside_entry_file): Rename
3313         "inside_entry_file".
3314         * blockframe.c (deprecated_inside_entry_file): Rename
3315         "inside_entry_file".
3316         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
3317         * vax-tdep.c (vax_frame_chain): Update.
3318         * sh64-tdep.c (sh64_frame_chain): Update.
3319         * sh-tdep.c (sh_frame_chain): Update.
3320         * rs6000-tdep.c (rs6000_frame_chain): Update.
3321         * ns32k-tdep.c (ns32k_frame_chain): Update.
3322         * mips-tdep.c (mips_frame_chain): Update.
3323         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3324         * m32r-tdep.c (m32r_frame_this_id): Update.
3325         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3326         * frv-tdep.c (frv_frame_this_id): Update.
3327         * d10v-tdep.c (d10v_frame_this_id): Update.
3328         * cris-tdep.c (cris_frame_chain): Update.
3329         * blockframe.c (legacy_frame_chain_valid): Update.
3330         * avr-tdep.c (avr_frame_this_id): Update.
3331         * arm-tdep.c (arm_prologue_this_id): Update.
3332         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3333         * objfiles.c (objfile_relocate): Update.
3334         * mipsread.c (mipscoff_symfile_read): Update.
3335         (mipscoff_symfile_read): Update.
3336         * mdebugread.c (parse_partial_symbols): Update.
3337         * dwarfread.c (read_file_scope): Update.
3338         * dwarf2read.c (read_file_scope): Update.
3339         * dbxread.c (read_dbx_symtab): Update.
3340         (read_dbx_symtab): Update.
3341         * coffread.c (complete_symtab): Update.
3342
3343 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
3344
3345         * top.c (quit_target): New static helper function.
3346         (quit_force): Moved code to quit_target().  Call quit_target()
3347         via catch_errors() to catch errors during quit.
3348
3349 2003-09-11  David Carlton  <carlton@kealia.com>
3350
3351         * buildsym.c (finish_block): Use allocate_block to allocate the
3352         block.
3353         * mdebugread.c (new_block): Add FIXME.
3354
3355 2003-09-11  David Carlton  <carlton@kealia.com>
3356
3357         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3358         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3359         (recursive_dump_type): Ditto.
3360         * printcmd.c (print_formatted): Ditto.
3361         * typeprint.c (print_type_scalar): Ditto.
3362         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3363         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3364         * cp-support.h: Declare cp_check_possible_namespace_symbols,
3365         maint_cplus_cmd_list.
3366         * cp-support.c: Make maint_cplus_cmd_list extern.
3367         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3368         command.h.
3369         (lookup_symbol_file): Look in possible namespace blocks when
3370         appropriate.
3371         (initialize_namespace_symtab): New.
3372         (get_possible_namespace_block, free_namespace_block)
3373         (check_possible_namespace_symbols)
3374         (check_possible_namespace_symbols_loop)
3375         (check_one_possible_namespace_symbol)
3376         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3377         (_initialize_cp_namespace): Ditto.
3378         * block.h: Declare allocate_block.
3379         * block.c (allocate_block): New.
3380         * jv-lang.c (get_java_class_symtab): Allocate blocks via
3381         allocate_block.
3382         * symfile.h: Update declaration of add_psymbol_to_list.
3383         * symfile.c (add_psymbol_to_list): Return the partial symbol in
3384         question.
3385         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3386         scan_partial_symbols_call.
3387         (scan_partial_symbols): Add NAMESPACE argument; update calls to
3388         helper functions.
3389         (add_partial_symbol): If necessary, scan mangled names for names
3390         of namespaces.
3391         (add_partial_namespace): Add NAMESPACE argument; generate partial
3392         symbols associated  to namespaces.
3393         (add_partial_enumeration): Add NAMESPACE argument.
3394         (new_symbol): Allow namespace syms.
3395         (read_namespace): Generate namespace syms.
3396         * objfiles.h: Add opaque declaration of struct symtab.
3397         (struct objfile): Add cp_namespace_symtab member.
3398         * objfiles.c (allocate_objfile): Set
3399         objfile->cp_namespace_symtab.
3400         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3401         dictionary_h, command_h.
3402
3403 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3404
3405         * rs6000-tdep.c (rs6000_push_dummy_call): Use
3406         regcache_raw_write_signed to set SP_REGNUM, move the operation to
3407         near the function's end.
3408         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3409         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3410         regcache_raw_write_signed to set SP_REGNUM.
3411
3412 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
3413
3414         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3415         orig_addrs is set up properly.
3416
3417 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3418
3419         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3420         * gdbarch.h, gdbarch.c: Re-generate.
3421         * infcall.c (call_function_by_hand): Update.
3422         * hppa-tdep.c (hppa_push_arguments): Update.
3423         * ada-lang.c (place_on_stack): Update.
3424         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3425         * sparc-tdep.c (sparc_gdbarch_init): Update.
3426         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3427         * hppa-tdep.c (hppa_gdbarch_init): Update.
3428         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3429         stack_align.
3430
3431 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
3432
3433         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3434         register do need a frame.
3435
3436 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3437
3438         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3439         buildable since GDB 5.0.
3440         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3441         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3442         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3443         * irix4-nat.c: Delete file.
3444         * config/mips/irix4.mh: Delete file.
3445         * config/mips/irix3.mh: Delete file.
3446         * config/mips/irix3.mt: Delete file.
3447         * config/mips/tm-irix3.h: Delete file.
3448         * config/mips/nm-irix3.h: Delete file.
3449         * config/mips/xm-irix3.h: Delete file.
3450         * config/mips/nm-irix4.h: Delete file.
3451         * config/mips/xm-irix4.h: Delete file.
3452         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3453
3454 2003-09-10  J. Brobecker  <brobecker@gnat.com>
3455
3456         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3457         * Makefile.in (hppa-tdep.o): Update dependencies.
3458
3459 2003-09-10  James E Wilson  <wilson@specifixinc.com>
3460
3461         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3462         section.
3463
3464 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3465
3466         * MAINTAINERS (frv): New ISA entry.
3467
3468 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3469
3470         * frv-tdep.c (dis-asm.h): Include.
3471         * Makefile.in (frv-tdep.o): Update dependencies.
3472
3473 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3474
3475         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3476         Fix typo for high range of floating registers.
3477
3478 2003-09-09  David Carlton  <carlton@kealia.com>
3479
3480         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3481         highpc initialization here out of scan_partial_symbols.
3482         (scan_partial_symbols): Restructure into a recursive version,
3483         calling add_partial_namespace and add_partial_enumeration when
3484         appropriate.
3485         (add_partial_namespace): New.
3486         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3487
3488 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3489
3490         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3491         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3492         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3493         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3494
3495         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3496         (rs6000_push_dummy_call): Set the "TOC" register.
3497
3498         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3499         methods "max_register_raw_size", "max_register_virtual_size" or
3500         "register_virtual_size".
3501
3502 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
3503
3504         * MAINTAINERS: Update my e-mail address.
3505
3506 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3507
3508         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3509         (rs6000_push_dummy_call): Store the struct return address.
3510         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3511
3512 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3513
3514         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3515         "ppc_sysv_abi_push_arguments".
3516         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3517         "ppc_sysv_abi_push_arguments".
3518         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3519         instead of "push_arguments".
3520         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3521
3522 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3523
3524         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3525         instead of CALL_DUMMY_ADDRESS.
3526
3527 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
3528
3529         * p-lang.c: Eliminate "register".
3530         * c-lang.c: Ditto.
3531         * expprint.c: Ditto.
3532         * f-lang.c: Ditto.
3533         * jv-lang.c: Ditto.
3534         * language.c: Ditto.
3535         * m2-lang.c: Ditto.
3536         * parse.c: Ditto.
3537         * scm-lang.c: Ditto.
3538         * objc-lang.c: Ditto.
3539
3540 2003-09-09  Nick Clifton  <nickc@redhat.com>
3541
3542         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3543
3544 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3545
3546         * avr-tdep.c: Include "dis-asm.h".
3547         * cris-tdep.c: Include "dis-asm.h".
3548         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3549         instead of corresponding typedef.
3550         * h8300-tdep.c: Include "dis-asm.h".
3551         * ia64-tdep.c: Include "dis-asm.h".
3552         * i386-tdep.c: Include "dis-asm.h".
3553         (i386_print_insn): Use "struct disassemble_info" instead of
3554         corresponding typedef.
3555         * m68k-tdep.c: Include "dis-asm.h".
3556         * mcore-tdep.c: Include "dis-asm.h".
3557         * mips-tdep.c: Include "dis-asm.h".
3558         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3559         instead of corresponding typedef.
3560         * ns32k-tdep.c: Include "dis-asm.h".
3561         * s390-tdep.c: Include "dis-asm.h".
3562         * sparc-tdep.c: Include "dis-asm.h".
3563         * vax-tdep.c: Include "dis-asm.h".
3564         * v850-tdep.c: Include "dis-asm.h".
3565         * mn10300-tdep.c: Include "dis-asm.h".
3566         * rs6000-tdep.c: Include "dis-asm.h".
3567         * xstormy16-tdep.c: Include "dis-asm.h".
3568         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3569         print_insn_xstormy16.
3570         * Makefile.in (v850-tdep.o): Update dependencies.
3571         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3572         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3573         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3574         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3575         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3576         (gdbarch_h): Remove $(dis_asm_h).
3577         * disasm.c: Include "dis-asm.h".
3578         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3579         corresponding typedef.
3580         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3581         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3582         * gdbarch.sh: Do not include "dis-asm.h".
3583         (struct disassemble_info): Declare opaque.
3584         (TARGET_PRINT_INSN): Update declaration.
3585         * gdbarch.h, gdbarch.c: Re-generate.
3586
3587 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3588
3589         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3590         CALL_DUMMY_ADDRESS, change to a predicate.
3591         * gdbarch.h, gdbarch.c: Re-generate.
3592         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3593         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3594         * infcall.c (call_function_by_hand): Ditto.
3595         * sparc-tdep.c (sparc_push_return_address): Ditto.
3596         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3597         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3598         CALL_DUMMY_ADDRESS with entry_point_address.
3599         * v850-tdep.c (v850_push_return_address): Ditto.
3600         * s390-tdep.c (s390_push_return_address): Ditto.
3601         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3602         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3603         * mcore-tdep.c (mcore_push_return_address): Ditto.
3604         * cris-tdep.c (cris_push_return_address): Ditto.
3605         * arm-tdep.c (arm_push_return_address): Ditto.
3606
3607 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3608
3609         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3610         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3611         and REG_UNMODIFIED to REG_SAME_VALUE.
3612         (execute_cfa_program): Update.
3613         (dwarf2_frame_cache): Update.  Initialize table to
3614         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3615         location.
3616         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3617
3618 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3619
3620         * gnu-nat.c: Remove "inline" function attribute.
3621         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3622
3623 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3624
3625         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3626         target.
3627
3628 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3629
3630         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3631         (frame_extra_info): Rename this struct to frv_unwind_cache.
3632         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3633         Add fields ``prev_sp'' and ``base''.
3634         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3635         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3636         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3637         Delete.
3638         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3639         Revise all callers.  Fill in the unwind cache argument and make
3640         other adjustments to account for new frame mechanisms.
3641         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3642         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3643         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3644         (frv_frame_unwind, frv_frame_base): New structs.
3645         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3646         additional arguments expected by this method and adjust function
3647         body accordingly.
3648         (frv_gdbarch_init): Remove calls to the following functions:
3649         set_gdbarch_deprecated_init_frame_pc(),
3650         set_gdbarch_deprecated_saved_pc_after_call(),
3651         set_gdbarch_deprecated_frame_chain(),
3652         set_gdbarch_deprecated_frame_saved_pc(),
3653         set_gdbarch_deprecated_frame_init_saved_regs(),
3654         set_gdbarch_deprecated_push_arguments(),
3655         set_gdbarch_deprecated_push_return_address(),
3656         set_gdbarch_deprecated_pop_frame(),
3657         set_gdbarch_deprecated_call_dummy_words(),
3658         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3659         set_gdbarch_deprecated_init_extra_frame_info(),
3660         set_gdbarch_deprecated_dummy_write_sp(), and
3661         set_gdbarch_deprecated_pc_in_call_dummy().
3662         Add calls to the following functions:
3663         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3664         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3665         frame_base_set_default().
3666         * Makefile.in (frv-tdep.o): Update dependencies.
3667
3668 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3669
3670         * dwarf2-frame.c (read_encoded_value): Add support for
3671         DW_EH_PE_aligned encoding.
3672
3673 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3674
3675         * infrun.c (normal_stop): Don't print a message if the inferior
3676         has exited.
3677
3678 2003-09-08  Jim Blandy  <jimb@redhat.com>
3679
3680         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3681         * dbxread.c: #include "gdb_assert.h".
3682         (read_dbx_symtab): If the objfile has no .data section, use the
3683         section index for the .bss section instead.
3684
3685 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3686
3687         * frame.c (deprecated_safe_get_selected_frame): New function.
3688         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3689         * findvar.c (read_var_value): Call it.
3690
3691 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3692
3693         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3694         (sh64-tdep.o): Add dependencies.
3695         * configure.tgt: Add FIXME to sh-*-linux*.
3696         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3697         (sh_gdbarch_init): Always set correct sh_show_regs function
3698         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3699         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3700         * sh64-tdep.c: New file, containing all sh64 related code from
3701         sh-tdep.c.
3702         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3703         * config/sh/linux.mt (TDEPFILES): Ditto.
3704         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3705         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3706         * config/sh/wince.mt (TDEPFILES): Ditto.
3707
3708 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3709
3710         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3711         (stop_wait_callback): Handle !lp->signalled also.
3712         (lin_lwp_has_pending, flush_callback): New functions.
3713         (lin_lwp_wait): Call flush_callback.
3714         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3715         (linux_proc_pending_signals): New function.
3716         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3717
3718 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3719
3720         From Nick Kelsey <nickk@ubicom.com>:
3721         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3722         when the stop PC is at the beginning of a function also.
3723
3724 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3725
3726         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3727         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3728
3729 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3730
3731         * sol-thread.c: Include "gdb_string.h".
3732
3733 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3734
3735         * gcore.c: Reorder include files in alphabetical order.  Include
3736         "gdb_assert.h".  Various coding style fixes.
3737         (derive_stack_segment, derive_heap_segment): Replace check for
3738         non-null BOTTOM and TOP with gdb_assert.
3739         (derive_heap_segment): Replace check for successful creation of
3740         ZERO with gdb_assert.
3741         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3742
3743 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3744
3745         * thread-db.c (verbose_dlsym): New function.
3746         (thread_db_load): Use verbose_dlsym
3747         (thread_db_new_objfile): Print that libthread_db was loaded, and
3748         that thread debugging was enabled.
3749
3750 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3751
3752         * configure.tgt: Add "mips64*-*-*" target.  Delete
3753         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3754         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3755         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3756         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3757         mips*-sony-*, and mips64*-*-elf* targets.
3758         * config/mips/embedl.mt: Delete file.
3759         * config/mips/embedl64.mt: Delete file.
3760         * config/mips/mips.mt: Delete file.
3761         * config/mips/mips64.mt: Delete file.
3762         * config/mips/tm-embed.h: Delete file.
3763         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3764         * config/mips/embed64.mt: Delete out-of-date comment.
3765
3766 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3767
3768         * hppa-tdep.c (hppa_gdbarch_init): Set
3769         "have_nonsteppable_watchpoint".
3770         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3771         * mips-tdep.c (mips_dump_tdep): Do not print
3772         HAVE_NONSTEPPABLE_WATCHPOINT.
3773         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3774         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3775         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3776         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3777
3778 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3779
3780         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3781         unused code.  Add comment.
3782
3783 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3784
3785         * breakpoint.c (watchpoint_check): Check for pc being in an
3786         epilogue if watchpoint frame couldn't be found.
3787
3788 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3789
3790         * Makefile.in: Re-generate all dependencies.
3791
3792 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3793
3794         * arch-utils.h (legacy_print_insn): Delete declaration.
3795         * arch-utils.c (legacy_print_insn): Delete function.
3796         * disasm.c (deprecated_tm_print_insn_info): Delete.
3797         (_initialize_disasm): Delete function, contained code initializing
3798         deprecated_tm_print_insn_info.
3799         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3800         (deprecated_tm_print_insn_info): Delete.
3801         (TARGET_PRINT_INSN): Do not provide a default.
3802         * gdbarch.h, gdbarch.c: Re-generate.
3803
3804 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3805
3806         * disasm.c (fprintf_disasm): New function.
3807         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3808         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3809         reverts 2003-08-14 change.
3810         (_initialize_disasm): Call "init_disassemble_info", instead of
3811         INIT_DISASSEMBLE_INFO_NO_ARCH.
3812
3813 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3814
3815         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3816
3817 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3818
3819         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3820         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3821         * symfile.c (syms_from_objfile): Update.
3822         (reread_symbols): `Update
3823         * exec.c (exec_file_attach): Update.
3824         (exec_file_attach): Update.
3825         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3826         2003-08-29 change.
3827         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3828
3829 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3830
3831         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3832         trad-frame.h.
3833         (arm_get_cache): Delete macro.
3834         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3835         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3836         to prev_sp.
3837         (thumb_scan_prologue): Update for cache changes.  Don't call
3838         DEPRECATED_PC_IN_CALL_DUMMY.
3839         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3840         argument and use it in desperation search for our prologue.  Do not
3841         search past the specified PC.
3842         (arm_make_prologue_cache): Simplify.
3843
3844         (arm_prologue_this_id, arm_prologue_prev_register)
3845         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3846         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3847         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3848         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3849         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3850
3851         (arm_frame_chain_valid, arm_find_callers_reg)
3852         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3853         (arm_pop_frame): Delete obsolete methods.
3854         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3855
3856         (arm_gdbarch_init): Update for new frame methods.  Register prologue
3857         and sigtramp unwinders.  Set the default frame base method.
3858
3859         * Makefile.in (arm-tdep.o): Update dependencies.
3860         * varobj.c (find_frame_addr_in_frame_chain): Call
3861         get_frame_base_address.
3862         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3863
3864 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3865
3866         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3867         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
3868         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3869         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3870         Take NEXT_FRAME and CACHE arguments.  Call
3871         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3872         Set unwound_pc in CACHE instead of modifying the frame argument.
3873         Don't bother checking the frame type when looking for sigtramp
3874         frames.
3875         (arm_make_prologue_cache, arm_frame_chain)
3876         (arm_init_extra_frame_info): New functions.
3877
3878 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3879
3880         * arm-tdep.c (arm_get_cache): Define.
3881         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
3882         unwound_sp, unwound_pc, and saved_regs.
3883         (thumb_scan_prologue): Take a cache instead of the frame.
3884         (arm_scan_prologue): Likewise.
3885         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3886         instead of a temporary frame.
3887         (arm_init_extra_frame_info): Allocate and use a cache.
3888         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3889
3890 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3891
3892         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3893         * config/mips/wince.mt (TM_CLIBS): Ditto.
3894         * config/sh/wince.mt (TM_CLIBS): Ditto.
3895         * config/pa/hppa64.mt (TM_CLIBS): Delete.
3896         * config/sparc/sp64.mt (CC): Delete.
3897
3898 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3899
3900         * defs.h: Do not include "arch-utils.h".
3901         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3902         GDB_MULTI_ARCH_PURE.
3903         * configure.in (GDB_MULTI_ARCH): Do not define.
3904         * configure, config.in: Regenerate.
3905         * configure.tgt: Do not set variable "gdb_multi_arch".
3906         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3907         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3908         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3909         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3910         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3911         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3912         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3913         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3914         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3915         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3916         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3917         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3918         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3919         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3920         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3921         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3922         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3923         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
3924
3925 2003-08-30  Michael Chastain  <mec@shout.net>
3926
3927         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3928         * config/m68k/nm-hp300hpux.h: Delete.
3929         * config/m68k/tm-hp300hpux.h: Delete.
3930         * config/m68k/xm-hp300hpux.h: Delete.
3931         * config/m68k/xm-hp300bsd.h: Delete.
3932         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3933         tm-hp300hpux.h, xm-hp300hpux.h.
3934         * somsolib.c: Remove comment about hp300 shared libraries.
3935
3936 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
3937
3938         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3939         Only define PTRACE_GET_THREAD_AREA is not already defined.
3940         Various style fixes in code and comments and some additional
3941         spelling fixes in comments.  Move after functions dealing with
3942         debug registers.
3943         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3944         Fix coding-style.
3945
3946         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3947         frame_unwind_register_unsigned instead of
3948         frame_unwind_unsigned_register.
3949
3950 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
3951
3952         * configure.in: Search for gethostbyname in libnsl.
3953         * configure: Regenerated.
3954
3955 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
3956
3957         * configure.in: Remove redundant AC_MSG_RESULT in check for
3958         uintptr_t in stdint.h.
3959         * configure: Regenerated.
3960
3961         * amd64-nat.h (struct regcache): Add opaque declaration.
3962
3963         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3964         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3965         Change "register array" to "register cache" in comments.
3966         (x86_64_linux_gregset64_reg_offset): New variable.
3967         (GETREGS_SUPPLIES): Remove macro.
3968         (supply_gregset): Call amd64_supply_native_gregset instead of
3969         x86_64_linux_supply_gregset.
3970         (fill_gregset): Rename `regno' to `regnum'.  Call
3971         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3972         (store_regs): Rename `regno' to `regnum'.
3973         (store_fpregs): Rename `regno' to `regnum'.
3974         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
3975         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3976         Reorganize function a bit.
3977         (store_inferior_registers): Rename `regno' to `regnum'.  Use
3978         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3979         Reorganize function a bit.
3980         (_initialize_x86_64_linux_nat): New function.
3981         * config/i386/x86-64linux.mh.
3982
3983 2003-08-29  Andrew Cagney  <cagney@redhat.com>
3984
3985         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3986         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3987         (target_remove_watchpoint): Delete macro.
3988         (target_insert_watchpoint): Delete macro.
3989         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3990         (remote_mips_stopped_by_watchpoint): Delete declaration.
3991         (remote_mips_remove_watchpoint): Delete declaration.
3992         (remote_mips_set_watchpoint): Delete declaration.
3993         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3994         * remote-mips.c (_initialize_remote_mips): Set
3995         "to_insert_watchpoint", "to_stopped_by_watchpoint",
3996         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3997         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3998         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3999         (mips_stopped_by_watchpoint): Rename
4000         remote_mips_stopped_by_watchpoint.
4001         (mips_can_hardware_watchpoint): Rename
4002         remote_mips_can_use_hardware_watchpoint, update function
4003         signature.
4004
4005 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
4006
4007         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4008         USER_DS.  We haven't given them a register number yet.
4009
4010         * amd64-nat.h: New file.
4011         * amd64-nat.c: New file.
4012         * amd64fbsd-nat.c: Include "amd64-nat.h".
4013         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4014         (amd64fbsd32_r_reg_offset): New variable.
4015         (supply_gregset): Simply call amd64_supply_native_gregset.
4016         (fill_gregset): Rename `regno' to `regnum'.  Simply call
4017         amd64_collect_native_gregset.
4018         (fill_fpregset): Rename `regno' to `regnum'.
4019         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
4020         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4021         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4022         `fpregset_t'.  Call amd64_supply_native_gregset instead of
4023         supply_gregset.  Call x86_64_supply_fxsave instead of
4024         supply_fpregset.
4025         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
4026         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4027         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4028         `fpregset_t'.  Call amd64_collect_native_gregset instead of
4029         fill_gregset.  Call x86_64_collect_fxsave instead of
4030         fill_fpregset.
4031         (_initialize_am64fbsd_nat): Initialize
4032         amd64_native_gregset32_reg_offset and
4033         amd64_native_gregset64_reg_offset.
4034         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4035
4036         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4037         null pointer.  Fix typo in comment.
4038
4039         * regcache.c (supply_register): Reimplement to call
4040         regcache_raw_supply.
4041         (regcache_collect): Reimplement by calling regcache_raw_collect.
4042
4043 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
4044
4045         * regcache.c (register_buffer): Consitify first argument.
4046         (regcache_raw_supply, regcache_raw_collect): New
4047         functions.
4048
4049 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4050
4051         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
4052         by Nathan J. Williams.
4053
4054 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4055
4056         * lin-lwp.c (wait_lwp): New function, copied from
4057         stop_wait_callback.  Clean up.
4058         (stop_wait_callback): Use wait_lwp.
4059
4060 2003-08-28  Andrew Cagney  <cagney@redhat.com>
4061
4062         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4063         flavour and disassembler options.
4064         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4065         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
4066         deprecated_tm_print_insn_info.
4067
4068 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4069
4070         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4071         Use target_read_memory.
4072         (s390_get_frame_info): Update.  Do not reference
4073         deprecated_tm_print_insn_info.
4074         (s390_check_function_end, s390_is_sigreturn): Ditto.
4075
4076 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4077
4078         * Makefile.in (cris-tdep.o): Update dependencies.
4079         * cris-tdep.c: Include "gdb_assert.h".
4080         (cris_gdbarch_init): Set print_insn.
4081         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4082         (cris_delayed_get_disassembler): Simplify, directly call the
4083         disassembler returned by cris_get_disassembler.
4084         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4085         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4086         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4087         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4088         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4089         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4090         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4091         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4092         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4093         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4094         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4095         (gdb_print_insn_sparc): Delete function.
4096         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4097         deprecated_tm_print_insn_info.
4098         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4099         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4100         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4101         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4102         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4103         * s390-tdep.c (gdb_print_insn_s390): Delete function.
4104         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4105         (s390_gdbarch_init): Set print_insn.
4106
4107 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4108
4109         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4110         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4111         * infcall.c (call_function_by_hand): Convert the entry point
4112         address into a code address.
4113
4114 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4115
4116         * dsrec.c: Include "gdb_string.h".
4117         * Makefile.in (dsrec.o): Update dependencies.
4118
4119 2003-08-27  Michael Chastain  <mec@shout.net>
4120
4121         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4122
4123 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4124
4125         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4126         (alpha_osf1_init_abi): Do not set call_dummy_address.
4127
4128 2003-08-27  David Carlton  <carlton@kealia.com>
4129
4130         From Randolph Chung  <tausq@debian.org>:
4131         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4132         compiles with -Wformat-nonliteral -Werror.
4133
4134 2003-08-26  Jim Blandy  <jimb@redhat.com>
4135
4136         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4137         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4138         bfd_lookup_symbol, since we only want symbols in code sections.
4139         (look_for_base): Pass zero as the SECT_FLAGS argument to
4140         bfd_lookup_symbol, since we're not concerned about which section
4141         the symbol is in.
4142
4143 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4144
4145         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4146         we are frameless or the return address register is already known.
4147
4148 2003-08-26  Andrew Cagney  <cagney@redhat.com>
4149
4150         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4151         in size.  Add comments.
4152
4153 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4154
4155         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4156         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
4157
4158 2003-08-26  Jason Merrill  <jason@redhat.com>
4159
4160         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4161         case out of #ifdef MIPS block.
4162
4163 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
4164
4165         PR java/1322
4166         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4167         available before calling SECT_OFF_TEXT.
4168         * PROBLEMS: Remove description of java/1322.
4169
4170 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
4171
4172         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4173         bof, and nat0-nat127 as pseudo-registers.
4174         (ia64_frame_cache): New struct used to cache frame info.
4175         (ia64_register_reggroup_p): New routine used to override default
4176         register grouping so registers without names are still saved and
4177         restored.
4178         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
4179         pseudo values.
4180         (ia64_pseudo_register_read): New routine to read pseudo-registers.
4181         (ia64_pseudo_register_write): New routine to write pseudo-registers.
4182         (ia64_alloc_frame_cache): New routine to create a new
4183         ia64_frame_cache.
4184         (examine_prologue): Change prototype to add next_frame pointer.
4185         Assume frameless until otherwise proven.  Verify that the cfm for
4186         current frame matches the cfm that should occur for the prologues
4187         alloc insn and if equal, mark as not frameless.  At end of routine,
4188         if not frameless, calculate registers for the previous frame and store
4189         in the cache, if a cache is provided.
4190         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
4191         and pass 0 for next_frame.
4192         (ia64_store_return_value): Change to use convert_typed_floating()
4193         instead of calling ia64_convert_to_raw().
4194         (ia64_extract_return_value): Change to use convert_typed_floating()
4195         instead of calling ia64_convert_to_virtual().
4196         (ia64_frame_cache): New routine to support new frame model.
4197         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4198         (ia64_frame_sniffer): Ditto.
4199         (ia64_sigtramp_frame_init_saved_regs): Ditto.
4200         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4201         (ia64_sigtramp_frame_prev_register): Ditto.
4202         (ia64_sigtramp_frame_sniffer): Ditto.
4203         (ia64_frame_base_address): Ditto.
4204         (ia64_extract_struct_value_address): Change to issue error message.
4205         (ia64_frame_align): New routine to align sp.
4206         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4207         (ia64_push_arguments): Removed.  Logic moved to
4208         ia64_push_dummy_call().
4209         (ia64_push_return_address): Ditto.
4210         (ia64_unwind_dummy_id): New function.
4211         (ia64_unwind_pc): Ditto.
4212         (ia64_convert_register_p): Ditto.
4213         (ia64_register_to_value): Ditto.
4214         (ia64_value_to_register): Ditto.
4215         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4216         (ia64_register_byte, ia64_register_raw_size): Ditto.
4217         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4218         (ia64_saved_pc_after_call): Ditto.
4219         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4220         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4221         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4222         (ia64_register_convert_to_raw): Ditto.
4223         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4224         (ia64_init_extra_frame_info): Ditto.
4225         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4226         (ia64_gdbarch_init): Remove registering of deprecated functions that
4227         are no longer used.  Add registration of new gdbarch functions.
4228         Remove registering deprecated_write_sp.  Replace
4229         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4230         Delete set_gdbarch_deprecated_register_convertible(),
4231         set_gdbarch_deprecated_register_convert_to_virtual(), and
4232         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
4233         set_gdbarch_deprecated_register_size(),
4234         set_gdbarch_deprecated_register_bytes(),
4235         set_gdbarch_pcregnum(),
4236         set_gdbarch_deprecated_register_byte(),
4237         set_gdbarch_deprecated_register_raw_size(),
4238         set_gdbarch_deprecated_max_register_raw_size(),
4239         set_gdbarch_deprecated_register_virtual_size(),
4240         and set_gdbarch_deprecated_max_register_virtual_size() calls.
4241         Replace set_gdbarch_deprecated_extract_return_value() with
4242         set_gdbarch_extract_return_value().  Remove calls to:
4243         set_gdbarch_deprecated_saved_pc_after_call();
4244         set_gdbarch_deprecated_frame_chain(),
4245         set_gdbarch_deprecated_frame_saved_pc(),
4246         set_gdbarch_deprecated_frame_init_saved_regs(),
4247         set_gdbarch_deprecated_get_saved_register(),
4248         set_gdbarch_deprecated_call_dummy_words(),
4249         set_gdbarch_deprecated_sizeof_call_dummy_words(),
4250         set_gdbarch_deprecated_init_extra_frame_info(),
4251         set_gdbarch_deprecated_frame_args_address(),
4252         set_gdbarch_deprecated_frame_locals_address(),
4253         and set_gdbarch_deprecated_dummy_write_sp().
4254         Add set_gdbarch_convert_register_p(),
4255         set_gdbarch_register_to_value(),
4256         set_gdbarch_value_to_register(),
4257         set_gdbarch_push_dummy_call(),
4258         set_gdbarch_frame_align(),
4259         set_gdbarch_unwind_dummy_id(),
4260         set_gdbarch_unwind_pc(),
4261         frame_unwind_append_sniffer(),
4262         frame_unwind_append_sniffer(),
4263         and frame_base_set_default().
4264
4265 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
4266
4267         * configure.tgt: Document need for special "mipsisa64" handling.
4268         (mipsisa64*-*-linux64): Handle as target linux64.
4269         (mipsisa64*-*-*): Handle as target embed64.
4270
4271 2003-08-18  Michael Chastain  <mec@shout.net>
4272
4273         * PROBLEMS: Document pr gdb/1322, the Java anonymous
4274         objfile bug.
4275
4276 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
4277
4278         * i387-tdep.h: Update copyright date.
4279         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4280
4281         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4282         CFLAGS games to reflect reality.
4283
4284 2003-08-24  Andrew Cagney  <cagney@redhat.com>
4285
4286         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4287         GDB_MULTI_ARCH is always non-zero.
4288         * osabi.c (_initialize_gdb_osabi): Ditto.
4289         (gdbarch_init_osabi): Ditto.
4290         * sparc-tdep.c: Ditto for #if code.
4291
4292 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4293
4294         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4295         Update comments.
4296         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
4297         comments.
4298         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4299         x86_64_supply_fxsave.
4300         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4301         x86_64_supply_fxsave.
4302         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4303         x86_64_supply_fxsave.
4304
4305 2003-08-23  Andreas Jaeger  <aj@suse.de>
4306
4307         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4308         i387_supply_fxsave.
4309
4310 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4311
4312         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4313         i387_supply_register.
4314         (go32_fetch_registers): Adjust call to i387_supply_fsave.
4315         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4316         i387_supply_fsave.
4317         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4318         i387_supply_fxsave.
4319         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4320         i387_supply_fsave.
4321         * i386bsd-nat.c (supply_fpregset): Adjust call to
4322         i387_supply_fsave.
4323         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
4324         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
4325         supply_fpregset.
4326         (store_inferior_registers): Remove extraneous whitespace.  Call
4327         i387_fill_fsave instead of fill_fpregset.
4328         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4329         (supply_fpregset): Likewise.
4330         * i386v4-nat.c (supply_fpregset): Adjust call to
4331         i387_supply_fsave.
4332         * i386-interix-nat.c (supply_fpregset): Adjust call to
4333         i387_supply_fsave.
4334         * i386-linux-nat.c (supply_fpregset): Adjust call to
4335         i387_supply_fsave.
4336         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4337         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4338         i387supply_fsave and i387_supply_fxsave.
4339         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4340         Incorporate code from `i387_supply_register.
4341         (i387_supply_register): Remove.
4342         (i387_supply_fxsave): Add `regnum' argument.
4343         Update comments.
4344         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4345         prototype.
4346         (i387_supply_register): remove prototype.
4347         Update comments.
4348
4349 2003-08-22  Michael Chastain  <mec@shout.net>
4350
4351         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4352         Add lines for files in gdb/testsuite/gdb.cp/* that are
4353         still not 8.3 unique.
4354
4355 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
4356
4357         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4358         TYPE_VPTR_FIELDNO is valid.
4359
4360 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
4361
4362         * utils.c (set_width_command): Remove prototypes.
4363         (set_screen_size): New prototype.
4364         (init_page_info): Simplify by fetching the screen size from
4365         Readline.  Call set_screen_size.
4366         (set_screen_size): New function.
4367         (set_width): Add missing whitespace in comment.
4368         (set_width_command): Call set_screen_size.
4369         (set_height_command): New function.
4370         (initialize_utils): Fix formatting.  Make "set height" command
4371         call set_height_command.  Remove redundant code that turns off
4372         pagination if output isn't a terminal.  Remove redundant call to
4373         set_width_command.
4374
4375 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
4376
4377         * sparc64-tdep.h (sparc64_regnum): Fix comment.
4378         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4379         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4380         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4381         `case' keyword.
4382         (sparc64_register_info): Give the reister with number
4383         SPARC64_STATE_REGNUM a name.
4384         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4385         %asi and %ccr.
4386         (sparc64_push_dummy_call): Take BIAS into account when checking
4387         stcak alignment.
4388         (sparc_software_single_step): Remove assertions that check whether
4389         NPC and NNPC were zero.
4390         (sparc_supply_rwindow): Make public.  Merge functionality with
4391         sparc64_supply_rwindow.
4392         (sparc_fill_rwindow): Make public.  Merge functionality with
4393         sparc64_fill_rwindow.
4394         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4395         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4396         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4397         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4398         sparc_supply_rwindow instead of sparc64_supply_rwindow.
4399
4400         * reggroups.c: Add whitespace after declarations of local
4401         variables in functions.
4402
4403 2003-08-21  Michael Chastain  <mec@shout.net>
4404
4405         * gdbtypes.h: Change array bound type from an int to enum.
4406
4407 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4408
4409         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4410         * config/sparc/tm-sparc.h: Ditto.
4411         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4412         unconditionally.
4413         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4414
4415 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4416
4417         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4418         (register_objfile_data, set_objfile_data, objfile_data): New
4419         prototypes.
4420         * objfiles.c (objfile_alloc_data, objfile_free_data): New
4421         prototypes.
4422         (allocate_objfile): Call objfile_alloc_data.
4423         (free_objfile): Call objfile_free_data.
4424         (struct objfile_data): New.
4425         (struct objfile_data_registration): New.
4426         (struct objfile_data_registry): New.
4427         (objfile_data_registry): New variable.
4428         (register_objfile_data): New function.
4429         (objfile_alloc_data, objfile_free_data): New functions.
4430         (set_objfile_data, objfile_data): New functions.
4431         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4432         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4433         (_initialize_dwarf2_frame): New function and prototype.
4434
4435 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4436
4437         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4438         a specific architecture.
4439         * arch-utils.h (set_architecture_from_arch_mach): Delete
4440         declaration.
4441         (target_architecture_hook): Delete declaration.
4442         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4443         (default_float_format): Assume GDB_MULTI_ARCH.
4444         (default_double_format): Assume GDB_MULTI_ARCH.
4445         (set_endian_from_file): Delete function.
4446         (arch_ok): Delete function.
4447         (set_arch): Delete function.
4448         (set_architecture_from_arch_mach): Delete function.
4449         (set_architecture_from_file): Delete function.
4450         (set_architecture): Assume GDB_MULTI_ARCH.
4451         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4452
4453 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
4454
4455         Rewrite FreeBSD/sparc64 native configuration.
4456         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4457         * sparc64fbsd-nat.c: New file.
4458         * sparc64fbsd-tdep.c: New file.
4459         * sparc64-tdep.c sparc64-tdep.h: New files.
4460         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4461         sparc64fbsd-tdep.o): New dependencies.
4462         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4463         and sparc64fbsd-tdep.c.
4464         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4465         * config/sparc/fbsd.mh: Remove copyright notice.
4466         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4467         sparcbsd-nat.o.
4468         * config/sparc/fbsd.mt: Remove copyright notice.
4469         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4470         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4471         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4472         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4473         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4474         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4475         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4476         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4477         "sparc/tm-sp64.h".
4478         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4479         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4480
4481 2003-08-21  Michael Chastain  <mec@shout.net>
4482
4483         * symtab.h: Add doco on the space critical structures and
4484         some measurements of space usage.
4485
4486 2003-08-21  Michael Snyder  <msnyder@redhat.com>
4487
4488         * tracepoint.c (trace_dump_command): Trace break address
4489         is subject to DECR_PC_AFTER_BREAK.
4490         (set_traceframe_context): Make "trace_line" an int.
4491         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
4492
4493 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4494
4495         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4496         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4497         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4498         argument passing.
4499         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4500         functions, replace sh_push_dummy_call.
4501         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4502
4503 2003-08-20  Michael Chastain  <mec@shout.net>
4504
4505         * gdbtypes.h (struct main_type): Rearrange to save space.
4506
4507 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4508
4509         * trad-frame.c: Comment typo fix.
4510
4511 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4512             Kevin Buettner  <kevinb@redhat.com>
4513
4514         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4515         (frv_frame_init_saved_regs): Add declaration.
4516         (frame_extra_info): Add new field ``saved_regs''.
4517         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4518         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4519         Update frame related code.
4520         (frv_extract_struct_value_address): Adjust formatting.
4521         * Makefile.in (frv-tdep.o): Update dependencies.
4522         * config/frv/tm-frv.h (target_insert_watchpoint)
4523         (target_remove_watchpoint, target_insert_hw_breakpoint)
4524         (target_remove_hw_breakpoint): Delete these macros.
4525         (remote_insert_watchpoint, remote_remove_watchpoint)
4526         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4527         these declarations.
4528
4529 2003-08-20  Michael Chastain  <mec@shout.net>
4530
4531         * defs.h (ENUM_BITFIELD): New macro.
4532         * symtab.h (ENUM_BITFIELD): Use it.
4533         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4534
4535 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
4536
4537         * MAINTAINERS (write after approval): Add myself.
4538
4539 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4540
4541         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4542         * gdbarch.h, gdbarch.c: Re-generate.
4543         * infcall.c (call_function_by_hand): Adjust the SP by
4544         frame_red_zone_size before allocating any stack space.
4545         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4546         * x86-64-tdep.c (x86_64_frame_align): New function.
4547         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4548
4549         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4550         Remove code adjusting SP so that it skips over the Red Zone.
4551
4552 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4553
4554         * NEWS (New native configurations): Mention FreeBSD/amd64.
4555
4556 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4557
4558         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4559         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4560         "m68k_frame_p".
4561         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4562
4563 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4564
4565         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4566
4567 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
4568
4569         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4570         Define.
4571         * i386-linux-nat.c: Include "linux-nat.h".
4572         (child_post_startup_inferior): New function.
4573
4574 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4575
4576         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4577         at the start of a frameless function.  This probably fixes PR
4578         backtrace/1338.
4579
4580 2003-08-17  Michael Chastain  <mec@shout.net>
4581
4582         * symfile.c (find_sym_fns): Remove special case for apollo target.
4583
4584 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4585
4586         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4587         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4588         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4589         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4590         (linux_supports_tracevforkdone): New function.
4591         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4592         TRACEVFORKDONE.
4593         (child_follow_fork): Handle vfork.
4594         (linux_handle_extended_wait): Likewise.  Also handle exec.
4595         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4596         * NEWS: Mention fork tracing.
4597
4598 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4599
4600         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4601
4602 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4603
4604         * Makefile.in (i386-linux-nat.o): Update dependencies.
4605         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4606         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4607         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4608         * i386-linux-nat.c: Include "linux-nat.h".
4609         (child_post_startup_inferior): New function.
4610         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4611         * infptrace.c (kill_inferior): Wrap in #ifdef.
4612         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4613         attaching to each LWP.
4614         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4615         (init_lin_lwp_ops): Fill in some more operations.
4616         * linux-nat.h (linux_enable_event_reporting)
4617         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4618         prototypes.
4619         * linux-nat.c (linux_enable_event_reporting): New function.
4620         (child_post_attach, linux_child_post_startup_inferior)
4621         (child_post_startup_inferior, child_follow_fork)
4622         (linux_handle_extended_wait, kill_inferior): New functions.
4623
4624 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4625
4626         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4627         * gdbarch.h, gdbarch.c: Re-generate.
4628
4629 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4630
4631         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4632
4633 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4634
4635         * NEWS: Mention that "set prompt-escape-char" was deleted.
4636         * top.c (get_prompt_1): Delete function.
4637         (gdb_prompt_escape):
4638         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4639         prompt-escape-char" command.
4640         (MAX_PROMPT_SIZE): Delete macro.
4641         (get_prompt): Simplify, do not call get_prompt_1.
4642
4643 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4644
4645         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4646         -Werror.  -Wformat-nonliteral problems.
4647
4648 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4649
4650         Further multiarching work mostly for hppa64-*-hpux11:
4651         * hppa-tdep.h: New file.
4652         * hppa-tdep.c: #include hppa-tdep.c.
4653         (hppa32_num_regs): Renamed from hppa_num_regs.
4654         (hppa64_num_regs): New constant.
4655         (hppa64_call_dummy_breakpoint_offset): New constant.
4656         (hppa32_call_dummy_length): New constant.
4657         (hppa64_call_dummy_length): New constant.
4658         (hppa32_stack_align): Make name 32bit explicit.
4659         (hppa32_register_virtual_type): Likewise.
4660         (hppa32_extract_return_value): Likewise.
4661         (hppa32_use_struct_convention): Likewise.
4662         (hppa32_store_return_value): Likewise.
4663         (hppa64_register_virtual_type): New function.
4664         (hppa64_extract_return_value): New function.
4665         (hppa64_use_struct_convention): New function.
4666         (hppa64_store_return_value): New function.
4667         (hppa_frame_locals_address): Remove declaration, function does
4668         not exist anymore.
4669         (hppa_register_byte): Add support for PA64 ABI.
4670         (hppa_gdbarch_init): Add support for PA64 ABI.
4671         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4672         Make name 32bit explicit.
4673         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4674         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4675         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4676         (hppa64_hpux_frame_base_before_sigtramp): New function.
4677         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4678         * config/pa/tm-hppa64.h: Remove macros that are no longer
4679         necessary now that the gdbarch vector is properly setup.
4680         Transform some macros into function calls. Some minor cleanup.
4681         * config/pa/tm-hppah.h: Update function calls in macros
4682         following the function renaming in hppa-hpux-tdep.c.
4683         * Makefile.in (hppa_tdep_h): New variable.
4684         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4685
4686 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4687
4688         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4689
4690 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4691
4692         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4693         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4694         routine.
4695
4696 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4697
4698         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4699         (frv_saved_pc_after_call): Use deprecated ftype.
4700         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4701         (frv_remote_translate_xfer_address): Remove.
4702         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4703
4704 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4705
4706         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4707         initialization after the common gdbarch initialization, not before.
4708
4709 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4710
4711         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4712         (ADDR_BITS_REMOVE): Remove, redundant.
4713
4714 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4715
4716         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4717         gdbarch method to clear the 2 low bits of text addresses.
4718
4719 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4720
4721         * Makefile.in (dsrec.o): Update dependencies.
4722         * dsrec.c: Include "gdb_assert.h".
4723         (make_srec): Use snprintf instead of sprintf, use a literal format
4724         string.
4725
4726 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4727
4728         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4729         FRAME_OBSTACK_ZALLOC.
4730
4731 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4732
4733         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4734         SSE registers.
4735
4736 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4737
4738         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4739         amd64fbsd_sc_reg_offset): Add extern declarations.
4740         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4741         declarations.
4742
4743 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
4744
4745         * MAINTAINERS (write after approval): Update my mail address.
4746
4747 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4748
4749         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4750
4751 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4752
4753         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4754         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4755         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4756         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4757         i386bsd_sc_reg_offset): Add extern declarations.
4758         * i386obsd-nat.c: Include "i386-tdep.h"
4759         (_initialize_i386obsd_nat): Remove extern declarations.
4760         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4761         declarations.
4762         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4763         declarations.
4764
4765         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4766         instead of frame_read_register.
4767         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4768         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4769         SP_REGNUM.
4770         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4771         instead of frame_unwind_unsigned_register.  Use
4772         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4773         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4774         instead of read_register.  Use builtin_type_void_data_ptr instead
4775         of builtin_type_void_func_ptr when extracting the address of the
4776         jmp_buf.
4777         (i386_extract_return_value, i386_store_return_value,
4778         i386_pseudo_register_read, i386_pseudo_register_write): Use
4779         register_size instead REGISTER_RAW_SIZE.
4780
4781 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4782
4783         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4784         sprintf.  Make "name" constant.
4785
4786 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4787
4788         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4789         instead of frame_read_register.
4790         (i387_print_float_info): Use get_frame_register and
4791         get_frame_register_unsigned instead of frame_register_read.
4792
4793         * i386fbsd-nat.c: Include "i386-tdep.h".
4794         (child_resume): Make `eflags' an ULONGEST.  Use
4795         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4796         instead of register_read and register_write.
4797
4798         * i386bsd-nat.c (fetch_inferior_registers,
4799         store_inferior_registers): Don't use && at the end of a line.
4800         (_initialize_i386bsd_nat): Fix typo.
4801
4802         * frame.c (_initialize_frame): Add missing backslash.
4803
4804         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4805         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4806         and supply_register instead of manipulating the register buffer
4807         directly.
4808
4809         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4810         * config/i386/nm-i386sol2.h
4811         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4812
4813         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4814         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4815         instructions that GCC likes to mingle into the prologue.  Fixes
4816         gdb/1253 and gdb/1255.
4817
4818 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4819
4820         Fix GDB PR cli/926.
4821         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4822         * command.h (add_setshow_uinteger_cmd): Declare.
4823         * frame.c (set_backtrace_cmd): New function.
4824         (show_backtrace_cmd): New function.
4825         * frame.c (_initialize_frame): Replace "set/show
4826         backtrace-below-main" with "set/show backtrace past-main".  Add
4827         command "set/show backtrace limit".
4828         (backtrace_past_main): Rename "backtrace_below_main".
4829         (backtrace_limit): New variable.
4830         (get_prev_frame): Update.  Check the backtrace_limit.
4831
4832 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4833
4834         * defs.h (xstrprintf): Declare.
4835         * utils.c (xstrprintf): New function.
4836         * breakpoint.c (insert_breakpoints): Replace sprintf and
4837         non-literal format strings, with xstrprintf and cleanups.
4838         (delete_breakpoint,breakpoint_re_set): Ditto.
4839         (commands_command, insert_breakpoints): Ditto.
4840         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4841         (break_at_finish_command_1): Ditto.
4842
4843 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4844
4845         * MAINTAINERS (language support): List Adam Fedor as Objective C
4846         maintainer.
4847
4848 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4849
4850         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4851         are now multiarched.
4852
4853 2003-08-08  J. Brobecker  <brobecker@gnat.com>
4854
4855         * config/pa/tm-hppa64.h: Remove lots of macros that are no
4856         longer necessary now that hppa64 is partially multiarch'ed.
4857
4858 2003-08-08  Andrew Cagney  <cagney@redhat.com>
4859
4860         * interps.c (interp_set): Check for a NULL "old_interp".
4861
4862 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4863
4864         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4865         (install-only): Support DESTDIR.
4866         (uninstall): Likewise.
4867         (install-gdbtk): Likewise.
4868
4869 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
4870
4871         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4872         contains something meaningful at all times.
4873
4874 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4875
4876         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4877
4878 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
4879
4880         * MAINTAINERS (write after approval): Added self.
4881
4882 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4883
4884         * inferior.h (AT_SYMBOL): Define.
4885         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4886         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4887         * mips-tdep.c (mips_call_dummy_address): Delete function.
4888         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4889         set call_dummy_address.
4890
4891 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4892
4893         * language.c (op_error): Delete function.
4894         (binop_type_check): Delete function.
4895         * language.h (type_op_error, range_op_error): Delete macros.
4896         (op_error): Delete declaration.
4897
4898 2003-08-07  Andrew Cagney  <cagney@redhat.com>
4899
4900         * interps.h (INTERP_MI2, INTERP_MI3): Define.
4901
4902 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
4903
4904         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4905         (x86_64_push_arguments): Skip the red zone.
4906
4907 2003-08-05  Andrew Cagney  <cagney@redhat.com>
4908
4909         * reggroups.c (reggroup_next): Check for the final entry.
4910
4911 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4912
4913         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4914         * cli/cli-script.c (define_command): Call query directly, instead
4915         of passing it a buffer.
4916         * ocd.c (ocd_error): Pass error a constant format string.
4917         * remote-mips.c (mips_error): Use fputs_filtered.
4918
4919         * solib-svr4.c (_initialize_svr4_solib): Update
4920         register_gdbarch_data call.
4921         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4922
4923         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4924         (register_gdbarch_data): Delete "free" parameter.  Update
4925         comments.
4926         * gdbarch.h, gdbarch.c: Re-generate.
4927         * reggroups.c (_initialize_reggroup): Update.
4928         * gnu-v3-abi.c (init_gnuv3_ops): Update.
4929         * frame-base.c (_initialize_frame_base): Update.
4930         * frame-unwind.c (_initialize_frame_unwind): Update.
4931         * user-regs.c (_initialize_user_regs): Update.
4932         * remote.c (_initialize_remote): Update.
4933         * regcache.c (_initialize_regcache): Update.
4934
4935         * regcache.c (xfree_regcache_descr): Delete function.
4936         (_initialize_regcache): Update call to register_gdbarch_data.
4937         (init_regcache_descr, init_legacy_regcache_descr): Use
4938         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4939
4940         * remote.c (free_remote_state): Delete function.
4941         (_initialize_remote): Update register_gdbarch_data.
4942         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4943         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4944
4945 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4946
4947         * reggroups.c (struct reggroup_el): Define.
4948         (struct reggroups): Delete field "nr_group".  Replace array
4949         "group" with a "first" to "last" linked list.
4950         (reggroups_init): Update.  Allocate using gdbarch's obstack.
4951         (reggroups_free): Delete function.
4952         (add_group): Update.  Add "el" parameter.
4953         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4954         (default_groups): Update.
4955         (reggroup_next): Replace reggroups.
4956         (reggroups_dump): Update.
4957         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4958         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4959         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4960
4961 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
4962
4963         * Makefile.in (tui-interp.o): Update dependencies.
4964
4965 2003-08-04  David Carlton  <carlton@kealia.com>
4966
4967         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4968         to internal_error call.
4969         * source.c (forward_search_command): Add "%s" format argument.
4970         (reverse_search_command): Ditto.
4971         * top.c (quit_confirm): Ditto.
4972         * cli/cli-setshow.c (do_setshow_command): Ditto.
4973         * cp-valprint.c (cp_print_class_method): Replace
4974         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4975         (cp_print_class_member): Ditto.
4976         * event-top.c (command_line_handler): Ditto.
4977         * linux-proc.c (linux_info_proc_cmd): Ditto.
4978         * p-typeprint.c (pascal_type_print_base): Ditto.
4979         * p-valprint.c (pascal_object_print_class_method): Ditto.
4980         (pascal_object_print_class_member): Ditto.
4981         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4982         * remote.c (remote_cisco_section_offsets): Ditto.
4983         * top.c (command_line_input): Ditto.
4984         * utils.c (vwarning,error_stream,quit): Ditto.
4985         * valprint.c (print_floating,print_binary_chars)
4986         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4987
4988 2003-08-04  Andrew Cagney  <cagney@redhat.com>
4989
4990         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4991
4992 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4993
4994         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4995         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4996         amd64fbsd-nat.c.
4997
4998 2003-08-02  Andrew Cagney  <cagney@redhat.com>
4999
5000         * Makefile.in: Update all dependencies and definitions.
5001
5002 2003-08-02  Adam Fedor  <fedor@gnu.org>
5003
5004         * linespec.c (is_objc_method_format): New function
5005         (decode_line_1, locate_first_half): Use it.
5006         Fixes PR objc/1298
5007
5008 2003-08-01  Andrew Cagney  <cagney@redhat.com>
5009
5010         * NEWS: Mention that m32r is multi-arch.
5011         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5012         * configure.tgt: Recognize m32r-*-*.
5013         * config/m32r/tm-m32r.h: Delete file.
5014         * config/m32r/m32r.mt: New file.
5015         * m32r-rom.c (m32r_upload_command): Use hostent only when
5016         gethostname succeeds, in order to avoid a compilation
5017         warning.
5018         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5019         compiler warning.
5020
5021 2003-08-01  Michael Snyder  <msnyder@redhat.com>
5022
5023         * sh-tdep.c (sh_frame_align): New gdbarch method.
5024         (sh_gdbarch_init): Set up frame_align method.
5025
5026 2003-07-31  Michael Snyder  <msnyder@redhat.com>
5027
5028         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5029         which is already covered by the new frames infrastructure.
5030
5031 2003-07-31  Andrew Cagney  <cagney@redhat.com>
5032
5033         * user-regs.c (struct user_reg): Add "next" link.
5034         (struct user_regs): Replace "user" with "first" and "last" links.
5035         (append_user_reg): Add pre-allocated "reg" parameter.
5036         (builtin_user_regs): Provide initial value for "last".
5037         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5038         (user_regs_init): Allocate memory from the gdbarch obstack.
5039         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5040         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5041         linked list.
5042         (usernum_to_user_reg): New function.
5043         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5044         (value_of_user_reg): Use usernum_to_user_reg.
5045         (user_regs_free): Delete function.
5046         (_initialize_user_regs): Update register_gdbarch_data call.
5047
5048 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
5049
5050         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5051
5052 2003-07-30  Michael Snyder  <msnyder@redhat.com>
5053
5054         * value.h (value_being_returned): Add a struct_addr argument.
5055         * infcall.c (call_function_by_hand): Pass struct_addr to
5056         value_being_returned.
5057         * infcmd.c (print_return_value): Pass zero as struct_addr.
5058         * values.c (value_being_returned): If struct_addr is passed,
5059         use it instead of trying to recover it from the inferior.
5060
5061 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
5062
5063         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5064         the prologue analyzer won't need to attempt to extract the pc
5065         value from the woefully incomplete dummy frame.
5066         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5067         possible.  Disable code which modifies the frame.
5068
5069 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5070
5071         * annotate.c (annotate_breakpoints_headers): Restrict annotation
5072         to level 2.
5073         (annotate_breakpoints_table, annotate_record): Ditto.
5074         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5075         (annotate_field_name_end, annotate_field_value): Ditto.
5076         (annotate_field_end, annotate_frame_source_begin): Ditto.
5077         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5078         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5079         (annotate_frame_begin, annotate_frame_function_name): Ditto.
5080         (annotate_frame_address_end, annotate_frame_address): Ditto.
5081         (annotate_frame_args, annotate_frame_end): Ditto.
5082         (annotate_frame_where, annotate_arg_begin): Ditto.
5083         (annotate_arg_name_end, annotate_arg_value): Ditto.
5084         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5085         (annotate_function_call, annotate_signal_name): Ditto.
5086         (annotate_signal_string, annotate_signal_name_end): Ditto.
5087         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5088         (annotate_value_begin, annotate_value_history_value): Ditto.
5089         (annotate_value_history_end, annotate_value_end): Ditto.
5090         (annotate_display_begin, annotate_display_number_end): Ditto.
5091         (annotate_display_format, annotate_display_expression): Ditto.
5092         (annotate_display_expression_end, annotate_display_value): Ditto.
5093         (annotate_display_end, annotate_array_section_begin): Ditto.
5094         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5095         (annotate_elt, annotate_array_section_end): Ditto.
5096
5097 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5098
5099         * regcache.c (struct regcache_descr): Update comments on
5100         nr_raw_registers.
5101         (init_legacy_regcache_descr): Don't set nr_raw_registers or
5102         sizeof_raw_register_valid_p.
5103         (init_regcache_descr): Set nr_raw_registers and
5104         sizeof_raw_register_valid_p before calling
5105         init_legacy_regcache_descr.
5106
5107 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5108
5109         * mips-tdep.c (print_gp_register_row): Print the GPR's register
5110         MOD NUM_REGS.
5111
5112 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
5113
5114         * thread.c (info_threads_command): Use get_selected_frame ().
5115         Check that there is at least one non-sentinel frame.
5116
5117 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5118
5119         * m68hc11-tdep.c (struct frame_extra_info): Remove.
5120         (m68hc11_pop_frame): Remove.
5121         (m68hc11_frame_saved_pc): Remove.
5122         (m68hc11_frame_chain): Remove.
5123         (m68hc11_frame_init_saved_regs): Remove.
5124         (m68hc11_init_extra_frame_info): Remove.
5125         (m68hc11_store_struct_return): Remove.
5126         (m68hc11_saved_pc_after_call): Remove.
5127
5128 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5129
5130         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5131         frame unwind information.
5132         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5133         and adapted for frame unwinding.
5134         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5135         (m68hc11_unwind_pc): New function.
5136         (m68hc11_frame_unwind_cache): New function to analyze frames.
5137         (m68hc11_frame_this_id): New function to create new frame struct.
5138         (m68hc11_frame_prev_register): New function to unwind a register from
5139         the frame.
5140         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5141         (m68hc11_frame_p): New function for the above.
5142         (m68hc11_frame_base_address): New function to return fp of frame.
5143         (m68hc11_frame_args_address): Update for frame.
5144         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5145         (m68hc11_unwind_sp): New function.
5146         (m68hc11_unwind_dummy_id): New function.
5147         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5148         calls.
5149
5150 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5151
5152         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5153         (m68hc11_guess_from_prologue): Advance the pc and frame size only
5154         when we are beyond the current pc.
5155
5156 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5157
5158         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5159         from m68hc11_push_arguments.
5160         (m68hc11_push_arguments): Remove.
5161         (m68hc11_push_return_address): Remove.
5162         (m68hc11_gdbarch_init): Install the above; remove above deprecated
5163         handlers; remove deprecated_extra_stack_alignment_needed.
5164
5165 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5166
5167         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5168         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5169         REAL_PC and not the pointer.
5170         * hppa-hpux-tdep.c: Include frame.h
5171
5172 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5173
5174         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5175         GDB_MULTI_ACH_PARTIAL.
5176
5177 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5178
5179         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5180         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5181         operator at start and not end of line.
5182         (decode_prologue): Ditto.
5183         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5184         frame_unwind_register_unsigned instead of
5185         frame_unwind_unsigned_register.
5186         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5187         read_register.
5188         (m32r_push_dummy_call): Use register_size instead of
5189         REGISTER_RAW_SIZE.
5190         (m32r_frame_sniffer): Replace m32r_frame_p.
5191         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5192         * m32r-rom.c (report_transfer_performance): Delete extern
5193         declaration.
5194         (m32r_load, m32r_upload_command): Use print_transfer_performance
5195         instead of report_transfer_performance.
5196         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5197         / add_show_from_set.
5198
5199 2003-07-26  Andrew Cagney  <cagney@redhat.com>
5200
5201         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5202         store_return_value and extract_struct_value_address.
5203
5204 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
5205
5206         PR c++/1267
5207         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5208         NULL, default to the section containing PC.
5209
5210 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
5211
5212         * NEWS: Mention "regs" deprecated for m68hc11 too.
5213
5214         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5215         (m68hc11_print_register): New function to print out one register.
5216         (m68hc11_print_registers_info): New function to print registers.
5217         (show_regs): Deprecate and use the above.
5218         (m68hc11_gdbarch_init): Install the print_registers_info.
5219
5220 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5221
5222         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5223         that we have a SIGTRAP before returning non-zero.
5224
5225 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
5226             Elena Zannoni  <ezannoni@redhat.com>
5227
5228         * linespec.c (decode_line_2): Avoid crash if
5229         find_function_start_sal() returns empty record.
5230
5231 2003-07-23  Andreas Schwab  <schwab@suse.de>
5232
5233         * ia64-tdep.c (ia64_print_insn): New function.
5234         (ia64_gdbarch_init): Set print_insn to it.
5235         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5236         deprecated_tm_print_insn_info.
5237
5238 2003-07-22  Michael Snyder  <msnyder@redhat.com>
5239
5240         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5241         handle 8-bit returns (long long).
5242         (h8300h_extract_return_value): Ditto.
5243         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5244
5245 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5246
5247         * gdbarch.c Include "gdb_obstack.h".
5248         (struct gdbarch): Add an "obstack".
5249         (alloc_gdbarch_data): Allocate the gdbarch data using
5250         GDBARCH_OBSTACK_CALLOC.
5251         (free_gdbarch_data): Delete function.
5252         (gdbarch_obstack_zalloc): New function.
5253         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5254         Assert that the architecture is not initialized.
5255         (gdbarch_alloc): Allocate an obstack, allocate the architecture
5256         vector from the obstack.
5257         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5258         architecture obstack.
5259         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5260         (set_gdbarch_data): Assert that the data is not initialized.
5261         (struct gdbarch_data): Delete member "free".
5262         (register_gdbarch_data): Do not initialize "free".
5263         * gdbarch.h, gdbarch.c: Re-generate.
5264
5265 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5266
5267         * configure.in (build_warnings): Add -Wformat-nonliteral.
5268         * configure: Re-generate.
5269
5270 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5271
5272         * dwarf2loc.c (locexpr_describe_location): Fix typos.
5273
5274 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5275
5276         * findvar.c (read_var_value): Remove case for thread local storage
5277         variables.  It is now entirely handled by the dwarf2 location
5278         expression code.
5279         * printcmd.c (address_info): Ditto.
5280         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5281         enumeration value.
5282         (struct symbol): Remove objfile field, which was used by
5283         LOC_THREAD_LOCAL_STATIC only.
5284         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5285         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5286         usage of objfile pointer.
5287         * dwarf2loc.c (locexpr_describe_location): Add case to handle
5288         thread local variables.
5289         Add include of objfiles.h.
5290         * dwarf2expr.c (execute_stack_op): Add comments about thread local
5291         storage variables.
5292         * Makefile.in (dwarf2loc.o): Update dependencies.
5293
5294 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5295
5296         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5297         get_frame_base.
5298         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5299         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5300         (struct value): Add opaque declaration.
5301         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5302
5303 2003-07-21  Andrew Cagney  <cagney@redhat.com>
5304
5305         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5306         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5307
5308 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5309
5310         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5311         regcache_cooked_read_unsigned instead of read_register.
5312         (m68hc11_saved_pc_after_call): Likewise.
5313         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5314         instead of write_register.
5315         (m68hc11_register_type): New function.
5316         (m68hc11_register_virtual_type): Remove.
5317         (m68hc11_store_return_value): Convert to use the regcache.
5318         (m68hc11_extract_struct_value_address): Likewise.
5319         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5320         m68hc11_register_type; undeprecate store_return_value and
5321         extract_struct_value_address.
5322
5323 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5324
5325         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5326         and translate to use regcache.
5327         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5328
5329 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5330
5331         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5332         * gdbarch.h, gdbarch.c: Re-generate.
5333         * i386-tdep.c (i386_gdbarch_init): Do not set
5334         DWARF2_BUILD_FRAME_INFO.
5335         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5336         unconditionally.
5337         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5338         DWARF2_BUILD_FRAME_INFO.
5339
5340 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5341
5342         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5343         * disasm.c (gdb_disassemble_info): Initilize di.arch.
5344
5345 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5346
5347         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5348         frame_unwind_address_in_block, instead of frame_pc_unwind.
5349         (dwarf2_frame_cache): Ditto.
5350
5351 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5352
5353         * user-regs.h (struct gdbarch): Declare opaque.
5354         * ui-out.h (struct ui_file): Declare opaque.
5355         * dwarf2-frame.h (struct frame_info): Declare opaque.
5356
5357 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
5358
5359         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
5360         #include "...".
5361         (procfs_meminfo): Change strerror to safe_strerror.
5362         (procfs_can_run): Remove K&R badness.
5363
5364 2003-07-17  Michael Snyder  <msnyder@redhat.com>
5365
5366         * remote-sim.c: Comment typo fix.
5367
5368 2003-07-17  Andrew Cagney  <cagney@redhat.com>
5369
5370         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
5371         configure.
5372         * sparc-tdep.c (sparc_intreg_size): Make non-static.
5373         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5374         GDB_MULTI_ARCH_PARTIAL.
5375
5376 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
5377
5378         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5379         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
5380         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5381
5382 2003-07-16  Theodore A. Roth  <troth@openavr.org>
5383
5384         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5385         found.
5386         (avr_frame_unwind_cache): Don't unwind FP for main.
5387         Update a comment.
5388         Save the computed prev_sp.
5389         (avr_saved_regs_unwinder): Remove function.
5390         (avr_frame_prev_register): Use PC unwind logic from
5391         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5392
5393 2003-07-16  Andrew Cagney  <cagney@redhat.com>
5394
5395         * frame-base.h (frame_base_p_ftype): Delete definition.
5396         (frame_base_append_predicate): Delete declaration.
5397         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5398         (frame_unwind_append_predicate): Delete declaration.
5399         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5400         (append_predicate): Delete parameter "p".
5401         (frame_unwind_append_predicate): Delete function.
5402         (frame_unwind_append_sniffer): Update call to append_predicate.
5403         (frame_unwind_free): Delete function.
5404         (_initialize_frame_unwind): Pass NULL as "free" to
5405         register_gdbarch_data.
5406         (frame_unwind_init): Append the dummy_frame_sniffer.
5407         (frame_unwind_find_by_frame): Simplify.
5408         * frame-base.c (struct frame_base_table): Delete field "p".
5409         (append_predicate): Delete parameter "p".
5410         (frame_base_append_predicate): Delete function.
5411         (frame_base_append_sniffer): Update call to append_predicate.
5412         (frame_base_free): Delete function.
5413         (frame_base_find_by_frame): Simplify.
5414         (_initialize_frame_base): Pass NULL as "free" to
5415         register_gdbarch_data.
5416         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5417         (x86_64_sigtramp_frame_sniffer): Replace
5418         "x86_64_sigtramp_frame_p".
5419         (x86_64_init_abi): Set the frame unwind sniffers.
5420         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5421         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5422         (m68k_gdbarch_init): Set the frame unwind sniffers.
5423         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5424         "i386_sigtramp_frame_p".
5425         (i386_frame_sniffer): Replace "i386_frame_p".
5426         (i386_gdbarch_init): Set the frame unwind sniffers.
5427         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5428         (avr_gdbarch_init): Set the frame unwind sniffers.
5429         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5430         "alpha_sigtramp_frame_p"
5431         (alpha_heuristic_frame_sniffer): Replace
5432         "alpha_heuristic_frame_p".
5433         (alpha_gdbarch_init): Set the frame unwind sniffers.
5434         (alpha_dwarf2_init_abi): Ditto.
5435         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5436         "alpha_debug_frame_p".
5437         (alpha_mdebug_frame_base_sniffer): Replace
5438         "alpha_mdebug_frame_base_p".
5439         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5440         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5441         (d10v_gdbarch_init): Set the frame unwind sniffer.
5442         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5443         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5444         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5445         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5446         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5447         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5448
5449 2003-07-16  Michael Snyder  <msnyder@redhat.com>
5450
5451         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5452         should go thru sh_dsp_register_sim_regno, else the dsp regs
5453         will not get the right values.
5454
5455 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5456
5457         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5458         deprecated_store_floating by call to store_typed_floating.
5459         (sh_sh4_register_convert_to_raw): Substitute call to
5460         deprecated_extract_floating by call to extract_typed_floating.
5461
5462 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5463
5464         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5465
5466 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5467
5468         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5469         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5470         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5471         as possible.
5472         (do_pseudo_register): Remove.
5473         (sh_push_dummy_code): New function.
5474         (sh64_store_struct_return): Rename from sh_store_struct_return.
5475         Only called for sh64 now.
5476         (sh_extract_struct_value_address): Regcache'ify.
5477         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5478         and accomodate new tasks.
5479         (sh64_push_return_address): Rename from sh_push_return_address.
5480         Only called for sh64 now.
5481         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5482         Regcache'ify.
5483         (sh3e_sh4_extract_return_value): Regcache'ify.
5484         (sh_default_store_return_value): Ditto.
5485         (sh3e_sh4_store_return_value): Ditto.
5486         (sh_default_register_byte): Remove.
5487         (sh_sh4_register_byte): Remove.
5488         (sh_default_register_raw_size): Remove.
5489         (sh_sh4_register_raw_size): Remove.
5490         (sh_register_virtual_size): Remove.
5491         (sh_sh3e_register_virtual_type): Remove.
5492         (sh_sh3e_register_type): New function.
5493         (sh_sh4_register_virtual_type): Remove.
5494         (sh_sh4_register_type): New function.
5495         (sh_default_register_virtual_type): Remove.
5496         (sh_default_register_type): New function.
5497         (do_fv_register_info): Add parameters to accomodate call from
5498         sh_print_registers_info.
5499         (do_dr_register_info): Ditto.
5500         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5501         Add parameters to accomodate call from sh_print_registers_info.
5502         (sh_do_fp_register): Ditto.
5503         (sh64_do_pseudo_register): Call do_dr_register_info,
5504         do_fv_register_info and sh_do_fp_register with default parameters.
5505         (sh_do_register): Add parameters to accomodate call from
5506         sh_print_registers_info.
5507         (sh_print_register): Ditto.
5508         (sh_print_registers_info): Rename from sh_do_registers_info.
5509         Add parameters to be used as gdbarch_print_registers_info
5510         implementation.  Accomodate removed do_pseudo_register function
5511         pointer.
5512         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5513         function pointer. Call sh_print_register with default parameters.
5514         (sh64_do_registers_info): Call sh_print_registers_info instead of
5515         sh_do_registers_info.
5516         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5517         detection of deprecated vs. non-deprecated functionality.
5518         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5519         function pointer assignments by direct function calls.
5520
5521 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5522
5523         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5524         (frame_register_unwind, create_new_frame): Ditto.
5525         (legacy_get_prev_frame, get_frame_type): Ditto.
5526         (get_frame_base_address): Use frame_base_find_by_frame.
5527         (get_frame_locals_address): Use frame_base_find_by_frame.
5528         (get_frame_args_address): Use frame_base_find_by_frame.
5529         * frame-base.h (frame_base_sniffer_ftype): Declare.
5530         (frame_base_append_sniffer): Declare.
5531         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5532         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5533         (frame_base_append_sniffer): New function.
5534         (frame_base_append_predicate): Add a NULL sniffer.
5535         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5536         (struct frame_base_table): Add "sniffer".
5537         (frame_base_free): Free the "sniffer" table.
5538         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5539         (frame_unwind_append_sniffer): Declare.
5540         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5541         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5542         (struct frame_unwind_table): Add "sniffer", delete "middle".
5543         (append_predicate): Add "sniffer" parameter, append the sniffer.
5544         (frame_unwind_init): Update append_predicate call.
5545         (frame_unwind_append_sniffer): New function.
5546         (frame_unwind_append_predicate): Update append_predicate call.
5547         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5548
5549 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5550
5551         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5552         before code inhibiting repeated unwind attempts.  Add to
5553         commentary on that test's problems.
5554         * blockframe.c (inside_main_func): Look for "main" in the minimal
5555         symbol table.
5556         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5557         identical.
5558
5559 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5560
5561         * complaints.c (struct explanation): Define.
5562         (struct complaints): Change type of "explanation" to "struct
5563         explanation".
5564         (symfile_explanations): Convert to a "struct explanation" table.
5565         (vcomplaint): Update.
5566
5567 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
5568
5569         * x86-64-linux-nat.c (regmap): Removed.
5570         (supply_gregset, fill_gregset): Call
5571         x86_64_linux_(fill,supply)_gregset functions.
5572         * x86-64-linux-tdep.c (USER_*): New defines.
5573         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5574         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5575         New functions.
5576         (fetch_core_registers): Ditto.
5577         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5578         * x86-64-linux-tdep.h: New file.
5579         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5580         and core-regset.o.
5581         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5582
5583 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5584
5585         * x86-64-tdep.c (x86_64_store_return_value): Use
5586         regcache_cooked_write_part instead of regcache_cooked_write.
5587
5588         * configure.host: Add x86_64-*-freebsd*.
5589         * configure.tgt: Add x86_64-*-freebsd*.
5590         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5591         * amd64fbsd-nat.c: New file.
5592         * amd64fbsd-tdep.c: New file.
5593         * config/i386/nm-fbsd64.h: New file.
5594         * config/i386/fbsd64.mh: New file.
5595         * config/i386/fbsd64.mt: New file.
5596
5597 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5598
5599         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5600         `sc_regs_offset' and `sc_fpregs_offset'.
5601         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5602         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5603         (alpha_sigtramp_register_address): Rewrite to use new members of
5604         `struct gdbarch_tdep'.
5605         (alpha_gdbarch_init): Initialize new members of struct
5606         gdbarch_tdep'.
5607         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5608         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5609         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5610         (alphafbsd_pc_in_sigtramp): Implement.
5611         (alphafbsd_sigtramp_offset): New function.
5612         (alphafbsd_sigcontext_addr): New function.
5613         (alphafbsd_init_abi): Initialize signal trampoline related members
5614         of `struct gdbarch_tdep'.
5615         (_initialize_alphafbsd_tdep): Add prototype.
5616
5617 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5618
5619         * Makefile.in (install-only): Quote sed expression when generating
5620         transformed_name.
5621
5622 2003-07-11  Richard Henderson  <rth@redhat.com>
5623
5624         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5625         * dwarf2-frame.c: Include complaints.h.
5626         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5627         variable initialization; return NULL on error.
5628         (decode_frame_entry): New.
5629
5630 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5631
5632         * frame.h (frame_address_in_block): Delete declaration.
5633         * blockframe.c (frame_address_in_block): Delete function.
5634         (get_frame_block): Use get_frame_address_in_block.
5635         (block_innermost_frame): Ditto.
5636         * stack.c (print_frame, backtrace_command_1): Ditto.
5637
5638         * frame.h (get_frame_address_in_block): Declare.
5639         (frame_unwind_address_in_block): Declare.
5640         * frame.c (frame_unwind_address_in_block): New function.
5641         (get_frame_address_in_block): New function.
5642
5643 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5644
5645         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5646         pre-default.   Note: re-generate has no effect.
5647
5648 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5649
5650         * gdbarch.sh: When a variable, but not a function, compare against
5651         0.  Fix problem in previous patch.
5652         * gdbarch.c: Re-generate.
5653
5654 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5655
5656         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5657         functions against NULL, not 0.
5658         * gdbarch.c: Re-generate.
5659
5660 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5661
5662         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5663         null string instead of a null pointer.
5664         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5665
5666 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5667
5668         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5669
5670 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5671
5672         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5673         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5674         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5675         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5676         * x86-64-tdep.c: ... from here.
5677
5678 2003-07-09  Andreas Schwab  <schwab@suse.de>
5679
5680         * m68k-tdep.h (enum struct_return): Define.
5681         (struct gdbarch_tdep): Add struct_return.
5682         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5683         bytes are padded to the right, not to the left.  Pass struct value
5684         address in register %a1, not on stack.
5685         (m68k_use_struct_convention): New function.
5686         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5687         struct_return in tdep to pcc_struct_return.
5688         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5689         reg_struct_return.
5690
5691 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5692
5693         * somread.c (som_symfile_offsets): Fix compilation error.
5694
5695 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5696
5697         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5698         Add comments about the checks.
5699
5700 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5701
5702         * Makefile.in: Make dependency section headers consistent.
5703         (config_h): Move to $BUILD headers section.
5704         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5705         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5706         (ada-exp.tab.c): Move to YACC/LEX section.
5707         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5708         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5709
5710 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5711
5712         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5713         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5714         of strerror with safe_strerror, use ISO C function definitions,
5715         and replace instances of sprintf with snprintf.
5716
5717 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5718
5719         * frame.c (get_prev_frame): Enable check for identical frames.
5720         Update comments.  Update error messages.
5721
5722 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5723
5724         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5725
5726 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5727
5728         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5729         sort_symtab_syms, no longer necessary.
5730
5731 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5732
5733         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5734
5735 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5736
5737         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5738         (mips_register_byte): Likewise.
5739
5740 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5741
5742         * Makefile.in (sparc_tdep_h): New.
5743         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5744         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5745         * sparc-linux-nat.c: Include "sparc-tdep.h".
5746         * sparc-nat.c: Likewise.
5747         * sparc-tdep.c: Likewise.
5748         * sparc64nbsd-nat.c: Likewise.
5749         * sparcnbsd-nat.c: Likewise.
5750         * sparcnbsd-tdep.c: Likewise.
5751         * sparc-tdep.h: New file.
5752         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5753         and sparc_npc_regnum.
5754
5755 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5756
5757         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5758         (mips_linux_cannot_store_register): List supported instead of
5759         unsupported registers.
5760
5761 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5762
5763         * disasm.c (dump_insns): Separate instructions from addresses.
5764
5765 2003-07-07  Andreas Schwab  <schwab@suse.de>
5766
5767         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5768         dependencies.
5769         * m68k-tdep.c (NUM_FREGS): Delete.
5770         (SIG_PC_FP_OFFSET): Delete.
5771         (TARGET_M68K): Delete.
5772         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5773         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5774         P_MOVEL_SP, P_MOVEML_SP): Define.
5775         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5776         P_TRAP): Delete.
5777         (m68k_register_raw_size): Delete.
5778         (m68k_register_virtual_size): Delete.
5779         (m68k_register_type): Renamed from m68k_register_virtual_type and
5780         add gdbarch argument.
5781         (m68k_store_struct_return): Delete.
5782         (m68k_deprecated_extract_return_value): Delete.
5783         (m68k_deprecated_extract_struct_value_address): Delete.
5784         (m68k_frame_chain): Delete.
5785         (m68k_frame_saved_pc): Delete.
5786         (m68k_fix_call_dummy): Delete.
5787         (m68k_push_dummy_frame): Delete.
5788         (m68k_pop_frame): Delete.
5789         (m68k_extract_return_value): New function.
5790         (m68k_store_return_value): Rewrite using regcache.
5791         (m68k_extract_struct_value_address): Rewrite using regcache.
5792         (m68k_push_dummy_call): New function.
5793         (struct m68k_frame_cache): Define.
5794         (m68k_alloc_frame_cache): New function.
5795         (m68k_analyze_frame_setup): New function.
5796         (m68k_analyze_register_saves): New function.
5797         (m68k_analyze_prologue): New function.
5798         (m68k_skip_prologue): Rewrite using above functions.
5799         (m68k_unwind_pc): New function.
5800         (m68k_frame_cache): New function.
5801         (m68k_frame_this_id): New function.
5802         (m68k_frame_prev_register): New function.
5803         (m68k_frame_unwind): New variable.
5804         (m68k_frame_p): New function.
5805         (m68k_sigtramp_frame_cache): New function.
5806         (m68k_sigtramp_frame_this_id): New function.
5807         (m68k_sigtramp_frame_prev_register): New function.
5808         (m68k_sigtramp_frame_unwind): New variable.
5809         (m68k_sigtramp_frame_p): New function.
5810         (m68k_frame_base_address): New function.
5811         (m68k_frame_base): New function.
5812         (m68k_unwind_dummy_id): New function.
5813         (fill_gregset): Use regcache_collect.
5814         (fill_fpregset): Likewise.
5815         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5816         defined.
5817         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5818         deprecated_init_frame_pc, deprecated_store_struct_return,
5819         deprecated_extract_return_value, deprecated_store_return_value,
5820         deprecated_frame_chain, deprecated_frame_saved_pc,
5821         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5822         deprecated_register_virtual_size,
5823         deprecated_max_register_raw_size,
5824         deprecated_max_register_virtual_size,
5825         deprecated_register_virtual_type, deprecated_register_size,
5826         deprecated_register_byte, deprecated_register_bytes,
5827         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5828         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5829         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5830         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5831         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5832         deprecated_push_dummy_frame, deprecated_pop_frame,
5833         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5834         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5835         store_return_value, extract_struct_value_address, register_type,
5836         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5837         predicates.
5838         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5839         M68K_MAX_REGISTER_SIZE): Define.
5840         (struct m68k_sigtramp_info): Define.
5841         (struct gdbarch_tdep): Add get_sigtramp_info.
5842         * m68klinux-nat.c (fetch_register): Use register_size instead of
5843         REGISTER_RAW_SIZE.  Don't put assignment in if.
5844         (store_register): Likewise.
5845         (fetch_inferior_registers): Likewise.
5846         (store_inferior_registers): Likewise.
5847         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5848         (m68k_linux_frame_saved_pc): Delete.
5849         (m68k_linux_sigcontext_reg_offset,
5850         m68k_linux_ucontext_reg_offset): Define.
5851         (m68k_linux_get_sigtramp_info): New function.
5852         (m68k_linux_extract_return_value): Rewrite using regcache.
5853         (m68k_linux_store_return_value): Likewise.
5854         (m68k_linux_extract_struct_value_address): Likewise.
5855         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5856         Don't set deprecated_frame_saved_pc,
5857         deprecated_extract_return_value, deprecated_store_return_value,
5858         deprecated_extract_struct_value_address.  Set
5859         extract_return_value, store_return_value,
5860         extract_struct_value_address.
5861
5862 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5863
5864         * expprint.c: Include "user-regs.h" instead of "frame.h".
5865         (print_subexp): Use user_reg_map_regnum_to_name, instead of
5866         frame_map_regnum_to_name.
5867         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5868         (frame_map_name_to_regnum): Simplify, call
5869         user_reg_map_name_to_regnum.
5870         (frame_map_regnum_to_name): Simplify, call
5871         user_reg_map_regnum_to_name.
5872         (frame_register_unwind): Update.
5873         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5874         (_initialize_frame_reg): Call user_reg_add_builtin.
5875         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5876         (value_of_register): Use value_of_user_reg.
5877         * eval.c (evaluate_subexp_standard): Update.
5878         * parse.c (write_dollar_variable): Update.
5879         * d10v-tdep.c (d10v_print_registers_info): Update.
5880         * infcmd.c (registers_info): Update.
5881         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5882         (builtin_regs_h): Delete macro.
5883         (user_regs_h): Define.
5884         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5885         (builtin-regs.o): Delete target.
5886         (user-regs.o): Specify dependencies.
5887         (expprint.o): Update dependencies.
5888         (findvar.o): Update dependencies.
5889         (frame.o): Update dependencies.
5890         (std-regs.o): Update dependencies.
5891
5892 2003-07-06  Christopher Faylor  <cgf@redhat.com>
5893
5894         * win32-nat.c (solib_symbols_add): Use one variable for all section
5895         address stuff.  Pass variable rather than address of variable to
5896         safe_symbol_file_add.
5897
5898 2003-07-06  Andreas Schwab  <schwab@suse.de>
5899
5900         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5901
5902 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
5903
5904         * rs6000-nat.c (vmap_symtab): Fix compilation error.
5905
5906 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5907
5908         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5909
5910 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
5911
5912         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
5913         * config/i386/nto.mh: New file.
5914         * config/i386/nm-nto.h: New file.
5915         * configure.host: Add i[3456]86-*-nto*.
5916
5917 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
5918
5919         * remote-vx.c (vx_add_symbols): Fix compilation error.
5920
5921 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5922
5923         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5924         * gdbarch.h, gdbarch.c: Re-generate.
5925         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5926         (legacy_register_name): Declare.
5927         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5928         (REGISTER_NAME): Define.
5929         * sparc-tdep.c (legacy_register_name): New function.
5930         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5931         (REGISTER_NAME): Define.
5932         (hppa64_register_name): Declare.
5933         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5934         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5935         (hppa64_register_name): New function.
5936         (hppa_register_name): New function.
5937         * arch-utils.c (legacy_register_name): Delete.
5938         * arch-utils.h (legacy_register_name): Delete.
5939
5940 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
5941
5942         * cli/cli-interp.c (cli_interpreter_resume): Update the
5943         cli_uiout's stream to gdb_stdout.
5944
5945 2003-07-03  Andrew Cagney  <cagney@redhat.com>
5946
5947         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5948         predicate.
5949         * gdbarch.h, gdbarch.c: Re-generate.
5950         * regcache.c (init_regcache_descr): Use legacy code when either
5951         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5952
5953 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5954
5955         * NEWS: Move "set logging" entry into GDB 6.0 section.
5956
5957 2003-07-02  Jim Blandy  <jimb@redhat.com>
5958
5959         * s390-tdep.c (struct frame_extra_info): new member:
5960         'stack_bought_valid'.
5961         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5962         initialize fextra_info->stack_bought.
5963         (s390_frameless_function_invocation): Don't trust the value of
5964         fextra_info_ptr->stack_bought unless
5965         fextra_info->stack_bought_valid is set.
5966
5967         New S390 prologue analyzer.
5968         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5969         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5970         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5971         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5972         compute_x_addr, s390_on_stack, s390_store,
5973         s390_get_signal_frame_info): New functions.
5974         (S390_NUM_SPILL_SLOTS): New macro.
5975         (s390_get_frame_info): Rewritten.
5976         (is_arg_reg): Deleted.
5977
5978         Break out the decoding of S/390 instructions into separate
5979         functions, to make it more legible, and easier to check
5980         against the spec.
5981         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5982         is_rx, is_rxe): New functions.
5983         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5984         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5985         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5986         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5987         enums for opcode values.  (Is this an improvement?)
5988
5989 2003-07-02  Andrew Cagney  <cagney@redhat.com>
5990
5991         * i386-tdep.c: Revert change committed as part of trad-frame code
5992         below.
5993
5994 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
5995
5996         * breakpoint.c (insert_catchpoint): Make static.
5997
5998 2003-07-02  Andreas Schwab  <schwab@suse.de>
5999
6000         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6001         former ia64_push_arguments and ia64_push_return_address, and use
6002         regcache functions instead of read/write_register.
6003         (ia64_gdbarch_init): Set push_dummy_call instead of
6004         deprecated_push_arguments and deprecated_push_return_address.
6005
6006 2003-07-01  Andreas Jaeger  <aj@suse.de>
6007
6008         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6009         before the call.
6010         Set %rax only to number of SSE registers used.
6011
6012 2003-07-01  Andrew Cagney  <cagney@redhat.com>
6013
6014         * trad-frame.h: Update comments, a -1 .addr is reserved.
6015         (trad_frame_value_p, trad_frame_addr_p): Declare.
6016         (trad_frame_reg_p): Declare.
6017         (trad_frame_set_value): Rename trad_frame_register_value.
6018         (trad_frame_set_unknown): Declare.
6019         * trad-frame.c (trad_frame_realreg_p): New function.
6020         (trad_frame_addr_p, trad_frame_value_p): New function.
6021         (trad_frame_set_unknown): New function.
6022         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6023         (trad_frame_prev_register): Use trad_frame_realreg_p,
6024         trad_frame_addr_p and trad_frame_value_p.
6025         (trad_frame_set_value): Rename trad_frame_register_value.
6026         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6027         and trad_frame_set_value.
6028
6029 2003-06-30  Jim Blandy  <jimb@redhat.com>
6030
6031         Patch from IBM (authors unspecified, probably Ulrich Weigand and
6032         Gerhard Tonn) for argument passing on the S/390 and S/390x:
6033         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6034         for 16 registers, and then 32 more bytes.
6035         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6036         New macros.
6037         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6038         Move up in the file, since it's now used by is_simple_arg.
6039         (is_simple_arg): Don't assume registers are four bytes long.
6040         Exclude all double arguments.  Extended floats are not simple
6041         args.
6042         (is_power_of_two): New function.
6043         (pass_by_copy_ref): Call is_power_of_two, and check that the
6044         length fits in a register, rather than listing all the acceptable
6045         sizes.  Extended floats are not passed by reference.
6046         (s390_push_arguments): Don't assume registers are four bytes long.
6047         Reserve an argument register to point to the buffer for structures
6048         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
6049         S390_STACK_FRAME_OVERHEAD.
6050
6051 2003-06-30  Andreas Schwab  <schwab@suse.de>
6052
6053         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6054         format error message.
6055
6056 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
6057
6058         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6059
6060 2003-06-30  David Carlton  <carlton@kealia.com>
6061
6062         Band-aid for PR c++/1245.
6063         * Makefile.in (cp-support.o): Depend on complaints_h.
6064         * cp-support.c: Include complaints.h.  Add declaration for
6065         find_last_component.
6066         (cp_find_first_component): Separate code into
6067         cp_find_first_component_aux.
6068         (cp_find_first_component_aux): Call demangled_name_complaint.
6069         (demangled_name_complaint): New.
6070
6071 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6072
6073         * remote.c (remote_write_bytes): Explicitly compute and then use
6074         the payload size.  Update comments to reflect.  Fixes problem of
6075         GDB not sending small packets as found by Fred Fish.
6076
6077 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6078
6079         * remote.c (remote_async_wait): Fix -Wformat problem.
6080
6081 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6082
6083         * remote.c (remote_wait): Call error, and not warning, when the
6084         packet is corrupt.
6085         (remote_async_wait): Ditto.
6086
6087 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6088
6089         * sparc-tdep.c (sparc_y_regnum): Make external again.
6090
6091 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6092
6093         * cli/cli-logging.c (pop_output_files): Add void to function
6094         definition.
6095
6096 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6097
6098         * frame.c (frame_register_unwind): Use unsigned char when dumping
6099         the buffer contents.
6100
6101 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
6102
6103         * cli/cli-logging.c: New file.
6104         * cli-out.c (struct ui_out_data): Add original_stream.
6105         (cli_redirect): New function.
6106         (cli_ui_out_impl): Add cli_redirect.
6107         (cli_out_new): Initialize original_stream.
6108         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6109         (uo_redirect, ui_out_redirect): New.
6110         * ui-out.h (struct ui_out_impl): Add redirect member.
6111         (redirect_ftype): New.
6112         (ui_out_redirect): Add prototype.
6113         * Makefile.in: Add rules for cli-logging.c.
6114         * NEWS: Mention "set logging".
6115
6116 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6117
6118         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6119
6120 2003-06-27  Andrew Cagney  <cagney@redhat.com>
6121
6122         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6123         (m68hc11_gdbarch_init): Do not set call_dummy_address.
6124         * avr-tdep.c (avr_call_dummy_address): Delete function.
6125         (avr_gdbarch_init): Do not set call_dummy_address.
6126
6127 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6128
6129         * symfile.c (syms_from_objfile): Move variables to inner block.
6130         Move the checks for the non-mainline case a bit earlier to avoid
6131         doing some useless computations.
6132
6133 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6134
6135         * dwarfread.c (decode_modified_type): Gag new compiler warning.
6136
6137 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
6138
6139         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6140         sections.
6141
6142 2003-06-26  Michael Chastain  <mec@shout.net>
6143
6144         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6145         gdb/testsuite/gdb.c++/pr-1210.exp.
6146
6147 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6148
6149         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6150         altivec_expression.h and altivec_registers.h.
6151
6152 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6153
6154         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6155         info->mach when MIPS16.  Patch suggested by Fred Fish.
6156
6157 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6158
6159         * utils.c (internal_vproblem): Print the problem to a reason
6160         buffer and then pass to query.  Make the msg variable more local.
6161
6162 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6163
6164         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
6165         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
6166         * gdbarch.h, gdbarch.c: Re-generate.
6167         * frame-base.c (default_frame_args_address): Update.  Use
6168         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6169         not available.
6170         (default_frame_locals_address): Ditto for
6171         DEPRECATED_FRAME_LOCALS_ADDRESS.
6172         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6173         (vax_frame_num_args): Update.
6174         (vax_gdbarch_init): Update.
6175         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6176         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6177         * mcore-tdep.c (mcore_gdbarch_init): Update.
6178         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6179         * ia64-tdep.c (ia64_gdbarch_init): Update.
6180         * symtab.h (address_class): Update comments.
6181         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6182         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6183         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6184         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6185         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6186         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6187         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6188         * alpha-mdebug-tdep.c: Update.
6189         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6190
6191 2003-06-26  Andreas Jaeger  <aj@suse.de>
6192
6193         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6194         of SSE registers so that varargs functions work.  Rework handling
6195         of passing arguments on the stack.
6196         (x86_64_store_return_value): Return double and float values in SSE
6197         register.
6198
6199 2003-06-24  Michael Chastain  <mec@shout.net>
6200
6201         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6202         the "constructor breakpoints ignored" bug.
6203
6204 2003-06-25  David Carlton  <carlton@kealia.com>
6205
6206         * MAINTAINERS: Update e-mail address.
6207
6208 2003-06-24  Jim Blandy  <jimb@redhat.com>
6209
6210         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6211
6212         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6213         function.
6214         (ppc_linux_init_abi): Register it as the
6215         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6216
6217         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6218         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6219         method.
6220
6221         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6222         (ppc64_standard_linkage_target): Use it.
6223
6224 2003-06-23  Andrew Cagney  <cagney@redhat.com>
6225
6226         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6227         for 0 "int0" and 4 "int32" sized registers.
6228         * gdbtypes.c (builtin_type_int0): Define.
6229         (build_gdbtypes): Initialize builtin_type_int0.
6230         * gdbtypes.h (builtin_type_int0): Declare.
6231
6232 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
6233
6234         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6235         as characters are unsigned.
6236
6237 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6238
6239         PR gdb/1179
6240         * dwarfread.c (struct_type): Skip static fields without crashing.
6241
6242 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6243
6244         GDB 6.0 branch created.
6245         * README: Update.
6246         * PROBLEMS: Update.  Empty.
6247         * NEWS: Update.
6248
6249 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6250
6251         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6252         Suggested by Nick Hibma <n_hibma@webweaving.org>.
6253
6254 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6255
6256         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6257         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
6258         Velikov.
6259
6260 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6261
6262         * cli/cli-cmds.c (shell_escape): Silence warnings from old
6263         compilers.
6264
6265 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6266
6267         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6268         argument of val_print.
6269         * cp-valprint.c (cp_print_value): Don't add the offset parameter
6270         to the address argument of baseclass_offset or target_read_memory.
6271         Do add it to the argument of cp_print_value_fields.
6272
6273 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6274
6275         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6276         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6277         instead of 0..NUM_REGS.
6278         (mips_register_reggroup_p): New function.
6279         (mips_pseudo_register_write): New function.
6280         (mips_pseudo_register_read): New function.
6281         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6282         based on the register's type.
6283         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
6284         cooked.
6285         (mips_get_saved_register): Simplify.  Assert that REGNO is a
6286         pseudo / cooked.
6287         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
6288         (mips_register_type): Replace mips_register_virtual_type.  Map
6289         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
6290         when available.
6291         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
6292         that the register is cooked / virtual.
6293         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6294         Only get the extra info when needed.
6295         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6296         (mips32_heuristic_proc_desc): Fetch the cooked register.
6297         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6298         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6299         (mips_print_register): Use gdbarch_register_type, instead of
6300         REGISTER_VIRTUAL_TYPE.
6301         (print_gp_register_row): Use gdbarch_register_type, instead of
6302         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
6303         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6304         Print the pseudo / cooked registers.
6305         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6306         Print the pseudo / cooked registers.
6307         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
6308         REG_NUM is pseudo / cooked.
6309         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6310         (mips_n32n64_xfer_return_value): Ditto.
6311         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6312         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6313         (mips_register_sim_regno): New function.
6314         (mips_gdbarch_init): Set deprecated_register_byte,
6315         register_group_p, pseudo_register_write, pseudo_register_read,
6316         register_sim_regno, and num_pseudo_regs.  Set register_type,
6317         instead of register_virtual_type.
6318         * Makefile.in (mips-tdep.o): Update dependencies.
6319         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6320         REGISTER_VIRTUAL_TYPE.
6321         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6322         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6323         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6324         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6325         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6326
6327 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6328
6329         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6330         * cli/cli-cmds.c: Include "gdb_vfork.h".
6331         (shell_escape): Use vfork.
6332
6333 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6334
6335         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6336         32 bit floating-point register saves.
6337
6338         * frame.h (deprecated_unwind_get_saved_register): Delete.
6339         * frame.c (deprecated_unwind_get_saved_register): Delete function.
6340         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6341         and deprecated_get_next_frame_hack instead of
6342         deprecated_unwind_get_saved_register.
6343
6344         * mips-tdep.c (mips_dump_tdep): Do not print
6345         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6346
6347         * frame.c (get_frame_register): New function.
6348         (frame_unwind_register_signed): New function.
6349         (get_frame_register_signed): New function.
6350         (frame_unwind_register_unsigned): New function.
6351         (get_frame_register_unsigned): New function.
6352         * frame.h: Add comments on naming schema.
6353         (get_frame_register, frame_unwind_register_signed): Declare.
6354         (get_frame_register_signed, get_frame_register_signed): Declare.
6355         (frame_unwind_register_unsigned): Declare.
6356         (get_frame_register_unsigned): Declare.
6357
6358 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6359
6360         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6361
6362 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6363
6364         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6365         (avr_read_sp): Ditto.
6366
6367 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
6368
6369         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6370         * config/arm/nm-linux.h: Likewise.
6371         * config/arm/tm-linux.h: Likewise.
6372         * config/ia64/nm-linux.h: Likewise.
6373         * config/ia64/tm-ia64.h: Likewise.
6374         * config/s390/tm-linux.h: Likewise.
6375         * config/s390/tm-s390.h: Likewise.
6376         * s390-nat.c: Likewise.
6377         * s390-tdep.c: Likewise.
6378
6379         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6380         * config/ia64/linux.mt: Likewise.
6381         * config/m68k/linux.mh: Likewise.
6382         * config/mips/linux.mt: Likewise.
6383         * config/powerpc/linux.mh: Likewise.
6384         * config/sh/linux.mt: Likewise.
6385
6386 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
6387
6388         * solib.c (solib_open): Change tests for whether to search
6389         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
6390         comments.
6391
6392 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6393
6394         * avr-tdep.c (avr_frame_address): Delete function.
6395         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6396         set_gdbarch_frame_args_address.
6397
6398 2003-06-19  Andrew Cagney  <cagney@redhat.com>
6399
6400         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6401         (REGISTER_CONVERT_FROM_TYPE): Delete.
6402         (mips_register_convert_to_type): Delete declaration.
6403         (mips_register_convert_from_type): Delete declaration.
6404         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
6405         kernel/.
6406
6407 2003-06-19  Michael Snyder  <msnyder@redhat.com>
6408
6409         * linux-nat.h: New file.
6410         * linux-nat.c: Include linux-nat.h.
6411         * lin-lwp.c: Include linux-nat.h.
6412         Move struct lwp_info def to linux-nat.h.
6413         * linux-proc.c: Include linux-nat.h.
6414         (linux_make_note_section): Iterate over lwps instead of threads.
6415         (linux_do_thread_registers): Use lwp instead of merged pid.
6416         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6417         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6418         Add dependency on linux_nat_h.
6419
6420 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6421
6422         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6423
6424 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6425
6426         * varobj.c (get_type, get_target_type): Use check_typedef.
6427
6428 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6429
6430         * breakpoint.c (insert_catchpoint): Call internal_error.
6431
6432 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6433
6434         * avr-tdep.c (avr_push_dummy_code): Delete function.
6435         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6436
6437 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6438
6439         * arch-utils.c (default_prepare_to_proceed): Remove.
6440         (generic_prepare_to_proceed): Remove.
6441         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6442         (generic_prepare_to_proceed): Remove prototype.
6443         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6444         * gdbarch.c: Regenerate.
6445         * gdbarch.h: Regenerate.
6446         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6447         * hppah-nat.c (hppa_switched_threads): Remove.
6448         * infrun.c (prepare_to_proceed): New static function, copied from
6449         generic_prepare_to_proceed.  Remove select_it argument.
6450         (proceed): Call prepare_to_proceed.
6451         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6452         variables.
6453         (ptrace_wait): Don't set the removed variables.
6454         (hppa_switched_threads): Remove.
6455         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6456         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6457         (lin_lwp_prepare_to_proceed): Remove prototype.
6458         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6459         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6460
6461 2003-06-18  Theodore A. Roth  <troth@openavr.org>
6462
6463         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6464         trad-frame.h.
6465         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6466         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6467         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6468         (AVR_PROLOGUE_*): Enumerate prologue types.
6469         (struct frame_extra_info): Remove.
6470         (struct avr_unwind_cache): Define.
6471         (avr_write_sp): Delete function.
6472         (avr_read_fp): Ditto.
6473         (avr_init_extra_frame_info): Ditto.
6474         (avr_pop_frame): Ditto.
6475         (avr_frame_saved_pc): Ditto.
6476         (avr_saved_pc_after_call): Ditto.
6477         (avr_push_return_address): Ditto.
6478         (avr_frame_chain): Ditto.
6479         (avr_store_struct_return): Ditto.
6480         (avr_push_arguments): Ditto.
6481         (avr_scan_prologue): Update comments. Changed to set up the info for
6482         cache unwinding. Now returns end of prologue PC.
6483         (avr_skip_prologue): Better handling of functions lacking a prologue
6484         by using avr_scan_prologue.
6485         (avr_scan_arg_moves): New function.
6486         (avr_saved_regs_unwinder): Ditto.
6487         (avr_frame_unwind_cache): Ditto.
6488         (avr_unwind_pc): Ditto.
6489         (avr_frame_this_id): Ditto.
6490         (avr_frame_prev_register): Ditto.
6491         (avr_frame_p): Ditto.
6492         (avr_frame_base_address ): Ditto.
6493         (avr_unwind_dummy_id): Ditto.
6494         (avr_push_dummy_code): Ditto.
6495         (push_stack_item): Ditto.
6496         (pop_stack_item): Ditto.
6497         (avr_push_dummy_call): Ditto.
6498         (struct stack_item): Define.
6499         (avr_frame_unwind): Declare structure.
6500         (avr_frame_base): Ditto.
6501         (avr_gdbarch_init): Remove calls to
6502         set_gdbarch_deprecated_init_frame_pc,
6503         set_gdbarch_deprecated_target_read_fp,
6504         set_gdbarch_deprecated_dummy_write_sp,
6505         set_gdbarch_deprecated_fp_regnum,
6506         set_gdbarch_deprecated_push_arguments,
6507         set_gdbarch_deprecated_push_return_address,
6508         set_gdbarch_deprecated_pop_frame,
6509         set_gdbarch_deprecated_store_struct_return,
6510         set_gdbarch_deprecated_frame_init_saved_regs,
6511         set_gdbarch_deprecated_init_extra_frame_info,
6512         set_gdbarch_deprecated_frame_chain,
6513         set_gdbarch_deprecated_frame_saved_pc,
6514         set_gdbarch_deprecated_saved_pc_after_call.
6515         Add calls to set_gdbarch_push_dummy_call,
6516         set_gdbarch_push_dummy_code,
6517         frame_unwind_append_predicate,
6518         frame_base_set_default,
6519         set_gdbarch_unwind_dummy_id,
6520         set_gdbarch_unwind_pc.
6521         Wrap a long line.
6522
6523 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
6524
6525         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6526         registers for H8/300S.
6527         (h8300_print_registers_info): Ditto.
6528         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6529
6530 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
6531
6532         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6533         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6534         (lin_lwp_wait): Likewise.  Update comments.
6535         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6536         (pull_pid_from_list, linux_record_stopped_pid): New.
6537
6538 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6539
6540         * ada-lang.c (scan_discrim_bound): Name first argument.
6541         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6542         declared by ALL_BLOCK_SYMBOLS.
6543
6544 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6545
6546         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6547         ("regcache.h"): Include it.
6548         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6549
6550 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6551
6552         * NEWS: Mention gdbserver detach change and "disconnect" command.
6553         * infcmd.c (disconnect_command): New function.
6554         (_initialize_infcmd): Add ``disconnect'' command.
6555         * remote.c (remote_async_detach): Delete.
6556         (remote_detach): Merge remote_async_detach.
6557         (remote_disconnect): New.
6558         (init_remote_ops): Set to_disconnect.
6559         (init_remote_cisco_ops): Likewise.
6560         (init_remote_async_ops): Likewise.  Use remote_detach.
6561         * target.c (cleanup_target): Default to_disconnect.
6562         (update_current_target): Inherit to_disconnect.
6563         (target_disconnect, debug_to_disconnect): New functions.
6564         (setup_target_debug): Set to_disconnect.
6565         * target.h (struct target_ops): Add to_disconnect.
6566         (target_disconnect): Add prototype.
6567
6568 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6569
6570         * breakpoint.c (insert_catchpoint): New function.
6571         (insert_breakpoints): Use catch_exceptions to call
6572         insert_catchpoint.  Disable catchpoints if they fail to insert.
6573
6574 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6575
6576         * symfile.c (reread_symbols): Clear sym_private.
6577
6578 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6579
6580         * trad-frame.h (struct frame_info): Add opaque declaration.
6581         * remote-fileio.h (struct cmd_list_element): Add opaque
6582         declaration.
6583         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6584         comments.
6585
6586 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6587
6588         * remote.c (remote_prepare_to_store): Replace call to
6589         deprecated_read_register_bytes with multiple regcache_raw_read
6590         calls.
6591
6592 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6593
6594         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6595         (nto_find_and_open_solib): Likewise.
6596         (nto_init_solib_absolute_prefix): Likewise.
6597         (_initialize_nto_tdep): Fix indentation.
6598
6599 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6600
6601         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6602
6603 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6604
6605         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6606
6607 2003-06-17  Jim Blandy  <jimb@redhat.com>
6608
6609         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6610
6611 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6612
6613         * avr-tdep.c (avr_extract_return_value): New function.
6614         (avr_gdbarch_init): Set extract_return_value method.
6615
6616 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6617
6618         * frame.h (deprecated_get_next_frame_hack): Declare.
6619         * frame.c (legacy_saved_regs_prev_register): Only require
6620         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6621         there are always saved regs.
6622         (deprecated_generic_get_saved_register): Do not require
6623         DEPRECATED_FRAME_INIT_SAVED_REGS.
6624         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6625         use frame ID unwind instead.
6626         (deprecated_get_next_frame_hack): New function.
6627
6628 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6629
6630         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6631         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6632         (h8300_push_return_address): Remove.
6633         (h8300_gdbarch_init): Remove calls to
6634         set_gdbarch_deprecated_dummy_write_sp,
6635         set_gdbarch_deprecated_push_arguments and
6636         set_gdbarch_deprecated_push_return_address.
6637         Add call to set_gdbarch_push_dummy_call.
6638
6639 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6640
6641         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6642         (E_PSEUDO_EXR_REGNUM): Ditto.
6643         (h8300_is_argument_spill): Check for instructions moving argument
6644         registers into safe registers.
6645         (h8300_skip_prologue): Check for stm instruction to push registers
6646         used for register variables onto stack.
6647         (gdb_print_insn_h8300): Remove.
6648         (h8300_examine_prologue): Add a comment.
6649         (h8300_register_name): Take pseudo registers into account.
6650         (h8300s_register_name): Ditto.
6651         (h8300sx_register_name): Ditto.
6652         (h8300_print_register): Ditto.
6653         (h8300_print_registers_info): Define "nice" printing order.
6654         (h8300_saved_pc_after_call): Take pseudo registers into account.
6655         (h8300_register_type): Ditto.  Return type used for remote connection
6656         when requesting real CCR or EXR register, return actual type when
6657         requesting pseudo CCR or EXR.
6658         (h8300_pseudo_register_read): New function.
6659         (h8300_pseudo_register_write): Ditto.
6660         (h8300_dbg_reg_to_regnum): Ditto.
6661         (h8300s_dbg_reg_to_regnum): Ditto.
6662         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6663         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6664         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6665         set_gdbarch_print_insn architecture dependent.
6666         Call set_gdbarch_pseudo_register_read and
6667         set_gdbarch_pseudo_register_write.
6668         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6669
6670 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6671
6672         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6673         * gdbarch.h, gdbarch.c: Re-generate.
6674         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6675         * s390-tdep.c (s390_gdbarch_init): Update.
6676         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6677         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6678         * mips-tdep.c (mips_gdbarch_init): Update.
6679         * mcore-tdep.c (mcore_gdbarch_init): Update.
6680         * cris-tdep.c (cris_gdbarch_init): Update.
6681         * infcall.c (call_function_by_hand): Update.
6682         * ia64-tdep.c (ia64_push_arguments): Update comment.
6683         * frame.c (legacy_get_prev_frame): Do not assume
6684         SAVE_DUMMY_FRAME_TOS_P.
6685         * dummy-frame.c (find_dummy_frame): Update comment.
6686
6687 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6688
6689         * regcache.c (do_cooked_read): Do not use register_valid_p.
6690
6691 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6692
6693         * avr-tdep.c (avr_register_type): Remove a blank line.
6694         (avr_scan_prologue): Correct some comments.
6695
6696 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6697
6698         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6699         prologue types.
6700         Properly scan prologues generated by gcc with the -mcall-prologues
6701         option.
6702         Add code to scan -mcall-prologues for mega devices.
6703
6704 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6705
6706         * avr-tdep.c (avr_register_byte): Delete function.
6707         (avr_register_raw_size): Delete function.
6708         (avr_register_virtual_size): Delete function.
6709         (avr_register_virtual_type): Delete function.
6710         (avr_register_type): New function.
6711         (avr_address_to_pointer): Remove unused code.
6712         (avr_read_fp): Need to read FP as two separate bytes due to change to
6713         avr_register_type() usage.
6714         (avr_gdbarch_init): Don't set deprecated_register_size.
6715         Don't set deprecated_register_bytes.
6716         Don't set deprecated_register_byte.
6717         Don't set deprecated_register_raw_size.
6718         Don't set deprecated_max_register_raw_size.
6719         Don't set deprecated_register_virtual_size.
6720         Don't set deprecated_max_register_virtual_size.
6721         Don't set deprecated_register_virtual_type.
6722         Set register_type method.
6723
6724 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6725
6726         * Makefile.in (linux-nat.o): Add rule.
6727         * linux-nat.c: New file.
6728         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6729         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6730         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6731         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6732         * config/arm/linux.mh (NATDEPFILES): Likewise.
6733         * config/i386/linux.mh (NATDEPFILES): Likewise.
6734         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6735         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6736         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6737         * config/mips/linux.mh (NATDEPFILES): Likewise.
6738         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6739         * config/s390/s390.mh (NATDEPFILES): Likewise.
6740         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6741
6742 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6743
6744         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6745         replace out-of-date comment.
6746
6747 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6748
6749         * rdi-share/host.h (Fail): Change to a varargs function.
6750         * remote-rdi.c (Fail): Update.
6751
6752 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6753
6754         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6755         (i386_convert_register_p, i386_register_to_value,
6756         i386_register_from_value): Handle types longer than 8 bytes.
6757
6758 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6759
6760         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6761         Move floating-point code to new function in i387-tdep.c.
6762         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6763         New functions containing code moved here from i386-tdep.c.
6764         * i387-tdep.h: Add opaque declaration for `struct type'.
6765         (i387_register_to_value, i387_value_to_register): New prototypes.
6766         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6767         (x86_64_init_abi): Set convert_register_p, register_to_value and
6768         value_to_register here.
6769
6770 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6771
6772         * mips-tdep.c (mips_register_to_value): Make static.
6773         (mips_value_to_register): Make static.
6774         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6775         * ia64-tdep.c (ia64_register_raw_size): Make static.
6776         (ia64_register_virtual_size): Make static.
6777         (ia64_register_byte): Make static.
6778         * i387-tdep.c: Include "i387-tdep.h".
6779         (print_387_control_word): Delete function.
6780         (print_387_status_word): Delete function.
6781         (print_387_status_bits): Delete function.
6782         (print_387_control_bits): Delete function.
6783         * Makefile.in (i387-tdep.o): Update dependencies.
6784         * rdi-share/host.h (Fail): Declare.
6785         * remote-rdi.c (Fail): Update to match declaration.
6786
6787 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6788
6789         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6790         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6791         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6792         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6793         * README: Delete reference to remote-array.
6794         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6795         (remote-array.o): Delete target.
6796         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6797         * remote-array.c: Delete file.
6798
6799 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6800             Mark Kettenis  <kettenis@gnu.org>
6801
6802         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6803         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6804         parameter with "frame".
6805         * gdbarch.h, gdbarch.c: Re-generate.
6806         * frame.h (put_frame_register): Declare.
6807         * frame.c (put_frame_register): New function.
6808         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6809         (legacy_register_to_value): Rewrite, use "frame" to get the
6810         register value.
6811         (legacy_value_to_register): Rewrite, use "frame" to find the
6812         register's location before storing.
6813         * arch-utils.h (legacy_convert_register_p): Update.
6814         (legacy_register_to_value, legacy_value_to_register): Update.
6815         * findvar.c (value_from_register): Rewrite, eliminate use of
6816         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6817         "frame" to REGISTER_TO_VALUE.
6818         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6819         lval_reg_frame_relative + lval_register branch of the switch.  Do
6820         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6821         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6822         I386_EDI_REGNUM): New defines.
6823         (i386_next_regnum, i386_convert_register_p,
6824         i386_register_to_value, i386_value_to_register): New functions.
6825         (i386_register_convertible, i386_register_convert_to_virtual,
6826         i386_convert_to_raw): Remove functions.
6827         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6828         value_to_register instead of register_convertible,
6829         register_convert_to_virtual and register_convert_to_raw.
6830         * mips-tdep.c (mips_convert_register_p): New function.
6831         (mips_value_to_register): Replace mips_register_convert_from_type.
6832         (mips_register_to_value): Replace mips_register_convert_to_type.
6833         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6834         register_to_value.
6835         * alpha-tdep.c (alpha_convert_register_p): Update.
6836         (alpha_value_to_register): Update, store the register.
6837         (alpha_register_to_value): Update, fetch the register.
6838
6839 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6840
6841         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6842         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6843         Don't set deprecated_call_dummy_words.
6844         Remove commented out set_gdbarch_believe_pcc_promotion() call.
6845         Don't set remote_translate_xfer_address.
6846         (avr_io_reg_read_command): Remove commented out debug printf.
6847         Wrap a long line.
6848
6849 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6850
6851         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6852         causes gdb to seg fault.
6853
6854 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
6855
6856         * sparc-nat.c (fetch_inferior_registers): Correct
6857         a reference to "registers".
6858
6859 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
6860
6861         * Makefile.in (exc_request_U_h): Define
6862         (exc_request_S_h): Likewise.
6863         (msg_reply_S_h): Likewise.
6864         (msg_U_h): Likewise.
6865         (notify_S_h): Likewise.
6866         (process_reply_S_h): Likewise.
6867         (gnu-nat.o): Depend on gdb_obstack_h
6868         * gnu-nat.c: Include "gdb_obstack.h".
6869
6870 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6871
6872         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6873         * gdbarch.h, gdbarch.c: Re-generate.
6874
6875 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6876
6877         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
6878         when deprecated REGISTER macros can be deleted.
6879         * gdbarch.h, gdbarch.c: Re-generate.
6880
6881 2003-06-13  Jim Blandy  <jimb@redhat.com>
6882
6883         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6884         Linux entry point symbols for _dl_debug_state, too.
6885
6886 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6887
6888         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6889         available, do not use the FP register, and always save the TOS.
6890         * dummy-frame.c (dummy_frame_this_id): Do not assert
6891         SAVE_DUMMY_FRAME_TOS.
6892         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6893         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6894         (i386_push_dummy_call): Add 8 to the returned SP.
6895         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6896         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6897         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6898         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6899         (x86_64_push_dummy_call): Return "sp + 16".
6900         (x86_64_init_abi): Do not set save_dummy_frame_tos.
6901         * alpha-tdep.c (alpha_gdbarch_init): Do not set
6902         save_dummy_frame_tos.
6903
6904 2003-06-13  Jim Blandy  <jimb@redhat.com>
6905
6906         * frv-tdep.c (frv_use_struct_convention): Delete static
6907         declaration for function deleted in my change of 2003-06-12.
6908
6909 2003-06-13  Theodore A. Roth  <troth@openavr.org>
6910
6911         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6912         (avr_pointer_to_address): Shift code addrs left 1 bit.
6913         (avr_convert_from_func_ptr_addr): Delete function since operation is
6914         better handled by avr_address_to_pointer and avr_pointer_to_address.
6915         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6916
6917 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
6918
6919         From Kelley Cook  <kelleycook@wideopenwest.com>:
6920         * configure.host: Accept i[34567]86 variants.
6921         * configure.tgt: Likewise.
6922         * nlm/configure.in: Likewise.
6923         * nlm/configure: Regenerated.
6924
6925 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
6926
6927         * arm-tdep.c (solib-svr4.h): Dont' include it.
6928         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6929         * arm-linux-tdep.c: ... here.  Make static.
6930         (arm_linux_init_abi): Register it.
6931         (solib-svr4.h): Include it.
6932         * Makefile.in: Update dependencies.
6933         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6934         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6935
6936 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6937
6938         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6939         indicate registers used for return values.
6940         (struct frame_extra_info): Drop args_pointer and locals_pointer.
6941         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6942         members.
6943         (h8300_init_extra_frame_info): Ditto.
6944         (h8300_frame_locals_address): Removed.
6945         (h8300_frame_args_address): Removed.
6946         (h8300_extract_return_value): Use new regcache structure. Only care
6947         for 16 bit CPUs.
6948         (h8300h_extract_return_value): Same function for 32 bit CPUs.
6949         (h8300_store_return_value): Use new regcache structure. Only care
6950         for 16 bit CPUs.
6951         (h8300h_store_return_value): Same function for 32 bit CPUs.
6952         (h8300_store_struct_return): Removed.
6953         (h8300_extract_struct_value_address): Use new regcache structure.
6954         (h8300h_extract_struct_value_address): Removed.
6955         (h8300_push_dummy_code): New function.
6956         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6957         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
6958         set_gdbarch_store_return_value architecture dependent.
6959         Call set_gdbarch_push_dummy_code and
6960         set_gdbarch_extract_struct_value_address.
6961         Remove calls to set_gdbarch_frame_args_address,
6962         set_gdbarch_frame_locals_address,
6963         set_gdbarch_deprecated_store_struct_return,
6964         set_gdbarch_deprecated_extract_return_value,
6965         set_gdbarch_deprecated_extract_struct_value_address,
6966         set_gdbarch_deprecated_call_dummy_words and
6967         set_gdbarch_deprecated_sizeof_call_dummy_words.
6968
6969 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
6970
6971         * h8300-tdep.c (h8300_register_byte): Remove.
6972         (h8300h_register_byte): Remove.
6973         (h8300_register_virtual_type): Remove.  Substitute by...
6974         (h8300_register_type): New function.
6975         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6976         (h8300h_extract_struct_value_address): Ditto.
6977         (h8300_gdbarch_init): Drop calls to
6978         set_gdbarch_deprecated_register_byte and
6979         set_gdbarch_deprecated_register_virtual_type.
6980         Add call to set_gdbarch_register_type.
6981
6982 2003-06-13  Andrew Cagney  <cagney@redhat.com>
6983
6984         * gdbarch.sh: Update comments on registers.
6985         (deprecated_register_byte): Rename register_byte.
6986         (deprecated_register_raw_size): Rename register_raw_size.
6987         (deprecated_register_virtual_size): Rename register_virtual_size.
6988         (deprecated_register_virtual_type): Rename register_virtual_type.
6989         * gdbarch.h, gdbarch.c: Re-generate.
6990         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6991         * vax-tdep.c (vax_gdbarch_init): Update.
6992         * v850-tdep.c (v850_gdbarch_init): Update.
6993         * sparc-tdep.c (sparc_gdbarch_init): Update.
6994         * sh-tdep.c (sh_gdbarch_init): Update.
6995         * s390-tdep.c (s390_gdbarch_init): Update.
6996         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6997         * ns32k-tdep.c: Update.
6998         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6999         * mips-tdep.c (mips_gdbarch_init): Update.
7000         * mcore-tdep.c (mcore_gdbarch_init): Update.
7001         * m68k-tdep.c (m68k_gdbarch_init): Update.
7002         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7003         * ia64-tdep.c (ia64_gdbarch_init): Update.
7004         * hppa-tdep.c (hppa_gdbarch_init): Update.
7005         * h8300-tdep.c (h8300_gdbarch_init): Update.
7006         * frv-tdep.c (frv_gdbarch_init): Update.
7007         * cris-tdep.c (cris_gdbarch_init): Update.
7008         * avr-tdep.c (avr_gdbarch_init): Update.
7009         * alpha-tdep.c (alpha_gdbarch_init): Update.
7010         * arm-tdep.c (arm_gdbarch_init): Update.
7011
7012 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7013
7014         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7015         mips_o32_use_struct_convention with always_use_struct_convention.
7016
7017 2003-06-12  David Carlton  <carlton@kealia.com>
7018
7019         * cp-namespace.c (cp_set_block_scope): Comment out
7020         processing_has_namespace_info branch.
7021
7022 2003-06-12  Jim Blandy  <jimb@redhat.com>
7023
7024         Recognize and skip 64-bit PowerPC Linux linkage functions.
7025         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7026         insn_pattern, insns_match_pattern, d_field, ds_field): New
7027         functions, macros, and types for working with PPC instructions.
7028         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7029         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7030         ppc64_skip_trampoline_code): New functions, variables, and macros
7031         for recognizing and skipping linkage functions.
7032         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7033         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7034
7035         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7036         register offsets for both the 32- and 64-bit interfaces.
7037
7038         Actually finish the job started by my change of 2003-05-29.
7039         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7040         other #definition of this.
7041         (ppc_linux_skip_trampoline_code): Remove declaration.
7042         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7043         static.
7044         (ppc_linux_init_abi): Register it as the skip_trampoline_code
7045         method for GDBARCH.
7046
7047         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7048         'long' on ppc64-*-linux*.
7049
7050         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7051         isn't #defined, assume the register doesn't exist: act as if
7052         tdep->ppc_mq_regnum were -1.
7053
7054         * configure.host, configure.tgt: Add entries for
7055         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7056         powerpc/linux.mt.
7057         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7058         New files.
7059
7060         * arch-utils.c (always_use_struct_convention): New function.
7061         * arch-utils.h (always_use_struct_convention): New prototype.
7062         * alpha-tdep.c (alpha_use_struct_convention): Delete.
7063         (alpha_gdbarch_init): Register always_use_struct_convention,
7064         instead of alpha_use_struct_convention.
7065         * cris-tdep.c (cris_use_struct_convention): Delete.
7066         (cris_gdbarch_init): Register always_use_struct_convention,
7067         instead of cris_use_struct_convention.
7068         * frv-tdep.c (frv_use_struct_convention): Delete.
7069         (frv_gdbarch_init): Register always_use_struct_convention,
7070         instead of frv_use_struct_convention.
7071         * h8300-tdep.c (h8300_use_struct_convention): Delete.
7072         (h8300_gdbarch_init): Register always_use_struct_convention,
7073         instead of h8300_use_struct_convention.
7074         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
7075         (mips_o32_gdbarch_init): Register always_use_struct_convention,
7076         instead of mips_o32_use_struct_convention.
7077
7078 2003-06-12  Andrew Cagney  <cagney@redhat.com>
7079
7080         * wince.c: Include "mips-tdep.h".
7081         * mips-tdep.h (mips_next_pc): Declare.
7082         * mcore-tdep.c: Make more local functions static.
7083         * Makefile.in (wince.o): Update dependencies.
7084
7085 2003-06-12  David Carlton  <carlton@kealia.com>
7086
7087         * symtab.c (lookup_symbol_aux_minsyms): Replace
7088         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7089         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7090         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7091         SYMBOL_NATURAL_NAME.
7092
7093 2003-06-12  Andreas Schwab  <schwab@suse.de>
7094
7095         * Makefile.in (tuiDisassem.o): Update dependencies.
7096
7097 2003-06-12  David Carlton  <carlton@bactrian.org>
7098
7099         * symtab.h: Delete declaration of make_symbol_overload_list.
7100         Add declaration of lookup_partial_symbol.
7101         * symtab.c (remove_params): Move to cp-support.c.
7102         (overload_list_add_symbol, make_symbol_overload_list)
7103         (sym_return_val_size, sym_return_val_index): Ditto.
7104         (lookup_partial_symbol): Make extern.
7105         * cp-support.h: Add declaration of make_symbol_overload_list.
7106         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7107         symtab.h, and block.h.
7108         (remove_params): Move here from symtab.c.
7109         (overload_list_add_symbol, make_symbol_overload_list)
7110         (sym_return_val_size, sym_return_val_index): Ditto.
7111         * valops.c: Include cp-support.h.
7112         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7113         frame_h, and block_h.
7114         (valops.o): Depend on cp_support_h.
7115
7116 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
7117
7118         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7119         substitute by NUM_REGS throughout.
7120         (h8300_register_name): Only care for H8/300 and H8/300H registers.
7121         (h8300s_register_name): New function for H8S registers.
7122         (h8300sx_register_name): Ditto for H8SX registers.
7123         (h8300_print_register): Revise register printing, avoid depending
7124         on 32 bit long.
7125         (h8300_register_byte): Only care for H8/300 registers.
7126         (h8300h_register_byte): New function for any other architecture.
7127         (h8300_register_raw_size): Remove.
7128         (h8300_register_virtual_type): Revise to return actually useful
7129         type.
7130         (h8300_extract_struct_value_address): Only care for H8/300 registers.
7131         (h8300h_extract_struct_value_address): New function for any other
7132         architecture.
7133         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
7134         set_gdbarch_register_name, set_gdbarch_register_byte,
7135         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7136         Remove calls to set_gdbarch_deprecated_register_size,
7137         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7138         set_gdbarch_deprecated_max_register_raw_size,
7139         set_gdbarch_register_virtual_size and
7140         set_gdbarch_deprecated_max_register_virtual_size entirely.
7141         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7142         set_gdbarch_long_double_bit.
7143
7144 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7145
7146         * doublest.c (convert_doublest_to_floatformat): When dealing
7147         with the implied integer bit, only alter mant_bits if we are
7148         processing a full 32 bits of mantissa.
7149
7150 2003-06-11  David Carlton  <carlton@bactrian.org>
7151
7152         * dictionary.h: New.
7153         * dictionary.c: New.
7154         * block.h: Add opaque declaration for struct dictionary.
7155         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7156         'sym' members.
7157         (BLOCK_DICT): New macro.
7158         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7159         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7160         BLOCK_SHOULD_SORT.
7161         (ALL_BLOCK_SYMBOLS): Update definition.
7162         * Makefile.in (SFILES): Add dictionary.c.
7163         (dictionary_h): New.
7164         (COMMON_OBS): Add dictionary.o.
7165         (dictionary.o): New.
7166         (ada-lang.o): Depend on dictionary_h.
7167         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7168         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7169         (mi-cmd-stack.o): Ditto.
7170         (gdbtk-cmds.o): Update dependencies.
7171         (gdbtk-stack.o): Ditto.
7172         * ada-lang.c: Include dictionary.h.
7173         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7174         (fill_in_ada_prototype, debug_print_block): Ditto.
7175         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7176         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
7177         'is_sorted'.
7178         * mdebugread.c: Include dictionary.h.
7179         (struct parse_stack): Delete 'maxsyms' member.
7180         (parse_symbol): Update calls to new_block.  Delete calls to
7181         shrink_block.  Use dictionary methods.
7182         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7183         Update calls to new_symtab.  Don't maintain maxsyms data.
7184         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7185         (add_symbol): Just call dict_add_symbol.
7186         (new_symtab): Delete 'maxsyms' argument.
7187         (new_symtab): Update calls to new_block.
7188         (new_block): Delete 'maxsyms' argument; add 'function' argument.
7189         (shrink_block): Delete function.
7190         (fixup_sigtramp): Update call to new_block.  Add symbol via
7191         dict_add_symbol.
7192         * jv-lang.c: Include dictionary.h.
7193         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7194         appropriately.  Set class_symtab->free_func.  Make sure the
7195         blockvector is big enough to hold two blocks.
7196         (add_class_symtab_symbol): Use dictionary methods.
7197         (free_class_block): New function.
7198         (type_from_class): Replace explicit iteration by
7199         ALL_BLOCK_SYMBOLS.
7200         * symtab.h (struct symtab): Replace 'free_ptr' method by
7201         'free_func'.
7202         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7203         sort_symtab_syms.
7204         * dwarfread.c (psymtab_to_symtab_1): Delete call to
7205         sort_symtab_syms.
7206         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7207         Include dictionary.h.
7208         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7209         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7210         sort_symtab_syms.
7211         * objfiles.c: Include dictionary.h.
7212         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7213         * buildsym.c: Include dictionary.h.
7214         (finish_block): Use dictionary methods.
7215         (end_symtab): Set free_func to NULL, not free_ptr.
7216         * tracepoint.c: Include dictionary.h.
7217         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7218         (scope_info): Ditto.
7219         * stack.c: Include dictionary.h.
7220         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7221         (print_block_frame_labels, print_frame_arg_vars)
7222         (print_frame_args): Ditto.
7223         * symmisc.c (free_symtab_block): Use dictionary methods.
7224         (dump_symtab): Ditto.
7225         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7226         Include dictionary.h.
7227         * symfile.h: Delete declarations of sort_block_syms,
7228         sort_symtab_syms.
7229         * symfile.c (sort_block_syms): Delete.
7230         (sort_symtab_syms): Delete.
7231         * symtab.c: Include dictionary.h.
7232         (lookup_block_symbol): Use dictionary iterators.
7233         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7234         (search_symbols, make_symbol_completion_list): Ditto.
7235         (make_symbol_overload_list): Ditto.
7236         * valops.c (value_of_local): Use dict_empty.
7237         Include dictionary.h.
7238
7239 2003-06-11  J. Brobecker  <brobecker@gnat.com>
7240
7241         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7242
7243 2003-06-11  David Carlton  <carlton@bactrian.org>
7244
7245         * block.h (BLOCK_SHOULD_SORT): Delete.
7246         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7247         blocks.
7248         * ada-lang.c (ada_add_block_symbols): Ditto.
7249         * symfile.c (sort_block_syms): Delete.
7250         (sort_symtab_syms): Ditto.
7251         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7252         declarations.
7253         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7254         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7255         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7256         * dwarfread.c (psymtab_to_symtab_1): Ditto.
7257         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7258         * mdebugread.c (psymtab_to_symtab_1): Ditto.
7259         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7260
7261 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7262
7263         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7264         bits to 128.
7265
7266 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7267
7268         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7269         REGISTER_CONVERTIBLE.
7270         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7271         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7272         * gdbarch.h, gdbarch.c: Re-generate.
7273         * arch-utils.h (deprecated_register_convertible_not): Rename
7274         generic_register_convertible_not.
7275         * arch-utils.c (deprecated_register_convertible_not): Rename
7276         generic_register_convertible.
7277         (legacy_convert_register_p, legacy_register_to_value): Update.
7278         * sh-tdep.c (sh64_push_arguments): Update.
7279         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7280         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7281         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7282         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7283         * arch-utils.c (legacy_value_to_register): Update.
7284         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7285         (rs6000_register_convert_to_raw): Make parameter "from" const.
7286         * mips-tdep.c (mips_gdbarch_init): Update.
7287         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
7288         * infcmd.c (default_print_registers_info): Update.
7289         * ia64-tdep.c (ia64_gdbarch_init): Update.
7290         (ia64_register_convert_to_raw): Make parameter "from" const.
7291         * i386-tdep.c (i386_gdbarch_init): Update.
7292         (i386_register_convert_to_raw): Update.
7293
7294 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7295
7296         * remote-fileio.c: Include "remote-fileio.h".
7297         * Makefile.in (remote-fileio.o): Update dependencies.
7298         (remote_fileio_h): Fix typo.
7299
7300 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7301
7302         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7303         (xstormy16_save_dummy_frame_tos): Make static.
7304         (_initialize_xstormy16_tdep): Add declaration.
7305         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7306         * v850-tdep.c: Make local functions static.
7307         (_initialize_v850_tdep): Add declaration.
7308         * sparc-tdep.c: Make local functions static.
7309         (_initialize_sparc_tdep): Add declaration.
7310         * sh-tdep.c: Make local functions static.
7311         (_initialize_sh_tdep): Add declaration.
7312         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7313         * s390-tdep.c: Make local functions static.
7314         (_initialize_s390_tdep): Add declaration.
7315         * dbxread.c (find_stab_function_addr): Make static.
7316         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7317         * ocd.c (_initialize_remote_ocd): Add declaration.
7318         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7319         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7320         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7321         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7322         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7323         * remote-array.c (_initialize_array): Add declaration.
7324         (_initialize_remote_monitors): Add declaration.
7325         * remote-mips.c: Make local functions static.
7326         (_initialize_remote_mips): Add declaration.
7327         * mcore-tdep.c: Make all local functions static.
7328         (_initialize_mcore_tdep): Add declaration.
7329         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7330         * abug-rom.c (_initialize_abug_rom): Add declaration.
7331         * rom68k-rom.c (_initialize_rom68k): Add declaration.
7332         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7333         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7334         * remote-est.c (_initialize_est): Add declaration.
7335         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7336         (m68hc11_call_dummy_address): Make static.
7337         * ia64-tdep.c: Make local functions static.
7338         (_initialize_ia64_tdep): Add declaration.
7339         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7340         * monitor.c (monitor_wait_filter): Make static.
7341         (_initialize_remote_monitors): Add declaration.
7342         * remote-hms.c (_initialize_remote_hms): Add declaration.
7343         * remote-e7000.c (fetch_regs_from_dump): Make static.
7344         (expect_n): Make static.
7345         (_initialize_remote_e7000): Add declaration.
7346         * ser-e7kpc.c: Always include "defs.h".
7347         (_initialize_ser_e7000pc): Add declaration.
7348         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7349         * cris-tdep.c: Make all but one function static.
7350         (_initialize_cris_tdep): Add declaration.
7351         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7352         * solib.c (update_solib_list): Make static.
7353         (_initialize_solib): Add declaration.
7354         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7355         (_initialize_avr_tdep): Add declaration.
7356         * remote-rdi.c (voiddummy): Make static.
7357         (_initialize_remote_rdi): Add declaration.
7358         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7359         * remote-rdp.c (send_rdp): Make static.
7360         (_initialize_remote_rdp): Add declaration.
7361         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7362
7363 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
7364
7365         * remote-fileio.c: Make ari happy.
7366
7367 2003-06-10  J. Brobecker  <brobecker@gnat.com>
7368
7369         * rs6000-nat.c (child_xfer_memory): Compute the right address when
7370         fetching the trailing bytes of the buffer we are about to write.
7371
7372 2003-06-10  Andrew Cagney  <cagney@redhat.com>
7373
7374         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7375         * Makefile.in (remote-fileio.o): Update dependencies.
7376         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
7377         include <setjmp.h>, or <sys/types.h> conditional on USG.
7378         (remote_fio_jmp_buf): Delete global variable.
7379
7380 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
7381             Martin M. Hunt  <hunt@redhat.com>
7382
7383         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7384         (SFILES): Add remote-fileio.c.
7385         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
7386         dependencies for building remote.o.
7387         * remote-fileio.c: New file implementing the remote File-I/O protocol.
7388         * remote-fileio.h: New header file defining remote File-I/O interface.
7389         * remote.c (remote_write_bytes, remote_read_bytes): Remove
7390         static storage class.
7391         (remote_wait, remote_async_wait): Call remote_fileio_request() on
7392         'F' packet.
7393         (_initialize_remote): Call initialize_remote_fileio().
7394         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7395         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7396         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7397         (captured_main): Initialize new ui_files.
7398         * ui-file.c: Add read and fgets input functions.
7399         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7400         (null_file_read): New function.
7401         (ui_file_read): New function.
7402         (set_ui_file_read): New function.
7403         (stdio_file_read): New function.
7404         * ui-file.h: New type ui_file_read_ftype.
7405         (set_ui_file_read): Declare.
7406         (ui_file_read): Declare.
7407
7408 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7409
7410         * frame.h (deprecated_unwind_get_saved_register): Rename
7411         generic_unwind_get_saved_register, update comments.
7412         * mips-tdep.c (mips_get_saved_register): Update.
7413         * frame.c (deprecated_unwind_get_saved_register): Update.
7414
7415 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7416
7417         * vax-tdep.c (vax_frame_locals_address): Delete function.
7418         (vax_gdbarch_init): Do not set frame_locals_address.
7419         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7420         (m68hc11_gdbarch_init): Do not set frame_locals_address.
7421         * s390-tdep.c (s390_frame_args_address): Delete function.
7422         (s390_gdbarch_init): Do not set frame_args_address or
7423         frame_locals_address.
7424         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7425         (ns32k_gdbarch_init): Do not set frame_locals_address.
7426         * hppa-tdep.c (hppa_frame_args_address): Delete function.
7427         (hppa_frame_locals_address): Delete function.
7428         (hppa_gdbarch_init): Do not set frame_args_address, or
7429         frame_locals_address.
7430         * arm-tdep.c (arm_frame_args_address): Delete.
7431         (arm_frame_locals_address): Delete.
7432         (arm_gdbarch_init): Do not set frame_args_address, or
7433         frame_locals_address.
7434
7435 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7436
7437         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7438         * gdbarch.h, gdbarch.c: Re-generate.
7439         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7440         * arch-utils.c (frame_num_args_unknown): Delete function.
7441         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7442         (frame_info): Use FRAME_NUM_ARGS_P.
7443         * arm-tdep.c (arm_frame_num_args): Delete function.
7444         (arm_gdbarch_init): Do not set frame_num_args.
7445         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7446         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7447         (hppa_gdbarch_init): Do not set frame_num_args.
7448         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7449         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7450         frame_num_args to default frame_num_args_unknown.
7451         * v850-tdep.c (v850_gdbarch_init): Ditto.
7452         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7453         * sh-tdep.c (sh_gdbarch_init): Ditto.
7454         * s390-tdep.c (s390_gdbarch_init): Ditto.
7455         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7456         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7457         * mips-tdep.c (mips_gdbarch_init): Ditto.
7458         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7459         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7460         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7461         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7462         * i386-tdep.c (i386_gdbarch_init): Ditto.
7463         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7464         * frv-tdep.c (frv_gdbarch_init): Ditto.
7465         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7466         * cris-tdep.c (cris_gdbarch_init): Ditto.
7467         * avr-tdep.c (avr_gdbarch_init): Ditto.
7468         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7469
7470 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7471
7472         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7473         (print_frame_args): Moved to "stack.c".
7474         * stack.c: Include "gdb_assert.h".
7475         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7476         (print_frame_args): Moved from "printcmd.c".
7477         * frame.h (print_frame_args): Delete declaration.
7478         * Makefile.in (stack.o): Update dependencies.
7479
7480 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7481
7482         * frame.c (get_prev_frame): Remove reference to
7483         frame_args_address_correct in comments.
7484         * frame-base.c (default_frame_args_address): Delete code
7485         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7486         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7487         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7488         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7489         (vax_frame_args_address_correct): Delete declaration.
7490
7491 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7492
7493         * gdbarch.sh (UNWIND_SP): Add.
7494         * gdbarch.h, gdbarch.c: Re-generate.
7495         * frame.c (frame_sp_unwind): New function.
7496         (get_frame_sp): New function.
7497         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7498         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7499         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7500         value.
7501         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7502         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7503
7504 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7505
7506         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7507         REMOTE_BREAKPOINT.
7508         * remote.c: Update.
7509         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7510         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7511         * config/m68k/tm-sun3.h: Update.
7512         * config/m68k/tm-m68klynx.h: Update.
7513         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7514
7515         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7516         trad_frame".  Update comments.
7517         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7518         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7519         (trad_frame_register_value, trad_frame_prev_register): Update.
7520
7521 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7522
7523         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7524         from GCC's acinclude.m4.
7525         * configure.in: Check for getopt's delcaration.
7526         * aclocal.m4, config.in, configure: Re-generate.
7527         * main.c (error_init): Delete declaration.
7528         * defs.h (error_init): Declare.
7529         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7530         (rs6000_convert_from_func_ptr_addr): Make static.
7531         (_initialize_rs6000_tdep): Add declaration.
7532         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7533         (show_commands, set_verbose, show_history): Delete declaration.
7534         * top.h (set_verbose): Add declaration.
7535         (show_history, set_history, show_commands): Add declaration.
7536         (do_restore_instream_cleanup): Add declaration.
7537         * objc-lang.c (specialcmp): Make static.
7538         (print_object_command): Make static.
7539         (find_objc_msgsend): Make static.
7540         (find_objc_msgcall_submethod_helper): Make static.
7541         (find_objc_msgcall_submethod): Make static.
7542         (_initialize_objc_language): Add declaration.
7543         (find_implementation_from_class): Make static.
7544         (find_implementation): Make static.
7545         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7546         * objc-lang.h (lookup_struct_typedef): Add declaration.
7547         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7548         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7549         (do_restore_user_call_depth): Make static.
7550         (do_restore_instream_cleanup): Delete declaration.
7551         (dont_repeat): Delete declaration.
7552         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7553         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7554         * reggroups.c (_initialize_reggroup): Add declaration.
7555         * cp-support.c (_initialize_cp_support): Add declaration.
7556         * cp-abi.c (_initialize_cp_abi): Add declaration.
7557         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7558         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7559         (_initialize_gnu_v3_abi): Add declaration.
7560         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7561         (_initialize_gnu_v2_abi): Add declaration.
7562         * frame-base.c (_initialize_frame_base): Add declaration.
7563         * doublest.c (floatformat_from_length): Make static.
7564         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7565         * frame.c (create_sentinel_frame): Make static.
7566         (_initialize_frame): Add declaration.
7567         * top.c (do_catch_errors): Make static.
7568         (gdb_rl_operate_and_get_next_completion): Make static.
7569         * typeprint.c: Include "typeprint.h".
7570         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7571         (sentinel_frame_this_id): Make static.
7572         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7573         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7574         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7575         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7576         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7577         * maint.c (maintenance_print_architecture): Make static.
7578         * signals/signals.c (_initialize_signals): Add declaration.
7579         * std-regs.c (_initialize_frame_reg): Add declaration.
7580         * jv-exp.y (push_variable): ISO C definition.
7581         (push_qualified_expression_name): Ditto.
7582         * memattr.c (_initialize_mem): Add declaration.
7583         * remote.c (remote_check_watch_resources): Make static.
7584         (remote_stopped_by_watchpoint): Make static.
7585         (remote_stopped_data_address): Make static.
7586         * d10v-tdep.c (nr_dmap_regs): Make static.
7587         (a0_regnum): Make static.
7588         (d10v_frame_unwind_cache): Make static.
7589         (d10v_frame_p): Make static.
7590         * osabi.c (show_osabi): Make static.
7591         (_initialize_gdb_osabi): Add extern declaration.
7592         * gdbtypes.c (make_qualified_type): Make static.
7593         (safe_parse_type): Make static.
7594         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7595         * macrotab.c (macro_bcache_free): Make static.
7596         * interps.c (interp_set_quiet): Make static.
7597         (interpreter_exec_cmd): Make static.
7598         * stack.h (select_frame_command): New file.
7599         * stack.c: Include "stack.h".
7600         (select_frame_command_wrapper): Delete function.
7601         (select_frame_command): Make global.
7602         * infcall.c: Include "infcall.h".
7603         * linespec.c: Include "linespec.h".
7604         * symfile.c (sections_overlap): Make static.
7605         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7606         * charset.c (_initialize_charset): Add missing prototype.
7607         * regcache.c (init_legacy_regcache_descr): Make static.
7608         (do_regcache_xfree): Make static.
7609         (regcache_xfer_part): Make static.
7610         (_initialize_regcache): Add missing prototype.
7611         * breakpoint.c (parse_breakpoint_sals): Make static.
7612         (breakpoint_sals_to_pc): Make static.
7613         * interps.h (clear_interpreter_hooks): ISO C declaration.
7614         * Makefile.in (stack_h): Define.
7615         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7616         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7617
7618 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7619
7620         * Makefile.in (d10v-tdep.o): Update dependencies.
7621         (SFILES): Add trad-frame.c.
7622         (trad_frame_h): Define.
7623         (COMMON_OBS): Add trad-frame.o.
7624         (trad-frame.o): Specify dependencies.
7625         * d10v-tdep.c: Include "trad-frame.h".
7626         (saved_regs_unwinder): Delete function.
7627         (d10v_frame_prev_register): Use trad_frame_prev_register.
7628         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7629         trad_frame", delete "regs" and "prev_sp".
7630         (prologue_find_regs): Use trad-frame.
7631         * trad-frame.h, trad-frame.c: New files.
7632
7633 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7634
7635         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7636
7637 2003-06-07  Adam Fedor  <fedor@gnu.org>
7638
7639         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7640         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7641         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7642         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7643         resolve_msgsend_super, resolve_msgsend_super_stret):
7644         Use it.
7645
7646 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7647
7648         * symfile.h: Re-indent, clean up comments.
7649
7650 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7651
7652         * inferior.h (deprecated_write_sp): Replace
7653         generic_target_write_sp.
7654         * regcache.c (deprecated_write_sp): Replace
7655         generic_target_write_sp.
7656         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7657         * vax-tdep.c (vax_gdbarch_init): Update.
7658         * v850-tdep.c (v850_gdbarch_init): Update.
7659         * sparc-tdep.c (sparc_gdbarch_init): Update.
7660         * sh-tdep.c (sh_gdbarch_init): Update.
7661         * s390-tdep.c (s390_gdbarch_init): Update.
7662         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7663         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7664         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7665         * mcore-tdep.c (mcore_gdbarch_init): Update.
7666         * m68k-tdep.c (m68k_gdbarch_init): Update.
7667         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7668         * ia64-tdep.c (ia64_gdbarch_init): Update.
7669         * h8300-tdep.c (h8300_gdbarch_init): Update.
7670         * frv-tdep.c (frv_gdbarch_init): Update.
7671         * cris-tdep.c (cris_gdbarch_init): Update.
7672         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7673
7674 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7675
7676         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7677         Assert that PC_REGNUM is valid.
7678         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7679
7680 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7681
7682         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7683         * gdbarch.h, gdbarch.c: Regenerate.
7684         * mn10300-tdep.c: Include "gdb_assert.h".
7685         (mn10300_read_fp): New function.
7686         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7687         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7688         * ia64-tdep.c: Include "gdb_assert.h".
7689         (ia64_read_fp): New function.
7690         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7691         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7692         * regcache.c (generic_target_read_sp): Delete function.
7693         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7694         * inferior.h (generic_target_read_sp): Delete declaration.
7695         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7696         generic_target_read_sp.
7697         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7698         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7699         * sh-tdep.c (sh_gdbarch_init): Ditto.
7700         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7701         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7702
7703 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7704
7705         * gdbarch.sh: Comment each field of startup_gdbarch.
7706         * gdbarch.h, gdbarch.c: Re-generate.
7707
7708 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7709
7710         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7711         * gdbarch.h, gdbarch.c: Re-generate.
7712         * regcache.c: Update comments on read_pc et.al.
7713         (generic_target_read_pc): Delete function.
7714         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7715         * inferior.h (generic_target_read_pc): Delete declaration.
7716         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7717         generic_target_read_pc.
7718         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7719         * sh-tdep.c (sh_gdbarch_init): Ditto.
7720         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7721         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7722
7723 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7724
7725         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7726         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7727         Append period to coments.
7728
7729 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7730
7731         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7732         (elfstab_offset_sections): Likewise.
7733         * gdb-stabs.h (stab_section_info): Likewise.
7734         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7735         * objfiles.c (objfile_relocate): Likewise.
7736         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7737         * remote.c (get_offsets): Likewise.
7738         (remote_cisco_objfile_relocate): Likewise.
7739         * somread.c (som_symfile_offsets): Likewise.
7740         * symfile.c (alloc_section_addr_info): New function.
7741         (build_section_addr_info_from_section_tab): Use it.
7742         (free_section_addr_info): Adjust.
7743         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7744         (syms_from_objfile): Allocate local_addr dynamically.
7745         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7746         dynamically.
7747         (add_symbol_file_command): Allocate sect_opts dynamically.
7748         (reread_symbols): Avoid use of SECT_OFF_MAX.
7749         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7750         (alloc_section_addr_info): Declare it.
7751         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7752         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7753         dynamically.
7754         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7755
7756 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7757
7758         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7759         (d10v_frame_unwind_cache): Do not set "return_pc".
7760
7761 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7762
7763         * h8300-tdep.c: Make tidy (long lines).
7764
7765 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7766
7767         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7768         to regcache_collect().
7769
7770 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7771
7772         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7773         pc_in_sigtramp multiarch method.
7774         (hppa_hpux_som_init_abi): Use it.
7775         (hppa_hpux_elf_init_abi): Likewise.
7776         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7777         macro has been multiarched.
7778         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7779         macro here, as hppa64 isn't multiarched yet.
7780
7781 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7782
7783         * Makefile.in (value_h): Add $(frame_h).
7784         * value.h: Include "frame.h".
7785         (struct value): Replace "frame_addr" with "frame_id".
7786         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7787         * values.c (allocate_value): Use VALUE_FRAME_ID.
7788         (value_copy): Use VALUE_FRAME_ID.
7789         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7790         * valops.c (value_assign): Update.  Use frame_find_by_id.
7791
7792 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7793
7794         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7795         in each pass.
7796
7797 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7798
7799         * thread-db.c (check_event): For create/death event breakpoints,
7800         loop through all messages to ensure that we read the message
7801         corresponding to the breakpoint we are at.
7802
7803 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7804
7805         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7806
7807 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7808
7809         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7810         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7811         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7812         when handling .eh_frame sections.
7813
7814 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7815
7816         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7817         prepare_to_proceed procedure instead of the hppa-specific one.
7818         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7819
7820 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7821
7822         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7823         * config.in: Regenerated.
7824         * configure.in: Add test for syscall function and check for
7825         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7826         * configure: Regenerated.
7827         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7828         <sys/syscall.h>.
7829         (kill_lwp): New function that uses tkill syscall or
7830         uses kill, depending on whether threading model is nptl or not.
7831         All callers of kill() changed to use kill_lwp().
7832         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7833         see if all threads have already exited in the nptl model.
7834         (stop_and_resume_callback): New callback function used by the
7835         lin_lwp_wait thread exit handling code.
7836         (stop_wait_callback): Check for threads already having exited and
7837         delete such threads fromt the lwp list when discovered.
7838         (stop_callback): Don't assert retcode of kill call.
7839
7840         Roland McGrath  <roland@redhat.com>
7841         * i386-linux-nat.c (ps_get_thread_area): New function needed by
7842         nptl libthread_db.
7843
7844 2003-06-03  Richard Henderson  <rth@redhat.com>
7845
7846         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7847         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7848         (alpha_sigtramp_frame_prev_register): Likewise.
7849         (alpha_heuristic_frame_prev_register): Likewise.
7850         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7851
7852         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7853         alpha-specific register id names.
7854         (alpha_mdebug_frame_unwind_cache): Likewise.
7855         (alpha_mdebug_frame_prev_register): Likewise.
7856
7857 2003-06-03  Richard Henderson  <rth@redhat.com>
7858
7859         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7860         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7861         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7862         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7863         unwind routines.
7864         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7865         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7866         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7867
7868         * alpha-linux-tdep.c: Remove unnecessary includes.
7869         * Makefile.in (alpha-linux-tdep.o): Update.
7870
7871 2003-06-03  Richard Henderson  <rth@redhat.com>
7872
7873         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7874         (alphabsd_fill_fpreg): Likewise.
7875
7876 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7877
7878         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
7879         references to struct frame_info fields by calls to the equivalent
7880         accessors. Necessary now that frame_info is opaque.
7881
7882 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7883
7884         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7885         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7886         structure, field no longer exists.
7887
7888 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7889
7890         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7891         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7892
7893 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7894
7895         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7896         references to struct frame_info fields by calls to the equivalent
7897         accessors. Necessary now that frame_info is opaque.
7898
7899 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7900
7901         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7902         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7903         structure, field no longer exists.
7904
7905 2003-06-03  Theodore A. Roth  <troth@openavr.org>
7906
7907         * remote.c (init_remote_state): Compute sizeof_g_packet by
7908         accumulation of the size of all registers instead of blindly using
7909         DEPRECATED_REGISTER_BYTES.
7910
7911 2003-06-03  Michael Snyder  <msnyder@redhat.com>
7912
7913         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7914         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7915         for h8300sx.
7916
7917 2003-06-03  J. Brobecker  <brobecker@gnat.com>
7918
7919         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7920         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7921
7922 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7923
7924         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7925         (sparc_convert_to_raw): Delete function.
7926         (sparc_gdbarch_init): Do not set register_convert_to_raw or
7927         register_convert_to_virtual.
7928
7929 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
7930
7931         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7932         layer if not dealing with a statically-linked threaded program.
7933
7934 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
7935
7936         * solib.c (solib_open): Update comment to reflect actual search order.
7937
7938 2003-06-03  Andrew Cagney  <cagney@redhat.com>
7939
7940         * frame.c (get_frame_memory_signed): New function.
7941         (get_frame_memory, get_frame_memory_unsigned): New function.
7942         (get_frame_arch): New function.
7943         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7944         (get_frame_memory, get_frame_unsigned_memory): Declare.
7945         * d10v-tdep.c (d10v_frame_unwind_cache): Use
7946         get_frame_memory_unsigned and get_frame_arch.
7947         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7948
7949 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
7950
7951         * MAINTAINERS (write after approval): Add myself.
7952
7953 2003-06-03  Jim Blandy  <jimb@redhat.com>
7954
7955         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7956         elements of gregset_t are 64 bits each, but access registers
7957         are still 32 bits, so they're packed two per gregset_t
7958         element.  Unpack/pack them properly.
7959
7960 2003-06-02  David Carlton  <carlton@bactrian.org>
7961
7962         * linespec.c (find_methods): Break out code into
7963         add_matching_methods and add_constructors.
7964         (add_matching_methods): New.
7965         (add_constructors): Ditto.
7966
7967 2003-06-02  Andrew Cagney  <cagney@redhat.com>
7968
7969         * sparc-tdep.c (sparc_print_registers): Delete call to
7970         REGISTER_CONVERTIBLE.
7971         (sparc_gdbarch_init): Do not set register_convertible.
7972         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7973         * frv-tdep.c (frv_gdbarch_init): Ditto.
7974         * cris-tdep.c (cris_gdbarch_init): Ditto.
7975
7976 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
7977
7978         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7979         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7980         (syms_from_objfile): Ditto.
7981
7982 2003-06-03  Andreas Schwab  <schwab@suse.de>
7983
7984         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7985         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7986
7987 2003-06-02  Richard Henderson  <rth@redhat.com>
7988
7989         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7990         a member of all_reggroup.
7991
7992 2003-06-02  Richard Henderson  <rth@redhat.com>
7993
7994         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7995         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7996         (alpha_lds, alpha_sts): New.
7997         (alpha_convert_register_p): Change from _register_convertible.
7998         (alpha_register_to_value): Change from _convert_to_virtual;
7999         restructure and fail for type sizes other than 4 or 8.
8000         (alpha_value_to_register): Similarly.
8001         (alpha_extract_return_value): Use alpha_sts.
8002         (alpha_store_return_value): Use alpha_lds.
8003         (alpha_gdbarch_init): Update hooks.
8004
8005 2003-06-02  Richard Henderson  <rth@redhat.com>
8006
8007         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8008         regnum identifiers.
8009         (alpha_sigtramp_register_address): Likewise.
8010
8011 2003-06-02  Richard Henderson  <rth@redhat.com>
8012
8013         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8014         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8015         * alpha-tdep.h: Declare them.
8016
8017         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8018         Remove zerobuf.  Don't error on UNIQUE.
8019         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8020         (ALPHA_REGSET_UNIQUE): Provide default.
8021         (supply_gregset): Use alpha_supply_int_regs.
8022         (fill_gregset): Use alpha_fill_int_regs.
8023         (supply_fpregset): Use alpha_supply_fp_regs.
8024         (fill_fpregset): Use alpha_fill_fp_regs.
8025         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8026         (alphabsd_supply_reg): Use alpha_supply_int_regs.
8027         (alphabsd_fill_reg): Use alpha_fill_int_regs.
8028         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8029         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8030         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8031
8032 2003-06-02  Richard Henderson  <rth@redhat.com>
8033
8034         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8035
8036         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8037         (alpha_store_return_value): Likewise.
8038
8039 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8040
8041         * block.c (contained_in): Add 'const' to arguments.
8042         (block_function): Ditto.
8043         * block.h: Update declarations for block_function and
8044         contained_in.
8045
8046 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8047
8048         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8049         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8050         * p-valprint.c (pascal_val_print): Ditto.
8051         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8052
8053 2003-06-02  Richard Henderson  <rth@redhat.com>
8054
8055         * alpha-tdep.c (alpha_push_dummy_call): Use
8056         builtin_type_ieee_double_little instead of builtin_type_double.
8057
8058         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
8059         sign-extension of 32-bit values.
8060         (alpha_store_return_value): Similarly.
8061
8062         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8063         (alpha_extract_return_value): Likewise.
8064         (alpha_store_return_value): Likewise.
8065
8066         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8067         (alpha_store_return_value): Error on IEEE Quad floats.
8068
8069         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8070         (alpha_extract_struct_value_address): Likewise.
8071         (alpha_store_return_value): Likewise.
8072         (alpha_store_struct_return): Remove.
8073         (alpha_gdbarch_init): Update hook registration to match.
8074
8075         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8076         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8077         macros where appropriate.
8078         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
8079         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
8080
8081         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8082         for SP, GP; void_func_ptr for PC; non-language-specific types
8083         for all others.
8084         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
8085
8086 2003-06-02  Richard Henderson  <rth@redhat.com>
8087
8088         * top.h (lim_at_start): Declare.
8089         * main.c (captured_main): Set it.
8090         * top.c (lim_at_start): Define.
8091         (command_loop): Use it instead of &environ.
8092         * event-top.c (command_handler): Likewise.
8093
8094 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
8095
8096         * mipsnbsd-tdep.c: Update copyright years.
8097         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8098
8099 2003-06-01  Richard Henderson  <rth@redhat.com>
8100
8101         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8102         (alpha-linux-tdep.o): Update dependencies.
8103         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8104         * alpha-mdebug-tdep.c: Remove unneeded includes.
8105
8106 2003-06-01  Richard Henderson  <rth@redhat.com>
8107
8108         * alpha-tdep.c (alpha_register_reggroup_p): New.
8109         (alpha_gdbarch_init): Register it.
8110
8111 2003-06-02  Andrew Cagney  <cagney@redhat.com>
8112
8113         * dwarfread.c: Eliminate "register"
8114         (decode_die_type): Eliminate assignment within "if".
8115         (struct_type, decode_array_element_type): Ditto.
8116         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8117         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8118         (decode_modified_type, completedieinfo): Ditto.
8119         * block.c: Eliminate "register".
8120         (blockvector_for_pc_sect): Eliminate assignment within "if".
8121         * cp-support.h (struct symbol): Opaque declaration.
8122         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8123
8124 2003-06-01  Richard Henderson  <rth@redhat.com>
8125
8126         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8127         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
8128
8129 2003-06-01  Adam Fedor  <fedor@gnu.org>
8130
8131         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8132         * gdbarch.[ch]: Regenerate.
8133         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8134         (hppa_gdbarch_init): Set it in the gdbarch vector.
8135         * i386-tdep.c (i386_fetch_pointer_argument): New
8136         (i386_gdbarch_init): Set it into gdbarch.
8137         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8138         (rs6000_gdbarch_init): Set it in gdbarch.
8139         * sparc-tdep.c (sparc_fetch_pointer_argument): New
8140         (sparc_gdbarch_init): Set it in gdbarch.
8141
8142 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8143
8144         * defs.h (extract_address): Delete declaration.
8145         * findvar.c (extract_address): Delete function.
8146         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8147         extract_address with the inline equivalent,
8148         extract_unsigned_integer.
8149         (xstormy16_extract_struct_value_address): Ditto.
8150         (xstormy16_pointer_to_address): Ditto.
8151         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8152         * v850-tdep.c (v850_push_arguments): Ditto.
8153         (v850_extract_return_value): Ditto.
8154         (v850_extract_struct_value_address): Ditto.
8155         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8156         (sparcnbsd_get_longjmp_target_64): Ditto.
8157         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8158         (get_longjmp_target): Ditto.
8159         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8160         (sh64_extract_struct_value_address): Ditto.
8161         (sh_push_arguments): Ditto.
8162         (sh64_push_arguments): Ditto.
8163         * remote-vxsparc.c (vx_read_register): Ditto.
8164         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8165         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8166         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8167         * mipsv4-nat.c (get_longjmp_target): Ditto.
8168         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8169         * mips-nat.c (get_longjmp_target): Ditto.
8170         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8171         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8172         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8173         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8174         * irix5-nat.c (get_longjmp_target): Ditto.
8175         * irix4-nat.c (get_longjmp_target): Ditto.
8176         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8177         (ia64_push_arguments): Ditto.
8178         * hpux-thread.c (hpux_thread_store_registers): Ditto.
8179         * h8300-tdep.c (h8300_push_arguments): Ditto.
8180         (h8300_store_return_value): Ditto.
8181         (h8300_extract_struct_value_address): Ditto.
8182         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8183         (frv_push_arguments): Ditto.
8184         * avr-tdep.c (avr_pointer_to_address): Ditto.
8185         (avr_push_arguments): Ditto.
8186         * arm-tdep.c (arm_push_dummy_call): Ditto.
8187         (arm_get_longjmp_target): Ditto.
8188         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8189         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8190         (alpha_get_longjmp_target): Ditto.
8191
8192         * solib-irix.c (extract_mips_address): Inline extract_address,
8193         replacing it with extract_signed_integer.
8194         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8195         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8196         (first_link_map_member, open_symbol_file_object): Ditto.
8197         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8198         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8199         (LM_NEXT, LM_NAME): Ditto.
8200
8201 2003-06-01  Richard Henderson  <rth@redhat.com>
8202
8203         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8204         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8205         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8206         (alpha_cannot_store_register): Likewise.
8207         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8208         * alpha-nat.c (supply_gregset): Likewise.
8209         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8210
8211 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8212
8213         * infcall.c (call_function_by_hand): Update comment on
8214         DEPRECATED_DUMMY_WRITE_SP.
8215
8216         * mips-tdep.c (mips_gdbarch_init): Do not set
8217         deprecated_dummy_write_sp.
8218         (mips_eabi_push_dummy_call): Set the SP register.
8219         (mips_o64_push_dummy_call): Set the SP register.
8220         (mips_o32_push_dummy_call): Set the SP register.
8221         (mips_n32n64_push_dummy_call): Set the SP register.
8222
8223 2003-06-01  Richard Henderson  <rth@redhat.com>
8224
8225         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8226         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8227         (supply_gregset): Likewise.
8228         * alpha-tdep.c (alpha_store_return_value): Likewise.
8229         (alpha_get_longjmp_target): Likewise.
8230         (alpha_register_name): Constify array.
8231         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8232         deprecated_register_size, deprecated_register_bytes,
8233         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8234         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8235         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8236
8237 2003-06-01  Richard Henderson  <rth@redhat.com>
8238
8239         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
8240         from arg_reg_buffer to regcache to avoid double conversion.
8241
8242 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8243
8244         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8245         SP_REGNUM.
8246         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8247         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8248
8249 2003-06-01  Richard Henderson  <rth@redhat.com>
8250
8251         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8252         (decode_frame_entry): Set it.  Skip FDE augmentation.
8253
8254 2003-06-01  Richard Henderson  <rth@redhat.com>
8255
8256         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8257         not overlapping PC_REGNUM.
8258
8259 2003-06-01  Richard Henderson  <rth@redhat.com>
8260
8261         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8262         alpha_push_arguments.  Don't dump argument register data to
8263         the target stack.  Fix float and 128-bit long double semantics.
8264         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
8265         (alpha_fix_call_dummy): Remove.
8266         (alpha_call_dummy_words): Remove.
8267         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8268
8269 2003-06-01  Richard Henderson  <rth@redhat.com>
8270
8271         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8272
8273 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8274
8275         * mips-tdep.c (is_mips16_addr): New function.
8276         (make_mips16_addr, unmake_mips16_addr): New functions.
8277         (pc_is_mips16, mips_fetch_instruction): Use.
8278         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8279         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8280         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8281         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8282         TARGET_MIPS.
8283         * config/mips/tm-mips.h: Update copyright.
8284         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8285         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8286         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8287         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8288         (TM_PRINT_INSN_MACH): Delete.
8289         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8290
8291         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8292         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8293         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8294         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8295         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
8296         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
8297         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
8298         mips*-*-riscos* and mips*-*-sysv* onto mips.
8299         * config/mips/mips64.mt: New file.
8300         * config/mips/mips.mt: New file.
8301         * config/mips/littlemips.mt: Delete file.
8302         * config/mips/decstation.mt: Delete file.
8303         * config/mips/vr4300el.mt: Delete file.
8304         * config/mips/vr5000el.mt: Delete file.
8305         * config/mips/vr5000.mt: Delete file.
8306         * config/mips/vr4100.mt: Delete file.
8307         * config/mips/vr4xxxel.mt: Delete file.
8308         * config/mips/vr4300.mt: Delete file.
8309         * config/mips/vr4xxx.mt: Delete file.
8310         * config/mips/bigmips.mt: Delete file.
8311         * config/mips/bigmips64.mt: Delete file.
8312         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8313         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8314         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8315         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8316         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8317         "tm-bigmips.h".
8318         * config/mips/tm-irix3.h: Ditto.
8319         * config/mips/tm-mipsv4.h: Ditto.
8320         * config/mips/tm-embed.h: Ditto.
8321         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8322         "tm-bigmips64.h".
8323         * config/mips/tm-vr5000el.h: Delete file.
8324         * config/mips/tm-tx39l.h: Delete file.
8325         * config/mips/tm-vr4300el.h: Delete file.
8326         * config/mips/tm-vr4xxxel.h: Delete file.
8327         * config/mips/tm-vr4300.h: Delete file.
8328         * config/mips/tm-vr4100.h: Delete file.
8329         * config/mips/tm-vr4xxx.h: Delete file.
8330         * config/mips/tm-vr5000.h: Delete file.
8331         * config/mips/tm-embedl64.h: Delete file.
8332         * config/mips/tm-embedl.h: Delete file.
8333         * config/mips/tm-embed64.h: Delete file.
8334         * config/mips/tm-bigmips64.h: Delete file.
8335         * config/mips/tm-bigmips.h: Delete file.
8336
8337 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8338
8339         Fix gdb/1216.
8340         * shnbsd-nat.c: Include "sh-tdep.h".
8341
8342         From Richard Henderson  <rth@redhat.com>:
8343         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8344
8345 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8346
8347         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
8348         forward declaration.
8349         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8350         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8351         (mips_find_saved_regs): Use set_reg_offset.
8352         (mips_frame_init_saved_regs): Delete function.
8353         (mips_pop_frame): Call mips_find_saved_regs instead of
8354         DEPRECATED_FRAME_INIT_SAVED_REGS.
8355
8356 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8357
8358         * mips-tdep.c (mips_gdbarch_init): Do not set
8359         deprecated_max_register_raw_size, register_virtual_size, and
8360         deprecated_max_register_virtual_size.
8361
8362 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8363
8364         * i386-tdep.c: Include "dwarf2-frame.h".
8365         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8366         * Makefile.in (i386-tdep.o): Update dependencies.
8367
8368         * dwarf2-frame.c, dwarf2-frame.h: New files.
8369         * Makefile.in (SFILES): Add dwarf2-frame.c.
8370         (dwarf2_frame_h): Define.
8371         (COMMON_OBS): Add dwarf2-frame.o.
8372         (dwarf2-frame.o): Add dependencies.
8373
8374 2003-05-31  Andreas Jaeger  <aj@suse.de>
8375
8376         * x86-64-linux-nat.c: Fix comment.
8377
8378 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8379
8380         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8381         function signature.
8382
8383         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8384         have a sigcontext_addr handler.
8385         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8386         sigcontext_addr handler.
8387
8388 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8389
8390         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8391         (print_fp_register_row): Replace do_fp_register_row.
8392         (mips_print_fp_register): Add "file" and "frame" parameters.
8393         (mips_print_register): Add "file" and "frame" parameters.
8394         (mips_print_registers_info): Replace mips_do_registers_info.
8395         (mips_gdbarch_init): Set print_registers_info instead of
8396         deprecated_do_registers_info.
8397         (mips_read_fp_register_single): Add "frame" parameter.
8398         (mips_read_fp_register_double): Add "frame" parameter.
8399
8400 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8401
8402         * i386-tdep.c (i386_register_name): Check for MMX registers first.
8403         Fixes a bug where GDB would print the wrong register names for
8404         targets without SSE.
8405
8406         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8407         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8408         registers.
8409
8410         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8411         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8412         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8413         TDEP->sc_sp_offset.
8414
8415         From Michal Ludvig  <mludvig@suse.cz>:
8416         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8417         and `sc_num_regs'.
8418         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8419         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8420         I386_ST0_REGNUM): Move here from...
8421         * i386-tdep.c: ... here.
8422         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8423         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8424         registers if possible.
8425         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8426         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8427         Remove variables.
8428         (i386bsd_sc_reg_offset): New variable.
8429         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8430         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8431         TDEP->sc_sp_offset.
8432         (i386fbsd_sc_reg_offset): New variable.
8433         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8434         TDEP->sc_num_regs.
8435         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8436         variables.
8437         (i386fbsd4_sc_reg_offset): New variable.
8438         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8439         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8440         TDEP->sc_sp_offset.
8441         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8442         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8443         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8444         Remove variables.
8445         (i386nbsd_sc_reg_offset): New variable.
8446         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8447         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8448         TDEP->sc_sp_offset.
8449         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8450         Remove variables.
8451         (i386obsd_sc_reg_offset): New variable.
8452         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8453         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8454         TDEP->sc_sp_offset.
8455         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8456         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8457         for frame pointer offset in `struct sigcontext'.
8458
8459 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8460
8461         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8462         architecture methods call_dummy_words, sizeof_call_dummy_words,
8463         push_return_address, store_struct_return, and fix_call_dummy.  Set
8464         push_dummy_call instead of deprecated_push_arguments.
8465         (mips_store_struct_return): Delete function.
8466         (mips_fix_call_dummy): Delete function.
8467         (mips_push_return_address): Delete function.
8468         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8469         RA_REGNUM and T9_REGNUM.
8470         (mips_n32n64_push_dummy_call): Ditto for
8471         mips_n32n64_push_arguments.
8472         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8473         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8474
8475 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8476
8477         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8478         "dummy_addr" to "bp_addr".
8479         * infcall.c (call_function_by_hand): Pass "funaddr" to
8480         gdbarch_push_dummy_call.
8481         * gdbarch.h, gdbarch.c: Re-generate.
8482         * i386-tdep.c (i386_push_dummy_call): Update.
8483         * arm-tdep.c (arm_push_dummy_call): Update.
8484         * d10v-tdep.c (d10v_push_dummy_call): Update.
8485
8486 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8487
8488         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8489         variable declarations.
8490         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8491         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8492         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8493         x86_64_init_frame_pc, x86_64_init_frame_pc,
8494         x86_64_function_has_prologue): Remove prototypes.
8495         (X86_64_NUM_GREGS): New define.
8496         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8497         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8498         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8499         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8500         XMM1_REGNUM): Remove defines.
8501         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8502         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8503         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8504         X86_64_XMM1_REGNUM): New defines.
8505         (struct x86_64_register_info): Renamed from `struct
8506         register_info'.  Remove `size' member.
8507         (x86_64_register_info_table): Remove variable.
8508         (x86_64_register_info): New variable.
8509         (X86_64_NUM_REGS): New define.
8510         (X86_64_NUM_GREGS): Remove define.
8511         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8512         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8513         Remove variables.
8514         (x86_54_dwarf2_reg_to_regnum): Remove function.
8515         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8516         (x86_64_dwarf_reg_to_regnum): New function.
8517         (x86_64_register_name): Rewrite.
8518         (x86_64_register_raw_size): Remove function.
8519         (x86_64_register_byte_table): Remove variable.
8520         (x86_64_register_byte): Remove function.
8521         (x86_64_register_virtual_type): Remove function.
8522         (x86_64_register_type): New function.
8523         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8524         x86_64_register_convert_to_raw): Remove functions.
8525         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8526         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8527         defines.
8528         (x86_64_frame_init_saved_regs): Remove function.
8529         (x86_64_push_arguments): Make static.  Change to accept a regcache
8530         as argument.
8531         (x86_64_store_return_value, x86_64_extract_return_value): Make
8532         static.  Rewrite based on i386 counterparts.
8533         (x86_64_push_dummy_call): New function.
8534         (X86_64_NUM_SAVED_REGS): New define.
8535         (x86_64_register_number): Remove function.
8536         (x86_64_store_struct_return): Remove function.
8537         (x86_64_frameless_function_invocation,
8538         x86_64_function_has_prologue): Remove functions.
8539         (PROLOG_BUFSIZE): Remove define.
8540         (struct x86_64_frame_cache): New structure.
8541         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8542         x86_64_frame_cache, x86_64_frame_this_id,
8543         x86_64_frame_prev_register, x86_64_frame_p,
8544         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8545         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8546         functions.
8547         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8548         variables.
8549         (x86_64_skip_prologue): Rewrite in terms of
8550         x86_64_analyze_prologue.
8551         (x86_64_frame_base_address): New function.
8552         (x86_64_frame_base): New variable.
8553         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8554         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8555         set deprecated_fp_regnum, deprecated_register_size,
8556         deprecated_register_bytes, register_raw_size, register_byte,
8557         register_virtual_type, register_convertiable,
8558         register_convert_to_virtual, convert_to_raw,
8559         deprecated_get_saved_register, deprecated_target_read_fp,
8560         deprecated_push_arguments, deprecated_push_return_address,
8561         deprecated_pop_frame, deprecated_store_struct_return,
8562         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8563         frameless_function_invocation, deprecated_frame_saved_pc,
8564         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8565         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8566         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8567         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8568         and x86_64_frame_p.  Call frame_base_set_default to register
8569         x86_64_frame_base.
8570         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8571         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8572         (_initialize_x86_64_tdep): Remove function.
8573         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8574         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8575         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8576         define.
8577         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8578         (x86_64_linux_sigcontext_addr): Rewrite.
8579         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8580         x86_64_linux_frame_saved_pc): Remove functions.
8581         (x86_64_linux_pc_in_sigtramp): Renamed from
8582         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8583         trampoline.
8584         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8585         Remove_functions.
8586         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8587         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8588         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8589         (x86_64_regmap): Rename to regmap.
8590         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8591         x86_64_num_gregs.
8592         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8593         x86_64_regmap.
8594         (x86_64_fxsave_offset): Remove function.
8595         (supply_fpregset): Simply call x86_64_supply_fxsave.
8596         (fill_fpregset): Simply call x86_64_fill_fxsave.
8597         (fetch_inferior_registers, store_inferior_registers): Avoid
8598         asignment in if-statement.
8599         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8600         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8601         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8602         (fetch_core_registers): Remove function.
8603         (linux_elf_core_fns): Remove.
8604         (offsetoff): Don't define.
8605         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8606         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8607         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8608         add core-regset.o.
8609         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8610         protection against multiple includes instead of NM_X86_64_h.  Add
8611         various comments.  Include "config/nm-linux.h".  Don't include
8612         <signal.h>.
8613         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8614         GET_THREAD_SIGNALS): Remove defines.
8615         (x86_64_register_u_addr, kernel_u_size,
8616         lin_thread_get_thread_signals): Remove prototypes.
8617         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8618         [HAVE_LINK_H]: Don't include "solib.h".
8619         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8620         * config/i386/tm-x86-64linux.h: Fix comments.
8621         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8622         x86-64-tdep.o): Update dependencies.
8623
8624 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8625
8626         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8627         Change parameter type to a "struct regcache *".
8628
8629         * gdbarch.sh: Regardless of the multi-arch level, always define
8630         the macro when not already defined.
8631         * gdbarch.h, gdbarch.c: Re-generate.
8632
8633 2003-05-30  Richard Henderson  <rth@redhat.com>
8634
8635         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8636         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8637         (alpha_mdebug_frame_this_id): Likewise.
8638         (alpha_mdebug_frame_prev_register): Likewise.
8639         (alpha_mdebug_frame_base_address): Likewise.
8640         (alpha_mdebug_frame_locals_address): Likewise.
8641         (alpha_mdebug_frame_args_address): Likewise.
8642         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8643         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8644         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8645         loop increment.
8646         (alpha_heuristic_frame_this_id): Make static.
8647         (alpha_heuristic_frame_prev_register): Likewise.
8648         (alpha_heuristic_frame_base_address): Likewise.
8649         * alpha-tdep.h: Update.
8650
8651 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8652
8653         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8654         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8655         defenitions.
8656         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8657         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8658         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8659         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8660         I386_ST0_REGNUM): New defines.
8661         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8662         codestream_get): Remove define.
8663         (codestream_next_addr, condestream_addr, condestream_buf,
8664         codestream_off, codestream_cnt): Remove variables.
8665         (codestream_fill, codestream_seek, codestream_read): Remove
8666         functions.
8667         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8668         functionality.
8669         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8670         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8671         i386_frame_saved_pc, i386_saved_pc_after_call,
8672         i386_frame_num_args, i386_frame_init_saved_regs,
8673         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8674         i386_push_arguments): Remove functions.
8675         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8676         functionality.  Use i386_analyze_prologue instead of
8677         i386_get_frame_setup.
8678         (I386_NUM_SAVED_REGS): New define.
8679         (struct i386_frame_cache): New structure.
8680         (i386_alloc_frame_cache, i386_analyze_struct_return,
8681         i386_skip_probe, i386_analyze_frame_setup,
8682         i386_analyze_register_saves, i386_analyze_prologue,
8683         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8684         i386_frame_prev_register, i386_sigtramp_frame_cache,
8685         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8686         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8687         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8688         New functions.
8689         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8690         New variables.
8691         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8692         I386_EAX_REGNUM and I386_EDX_REGNUM.
8693         (i386_extract_return_value, i386_store_return_value): Use
8694         I386_ST0_REGNUM where appropriate.
8695         (i386_extract_struct_value_address): Rewrite to use extract_address.
8696         (i386_svr4_pc_in_sigtramp): Add comment.
8697         (i386_svr4_sigcontext_addr): Rewrite.
8698         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8699         TDEP->sc_sp_offset.
8700         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8701         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8702         of new defines.  Set push_dummy_call, don't set
8703         deprecated_push_arguments, deprecated_push_return_address,
8704         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8705         deprecated_frame_chain, deprecated_frame_saved_pc,
8706         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8707         save_dummy_frame_tos, unwind_pc.  Call
8708         frame_unwind_append_predicate and frame_base_set_default.  Don't
8709         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8710         Don't set frameless_function_invocation.  Don't set
8711         deprecated_register_bytes, deprecated_register_size,
8712         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8713         * i386-linux-tdep.c: Fix formatting in some comments.
8714         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8715         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8716         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8717         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8718         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8719         redundant parentheses.
8720         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8721         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8722         (find_minsym_and_objfile): Change name of second argument.
8723         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8724         changed.  Use frame_pc_unwind instead of
8725         DEPRECATED_SAVED_PC_AFTER_CALL.
8726         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8727         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8728         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8729         unwinder.
8730         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8731         "dummy-frame.h".
8732         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8733         (_initialize_i386_cygwin_tdep): New prototype.
8734         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8735         deprecated_frame_chain_valid.
8736         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8737         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8738         Rely on the SVR4 defaults.
8739         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8740         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8741
8742 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8743
8744         * infcall.c (call_function_by_hand): Always call
8745         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8746
8747 2003-05-30  Richard Henderson  <rth@redhat.com>
8748
8749         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8750         increment.
8751
8752 2003-05-29  Jim Blandy  <jimb@redhat.com>
8753
8754         Use gdbarch methods for solib stuff on PowerPC Linux.
8755         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8756         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8757         show through.
8758         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8759         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8760         giving the same effect as the #definitions above.
8761
8762 2003-05-29  Adam Fedor  <fedor@gnu.org>
8763
8764         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8765         (find_implementation_from_class): Replace it with the standard
8766         case i.e. do nothing.
8767
8768 2003-05-29  Richard Henderson  <rth@redhat.com>
8769
8770         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8771         (alpha_linux_sigtramp_offset): Use it.  Make static.
8772         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8773         update for new frame model.
8774         * alpha-mdebug-tdep.c: New file.
8775         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8776         (alpha_osf1_init_abi): Install it.
8777         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8778         (linked_proc_desc_table): Remove.
8779         (alpha_frame_past_sigtramp_frame): Remove.
8780         (alpha_dynamic_sigtramp_offset): Remove.
8781         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8782         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8783         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8784         (push_sigtramp_desc): Remove.
8785         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8786         (alpha_cannot_store_register): Likewise.
8787         (alpha_sigcontext_addr): Remove.
8788         (alpha_find_saved_regs): Remove.
8789         (alpha_frame_init_saved_regs): Remove.
8790         (alpha_init_frame_pc_first): Remove.
8791         (read_next_frame_reg): Remove.
8792         (alpha_frame_saved_pc): Remove.
8793         (alpha_saved_pc_after_call): Remove.
8794         (temp_proc_desc, temp_saved_regs): Remove.
8795         (alpha_about_to_return): Remove.
8796         (cached_proc_desc): Remove.
8797         (alpha_frame_chain): Remove.
8798         (alpha_print_extra_frame_info): Remove.
8799         (alpha_init_extra_frame_info): Remove.
8800         (alpha_frame_locals_address): Remove.
8801         (alpha_frame_args_address): Remove.
8802         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8803         (alpha_push_dummy_frame): Remove.
8804         (alpha_pop_frame): Remove.
8805         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8806         (alpha_read_insn): New.
8807         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8808         for different insn encodings.
8809         (alpha_in_lenient_prologue): Remove.
8810         (struct alpha_sigtramp_unwind_cache): New.
8811         (alpha_sigtramp_frame_unwind_cache): New.
8812         (alpha_sigtramp_register_address): New.
8813         (alpha_sigtramp_frame_this_id): New.
8814         (alpha_sigtramp_frame_prev_register): New.
8815         (alpha_sigtramp_frame_unwind): New.
8816         (alpha_sigtramp_frame_p): New.
8817         (struct alpha_heuristic_unwind_cache): New.
8818         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8819         don't count nop insns that occur between functions.
8820         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8821         heuristic_proc_desc, but without the mdebug wrapping.
8822         (alpha_heuristic_frame_this_id): New.
8823         (alpha_heuristic_frame_prev_register): New.
8824         (alpha_heuristic_frame_unwind): New.
8825         (alpha_heuristic_frame_p): New.
8826         (alpha_heuristic_frame_base_address): New.
8827         (alpha_heuristic_frame_base): New.
8828         (alpha_unwind_dummy_id): New.
8829         (alpha_unwind_pc): New.
8830         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8831         frame related deprecated initializations; install replacements.
8832         (alpha_dump_tdep): Remove.
8833         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8834         (alpha_read_insn, alpha_after_prologue,
8835         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8836         alpha_heuristic_frame_prev_register,
8837         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8838         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8839         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8840         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8841
8842 2003-05-29  Andrew Cagney  <cagney@redhat.com>
8843
8844         * gdb_assert.h (gdb_assert_fail): Provide different definitions
8845         dependant on the availability of ASSERT_FUNCTION.
8846         (ASSERT_FUNCTION): Do not define when there is no function name.
8847
8848 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
8849
8850         From Jimi X <jimix@watson.ibm.com>:
8851         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8852
8853 2003-05-28  Jim Blandy  <jimb@redhat.com>
8854
8855         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8856         argument to ptrace to int; the system headers should give it the
8857         right type, and pointers don't fit in ints on powerpc64-*-*.
8858
8859 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
8860
8861         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8862         DW_TAG_catch_block.
8863
8864 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8865
8866         * stabsread.c (dbx_lookup_type): Make static.
8867         (read_type): Ditto.
8868         (add_undefined_type): Ditto.
8869         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8870         not export.
8871
8872 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
8873
8874         * hpread.c (hpread_has_name): Make static.
8875         (hpread_psymtab_to_symtab): Ditto.
8876         (file_exists): Ditto.
8877         (hpread_call_pxdb): Ditto.
8878         (hpread_pxdb_needed): Ditto.
8879         (hpread_quick_traverse): Ditto.
8880         (hpread_get_header): Ditto.
8881         (hpread_get_lntt): Ditto.
8882         (hpread_get_slt): Ditto.
8883         (class_of): Ditto.
8884
8885 2003-05-25  Andreas Schwab  <schwab@suse.de>
8886
8887         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8888         stack_align and deprecated_extra_stack_alignment_needed.
8889         (m68k_stack_align): Delete.
8890
8891         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8892         (m68k_register_virtual_size): Likewise.
8893         (altos_skip_prologue): Remove obsolete function.
8894         (isi_frame_num_args): Likewise.
8895         (news_frame_num_args): Likewise.
8896         (m68k_fix_call_dummy): Make static.
8897         (m68k_push_dummy_frame): Likewise.
8898         (m68k_pop_frame): Likewise.
8899         (m68k_skip_prologue): Likewise.
8900         (m68k_frame_init_saved_regs): Likewise.
8901         (m68k_saved_pc_after_call): Likewise.
8902         (m68k_get_longjmp_target): Make multi-arch.
8903         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8904         structure.  Register m68k_get_longjmp_target if enabled.
8905         * m68k-tdep.h (struct gdbarch_tdep): Define.
8906         * config/m68k/tm-m68k.h: Don't include "regcache.h".
8907
8908         * Makefile.in (config.status): Also depend on configure.tgt
8909         and configure.host.
8910         (m68klinux-tdep.o): Update dependencies.
8911         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8912         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8913         (M68K_LINUX_JB_PC): Define.
8914         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8915         and take additional parameter.
8916         (m68k_linux_sigtramp_saved_pc): Update.
8917         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
8918         m68k_linux_pc_in_sigtramp, in_plt_section,
8919         find_solib_trampoline_target.
8920         * config/m68k/tm-linux.h: Don't include any tm headers.
8921         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8922         (JB_ELEMENT_SIZE): Likewise.
8923         (JB_PC): Likewise.
8924         (GET_LONGJMP_TARGET): Likewise.
8925         (IN_SIGTRAMP): Likewise.
8926         (SVR4_SHARED_LIBS): Define this and include "solib.h".
8927
8928 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8929
8930         * sparc-tdep.c (sparc32_do_push_arguments): New function.
8931         (sparc32_push_arguments): Re-implement by calling
8932         sparc32_do_push_arguments.
8933
8934 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
8935
8936         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8937         SPARC_O1_REGNUM): New defines.
8938         (sparc32_extract_return_value): Rewrite to operate on a regcache.
8939         (sparc32_store_return_value): New function.
8940         (sparc_extract_struct_value_address): Rewrite to operate on a
8941         regcache.
8942         (sparc_gdbarch_init): Don't set
8943         deprecated_extract_struct_value_address.  Set
8944         extract_struct_value_address instead. Don't set
8945         deprecated_extract_return_value and deprecated_store_return_value
8946         for 32-bit targets.  Set extract_return_value and
8947         store_return_value instead.
8948         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
8949         DEPRECATED_EXTRACT_RETURN_VALUE,
8950         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8951         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8952         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8953         (sparc_store_return_value): Remove prototype.
8954         (sparc32_store_return_value): New prototype.
8955         (sparc32_extract_return_value, sparc_extract_struct_value_address):
8956         Adjust prototypes.
8957
8958 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
8959
8960         * sparcnbsd-tdep.c: Include "gdb_string.h".
8961
8962 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8963
8964         * p-valprint.c (pascal_val_print): Replace extract_address with
8965         the inline equivalent extract_unsigned_integer.
8966         * jv-valprint.c (java_value_print): Ditto.
8967         * ada-valprint.c (ada_val_print_1): Ditto.
8968         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8969
8970 2003-05-23  Theodore A. Roth  <troth@openavr.org>
8971
8972         * blockframe.c (frameless_look_for_prologue): Remove unused
8973         after_prologue variable.
8974
8975 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
8976
8977         * blockframe.c (get_pc_function_start): Rewrite to avoid
8978         asignments in if-statements.
8979
8980 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
8981
8982         Committed by Elena Zannoni  <ezannoni@redhat.com>.
8983         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8984         files, don't relocate absolute symbols (and do use mst_abs).
8985
8986 2003-05-23  Andrew Cagney  <cagney@redhat.com>
8987
8988         * objc-lang.c: Include "gdb_assert.h".
8989         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8990         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8991         (gdb_check, gdb_check_fatal): Delete functions.
8992         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8993         gdb_assert.
8994         (parse_selector, parse_method, find_methods, find_imps): Ditto.
8995         * Makefile.in (objc-lang.o): Update dependencies.
8996
8997 2003-05-22  Ian Lance Taylor  <ian@airs.com>
8998
8999         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9000         with fprintf_filtered, not fprintf_unfiltered.
9001
9002 2003-05-22  Andrew Cagney  <cagney@redhat.com>
9003
9004         * stack.c (frame_info): Inline extract_address, replacing it with
9005         extract_unsigned_integer.
9006         * findvar.c (unsigned_pointer_to_address): Ditto.
9007         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9008         * dwarf2expr.c (dwarf2_read_address): Ditto.
9009         * frame.c (frame_pc_unwind): Update comment.
9010         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9011
9012 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
9013
9014         * infptrace.c (detach): Call print_sys_errmsg rather than
9015         perror_with_name to issue warning message when errno is non-zero
9016         after calling ptrace detach.
9017
9018 2003-05-21  J. Brobecker  <brobecker@gnat.com>
9019
9020         * config/pa/tm-hppa.h: Delete some unused macros. Move some
9021         macro definitions from here...
9022         * hppa-tdep.c: ...to there.
9023
9024 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
9025
9026         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9027         register_ptrace_addr().  Fix all callers.
9028
9029 2003-05-21  Andreas Schwab  <schwab@suse.de>
9030
9031         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9032         dependencies.
9033         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9034         end.
9035         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9036         (_initialize_m68k_linux_tdep): New function.
9037         (m68k_linux_frame_saved_pc): Make static.
9038         (m68k_linux_extract_return_value): Likewise.
9039         (m68k_linux_store_return_value): Likewise.
9040         (m68k_linux_extract_struct_value_address): Likewise.
9041         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9042         Remove.
9043         (DEPRECATED_STORE_RETURN_VALUE): Remove.
9044         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9045         (DEPRECATED_FRAME_SAVED_PC): Remove.
9046
9047 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
9048
9049         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9050         regset numbering rather than our own.
9051
9052 2003-05-19  David Carlton  <carlton@bactrian.org>
9053
9054         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9055
9056 2003-05-19  David Carlton  <carlton@bactrian.org>
9057
9058         Partial fix for PR c++/827.
9059         * cp-support.h: Include symtab.h.
9060         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9061         * cp-namespace.c: Update contributors.
9062         (cp_lookup_symbol_nonlocal): New.
9063         (lookup_namespace_scope, cp_lookup_symbol_namespace)
9064         (lookup_symbol_file): Ditto.
9065         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9066         * block.h: Declare block_scope, block_using, block_global_block.
9067         * block.c (block_scope): New.
9068         (block_using, block_global_block): Ditto.
9069         * Makefile.in (cp_support_h): Depend on symtab_h.
9070         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9071
9072 2003-05-19  David Carlton  <carlton@bactrian.org>
9073
9074         * language.h (struct language_defn): Add 'la_value_of_this'
9075         and 'la_lookup_symbol_nonlocal' members.
9076         * symtab.h: Declare basic_lookup_symbol_nonlocal,
9077         lookup_symbol_static, lookup_symbol_global,
9078         lookup_symbol_aux_block.
9079         * symtab.c (lookup_symbol_aux): Call language hooks to determine
9080         if we should search fields of this and how to do static/global
9081         lookup.
9082         (lookup_symbol_aux_block): Make extern.
9083         (basic_lookup_symbol_nonlocal): New.
9084         (lookup_symbol_static, lookup_symbol_global): Ditto.
9085         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9086         'la_lookup_symbol_nonlocal' members.
9087         * c-lang.c (c_language_defn, cplus_language_defn)
9088         (asm_language_defn, minimal_language_defn): Ditto.
9089         * jv-lang.c (java_language_defn): Ditto.
9090         * language.c (unknown_language_defn, auto_language_defn)
9091         (local_language_defn): Ditto.
9092         * m2-lang.c (m2_language_defn): Ditto.
9093         * objc-lang.c (objc_language_defn): Ditto.
9094         * scm-lang.c (scm_language_defn): Ditto.
9095         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9096         * p-lang.c (pascal_language_defn): Ditto for both.
9097         * Makefile.in (f-lang.o): Depend on value_h.
9098         (p-lang.o): Ditto.
9099
9100 2003-05-19  David Carlton  <carlton@bactrian.org>
9101
9102         * block.h: Declare block_static_block.
9103         * block.c (block_static_block): New.
9104         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9105         lookup_symbol_aux_local, calling block_static_block instead.
9106         (lookup_symbol_aux_local): Delete 'static_block' argument.
9107
9108 2003-05-19  David Carlton  <carlton@bactrian.org>
9109
9110         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9111
9112 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
9113
9114         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9115         register numbers mapping.
9116
9117 2003-05-18  Adam Fedor  <fedor@gnu.org>
9118
9119         * symtab.c (completion_list_objc_symbol): New function.
9120         (make_symbol_completion_list): Use it to add ObjC symbols
9121         when looking though the list.
9122         (language_search_unquoted_string): New function.
9123         (make_file_symbol_completion_list): Use it.
9124
9125 2003-05-18  Andreas Schwab  <schwab@suse.de>
9126
9127         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9128         dependencies.
9129         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9130         as m68k_linux_extract_return_value.
9131         (DEPRECATED_STORE_RETURN_VALUE): Define as
9132         m68k_linux_store_return_value.
9133         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9134         m68k_linux_extract_struct_value_address.
9135         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9136         get_next_frame, get_frame_base, get_frame_pc.
9137         (m68k_linux_frame_saved_pc): Use get_frame_base.
9138         (m68k_linux_extract_return_value): New function.
9139         (m68k_linux_store_return_value): New function.
9140         (m68k_linux_extract_struct_value_address): New function.
9141         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9142
9143         * c-exp.y (typebase): Remove duplicate occurence of
9144         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
9145         of lookup_signed_typename.
9146
9147 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
9148
9149         * dwarf2loc.c (find_location_expression): Change type of second
9150         argument to `size_t *'.
9151         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9152         for size variable.
9153
9154 2003-05-18  David Carlton  <carlton@bactrian.org>
9155
9156         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9157         'linkage_name'.  Add comment.
9158         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9159         'linkage_name'.
9160         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9161         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9162         (lookup_block_symbol): Ditto.
9163
9164 2003-05-16  Andrew Cagney  <cagney@redhat.com>
9165
9166         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9167         * gdbarch.h, gdbarch.c: Re-generate.
9168         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9169         * TODO (REGISTER_BYTES): Delete reference.
9170         * alpha-tdep.c (alpha_gdbarch_init): Update.
9171         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9172         * x86-64-tdep.c (x86_64_init_abi): Update.
9173         * vax-tdep.c (vax_gdbarch_init): Update.
9174         * v850-tdep.c (v850_gdbarch_init): Update.
9175         * sparc-tdep.c (sparc_gdbarch_init): Update.
9176         * sh-tdep.c (sh_gdbarch_init): Update.
9177         * s390-tdep.c (s390_gdbarch_init): Update.
9178         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9179         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9180         (ns32k_gdbarch_init_32382): Update.
9181         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9182         * mcore-tdep.c (mcore_gdbarch_init): Update.
9183         * m68k-tdep.c (m68k_gdbarch_init): Update.
9184         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9185         * ia64-tdep.c (ia64_gdbarch_init): Update.
9186         * i386-tdep.c (i386_gdbarch_init): Update.
9187         * i386-linux-tdep.c (i386_linux_init_abi): Update.
9188         * hppa-tdep.c (hppa_gdbarch_init): Update.
9189         * h8300-tdep.c (h8300_gdbarch_init): Update.
9190         * frv-tdep.c (frv_gdbarch_init): Update.
9191         * cris-tdep.c (cris_gdbarch_init): Update.
9192         * avr-tdep.c (avr_gdbarch_init): Update.
9193         * arm-tdep.c (arm_gdbarch_init): Update.
9194         * sparc-tdep.c (sparc_pop_frame): Update.
9195         * rs6000-tdep.c (rs6000_pop_frame): Update.
9196         * remote.c (init_remote_state): Update.
9197         (remote_prepare_to_store): Update.
9198         * remote-vx.c (vx_prepare_to_store): Update.
9199         * remote-sds.c (sds_fetch_registers): Update.
9200         (sds_prepare_to_store): Update.
9201         * remote-array.c: Update.
9202         * regcache.c (init_legacy_regcache_descr): Update.
9203         (init_regcache_descr): Update.
9204         * mips-tdep.c (mips_eabi_extract_return_value): Update.
9205         (mips_o64_extract_return_value): Update.
9206         * irix5-nat.c (fetch_core_registers): Update.
9207         * irix4-nat.c (fetch_core_registers): Update.
9208         * i386-tdep.h: Update.
9209         * hppa-tdep.c (pa_do_registers_info): Update.
9210         (pa_do_strcat_registers_info): Update.
9211         * cris-tdep.c (cris_register_bytes_ok): Update.
9212         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9213         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9214         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9215         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9216         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9217         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9218         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9219         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9220         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9221         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9222         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9223         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9224         (REGISTER_BYTES_OK): Update.
9225         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9226         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9227
9228 2003-05-16  Ian Lance Taylor  <ian@airs.com>
9229
9230         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9231         (vax_print_insn, print_insn_arg): Remove static functions.
9232         (vax_gdbarch_init): Call set_gdbarch_print_insn with
9233         print_insn_vax from opcodes library.
9234         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9235
9236 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9237
9238         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9239         * target.h (memory_breakpoint_from_pc): Delete declaration.
9240         * mem-break.c (memory_breakpoint_from_pc): Delete function.
9241         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9242         * monitor.c (monitor_insert_breakpoint): Use
9243         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9244         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9245         * gdbarch.h, gdbarch.c: Re-generate.
9246         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9247         (sparc_gdbarch_init): Set breakpoint_from_pc to
9248         sparc_breakpoint_from_pc.
9249         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9250         (BREAKPOINT_FROM_PC): Define.
9251         (sparc_breakpoint_from_pc): Declare.
9252         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9253         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9254         (BREAKPOINT_FROM_PC): Define.
9255         (BREAKPOINT): Delete macro.
9256         * target.h: Update comment.
9257         * s390-tdep.c (s390_gdbarch_init): Update comments.
9258         * remote.c: Update comments.
9259         * remote-mips.c: Update comments.
9260         * proc-api.c (write_with_trace): Do not check for a breakpoint.
9261         * mem-break.c: Update comment.
9262         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9263         (ia64_memory_insert_breakpoint): Update.
9264         * config/sparc/tm-sparc.h: Update comment.
9265         * config/pa/tm-hppa64.h: Update comment.
9266         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9267         (rs6000_breakpoint_from_pc): Update.
9268         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9269         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9270         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9271         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9272         (mips_breakpoint_from_pc): Update.
9273         (mips_dump_tdep): Update.
9274
9275         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9276         * minsyms.c (lookup_minimal_symbol): Inline
9277         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
9278
9279         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9280         * p-valprint.c (pascal_object_print_value_fields): Ditto.
9281         * p-lang.c (pascal_printstr): Ditto.
9282         * objc-lang.c (objc_printstr): Ditto.
9283         * m2-lang.c (m2_printstr): Ditto.
9284         * jv-valprint.c (java_print_value_fields): Ditto.
9285         * f-lang.c (f_printstr): Ditto.
9286         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
9287         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9288         for repeat_count_threshold.
9289         * Makefile.in (cp-valprint.o): Update dependencies.
9290
9291 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
9292
9293         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9294         (examine_prologue): Support looking through leaf functions, knowing
9295         they start with mov r2,r12.  Support skipping over indirect stores
9296         of the input registers.  Upon hitting a non-nop branch instruction
9297         or predicated instruction, bail out by setting lim_pc to the current
9298         pc value in the loop.  At the end, if the lim_pc value is still
9299         beyond our calculated value and we have trust_limit set,
9300         use the lim_pc value.
9301
9302 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9303
9304         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9305         generic_find_dummy_frame.
9306         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9307         (deprecated_generic_find_dummy_frame): Update.
9308         (deprecated_read_register_dummy): Update.
9309         * frame.c (deprecated_generic_get_saved_register): Update.
9310
9311 2003-05-15  Theodore A. Roth  <troth@openavr.org>
9312
9313         * avr-tdep.c (avr_breakpoint_from_pc): New function.
9314         (avr_gdbarch_init): Set breakpoint_from_pc method.
9315
9316 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9317
9318         * regcache.c (build_regcache): Set deprecated_register_valid
9319         directly.
9320         (deprecated_grub_regcache_for_register_valid): Delete function.
9321         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9322         declaration.
9323
9324 2003-05-15  David Carlton  <carlton@bactrian.org>
9325
9326         Committed by Elena Zannoni <ezannoni@redhat.com>
9327         * symtab.c (lookup_symbol_aux): Delete calls to
9328         lookup_symbol_aux_minsyms.
9329         (lookup_symbol_aux_minsyms): Comment out function and
9330         prototype. Delete lookup by mangled name.
9331
9332 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
9333
9334         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9335         correctly indicate an empty stack and ``stack_allocated'' to the
9336         indicate the number of elements initially allocated.
9337         (dwarf_expr_grow_stack): Simplify method for computing new
9338         stack size.  Don't loop infinitely if ``stack_len'' is zero.
9339         (execute_stack_op): Move ``ctx->in_reg'' initialization
9340         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9341         be used in conjuction with DW_OP_piece.  Revise error message
9342         accordingly.
9343
9344 2003-05-14  Theodore A. Roth  <troth@openavr.org>
9345
9346         * MAINTAINERS: Update my email address.
9347         * avr-tdep.c: Ditto.
9348
9349 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
9350
9351         * symtab.h (enum domain_enum): Rename from namespace_enum.
9352         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9353         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9354         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9355         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9356         TYPES_NAMESPACE, METHODS_NAMESPACE.
9357         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9358         (struct symbol, struct partial_symbol): Rename field
9359         'namespace_enum namespace' to 'domain_enum domain'.
9360         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9361         Delete old define kludge for namespace.
9362
9363         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9364         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9365         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9366         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9367         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9368         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9369         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9370         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9371         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9372         occurrences of the above.
9373
9374 2003-05-14  Ian Lance Taylor  <ian@airs.com>
9375
9376         * Makefile.in (install-only): Use $(SHELL) when running
9377         mkinstalldirs.
9378
9379 2003-05-13  Ian Lance Taylor  <ian@airs.com>
9380
9381         * MAINTAINERS (write after approval): Add myself.
9382
9383         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9384         second and third arguments.
9385         * ser-tcp.c (_initialize_ser_tcp): Likewise.
9386         * ser-unix.c (_initialize_ser_hardwire): Likewise.
9387
9388 2003-05-13  Andrew Cagney  <cagney@redhat.com>
9389
9390         * defs.h (store_address): Delete declaration.
9391         findvar.c (store_address): Delete function.
9392         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9393         store_unsigned_integer.
9394         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9395         * v850-tdep.c (v850_push_arguments): Ditto.
9396         * sparc-tdep.c (sparc_get_saved_register): Ditto.
9397         * sh-tdep.c (sh64_get_saved_register): Ditto.
9398         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9399         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9400         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9401         (mips_get_saved_register): Ditto.
9402         * ia64-tdep.c (ia64_get_saved_register): Ditto.
9403         (find_func_descr, ia64_push_arguments): Ditto.
9404         * i386-tdep.c (i386_push_arguments): Ditto.
9405         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9406         * frv-tdep.c (frv_push_arguments): Ditto.
9407         * frame.c (legacy_saved_regs_prev_register): Ditto.
9408         (deprecated_generic_get_saved_register): Ditto.
9409         * findvar.c (unsigned_address_to_pointer): Ditto.
9410         * dwarf2read.c (dwarf2_const_value): Ditto.
9411         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9412         * alpha-tdep.c (alpha_push_arguments): Ditto.
9413
9414 2003-05-12  J. Brobecker  <brobecker@gnat.com>
9415
9416         * NEWS: Mention that the hppa-hpux port has been partially
9417         multiarched (32bit ABIT only, so far).
9418
9419 2003-05-11  Andrew Cagney  <cagney@redhat.com>
9420
9421         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9422         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9423         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9424         sim/testsuite/sim/arm/misaligned2.ms, and
9425         sim/testsuite/sim/arm/misaligned3.ms.
9426         * disasm.h (struct ui_file): Add opaque struct declaration.
9427         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9428         * frame.h (struct ui_file): Ditto.
9429
9430 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
9431
9432         * value.h: Pretty print.
9433
9434 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
9435
9436         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9437
9438 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9439
9440         * regcache.h (max_register_size): Delete declaration.
9441         * regcache.c (max_register_size): Delete function.
9442         (struct regcache_descr): Delete field "max_register_size".
9443         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9444         registers fit in MAX_REGISTER_SIZE.
9445         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9446         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9447         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9448         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9449         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9450         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9451         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9452         * dve3900-rom.c, hppa-tdep.c: Ditto.
9453
9454 2003-05-08  David Carlton  <carlton@math.stanford.edu>
9455
9456         * valops.c (push_word): Fix typo.
9457
9458 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9459
9460         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9461         * gdbarch.h: Re-generate.
9462         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9463         (legacy_max_register_raw_size): Delete declaration.
9464         * regcache.c (legacy_max_register_raw_size): Delete function.
9465         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9466         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9467         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9468         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9469         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9470         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9471         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9472         * findvar.c, dwarf2cfi.c: Ditto.
9473
9474 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9475
9476         * mips-tdep.c (read_signed_register): New function, moved to here
9477         from "regcache.c".
9478         (read_signed_register_pid): Ditto.
9479         * regcache.c (read_signed_register_pid): Delete function, moved to
9480         "mips-tdep.c".
9481         (read_signed_register): Ditto.
9482         * regcache.h (read_signed_register): Delete declaration.
9483         (read_signed_register_pid): Delete declaration.
9484
9485 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9486
9487         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9488         * gdbarch.h: Re-generate.
9489         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9490         (legacy_max_register_virtual_size): Delete declaration.
9491         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9492         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9493         * tracepoint.c (memrange_sortmerge): Ditto.
9494         * sparc-tdep.c (sparc_print_registers): Ditto.
9495         * regcache.c (legacy_max_register_virtual_size): Delete function.
9496
9497 2002-05-08  J. Brobecker  <brobecker@gnat.com>
9498
9499         * fork-child.c (escape_bang_in_quoted_argument): New function.
9500         (fork_inferior): Escape '!' characters in quoted arguments
9501         only when needed.
9502
9503 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9504
9505         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9506         the language of the CU is not currently supported by GDB.
9507
9508 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9509
9510         * defs.h (language): Add language_minimal enum value.
9511         * c-lang.c (minimal_language_defn): New language definition.
9512         (_initialize_c_language): Add the new minimal language to the list
9513         of languages known to GDB.
9514
9515 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
9516
9517         * frame.c (get_frame_type): Don't attempt to lazily initialize
9518         frame's unwinder for legacy frames.
9519
9520 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9521
9522         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9523         and "regcache" parameters.
9524         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9525
9526 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9527
9528         * dwarf2read.c (dwarf_decode_lines): Only use output of
9529         check_cu_functions() when calling record_line().  Do not update
9530         the current address.
9531
9532 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9533
9534         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9535         code.
9536
9537 2003-05-07  Jim Blandy  <jimb@redhat.com>
9538
9539         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9540         'maint info symtabs' and 'maint info psymtabs'.
9541         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9542         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9543         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9544         Declarations updated.
9545         * maint.c (maintenance_list_command): Delete.
9546         (_initialize_maint_cmds): Update calls to add_cmd.
9547         * gdbcmd.h (maintenancelistlist): Delete declaration.
9548         * cli/cli-cmds.c (maintenancelistlist): Delete.
9549         (init_cmd_lists): Don't initialize it.
9550         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9551
9552 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9553
9554         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9555         "regcache".
9556         (d10v_print_registers_info): Update.
9557         (d10v_dmap_register, d10v_imap_register): Delete functions.
9558         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9559         and "imap_register".
9560         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9561         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9562         * arch-utils.c (generic_remote_translate_xfer_address): Add
9563         "regcache" and "gdbarch" parameters.
9564         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9565         parameter.  Change class to multi-arch.
9566         * gdbarch.h, gdbarch.c: Re-generate.
9567         * remote.c (remote_xfer_memory): Use
9568         gdbarch_remote_translate_xfer_address.
9569
9570 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9571
9572         * infrun.c (prev_pc): Move declaration ahead of proceed().
9573         (proceed): Refresh prev_pc value before resuming.
9574         (stop_stepping): Remove code to refresh prev_pc.
9575
9576 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9577
9578         * nto-tdep.c: Removed stray comment.
9579
9580 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9581
9582         * i386-nto-tdep.c: Fix old K&R function definitions.
9583         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9584         Also change add_show_from_set() call to add_setshow_cmd().
9585         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9586
9587 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9588
9589         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9590         (fprint_dummy_frames): New function.
9591         (maintenance_print_dummy_frames): New function.
9592         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9593         * frame.c (fprint_frame_id): Make global.
9594         * frame.h (fprint_frame_id): Declare.
9595         * Makefile.in (dummy-frame.o): Update dependencies.
9596
9597 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9598
9599         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9600         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9601         SIZEOF_CALL_DUMMY_WORDS.
9602         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9603         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9604         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9605         CALL_DUMMY_BREAKPOINT_OFFSET.
9606         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9607         CALL_DUMMY_START_OFFSET.
9608         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9609         * gdbarch.h, gdbarch.c: Re-generate.
9610         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9611         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9612         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9613         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9614         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9615         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9616         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9617         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9618         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9619         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9620         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9621         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9622         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9623         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9624         * config/sparc/tm-sparc.h: Update.
9625
9626 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9627
9628         * configure.tgt: Add i[3456]86-*-nto*.
9629         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9630         * nto-tdep.c: New file. Neutrino target support routines.
9631         * nto-tdep.h: New file. Neutrino target header.
9632         * config/tm-qnxnto.h: New file.
9633         * config/i386/i386nto.mt: New file.
9634         * config/i386/tm-i386nto.h: New file.
9635
9636 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9637
9638         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9639         (load_infrun_state): Ditto.
9640         (struct thread_info): Drop "prev_func_name" field.
9641         * thread.c (load_infrun_state): Update.
9642         (save_infrun_state): Update.
9643         * infrun.c (prev_func_name): Delete variable.
9644         (init_wait_for_inferior): Do not clear prev_func_name.
9645         (stop_stepping, keep_going, context_switch): Do not swap
9646         prev_func_name.
9647         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9648         instead of PC_IN_SIGTRAMP.
9649
9650 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9651
9652         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9653         REGISTER_BYTE with register_offset_hack.
9654         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9655         that REGISTER_BYTE is consistent with the regcache.
9656         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9657         * gdbarch.h, gdbarch.c: Regenerate.
9658
9659 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9660
9661         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9662         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9663
9664         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9665
9666 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9667
9668         From Thierry Schneider <tpschneider1@yahoo.com>
9669         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9670         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9671         (mi-cmd-symbol.o): Add rule.
9672
9673 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9674
9675         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9676         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9677         * gdbarch.h, gdbarch.c: Re-generate.
9678         * d10v-tdep.c (d10v_push_dummy_code): New function.
9679         (d10v_gdbarch_init): Set push_dummy_code.
9680         * infcall.c (legacy_push_dummy_code): New function.
9681         (generic_push_dummy_code): New function.
9682         (push_dummy_code): New function.
9683         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9684         instead of dummy_addr, to push_dummy_call.  Move call to
9685         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9686         switch.
9687         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9688
9689 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9690
9691         * disasm.h (print_insn): Declare.
9692         * disasm.c (init_gdb_disassemble_info): New function.
9693         (gdb_disassembly): Call init_gdb_disassemble_info.
9694         (gdb_print_insn): New function.
9695         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9696         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9697         * mcore-tdep.c: Include "disasm.h"
9698         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9699         * d10v-tdep.c: Include "disasm.h".
9700         (display_trace): Call gdb_print_insn, instead of print_insn.
9701         (print_insn): Delete function.
9702         * printcmd.c: Include "disasm.h".
9703         (print_insn): Delete function.
9704         (print_formatted): Call gdb_print_insn, instead of print_insn.
9705         * Makefile.in (printcmd.o): Update dependencies.
9706         (mcore-tdep.o, d10v-tdep.o): Ditto.
9707
9708 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9709
9710         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9711         PC_REGNUM, re-indent.
9712         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9713         PC_REGNUM isn't set.
9714
9715         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9716         * gdbarch.h, gdbarch.c: Re-generate.
9717         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9718         register_virtual_size, pc_regnum, or register_bytes.
9719         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9720         (d10v_register_type): Use D10V_PC_REGNUM.
9721         (d10v_print_registers_info, d10v_read_pc): Ditto.
9722         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9723         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9724
9725 2003-05-02  David Carlton  <carlton@bactrian.org>
9726
9727         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9728         the name with mstrsave.
9729
9730 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9731
9732         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9733         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9734         (host_charset_name, target_charset_name): New vars for use by
9735         set/show commands.
9736         (host_charset_enum, target_charset_enum): New enums for set/show
9737         commands.
9738         (set_charset_sfunc, set_host_charset_sfunc,
9739         set_target_charset_sfunc): New functions.
9740         (set_host_charset, set_target_charset): Make static.
9741         (list_charsets, set_host_charset_command,
9742         set_target_charset_command): Delete functions.
9743         (show_charset_command): Rewrite as....
9744         (show_charset): Hook this up with the set/show command mechanism.
9745         (_initialize_charset): Change names of charsets to match the
9746         set/show enums. Use host_charset_name and target_charset_name.
9747         Use set/show mechanism for charset, host-charset, target-charset
9748         commands. Do not make 'show host-charset' and 'show
9749         target-charset' be aliases of 'show charset'.
9750
9751         * charset.h (set_host_charset, set_target_charset): Don't export,
9752         they are not used outside the file.
9753
9754 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9755
9756         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9757         (gdb_disassembly): Make "di" non static, always initialize and
9758         cleanup.  Always use dis_asm_read_memory.
9759         (gdb_dis_asm_read_memory): Delete function.
9760
9761 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9762
9763         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9764         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9765
9766 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9767
9768         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9769         "tm_print_insn_info".
9770         (TARGET_PRINT_INSN_INFO): Delete macro.
9771         (dis_asm_read_memory): Delete function declaration.
9772         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9773         (tm_print_insn_info): Delete variable definition.
9774         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9775         * gdbarch.h, gdbarch.c: Re-generate.
9776         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9777         "deprecated_tm_print_insn_info".
9778         * mcore-tdep.c (mcore_dump_insn): Ditto.
9779         * mips-tdep.c (mips_gdbarch_init): Ditto.
9780         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9781         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9782         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9783         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9784         instead of TARGET_PRINT_INSN_INFO, add comment.
9785         * s390-tdep.c (s390_get_frame_info): Instead of
9786         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9787         (s390_check_function_end, s390_is_sigreturn): Ditto.
9788         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9789         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9790         * disasm.c: Include "gdbcore.h".
9791         (_initialize_disasm): New function, initialize
9792         "deprecated_tm_print_insn_info".
9793         (deprecated_tm_print_insn_info): New variable.
9794         (dis_asm_read_memory): Moved from "corefile.c", made static.
9795         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9796         * Makefile.in (disasm.o): Update dependencies.
9797
9798 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9799
9800         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9801
9802 2003-04-29  Adam Fedor  <fedor@gnu.org>
9803
9804         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9805         * infcall.c (find_function_addr): Make non-static.
9806         * infcall.h (find_function_addr): Declare.
9807         * Makefile.in (eval.o): Update dependencies.
9808
9809 2003-04-28  Adam Fedor  <fedor@gnu.org>
9810
9811         * symtab.c (symbol_find_demangled_name): Check for and demangle
9812         ObjC symbols.
9813         (symbol_init_demangled_name): Init for language_objc as well.
9814
9815 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9816
9817         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9818         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9819         * gdbarch.h, gdbarch.c: Re-generate.
9820         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9821         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9822         * inferior.h (deprecated_read_fp): Rename read_fp.
9823         (generic_target_read_fp): Delete declaration.
9824         * regcache.c (generic_target_read_fp): Delete function.
9825         (deprecated_read_fp): Replace read_fp, use
9826         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9827         * d10v-tdep.c (d10v_read_fp): Delete function.
9828         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9829
9830         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9831         deprecated_target_read_fp to generic_target_read_fp.
9832         * sh-tdep.c (sh_gdbarch_init): Ditto.
9833         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9834         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9835         * frv-tdep.c (frv_gdbarch_init): Ditto.
9836
9837         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9838         deprecated_fp_regnum.
9839         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9840         * vax-tdep.c (vax_gdbarch_init): Ditto.
9841         * v850-tdep.c (v850_gdbarch_init): Ditto.
9842         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9843         * sh-tdep.c (sh_gdbarch_init): Ditto.
9844         * s390-tdep.c (s390_gdbarch_init): Ditto.
9845         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9846         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9847         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9848         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9849         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9850         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9851         * i386-tdep.c (i386_gdbarch_init): Ditto.
9852         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9853         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9854         * frv-tdep.c (frv_gdbarch_init): Ditto.
9855         * cris-tdep.c (cris_gdbarch_init): Ditto.
9856         * avr-tdep.c (avr_gdbarch_init): Ditto.
9857         * arm-tdep.c (arm_gdbarch_init): Ditto.
9858         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9859
9860         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9861         * v850-tdep.c (v850_gdbarch_init): Ditto.
9862         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9863         * sh-tdep.c (sh_gdbarch_init): Ditto.
9864         * s390-tdep.c (s390_gdbarch_init): Ditto.
9865         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9866         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9867         * mips-tdep.c (mips_gdbarch_init): Ditto.
9868         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9869         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9870         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9871         * frv-tdep.c (frv_gdbarch_init): Ditto.
9872         * avr-tdep.c (avr_gdbarch_init): Ditto.
9873         * arm-tdep.c (arm_gdbarch_init): Ditto.
9874
9875         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9876         DEPRECATED_FP_REGNUM.
9877         (vax_push_dummy_frame, vax_pop_frame): Ditto.
9878         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9879         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9880         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9881         (sparc32_register_virtual_type): Ditto.
9882         * sh-tdep.c (sh64_frame_chain): Ditto.
9883         (sh64_get_saved_register, sh64_pop_frame): Ditto.
9884         (sh_nofp_frame_init_saved_regs): Ditto.
9885         (sh64_nofp_frame_init_saved_regs): Ditto.
9886         (sh_fp_frame_init_saved_regs): Ditto.
9887         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9888         * remote-e7000.c (fetch_regs_from_dump): Ditto.
9889         * procfs.c (procfs_fetch_registers): Ditto.
9890         (procfs_store_registers): Ditto.
9891         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9892         (store_inferior_registers, fetch_core_registers): Ditto.
9893         (fetch_kcore_registers, clear_regs): Ditto.
9894         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9895         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9896         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9897         * nlm/i386.c (do_status): Ditto.
9898         * mipsv4-nat.c (supply_gregset): Ditto.
9899         * mips-tdep.c: Ditto for comments.
9900         * mips-nat.c (fetch_inferior_registers): Ditto.
9901         (store_inferior_registers, fetch_core_registers): Ditto.
9902         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9903         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9904         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9905         (i386_do_pop_frame, i386_register_type): Ditto.
9906         * hppa-tdep.c (hppa_frame_chain): Ditto.
9907         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9908         (hppa_pop_frame, hppa_read_fp): Ditto.
9909         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9910         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9911         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9912         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9913         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9914         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9915         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9916         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9917         * blockframe.c: Ditto for comments.
9918         * arch-utils.h: Ditto for comments.
9919         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9920         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9921         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9922         * alpha-tdep.h: Ditto for comments.
9923         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9924         (alpha_cannot_store_register): Ditto.
9925         (alpha_push_dummy_frame): Ditto.
9926         * alpha-nat.c (supply_gregset): Ditto.
9927
9928         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9929         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9930         * config/sparc/tm-sparc.h: Update comment.
9931
9932         * hppa-tdep.c (hppa_init_extra_frame_info): Use
9933         deprecated_read_fp instead of TARGET_READ_FP.
9934         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9935         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9936         * sparc-tdep.c (sparc_init_extra_frame_info): Use
9937         deprecated_read_fp instead of read_fp.
9938         * s390-tdep.c (s390_push_arguments): Ditto.
9939         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9940         * frame.h: Ditto in comments.
9941         * frame.c (legacy_get_prev_frame): Ditto.
9942         * dummy-frame.c (dummy_frame_this_id): Ditto.
9943         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9944
9945 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9946
9947         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9948         * gdbarch.h, gdbarch.c: Re-generate.
9949         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9950         * vax-tdep.c (_initialize_vax_tdep): Update.
9951         * v850-tdep.c (_initialize_v850_tdep): Update.
9952         * sparc-tdep.c (_initialize_sparc_tdep): Update.
9953         * s390-tdep.c (_initialize_s390_tdep): Update.
9954         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9955         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9956         * mips-tdep.c (_initialize_mips_tdep): Update.
9957         * mcore-tdep.c (_initialize_mcore_tdep): Update.
9958         * m68k-tdep.c (_initialize_m68k_tdep): Update.
9959         * ia64-tdep.c (_initialize_ia64_tdep): Update.
9960         * hppa-tdep.c (_initialize_hppa_tdep): Update.
9961         * h8300-tdep.c (_initialize_h8300_tdep): Update.
9962         * frv-tdep.c (_initialize_frv_tdep): Update.
9963         * cris-tdep.c (cris_delayed_get_disassembler): Update.
9964         (_initialize_cris_tdep): Update.
9965         * arch-utils.c (legacy_print_insn): Update.
9966         * alpha-tdep.c (_initialize_alpha_tdep): Update.
9967
9968 2003-04-26  Adam Fedor  <fedor@gnu.org>
9969
9970         * linespec.c (decode_objc): New function to decode ObjC calls
9971         (decode_line_1): Check for ObjC calls (using decode_objc)
9972         * Makefile (linespec.o): Update dependencies.
9973
9974 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
9975
9976         * breakpoint.h (struct breakpoint_ops): New.
9977         (struct breakpoint): Add ops member.
9978
9979         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9980         (mention): Use new breakpoint ops member.
9981         (set_raw_breakpoint): Initialize ops field to NULL.
9982         (print_exception_catchpoint, print_one_exception_catchpoint)
9983         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9984         (gnu_v3_exception_catchpoint_ops): New.
9985         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9986
9987 2003-04-25  Adam Fedor  <fedor@gnu.org>
9988
9989         * Makefile.in (COMMON_OBS): Add objc-lang.o
9990
9991 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9992
9993         * d10v-tdep.c (print_insn): Delete function.
9994         (display_trace): Use TARGET_PRINT_INSN.
9995         (_initialize_d10v_tdep): Do not set tm_print_insn.
9996         (d10v_gdbarch_init): Set print_insn.
9997
9998 2003-04-25  Andrew Cagney  <cagney@redhat.com>
9999
10000         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10001         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10002         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10003         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10004         (nr_dmap_regs, a0_regnum): ... new functions.
10005         (d10v_print_registers_info): Use a0_regnum, use register_size.
10006         (d10v_register_byte): Delete function.
10007         (d10v_register_raw_size): Delete function.
10008         (d10v_register_type): Use a0_regnum.
10009         (d10v_print_registers_info): Use a0_regnum.
10010         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10011         (d10v_gdbarch_init): Do not set register_byte or
10012         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10013         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10014         extract_address.
10015         (trace_command): Use XCALLOC.
10016         (print_insn): Delete reference to tm_print_insn.
10017         (saved_regs_unwinder): Use store_unsigned_integer instead of
10018         store_address.
10019         * frame.h (FRAME_OBSTACK_CALLOC): Define
10020
10021 2003-04-25  David Carlton  <carlton@bactrian.org>
10022
10023         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10024
10025 2003-04-24  Adam Fedor  <fedor@gnu.org>
10026
10027         * objc-lang.c: Include "valprint.h"
10028         * Makefile.in (objc-lang.o): Update dependencies.
10029
10030 2003-04-24  Adam Fedor  <fedor@gnu.org>
10031
10032         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
10033         architecture dependant compilation and mark as unimplemented
10034         (until they get put in the gdbarch vector).
10035
10036 2003-04-23  David Carlton  <carlton@bactrian.org>
10037
10038         * cp-support.c (cp_find_first_component): Accept 'operator' in
10039         more locations.
10040
10041 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10042
10043         * infcall.c (call_function_by_hand): Eliminate redundant
10044         indentation.  Move "saved_async" and "old_cleanups" to where they
10045         are needed.
10046
10047 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10048
10049         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10050         and "buffer".  Move the "name" code to where it is needed.
10051
10052 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10053
10054         * infcall.c (call_function_by_hand): Move variables "start_sp",
10055         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10056         code to ON_STACK switch branch.
10057
10058 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10059
10060         * infcall.c (call_function_by_hand): Make declaration of "i",
10061         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
10062         lint.
10063
10064 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10065
10066         * infcall.c (call_function_by_hand): Delete variable
10067         "n_method_args".  Localize "param_type"'s declaration to the loop
10068         that it is used.  Reinstate code assigning to said variable -
10069         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
10070         Rationalize code using "param_type".
10071
10072 2003-04-22  Andrew Cagney  <cagney@redhat.com>
10073
10074         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10075         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
10076         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
10077         to DEPRECATED_PUSH_RETURN_ADDRESS.
10078
10079 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
10080
10081         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10082         on the DWARF2 register number prior to fetching a register.
10083
10084 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10085
10086         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10087         Update all the tests using SOFT_FLOAT considering the fact that
10088         this macro was always set to 0.
10089         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10090         considering the fact that this macro was always set to 0.
10091         * hppa-tdep.h (hppa_store_return_value): Likewise.
10092         (hppa_extract_return_value): Likewise.
10093
10094 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10095
10096         * config/pa/tm-hppa.h: Remove obsolete code, was used by
10097         the hppa-pro target only.
10098
10099 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10100
10101         Ongoing multi-arch conversion effort for HP/UX:
10102         * config/pa/tm-hppa.h: Move all macro that are no longer
10103         defined now that GDB_MULTI_ARCH is now set to 1 from here...
10104         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10105
10106 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10107
10108         * config/pa/tm-hppa.h: Obsolete a section that was only used
10109         for hppa-pro.
10110
10111 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10112
10113         Ongoing multi-arch conversion for HP/UX.
10114         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10115         if already defined (allows hppa64 to stay non-multiarched for now).
10116         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10117
10118 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10119
10120         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10121
10122 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10123
10124         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10125         "i386_num_mmx_regs".
10126
10127 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10128
10129         * infcall.c: New file.
10130         * infcall.h: New file.
10131         * valarith.c: Include "infcall.h".
10132         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10133         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10134         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10135         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10136         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10137         (SFILES): Add "infcall.c"
10138         (COMMON_OBS): Add "infcall.o".
10139         (infcall.o): Specify dependencies.
10140         * value.h (call_function_by_hand): Delete declaration.
10141         * inferior.h (run_stack_dummy): Delete declaration.
10142         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10143         (run_stack_dummy): Move to "infcall.c", merged into
10144         call_function_by_hand.
10145         * valops.c (call_function_by_hand): Moved to "infcall.c".
10146         (find_function_addr, value_arg_coerce): Ditto.
10147         (unwindonsignal_p, coerce_float_to_double): Ditto.
10148         (_initialize_valops): Move "set/show coerce-float-to-double", and
10149         "set/show unwindonsignal" commands to "infcall.c".
10150         * v850-tdep.c, target.h: Update comments.
10151         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10152         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10153         (sh64_init_extra_frame_info): Update comments.
10154         * mn10300-tdep.c: Update comments.
10155         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10156         * config/sparc/tm-sparc.h: Update comments.
10157         * breakpoint.h: Update comments.
10158         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10159         * arm-tdep.c: Update comment.
10160
10161 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10162
10163         * i386-tdep.c (i386_num_register_names): New variable.
10164         (i386_num_mmx_regs): Renamed from mmx_num_regs.
10165         (MM0_REGNUM): Remove redundant parentheses in define.
10166         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10167         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10168         i386_mxcsr_regnum_p): Remove redundant parentheses.
10169         (i386_register_name): Use i386_num_register_names.
10170
10171         * i386-tdep.c (i386_extract_return_value,
10172         i386_store_return_value): Correct check for availability of
10173         floating-point registers.
10174
10175         * i386-tdep.c (i386_frame_num_args): Remove function.
10176         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10177
10178         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10179         mmx_regnum_to_fp_regnum.  Adjust all callers.
10180
10181         * i386-tdep.c (i386_get_longjmp_target): Use
10182         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10183         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
10184         extract_address.
10185
10186 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10187
10188         * core-regset.c: Update comments to reflect reality.  Re-order
10189         includes.
10190         (fetch_core_registers): Use switch instead of if.  Remove
10191         redundant prototype.
10192
10193 2003-04-18  Jim Blandy  <jimb@redhat.com>
10194
10195         * s390-tdep.c (s390_frame_align): New function.
10196         (s390_gdbarch_init): Register it with the gdbarch object.
10197
10198 2003-04-17  Richard Henderson  <rth@redhat.com>
10199
10200         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10201
10202 2003-04-17  Michael Snyder  <msnyder@redhat.com>
10203             Karen Bennet  <bennet@redhat.com>
10204
10205         Committed by Elena Zannoni  <ezannoni@redhat.com>
10206         * gdb_gcore.sh: New script to create a core dump of a process.
10207
10208 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
10209
10210         * values.c (value_being_returned): Don't fetch the return
10211         value if the return type is void.
10212
10213 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10214
10215         * thread-db.c: Reindented.
10216
10217 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10218
10219         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10220         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10221         as types.
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
10248
10249         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10250         the size of ``long double'' to 16, instead of 8.
10251
10252 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
10253
10254         * i386-linux-nat.c: Add some whitespace to make things more
10255         readable.
10256         (fetch_register, store_register, fetch_inferior_registers,
10257         store_inferior_registers): Get rid of assignment in if-statement.
10258         (store_register): Fix typo in error message.
10259
10260 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10261
10262         * utils.c (xmmalloc): Always allocate something, matches
10263         libiberty/xmalloc's semantics.
10264         (xmrealloc, xmcalloc): Ditto.
10265
10266 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10267
10268         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10269         update comments.
10270         (get_frame_type): Initialize unwind and type when needed.
10271         (get_frame_id, frame_register_unwind): Ditto.
10272
10273 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10274
10275         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10276         obsolete.
10277         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10278         * sparcl-stub.c: Obsolete file.
10279         * config/sparc/tm-sparclet.h: Obsolete file.
10280         * sparclet-stub.c: Obsolete file.
10281         * sparclet-rom.c: Obsolete file.
10282         * sparcl-tdep.c: Obsolete file.
10283         * config/sparc/tm-sparclite.h: Obsolete file.
10284         * config/sparc/sparclite.mt: Obsolete file.
10285         * config/sparc/sparclet.mt: Obsolete file.
10286         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10287         sparc86x-*-* obsolete.
10288
10289 2003-04-15  David Carlton  <carlton@math.stanford.edu>
10290
10291         * Makefile.in (SFILES): Add cp-namespace.c.
10292         (COMMON_OBS): Add cp-namespace.o.
10293         (block.o): Depend on gdb_obstack_h and cp_support_h.
10294         (buildsym.o): Depend on cp_support_h.
10295         (cp-namespace.o): New.
10296         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10297         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10298         (dwarf2read.o): Depend on cp_support_h.
10299         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10300         * dwarf2read.c (process_die): Set processing_has_namespace_info,
10301         processing_current_namespace.
10302         (read_namespace): Update processing_current_namespace; check for
10303         anonymous namespaces.
10304         (dwarf2_name): New function.
10305         (dwarf2_extension): Ditto.
10306         * cp-support.h: Update copyright, contributors.
10307         Add inclusion guards.
10308         Add opaque declaration for structs obstack, block, symbol.
10309         (struct using_direct): New struct.
10310         Add declarations for cp_find_first_component,
10311         cp_entire_prefix_len, processing_has_namespace_info,
10312         processing_current_namespace, cp_is_anonymous,
10313         cp_add_using_directive, cp_initialize_namespace,
10314         cp_finalize_namespace, cp_set_block_scope,
10315         cp_scan_for_anonymous_namespaces.
10316         * cp-namespace.c: New file.
10317         * cp-support.c: Update copyright.
10318         Include ctype.h, gdb_assert.h, gdbcmd.h.
10319         New variable maint_cplus_cmd_list.
10320         (cp_find_first_component): New function.
10321         (cp_entire_prefix_len, maint_cplus_command)
10322         (first_component_command, _initialize_cp_support): Ditto.
10323         * buildsym.c: Include cp-support.h.
10324         New variable using_list.
10325         (add_symbol_to_list): Check for anonymous namespaces.
10326         (finish_block): Set block's scope.
10327         (start_symtab): Initialize C++ namespace support.
10328         (end_symtab): Finalize C++ namespace support.
10329         * block.h: Add opaque declarations for structs
10330         block_namespace_info, using_direct, and obstack.
10331         Add declarations for block_set_scope and block_set_using.
10332         (struct block): Add 'language_specific' member.
10333         (BLOCK_NAMESPACE): New macro.
10334         * block.c: Include gdb_obstack.h and cp-support.h.
10335         (struct block_namespace_info): New struct.
10336         (block_set_scope): New function.
10337         (block_set_using, block_initialize_namespace): Ditto.
10338
10339 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
10340
10341         * solib-svr4.c (svr4_have_link_map_offsets): New function.
10342         (locate_base): Return early if there aren't any link map offsets.
10343         (svr4_solib_create_inferior_hook): Warn if shared library support
10344         is unavailable.
10345
10346 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10347
10348         * symtab.c (symbol_set_names): Add prefix when storing Java names
10349         in hash table.  Fix for PR java/1039.
10350
10351 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10352
10353         * symtab.c (symbol_set_names): Rename 'name' arg to
10354         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10355         * symtab.h: Change 'name' argument in declaration of
10356         symbol_set_names to 'linkage_name'.
10357         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10358
10359 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10360
10361         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10362         return the fully sign-extended register value.
10363         (get_frame_pointer): Ditto.
10364         (mips_pop_frame): Initialize "proc_desc" after checking for a
10365         dummy frame.
10366
10367 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10368
10369         * mips-tdep.c (mips_push_dummy_frame): Delete function.
10370         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10371         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10372         (mips_push_register): Delete function.
10373         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10374         PUSH_FP_REGNUM.
10375
10376 2003-04-14  Jim Blandy  <jimb@redhat.com>
10377
10378         * symmisc.c: #include "gdb_regex.h".
10379         (maintenance_list_symtabs, maintenance_list_psymtabs): New
10380         functions.
10381         * maint.c (maintenance_list_command): New function.
10382         (_initialize_maint_cmds): Register the above as commands.
10383         * symtab.h (maintenance_list_symtabs,
10384         maintenance_list_psymtabs): New declarations.
10385         * cli/cli-cmds.c (maintenancelistlist): New variable.
10386         (init_cmd_lists): Initialize it.
10387         * cli/cli-cmds.h (maintenancelistlist): New declaration.
10388         * gdbcmd.h (maintenancelistlist): New declaration.
10389         * Makefile.in (symmisc.o): Update dependencies.
10390
10391 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
10392
10393         * s390-nat.c: Include asm/types.h for addr_t.
10394
10395 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
10396
10397         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10398         actually incoming type.
10399
10400 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10401
10402         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10403         get_next_frame and get_frame_saved_regs.
10404
10405 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10406
10407         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10408         of gdbarch_num_regs.
10409
10410 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10411
10412         * frame.h: Mention what replaced what in "struct frame_info".
10413         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10414         deprecated_update_frame_base_hack and
10415         deprecated_update_frame_pc_hack.
10416         * hppa-tdep.c: Ditto.
10417
10418 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10419
10420         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10421         to read_reg and update its comment.  Remove regnum member.
10422         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10423         Don't call read_reg when setting in_reg.  Call read_reg to get
10424         the frame base if it's in a register.  Return the register number
10425         on the stack instead of in the context.  Remove extra arguments
10426         to read_reg.
10427         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10428         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10429         the register number on the expression stack.
10430         (needs_frame_read_reg): Remove extra arguments.
10431
10432 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10433
10434         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10435         made non-static.
10436         (execute_stack_op): All callers updated.
10437         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10438         * dwarf2loc.c (find_location_expression): New function.
10439         (dwarf_expr_frame_base): Call it.
10440         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10441         (dwarf2_tracepoint_var_ref): New function, broken out from
10442         locexpr_tracepoint_var_ref.
10443         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10444         Make static.
10445         (loclist_read_variable, loclist_read_needs_frame): New functions.
10446         (loclist_describe_location, loclist_tracepoint_var_ref): New
10447         functions.
10448         (dwarf2_loclist_funcs): New struct location_funcs.
10449         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10450         (struct dwarf2_locexpr_baton): Add comments.
10451         (dwarf2_loclist_funcs): New extern.
10452         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10453         base_address and base_known.
10454         (dwarf_loc_buffer): New variable.
10455         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10456         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10457         (dwarf2_has_info): Initialize dwarf_loc_offset.
10458         (dwarf2_build_psymtabs): Read in .debug_loc.
10459         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10460         DWARF_LOC_SIZE.
10461         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10462         here, from...
10463         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10464         cu_header.
10465         (dwarf2_symbol_mark_computed): Handle location lists.
10466
10467 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10468
10469         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10470         if the linkage name demangled successfully.
10471
10472 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10473
10474         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10475         disassmbly_flavour): Removed.
10476
10477         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10478
10479 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10480
10481         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10482
10483 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10484
10485         * frame.h (struct frame_info): Move definition from here ...
10486         * frame.c (struct frame_info): ... to here.
10487
10488 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10489
10490         * gdbthread.h (save_infrun_state): Delete parameter
10491         "prev_func_start".
10492         (struct thread_info): Delete field "prev_func_start".
10493         (load_infrun_state): Ditto.
10494         * thread.c (load_infrun_state, save_infrun_state): Update.
10495         * infrun.c (prev_func_start): Delete variable.
10496         (context_switch, init_wait_for_inferior): Update.
10497         (stop_stepping, keep_going): Update.
10498
10499 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10500
10501         * gdbarch.sh: Add missing opaque declarations.
10502         * gdbarch.h: Regnerate.
10503         * symtab.h: Add missing opaque declarations.
10504         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10505         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10506         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10507         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10508         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10509         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10510         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10511         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10512         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10513         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10514         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10515         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10516         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10517
10518 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10519
10520         * frame.c (get_frame_id): Return this frame's "id".
10521         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10522         function start.
10523         (legacy_saved_regs_this_id): Replace function body with
10524         internal-error.
10525         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10526         FRAME_OBSTACK_ZALLOC.
10527         (create_new_frame): Mark the frame ID as valid.
10528
10529 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
10530
10531         * Makefile.in (libbfd_h): Added missing setting.
10532         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10533         according to the selected ABI.
10534
10535 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
10536
10537         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10538
10539 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10540
10541         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10542         SAVED_PC_AFTER_CALL.
10543         * gdbarch.h, gdbarch.c: Regenerate.
10544         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10545         * x86-64-tdep.c (x86_64_init_abi): Update.
10546         * vax-tdep.c (vax_gdbarch_init): Update.
10547         * v850-tdep.c (v850_gdbarch_init): Update.
10548         * sparc-tdep.c (sparc_gdbarch_init): Update.
10549         * sh-tdep.c (sh_gdbarch_init): Update.
10550         * s390-tdep.c (s390_gdbarch_init): Update.
10551         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10552         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10553         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10554         * mips-tdep.c (mips_gdbarch_init): Update.
10555         * mcore-tdep.c (mcore_gdbarch_init): Update.
10556         * m68k-tdep.c (m68k_gdbarch_init): Update.
10557         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10558         * ia64-tdep.c (ia64_gdbarch_init): Update.
10559         (ia64_saved_pc_after_call): Update declaration.
10560         * i386ly-tdep.c (i386lynx_init_abi): Update.
10561         * i386-tdep.c (i386_gdbarch_init): Update.
10562         * hppa-tdep.c (hppa_gdbarch_init): Update.
10563         * h8300-tdep.c (h8300_gdbarch_init): Update.
10564         * frv-tdep.c (frv_gdbarch_init): Update.
10565         * cris-tdep.c (cris_gdbarch_init): Update.
10566         * avr-tdep.c (avr_gdbarch_init): Update.
10567         * arm-tdep.c (arm_gdbarch_init): Update.
10568         * alpha-tdep.c (alpha_gdbarch_init): Update.
10569         * ns32knbsd-nat.c (frame_num_args): Update.
10570         * ns32k-tdep.c (umax_frame_num_args): Update.
10571         * mips-tdep.c (mips_init_frame_pc_first): Update.
10572         * infrun.c (step_over_function): Update.
10573         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10574         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10575         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10576         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10577         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10578         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10579         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10580         * arch-utils.c (init_frame_pc_default): Update.
10581         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10582         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10583         declaration.
10584
10585 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10586
10587         * i387-tdep.c: Update copyright.
10588         (i387_to_double): Delete function.
10589         (double_to_i387): Delete function.
10590
10591 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10592
10593         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10594         frame's function's address.  Simplify.
10595         (d10v_frame_unwind_cache): Check that the frame's function is
10596         non-zero.
10597
10598 2003-04-10  Jim Blandy  <jimb@redhat.com>
10599
10600         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10601         call to set_gdbarch_deprecated_push_arguments.
10602
10603 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10604
10605         * frame.c (fprint_frame_id): New function.
10606         (fprint_frame_type, fprint_frame): New function.
10607         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10608         (create_sentinel_frame, get_frame_id): Ditto.
10609         (frame_id_p, frame_id_eq): Ditto.
10610         (frame_id_inner, create_new_frame): Ditto.
10611         (legacy_get_prev_frame, get_prev_frame): Ditto.
10612         (deprecated_update_frame_pc_hack): Ditto.
10613         (frame_register_unwind): Ditto.
10614         (deprecated_update_frame_base_hack): Ditto.
10615
10616 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10617
10618         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10619         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10620         frame_chain function.
10621         * Makefile.in: Add dependencies due to above change.
10622
10623 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10624
10625         * blockframe.c (legacy_frame_chain_valid): Move call to
10626         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10627         inside_entry_file.
10628
10629 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10630
10631         * frame.h (struct frame_id): Replace "pc" and "base" with
10632         "stack_addr" and "code_addr".  Update comments.
10633         (frame_id_build): Update parameter names and comment.
10634         (struct frame_info): Replace "id_p" and "id" with "this_id".
10635         * dummy-frame.c (dummy_frame_this_id): Update.
10636         * breakpoint.c (print_one_breakpoint): Update.
10637         * frame.c (get_frame_id): Update.
10638         (get_frame_base, frame_id_build): Update.
10639         (create_sentinel_frame, legacy_get_prev_frame): Update.
10640         (deprecated_update_frame_base_hack): Update.
10641         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10642         (frame_id_inner): Ditto.
10643
10644 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10645
10646         * defs.h (gdb_print_host_address): Make "addr" parameter a
10647         pointer constant.
10648         * utils.c (gdb_print_host_address): Update.
10649
10650 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10651
10652         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10653         register number for R0 is 0.
10654
10655 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10656
10657         * frame.h (struct gdbarch): Add opaque structure definition
10658         to avoid a compilation warning on LynxOS 4.0.
10659
10660 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10661
10662         * frame.h (struct frame_info): Delete field "pc".  Replace
10663         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10664         structure.
10665         * frame.c (frame_pc_unwind): Update.
10666         (create_sentinel_frame): Do not set "pc".
10667         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10668         (get_frame_pc): Call frame_pc_unwind.
10669         (deprecated_update_frame_pc_hack): Update.
10670         (create_new_frame): Use "pc" not "->pc".
10671
10672 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10673
10674         * frame.c (get_frame_id): Eliminate code updating "frame".
10675         (legacy_get_prev_frame): Ditto.
10676         (get_frame_base): Return id.base directly.
10677         (deprecated_update_frame_base_hack): Update "id.base".
10678         * frame.h (struct frame_info): Delete field "frame".
10679
10680 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10681
10682         * NEWS: Mention that the "Sequent family" is obsolete.
10683         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10684         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10685         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10686         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10687         * config/i386/tm-ptx4.h: Obsolete file.
10688         * config/i386/tm-ptx.h: Obsolete file.
10689         * symm-tdep.c: Obsolete file.
10690         * config/i386/symmetry.mt: Obsolete file.
10691         * config/i386/tm-symmetry.h: Obsolete file.
10692         * symm-nat.c: Obsolete file.
10693         * config/i386/nm-symmetry.h: Obsolete file.
10694         * config/i386/xm-symmetry.h: Obsolete file.
10695         * config/i386/symmetry.mh: Obsolete file.
10696         * config/i386/nm-ptx4.h: Obsolete file.
10697         * config/i386/ptx4.mh: Obsolete file.
10698         * config/i386/ptx.mt: Obsolete file.
10699         * config/i386/ptx.mh: Obsolete file.
10700         * config/i386/xm-ptx4.h: Obsolete file.
10701         * config/i386/xm-ptx.h: Obsolete file.
10702
10703 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10704
10705         Obsolete mips*-*-mach3*.
10706         * NEWS: Mention that mips*-*-mach3* is obsolete.
10707         * m3-nat.c: Obsolete file.
10708         * config/nm-m3.h: Obsolete file.
10709         * config/mips/tm-mipsm3.h: Obsolete file.
10710         * config/mips/mipsm3.mt: Obsolete file.
10711         * config/mips/mipsm3.mh: Obsolete file.
10712         * config/mips/xm-mipsm3.h: Obsolete file.
10713         * mipsm3-nat.c: Obsolete file.
10714         * configure.host: Obsolete mips-dec-mach3*.
10715         * configure.tgt: Obsolete mips*-*-mach3*.
10716
10717 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10718
10719         * doublest.h: Update copyright.
10720         (deprecated_store_floating, deprecated_extract_floating): Rename
10721         store_floating and extract_floating.  Update comments.
10722         * doublest.c: Update copyright.
10723         (extract_floating_by_length): Replace extract_floating.
10724         (store_floating_by_length): Replace store_floating.
10725         (deprecated_extract_floating): New function.
10726         (deprecated_store_floating): New function.
10727         (extract_typed_floating): Call extract_floating_by_length.
10728         (store_typed_floating): Call store_floating_by_length.
10729         * x86-64-tdep.c (x86_64_store_return_value): Update.
10730         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10731         (sh64_extract_return_value): Update.
10732         (sh_sh4_register_convert_to_virtual): Update.
10733         (sh_sh64_register_convert_to_virtual): Update.
10734         (sh_sh4_register_convert_to_raw): Update.
10735         (sh_sh64_register_convert_to_raw): Update.
10736         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10737         (rs6000_register_convert_to_raw): Update.
10738         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10739         (ia64_register_convert_to_raw): Update.
10740         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10741         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10742         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10743         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10744         (alpha_register_convert_to_raw): Update.
10745
10746 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10747
10748         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10749         * gdbarch.h, gdbarch.c: Re-generate.
10750         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10751         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10752         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10753         conditionally, use frame_pc_unwind as an alternative.  Add
10754         comments.
10755         * arch-utils.c (init_frame_pc_default): Only call
10756         SAVED_PC_AFTER_CALL when available.
10757
10758 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10759
10760         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10761         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10762         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10763         (start_remote): Ditto.
10764         (handle_inferior_event): Ditto.
10765         (save_inferior_status): Ditto.
10766         (restore_inferior_status): Ditto.
10767         * infcmd.c (attach_command): Ditto.
10768         * fork-child.c (startup_inferior): Ditto.
10769         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10770         * alpha-tdep.c (heuristic_proc_start): Ditto.
10771         * mips-tdep.c (heuristic_proc_start): Ditto.
10772         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10773         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10774         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10775         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10776         * remote-vx.c (vx_create_inferior): Ditto.
10777
10778 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10779
10780         * infrun.c (stop_soon_quietly): Make it an enum, to better
10781         override the default behavior of handle_inferior_event.
10782         (clear_proceed_status): Update uses of stop_soon_quietly to
10783         reflect that it is now an enum.
10784         (start_remote): Ditto.
10785         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10786         is set to handle the new GNU/Linux kernel behavior for
10787         attach/sigstop.  Update uses of stop_soon_quietly.
10788         * inferior.h (enum stop_kind): New enum.
10789         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10790         Reset normal handle_inferior_event behavior, afterwards.
10791         * fork-child.c (startup_inferior): Update.
10792         * alpha-tdep.c (heuristic_proc_start): Update.
10793         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10794         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10795         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10796         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10797         * remote-vx.c (vx_create_inferior): Update.
10798         * mips-tdep.c (heuristic_proc_start): Update.
10799
10800 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10801
10802         * disasm.c (dump_insns):  Move variables inside loop, or they will
10803         be freed more than once, causing wild memory corruptions.
10804         (gdb_disassembly): Look for the substring "-thread",
10805         instead of "-threads" in the target name, to make sure to find
10806         the 'multi-thread' target.  Also, make sure we do the right thing
10807         with the "core" target.
10808
10809 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10810
10811         * mips-tdep.c (mips_print_fp_register): New function, created from
10812         do_fp_register_row().  Registers are now (also) printed as hex.
10813         Only one register is printed per row.
10814         (mips_print_register, do_fp_register_row): Print floating point
10815         registers with mips_print_fp_register().
10816
10817 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10818
10819         * valprint.h (inspect_it): Add extern declaration.
10820         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10821         (selectors_info, classes_info): Ditto.
10822         (find_objc_msgcall): Fix indentation.
10823         (objc_printstr): Delete extern declarations.
10824
10825         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10826
10827 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10828
10829         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10830         Update comment.
10831         * frame.c (legacy_saved_regs_this_id): Update.
10832         (legacy_get_prev_frame): Update.
10833         * xstormy16-tdep.c: Update comment.
10834         * sparc-tdep.c (sparc_frame_chain): Update comment.
10835         * blockframe.c (legacy_frame_chain_valid): Update.
10836
10837 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10838
10839         * valprint.c (val_print_type_code_int): Delete #ifdef
10840         PRINT_TYPELESS_INTEGER code.
10841
10842         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10843         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10844         multi-arch definition.
10845         * gdbarch.h: Re-generate.
10846
10847 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10848
10849         Eliminate FRAME_FIND_SAVED_REGS.
10850         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10851         Change FSR parameter to a pointer.
10852         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10853         Assume FSR parameter is a pointer.
10854         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10855         Make fsr a pointer.
10856         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10857         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
10858         saved_regs a pointer.
10859         (hppa_frame_saved_pc): Ditto.
10860         (find_dummy_frame_regs): Make frame_saved_regs a pointer
10861         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
10862         pointer.
10863         (restore_pc_queue): Make fsr a pointer.
10864         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10865         (hppa_frame_chain): Make saved_regs a pointer, call
10866         hppa_frame_init_saved_regs.
10867         * sparc-tdep.c: Include "gdb_assert.h".
10868         (sparc_frame_find_saved_regs): Replace internal_error with
10869         gdb_assert.
10870         * remote-vxsparc.c (vx_read_register): Delete reference to
10871         FRAME_FIND_SAVED_REGS.
10872         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10873         * gdbarch.h: Regenerate.
10874         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10875         (deprecated_get_frame_saved_regs): Delete declaration.
10876         (struct frame_saved_regs): Delete definition.
10877         * frame.c (deprecated_get_frame_saved_regs): Delete function.
10878         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10879         (hppa_frame_find_saved_regs): Delete declaration.
10880         (FRAME_FIND_SAVED_REGS): Delete macro.
10881         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10882         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10883         FRAME_FIND_SAVED_REGS in comment.
10884
10885 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10886
10887         * frame.c (frame_func_unwind, get_frame_func): New functions.
10888         * frame.h (get_frame_func, frame_func_unwind): Declare.
10889         (struct frame_info): Add field "prev_func" for caching the
10890         previous frame's function address.
10891         * arm-tdep.c (arm_frameless_function_invocation): Combine
10892         get_pc_function_start and get_frame_pc into get_frame_func.
10893         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10894         (sh64_nofp_frame_init_saved_regs): Ditto.
10895         * s390-tdep.c (s390_function_start): Ditto.
10896         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10897         (rs6000_frameless_function_invocation): Ditto.
10898         (rs6000_frame_saved_pc): Ditto.
10899         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10900         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10901         * i386-tdep.c (i386_frameless_signal_p): Ditto.
10902         (i386_frame_init_saved_regs): Ditto.
10903         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10904         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10905         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10906         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10907         * blockframe.c (frameless_look_for_prologue): Ditto.
10908
10909 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10910
10911         * frame.c (legacy_get_prev_frame): Link prev to next at the
10912         function start.  Update comments.
10913
10914 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10915
10916         * frame.c (get_frame_id): Update comment.
10917         (legacy_get_prev_frame): Update comment.
10918         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10919         * gdbarch.h: Regenerate.
10920         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10921         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10922
10923 2003-04-05  Andrew Cagney  <cagney@redhat.com>
10924
10925         * stack.c (print_frame_info): Use get_frame_pc.
10926
10927 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10928
10929         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
10930         the frame's type from the unwinder.
10931         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10932         (create_new_frame, legacy_get_prev_frame): When the unwinder's
10933         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10934         (get_frame_base_address): Use get_frame_type.
10935         (get_frame_locals_address, get_frame_args_address): Ditto.
10936         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10937         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10938         (struct frame_info): Add comment explaining why the frame contains
10939         a "type" field.
10940         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10941         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10942         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10943         NORMAL_FRAME.
10944         * frame-unwind.h: Include "frame.h".
10945         (struct frame_unwind): Add "type" field.
10946         * Makefile.in (frame_unwind_h): Add $(frame_h).
10947
10948 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10949
10950         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10951         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10952         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10953         get_frame_base.
10954         (d10v_unwind_dummy_id): Use frame_id_build.
10955         * frame.c (find_frame_sal): Use get_frame_pc.
10956         (create_new_frame): Use deprecated_update_frame_pc_hack and
10957         deprecated_update_frame_base_hack.
10958         (create_sentinel_frame): Add comment about ->pc going away.
10959         (get_prev_frame): Add comment about ->pc going away.
10960         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10961         frame_id_build, deprecated_update_frame_pc_hack and
10962         deprecated_update_frame_base_hack.
10963         (select_frame): Use get_frame_pc.
10964         (legacy_saved_regs_this_id): Use frame_id_build.
10965
10966 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
10967
10968         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10969         signed integer case.
10970         (classify_argument): Handle enumerations and references.
10971
10972 2003-04-04  Andrew Cagney  <cagney@redhat.com>
10973
10974         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10975         ID to NULL.
10976
10977 2003-04-01  Adam Fedor  <fedor@gnu.org>
10978
10979         * gdb/objc-lang.c (selectors_info): Replace calls to
10980         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10981         SYMBOL_NATURAL_NAME.
10982         (classes_info, find_methods): Likewise.
10983
10984 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
10985
10986         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10987         ``mach'' to the value determined by bfd_default_set_arch_mach().
10988
10989 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
10990
10991         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10992         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10993         (mi-cmd-file.o): Update dependencies.
10994
10995 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
10996
10997         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10998         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10999
11000 2003-04-01  Adam Fedor  <fedor@gnu.org>
11001
11002         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11003         * language.h (struct language_defn): Add la_demangle.
11004         (language_demangle): Declare.
11005         * language.c (language_demangle): New function.
11006         (unk_lang_demangle): Likewise.
11007         (unknown_language_defn, auto_language_defn, local_language_defn):
11008         Add ukn_lang_demangle.
11009         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
11010         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
11011         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11012         (cplus_language_defn): Add cplus_demangle for la_demangle element.
11013         * jv-lang.c (java_demangle): New function
11014         (java_language_defn): Use it for la_demangle element.
11015         * objc-lang.c (objc_demangle): Add options argument
11016         (objc_language_defn): Use objc_demangle for la_demangle element.
11017         * maint.c (maintenance_demangle): Replace switch with
11018         call to language_demangle.
11019         * utils.c (fprintf_symbol_filtered): Likewise.
11020
11021 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11022
11023         * printcmd.c (print_frame_nameless_args): Delete #ifdef
11024         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11025         PRINT_TYPELESS_INTEGER.
11026         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11027         PUSH_RETURN_ADDRESS.
11028
11029 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11030
11031         * Makefile.in (d10v-tdep.o): Update dependencies.
11032         * d10v-tdep.c: Include "frame-base.h".
11033         (d10v_frame_unwind): Make constant.
11034         (d10v_frame_base_address): New function.
11035         (d10v_frame_base): New variable.
11036         (d10v_gdbarch_init): Set frame_base default.
11037         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
11038         comment for base.
11039         (d10v_frame_unwind_cache): Set and use "prev_sp".
11040         (d10v_frame_this_id): Use the previous frame's inner most stack
11041         address and this frame's func address for the frame ID.  Use
11042         frame_id_build.  Don't analyze beyond the current instruction.
11043
11044 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11045
11046         * frame.h (get_frame_locals_address, get_frame_args_address):
11047         Refer to the base address, instead of the address of the first
11048         local or parameter.
11049
11050 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11051
11052         Add frame debug info addresses:
11053         * frame-base.c: New file.
11054         * frame-base.h: New file.
11055         * frame.h (struct frame_base): Add opaque declaration.
11056         (get_frame_base): Update comment.
11057         (get_frame_base_address): Declare.
11058         (get_frame_locals_address): Declare.
11059         (get_frame_args_address): Declare.
11060         (struct frame_info): Add "base" and "base_cache".  Update
11061         comments on the unwinder.
11062         * frame.c: Include "frame-base.h".
11063         (get_frame_locals_address): New function.
11064         (get_frame_base_address): New function.
11065         (get_frame_args_address): New function.
11066         * findvar.c (read_var_value): Use get_frame_locals_address and
11067         get_frame_args_address.
11068         * stack.c (frame_info): Use get_frame_locals_address and
11069         get_frame_args_address.
11070         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11071         moved to "frame-base.c".
11072         * printcmd.c (print_frame_nameless_args): Ditto.
11073         * symtab.h (address_class): Update comments.
11074         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11075         get_frame_base_address.
11076         * dwarf2expr.c (execute_stack_op): Ditto.
11077         * Makefile.in (frame_base_h): Define.
11078         (frame.o): Update dependencies.
11079         (frame-base.o): Add dependencies.
11080         (SFILES): Add frame-base.c.
11081         (COMMON_OBS): Add frame-base.o.
11082
11083 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11084
11085         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11086         CALL_DUMMY_LENGTH): Ditto.
11087         * gdbarch.c: Re-generate.
11088         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11089         (CALL_DUMMY_LENGTH): Delete macro.
11090         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11091         * arm-tdep.c (arm_gdbarch_init): Ditto.
11092         * avr-tdep.c (avr_gdbarch_init): Ditto.
11093         * cris-tdep.c (cris_gdbarch_init): Ditto.
11094         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11095         * frv-tdep.c (frv_gdbarch_init): Ditto.
11096         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11097         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11098         * i386-tdep.c (i386_gdbarch_init): Ditto.
11099         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11100         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11101         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11102         * mips-tdep.c (mips_gdbarch_init): Ditto.
11103         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11104         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11105         * s390-tdep.c (s390_gdbarch_init): Ditto.
11106         * sh-tdep.c (sh_gdbarch_init): Ditto.
11107         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11108         * v850-tdep.c (v850_gdbarch_init): Ditto.
11109         * vax-tdep.c (vax_gdbarch_init): Ditto.
11110         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11111
11112 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
11113
11114         * frame.c (get_prev_frame): Disable call to inside_entry_file().
11115
11116 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11117
11118         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11119         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11120         * gdbarch.h, gdbarch.c: Re-generate.
11121         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11122         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11123         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11124         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11125         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11126         * infcmd.c (run_stack_dummy): Simplify assuming
11127         CALL_DUMMY_BREAKPOINT_OFFSET_P.
11128         * infrun.c (handle_inferior_event): Ditto.
11129         * alpha-tdep.c (alpha_gdbarch_init): Do not set
11130         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11131         * arm-tdep.c (arm_gdbarch_init): Ditto.
11132         * avr-tdep.c (avr_gdbarch_init): Ditto.
11133         * cris-tdep.c (cris_gdbarch_init): Ditto.
11134         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11135         * frv-tdep.c (frv_gdbarch_init): Ditto.
11136         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11137         * i386-tdep.c (i386_gdbarch_init): Ditto.
11138         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11139         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11140         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11141         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11142         * mips-tdep.c (mips_gdbarch_init): Ditto.
11143         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11144         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11145         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11146         * s390-tdep.c (s390_gdbarch_init): Ditto.
11147         * sh-tdep.c (sh_gdbarch_init): Ditto.
11148         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11149         * v850-tdep.c (v850_gdbarch_init): Ditto.
11150         * vax-tdep.c (vax_gdbarch_init): Ditto.
11151         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11152
11153 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
11154
11155         * symfile.c (symfile_relocate_debug_section): Update call to
11156         bfd_simple_get_relocated_section_contents.
11157
11158 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11159
11160         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11161         * gdbarch.h, gdbarch.c: Regenerate.
11162         * inferior.h (FIX_CALL_DUMMY): Delete macro.
11163         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11164         available.
11165         * frame.h (generic_fix_call_dummy): Delete declaration.
11166         * dummy-frame.h: Update comment.
11167         * dummy-frame.c (generic_fix_call_dummy): Delete function.
11168         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11169         fix_call_dummy.
11170         * sh-tdep.c (sh_gdbarch_init): Ditto.
11171         * s390-tdep.c (s390_gdbarch_init): Ditto.
11172         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11173         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11174         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11175         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11176         * i386-tdep.c (i386_gdbarch_init): Ditto.
11177         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11178         * frv-tdep.c (frv_gdbarch_init): Ditto.
11179         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11180         * cris-tdep.c (cris_gdbarch_init): Ditto.
11181         * avr-tdep.c (avr_gdbarch_init): Ditto.
11182         * arm-tdep.c (arm_gdbarch_init): Ditto.
11183
11184 2003-03-31  J. Brobecker  <brobecker@gnat.com>
11185
11186         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11187         (INIT_FRAME_AP): Likewise.
11188         (EXTRA_FRAME_INFO): Likewise.
11189
11190 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11191
11192         * gdbarch.sh: Include "symfile.h".
11193         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11194         * gdbarch.h, gdbarch.c: Re-generate.
11195         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11196         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11197         call_dummy_address, the default is at entry_point_address.
11198         * v850-tdep.c (v850_gdbarch_init): Ditto.
11199         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11200         * sh-tdep.c (sh_gdbarch_init): Ditto.
11201         * s390-tdep.c (s390_gdbarch_init): Ditto.
11202         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11203         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11204         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11205         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11206         * i386-tdep.c (i386_gdbarch_init): Ditto.
11207         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11208         * frv-tdep.c (frv_gdbarch_init): Ditto.
11209         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11210         * cris-tdep.c (cris_gdbarch_init): Ditto.
11211         * arm-tdep.c (arm_gdbarch_init): Ditto.
11212
11213 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11214
11215         * gdbarch.sh (CALL_DUMMY_P): Delete.
11216         * gdbarch.h, gdbarch.c: Re-generate.
11217         * inferior.h (CALL_DUMMY_P): Delete macro.
11218         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11219         * vax-tdep.c (vax_gdbarch_init): Update.
11220         * v850-tdep.c (v850_gdbarch_init): Update.
11221         * sparc-tdep.c (sparc_gdbarch_init): Update.
11222         * sh-tdep.c (sh_gdbarch_init): Update.
11223         * s390-tdep.c (s390_gdbarch_init): Update.
11224         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11225         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11226         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11227         * mips-tdep.c (mips_gdbarch_init): Update.
11228         * mcore-tdep.c (mcore_gdbarch_init): Update.
11229         * m68k-tdep.c (m68k_gdbarch_init): Update.
11230         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11231         * ia64-tdep.c (ia64_gdbarch_init): Update.
11232         * i386-tdep.c (i386_gdbarch_init): Update.
11233         * h8300-tdep.c (h8300_gdbarch_init): Update.
11234         * frv-tdep.c (frv_gdbarch_init): Update.
11235         * d10v-tdep.c (d10v_gdbarch_init): Update.
11236         * cris-tdep.c (cris_gdbarch_init): Update.
11237         * breakpoint.c (deprecated_frame_in_dummy): Update.
11238         * avr-tdep.c (avr_gdbarch_init): Update.
11239         * alpha-tdep.c (alpha_gdbarch_init): Update.
11240         * arm-tdep.c (arm_gdbarch_init): Update.
11241         * dummy-frame.c (dummy_frame_this_id): Update comments.
11242         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11243         * frame.c (legacy_get_prev_frame): Ditto.
11244         * valops.c (call_function_by_hand): Delete function.
11245         (hand_function_call): Rename to call_function_by_hand
11246
11247 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11248
11249         2002-11-10 Klee Dienes <kdienes@apple.com>
11250         * value.h (struct value): Update comment.
11251
11252 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11253
11254         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11255         D10V_FP_REGNUM.
11256         (d10v_gdbarch_init): Do not set fp_regnum.
11257
11258         * frame.c (get_frame_base): Force ID initialization.
11259         (get_prev_frame): Move computation of the frame ID from here ...
11260         (get_frame_id): ... to here.
11261         (legacy_get_prev_frame): Mark the frame ID as valid.
11262         * frame.h (struct frame_info): Add field "id_p".
11263
11264 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
11265
11266         * i386-tdep.c (i386_store_struct_return): Removed.
11267         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11268
11269 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11270
11271         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11272         * gdbarch.h, gdbarch.c: Regenerate.
11273         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11274         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11275         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11276         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11277         * i386-tdep.c (i386_gdbarch_init): Ditto.
11278         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11279         * cris-tdep.c (cris_gdbarch_init): Ditto.
11280         * vax-tdep.c (vax_gdbarch_init): Ditto.
11281         * s390-tdep.c (s390_gdbarch_init): Ditto.
11282         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11283         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11284         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11285         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11286         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11287         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11288         * sparc-tdep.c (sparc_gdbarch_init): Update.
11289         * sh-tdep.c (sh_gdbarch_init): Update.
11290         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11291         * mips-tdep.c (mips_gdbarch_init): Update.
11292         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11293         * ia64-tdep.c (ia64_gdbarch_init): Update.
11294         * frv-tdep.c (frv_gdbarch_init): Update.
11295         * avr-tdep.c (avr_gdbarch_init): Update.
11296         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11297         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
11298         instead of when push_dummy_call is not available.
11299
11300 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11301
11302         * infttrace.c: Include "gdbthread.h".
11303         (parent_attach_all): Fix function signature.
11304         (call_ptrace): Update call.
11305         * Makefile.in (infttrace.o): Update dependencies.
11306
11307 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11308
11309         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11310         PUSH_RETURN_ADDRESS.
11311         * gdbarch.h, gdbarch.c: Regenerate.
11312         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11313         * x86-64-tdep.c (x86_64_init_abi): Update.
11314         * v850-tdep.c (v850_gdbarch_init): Update.
11315         * sparc-tdep.c (sparc_gdbarch_init): Update.
11316         * sh-tdep.c (sh_gdbarch_init): Update.
11317         * s390-tdep.c (s390_gdbarch_init): Update.
11318         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11319         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11320         * mips-tdep.c (mips_gdbarch_init): Update.
11321         * mcore-tdep.c (mcore_gdbarch_init): Update.
11322         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11323         * ia64-tdep.c (ia64_gdbarch_init): Update.
11324         * i386-tdep.c (i386_gdbarch_init): Update.
11325         * h8300-tdep.c (h8300_gdbarch_init): Update.
11326         * frv-tdep.c (frv_gdbarch_init): Update.
11327         * cris-tdep.c (cris_gdbarch_init): Update.
11328         * avr-tdep.c (avr_gdbarch_init): Update.
11329         * arm-tdep.c (arm_gdbarch_init): Update.
11330         * valops.c (hand_function_call): Update.
11331
11332 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11333
11334         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11335         sizeof_call_dummy_words.
11336         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11337         define.
11338         * gdbarch.h: Regenerate.
11339
11340 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11341
11342         * infttrace.h: New file.
11343         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11344         (hpread_get_textlow): Detect an uninitialized dn_bufp.
11345         (hpread_read_doc_function_type): Detect an initialized type1.
11346         (hpread_quick_traverse): Initialize mod_name_string.
11347         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11348         (som_solib_get_solib_by_pc): Declare.
11349         (so_lib_thread_start_addr): Declare.
11350         (no_shared_libraries): Declare.
11351         * somread.c (init_import_symbols): Make static.  Add forward
11352         declaration.
11353         * config/pa/nm-hppah.h: Include "infttrace.h" for
11354         parent_attach_all.
11355         (hppa_insert_hw_watchpoint): Declare.
11356         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11357         * hppah-nat.c: Include "gdb_string.h".
11358         (parent_attach_all): Delete extern declaration, moved to
11359         "infttrace.h".
11360         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11361         int.
11362         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11363         * Makefile.in (infttrace_h): Define.
11364         (hpread.o): Update dependencies.
11365         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11366         * hppa-hpux-tdep.c: Include "gdb_string.h".
11367         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11368         * infrun.c (handle_inferior_event): Always initialize
11369         stepped_after_stopped_by_watchpoint.  Add default and remove
11370         fallthrough in switch statement.
11371         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11372         parameter to int.
11373         (hppa_remove_hw_watchpoint): Ditto.
11374
11375 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11376
11377         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11378         offset.
11379
11380 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
11381
11382         * arm-tdep.c (arm_push_arguments): Delete.
11383         (struct stack_item): New type.
11384         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11385         (arm_store_struct_return): Delte.
11386         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
11387         arm_push_arguments or arm_store_struct_return.
11388
11389 2003-03-28  Andrew Cagney  <cagney@redhat.com>
11390
11391         * Makefile.in (d10v-tdep.o): Update dependencies.
11392         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11393         * d10v-tdep.c: Include "remote.h".
11394         (target_resume_hook): Delete extern declaration.
11395         (target_wait_loop_hook): Ditto.
11396         (tdisassemble_command): Eliminate assignment in "if" conditional.
11397         (d10v_ts2_register_sim_regno): Eliminate call to
11398         legacy_register_sim_regno.
11399         (d10v_ts3_register_sim_regno): Ditto.
11400
11401 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
11402
11403         * thread.c: Reindented.
11404         * lin-lwp.c: Ditto.
11405         * linux-proc.c: Ditto.
11406
11407 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
11408
11409         * MAINTAINERS (write after approval): Add myself.
11410
11411 2003-03-27  Theodore A. Roth  <troth@openavr.org>
11412
11413         * objc-exp.y: Add missing semi-colons.
11414
11415 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11416
11417         * regcache.c (write_sp): Delete function and references.
11418         * inferior.h (write_sp): Delete declaration.
11419         * valops.c (hand_function_call): Replace write_sp with
11420         TARGET_WRITE_SP.
11421         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11422         (sparc_pop_frame): Ditto.
11423
11424 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11425
11426         * NEWS: Mention removal of support for hppa*-*-bsd* and
11427         hppa*-*-osf* natives, and hppa*-*-pro* target.
11428         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11429         * config/pa/xm-pa.h: Obsolete file.
11430         * config/pa/xm-hppab.h: Obsolete file.
11431         * config/pa/nm-hppab.h: Obsolete file.
11432         * config/pa/tm-hppab.h: Obsolete file.
11433         * config/pa/tm-hppao.h: Obsolete file.
11434         * config/pa/nm-hppao.h: Obsolete file.
11435         * config/pa/tm-pro.h: Obsolete file.
11436         * config/pa/hppaosf.mt: Obsolete file.
11437         * config/pa/hppaosf.mh: Obsolete file.
11438         * config/pa/hppapro.mt: Obsolete file.
11439         * config/pa/hppabsd.mt: Obsolete file.
11440         * config/pa/hppabsd.mh: Obsolete file.
11441         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11442         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11443         hppa*-*-osf*.
11444
11445 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11446
11447         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11448         push_arguments.  Don't set push_return_address or write_sp.
11449         (d10v_push_dummy_call): Replace d10v_push_arguments.
11450         (d10v_push_return_address, d10v_write_sp): Delete function,
11451         handled by push_dummy_call.
11452
11453 2003-03-26  Andrew Cagney  <cagney@redhat.com>
11454
11455         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11456         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11457         regcache and dummy_addr parameters.
11458         * gdbarch.h, gdbarch.c: Re-generate.
11459         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11460         available; assume it will handle stack alignment and return
11461         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11462         legacy_push_arguments.
11463         (legacy_push_arguments): Rename default_push_arguments.
11464         * value.h (legacy_push_arguments): Rename default_push_arguments.
11465         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11466         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11467         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11468         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11469         * config/i386/tm-symmetry.h: Update.
11470         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11471         * x86-64-tdep.c (x86_64_init_abi): Update.
11472         * v850-tdep.c (v850_gdbarch_init): Update.
11473         * sparc-tdep.c (sparc_gdbarch_init): Update.
11474         * sh-tdep.c (sh_gdbarch_init): Update.
11475         * s390-tdep.c (s390_gdbarch_init): Update.
11476         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11477         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11478         * mips-tdep.c (mips_gdbarch_init): Update.
11479         * mcore-tdep.c (mcore_gdbarch_init): Update.
11480         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11481         * ia64-tdep.c (ia64_gdbarch_init): Update.
11482         * i386-tdep.c (i386_gdbarch_init): Update.
11483         * hppa-tdep.c (hppa_gdbarch_init): Update.
11484         * h8300-tdep.c (h8300_gdbarch_init): Update.
11485         * frv-tdep.c (frv_gdbarch_init): Update.
11486         * d10v-tdep.c (d10v_gdbarch_init): Update.
11487         * cris-tdep.c (cris_gdbarch_init): Update.
11488         * avr-tdep.c (avr_gdbarch_init): Update.
11489         * arm-tdep.c (arm_gdbarch_init): Update.
11490         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11491         * alpha-tdep.c (alpha_gdbarch_init): Update.
11492
11493 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11494
11495         * signals/signals.c (do_target_signal_to_host): Correct realtime
11496         signal range test.
11497
11498 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11499
11500         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11501         (struct sal_chain, map_catch_names): Remove.
11502         (catch_exception_command_1): Don't call
11503         handle_gnu_4_16_catch_command.
11504
11505 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11506
11507         From Mark Dettinger <dettinge@de.ibm.com>:
11508         * dwarf2cfi.c (read_2u): Increment pointer by two.
11509
11510 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11511
11512         * signals/signals.c: Fix typos in last change.
11513
11514 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11515
11516         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11517         not already defined.  Use __SIGRTMIN if available.
11518         (target_signal_from_host): Remove SIGRTMIN block.
11519         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11520         the signal is within the realtime range.
11521
11522 2003-03-25  Adam Fedor  <fedor@gnu.org>
11523
11524         * Makefile.in (infrun.o): Add $(language_h)
11525         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11526         for language specific trampolines.
11527         * language.h (struct language_defn): Add skip_trampoline.
11528         (skip_language_trampoline): Declare.
11529         * language.c (unk_lang_trampoline, skip_language_trampoline):
11530         New functions.
11531         (unknown_language_defn, auto_language_defn, local_language_defn):
11532         Add ukn_lang_trampoline.
11533         * ada-lang.c (ada_language_defn): Add NULL for language
11534         specific skip_trampoline.
11535         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11536         scm-lang.c: Likewise.
11537         * objc-lang.c (objc_skip_trampoline): New function.
11538         (objc_language_defn): Add objc_skip_trampoline.
11539
11540 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11541
11542         * frame.c (get_prev_frame): Delay validating a frame's ID -
11543         non-NULL, didn't go backwards - until an attempt to unwind it to
11544         the previous frame.
11545
11546 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11547
11548         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11549         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11550         * gdbarch.h, gdbarch.c: Re-generate.
11551         * config/sparc/tm-sparc.h
11552         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11553         * sparc-tdep.c (sparc_gdbarch_init): Set
11554         deprecated_extra_stack_alignment_needed.
11555         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11556         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11557         extra_stack_alignment_needed.
11558         * v850-tdep.c (v850_gdbarch_init): Ditto.
11559         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11560         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11561         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11562         * cris-tdep.c (cris_gdbarch_init): Ditto.
11563         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11564         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11565
11566 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11567
11568         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11569         STORE_STRUCT_RETURN.
11570         * gdbarch.h, gdbarch.c: Regenerate.
11571         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11572         (d10v_push_arguments): Set the struct return register.
11573         (d10v_gdbarch_init): Update.
11574         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11575         * x86-64-tdep.c (x86_64_init_abi): Update.
11576         * vax-tdep.c (vax_gdbarch_init): Update.
11577         * v850-tdep.c (v850_gdbarch_init): Update.
11578         * sparc-tdep.c (sparc_gdbarch_init): Update.
11579         * sh-tdep.c (sh_gdbarch_init): Update.
11580         * s390-tdep.c (s390_gdbarch_init): Update.
11581         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11582         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11583         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11584         * mips-tdep.c (mips_gdbarch_init): Update.
11585         * mcore-tdep.c (mcore_gdbarch_init): Update.
11586         * m68k-tdep.c (m68k_gdbarch_init): Update.
11587         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11588         * ia64-tdep.c (ia64_gdbarch_init): Update.
11589         * i386-tdep.c (i386_gdbarch_init): Update.
11590         * hppa-tdep.c (hppa_gdbarch_init): Update.
11591         * h8300-tdep.c (h8300_gdbarch_init): Update.
11592         * frv-tdep.c (frv_gdbarch_init): Update.
11593         * cris-tdep.c (cris_gdbarch_init): Update.
11594         * avr-tdep.c (avr_gdbarch_init): Update.
11595         * arm-tdep.c (arm_gdbarch_init): Update.
11596         * alpha-tdep.c (alpha_gdbarch_init): Update.
11597
11598 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11599
11600         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11601         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11602         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11603         * gdbarch.h, gdbarch.c: Regenerate.
11604         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11605         call_dummy_stack_adjust_p.
11606         * vax-tdep.c (vax_gdbarch_init): Ditto.
11607         * v850-tdep.c (v850_gdbarch_init): Ditto.
11608         * sh-tdep.c (sh_gdbarch_init): Ditto.
11609         * s390-tdep.c (s390_gdbarch_init): Ditto.
11610         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11611         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11612         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11613         * mips-tdep.c (mips_gdbarch_init): Ditto.
11614         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11615         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11616         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11617         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11618         * i386-tdep.c (i386_gdbarch_init): Ditto.
11619         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11620         * frv-tdep.c (frv_gdbarch_init): Ditto.
11621         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11622         * cris-tdep.c (cris_gdbarch_init): Ditto.
11623         * avr-tdep.c (avr_gdbarch_init): Ditto.
11624         * arm-tdep.c (arm_gdbarch_init): Ditto.
11625         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11626         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11627         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11628         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11629         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11630         call_dummy_stack_adjust_p.
11631         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11632         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11633         * sparc-tdep.c (sparc32_push_arguments): Update.
11634         * valops.c (hand_function_call): Update.
11635
11636 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11637
11638         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11639         set_gdbarch_char_signed.
11640
11641 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11642
11643         PR cli/548
11644         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11645
11646 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11647
11648         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11649         (_initialize_arm_tdep): Don't set tm_print_insn.
11650
11651 2003-03-24  Adam Fedor  <fedor@gnu.org>
11652
11653         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11654         * objc-lang.h: Add multiple inclusion protection.
11655         (start_msglist, add_msglist, end_msglist): Additional declarations.
11656
11657 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11658
11659         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11660         value was renamed to ARM_FLOAT_SOFT_FPA.
11661
11662 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11663
11664         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11665         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11666         * gdbarch.h, gdbarch.c: Regenerate.
11667         * valops.c (hand_function_call): Update.
11668         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11669         * frame.c (legacy_saved_regs_this_id): Update.
11670         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11671         * dummy-frame.h: Update.
11672         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11673         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11674         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11675         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11676         * config/m68k/tm-sun3.h: Update.
11677         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11678         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11679         * x86-64-tdep.c (x86_64_init_abi): Update.
11680         * vax-tdep.c (vax_gdbarch_init): Update.
11681         * v850-tdep.c (v850_gdbarch_init): Update.
11682         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11683         * sh-tdep.c (sh_gdbarch_init): Update.
11684         * s390-tdep.c (s390_gdbarch_init): Update.
11685         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11686         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11687         (frame_get_saved_regs): Update.
11688         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11689         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11690         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11691         * mips-tdep.c (mips_gdbarch_init): Update.
11692         * mcore-tdep.c (mcore_gdbarch_init): Update.
11693         * m68k-tdep.c (m68k_gdbarch_init): Update.
11694         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11695         * ia64-tdep.c (ia64_gdbarch_init): Update.
11696         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11697         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11698         (i386_interix_back_one_frame): Update.
11699         * hppa-tdep.c (hppa_gdbarch_init): Update.
11700         (hppa_init_extra_frame_info): Update.
11701         * h8300-tdep.c (h8300_gdbarch_init): Update.
11702         * frv-tdep.c (frv_gdbarch_init): Update.
11703         * cris-tdep.c (cris_gdbarch_init): Update.
11704         * avr-tdep.c (avr_gdbarch_init): Update.
11705         * arm-tdep.c (arm_gdbarch_init): Update.
11706         * alpha-tdep.c (alpha_gdbarch_init): Update.
11707
11708 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11709
11710         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11711         (arm_get_fp_model): Declare.
11712         * arm-tdep.c (fp_model_strings): New string array.
11713         (arm_fp_model, current_fp_model): New variables.
11714         (arm_get_fp_model): New function.
11715         (arm_set_fp): New function.
11716         (set_fp_model_sfunc): New function.
11717         (show_fp_model): New function.
11718         (_initialize_arm_tdep): Add new command to set/show the FPU.
11719         (arm_extract_return_value): Use arm_get_fp_model.
11720         (arm_store_return_value): Likewise.
11721         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11722         to initialize the floating-point data types.
11723         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11724         model is FPA.
11725
11726 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11727
11728         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11729         the current setting of each value.
11730         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11731         new_set and new_show.  Use add_setshow_cmd_full and
11732         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11733         commands and add new version as subcommands of "set/show arm".
11734
11735 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11736
11737         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11738         (set_arm_command, show_arm_command): New functions.
11739         (_initialize_arm_tdep): Add them.
11740         (num_disassembly_options): Renamed from num_flavor_options.
11741         (valid_disassembly_styles): Renamed from valid_flavors.
11742         (disassembly_style): Renamed from disassembly_flavor.
11743         (set_disassembly_style_sfunc): Renamed from
11744         set_disassembly_flavor_sfunc.
11745         (set_disassembly_style): Renamed from set_disassembly_flavor.
11746         (arm_othernames): Updated.
11747         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11748         command.  Add "set/show arm disassembly" commands.  Deprecate
11749         "othernames" command.
11750
11751 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11752
11753         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11754         (arm-tdep.o): Depend on elf_arm_h.
11755
11756 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11757
11758         * Makefile.in (coff_internal_h): Define.
11759         (arm-tdep.o): Update dependencies.
11760
11761 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11762
11763         * arm-tdep.c (prologue_cache): Delete.
11764         (check_prologue_cache, save_prologue_cache): Delete.
11765         (arm_scan_prologue): Don't check or update the prologue_cache.
11766         (arm_gdb_arch_init): Don't initialize it.
11767         (_initialize_arm_tdep): Likewise.
11768
11769 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11770
11771         * MAINTAINERS (tui): Maintainer of tui code.
11772
11773 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11774
11775         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11776         (i386-cygwin-tdep.o): Add dependencies.
11777         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11778         * i386-cygwin-tdep.c: New file.
11779         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11780         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11781
11782 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11783
11784         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11785         (handle_inferior_event): Remove code calling
11786         DYNAMIC_TRAMPOLINE_NEXTPC.
11787
11788         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11789         already has a full path.
11790
11791         * main.c (gdb_main): Return 1.
11792         (captured_main): Call error to report an invalid interpreter.
11793
11794         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11795         * alpha-osf1-tdep.c: Include "gdb_string.h".
11796
11797 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11798
11799         Continuing work to convert the hppa targets to multiarch partial.
11800
11801         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11802         method, now that hppa_push_dummy_frame has a conformant prototype.
11803         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11804         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11805         for the switch to multiarch partial.
11806
11807 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11808
11809         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11810         when iss is issNull.
11811
11812 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11813
11814         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11815         NUM_REGS bounds check.
11816
11817 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11818
11819         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11820         * mips-tdep.c (gdb_assert.h): Include.
11821         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11822         (mips_register_name): Handle integer registers explicitly.  Add
11823         bounds checking.
11824         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11825         (mips_lsi33k_reg_names): Don't list integer registers; they're
11826         handled by mips_register_name() now.
11827         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11828         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11829         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11830         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11831         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11832
11833 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11834
11835         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11836         a void pointer.
11837         * gdbtypes.h (print_scalar_formatted): Update declaration.
11838         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11839
11840 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11841
11842         * infrun.c (observer.h): Add #include.
11843         (normal_stop): Add call to observer_notify_normal_stop.
11844         * Makefile.in (infrun.o): Add dependency on observer.h.
11845
11846 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11847
11848         Continuing work to convert the hppa targets to multiarch partial.
11849         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11850         parameter. Reformat comment.
11851         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11852         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11853         to match new profile.
11854
11855 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11856
11857         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11858         appear to be working in any case.
11859
11860 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11861
11862         * observer.c (observer_test_first_observer): New static variable.
11863         (observer_test_second_observer): Likewise.
11864         (observer_test_third_observer): Likewise.
11865         (observer_test_first_notification_function): New static function.
11866         (observer_test_second_notification_function): Likewise.
11867         (observer_test_third_notification_function): Likewise.
11868
11869 2003-03-17  J. Brobecker  <brobecker@gnat.com>
11870
11871         * hppa-tdep.c (gdb_assert.h): Add missing #include.
11872         * somsolib.c (gdb_assert.h): Likewise.
11873         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11874         (somsolib.o): Likewise.
11875
11876 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11877
11878         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11879         BFD.  Simplify setting of di.endian.
11880
11881 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11882
11883         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11884         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11885
11886         From Elena Zannoni  <ezannoni@redhat.com>
11887         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11888         vector and floating-point parameters.
11889         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11890         convention.
11891         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11892
11893 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
11894
11895         * MAINTAINERS: Remove my name from several maintainership roles.
11896
11897 2003-03-17  Andrew Cagney  <cagney@redhat.com>
11898
11899         Fix frame off-by-one bug.
11900         * frame-unwind.h (frame_this_id_ftype): Replace
11901         frame_unwind_id_ftype.
11902         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11903         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
11904         with "prev_register".
11905         * frame-unwind.c (frame_unwind_find_by_pc): Return
11906         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
11907         comment.
11908         * dummy-frame.c (cached_find_dummy_frame): Delete function.
11909         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11910         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11911         (dummy_frame_unwind): Update.
11912         * sentinel-frame.c (sentinel_frame_prev_register): Replace
11913         sentinel_frame_register_unwind.
11914         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11915         (sentinel_frame_unwinder): Update.
11916         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11917         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11918         * frame.c (create_sentinel_frame): Update. Initialize
11919         "prologue_cache" instead of "unwind_cache".
11920         (frame_register_unwind): Call this frame's prev_register with the
11921         next frame and this frame's prologue cache.
11922         (get_prev_frame): Simplify.  Always call prev frame's this_id with
11923         this frame and prev frame's prologue cache.  Document that this
11924         call is shifted one to the left when compared to the
11925         frame_register_unwind call.
11926         (legacy_saved_regs_prev_register): Replace
11927         frame_saved_regs_register_unwind.
11928         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11929         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11930         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11931         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11932         (d10v_frame_unwind): Update.
11933         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11934         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11935         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11936         "saved_regs" with "this_saved_regs".
11937
11938 2003-03-16  Andrew Cagney  <cagney@redhat.com>
11939
11940         * frame.c (frame_pop): Don't call target_store_registers.  Fix
11941         problem reported by Mark Kettenis.
11942
11943 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
11944
11945         * i386-tdep.c (i386_register_type): Renamed from
11946         i386_register_virtual_type.  Adjust function signature.
11947         (i386_gdbarch_init): Set register_type instead of
11948         deprecated_max_register_raw_size,
11949         deprecated_max_register_virtual_size and register_virtual_type.
11950
11951 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11952
11953         * frame.c (get_prev_frame): When a legacy frame, always call
11954         legacy_get_prev_frame.  Simplify unwind code using assumption that
11955         the unwinder is new.
11956         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11957         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11958         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11959
11960 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11961
11962         * frame.c (get_saved_register): Delete function.
11963         * frame.h (get_saved_register): Delete declaration.
11964         * xstormy16-tdep.c: Update comment.
11965         * regcache.h: Update comments.
11966         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11967         get_saved_register and extract_address, use
11968         frame_read_unsigned_register.
11969         (sparc_frame_saved_pc): Ditto.
11970         (sparc_get_saved_register): Instead of get_saved_register, use
11971         frame_register.
11972         (sparc_pop_frame): Ditto.
11973         * findvar.c: Update comments.
11974         (value_of_register): Call frame_register instead of
11975         get_saved_register.
11976         (value_from_register): Ditto.
11977         * config/sparc/tm-sparc.h: Update comment.
11978         * breakpoint.c: Update comment.
11979
11980 2003-03-14  Andrew Cagney  <cagney@redhat.com>
11981
11982         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11983         GET_SAVED_REGISTER.
11984         * gdbarch.h, gdbarch.c: Re-generate.
11985         * frame.h: Update comments.
11986         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11987         * x86-64-tdep.c (x86_64_init_abi): Update.
11988         * sparc-tdep.c (sparc_gdbarch_init): Update.
11989         * sh-tdep.c (sh_gdbarch_init): Update.
11990         * mips-tdep.c (mips_gdbarch_init): Update.
11991         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11992         * cris-tdep.c (cris_gdbarch_init): Update.
11993         * ia64-tdep.c (ia64_gdbarch_init): Update.
11994         * frame.c (frame_register): Update.
11995         (get_saved_register): Update.
11996         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
11997
11998 2003-03-13  Andrew Cagney  <cagney@redhat.com>
11999
12000         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12001         * gdbarch.h, gdbarch.c: Regenerate.
12002         * valops.c (hand_function_call): Update comment.
12003         * stack.c (return_command): Update comment.
12004         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12005         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12006         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12007         * x86-64-tdep.c (x86_64_init_abi): Update.
12008         * vax-tdep.c (vax_gdbarch_init): Update.
12009         * v850-tdep.c (v850_gdbarch_init): Update.
12010         * sparc-tdep.c (sparc_gdbarch_init): Update.
12011         * sh-tdep.c (sh_gdbarch_init): Update.
12012         * s390-tdep.c (s390_gdbarch_init): Update.
12013         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12014         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12015         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12016         * mips-tdep.c (mips_gdbarch_init): Update.
12017         * mcore-tdep.c (mcore_gdbarch_init): Update.
12018         * m68k-tdep.c (m68k_gdbarch_init): Update.
12019         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12020         * ia64-tdep.c (ia64_gdbarch_init): Update.
12021         * i386-tdep.c (i386_gdbarch_init): Update.
12022         * hppa-tdep.c (hppa_gdbarch_init): Update.
12023         * h8300-tdep.c (h8300_gdbarch_init): Update.
12024         * frv-tdep.c (frv_gdbarch_init): Update.
12025         * cris-tdep.c (cris_gdbarch_init): Update.
12026         * avr-tdep.c (avr_gdbarch_init): Update.
12027         * arm-tdep.c (arm_gdbarch_init): Update.
12028         * alpha-tdep.c (alpha_gdbarch_init): Update.
12029
12030 2003-03-13  Andrew Cagney  <cagney@redhat.com>
12031
12032         * frame.c (legacy_frame_p): New function.
12033         (get_prev_frame): Use legacy_frame_p.
12034         * frame.h (legacy_frame_p): Declare.
12035
12036 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12037
12038         * MAINTAINERS (write after approval): Alphabetically
12039         listing corrected.
12040
12041 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12042
12043         * MAINTAINERS (write after approval): Add myself.
12044
12045 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12046
12047         * frame.c (get_prev_frame): Rename the frame parameter to
12048         "this_frame".
12049         (get_next_frame, legacy_get_prev_frame): Ditto.
12050
12051 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12052
12053         * frame.c (get_current_frame): Check target_has_registers before
12054         checking target_has_stack.
12055         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12056         instead of deprecated_selected_frame.
12057         * findvar.c (value_of_register): Pass "frame", not
12058         deprecated_selected_frame, to value_of_builtin_reg.
12059
12060 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12061
12062         * regcache.c (regcache_cooked_write_signed): New function.
12063         (regcache_cooked_write_unsigned): New function.
12064         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12065         (regcache_cooked_read_signed): Fix regnum in range assertion.
12066         * regcache.h (regcache_cooked_write_signed): Declare.
12067         (regcache_cooked_write_unsigned): Declare.
12068
12069 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12070
12071         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12072         * gdbarch.h, gdbarch.c: Re-generate.
12073         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12074         * x86-64-tdep.h: Update.
12075         * x86-64-tdep.c (x86_64_init_abi): Update.
12076         * v850-tdep.c (v850_gdbarch_init): Update.
12077         * sparc-tdep.c (sparc_gdbarch_init): Update.
12078         * sh-tdep.c (sh_gdbarch_init): Update.
12079         * s390-tdep.c (s390_gdbarch_init): Update.
12080         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12081         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12082         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12083         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12084         * mips-tdep.c (mips_gdbarch_init): Update.
12085         * mcore-tdep.c (mcore_gdbarch_init): Update.
12086         * m68k-tdep.c (m68k_gdbarch_init): Update.
12087         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12088         * ia64-tdep.c (ia64_gdbarch_init): Update.
12089         * i386-tdep.c (i386_gdbarch_init): Update.
12090         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12091         * hppa-tdep.c (hppa_gdbarch_init): Update.
12092         * h8300-tdep.c (h8300_gdbarch_init): Update.
12093         * frv-tdep.c (frv_gdbarch_init): Update.
12094         * cris-tdep.c (cris_gdbarch_init): Update.
12095         * avr-tdep.c (avr_gdbarch_init): Update.
12096         * arm-tdep.c (arm_gdbarch_init): Update.
12097         * alpha-tdep.c (alpha_gdbarch_init): Update.
12098         * sh-tdep.c (sh_init_extra_frame_info): Update.
12099         (sh64_init_extra_frame_info): Update.
12100         * ns32knbsd-nat.c (frame_num_args): Update.
12101         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12102         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12103         (xstormy16_frame_chain_valid): Update.
12104         * vax-tdep.c (vax_saved_pc_after_call): Update.
12105         * v850-tdep.c (v850_frame_chain): Update.
12106         (v850_pop_frame): Update.
12107         (v850_init_extra_frame_info): Update.
12108         * sparc-tdep.c (setup_arbitrary_frame): Update.
12109         * ns32k-tdep.c (umax_frame_num_args): Update.
12110         * s390-tdep.c (s390_pop_frame_regular): Update.
12111         * mn10300-tdep.c (mn10300_frame_chain): Update.
12112         (mn10300_pop_frame_regular): Update.
12113         (mn10300_init_extra_frame_info): Update.
12114         * mips-tdep.c (mips_init_frame_pc_first): Update.
12115         (mips_frame_chain): Update.
12116         (mips_pop_frame): Update.
12117         * mcore-tdep.c (mcore_frame_chain): Update.
12118         (mcore_pop_frame): Update.
12119         (mcore_init_extra_frame_info): Update.
12120         * arch-utils.c (init_frame_pc_default): Update.
12121         * m68k-tdep.c (isi_frame_num_args): Update.
12122         (delta68_frame_num_args): Update.
12123         (news_frame_num_args): Update.
12124         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12125         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12126         (alpha_frame_chain): Update.
12127         (alpha_pop_frame): Update.
12128         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12129         (hppa_init_extra_frame_info): Update.
12130         (hppa_frame_chain): Update.
12131         (hppa_frame_chain_valid): Update.
12132         * cris-tdep.c (cris_init_extra_frame_info): Update.
12133         * avr-tdep.c (avr_init_extra_frame_info): Update.
12134         * arm-tdep.c (arm_frame_chain_valid): Update.
12135         (arm_init_extra_frame_info): Update.
12136         (arm_pop_frame): Update.
12137         * frame.c (frame_pc_unwind): Update.
12138         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12139         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12140         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12141         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12142         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12143         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12144
12145 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12146
12147         Eliminate the need for POP_FRAME.
12148         * frame.c (do_frame_unwind_register): New function.
12149         (frame_pop): When no POP_FRAME, pop the frame using register
12150         unwind and a scratch regcache.
12151         (frame_saved_regs_pop): Delete function.
12152         (trad_frame_unwinder): Update.
12153         * d10v-tdep.c (d10v_frame_pop): Delete function.
12154         (d10v_frame_unwind): Update.
12155         * sentinel-frame.c (sentinel_frame_pop): Delete function.
12156         (sentinel_frame_unwinder): Update.
12157         * dummy-frame.c (dummy_frame_pop): Delete function.
12158         (dummy_frame_unwind): Update.
12159         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12160         (struct frame_unwind): Update.
12161
12162 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
12163
12164         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12165         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12166         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12167         Do range checks on register number obtained from debugging info.
12168         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12169         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
12170         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12171         mapping function.
12172         (do_fp_register_row): Fix typo which caused double type to be
12173         used when attempting to unpack a float.
12174
12175 2003-03-11  J. Brobecker  <brobecker@gnat.com>
12176
12177         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12178
12179 2003-03-11  Andrew Cagney  <cagney@redhat.com>
12180
12181         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12182         frame.  Problem found by Corinna Vinschen.
12183
12184 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
12185
12186         * doublest.c (floatformat_from_length): Accept also
12187         the real size of 'long double' type.
12188
12189 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
12190
12191         From Klee Dienes <kdienes@apple.com>:
12192         * breakpoint.c (bpstat_copy): Copy the command lines as well
12193         as the old value, to match what is freed in bpstat_clear.
12194
12195 2003-03-10  David Carlton  <carlton@math.stanford.edu>
12196
12197         * minsyms.c (add_minsym_to_hash_table): Replace
12198         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12199         (compare_minimal_symbols, compact_minimal_symbols)
12200         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12201         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12202         of DEPRECATED_SYMBOL_MATCHES_NAME.
12203         (lookup_minimal_symbol_solib_trampoline): Ditto.
12204
12205 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12206
12207         * regcache.h (regcache_cooked_read_ftype): Define.
12208         (regcache_save, regcache_restore): Add a cooked_read parameter.
12209         * regcache.c (regcache_save, regcache_restore): Update.
12210         (do_cooked_read): New function.
12211         (regcache_cpy): Pass do_cooked_read to regcache_save and
12212         regcache_restore.
12213
12214 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12215
12216         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12217         * gdbarch.h, gdbarch.c: Re-generate.
12218         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12219         * x86-64-tdep.h: Update.
12220         * x86-64-tdep.c (x86_64_init_abi): Update.
12221         * v850-tdep.c (v850_gdbarch_init): Update.
12222         * sparc-tdep.c (sparc_gdbarch_init): Update.
12223         * sh-tdep.c (sh_gdbarch_init): Update.
12224         * s390-tdep.c (s390_gdbarch_init): Update.
12225         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12226         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12227         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12228         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12229         * mips-tdep.c (mips_gdbarch_init): Update.
12230         * mcore-tdep.c (mcore_gdbarch_init): Update.
12231         * m68k-tdep.c (m68k_gdbarch_init): Update.
12232         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12233         * ia64-tdep.c (ia64_gdbarch_init): Update.
12234         * i386-tdep.c (i386_gdbarch_init): Update.
12235         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12236         * hppa-tdep.c (hppa_gdbarch_init): Update.
12237         * h8300-tdep.c (h8300_gdbarch_init): Update.
12238         * frv-tdep.c (frv_gdbarch_init): Update.
12239         * cris-tdep.c (cris_gdbarch_init): Update.
12240         * avr-tdep.c (avr_gdbarch_init): Update.
12241         * arm-tdep.c (arm_gdbarch_init): Update.
12242         * alpha-tdep.c (alpha_gdbarch_init): Update.
12243         * sh-tdep.c (sh_init_extra_frame_info): Update.
12244         (sh64_init_extra_frame_info): Update.
12245         * ns32knbsd-nat.c (frame_num_args): Update.
12246         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12247         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12248         (xstormy16_frame_chain_valid): Update.
12249         * vax-tdep.c (vax_saved_pc_after_call): Update.
12250         * v850-tdep.c (v850_frame_chain): Update.
12251         (v850_pop_frame): Update.
12252         (v850_init_extra_frame_info): Update.
12253         * sparc-tdep.c (setup_arbitrary_frame): Update.
12254         * ns32k-tdep.c (umax_frame_num_args): Update.
12255         * s390-tdep.c (s390_pop_frame_regular): Update.
12256         * mn10300-tdep.c (mn10300_frame_chain): Update.
12257         (mn10300_pop_frame_regular): Update.
12258         (mn10300_init_extra_frame_info): Update.
12259         * mips-tdep.c (mips_init_frame_pc_first): Update.
12260         (mips_frame_chain): Update.
12261         (mips_pop_frame): Update.
12262         * mcore-tdep.c (mcore_frame_chain): Update.
12263         (mcore_pop_frame): Update.
12264         (mcore_init_extra_frame_info): Update.
12265         * arch-utils.c (init_frame_pc_default): Update.
12266         * m68k-tdep.c (isi_frame_num_args): Update.
12267         (delta68_frame_num_args): Update.
12268         (news_frame_num_args): Update.
12269         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12270         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12271         (alpha_frame_chain): Update.
12272         (alpha_pop_frame): Update.
12273         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12274         (hppa_init_extra_frame_info): Update.
12275         (hppa_frame_chain): Update.
12276         (hppa_frame_chain_valid): Update.
12277         * cris-tdep.c (cris_init_extra_frame_info): Update.
12278         * avr-tdep.c (avr_init_extra_frame_info): Update.
12279         * arm-tdep.c (arm_frame_chain_valid): Update.
12280         (arm_init_extra_frame_info): Update.
12281         (arm_pop_frame): Update.
12282         * frame.c (frame_pc_unwind): Update.
12283         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12284         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12285         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12286         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12287         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12288         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12289
12290 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12291
12292         * gdbarch.sh (gdbarch_unwind_pc): New method.
12293         * gdbarch.h, gdbarch.c: Regenerate.
12294         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
12295         but use read_pc and FRAME_SAVED_PC as fall backs.
12296         (frame_saved_regs_pc_unwind): Delete function.
12297         (trad_frame_unwinder): Update.
12298         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12299         (struct frame_unwind): Update.
12300         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12301         (dummy_frame_unwind): Update.
12302         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12303         (sentinel_frame_unwinder): Update.
12304         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12305         (d10v_frame_unwind): Update.
12306         (d10v_unwind_pc): New function.
12307         (d10v_gdbarch_init): Set unwind_pc.
12308
12309 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12310
12311         * gdbarch.h: Re-generate.
12312
12313         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12314         PC.
12315         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12316         the PC register.
12317
12318 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
12319
12320         * gdbarch.sh (save_dummy_frame_tos): Add comment.
12321
12322 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12323
12324         * cli-out.c: Update copyright.
12325         (cli_out_data): Define typedef.  Use instead of ui_out_data.
12326
12327 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12328
12329         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12330         the result.
12331
12332 2003-03-07  Andrew Cagney  <cagney@redhat.com>
12333
12334         * gdbarch.sh: Don't generate two macro definitions when an
12335         undefined macro taking no arguments.
12336         * gdbarch.h: Regenerate.
12337
12338 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
12339
12340         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12341         (x86_64_unwind_dummy_id): New functions.
12342         (x86_64_init_abi): Register these two new functions.
12343
12344 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
12345
12346         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12347         (x86_64_skip_prologue): Move prologue detection to
12348         separate function.
12349         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12350
12351 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12352
12353         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12354         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12355         * frame.c (get_prev_frame): Restructure the frame ID unwind code
12356         to use unwind_dummy_id when a dummy frame.
12357         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12358         predicate.
12359         * gdbarch.h, gdbarch.c: Regneerate.
12360
12361 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12362
12363         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12364         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12365         Do not use d10v_read_sp or d10v_read_fp when obtaining register
12366         values.
12367
12368 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12369
12370         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12371         (struct d10v_unwind_cache): Delete field "frameless".  Replace
12372         "next_addr" with "sp_offset".  Add "r11_offset".
12373         (d10v_frame_unwind_cache): Update.
12374         (prologue_find_regs): Update.  When "mv r11, sp", save the
12375         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
12376         RN was saved in r11_offset.
12377
12378 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12379
12380         * frame.c (deprecated_update_frame_pc_hack): Also update the the
12381         cached PC value in the next frame.
12382
12383 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12384
12385         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12386         "id_unwind_cache" with "id".
12387         (frame_id_unwind): Delete declaration.
12388         * frame.c (frame_id_unwind): Delete function.
12389         (get_prev_frame): Call the frame id unwind method directly.  Store
12390         the returned next frame's ID value in NEXT_FRAME.  Note that there
12391         is a problem with the wrong unwind ID being called with the wrong
12392         unwind cache.
12393
12394 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12395
12396         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12397
12398 2003-03-05  James Ingham <jingham@apple.com>
12399             Daniel Jacobowitz  <drow@mvista.com>
12400
12401         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12402         (auto_cp_abi): New variable.
12403         (current_cp_abi, num_cp_abis): Make static.
12404         (CP_ABI_MAX): Define.
12405         (cp_abis): Turn into an array.
12406         (value_virtual_fn_field): Fix formatting.
12407         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
12408         takes a pointer.
12409         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12410         (list_cp_abis, _initialize_cp_abi): New functions.
12411         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
12412         declarations for cp_abis, num_cp_abis, current_cp_abi, and
12413         switch_to_cp_abi.  Update prototype for register_cp_abi.
12414         * Makefile.in (cp-abi.o): Update dependencies.
12415         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12416         instead of switch_to_cp_abi.
12417         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
12418         register_cp_abi.
12419         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12420         register_cp_abi.
12421         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12422
12423 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12424
12425         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12426         * dwarf2loc.c: Include "regcache.h".
12427         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12428         register_size.
12429         * Makefile.in (dwarf2loc.o): Update dependencies.
12430
12431 2003-03-04  Theodore A. Roth  <troth@openavr.org>
12432
12433         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12434         number of io registers reported by remote target is not a multiple of
12435         step.
12436
12437 2003-03-04  David Carlton  <carlton@math.stanford.edu>
12438
12439         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12440         (lookup_symbol_aux_psymtabs): Update call to
12441         lookup_partial_symbol.
12442         (lookup_transparent_type, find_main_psymtab)
12443         (make_symbol_overload_list): Ditto.
12444
12445 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12446
12447         * MAINTAINERS (Write after approval): Update my email address.
12448
12449 2003-03-03  Andrew Cagney  <cagney@redhat.com>
12450
12451         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12452         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12453         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12454         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12455         MAX_REGISTER_VIRTUAL_SIZE.
12456         * regcache.c (legacy_max_register_raw_size): New function.
12457         (legacy_max_register_virtual_size): New function.
12458         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12459         (MAX_REGISTER_RAW_SIZE): Define.
12460         (legacy_max_register_raw_size): Declare.
12461         (legacy_max_register_virtual_size): Declare.
12462         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12463         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12464         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12465         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12466         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12467         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12468         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12469         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12470         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12471         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12472         * vax-tdep.c (vax_gdbarch_init): Update.
12473         * v850-tdep.c (v850_gdbarch_init): Update.
12474         * sparc-tdep.c (sparc_gdbarch_init): Update.
12475         * sh-tdep.c (sh_gdbarch_init): Update.
12476         * s390-tdep.c (s390_gdbarch_init): Update.
12477         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12478         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12479         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12480         * mips-tdep.c (mips_gdbarch_init): Update.
12481         * mcore-tdep.c (mcore_gdbarch_init): Update.
12482         * m68k-tdep.c (m68k_gdbarch_init): Update.
12483         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12484         * ia64-tdep.c (ia64_gdbarch_init): Update.
12485         * i386-tdep.c (i386_gdbarch_init): Update.
12486         * hppa-tdep.c (hppa_gdbarch_init): Update.
12487         * h8300-tdep.c (h8300_gdbarch_init): Update.
12488         * frv-tdep.c (frv_gdbarch_init): Update.
12489         * cris-tdep.c (cris_gdbarch_init): Update.
12490         * avr-tdep.c (avr_gdbarch_init): Update.
12491         * arm-tdep.c (arm_gdbarch_init): Update.
12492         * alpha-tdep.c (alpha_gdbarch_init): Update.
12493         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12494         max_register_raw_size or max_register_virtual_size.
12495
12496 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12497
12498         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12499         SYMBOL_MATCHES_NAME, add comment.
12500         (SYMBOL_MATCHES_NATURAL_NAME): New.
12501         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12502         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12503         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12504         * symtab.c (lookup_partial_symbol): Use
12505         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12506         unhelpful comment.
12507         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12508         SYMBOL_MATCHES_NAME.
12509         Fix for PR c++/33.
12510
12511 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12512
12513         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12514         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12515         by regexp matching against SYMBOL_NATURAL_NAME.
12516
12517 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12518
12519         * linespec.c (find_method): Extract code into collect_methods.
12520         (collect_methods): New.
12521
12522 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
12523
12524         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12525         get_frame_base.
12526
12527         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12528         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12529
12530 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12531
12532         * arch-utils.c (generic_register_byte): Fix to use the loop index
12533         and not regnum when summing the size of all registers up to regnum.
12534
12535 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12536
12537         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12538         FRAME_INIT_SAVED_REGS.
12539         * gdbarch.h, gdbarch.c: Regenerate.
12540         * stack.c (frame_info): Update.
12541         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12542         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12543         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12544         * ns32k-tdep.c (ns32k_pop_frame): Update.
12545         * mips-tdep.c (mips_pop_frame): Update.
12546         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12547         * ia64-tdep.c (ia64_frame_chain): Update.
12548         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12549         (ia64_frameless_function_invocation): Update.
12550         (ia64_init_extra_frame_info): Update.
12551         (ia64_pop_frame_regular): Update.
12552         * frame.h (struct frame_info): Update comment.
12553         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12554         * frame.c (frame_saved_regs_register_unwind): Update.
12555         (frame_saved_regs_register_unwind): Update.
12556         (deprecated_generic_get_saved_register): Update.
12557         * cris-tdep.c: Update comment.
12558         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12559         Rename macro.
12560         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12561         * x86-64-tdep.c (x86_64_init_abi): Update.
12562         * vax-tdep.c (vax_gdbarch_init): Update.
12563         * v850-tdep.c (v850_gdbarch_init): Update.
12564         * sparc-tdep.c (sparc_gdbarch_init): Update.
12565         * sh-tdep.c (sh_gdbarch_init): Update.
12566         * s390-tdep.c (s390_gdbarch_init): Update.
12567         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12568         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12569         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12570         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12571         * mips-tdep.c (mips_gdbarch_init): Update.
12572         * mcore-tdep.c (mcore_gdbarch_init): Update.
12573         * m68k-tdep.c (m68k_gdbarch_init): Update.
12574         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12575         * ia64-tdep.c (ia64_gdbarch_init): Update.
12576         * i386-tdep.c (i386_gdbarch_init): Update.
12577         * frv-tdep.c (frv_gdbarch_init): Update.
12578         * avr-tdep.c (avr_gdbarch_init): Update.
12579         * arm-tdep.c (arm_gdbarch_init): Update.
12580         * alpha-tdep.c (alpha_gdbarch_init): Update.
12581
12582 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12583
12584         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12585         option enum and switch.  When no windows, set the interpreter to
12586         INTERP_CONSOLE.
12587
12588 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12589
12590         * main.c (captured_main): Replace magic option characters with an
12591         enum.
12592
12593 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12594
12595         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12596         INIT_EXTRA_FRAME_INFO.
12597         * gdbarch.h, gdbarch.c: Regenerate.
12598         * arm-tdep.c: Update comments.
12599         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12600         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12601         * frame.h, avr-tdep.c: Ditto.
12602         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12603         (create_new_frame, legacy_get_prev_frame): Ditto.
12604         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12605         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12606         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12607         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12608         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12609         * v850-tdep.c (v850_gdbarch_init): Ditto.
12610         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12611         * sh-tdep.c (sh_gdbarch_init): Ditto.
12612         * s390-tdep.c (s390_gdbarch_init): Ditto.
12613         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12614         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12615         * mips-tdep.c (mips_gdbarch_init): Ditto.
12616         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12617         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12618         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12619         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12620         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12621         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12622         * frv-tdep.c (frv_gdbarch_init): Ditto.
12623         * cris-tdep.c (cris_gdbarch_init): Ditto.
12624         * avr-tdep.c (avr_gdbarch_init): Ditto.
12625         * arm-tdep.c (arm_gdbarch_init): Ditto.
12626         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12627         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12628
12629 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12630
12631         * gdbarch.sh (register_type): New function with predicate.
12632         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12633         * gdbarch.h, gdbarch.c: Re-generate.
12634         * arch-utils.c (generic_register_byte): Use generic_register_size.
12635         (generic_register_size): When available, use
12636         gdbarch_register_type.
12637         * regcache.c (init_regcache_descr): When available, initialize the
12638         register type array using gdbarch_register_type.  If the
12639         architecture supplies gdbarch_register_type, do not use the legacy
12640         regcache layout.
12641         * d10v-tdep.c (d10v_register_type): Replace
12642         d10v_register_virtual_type.
12643         (d10v_gdbarch_init): Set register_type instead of
12644         register_virtual_type.
12645
12646 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12647
12648         * Makefile.in (ax-gdb.o): Update dependencies.
12649         * ax-gdb.c: Include "regcache.h".
12650         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12651         * findvar.c (value_of_register): Ditto.
12652         * infcmd.c (default_print_registers_info): Ditto.
12653
12654 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12655
12656         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12657         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12658
12659 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12660
12661         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12662         of STREQ.
12663
12664 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12665
12666         * Makefile.in (dwarf2loc.o): Update dependencies.
12667         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12668         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12669         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12670         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12671         (locexpr_tracepoint_var_ref): New function.
12672         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12673
12674 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12675
12676         * regcache.c (register_size): New function.
12677         * regcache.h (register_size): Declare
12678         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12679         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12680
12681 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12682
12683         * linespec.c (decode_compound): Extract code into find_method.
12684         (find_method): New.
12685
12686 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12687
12688         * Makefile.in: Add rules to build and link in observer.o.
12689
12690 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12691
12692         * observer.c: Minor comments edits.
12693
12694 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12695
12696         * observer.h, observer.c: New file.
12697
12698 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12699
12700         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12701
12702 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12703
12704         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12705         (M6812_OP_STS_EXT): Likewise.
12706         (m6811_prologue): Use the above to recognize prologue.
12707         (m6812_prologue): Likewise.
12708
12709 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12710
12711         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12712         SYMBOL_PRINT_NAME.
12713         (compare_psymbols): Ditto.
12714         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12715
12716 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12717
12718         * f-lang.c (build_fortran_types): New function.
12719         (_initialize_f_language): Gdbarch-register built-in fortran types.
12720         * doublest.c (extract_floating): Fix warning text.
12721
12722 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12723
12724         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12725         predicate.  Replaces PUSH_DUMMY_FRAME.
12726         * gdbarch.h, gdbarch.c: Regnerate.
12727         * valops.c (hand_function_call): Update.  Call
12728         generic_push_dummy_frame directly.
12729         * vax-tdep.c (vax_gdbarch_init): Update.
12730         * sparc-tdep.c (sparc_gdbarch_init): Update.
12731         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12732         * m68k-tdep.c (m68k_gdbarch_init): Update.
12733         * hppa-tdep.c (hppa_gdbarch_init): Update.
12734         * alpha-tdep.c (alpha_gdbarch_init): Update.
12735         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12736         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12737         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12738         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12739         push_dummy_frame to generic_push_dummy_frame.
12740         * v850-tdep.c (v850_gdbarch_init): Ditto.
12741         * sh-tdep.c (sh_gdbarch_init): Ditto.
12742         * s390-tdep.c (s390_gdbarch_init): Ditto.
12743         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12744         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12745         * mips-tdep.c (mips_gdbarch_init): Ditto.
12746         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12747         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12748         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12749         * i386-tdep.c (i386_gdbarch_init): Ditto.
12750         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12751         * frv-tdep.c (frv_gdbarch_init): Ditto.
12752         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12753         * cris-tdep.c (cris_gdbarch_init): Ditto.
12754         * avr-tdep.c (avr_gdbarch_init): Ditto.
12755         * arm-tdep.c (arm_gdbarch_init): Ditto.
12756
12757 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12758
12759         * mips-tdep.c (show_mips_abi): New function.
12760         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12761         command ``show mips abi''.
12762
12763 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12764
12765         From Elena Zannoni  <ezannoni@redhat.com>
12766         * dbxread.c (process_one_symbol): Only record line 0 if one or
12767         more sline entries have been seen for the function.
12768
12769 2003-02-26  Michael Chastain  <mec@shout.net>
12770
12771         * configure: Regenerate with autoconf 000227.
12772
12773 2003-02-26  Michael Chastain  <mec@shout.net>
12774
12775         Close PR build/660.
12776         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12777         for old libc5/glibc.
12778         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12779
12780 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12781
12782         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12783         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12784
12785 2003-02-26  Michael Chastain  <mec@shout.net>
12786
12787         * configure.in: New variable HAVE_UINTPTR_T.
12788         * configure, config.in: Regenerated.
12789
12790 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12791
12792         Fix PR build/1097.
12793         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12794
12795 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12796
12797         * frame.c (get_prev_frame): Add comment on check for
12798         inside_entry_func. Only check for inside_entry_file when not a
12799         dummy and not a sentinel.  Check that the new frame is not inner
12800         to the old frame.
12801
12802 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12803
12804         * frame.c (frame_debug): New variable.
12805         (_initialize_frame): Add "set/show debug frame" command.
12806         (get_prev_frame): When frame_debug, print reason why unwind
12807         failed.
12808
12809 2003-02-25  Michael Chastain  <mec@shout.net>
12810
12811         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12812         to avoid uintptr_t definition problems.
12813
12814 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12815
12816         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12817         (SYMBOL_LINKAGE_NAME): Ditto.
12818         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12819         SYMBOL_LINKAGE_NAME.
12820         (struct general_symbol_info): Expand comment.
12821         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12822         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12823         (SYMBOL_MATCHES_REGEXP): Ditto.
12824         * symtab.c (symbol_natural_name): New function.
12825         * objfiles.h: Replace all uses of SYMBOL_NAME by
12826         DEPRECATED_SYMBOL_NAME.
12827         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12828         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12829         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12830         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12831         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12832         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12833         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12834         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12835         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12836         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12837         * ada-exp.y: Ditto.
12838         * ada-exp.y: Update copyright.
12839         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12840         * cp-valprint.c: Ditto.
12841
12842 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
12843
12844         * infptrace.c (detach): Do not flag error if ptrace detach fails
12845         and errno is set to ESRCH.
12846
12847 2003-02-24  Andrew Cagney  <cagney@redhat.com>
12848
12849         * infptrace.c (udot_info): Change type of udot_off to long.  Use
12850         paddr when printing udot_off's value.
12851
12852 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12853
12854         * symtab.c (make_symbol_overload_list): Only read in partial
12855         symtabs containing a matching partial symbol.
12856
12857 2003-02-24  David Carlton  <carlton@math.stanford.edu>
12858
12859         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12860         do the comparison, not strcmp.
12861         * symfile.c (compare_psymbols): Ditto.
12862         * defs.h: Declare strcmp_iw_ordered.
12863         * utils.c (strcmp_iw_ordered): New function.
12864
12865 2003-02-24  Jim Blandy  <jimb@redhat.com>
12866
12867         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12868         support, shared libs): Remove my name from here, to better reflect
12869         reality.
12870
12871 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12872
12873         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12874         (target_ops): Add to_have_continuable_watchpoint.
12875         * target.c (update_current_target): Add INHERIT line for
12876         to_have_continuable_watchpoint.
12877         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12878         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12879         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12880         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12881
12882 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
12883
12884         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12885         maintainership.
12886
12887 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12888
12889         * solib.c (solib_open): Call target defined search function after
12890         failing with solib-search-path.
12891         * solist.h (target_so_ops): Add find_and_open_solib function hook and
12892         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
12893
12894 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
12895
12896         * MAINTAINERS: Add myself to Write After section.
12897
12898 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
12899
12900         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12901
12902 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
12903
12904         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12905         (m68hc11_add_reggroups): New function.
12906         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12907         (m68hc11_gdbarch_init): Install the reggroups.
12908         (_initialize_m68hc11_tdep): Initialize them.
12909
12910 2003-02-21  James E Wilson  <wilson@tuliptree.org>
12911
12912         * MAINTAINERS: Update my email address.
12913
12914 2003-02-21  David Carlton  <carlton@math.stanford.edu>
12915
12916         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12917
12918 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
12919
12920         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12921         * symtab.h: Add opaque declarations of struct axs_value and
12922         struct agent_expr.
12923         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12924         (struct location_funcs): New type.
12925         (struct symbol): Add "loc" to aux_value.
12926         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12927         * dwarf2read.c: Include "dwarf2expr.h".
12928         (dwarf2_symbol_mark_computed): New function.
12929         (read_func_scope): Use it.
12930         (var_decode_location): New function.
12931         (new_symbol): Use it.
12932         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12933
12934         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12935         (dwarf2expr_h, dwarf2loc_h): New variables.
12936         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12937         (dwarf2expr.o, dwarf2loc.o): New rules.
12938         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12939         * buildsym.c (finish_block): Handle LOC_COMPUTED and
12940         LOC_COMPUTED_ARG.
12941         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12942         * m2-exp.y (yylex): Likewise.
12943         * printcmd.c (address_info, print_frame_args): Likewise.
12944         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12945         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12946         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12947         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12948         * symtab.c (lookup_block_symbol): Likewise.
12949
12950 2003-02-20  Adam Fedor  <fedor@gnu.org>
12951
12952         * symtab.h: Remove objc_specific struct
12953         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12954         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12955         Have language_objc use cplus_specific struct.
12956
12957 2003-02-20  Tom Tromey  <tromey@redhat.com>
12958
12959         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12960         TYPE_NAME, when printing a String value.  PR java/1075.
12961
12962 2003-02-20  Adam Fedor  <fedor@gnu.org>
12963
12964         * objc-lang.h (find_methods): Remove declaration.
12965         * objc-lang.c (find_methods): Make static.
12966
12967 2003-02-20  Christopher Faylor  <cgf@redhat.com>
12968
12969         * win32-nat.c (get_image_name): Check return value from
12970         ReadProcessMemory.
12971         (child_xfer_memory): Ditto.
12972
12973 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
12974
12975         * configure.in (TARGET_SYSTEM_ROOT): Set default to
12976         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
12977         '${exec_prefix}' (in addition to the expansion thereof) as
12978         relocatable.
12979         * configure: Rebuilt.
12980
12981 2003-02-20  David Carlton  <carlton@math.stanford.edu>
12982
12983         * symtab.c (search_symbols): Revert the search_symbols part of my
12984         2002-12-23 patch.  Add comment.
12985
12986 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
12987
12988         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12989         * dbxread.c (elfstab_build_psymtabs): Don't call
12990         install_minimal_symbols.
12991         (stabsect_build_psymtabs): Likewise.
12992         * elfread.c (elf_symfile_read): Call install_minimal_symbols
12993         earlier.
12994         * somread.c (som_symfile_read): Call install_minimal_symbols
12995         and do_cleanups earlier.
12996         * nlmread.c (nlm_symfile_read): Likewise.
12997         * mdebugread.c (elfmdebug_build_psymtabs): Call
12998         install_minimal_symbols and make appropriate cleanups.
12999
13000 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13001
13002         * solib.c (reload_shared_libraries): New function.
13003         (_initialize_solib): Add callbacks for ``set solib-search-path''
13004         and ``set solib-absolute-prefix''.
13005
13006 2003-02-20  David Carlton  <carlton@math.stanford.edu>
13007
13008         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13009         expand comment.
13010         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13011         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13012         * ada-typeprint.c (ada_typedef_print): Ditto.
13013         * ax-gdb.c (gen_var_ref): Ditto.
13014         * breakpoint.c (print_one_breakpoint): Ditto.
13015         * buildsym.c (finish_block): Ditto.
13016         * c-valprint.c (c_val_print): Ditto.
13017         * expprint.c (print_subexp): Ditto.
13018         * findvar.c (locate_var_value): Ditto.
13019         * infcmd.c (jump_command): Ditto.
13020         * linespec.c (decode_line_2, decode_compound): Ditto.
13021         * maint.c (maintenance_translate_address): Ditto.
13022         * objc-lang.c (compare_selectors, compare_classes): Ditto.
13023         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13024         Ditto.
13025         * p-valprint.c (pascal_val_print): Ditto.
13026         * stabsread.c (define_symbol): Ditto.
13027         * stack.c (print_frame, frame_info, print_block_frame_locals)
13028         (print_frame_arg_vars, return_command): Ditto.
13029         * symfile.c (compare_symbols, compare_psymbols): Ditto.
13030         * symmisc.c (print_symbol): Ditto.
13031         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13032         (compare_search_syms, print_symbol_info, print_msymbol_info)
13033         (rbreak_command): Ditto.
13034         * tracepoint.c (tracepoints_info): Ditto.
13035         * typeprint.c (typedef_print): Ditto.
13036         * valops.c (value_of_variable, hand_function_call): Ditto.
13037         * cli/cli-cmds.c (edit_command, list_command): Ditto.
13038         * ada-typeprint.c: Update Copyright.
13039         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13040         * tracepoint.c, cli/cli-cmds.c: Ditto.
13041
13042 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13043
13044         * frame.c (generic_unwind_get_saved_register): Make non-static.
13045         * frame.h (generic_unwind_get_saved_register): Declare.
13046         * mips-tdep.c (read_next_frame_reg): Fetch register from
13047         current regcache when frame is NULL.
13048         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13049         that must be NULL.
13050         (mips_get_saved_register): Call generic_unwind_get_saved_register()
13051         instead of frame_register_unwind().
13052
13053 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13054
13055         * remote-sim.c (gdbsim_insert_breakpoint)
13056         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13057         code.
13058
13059 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13060
13061         * remote.c (_initialize_remote): Add commands "set/show remote
13062         hardware-watchpoint-limit" and "set/show remote
13063         hardware-breakpoint-limit".
13064         (remote_hw_watchpoint_limit): Initialize to -1.
13065         (remote_hw_breakpoint_limit): Ditto.
13066         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13067
13068 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
13069
13070         * coff-pe-read.c: New file - support reading of minimal symbols from a
13071         portable executable using the export table.
13072         * coff-pe-read.h: New file.
13073         * coffread.c: Include coff-pe-read.h.
13074         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13075         debugging symbols found.
13076         * Makefile.in (SFILES): Add coff-pe-read.o.
13077         (coff_pe_read_h): Define.
13078         (COMMON_OBS): Add coff-pe-read.o.
13079         (coffread.o): Add coff_pe_read_h dependency.
13080         (coff-pe-read.o): New target.
13081
13082 2003-02-19  David Carlton  <carlton@math.stanford.edu>
13083
13084         * Makefile.in (SFILES): Add block.c.
13085         (block_h): New.
13086         (COMMON_OBS): Add block.o.
13087         (block.o): New.
13088         (x86-64-tdep.o): Add $(block_h).
13089         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13090         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13091         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13092         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13093         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13094         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13095         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13096         * value.h: Add opaque declaration for struct block.
13097         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13098         * ada-lang.h: Ditto.
13099         * x86-64-tdep.c: #include "block.h"
13100         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13101         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13102         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13103         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13104         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13105         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13106         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13107         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13108         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13109         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13110         * symtab.c (block_function): Ditto.
13111         (contained_in): Ditto.
13112         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13113         block.h.  Add opaque declaration for struct block.
13114         * symtab.h: Move block_function and contained_in declarations to
13115         block.h.  Add opaque declarations for struct block, struct
13116         blockvector.
13117         (struct block): Move to block.h.
13118         (struct blockvector): Ditto.
13119         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13120         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13121         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13122         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13123         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13124         Ditto.
13125         * block.c: New file.
13126         * block.h: New file.
13127
13128 2003-02-19  Theodore A. Roth  <troth@openavr.org>
13129
13130         * avr-tdep.c (avr_extract_return_value): Remove function.
13131         (avr_store_return_value): Remove function.
13132         (avr_extract_struct_value_address): Remove function.
13133         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13134
13135 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
13136
13137         * rs6000-tdep.c: Include "gdb_assert.h".
13138         (registers_e500): Add "acc" and "spefscr".
13139         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13140         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13141         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
13142         really is "r0".
13143         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13144
13145 2003-02-18  Keith Seitz  <keiths@redhat.com>
13146
13147         * Makefile.in: Add gdbtk-interps.c.
13148
13149 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
13150
13151         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13152         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13153
13154 2003-02-18  Andrew Cagney  <cagney@redhat.com>
13155
13156         * symtab.h (struct objfile): Add opaque declaration.
13157
13158 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
13159
13160         From Jim Ingham   <jingham@apple.com>:
13161         * dbxread.c (process_one_symbol): Use last_function_start rather
13162         than function_start_offset to find the real beginning of the
13163         current function.  The latter is just the text section offset on
13164         some systems, the former is always the real function start.
13165
13166 2003-02-17  Andrew Cagney  <cagney@redhat.com>
13167
13168         * configure.in: Revert ${target} != ${host}.
13169
13170 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
13171
13172         * configure.in (Makefile): Use the test ${target} != ${host},
13173         instead of the absence of the "nm.h" file, to determine of the
13174         configuration non-native.
13175         * configure: Regenerate.
13176
13177 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
13178
13179         From Brian Ford  <ford@vss.fsi.com>
13180
13181         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13182         conditionalize tui_active test.
13183         (lookup_cmd_1): Ditto.
13184
13185 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
13186
13187         * configure.in: Add check for _etext.
13188         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13189         available.
13190         * config.in, configure: regenerated.
13191
13192 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
13193
13194         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13195
13196 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
13197
13198         * main.c (tui_version): Delete variable.
13199         (captured_main): When --tui, set interpreter_p to "tui" instead of
13200         enabling tui_version.
13201         * printcmd.c (display_command) [TUI]: Test tui_active instead of
13202         tui_version.
13203         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13204         * cli/cli-cmds.c (disassemble_command): Ditto.
13205         * defs.h (tui_version): Delete declaration.
13206         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13207         (tui-interp.o): Add rules.
13208         (SUBDIR_TUI_OBS): Add "tui-interp.o".
13209
13210 2003-02-14  Christopher Faylor  <cgf@redhat.com>
13211
13212         * win32-nat.c (register_loaded_dll): Correctly set address range for
13213         just-loaded dll.
13214
13215 2003-02-12  Jason Molenda  (jmolenda@apple.com)
13216
13217         * symmisc.c (print_objfile_statistics): Include information about
13218         the number of psymtabs and symtabs in each object file.
13219
13220 2003-02-13  Keith R Seitz  <keiths@redhat.com>
13221
13222         * main.h (struct captured_main_args): Add interpreter_p.
13223         * main.c (captured_main): Initialize interpreter_p from context.
13224         * gdb.c (main): Set interpreter_p argument.
13225         * Makefile.in (gdb.o): Add dependency for interps.h.
13226
13227 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13228
13229         * event-top.c (cli_command_loop): Delete declaration.
13230         (_initialize_event_loop): Delete function setting event_loop_hook.
13231         * event-top.h (cli_command_loop): Declare.  Update copyright.
13232         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
13233         * interps.c (current_interp_command_loop): When event_loop_p, call
13234         cli_command_loop.
13235
13236 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13237
13238         * interps.h (interp_command_loop_ftype): Change return type to
13239         void.
13240
13241 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
13242
13243         * x86-64-tdep.c (x86_64_extract_return_value)
13244         (x86_64_store_return_value): Use regcache instead of regbuf.
13245         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13246         * x86-64-linux-nat.c (fill_gregset): Use regcache.
13247
13248 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
13249
13250         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13251         * aclocal.m4: Regenerate.
13252         * configure: Regenerate.
13253
13254         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13255         TCL_LD_SEARCH_FLAGS.
13256
13257 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
13258
13259         * dwarf2cfi.c: Reindented.
13260
13261 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
13262
13263         * interps.c (clear_interpreter_hooks): Convert function definition
13264         to ISO C.
13265
13266 2003-02-07  David Carlton  <carlton@math.stanford.edu>
13267
13268         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13269
13270 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
13271
13272         * gdbtypes.h (struct main_type): Move ``length'' field from here...
13273         (struct type): ...to here.
13274         (TYPE_LENGTH): Adjust to reflect different location of ``length''
13275         field.
13276         * gdbtypes.c (make_qualified_type): Set length on newly created type.
13277         (replace_type): Set length on all type variants for a given type.
13278
13279 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
13280
13281         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13282         <sys/stat.h>.
13283         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13284
13285 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
13286
13287         * Makefile.in (symm-nat.o): Update dependencies.
13288         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13289         (lynx-nat.o, ia64-linux-nat.): Ditto.
13290         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13291         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13292         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13293
13294         * Makefile.in (inflow_h): Define.
13295         (procfs.o, inflow.o, procfs.o): Update dependencies.
13296         * inftarg.c (child_stop): Delete extern declaration of
13297         inferior_process_group.  Include "inflow.h".
13298         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
13299         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13300         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
13301         (our_process_group, inferior_process_group): Extern declarations.
13302
13303         * procfs.c: Include "gdb_assert.h".
13304
13305         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13306         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13307         * jv-typeprint.c (java_type_print_base): Ditto.
13308         * typeprint.c (typedef_print): Eliminate STREQ.
13309         * cli/cli-script.c (define_command, define_command): Ditto.
13310         * main.c (captured_main): Ditto.
13311         * values.c (lookup_internalvar): Ditto.
13312         * utils.c (safe_strerror, parse_escape): Eliminate assignment
13313         within `if' conditional.
13314         * linespec.c (decode_line_2): Ditto.
13315         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13316         (bfd_openw_with_cleanup): Ditto.
13317
13318 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
13319
13320         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13321         legacy_extract_return_value and store_return_value to
13322         legacy_return_value.
13323
13324 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
13325
13326         * win32-nat.c (get_relocated_section_addrs): New function.  Find
13327         section load addresses for symbol handling in relocated DLLs.
13328         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13329
13330 2003-02-05  Fred Fish  <fnf@intrinsity.com>
13331
13332         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13333         '=' and '!='.
13334         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13335         with '&' and '=='.
13336         (angel_RDI_info): Ditto.
13337         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13338         with '&' and '!='.
13339         (threads_continue_all_with_signals): Ditto.
13340
13341 2003-02-05  Jim Ingham <jingham@apple.com>
13342             Keith Seitz  <keiths@redhat.com>
13343             Elena Zannoni  <ezannoni@redhat.com>
13344             Andrew Cagney  <ac131313@redhat.com>
13345
13346         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13347         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13348         (SUBDIR_MI_OBS): Add "mi-interp.o".
13349         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13350         (SFILES): Add "interps.c".
13351         (COMMON_OBS): Add "interps.o".
13352         (interps_h, mi_main_h): Define.
13353         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13354         (mi-main.o, main.o, event-top.o): Update dependencies.
13355         * cli/cli-interp.c: New file.
13356         * interps.h, interps.c: New files.
13357         * top.c: (gdb_init): Don't install the default interpreter, handed
13358         by captured_main.
13359         * main.c: Include "interps.h".
13360         (interpreter_p): Note that it should malloc'ed.
13361         (captured_command_loop): Call current_interp_command_loop.
13362         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
13363         xfree and xstrdup when updating interpreter_p.  Install the
13364         default interpreter.  Add hack to stop mi1's copyright notice
13365         being encoded.
13366         * event-top.h (gdb_setup_readline): Declare.
13367         (gdb_disable_readline): Declare.
13368         * event-top.c: Include "interps.h".
13369         (display_gdb_prompt): Call current_interp_display_prompt_p.
13370         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13371         gdb_stdlog, and gdb_stdtarg.
13372         (_initialize_event_loop): Don't call gdb_setup_readline.
13373         * cli-out.c (cli_out_set_stream): New function.
13374         * cli-out.h (cli_out_set_stream): Declare.
13375
13376 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
13377
13378         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13379         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
13380         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13381         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13382         config/i386/i386v42mp.mt: Removed.
13383
13384 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
13385
13386         * configure.tgt (*-*-solaris*): Set gdb_osabi to
13387         GDB_OSABI_SOLARIS.
13388
13389 2003-02-05  Michael Chastain  <mec@shout.net>
13390
13391         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13392         2.12.1 and earlier versions.
13393
13394 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
13395
13396         Remove orphaned hosts, targets and files.
13397         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13398         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13399         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13400         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13401         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13402         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13403         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13404         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13405         * config/sparc/tm-sp64sim.h: Delete.
13406         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13407         hosts.
13408         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13409         mips*-dec-mach3* targets.
13410
13411 2003-02-04  Michael Chastain  <mec@shout.net>
13412
13413         * NEWS: Fix typo: sepcifying -> specifying.
13414
13415 2003-02-04  Michael Chastain  <mec@shout.net>
13416
13417         * dwarfread.c: Add documentation on the state of dwarf-1,
13418         looking towards obsoletion.
13419
13420 2003-02-03  Michael Chastain  <mec@shout.net>
13421
13422         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13423         gdb/testsuite/gdb.c++/pr-1023.exp.
13424
13425 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13426
13427         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13428         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13429
13430         * utils.c (init_page_info): Delete reference to MPW in comments.
13431         * main.c (captured_main): Delete #ifdef MPW.
13432
13433 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13434
13435         * NEWS: Note that the m32r-*-elf* is obsolete.
13436         * monitor.c (monitor_expect): Obsolete reference to m32r.
13437         * configure.tgt: Mark m32r-*-elf* as obsolete.
13438         * MAINTAINERS: Mark m32k as obsolete.
13439         * m32r-rom.c: Obsolete file.
13440         * config/m32r/m32r.mt: Obsolete file.
13441         * config/m32r/tm-m32r.h: Obsolete file.
13442         * m32r-stub.c: Obsolete file.
13443         * m32r-tdep.c: Obsolete file.
13444
13445 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13446
13447         * NEWS: Mention that the z8k-zilog-none is obsolete.
13448         * MAINTAINERS: Mark z8k as obsolete.
13449         * configure.tgt: Obsolete the z8k-*-coff* target.
13450         * config/z8k/z8k.mt: Obsolete file.
13451         * config/z8k/tm-z8k.h: Obsolete file.
13452         * z8k-tdep.c: Obsolete file.
13453
13454 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13455
13456         * NEWS: Mention that the mn10200-elf is obsolete.
13457         * configure.tgt: Obsolete mn10200-*-* target.
13458         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13459         mention that the mn10200 is obsolete.
13460         * breakpoint.h: Ditto.
13461         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13462         * config/mn10200/mn10200.mt: Obsolete file.
13463         * config/mn10200/tm-mn10200.h: Obsolete file.
13464         * mn10200-tdep.c: Obsolete file.
13465
13466 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13467
13468         * MAINTAINERS: Mark h8500 as obsolete.
13469         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13470         * findvar.c (value_from_register): Ditto.
13471         * h8500-tdep.c: Mark file as obsolete.
13472         * config/h8500/h8500.mt: Ditto.
13473         * config/h8500/tm-h8500.h: Ditto.
13474         * NEWS: Mention that h8500 is obsolete.
13475
13476 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13477
13478         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13479         start of function.
13480         * jv-lang.c (get_dynamics_objfile): Add comment.
13481
13482 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13483
13484         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13485         * printcmd.c (build_address_symbolic): Replace uses of
13486         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13487         SYMBOL_NAME, and asm_demangle.
13488         Update copyright.
13489
13490 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13491
13492         * linespec.c (decode_compound): Extract code into
13493         lookup_prefix_sym.
13494         (lookup_prefix_sym): New function.
13495
13496 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13497
13498         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13499         FLOAT_COERCION_BADNESS.
13500         * gdbtypes.c (rank_one_type): Replace all uses of
13501         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13502
13503 2003-02-04  Jim Blandy  <jimb@redhat.com>
13504
13505         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13506         section, let dwarf_macinfo_section point to it, not
13507         dwarf_loc_section.
13508
13509 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13510
13511         Pointed out by Anton Blanchard <anton@samba.org>.
13512         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13513         (ppc_linux_at_sigtramp_return_path): Use it.
13514
13515 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13516
13517         * defs.h (streq): Add prototype.
13518         * utils.c (streq): New function.
13519
13520         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13521         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13522         * mdebugread.c (new_symbol): Likewise.
13523         * stabsread.c (define_symbol): Likewise.
13524         * coffread.c (process_coff_symbol): Likewise.
13525         * dwarfread.c (new_symbol): Likewise.
13526
13527         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13528         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13529         here.
13530         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13531         SYMBOL_INIT_DEMANGLED_NAME.
13532         * objfiles.c: Include "hashtab.h".
13533         (allocate_objfile): Call htab_set_functions_ex for the
13534         demangled_names_hash.
13535         (free_objfile): Call htab_delete for the demangled_names_hash.
13536         * objfiles.h (struct htab): Add declaration.
13537         (struct objfile): Add demangled_names_hash.
13538         * symfile.c: Include "hashtab.h".
13539         (reread_symbols): Call htab_delete for the demangled_names_hash.
13540         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13541         SYMBOL_NAME in the bcache.
13542         * symtab.c: Include "hashtab.h".  Update comments.
13543         (create_demangled_names_hash, symbol_set_names): New functions.
13544         (symbol_find_demangled_name): New function, broken out from
13545         symbol_init_demangled_names.
13546         (symbol_init_demangled_names): Use it.
13547         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13548         (SYMBOL_SET_NAMES): New macro.
13549         (symbol_set_names): Add prototype.
13550
13551 2003-02-03  Jim Blandy  <jimb@redhat.com>
13552
13553         Use a single, consistent representation for an empty minimal
13554         symbol table in an objfile.
13555         * objfiles.c (terminate_minimal_symbol_table): New function.
13556         (allocate_objfile): Call it.
13557         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13558         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13559         non-NULL.
13560         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13561         objfile has minimal symbols, compare minimal_symbol_count to zero,
13562         instead of comparing msymbols with NULL.
13563         * objfiles.c (have_minimal_symbols): Same.
13564         * solib-sunos.c (solib_add_common_symbols): Call
13565         terminate_minimal_symbol_table.
13566         * symfile.c (reread_symbols): Same.
13567
13568 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
13569
13570         * s390-tdep.c (s390_address_class_type_flags)
13571         (s390_address_class_type_flags_to_name)
13572         (s390_address_class_name_to_type_flags): New functions.
13573         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13574         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13575
13576 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13577
13578         * arm-tdep.c: Fix spell-o in comment.
13579
13580 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13581
13582         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13583         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13584         error messages to contain BFD filename.
13585
13586 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13587
13588         Fix PR gdb/742 gdb/743 gdb/877
13589         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13590         (do_mixed_source_and_assembly): Use
13591         make_cleanup_ui_out_tuple_begin_end and
13592         make_cleanup_ui_out_tuple_begin_end.
13593         (do_mixed_source_and_assembly): Ditto.
13594         * thread.c (do_captured_list_thread_ids): Ditto.
13595         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13596         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13597         ui_out_tuple_end): Delete prototypes.
13598         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13599         ui_out_list_end, ui_out_tuple_end): Delete.
13600
13601         From Kevin Buettner  <kevinb@redhat.com>:
13602         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13603         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13604         (do_cleanup_table_end):  New functions.
13605         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13606         Use cleanups to invoke_ui_out_tuple_end().
13607         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13608         * cli/cli-setshow.c (cmd_show_list): Use
13609         make_cleanup_ui_out_tuple_begin_end.
13610
13611 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13612
13613         * frame.c (frame_unwind_register): New function.
13614         (frame_unwind_unsigned_register): Use.
13615         (frame_unwind_signed_register): Use.
13616         (frame_read_register): New function.
13617         * frame.h (frame_unwind_register): Declare.
13618         (frame_read_register): Declare.
13619
13620         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13621         and frame_unwind_register instead of read_memory, write_register
13622         and deprecated_write_register_bytes.
13623
13624 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13625
13626         * frame.h: Note that namelen can be negative.
13627         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13628         NAME's length.
13629
13630         * NEWS: Mention that the d10v's `regs' command is deprecated.
13631         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13632         (d10v_print_registers_info): New function.
13633         (show_regs): Call d10v_print_registers_info.
13634         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13635
13636 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13637
13638         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13639         lost in the previous patch.
13640
13641 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13642
13643         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13644         * stack.c (print_frame_info_base): Output complete FRAME tuple
13645         for synthesized frames.
13646
13647 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13648
13649         * mips-nat.c (zerobuf): Delete.
13650         (fetch_inferior_registers): Alloc local zerobuf.
13651         (fetch_core_registers): Alloc local zerobuf.
13652         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13653         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13654         * thread-db.c (thread_db_store_registers): Ditto.
13655         * sh-tdep.c (sh_do_register): Ditto.
13656         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13657         * remote-sim.c (gdbsim_store_register): Ditto.
13658         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13659         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13660         * monitor.c (monitor_supply_register): Ditto.
13661         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13662         * mips-nat.c (fetch_inferior_registers): Ditto.
13663         * m68klinux-nat.c (fetch_register): Ditto.
13664         * lynx-nat.c (fetch_inferior_registers): Ditto.
13665         (fetch_inferior_registers): Ditto.
13666         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13667         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13668         (hpux_thread_store_registers): Ditto.
13669         * hppah-nat.c (fetch_register): Ditto.
13670         * hppab-nat.c (fetch_register): Ditto.
13671         * hppa-tdep.c (pa_register_look_aside): Ditto.
13672         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13673         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13674
13675 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13676
13677         * gdbarch.sh: Explictly specify all method levels.  When a
13678         variable with an empty level, provide a non-multi-arch default.
13679         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13680         * gdbarch.h: Re-generate.
13681         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13682         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13683
13684 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13685
13686         * defs.h (host_pointer_to_address): Delete declaration.
13687         (address_to_host_pointer): Delete declaration.
13688         * utils.c (host_pointer_to_address): Delete function.
13689         (address_to_host_pointer): Delete function.
13690         * procfs.c (procfs_address_to_host_pointer): New function.
13691         * procfs.c (proc_set_watchpoint): Use.
13692         (procfs_can_use_hw_breakpoint): Update comments.
13693         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13694         (som_solib_add): Use.
13695         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13696         * hppa-tdep.c (unwind_command): Use.
13697
13698 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13699
13700         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13701         strlen d_name.
13702
13703         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13704         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13705         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13706         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13707         (define_symbol): Update.
13708         * symfile.c (generic_load): Remove references to nindy.
13709         * symtab.c: Remove references to nindy.
13710
13711 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13712
13713         * infcmd.c (print_float_info): Delete code conditional on
13714         FLOAT_INFO.
13715         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13716         * config/m68k/nm-apollo68b.h: Ditto.
13717         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13718         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13719         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13720
13721 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13722
13723         * config/i386/tm-i386os9k.h: Removed.
13724
13725         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13726         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13727         they're identical to i[3456]86-*-sysv* now.
13728         * config/i386/i386v32.mh: Removed.
13729         * config/i386/xm-i386v32.h: Removed.
13730         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13731
13732         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13733
13734         * config/i386/i386dgux.mh: Removed.
13735         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13736
13737         * configure.in: Fix typo.
13738         * configure: Regenerated.
13739
13740 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13741
13742         * dwarf2read.c (dwarf2_locate_sections): Set
13743         dwarf_ranges_section.
13744
13745 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13746
13747         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13748         * utils.c: Update comments documenting legitimate uses of PTR.
13749
13750         * utils.c: Re-indent.
13751
13752         * config/djgpp/fnchange.lst: Delete nindy files.
13753         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13754         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13755         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13756         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13757         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13758         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13759         * Makefile.in (init.c): Remove nindy references.
13760         (saber_gdb): Delete rule.
13761         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13762         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13763         and a68v-nat.c.
13764         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13765         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13766         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13767         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13768         nindy-share/stop.h.
13769         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13770         * saber.suppress: Delete file.
13771
13772 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13773
13774         * dbxread.c (stabs_data): New static variable.
13775         (fill_symbuf): Support an in-memory buffer for stabs data.
13776         (stabs_seek): New function.
13777         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13778         (read_ofile_symtab): Use stabs_seek.
13779         (elfstab_build_psymtabs): Take an asection* instead of
13780         an offset and size.  Relocate the stabs data if necessary.
13781         Save the section* for dbx_psymtab_to_symtab.
13782         * dwarf2read.c: Add section variables for each debug section.
13783         (dwarf2_locate_sections): Fill them in.
13784         (dwarf2_read_section): Take an asection* argument.
13785         Relocate the section contents if necessary.
13786         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13787         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13788         it to dwarf2_read_section.
13789         (dwarf2_build_frame_info): Update callers.
13790         * elfread.c (elf_symfile_read): Update call to
13791         elfstab_build_psymtabs.
13792         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13793         (DBX_STAB_SECTION): New macro.
13794         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13795         * symfile.c (symfile_dummy_outputs): New function.
13796         (symfile_relocate_debug_section): New function.
13797         * symfile.h (symfile_relocate_debug_section): Add prototype.
13798
13799 2003-01-31  Richard Henderson  <rth@redhat.com>
13800
13801         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13802         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13803         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13804         * alpha-tdep.c (alpha_register_name): Add "unique".
13805         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13806         (ALPHA_UNIQUE_REGNUM): New.
13807         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13808
13809 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13810
13811         * README: Remove reference to Ericsson 1800 monitor.
13812         * Makefile.in (remote-es.o): Delete rule.
13813         (ALLDEPFILES): Delete remote-es.c.
13814         * remote-es.c: Delete file.
13815         * config/m68k/es1800.mt: Delete file.
13816         * config/djgpp/fnchange.lst: Update.
13817         * configure.tgt: Delete m68*-ericsson-* target.
13818
13819 2003-01-31  Adam Fedor  <fedor@gnu.org>
13820
13821         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13822         Remove duplicate/shadowing variable of same name.
13823
13824 2003-01-30  Jim Blandy  <jimb@redhat.com>
13825
13826         * symfile.c (find_separate_debug_file): Assert that the objfile's
13827         directory name we compute ends with a slash, and then assume that
13828         that's so everywhere we use it.
13829
13830 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13831
13832         * valops.c (value_assign): Flush frame cache after stores to memory
13833         also.
13834
13835 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13836
13837         * Makefile.in (mon960-rom.o): Delete rule.
13838         * mon960-rom.c: Delete file.
13839
13840 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13841
13842         * d10v-tdep.c: Include "frame-unwind.h".
13843         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13844         list.
13845         (next_addr, uses_frame): Delete.
13846         (struct d10v_unwind_cache): Define.
13847         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13848         Use info instead of next_addr and uses_frame globals.
13849         (d10v_frame_init_saved_regs): Delete function.
13850         (d10v_init_extra_frame_info): Delete function.
13851         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13852         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13853         init_frame_pc or frame_saved_pc.
13854         (d10v_pop_frame): Delete function.
13855         (do_d10v_pop_frame): Delete function.
13856         (d10v_frame_chain): Delete function.
13857         (d10v_frame_chain_valid): Delete function.
13858         (d10v_frame_pc_unwind): New function.
13859         (d10v_frame_id_unwind): New function.
13860         (saved_regs_unwinder): New function.
13861         (d10v_frame_register_unwind): New function.
13862         (d10v_frame_pop): New function.
13863         (d10v_frame_unwind): New variable.
13864         (d10v_frame_p): New function.
13865         (d10v_frame_saved_pc): Delete function.
13866         * Makefile.in (d10v-tdep.o): Update dependencies.
13867
13868 2003-01-30  J. Brobecker  <brobecker@gnat.com>
13869
13870         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13871         causing some regressions due to a change in the default value
13872         for this macro.
13873
13874 2003-01-29  Richard Henderson  <rth@redhat.com>
13875             Elena Zannoni  <ezannoni@redhat.com>
13876             Daniel Jacobowitz  <drow@mvista.com>
13877
13878         Fix PR gdb/961.
13879         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
13880         variables.
13881         (RANGES_SECTION): New.
13882         (dwarf_ranges_buffer): New variable.
13883         (struct comp_unit_head): Add member "die".
13884         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13885         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13886         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13887         (dwarf2_locate_sections): Likewise.
13888         (dwarf2_build_psymtabs): Read .debug_ranges.
13889         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13890         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
13891         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13892         Look for DW_AT_ranges and return the bounding box.
13893
13894 2003-01-29  Brian Ford <ford@vss.fsi.com>
13895
13896         * win32-nat.c (cygwin_pid): Removed as unused.
13897         (child_attach): Try fall back to Cygwin pid.
13898
13899 2003-01-29  Jim Blandy  <jimb@redhat.com>
13900
13901         * objfiles.h (struct objfile): Doc fix.
13902
13903 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
13904
13905         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13906         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13907         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13908         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13909         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13910         (FRAME_SAVED_PC): Change to a function with predicate.
13911         * gdbarch.h, gdbarch.c: Re-generate.
13912
13913 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
13914
13915         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13916
13917         * complaints.c (complain): Delete function.
13918         * complaints.h (struct deprecated_complaint): Delete definition.
13919         (complain): Delete declaration.
13920
13921 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
13922
13923         * mips-tdep.c (mips_init_extra_frame_info): Return early for
13924         dummy frames.
13925
13926 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
13927
13928         * sentinel-frame.h, sentinel-frame.c: New files.
13929         * Makefile.in (frame.o): Update dependencies.
13930         (SFILES): Add sentinel-frame.c.
13931         (sentinel_frame_h): Define.
13932         (COMMON_OBS): Add sentinel-frame.o.
13933         (sentinel-frame.o): Specify dependencies.
13934         * frame.c: Include "sentinel-frame.h".
13935         (frame_register_unwind): Rewrite assuming that there is always a a
13936         ->next frame.
13937         (frame_register, generic_unwind_get_saved_register): Ditto.
13938         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13939         (create_sentinel_frame, unwind_to_current_frame): New functions.
13940         (get_current_frame): Rewrite using create_sentinel_frame and
13941         unwind_to_current_frame.  When possible, always create a frame.
13942         (create_new_frame): Set next to the sentinel frame.
13943         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
13944         (deprecated_update_frame_pc_hack): Update the next frame's PC and
13945         ID cache when necessary.
13946         (frame_saved_regs_id_unwind): Use frame_relative_level.
13947         (deprecated_generic_get_saved_register): Use frame_relative_level,
13948         get_frame_saved_regs, get_frame_pc, get_frame_base and
13949         get_next_frame.
13950         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13951         frame_register.
13952
13953 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13954
13955         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13956
13957 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13958
13959         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13960         (maintenance_set_profile_cmd): Use error () instead of warning ().
13961
13962 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
13963
13964         * configure.in: Check that -pg works if using --enable-profiling.
13965         Check for monstartup and _mcleanup regardless of --enable-profiling.
13966         * maint.c: Check for monstartup and _mcleanup before using them.
13967         * config.in: Regenerated.
13968         * configure: Regenerated.
13969
13970 2003-01-24  Nick Clifton  <nickc@redhat.com>
13971
13972         * Add sh2e support:
13973
13974         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
13975
13976                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13977                 (sh2e_show_regs): New.
13978                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13979                 * config/sh/tm-sh.h: Added sh2e to comments.
13980
13981 2003-01-23  Jim Blandy  <jimb@redhat.com>
13982
13983         * symfile.c (syms_from_objfile): Don't print the "(no debugging
13984         symbols found)" message here; we haven't checked for a separate
13985         debug info file yet, so we don't know yet.
13986         (symbol_file_add_with_addrs_or_offsets): Print it here, after
13987         we've looked everywhere.  Also, there's no need to print a special
13988         message when we're loading the separate debug info file: the one
13989         symbol_file_add prints is fine.
13990
13991 2003-01-23  Alexander Larsson <alexl@redhat.com>
13992             Jim Blandy  <jimb@redhat.com>
13993
13994         Add support for executables whose debug info has been separated
13995         out into a separate file, leaving only a link behind.
13996         * objfiles.h (struct objfile): New fields: separate_debug_objfile
13997         and separate_debug_objfile_backlink.
13998         (put_objfile_before): New declaration.
13999         * symfile.c: #include "filenames.h".
14000         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14001         debug info in a separate file, read that, too. Save the addrs
14002         argument, so we can use it again to read the separated debug info;
14003         syms_from_objfile modifies the table we pass it.
14004         (reread_symbols): After re-reading an objfile, call
14005         reread_separate_symbols to refresh its separate debug info
14006         objfile, if it has one.
14007         (reread_separate_symbols, find_separate_debug_file,
14008         get_debug_link_info, separate_debug_file_exists): New functions.
14009         (debug_file_directory): New global var.
14010         (_initialize_symfile): Initialize debug_file_directory, and
14011         provide the new `set debug-file-directory' command to let the user
14012         change it.
14013         * objfiles.c (free_objfile): If this objfile has its debug info in
14014         a separate objfile, free that one too.  If this is itself a
14015         separate debug info objfile, clear our parent's backlink.
14016         (put_objfile_before): New function.
14017         * utils.c (gnu_debuglink_crc32): New function.
14018         * defs.h (gnu_debuglink_crc32): New declaration.
14019         * Makefile.in (symfile.o): Note dependency on "filenames.h".
14020         * configure.in: Handle --with-separate-debug-dir config option.
14021         * acinclude.m4 (AC_DEFINE_DIR): New macro.
14022         * acconfig.h (DEBUGDIR): New macro.
14023         * configure, aclocal.m4, config.in: Regenerated.
14024
14025 2003-01-22  Jim Blandy  <jimb@redhat.com>
14026
14027         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14028         like the old symbol_file_add, but taking new arguments: you can
14029         now pass in either a `struct section_addr_info' list to say where
14030         each section is loaded, or a `struct section_offsets' table.  Pass
14031         these new arguments through to syms_from_objfile as appropriate.
14032         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
14033         with the appropriate quiescent values for the new arguments.
14034
14035         * symfile.c: #include "gdb_assert.h".
14036         (syms_from_objfile): Add the ability to pass in a section offset
14037         table directly, as an alternative to the section_addr_info table.
14038         Document arguments better.
14039         (symbol_file_add): Pass extra arguments to syms_from_objfile.
14040         * symfile.h (syms_from_objfile): Update declaration.
14041         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14042         syms_from_objfile.
14043         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14044
14045 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
14046
14047         Original patch by Tom Tromey <tromey@cygnus.com> and
14048         Jason Molenda <jmolenda@apple.com>.
14049         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14050         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14051         * NEWS: Mention profiling.
14052         * configure.in (--enable-gdbtk): Fix typo.
14053         (--enable-profiling): New.  Set PROFILE_CFLAGS.
14054         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14055         Fill in function.
14056         (profiling_state): New variable.
14057         (mcleanup_wrapper): New function.
14058         (_initialize_maint): Remove NOTYET, fix call to
14059         add_setshow_boolean_cmd for "maint set profile".
14060         * configure: Regenerated.
14061
14062 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
14063
14064         * Makefile.in (install-gdbtk): Install PNG images too.
14065
14066 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14067
14068         * exec.c (text_start): Delete global variable.
14069         (exec_file_attach): Make text_start local to the function.
14070         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14071         * valops.c (hand_function_call): Delete code that handles
14072         BEFORE_TEXT_END and AFTER_TEXT_END.
14073         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14074         of CALL_DUMMY_LOCATION.
14075         * gdbarch.c: Regenerate.
14076         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14077         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14078         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14079         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14080         (text_end): Delete extern declaration.
14081
14082 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14083
14084         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14085         * blockframe.c (backtrace_below_main): Move to "frame.c".
14086         (frame_chain_valid): Delete check for backtrace_below_main.
14087         (_initialize_blockframe): Delete initialization, move ``set
14088         backtrace-below-main'' command to "frame.c".
14089         (do_flush_frames_sfunc): Delete function.
14090         * frame.c: Include "command.h" and "gdbcmd.h".
14091         (frame_type_from_pc): New function.
14092         (create_new_frame): Use frame_type_from_pc.
14093         (legacy_get_prev_frame): New function.
14094         (get_prev_frame): Rewrite.  When an old style frame, call
14095         legacy_get_prev_frame.  Otherwize, unwind the PC first.
14096         (_initialize_frame): Add ``set backtrace-below-main'' command.
14097         * Makefile.in (frame.o): Update dependencies.
14098
14099 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14100
14101         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14102         DEPRECATED_REGISTERS_INFO.
14103
14104 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14105
14106         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14107         Maintainers'.  Update `Various Maintainers'.
14108
14109 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14110
14111         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14112         * gdbarch.sh (POP_FRAME): Change to function with predicate.
14113         Suppress actual parameters when `-'.
14114         * gdbarch.h, gdbarch.c: Regenerate.
14115
14116 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14117
14118         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14119         code handling dummy frames.
14120
14121 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14122
14123         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14124         (struct frame_unwind): Add field pop.
14125         * frame.h (frame_pop): Declare.
14126         * frame.c (frame_saved_regs_pop): New function.
14127         (trad_frame_unwinder): Add frame_saved_regs_pop.
14128         (frame_pop): New function.
14129         * dummy-frame.c (dummy_frame_pop): New function.
14130         (discard_innermost_dummy): New function.
14131         (generic_pop_dummy_frame): Use discard_innermost_dummy.
14132         (dummy_frame_unwind): Add dummy_frame_pop.
14133         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14134         * valops.c (hand_function_call): Ditto.
14135         * stack.c (return_command): Ditto.
14136
14137 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14138
14139         * cris-tdep.c: Fix function declaration indentation.
14140         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14141         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14142         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14143         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14144         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14145         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14146
14147 2003-01-18  Michael Chastain  <mec@shout.net>
14148
14149         * README (Unpacking and Installation -- quick overview):
14150         Warn against ".../gdb-5.3/gdb/configure".
14151
14152 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14153
14154         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14155         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14156         (struct frame_unwind): Declare opaque.
14157         (dummy_frame_p): Declare function.
14158         * dummy-frame.c (dummy_frame_id_unwind): Make static.
14159         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14160         * dummy-frame.c: Include "frame-unwind.h".
14161         (dummy_frame_p): New function.
14162         (dummy_frame_unwind): New variable.
14163         * frame.c: Include "frame-unwind.h".
14164         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14165         to use the new unwind field.
14166         (set_unwind_by_pc): Delete function.
14167         (create_new_frame, get_prev_frame): Set unwind field using
14168         frame_unwind_find_by_pc.
14169         (trad_frame_unwind, trad_frame_unwinder): New variables.
14170         * frame.h (trad_frame_unwind): Declare variable.
14171         (frame_id_unwind_ftype): Delete declaration.
14172         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14173         (struct frame_unwind): Declare opaque.
14174         (struct frame_info): Replace the fields id_unwind, pc_unwind and
14175         register_unwind with a single unwind pointer.
14176         * frame-unwind.h, frame-unwind.c: New files.
14177         * Makefile.in (SFILES): Add frame-unwind.c.
14178         (frame_unwind_h): Define.
14179         (COMMON_OBS): Add frame-unwind.o.
14180         (frame-unwind.o): Specify dependencies.
14181         (frame.o, dummy-frame.o): Update dependencies.
14182
14183 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14184
14185         * ada-valprint.c: Eliminate PTR.
14186         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14187         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14188         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14189         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14190         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14191         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14192         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
14193
14194 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
14195
14196         * main.c (captured_main): Don't use PTR.
14197         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14198         * gdbtypes.c (lookup_primitive_typename): Ditto.
14199         (lookup_struct_elt_type): Ditto.
14200         * f-valprint.c (info_common_command): Ditto.
14201         (list_all_visible_commons): Ditto.
14202         * jv-typeprint.c (java_type_print_base): Ditto.
14203
14204         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14205         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14206         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
14207         i386-interix-nat.c and i386-interix-tdep.c.  Rename
14208         m68klinux-nat.c and m68klinux-tdep.c.  Rename
14209         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
14210         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
14211         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14212         * main.c (captured_main): Use xfree, not free.
14213
14214 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
14215
14216         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14217         ID back using a parameter.
14218         * frame.c (frame_id_unwind): Update call.
14219         (frame_saved_regs_id_unwind): Update.
14220         * dummy-frame.c (dummy_frame_id_unwind): Update function.
14221         * dummy-frame.h (struct frame_id): Add opaque declaration.
14222         (dummy_frame_id_unwind): Update declaration.
14223
14224 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
14225
14226         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14227
14228 2003-01-15  Stephen P. Smith <ischis2@cox.net>
14229
14230         * MAINTAINERS (Stephen P. Smith): Updated email address.
14231
14232 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
14233
14234         Fix PR gdb/898
14235         * breakpoint.c (until_break_command): Add new argument.  Use it to
14236         decide whether to stop only at the current frame or not.
14237         * breakpoint.h (until_break_command): Update prototype.
14238         * infcmd.c (until_command): Add new argument to until_break_command
14239         call.
14240         (advance_command): New function.
14241         (_initialize_infcmd): Update help string for 'until' command.
14242         Add new 'advance' command.
14243
14244 2003-01-14  David Carlton  <carlton@math.stanford.edu>
14245
14246         * linespec.c (decode_line_1): Normalize comments.
14247         (set_flags): Ditto.
14248         (locate_first_half): Ditto.
14249         (decode_compound): Ditto.
14250         (symtab_from_filename): Ditto.
14251         (decode_all_digits): Ditto.
14252         (decode_dollar): Ditto.
14253         (find_methods): Ditto.
14254         (find_toplevel_char): Ditto.
14255
14256 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14257
14258         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14259         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14260         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14261         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14262         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14263         * language.c, language.h, m32r-tdep.c: Update copyright.
14264         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14265         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14266         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14267         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14268         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14269         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14270
14271 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14272
14273         * stabsread.h (process_later, resolve_cfront_continuation):
14274         Obsolete.
14275         Update copyright years.
14276         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14277         Update copyright year.
14278         * dbxread.c(struct cont_elem): Obsolete.
14279         (process_later, process_now): Obsolete functions.
14280         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14281         Update copyright year.
14282         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14283         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14284         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14285         (parse_partial_symbols): Obsolete cfront support.
14286         * stabsread.c
14287         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14288         macros.
14289         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14290         read_cfront_baseclasses, read_cfront_member_functions,
14291         resolve_cfront_continuation,read_cfront_static_fields,
14292         copy_cfront_struct_fields): Obsolete functions.
14293         (define_symbol, read_one_struct_field): Obsolete cfront support.
14294         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14295         Update Copyright year.
14296
14297 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14298
14299         * stack.c (print_frame_info, print_stack_frame_base_stub,
14300         print_stack_frame_base, show_and_print_stack_frame_stub,
14301         show_and_print_stack_frame, print_only_stack_frame_stub,
14302         print_only_stack_frame): Delete functions.
14303         (print_stack_frame_stub): Call print_frame_info instead of
14304         print_frame_info_base.
14305         (print_frame_info_base): Rename to print_frame_info.
14306         (backtrace_command_1): Call print_frame_info, instead of
14307         print_frame_info_base.
14308         (current_frame_command): Call print_stack_frame, instead of
14309         print_only_stack_frame.
14310         (frame_command): Call print_stack_frame, instead of
14311         show_and_print_stack_frame.
14312         (up_command): Ditto.
14313         (down_command): Ditto.
14314         * frame.h (print_only_stack_frame): Delete prototype.
14315         * infrun.c (normal_stop): Call print_stack_frame, instead of
14316         show_and_print_stack_frame.
14317         * thread.c (info_threads_command): Call print_stack_frame, instead
14318         of print_only_stack_frame.
14319
14320 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14321
14322         * README (Graphical interface to GDB): Update URL.  Point at
14323         gdb/links/.
14324
14325         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
14326         version match.
14327
14328 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14329
14330         * symtab.c (find_pc_sect_line): Don't consider end-of-function
14331         lines.
14332
14333 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14334
14335         * thread-db.c (attach_thread): Prototype.
14336         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
14337         thread information (ti), and valid flags (th_valid, ti_valid).
14338         (attach_thread): Move target_pid_to_str call to after the thread
14339         is added to GDB's list.  Initialize the cache.
14340         (thread_get_info_callback, thread_db_map_id2thr)
14341         (thread_db_get_info): New functions.
14342         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14343         (thread_db_store_registers, thread_db_thread_alive)
14344         (thread_db_get_thread_local_address): Use them.
14345         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
14346         of calling error() for threads in unknown state.
14347
14348         (clear_lwpid_callback): New function.
14349         (thread_db_resume): Use it to clear the cache.
14350
14351 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14352
14353         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14354         (resume_callback): Remove dead code.
14355
14356 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14357
14358         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14359         predicate.
14360         * gdbarch.h, gdbarch.c: Regenerate.
14361         * stack.c (frame_info): Only initialize the saved registers when
14362         FRAME_INIT_SAVED_REGS_P.
14363         * frame.c (frame_saved_regs_register_unwind): Assert
14364         FRAME_INIT_SAVED_REGS_P.
14365         (deprecated_generic_get_saved_register): Ditto.
14366
14367 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14368
14369         * source.c (openp): Squelch warning about "filename".
14370
14371 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14372
14373         * source.c (openp): If the file does not exist don't necessarily
14374         search the path.
14375
14376 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14377
14378         Fix PR gdb/872.
14379         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14380         (integer_types_same_name_p): New function.
14381         (rank_one_type): Use it.
14382         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14383
14384 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14385
14386         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14387         variables.
14388         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14389         * configure.in: Add --with-sysroot.
14390         * configure: Regenerated.
14391         * main.c (gdb_sysroot): New variable.
14392         (captured_main): Initialize gdb_sysroot.
14393         * defs.h (gdb_sysroot): New extern declaration.
14394         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14395
14396 2003-01-12  Michael Chastain  <mec@shout.net>
14397
14398         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14399
14400 2003-01-12  Michael Chastain  <mec@shout.net>
14401
14402         * top.c (print_gdb_version): Bump copyright year to 2003.
14403
14404 2003-01-12  David Carlton  <carlton@bactrian.org>
14405
14406         * linespec.c (symtab_from_filename): Rename variable 's' to
14407         'file_symtab'.
14408
14409 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14410
14411         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14412         dummy frame.
14413         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14414
14415 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14416
14417         * d10v-tdep.c: Include "gdb_assert.h".
14418         (d10v_store_return_value): Rewrite to match current interface.
14419         (d10v_extract_struct_value_address): Ditto.
14420         (d10v_extract_return_value): Ditto.
14421         (d10v_gdbarch_init): Set store_restore_value,
14422         extract_struct_value_address and extract_return_value.
14423
14424 2003-01-12  J. Brobecker  <brobecker@gnat.com>
14425
14426         * hpread.c (set_namestring): New procedure replacing the
14427         SET_NAMESTRING macro.
14428         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14429         by calls to set_namestring.
14430
14431 2003-01-11  J. Brobecker  <brobecker@gnat.com>
14432
14433         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14434         a compilation warning.
14435         (hpread_process_one_debug_symbol): Likewise.
14436
14437 2003-01-10  David Carlton  <carlton@math.stanford.edu>
14438
14439         * linespec.c (decode_line_1): Rename variable 's' to
14440         'file_symtab'.
14441         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14442         (decode_dollar): Ditto.
14443         (decode_variable): Ditto.
14444         (symbol_found): Ditto.
14445
14446 2003-01-09  Michael Chastain  <mec@shout.net>
14447
14448         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14449
14450 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
14451
14452         * win32-nat.c (set_process_privilege): New function.
14453         (child_attach): Call set_process_privilege() to enable the
14454         SE_DEBUG_NAME user privilege if available in process token.
14455
14456 2003-01-10  J. Brobecker  <brobecker@gnat.com>
14457
14458         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14459         compilation error in the previous revision.
14460
14461 2003-01-09  David Carlton  <carlton@math.stanford.edu>
14462
14463         * linespec.c: Update copyright.
14464
14465 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
14466
14467         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14468         than inferior_ptid.
14469         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14470
14471 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
14472
14473         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14474         Update comments.
14475         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14476         (frame_saved_regs_zalloc): Update.
14477         (frame_saved_regs_register_unwind): Update.
14478         (create_new_frame): Update.
14479         (get_prev_frame): Update.
14480         (frame_extra_info_zalloc): Update.
14481         (deprecated_get_frame_saved_regs): Update.
14482         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14483         * cris-tdep.c: Update comment.
14484
14485         * somsolib.h: Fix function indentation.
14486         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14487         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14488         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14489         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14490         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14491
14492         * infrun.c (follow_fork): Use ISO C definition.
14493         * expprint.c (print_subexp): Use xfree instead of free.
14494         * charset.c: Include "gdb_string.h" instead of <string.h>.
14495         (register_iconv_charsets): Use ISO C definition.
14496         (host_charset, target_charset): Ditto.
14497         * Makefile.in (charset.o): Update dependencies.
14498         (mi-cmd-env.o): Update dependencies.
14499
14500 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14501
14502         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14503         get_frame_base.
14504
14505 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14506
14507         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14508         build directories.  Save edited gdb output in Mbuild.log.  If a
14509         build fails, remove any final GDB executable.
14510
14511 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14512
14513         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14514         replacing hex constants with function names and stripping leading
14515         file name directory prefixes.
14516
14517 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14518
14519         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14520         get_frame_base.
14521
14522 2003-01-08  David Carlton  <carlton@math.stanford.edu>
14523
14524         * linespec.c (decode_line_1): Move code into decode_variable.
14525         (decode_variable): New function.
14526
14527 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14528
14529         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14530
14531 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14532
14533         * cris-tdep.c (cris_frame_init_saved_regs): Use
14534         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14535         saved_regs buffer.
14536         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14537         (sh64_nofp_frame_init_saved_regs): Ditto.
14538         (sh_fp_frame_init_saved_regs): Ditto.
14539         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14540         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14541         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14542         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14543
14544 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
14545
14546         * minsyms.c (lookup_minimal_symbol): Update comment.
14547         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14548         (lookup_minimal_symbol_solib_trampoline): Likewise.
14549
14550 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14551
14552         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14553         frame_relative_level.
14554
14555         * alpha-tdep.c: Use get_frame_extra_info.
14556         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14557         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14558         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14559         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14560
14561         * alpha-tdep.c: Use get_next_frame.
14562         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14563         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14564         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14565         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14566         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14567         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14568         * xstormy16-tdep.c: Ditto.
14569
14570 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14571
14572         * alpha-tdep.c: Use get_frame_base.
14573         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14574         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14575         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14576         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14577         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14578         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14579         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14580         * config/sparc/tm-sparc.h: Ditto.
14581
14582 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14583
14584         * frame.c (deprecated_get_frame_context): New function.
14585         (deprecated_set_frame_context): New function.
14586         * frame.h (deprecated_get_frame_context): Declare.
14587         (deprecated_set_frame_context): Declare.
14588         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14589         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14590
14591 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14592
14593         * frame.c (deprecated_set_frame_next_hack): New function.
14594         (deprecated_set_frame_prev_hack): New function.
14595         * frame.h (deprecated_set_frame_next_hack): Declare.
14596         (deprecated_set_frame_prev_hack): Declare.
14597         * mcore-tdep.c (analyze_dummy_frame): Use
14598         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14599         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14600
14601 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14602
14603         * linespec.c (decode_line_1): Move code into decode_dollar.
14604         (decode_dollar): New function.
14605
14606 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14607
14608         * arm-tdep.c (arm_init_extra_frame_info): Use
14609         deprecated_update_frame_base_hack.
14610         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14611         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14612         (fix_frame_pointer): Ditto.
14613         (mn10300_analyze_prologue): Ditto.
14614
14615 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14616
14617         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14618         extra_info using frame_extra_info_zalloc.
14619         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14620         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14621         (sh64_init_extra_frame_info): Ditto.
14622         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14623         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14624         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14625         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14626         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14627         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14628         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14629         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14630         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14631         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14632         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14633         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14634
14635         * mn10300-tdep.c (analyze_dummy_frame): Use
14636         deprecated_set_frame_extra_info_hack.
14637         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14638
14639 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14640
14641         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14642         class is not scText. These do not define "real" procedures.
14643         (parse_partial_symbols): Likewise.
14644
14645 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14646
14647         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14648
14649 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14650
14651         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14652         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14653         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14654         deprecated_frame_xmalloc_with_cleanup.
14655         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14656         deprecated_frame_xmalloc.
14657         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14658         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14659
14660 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14661
14662         * x86-64-linux-tdep.c: Include "osabi.h".
14663         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14664
14665         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14666
14667 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14668
14669         * MAINTAINERS (Target Instruction Set Architectures): Update
14670         arm-elf.  Can be built with -Werror, has been multiarched.
14671
14672         * value.h (unpack_long): Make buffer parameter constant.
14673         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14674         * scm-lang.h (scm_parse): Ditto.
14675         * defs.h (extract_typed_address, extract_address): Ditto.
14676         (extract_long_unsigned_integer): Ditto.
14677         * inferior.h (unsigned_pointer_to_address): Ditto.
14678         (signed_pointer_to_address): Ditto.
14679         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14680         * gdbarch.h, gdbarch.c: Regenerate.
14681         * findvar.c (extract_long_unsigned_integer): Update.
14682         (extract_address): Update.
14683         (extract_typed_address): Update.
14684         (unsigned_pointer_to_address): Update.
14685         * values.c (unpack_long): Update.
14686         (unpack_double): Update.
14687         (unpack_pointer): Update.
14688         (unpack_field_as_long): Update.
14689         * d10v-tdep.c (d10v_pointer_to_address): Update.
14690         * avr-tdep.c (avr_pointer_to_address): Update.
14691         * scm-lang.c (scm_unpack): Update.
14692         * findvar.c (signed_pointer_to_address): Update.
14693
14694 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14695
14696         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14697         since it is in i386-tdep.c.
14698
14699 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14700
14701         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14702         failure introduced in the previous change.
14703
14704 2003-01-05  Michael Chastain  <mec@shout.net>
14705
14706         * README: Remove references to deleted remote-*.c files:
14707         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14708         remote-nrom.c, remote-os9k.c, remote-udi.c.
14709
14710 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14711
14712         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14713         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14714         i386_get_longjmp_target.
14715
14716 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14717
14718         * arm-tdep.c (prologue_cache): Change to a pointer.
14719         (_initialize_arm_tdep): Allocate prologue_cache.
14720         (check_prologue_cache): Update.
14721         (save_prologue_cache): Update.
14722         (arm_gdbarch_init): Update.
14723
14724 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14725
14726         * stabsread.c (update_method_name_from_physname): Call complaint()
14727         instead of error.
14728
14729 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14730
14731         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14732         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14733         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14734
14735         * blockframe.c: Include "gdbcmd.h" and "command.h".
14736         (backtrace_below_main): New variable.
14737         (file_frame_chain_valid, func_frame_chain_valid)
14738         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14739         (generic_func_frame_chain_valid): Remove functions.
14740         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14741         (_initialize_blockframe): New function.
14742         * Makefile.in (blockframe.o): Update dependencies.
14743         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14744         comment.  Call frame_chain_valid ().
14745         * frame.h: Remove old prototypes.  Add prototype for
14746         frame_chain_valid and update comments to match.
14747         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14748         Remove old comment.
14749         * gdbarch.h: Regenerated.
14750         * gdbarch.c: Regenerated.
14751
14752         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14753         set_gdbarch_frame_chain_valid.
14754         * avr-tdep.c (avr_gdbarch_init): Likewise.
14755         * cris-tdep.c (cris_gdbarch_init): Likewise.
14756         * frv-tdep.c (frv_gdbarch_init): Likewise.
14757         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14758         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14759         (i386_nw_init_abi): Likewise.
14760         (i386_gdbarch_init): Likewise.
14761         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14762         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14763         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14764         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14765         * mips-tdep.c (mips_gdbarch_init): Likewise.
14766         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14767         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14768         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14769         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14770         * s390-tdep.c (s390_gdbarch_init): Likewise.
14771         * sh-tdep.c (sh_gdbarch_init): Likewise.
14772         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14773         * v850-tdep.c (v850_gdbarch_init): Likewise.
14774         * vax-tdep.c (vax_gdbarch_init): Likewise.
14775         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14776
14777         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14778         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14779         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14780         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14781         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14782         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14783         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14784         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14785
14786 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14787
14788         * Makefile.in (acconfig_h): Remove incorrect macro.
14789         (config_h): Define.
14790         (osabi.o): Update dependencies.
14791         * configure.tgt: Set gdb_osabi based on target triplet.
14792         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14793         * configure: Regenerated.
14794         * config.in: Regenerated.
14795         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14796         (GDB_OSABI_DEFAULT): Define if not already defined.
14797         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14798         (set_osabi_string): New variables.
14799         (gdbarch_register_osabi): Add new OS ABI to
14800         gdb_osabi_available_names.
14801         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14802         (set_osabi, show_osabi): New functions.
14803         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14804
14805 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14806
14807         * arch-utils.c (gdbarch_info_init): Set osabi to
14808         GDB_OSABI_UNINITIALIZED.
14809         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14810         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14811         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14812         * gdbarch.c: Regenerated.
14813         * gdbarch.h: Regenerated.
14814         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14815         there's no BFD.
14816         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14817         * osabi.h (enum gdb_osabi): Move to defs.h.
14818         (gdbarch_init_osabi): Update prototype.
14819         * defs.h (enum gdb_osabi): Moved here.
14820         * Makefile.in: Update dependencies.
14821
14822         * alpha-tdep.h: Don't include "osabi.h".
14823         (struct gdbarch_tdep): Remove osabi member.
14824         * alpha-tdep.c: Include "osabi.h".
14825         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14826         iterate over arches.  Update call to gdbarch_init_osabi.
14827         (alpha_dump_tdep): Don't dump osabi.
14828         * alpha-linux-tdep.c: Include "osabi.h".
14829         * alpha-osf1-tdep.c: Include "osabi.h".
14830         * alphafbsd-tdep.c: Include "osabi.h".
14831         * alphanbsd-tdep.c: Include "osabi.h".
14832
14833         * arm-tdep.h: Don't include "osabi.h".
14834         (struct gdbarch_tdep): Remove osabi member.
14835         * arm-tdep.c: Include "osabi.h".
14836         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14837         iterate over arches.  Update call to gdbarch_init_osabi.
14838         (arm_dump_tdep): Don't dump osabi.
14839         * arm-linux-tdep.c: Include "osabi.h".
14840         * armnbsd-tdep.c: Include "osabi.h".
14841
14842         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14843         Update call to gdbarch_init_osabi.
14844
14845         * i386-tdep.h: Don't include "osabi.h".
14846         (struct gdbarch_tdep): Remove osabi member.
14847         * i386-tdep.c: Include "osabi.h".
14848         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14849         iterate over arches.  Update call to gdbarch_init_osabi.
14850         (i386_dump_tdep): Don't dump osabi.
14851         * i386-linux-tdep.c: Include "osabi.h".
14852         * i386-sol2-tdep.c: Include "osabi.h".
14853         * i386bsd-tdep.c: Include "osabi.h".
14854         * i386gnu-tdep.c: Include "osabi.h".
14855         * i386ly-tdep.c: Include "osabi.h".
14856         * i386nbsd-tdep.c: Include "osabi.h".
14857         * i386obsd-tdep.c: Include "osabi.h".
14858
14859         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14860         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14861         check osabi when iterating over arches.  Update call to
14862         gdbarch_init_osabi.
14863         (mips_dump_tdep): Don't dump osabi.
14864
14865         * ns32k-tdep.h: Don't include "osabi.h".
14866         (struct gdbarch_tdep): Remove.
14867         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14868         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
14869         allocate tdep.  Update call to gdbarch_init_osabi.
14870         (ns32k_dump_tdep): Remove.
14871         (_initialize_ns32k_tdep): Update call to gdbarch_register.
14872         * ns32knbsd-tdep.c: Include "osabi.h".
14873
14874         * ppc-tdep.h: Don't include "osabi.h".
14875         (struct gdbarch_tdep): Remove osabi member.
14876         * rs6000-tdep.c: Include "osabi.h".
14877         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
14878         osabi when iterating over arches.  Update call to
14879         gdbarch_init_osabi.
14880         (rs6000_dump_tdep): Don't dump osabi.
14881         * ppc-linux-tdep.c: Include "osabi.h".
14882         * ppcnbsd-tdep.c: Include "osabi.h".
14883
14884         * sh-tdep.h: Don't include "osabi.h".
14885         (struct gdbarch_tdep): Remove osabi member.
14886         * sh-tdep.c: Include "osabi.h".
14887         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14888         iterate over arches.  Update call to gdbarch_init_osabi.
14889         (sh_dump_tdep): Don't dump osabi.
14890         * shnbsd-tdep.c: Include "osabi.h".
14891
14892         * sparc-tdep.c: Include "osabi.h".
14893         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14894         iterate over arches.  Update call to gdbarch_init_osabi.
14895         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
14896         tdep structure.
14897
14898         * vax-tdep.h: Don't include "osabi.h".
14899         (struct gdbarch_tdep): Remove.
14900         * vax-tdep.c: Include "osabi.h".
14901         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14902         iterate over arches.  Don't allocate tdep.  Update call
14903         to gdbarch_init_osabi.
14904         (vax_dump_tdep): Remove.
14905         (_initialize_vax_tdep): Update call to gdbarch_register.
14906
14907 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14908
14909         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14910         entirely.
14911         (breakpoint_re_set_one): Don't fetch the value for a disabled
14912         watchpoint.
14913
14914 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14915
14916         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14917         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14918         (COERCE_FLOAT_TO_DOUBLE): Remove.
14919         * gdbarch.c: Regenerate.
14920         * gdbarch.h: Regenerate.
14921         * Makefile.in: Remove value_h from gdbarch_h.
14922         * valops.c (coerce_float_to_double): New variable.
14923         (default_coerce_float_to_double): Remove.
14924         (standard_coerce_float_to_double): Remove.
14925         (value_arg_coerce): Use coerce_float_to_double.
14926         (_initialize_valops): Add "set coerce-float-to-double".
14927         * value.h (default_coerce_float_to_double): Remove prototype.
14928         (standard_coerce_float_to_double): Remove prototype.
14929
14930         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14931         prototyped.
14932         * mdebugread.c (parse_symbol): Likewise.
14933         * stabsread.c (define_symbol): Mark all functions as prototyped.
14934
14935         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14936         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14937         set_gdbarch_coerce_float_to_double.
14938         * arm-tdep.c (arm_gdbarch_init): Likewise.
14939         * frv-tdep.c (frv_gdbarch_init): Likewise.
14940         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14941         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14942         * mips-tdep.c (mips_gdbarch_init): Likewise.
14943         (mips_coerce_float_to_double): Remove.
14944         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14945         (rs6000_coerce_float_to_double): Remove.
14946         * s390-tdep.c (s390_gdbarch_init): Likewise.
14947         * sh-tdep.c (sh_gdbarch_init): Likewise.
14948         (sh_coerce_float_to_double): Remove.
14949         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14950         (sparc_coerce_float_to_double): Remove.
14951         * v850-tdep.c (v850_gdbarch_init): Likewise.
14952         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14953         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14954         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14955         (hppa_coerce_float_to_double): Remove prototype.
14956         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14957
14958 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14959
14960         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14961
14962 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14963
14964         Suggested by Stewart Brown <sb24@avaya.com>:
14965         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14966         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
14967         (c_type_print_varspec_suffix): Likewise.
14968
14969 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14970
14971         * configure.in: Don't set and AC_SUBST SUBDIRS.
14972         * configure: Regenerated.
14973
14974         * configure.in: Remove code dealing with shared libraries.
14975         * Makefile.in: Remove HLDFLAGS and HLDENV.
14976         * configure: Regenerated.
14977
14978 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
14979
14980         * frame.c (deprecated_frame_xmalloc): New function.
14981         (deprecated_set_frame_saved_regs_hack): New function.
14982         (deprecated_set_frame_extra_info_hack): New function.
14983         * frame.h (deprecated_frame_xmalloc): Declare.
14984         (deprecated_set_frame_saved_regs_hack): Declare.
14985         (deprecated_set_frame_extra_info_hack): Declare.
14986
14987 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
14988
14989         * configure.in: Move code that provides the --enable-gdbtk option
14990         right after the code that handles the --enable-tui option, and
14991         polish it somewhat.
14992         * configure: Regenerated.
14993
14994         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
14995         AC_CHECK_FUNCS and remove the old check for pread64.
14996         * acinclude.m4 (AC_GNU_SOURCE): New macro.
14997         * acconfig.h (_GNU_SOURCE): Add.
14998         (HAVE_PREAD64): Remove.
14999         * configure, aclocal.m4, config.in: Regenerated.
15000
15001 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
15002
15003         * alpha-tdep.c: Use get_frame_saved_regs.
15004         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15005         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15006         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15007         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15008         * vax-tdep.c, xstormy16-tdep.c: Ditto.
15009
15010 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15011
15012         * configure.in: Remove all use of the SUBDIRS variable; add
15013         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
15014         code providing the --enable-multi-ice option, and move it right in
15015         front of the code that checks whether gdbserver is supported.
15016         Polish that too.
15017         * configure: Regenerated.
15018         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15019         @SUBDIRS@.
15020
15021 2003-01-03  Andrew Cagney  <cagney@redhat.com>
15022
15023         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15024         * avr-tdep.c, cris-tdep.c: Ditto.
15025         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15026         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15027
15028 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15029
15030         * configure.in: Remove --enable-netrom option.
15031         * configure: Regenerated.
15032
15033 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15034
15035         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15036         declaration for `struct re_pattern_buffer' instead.
15037         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15038
15039 2003-01-03  J. Brobecker  <brobecker@gnat.com>
15040
15041         * mdebugread.c (parse_symbol): Count until the stEnd matching
15042         the structure name.
15043
15044 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15045
15046         * configure.in: Remove --with-cpu option.
15047         subscripts.  Remove evil changequotes here.
15048         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15049         * config.in, configure: Regenerated.
15050
15051         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15052         * configure.in: Cleanup section that sources GDB and BFD configure
15053         subscripts.  Remove evil changequotes here.
15054         * config.in, configure: Regenerated.
15055
15056 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15057
15058         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15059         frame accessor methods.
15060         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15061         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15062         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15063         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15064         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15065         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15066         * z8k-tdep.c: Ditto.
15067
15068 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15069
15070         * configure.in: Remove UI_OUT configuration code.
15071         * ada-lang.c: Update assuming UI_OUT is always true.
15072         * Makefile.in (UIOUT_CFLAGS): Remove.
15073         * configure: Regenerated.
15074         * TODO: Remove blurb about elimination of -DUI_OUT.
15075
15076         * configure.in: Move code that provides the --enable-gdbcli,
15077         --enable-gdbmi options right before the code that handles the
15078         --enable-tui option.  Polish a bit.
15079         * configure: Regenerated.
15080
15081         * configure.in: Rewrite check for GNU regex and the
15082         --without-included regex option, and move it into the "Checks for
15083         library functions" section.  This makes us use the system regex
15084         again by default on systems with version 2 of the GNU C library.
15085         This was apparently broken.
15086         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15087         * acconfig.h (USE_INCLUDED_REGEX): Remove.
15088         * config.in, configure: Regenerated.
15089
15090         * configure.in: Move code that provides the --enable-tui option
15091         before the "Checks for libraries" section.  Polish the code
15092         somewhat and set need_curses to yes if we build the TUI.  Rewrite
15093         code that looks for a library providing termcap functionality to
15094         match more closely what's done in the Readline library, and move
15095         it into to the "Checks for libraries" section.
15096         * configure: Regenerated.
15097         * Makefile.in (TERMCAP): Remove variable.
15098         * config/i386/go32.mh (TERMCAP): Remove variable.
15099
15100 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15101
15102         * MAINTAINERS: Mention gdb_mbuild.sh.
15103         * gdb_mbuild.sh: Rewrite.
15104
15105 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15106
15107         * configure.in: Fix typo in last change.
15108         * config.in, configure: Regenerated.
15109
15110 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15111
15112         * valarith.c (value_binop): Delete obsolete code and comments.
15113         * configure.host: Ditto.
15114         * buildsym.h (make_blockvector): Ditto.
15115         * buildsym.c (make_blockvector): Ditto.
15116         * defs.h (enum language): Ditto.
15117         (chill_demangle): Ditto.
15118         * elfread.c (elf_symtab_read): Ditto.
15119         * dwarfread.c (CHILL_PRODUCER): Ditto.
15120         (set_cu_language): Ditto.
15121         (handle_producer): Ditto.
15122         * expprint.c (print_subexp): Ditto.
15123         * gdbtypes.c (chill_varying_type): Ditto.
15124         * gdbtypes.h (builtin_type_chill_bool): Ditto.
15125         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15126         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15127         (chill_varying_type): Ditto.
15128         * language.h (_LANG_chill): Ditto.
15129         * language.c (binop_result_type, integral_type): Ditto.
15130         (character_type, string_type, structured_type): Ditto.
15131         (lang_bool_type, binop_type_check): Ditto.
15132         * stabsread.h (os9k_stabs): Ditto.
15133         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15134         (define_symbol, read_type, read_struct_fields): Ditto.
15135         (read_array_type, read_enum_type, read_huge_number): Ditto.
15136         (read_range_type, start_stabs): Ditto.
15137         * symfile.c (init_filename_language_table): Ditto.
15138         (add_psymbol_with_dem_name_to_list): Ditto.
15139         * symtab.c (symbol_init_language_specific): Ditto.
15140         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15141         * symtab.h (struct general_symbol_info): Ditto.
15142         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15143         * typeprint.c (typedef_print): Ditto.
15144         * utils.c (fprintf_symbol_filtered): Ditto.
15145         * valops.c (value_cast, search_struct_field, value_slice): Delete
15146         obsolete code.
15147         (varying_to_slice): Delete function.
15148         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15149         (varying_to_slice): Delete declaration.
15150         * MAINTAINERS: Update.
15151
15152 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15153
15154         * configure.in: Reorganize "Checks for library functions section"
15155         a bit.  Remove check for `btowc' and `isascii' functions.
15156         * configure: Regenerated.
15157
15158         * acconfig.h (_MSE_INT_H): Remove.
15159         * configure.in: Create "Checks for header files" section, and move
15160         appropriate tests there.  Don't check for objlist.h, wchar.h,
15161         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
15162         misdetection fix.  Also add "Checks for types", "Checks for
15163         compiler characteristics" and "Checks for library functions"
15164         sections.
15165         * config.in, configure: Regenerated.
15166
15167         * configure.in: Create "Checks for programs" section, and move
15168         appropriate tests there.
15169
15170 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
15171
15172         * configure.in: Create "Checks for libraries" section, and move
15173         appropriate tests there.  Cleanup check for wctype in libw.  Use
15174         AC_SEARCH_LIBS to see whether we need libsocket.
15175         * configure: Regenerated.
15176
15177 For older changes see ChangeLog-2002
15178 \f
15179 Local Variables:
15180 mode: change-log
15181 left-margin: 8
15182 fill-column: 74
15183 version-control: never
15184 End: