OSDN Git Service

* breakpoint.c (bpstat_do_actions): To ensure that
[pf3gnuchains/sourceware.git] / gdb / ChangeLog
1 2003-12-21  Jim Blandy  <jimb@redhat.com>
2
3         * breakpoint.c (bpstat_do_actions): To ensure that
4         clear_proceed_status doesn't free the command tree we're
5         evaluating out from under us, zero the bpstat's pointer to it, and
6         take care of freeing it ourselves.
7         * cli/cli-script.c (make_cleanup_free_command_lines): Make this
8         function externally visible.
9         * cli/cli-script.h (make_cleanup_free_command_lines): New
10         declaration.
11
12 2003-12-20  Mark Kettenis  <kettenis@gnu.org>
13
14         * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
15         RIP.
16
17 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
18
19         * hppa-tdep.c (hppa_gdbarch_init): Set long double floating
20         point type to floatformat_ia64_quad_big.
21
22 2003-12-18  Kevin Buettner  <kevinb@redhat.com>
23
24         * frv-tdep.c (skip_prologue_using_sal): New function.  Taken verbatim
25         from mips-tdep.c.
26         (frv_analyze_prologue): Rework to account for intermixed prologue /
27         body instructions.
28
29 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
30
31         * hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
32         Document type sizes for hppa*-*-hpux* compilers available to me.
33
34 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
35
36         * hppam3-nat.c: Delete obsolete file.
37         * hppab-nat.c: Delete obsolete file.
38         * Makefile.in: Remove references.
39
40 2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>
41
42         * symtab.c (decode_line_spec): Change call to decode_line_1.
43
44 2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>
45
46         * linespec.h (decode_line_1): Add new not_found_ptr parameter.
47         * linespec.c (decode_line_1): Add new parameter.  Pass on
48         new parameter to decode_variable and symtab_from_filename
49         functions.
50         (decode_variable): Add new not_found_ptr parameter.  Throw exception
51         rather than failing if the not_found_ptr is non-null and the
52         function is not found.
53         (symtab_from_filename): Add new not_found_ptr parametr.   Throw 
54         exception rather than failing if the not_found_ptr is non-null and 
55         the source file is not found.
56         * breakpoint.c: Change all callers of decode_line_1 to add default
57         extra parameter for decode_line_1 calls.
58         * tracepoint.c: Ditto.
59         * cli/cli-cmds.c: Ditto.
60
61 2003-12-16  J. Brobecker  <brobecker@gnat.com>
62
63         * irix5-nat.c: Include mips-tdep.h.
64
65 2003-12-16  Mark Kettenis  <kettenis@gnu.org>
66
67         * solib.h (SOLIB_CREATE_CATCH_LOAD_HOOK)
68         (SOLIB_CREATE_CATCH_UNLOAD_HOOK, SOLIB_LOADED_LIBRARY_PATHNAME)
69         (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_HAVE_LOAD_EVENT)
70         (SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
71
72         * blockframe.c (inside_main_func): Don't treat a zero PC specially.
73         Needed to fix PR backtrace/1476.
74
75 2003-12-16  David Carlton  <carlton@kealia.com>
76
77         * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
78         (method_name_from_physname): Ditto.
79
80 2003-12-15  Mark Kettenis  <kettenis@gnu.org>
81
82         * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
83         (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
84         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
85         TDEP->sizeof_fpregset.
86         * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
87         (XM_CLIBS): Remove.
88         (NATDEPFILES): Remove core-regset.o and corelow.o.
89         * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
90
91 2003-12-14  Mark Kettenis  <kettenis@gnu.org>
92
93         * proc-api.c (procfs_note): Add format string to fprintf call.
94
95         * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
96         for `subl' and `xorl' instructions.
97
98 2003-12-13  Jim Blandy  <jimb@redhat.com>
99
100         * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
101         Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
102         to strcmp and strncmp.
103
104         * osabi.c (gdbarch_init_osabi): Reformat error message with better
105         line breaks.
106
107 2003-12-13  Mark Kettenis  <kettenis@gnu.org>
108
109         * blockframe.c (inside_main_func): Reformat.  Introduce new local
110         variables to prevent long lines.  Update comments to reflect
111         reality.
112
113 2003-12-12  Kevin Buettner  <kevinb@redhat.com>
114
115         From David Mosberger  <davidm@hpl.hp.com>:
116         * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
117         with a single unw_dyn_info_t pointer.
118         (libunwind_find_dyn_list): Likewise.
119         * libunwind-frame.h: Likewise.
120         * ia64-tdep.c (ia64_find_unwind_table): Switch to using
121         UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
122         entire unwind-table at once.  Support for this table format has
123         been added to libunwind v0.95.
124         (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
125         (ia64_get_dyn_info_list): Adjust for interface change for
126         libunwind_find_dyn_list().
127
128 2003-12-12  Jeff Johnston  <jjohnstn@redhat.com>
129
130         * breakpoint.c (breakpoint_enabled): New function to test whether
131         breakpoint is active and enabled.
132         (insert_bp_location, insert_breakpoints): Call new function to test
133         for enabled breakpoint.
134         (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
135         (bpstat_should_step, bpstat_have_active_hw_watchpoints)
136         (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
137         (disable_watchpoints_before_interactive_call_start)
138         (breakpoint_re_set_one): Ditto.
139         (bpstat_stop_status): Use new function and simplify test.
140
141 2003-12-11  Mark Kettenis  <kettenis@gnu.org>
142
143         * observer.c (observer_test_first_observer)
144         (observer_test_second_observer, observer_test_third_observer):
145         Don't define as `static'.
146         (observer_test_first_notification_function)
147         (observer_test_second_notification_function)
148         (observer_test_third_notification_function): Likewise.
149
150 2003-12-10  Mark Kettenis  <kettenis@gnu.org>
151
152         * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
153         of (0).
154
155 2003-12-11  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
156
157         * MAINTAINERS (write after approval): Add myself.
158
159 2003-12-11  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
160
161         * config/h8300/tm-h8300.h (h8300hmode): Remove.
162         (h8300hmode): Likewise.
163         (h8300smode): Likewise.
164         (h8300sxmode): Likewise.
165         (h8300_normal_mode): Likewise.
166         (GDB_TARGET_IS_H8300): Likewise.
167         (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
168         * h8300-tdep.c (is_h8300hmode): New function.
169         (is_h8300smode): New function.
170         (is_h8300sxmode): New function.
171         (is_h8300_normal_mode): New function.
172         (BINWORD): Use new functions.
173         (h8300_examine_prologue): Likewise.
174         (h8300_print_register): Likewise.
175         (h8300_print_registers_info): Likewise.
176         (h8300_register_type): Likewise.
177         (h8300_gdbarch_init): Remove use of globals like h8300hmode.
178         * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
179         (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
180         (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
181
182 2003-12-10  J. Brobecker  <brobecker@gnat.com>
183
184         * frame.c (select_frame): Get the current frame PC using
185         get_frame_address_in_block() instead of get_frame_pc().
186         * stack.c (get_frame_language): Likewise.
187
188 2003-12-08  Kevin Buettner  <kevinb@redhat.com>
189
190         * remote.c (remote_open_1, remote_cisco_open): Avoid closing
191         remote_desc more than once.
192
193 2003-12-07  Andrew Cagney  <cagney@redhat.com>
194
195         * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
196         directly calling strcmp equivalents.  Add disclaimer.
197
198 2003-12-06  Andrew Cagney  <cagney@redhat.com>
199
200         * remote.c (remote_fetch_registers): For short packets, explicitly
201         supply a zero value.  Use regcache_raw_supply.  Fix suggested by
202         Jonathan Larmour.
203
204 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
205
206         * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
207         format to be the i387 extended float format which is used for
208         long doubles stored in memory. 
209
210 2003-12-05  Mark Kettenis  <kettenis@gnu.org>
211
212         From Ulrich Weigand  <weigand@informatik.uni-erlangen.de>:
213         * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
214         column instead of translating it.
215
216 2003-12-04  Michael Chastain  <mec.gnu@mindspring.com>
217
218         Partial fix for PR c++/1465.
219         Fix for PR c++/1377.
220         * cp-support.h (cp_lookup_rtti_type): New function.
221         * cp-support.c (cp_lookup_rtti_type): New function.
222         * gnu-v2-abi.c: Update copyright years.
223         (gnuv2_rtti_type): Call cp_lookup_rtti_type.
224         * gnu-v3-abi.c: Update copyright years.
225         (gnuv3_rtti_type): Call cp_lookup_rtti_type.
226
227 2003-12-04  J. Brobecker  <brobecker@gnat.com>
228
229         * stabsread.c (read_type): Save a reference to types that are defined
230         as cross references to other types.
231
232 2003-12-02  Roland McGrath  <roland@redhat.com>
233
234         * thread-db.c (enable_thread_event): Change return type to
235         td_err_e.  Return TD_OK or error code.
236         (enable_thread_event_reporting): Update callers.
237
238 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
239
240         * NEWS: Mention new C++ demangler code.
241
242 2003-12-03  Andrew Cagney  <cagney@redhat.com>
243
244         * ppc-linux-nat.c (store_register, fetch_register): Convert
245         between ptrace and regcache's wordsize.
246         (ppc_register_u_addr): Use the ptrace wordsize.
247
248 2003-12-02  Kevin Buettner  <kevinb@redhat.com>
249
250         * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
251
252 2003-12-02  Daniel Jacobowitz  <drow@mvista.com>
253
254         * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
255         (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
256         (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
257         (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
258         Delete.
259         (dwarf2_read_section): Remove offset and size arguments.  Use
260         bfd_get_section_size_before_reloc and sectp->filepos.
261         (dwarf2_has_info): Clear section variables instead of offsets.
262         (dwarf2_locate_sections): Don't initialize the deleted variables.
263         (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
264         (dwarf2_build_psymtabs_easy): Likewise.
265         * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
266         (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
267         declarations.
268         (dwarf2_read_section): Update prototype.
269         (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
270         Use bfd_get_section_size_before_reloc instead of global size
271         variables.
272
273 2003-12-01  Michael Chastain  <mec.gnu@mindspring.com>
274
275         * dwarfread.c: Update documentation on the state of dwarf-1.
276
277 2003-12-01  Andrew Cagney  <cagney@redhat.com>
278
279         Obsolete old MIPS SVr3 and SVr4 systems.
280         * NEWS: Mention obsoleted systems.
281         * configure.tgt: Mark mips*-*-sysv4* as obsolete.
282         * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
283         mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
284         obsolete.
285         * config/mips/decstation.mh: Mark as obsolete.
286         * config/mips/littlemips.mh: Mark as obsolete.
287         * config/mips/nm-mips.h: Mark as obsolete.
288         * config/mips/xm-mips.h: Mark as obsolete.
289         * config/mips/news-mips.mh: Mark as obsolete.
290         * config/mips/nm-news-mips.h: Mark as obsolete.
291         * config/mips/riscos.mh: Mark as obsolete.
292         * config/mips/nm-riscos.h: Mark as obsolete.
293         * config/mips/xm-riscos.h: Mark as obsolete.
294         * config/mips/mipsv4.mt: Mark as obsolete.
295         * config/mips/tm-mipsv4.h: Mark as obsolete.
296         * config/mips/xm-mipsv4.h: Mark as obsolete.
297
298         Obsolete old m68k systems.
299         * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
300         m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
301         m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
302         m680[01]0-sun-sunos3* as obsolete.
303         * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
304         m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
305         m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
306         * config/m68k/sun3os4.mh: Mark file obsolete.
307         * config/m68k/xm-sun3os4.h: Mark file obsolete.
308         * config/m68k/sun3os3.mh: Mark file obsolete.
309         * config/m68k/nm-sun3.h: Mark file obsolete.
310         * config/m68k/xm-sun3.h: Mark file obsolete.
311         * config/m68k/sun2os4.mh: Mark file obsolete.
312         * config/m68k/sun2os3.mh: Mark file obsolete.
313         * config/m68k/nm-sun2.h: Mark file obsolete.
314         * config/m68k/xm-sun2.h: Mark file obsolete.
315         * config/m68k/m68kv4.mh: Mark file obsolete.
316         * config/m68k/nm-sysv4.h: Mark file obsolete.
317         * config/m68k/xm-m68kv4.h: Mark file obsolete.
318         * config/m68k/m68klynx.mh: Mark file obsolete.
319         * config/m68k/nm-m68klynx.h: Mark file obsolete.
320         * config/m68k/dpx2.mh: Mark file obsolete.
321         * config/m68k/xm-dpx2.h: Mark file obsolete.
322         * config/m68k/nm-dpx2.h: Mark file obsolete.
323         * config/m68k/delta68.mh: Mark file obsolete.
324         * config/m68k/xm-delta68.h: Mark file obsolete.
325         * config/m68k/nm-delta68.h: Mark file obsolete.
326         * config/m68k/3b1.mh: Mark file obsolete.
327         * config/m68k/xm-3b1.h: Mark file obsolete.
328         * config/m68k/sun3os4.mt: Mark file obsolete.
329         * config/m68k/tm-sun3os4.h: Mark file obsolete.
330         * config/m68k/sun3os3.mt: Mark file obsolete.
331         * config/m68k/tm-sun3.h: Mark file obsolete.
332         * config/m68k/sun2os4.mt: Mark file obsolete.
333         * config/m68k/tm-sun2os4.h: Mark file obsolete.
334         * config/m68k/sun2os3.mt: Mark file obsolete.
335         * config/m68k/tm-sun2.h: Mark file obsolete.
336         * config/m68k/m68kv4.mt: Mark file obsolete.
337         * config/m68k/tm-m68kv4.h: Mark file obsolete.
338         * config/m68k/m68klynx.mt: Mark file obsolete.
339         * config/m68k/tm-m68klynx.h: Mark file obsolete.
340         * config/m68k/dpx2.mt: Mark file obsolete.
341         * config/m68k/tm-dpx2.h: Mark file obsolete.
342         * config/m68k/delta68.mt: Mark file obsolete.
343         * config/m68k/tm-delta68.h: Mark file obsolete.
344         * config/m68k/3b1.mt: Mark file obsolete.
345         * config/m68k/tm-3b1.h: Mark file obsolete.
346
347 2003-11-29  Mark Kettenis  <kettenis@gnu.org>
348
349         * x86-64-tdep.c (MAX_CLASSES): Remove macro.
350         (x86_64_reg_class): Remove enum.
351         (merge_classes, classify_argument, examine_argument): Remove
352         functions.
353         (INT_REGS, SSE_REGS): Remove macros.
354         (x86_64_push_arguments): Remove function.
355         (amd64_push_arguments): New function.
356         (x86_64_push_dummy_call): Call amd64_push_arguments instead of
357         x86_64_push_arguments.
358
359 2003-11-28  Mark Kettenis  <kettenis@gnu.org>
360
361         * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
362         zero.  Reorganize code a bit.
363
364 2003-11-27  Mark Kettenis  <kettenis@gnu.org>
365
366         * dwarf2-frame.c: Fix another comment.
367
368         * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
369         (x86_64_use_struct_convention, x86_64_extract_return_value,
370         x86_64_store_return_value): Remove.
371         (amd64_reg_class): New enum.
372         (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
373         amd64_return_value): New functions.
374         (x86_64_init_abi): Don't set extract_return_value,
375         store_return_value and use_struct_convention.  Set return_value to
376         amd64_return_value.
377         * i387-tdep.h (i387_return_value): New prototype.
378         * i387-tdep.c (i387_return_value): New function.
379
380         * dwarf2-frame.c: Fix some comments and whitespace problems.
381
382         * i386nbsd-tdep.c: Don't include "gdbtypes.h".  Include
383         "gdb_assert.h" and "gdb_string.h".
384         (i386nbsd_r_reg_offset): Rename from regmap.
385         (SIZEOF_STRUCT_REG): Remove.
386         (i386nbsd_supply_reg, fetch_core_registers,
387         fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
388         Remove.
389         (i386nbsd_aout_supply_regset,
390         i386nbsd_aout_regset_from_core_section): New functions.
391         (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
392         (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
393         TDEP->gregset_num_regs amd sizeof_gregset.  Use ARRAY_SIZE to
394         initialize TDEP->sc_num_regs.
395         (i386nbsdaout_init_abi): New function.
396         (i386nbsdelf_init_abi): Remove initialization of
397         TDEP->num_xmm_regs.  Don't set num_regs here.
398         (_initialize_i386nbsd_tdep): Don't call add_core_fns.  Use
399         i386nbsd_aout_init to register NetBSD a.out OS/ABI.
400
401         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
402         .note.netbsdcore.procinfo section to recognize NetBSD core files.
403
404 2003-11-26  Michael Chastain  <mec.gnu@mindspring.com>
405
406         * cp-abi.c: Update copyright years.
407
408 2003-11-25  Andrew Cagney  <cagney@redhat.com>
409
410         * thread-db.c (enable_thread_event): New function.  Ensure that BP
411         is a code address.
412         (enable_thread_event_reporting): Use enable_thread_event.
413
414 2003-11-25  Michael Snyder  <msnyder@redhat.com>
415
416         * mips-tdep.c (mips_o64_extract_return_value): Correct for
417         NUM_REGS (see changes 2003-06-21).
418         (mips_eabi_extract_return_value): Ditto.
419
420 2003-11-25  Andrew Cagney  <cagney@redhat.com>
421
422         * infrun.c: Don't include "exec.h".
423         (handle_inferior_event): Pass current_target, instead of exec_ops,
424         to SOLIB_ADD.  Add comments.
425         * Makefile.in (infrun.o): Update dependencies.
426
427 2003-11-24  Daniel Jacobowitz  <drow@mvista.com>
428
429         * NEWS: Mention improved location expression support.
430
431 2003-11-23  Andrew Cagney  <cagney@redhat.com>
432
433         * Makefile.in (infrun.o): Update dependencies.
434         * infrun.c: Include "exec.h".
435         (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
436
437 2003-11-23  Andrew Cagney  <cagney@redhat.com>
438
439         * frame.c (frame_unwind_signed_register): Delete function.
440         * frame.h (frame_unwind_register_signed): Delete declaration.
441         * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
442
443         * arch-utils.h (generic_cannot_extract_struct_value_address):
444         Delete declaration.
445
446         * defs.h (DEPRECATED_STREQN): Rename STREQN.
447         (DEPRECATED_STREQ): Rename STREQ.
448         * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
449         * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
450         * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
451         * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
452         * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
453         * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
454         * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
455         * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
456         * source.c, sparc-tdep.c, stack.c, target.c: Update.
457
458         * symfile.c (symbol_file_command): Replace STREQ with strcmp.
459         * elfread.c (elf_symtab_read): Delete STREQ from comment.
460
461 2003-11-22  Andrew Cagney  <cagney@redhat.com>
462
463         * frame.c (deprecated_frame_xmalloc): Delete function.
464         (deprecated_set_frame_extra_info_hack): Delete function.
465         (deprecated_set_frame_saved_regs_hack): Delete function.
466         * frame.h (deprecated_frame_xmalloc): Delete declaration.
467         (deprecated_set_frame_extra_info_hack): Delete declaration.
468         (deprecated_set_frame_saved_regs_hack): Delete declaration.
469         * mcore-tdep.c (analyze_dummy_frame): Instead of
470         deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
471         and deprecated_set_frame_extra_info_hack use
472         deprecated_frame_xmalloc_with_cleanup.
473         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
474         * mips-tdep.c (mips_init_extra_frame_info): Delete call to
475         deprecated_set_frame_saved_regs_hack.
476
477         * mips-tdep.c (mips_frame_chain): Delete call to
478         deprecated_inside_entry_file.
479
480         * frame.h (deprecated_set_frame_next_hack): Delete declaration.
481         (deprecated_set_frame_prev_hack): Delete declaration.
482         * frame.c (deprecated_set_frame_next_hack): Delete function.
483         (deprecated_set_frame_prev_hack): Delete function.
484         * mcore-tdep.c (analyze_dummy_frame): Delete calls to
485         "deprecated_set_frame_next_hack" and
486         "deprecated_set_frame_prev_hack".
487         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
488
489         * mips-tdep.c (mips_register_convertible): Delete function.
490         (mips_register_convert_to_virtual): Delete function.
491         (mips_register_convert_to_raw): Delete function.
492         (mips_gdbarch_init): Do not set "deprecated_register_convertible",
493         "deprecated_register_convert_to_virtual", or
494         "deprecated_register_convert_to_raw".
495         (mips_pseudo_register_write, mips_pseudo_register_read): Handle
496         32/64 cooked to raw register conversions.
497
498         * frame.c (deprecated_get_frame_context): Delete function.
499         (deprecated_set_frame_context): Delete function.
500         (struct frame_info): Delete member "context".
501         * frame.h (deprecated_get_frame_context): Delete declaration.
502         (deprecated_set_frame_context): Delete declaration.
503
504         * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
505         * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
506         * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
507         * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
508
509         * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
510         (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
511         mips_regsize.
512         (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
513         * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
514         * config/mips/tm-irix5.h: Update copyright.
515         (SIGFRAME_REG_SIZE): Delete macro.
516
517         * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
518         * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
519         declaration.
520         (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
521         * infcall.c (call_function_by_hand): Delete #ifdef
522         DEPRECATED_VALUE_RETURNED_FROM_STACK code.
523         * infcmd.c (print_return_value): Ditto.
524
525         * mips-tdep.c (skip_prologue_using_sal): New function.
526         (mips32_skip_prologue, mips16_skip_prologue): Use
527         skip_prologue_using_sal to get an upper bound on the search.
528
529         * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
530         #if 0'ed macro.
531         * infrun.c (step_into_function): Delete #ifdef
532         PROLOGUE_FIRSTLINE_OVERLAP code.
533         * symtab.c (find_function_start_sal): Ditto.
534
535         * remote-rdp.c: Update copyright.
536         (rdp_init): #if 0 references to "target_byte_order".
537
538         * mips-tdep.c (mips_o32_store_return_value): Delete function.
539         (mips_o32_return_value): Replace mips_o32_xfer_return_value.
540         (mips_o32_extract_return_value): Delete function.
541         (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
542         (mips_n32n64_extract_return_value): Delete function.
543         (mips_n32n64_store_return_value): Delete function.
544         (mips_gdbarch_init): For o32 and n32n64, set "return_value"
545         instead of "store_return_value", "extract_return_value", and
546         "use_struct_convention".
547         (mips_n32n64_use_struct_convention): Delete function.
548
549 2003-11-21  Kevin Buettner  <kevinb@redhat.com>
550
551         * frv-tdep.c (frv_frame_this_id): Eliminate call to
552         inside_entry_func().
553
554 2003-11-20  Mark Kettenis  <kettenis@gnu.org>
555
556         * i386-tdep.c (i386_extract_return_value,
557         i386_store_return_value): Add gdbarch argument.  Use it instead of
558         determining it from REGCACHE.  Remove recursive call for
559         structures with a single member.
560         (i386_use_struct_convention): Remove.
561         (i386_reg_struct_return_p): New function.
562         (i386_return_value): New function.
563         (i386_gdbarch_init): Set return_value, don't set
564         extract_return_value, store_return_value and
565         use_struct_convention.
566         * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
567
568 2003-11-20  Jim Blandy  <jimb@redhat.com>
569
570         * osabi.c (_initialize_gdb_osabi): Don't return before registering
571         the 'set osabi' and 'show osabi' commands.
572
573 2003-11-19  Mark Kettenis  <kettenis@gnu.org>
574
575         * frame.c (get_prev_frame): Use result from
576         get_frame_address_in_block instead of get_frame_pc as argument to
577         inside_main_func.  Fixes PR backtrace/1435.
578
579 2003-11-19  Andrew Cagney  <cagney@redhat.com>
580
581         * stack.c (return_command): Handle "void", "legacy" and "unknown
582         location" return values separatly.
583         * values.c (using_struct_return): Return 0 for a "void" return
584         type.  Mention "register_value_being_returned".
585         (register_value_being_returned): Mention "using_struct_return".
586
587 2003-11-19  Daniel Jacobowitz  <drow@mvista.com>
588
589         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
590         (frame_base_offset): Delete.
591         (read_func_scope): Delete call to decode_locdesc.
592         (decode_locdesc): Update comments.  Don't set the removed variables.
593         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
594         DW_OP_fbreg support.
595
596 2003-11-18  Daniel Jacobowitz  <drow@mvista.com>
597
598         * dwarf2read.c (optimized_out, islocal): Remove.
599         (decode_locdesc): Update comments.  Don't set optimized_out
600         or islocal.
601
602 2003-11-17  Jeff Johnston  <jjohnstn@redhat.com>
603             David Mosberger  <davidm@hpl.hp.com>
604
605         * ia64-tdep.c: Include elf.h.
606         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
607         libunwind-ia64.h.
608         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
609         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
610         (ia64_is_fpreg, ia64_access_reg): Ditto.
611         (ia64_access_fpreg, ia64_access_mem): Ditto.
612         (get_kernel_table): Ditto.
613         (ia64_find_unwind_table): Ditto.
614         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
615         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
616         (ia64_libunwind_frame_prev_register): Ditto.
617         (ia64_libunwind_frame_sniffer): Ditto.
618         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
619         sniffer.  Register libunwind functions needed by generic
620         libunwind frame code using libunwind_frame_set_descr().
621
622 2003-11-16  Daniel Jacobowitz  <drow@mvista.com>
623
624         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
625         bp_shlib_disabled breakpoint if there is a shared library mapped
626         at its expected address.
627
628 2003-11-16  Andrew Cagney  <cagney@redhat.com>
629
630         * configure.tgt: Delete mips*tx39*-elf*.
631         * config/mips/tm-tx39.h: Delete file.
632         * config/mips/tx39.mt: Delete file.
633         * config/mips/tx39.mt: Delete file.
634
635         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
636         * remote-mips.c (common_open): Instead of
637         "mips_read_register_type" and "mips_set_processor_type_command"
638         call "deprecated_mips_set_processor_regs_hack".
639         * config/mips/tm-mips.h (mips_read_processor_type): Delete
640         declaration.
641         (mips_set_processor_type_command): Delete declaration.
642         * mips-tdep.c (mips_gdbarch_init): Update comment.
643         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
644         (mips_set_processor_type): Delete function.
645         (NUM_MIPS_PROCESSOR_REGS): Define.
646         (mips_show_processor_type_command): Delete function.
647         (mips_set_processor_type_command): Delete function.
648         (tmp_mips_processor_type): Delete.
649         (mips_processor_type): Delete.
650         (mips_processor_type_table): Delete.
651         (mips_r3051_reg_names): Delete.
652         (mips_r3081_reg_names): Delete.
653         (mips_lsi33k_reg_names): Delete.
654         (mips_processor_reg_names): Delete.
655         (mips_read_processor_type): Delete function.
656         (deprecated_mips_set_processor_regs_hack): New function.
657         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
658         (mips_register_name): Get the processor names from the tdep.
659         (mips_tx39_reg_names): New array.
660         (mips_generic_reg_names): Wire to a standard set of names.
661         (mips_gdbarch_init): Set "mips_processor_reg_names".
662         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
663         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
664         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
665
666 2003-11-16  Andrew Cagney  <cagney@redhat.com>
667
668         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
669         (mips_fpa0_regnum, mips_regnum): New function.
670         (mips_gdbarch_init): Fill in the "regnum" fields.
671         * mips-tdep.h (struct mips_regnum): Define.
672         (mips_regnum): Declare.
673         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
674         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
675         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
676         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
677         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
678         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
679         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
680         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
681         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
682         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
683         * remote-mips.c: Include "mips-tdep.h".  Update.
684         * mipsnbsd-tdep.c: Update.
685         * mipsv4-nat.c: Update.
686         * mips-tdep.c: Update.
687         * mips-nat.c: Update.
688         * mips-linux-tdep.c: Update.
689         * mips-linux-nat.c: Update.
690         * irix5-nat.c: Update.
691         * dve3900-rom.c: Include "mips-tdep.h".  Update.
692         (ignore_packet): Supress GCC warning.
693         * config/mips/nm-riscos.h: Update.
694
695 2003-11-16  Andrew Cagney  <cagney@redhat.com>
696
697         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
698         register_size.
699         (mips_register_raw_size): Delete function.
700         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
701         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
702         Check and set "mips64_transfers_32bit_regs_p".
703         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
704         (mips_register_convertible): Check the architecture's
705         "mips64_transfers_32bit_regs_p".
706         (set_mips64_transfers_32bit_regs): New function.
707         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
708         "set remote-mips64-transfers-32bit-regs" command.  Specify
709         set_mips64_transfers_32bit_regs as the set function.
710         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
711
712 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
713
714         * i386-tdep.h (i386_supply_gregset): Provide prototype.
715         * i386-tdep.c (i386_supply_gregset): Make public.
716
717 2003-11-16  Andrew Cagney  <cagney@redhat.com>
718
719         * mips-tdep.c (mips_register_byte): Delete function.
720         (mips_gdbarch_init): Do not set "deprecated_register_byte".
721         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
722         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
723         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
724
725 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
726
727         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
728
729 2003-11-16  Andrew Cagney  <cagney@redhat.com>
730
731         * config/mips/linux64.mt: Delete file.
732         * config/mips/tm-linux64.h: Delete file.
733         * config/mips/tm-mips64.h: Delete file.
734         * config/mips/embed64.mt: Delete file.
735         * config/djgpp/fnchange.lst: Update.
736         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
737         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
738         * config/mips/tm-irix6.h: Update copyright.  Include
739         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
740         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
741         "OP_LDGPR".
742
743 2003-11-15  Andrew Cagney  <cagney@redhat.com>
744
745         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
746         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
747         n32 registers 64 bit.
748         (mips_register_raw_size, mips_register_byte): For pseudo
749         registers, use the register's pseudo size and not the
750         corresponding raw register's size.
751         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
752         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
753         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
754         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
755
756 2003-11-15  Andrew Cagney  <cagney@redhat.com>
757
758         * mips-tdep.c (struct gdbarch_tdep): Delete member
759         gdb_target_is_mips64.
760         (GDB_TARGET_IS_MIPS64): Delete macro.
761         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
762         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
763         (mips_addr_bits_remove): Simplify.
764
765         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
766         register_size.
767
768         Replace MIPS_REGSIZE with mips_regsize.
769         * mips-tdep.c (mips_regsize): New function.
770         * mips-tdep.h (mips_regsize): Declare.
771         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
772         (SIZEOF_STRUCT_REG): Update.
773         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
774         (mipsnbsd_fill_reg): Update.
775         (mipsnbsd_supply_fpreg): Update.
776         (mipsnbsd_fill_fpreg): Update.
777         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
778         * mips-tdep.c (mips_register_raw_size): Update.
779         (mips_register_type): Update.
780         (SIGFRAME_BASE): Update.
781         (SIGFRAME_PC_OFF): Update.
782         (SIGFRAME_REGSAVE_OFF): Update.
783         (SIGFRAME_FPREGSAVE_OFF): Update.
784         (SIGFRAME_REG_SIZE): Update.
785         (mips32_heuristic_proc_desc): Update.
786         (print_gp_register_row): Update.
787         (mips_dump_tdep): Do not print MIPS_REGSIZE.
788         * irix5-nat.c (supply_gregset): Update.
789         (fetch_core_registers): Update.
790         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
791         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
792         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
793         (MIPS_REGISTER_BYTE): Update.
794         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
795
796 2003-11-15  Andrew Cagney  <cagney@redhat.com>
797
798         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
799         USE_REGISTER_NOT_ARG.
800         * stabsread.c (define_symbol): Update.
801
802 2003-11-15  Andrew Cagney  <cagney@redhat.com>
803
804         * bcache.h (deprecated_bcache): Declare.
805         (bcache): Make returned buffer constant.
806         * bcache.c (deprecated_bcache): New function.
807         (bcache_data): New function.
808         (bcache): Call bcache data.
809         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
810         (add_psymbol_with_dem_name_to_list): Ditto.
811
812 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
813
814         * glibc-tdep.h (struct gdbarch): Declare opaque.
815         (glibc_skip_solib_resolver): Adjust prototype.
816         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
817         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
818         (arm_linux_init_abi): Set skip_solib_resolver.
819         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
820         (i386_linux_init_abi): Set skip_solib_resolver.
821         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
822         (arm_linux_skip_solib_resolver): Remove prototype.
823         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
824         (i386_linux_skip_solib_resolver): Remove prototype.
825
826 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
827
828         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
829         function.
830         * gdbarch.c, gdbarch.h: Regenerate.
831         * infrun.c (handle_inferior_event): Call
832         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
833         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
834         definition.
835         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
836         prototype.
837
838 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
839
840         * libunwind-frame.c: New file.
841         * libunwind-frame.h: New file.
842         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
843         * configure.in: Add --with-libunwind option support.  Define
844         HAVE_LIBUNWIND if libunwind support selected / defaulted.
845         Also check for libunwind.h and libunwind-ia64.h headers.
846         * configure: Regenerated.
847         * Makefile.in: Add support for libunwind-frame.o.
848         * config.in: Regenerated.
849
850 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
851
852         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
853         set up the ia64 linux native target method for getting the kernel
854         unwind table.
855         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
856         * inftarg.c (child_xfer_partial): Enable section of code to
857         handle TARGET_OBJECT_UNWIND_TABLE.
858         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
859
860 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
861
862         * config/arm/nbsd.mt (TM_FILE): Define.
863         * config/arm/tm-nbsd.h: New file.
864
865 2003-11-14  Andrew Cagney  <cagney@redhat.com>
866
867         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
868         * ppc-sysv-tdep.c: Include "objfiles.h".
869         (ppc64_sysv_abi_push_dummy_call): Provide the
870         the FN's objfile when looking for the descriptor.
871
872         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
873         "name_of_malloc" to ".malloc".
874
875 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
876
877         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
878
879 2003-11-13  David Carlton  <carlton@kealia.com>
880
881         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
882
883 2003-11-13  Andrew Cagney  <cagney@redhat.com>
884
885         * arch-utils.h (selected_architecture_name): Declare.
886         (selected_byte_order): Declare.
887         * arch-utils.c (selected_byte_order): New function.
888         (selected_architecture_name): New function.
889         (target_architecture_auto): Make static.
890         (set_architecture_string): Make static.
891         (target_byte_order): Make static.
892         (target_byte_order_auto): Make static.
893         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
894         non-multi-arch definition.
895         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
896         (target_byte_order, target_architecture): Delete declaration.
897         (target_byte_order_auto, target_architecture_auto): Ditto.
898         * gdbarch.h: Re-generate.
899         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
900         "selected_byte_order".
901
902 2003-11-13  Andrew Cagney  <cagney@redhat.com>
903
904         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
905
906 2003-11-13  Jim Blandy  <jimb@redhat.com>
907
908         * cp-namespace.c: Doc fix.
909
910 2003-11-12  Michael Snyder  <msnyder@redhat.com>
911
912         * sh64_tdep.c: Regularize some names.
913         (sh_sh64_register_name): Rename to sh64_register_name.
914         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
915         (sh_sh64_register_byte): Rename to sh64_register_byte.
916         (sh_sh64_build_float_register_type):
917         Rename to sh64_build_float_register_type.
918         (sh_sh64_register_convert_to_virtual):
919         Rename to sh64_register_convert_to_virtual.
920         (sh_sh64_register_convert_to_raw):
921         Rename to sh64_register_convert_to_raw.
922
923         * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
924         sh64_media_reg_base_num, sh64_compact_reg_base_num,
925         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
926         sh64_extract_return_value, sh64_show_media_regs,
927         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
928         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
929         sh64_pseudo_register_read, sh64_pseudo_register_write,
930         sh64_do_pseudo_register, sh_compact_print_registers_info):
931         Delete unused variable 'tdep'.
932
933         * sh64-tdep.c: Coding standard and spelling comment fixes.
934         (sh64_extract_return_value): Replace deprecated_store_floating
935         with store_typed_floating.
936         (sh_sh64_register_convert_to_raw): Replace
937         deprecated_store_floating with store_typed_floating.
938         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
939         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
940         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
941         sh64_extract_struct_value_address, sh64_pop_frame,
942         sh64_extract_return_value, sh64_store_return_value,
943         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
944         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
945         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
946         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
947         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
948         deprecated_register_virtual_type, deprecated_register_raw_size,
949         deprecated_max_register_raw_size, or
950         deprecated_max_register_virtual_size.  Instead, just set
951         gdbarch_register_type.
952         (sh_sh64_register_raw_size): Delete.
953         (sh_sh64_register_virtual_size): Delete.
954
955 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
956
957         * dwarf2read.c (struct dwarf2_cu): New type.
958
959         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
960         dwarf2_cu structure to pass down.
961
962         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
963         (add_partial_enumeration, locate_pdi_sibling, process_die)
964         (read_file_scope, read_func_scope)
965         (read_lexical_block_scope, dwarf2_get_pc_bounds)
966         (dwarf2_add_field, dwarf2_attach_fields_to_type)
967         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
968         (read_structure_scope, read_enumeration, read_array_type)
969         (read_common_block, read_namespace, read_tag_pointer_type)
970         (read_tag_ptr_to_member_type, read_tag_reference_type)
971         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
972         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
973         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
974         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
975         (read_full_die. read_attribute_value, read_attribute)
976         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
977         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
978         (die_containing_type, type_at_offset, tag_type_to_type)
979         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
980         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
981
982 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
983
984         PR breakpoints/1450
985         * breakpoint.c (insert_bp_location): Fix a logic error by returning
986         0 after a catchpoint fails.
987
988 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
989
990         * mips-tdep.c (msymbol_size): Delete.
991
992 2003-11-07  Michael Chastain  <mec@shout.net>
993
994         * symtab.h (struct minimal_symbol): Add size.
995         * dbxread.c: Use it.
996         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
997         Rename to record_minimal_symbol.
998         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
999         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
1000         (install_minimal_symbols): Ditto.
1001         * objfiles.c (terminate_minimal_symbol_table): Ditto.
1002         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
1003         * m68hc11-tdep.c: Ditto.
1004         * mips-tdep.c: Ditto.
1005         * sh64-tdep.c: Ditto.
1006
1007 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
1008
1009         * MAINTAINERS: Change my e-mail address.
1010
1011 2003-11-10  Andrew Cagney  <cagney@redhat.com>
1012
1013         * gdbarch.sh (return_value): Replace "inval" and "outval" with
1014         "readbuf" and "writebuf".
1015         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1016         * d10v-tdep.c (d10v_return_value): Ditto.
1017         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1018         (ppc_sysv_abi_broken_return_value): Ditto.
1019         (ppc64_sysv_abi_return_value): Ditto.
1020         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
1021         (ppc_sysv_abi_return_value): Ditto.
1022         (ppc_sysv_abi_broken_return_value): Ditto.
1023         (ppc64_sysv_abi_return_value): Ditto.
1024         * values.c (register_value_being_returned): Update call.
1025         * stack.c (return_command): Update call.
1026         * gdbarch.h, gdbarch.c: Re-generate.
1027
1028         * target.h (struct target_ops): Order xfer buffer parameters "read
1029         write" not "write read".
1030         * bfd-target.c (target_bfd_xfer_partial): Update.
1031         * remote.c (remote_xfer_partial): Update.
1032         * inftarg.c (child_xfer_partial): Update.
1033         * target.c (default_xfer_partial): Update.
1034         (target_read_partial, target_write_partial): Update.
1035         (debug_to_xfer_partial): Update.
1036
1037         * arch-utils.h, arch-utils.c: Fix typo in comment.
1038
1039         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
1040         (gdbarch_from_bfd): Call gdbarch_find_by_info.
1041         (set_gdbarch_from_file): Call
1042         "deprecated_current_gdbarch_select_hack".
1043
1044 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1045
1046         * arch-utils.c (gdbarch_update_p): New function.
1047         * gdbarch.sh (gdbarch_update_p): Delete function.
1048         (find_arch_by_info, gdbarch_find_by_info): New functions.
1049         (deprecated_current_gdbarch_select_hack): New function.
1050         * gdbarch.c: Re-generate.
1051
1052         * gdbarch.sh (clear_gdbarch_swap): Delete function.
1053         (swapout_gdbarch_swap): Delete function.
1054         (swapin_gdbarch_swap): Delete function.
1055         (init_gdbarch_swap): Delete function.
1056         (initialize_non_multiarch): Delete function.
1057         (current_gdbarch_swap_in_hack): New function.
1058         (current_gdbarch_swap_out_hack): New function.
1059         (current_gdbarch_swap_init_hack): New function.
1060         * gdbarch.c: Re-generate.
1061
1062         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
1063         parameter to "current_gdbarch".  Add comment explaining why.
1064         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
1065         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
1066         * gdbarch.c: Re-generate.
1067
1068         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
1069         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
1070         * config/s390/xm-linux.h: Delete file.
1071         * config/m88k/xm-delta88v4.h: Delete stray.
1072
1073         * Makefile.in (arch-utils.o): Update dependencies.
1074         * arch-utils.c: Include "osabi.h".
1075         (gdbarch_info_fill): New function.
1076         * arch-utils.h (gdbarch_info_fill): Declare.
1077         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
1078         * gdbarch.c: Re-generate.
1079
1080 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
1081             David S. Miller  <davem@redhat.com>
1082
1083         * glibc-tdep.c, glibc-tdep.h: New files.
1084         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1085         * config/i386/linux.mt (TDEPFILES): Likewise.
1086         * i386-linux-tdep.c (glibc-tdep.h): Include.
1087         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1088         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1089         * arm-linux-tdep.c (glibc-tdep.h): Include.
1090         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1091         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1092         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1093         (glibc_tdep_h): Define.
1094         (glibc-tdep.o): Add dependencies.
1095         (arm-linux-tdep.o): Update dependencies.
1096         (i386-linux-tdep.o): Likewise.
1097
1098 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1099
1100         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1101         * config/mips/nm-irix6.h: Delete file.
1102         * config/mips/nm-linux.h: Update copyright.
1103         (MIPS_GNULINUX_TARGET): Delete macro.
1104         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1105         * config/mips/xm-irix6.h: Delete file.
1106         * config/mips/linux.mh (XM_FILE): Delete definition.
1107         * config/mips/xm-linux.h: Delete file.
1108
1109 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1110
1111         * d10v-tdep.c (d10v_return_value): New function.
1112         (d10v_use_struct_convention): Delete function.
1113         (d10v_store_return_value): Delete function.
1114         (d10v_extract_struct_value_address): Delete function.
1115         (d10v_gdbarch_init): Set "return_value" instead of
1116         "extract_return_value", "store_return_value",
1117         "extract_struct_value_address", and "use_struct_convention".
1118         (RET1_REGNUM): Delete const.
1119
1120 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
1121
1122         From David S. Miller  <davem@redhat.com>:
1123         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1124         * gdbarch.c, gdbarch.h: Regenerated.
1125         * arch-utils.c (generic_skip_solib_resolver): New function.
1126         * arch-utils.h (generic_skip_solib_resolver): New prototype.
1127         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1128
1129 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1130
1131         * top.c (print_gdb_version): Replace STREQ with strcmp.
1132         * valops.c (value_struct_elt_for_reference): Ditto.
1133         (value_struct_elt_for_reference): Ditto.
1134         * symtab.c (gdb_mangle_name): Ditto.
1135         (find_line_symtab): Ditto.
1136         * symmisc.c (maintenance_print_symbols): Ditto.
1137         * symfile.c (symbol_file_command): Ditto.
1138         * stabsread.c (define_symbol, read_type): Ditto.
1139         (cleanup_undefined_types, scan_file_globals): Ditto.
1140         * solib.c (solib_map_sections): Ditto.
1141         * solib-svr4.c (bfd_lookup_symbol): Ditto.
1142         * rs6000-tdep.c (skip_prologue): Ditto.
1143         * p-valprint.c (pascal_value_print): Ditto.
1144         (pascal_object_is_vtbl_ptr_type): Ditto.
1145         * objfiles.c (in_plt_section): Ditto.
1146         * minsyms.c (lookup_minimal_symbol): Ditto.
1147         (compact_minimal_symbols): Ditto.
1148         (find_solib_trampoline_target): Ditto.
1149         * mdebugread.c (parse_type): Ditto.
1150         * language.c (set_language_command): Ditto.
1151         (set_type_command, set_range_command): Ditto.
1152         * f-lang.c (add_common_block): Ditto.
1153         (add_common_block): Ditto.
1154         (find_first_common_named): Ditto.
1155         (patch_all_commons_by_name): Ditto.
1156         * elfread.c (elf_locate_sections): Ditto.
1157         (elf_locate_sections): Ditto.
1158         (elfstab_offset_sections): Ditto.
1159         * dwarf2read.c (dwarf2_locate_sections): Ditto.
1160         * dbxread.c (add_old_header_file): Ditto.
1161         (find_corresponding_bincl_psymtab): Ditto.
1162         (read_dbx_symtab, process_one_symbol): Ditto.
1163         * coffread.c (patch_opaque_types): Ditto.
1164         * cli/cli-decode.c (delete_cmd): Ditto.
1165         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1166         * c-typeprint.c (c_type_print_base): Ditto.
1167         * breakpoint.c (bpstat_stop_status): Ditto.
1168         (clear_command, breakpoint_re_set_one): Ditto.
1169
1170 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1171
1172         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
1173         * bcache.c (struct bstring): Make "length" an unsigned short, add
1174         "half_hash".
1175         (struct bcache): Add "half_hash_error_count".
1176         (bcache): Compute and save the "half_hash".  Compare the
1177         "half_hash" before comparing the length.  Update
1178         half_hash_error_count.
1179
1180 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1181
1182         * inftarg.c (child_xfer_partial): New function
1183         (init_child_ops): Set "to_xfer_partial".
1184
1185 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1186
1187         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1188         set "return_value" instead of "use_struct_convention".
1189         (ppc_linux_use_struct_convention): Delete function.
1190         (ppc_linux_return_value): New function.
1191         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1192         (ppc_sysv_abi_broken_return_value): New function.
1193         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1194         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1195         static.
1196         (ppc_sysv_abi_extract_return_value): Delete function.
1197         (ppc_sysv_abi_broken_extract_return_value): Delete function.
1198         (ppc_sysv_abi_store_return_value): Delete function.
1199         (ppc_sysv_abi_broken_store_return_value): Delete function.
1200         (ppc_sysv_abi_use_struct_convention): Delete function.
1201         (ppc64_sysv_abi_use_struct_convention): Delete function.
1202         (ppc64_sysv_abi_extract_return_value): Delete function.
1203         (ppc64_sysv_abi_store_return_value): Delete function.
1204         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1205         (ppcnbsd_init_abi): Set "return_value", instead of
1206         "use_struct_convention", "extract_return_value", and
1207         "store_return_value".
1208         (ppcnbsd_use_struct_convention): Delete function.
1209         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1210         (ppc_sysv_abi_return_value): Declare.
1211         (ppc_sysv_abi_broken_return_value): Declare.
1212         (ppc_sysv_abi_use_struct_convention): Delete.
1213         (ppc_sysv_abi_store_return_value): Delete.
1214         (ppc_sysv_abi_extract_return_value): Delete.
1215         (ppc_sysv_abi_broken_store_return_value): Delete.
1216         (ppc_sysv_abi_broken_extract_return_value): Delete.
1217         (ppc64_sysv_abi_use_struct_convention): Delete.
1218         (ppc64_sysv_abi_extract_return_value): Delete.
1219         (ppc64_sysv_abi_store_return_value): Delete.
1220         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1221         set "return_value" instead of "extract_return_value",
1222         "store_return_value", and "use_struct_convention".
1223
1224 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1225
1226         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1227
1228         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1229         fscanf.
1230
1231 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1232
1233         * fbsd-proc.c: Fix formatting.
1234
1235 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
1236
1237         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1238         Define.
1239         (new_variant): Set name for iacc0_regnum.
1240         (frv_register_name): Accommodate pseudo-registers.
1241         (frv_register_type): Add case for iacc0_regnum.
1242         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1243         (frv_gdbarch_init): Set number of pseudo registers.  Establish
1244         pseudo-register read/write methods.
1245
1246 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1247
1248         * valops.c (destructor_name_p): Replace STREQN with strncmp.
1249         * top.c (command_line_input): Ditto.
1250         * objc-exp.y (yylex): Ditto.
1251         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1252         * jv-exp.y (yylex): Ditto.
1253         * f-exp.y (yylex): Ditto.
1254         * event-top.c (command_line_handler): Ditto.
1255         * environ.c (get_in_environ): Ditto.
1256         (set_in_environ): Ditto.
1257         * dwarfread.c (handle_producer): Ditto.
1258         * dbxread.c (process_one_symbol): Ditto.
1259         * c-typeprint.c (c_type_print_base): Ditto.
1260         * c-exp.y (yylex): Ditto.
1261
1262 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1263             Jeff Johnston  <jjohnstn@redhat.com>
1264
1265         * target.c (add_target): Only set "to_xfer_partial" when NULL.
1266         (init_dummy_target): Set "to_xfer_partial".
1267
1268 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1269
1270         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1271         REGISTER_CONVENTION.
1272
1273 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1274
1275         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1276         static.
1277
1278 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1279
1280         * breakpoint.c (remove_breakpoint): Take an bp_location
1281         instead of a breakpoint argument.  Check the bp_location's type.
1282         Fix a reversed condition for hardware breakpoints.
1283
1284         (insert_bp_location): Update call to remove_breakpoint.
1285         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
1286         (remove_hw_watchpoints): Likewise.
1287         (reattach_breakpoints): Likewise.
1288         (detach_breakpoints): Likewise.
1289         (delete_breakpoint): Likewise.
1290
1291 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1292
1293         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1294         (beakpoint_init_inferior): Likewise.
1295         (breakpoint_here_p): Likewise.  Only check addresses for software
1296         or hardware breakpoints.
1297         (breakpoint_inserted_here_p): Likewise.
1298         (breakpoint_thread_match): Likewise.  Correct comment.
1299         (bpstat_have_active_hw_watchpoints): Likewise.
1300         (check_duplicates): Likewise.
1301
1302 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1303
1304         * breakpoints.c (insert_bp_location): New function, broken out
1305         from insert_breakpoints.  Work on an bp_location instead of a
1306         breakpoint.
1307         (insert_breakpoints): Use it.
1308
1309 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1310
1311         * breakpoint.h (struct bp_location): Add section.
1312         (struct breakpoint): Remove section.
1313         * breakpoint.c (insert_breakpoints, remove_breakpoint)
1314         (breakpoint_here_p, breakpoint_inserted_here_p)
1315         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1316         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1317         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1318         section through loc.
1319
1320 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1321
1322         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1323         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
1324
1325 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1326
1327         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1328         arguments.  Initialize owner and type for the new breakpoint
1329         location item.
1330         (set_raw_breakpoint): Update call to allocate_bp_location.
1331
1332 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1333
1334         * breakpoint.h (struct bp_location): Add a chain pointer.
1335         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1336         macros.
1337         (bp_location_chain): New variable.
1338         (allocate_bp_location): New function.
1339         (set_raw_breakpoint): Use it.
1340         (delete_breakpoint): Remove ->loc from the bp_location_chain.
1341
1342 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1343
1344         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1345         (struct breakpoint): Remove address, shadow_contents, inserted,
1346         requested_address, and duplicate.  Add a struct bp_location.
1347         * breakpoint.c (condition_command, read_memory_nobpt)
1348         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1349         (reattach_breakpoints, update_breakpoints_after_exec)
1350         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1351         (breakpoint_init_inferior, breakpoint_here_p)
1352         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1353         (breakpoint_thread_match, bpstat_stop_status)
1354         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1355         (describe_other_breakpoints, check_duplicates)
1356         (make_breakpoint_permanent, create_thread_event_breakpoint)
1357         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1358         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1359         (watch_command_1, print_one_exception_catchpoint)
1360         (clear_command, breakpoint_re_set_one): Adjust member accesses to
1361         use the breakpoint's ->loc.
1362         (set_raw_breakpoint): Likewise.  Initialize ->loc.
1363         (delete_breakpoint): Likewise.  Free ->loc.
1364
1365 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1366
1367         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1368         macro.
1369         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1370         * config/i386/tm-cygwin.h
1371         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1372         * config/powerpc/tm-linux.h
1373         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1374         (at_subroutine_call_instruction_target): Delete declaration.
1375         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1376         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1377         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1378
1379         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1380         "struct bfd_section" and "struct bfd".
1381         * target.h (struct section_table): Ditto.
1382         * rs6000-nat.c (xcoff_relocate_core): Ditto.
1383         * solib-svr4.c (elf_locate_base): Ditto.
1384         * pa64solib.c (dld_cache_t): Ditto.
1385         * objfiles.h (struct obj_section): Ditto.
1386         * objfiles.c (add_to_objfile_sections): Ditto.
1387         * exec.c (bfdsec_to_vmap): Ditto.
1388         (add_to_section_table): Ditto.
1389         (build_section_table): Ditto.
1390         * corelow.c (get_core_register_section): Ditto.
1391         * coffread.c (find_linenos): Ditto.
1392         * elfread.c (elf_interpreter): Delete #if0'd function.
1393
1394         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1395         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1396         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1397         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1398
1399         * arch-utils.h (generic_cannot_extract_struct_value_address):
1400         Delete declaration.
1401         * wince.c (_initialize_wince): Fix multi-line string.
1402         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1403
1404 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1405
1406         * top.c (execute_command): Fix broken logic for command execution
1407         while inferior is running in async mode.
1408
1409 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
1410
1411         * dwarf2-frame.c (execute_cfa_program): Mark register as
1412         REG_SAVED_REG for DW_CFA_register opcode.
1413
1414 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
1415
1416         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1417         %rsp, %rip and %eflags to match ABI-change.
1418
1419 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1420
1421         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1422         (ia64_gdbarch_init): Don't bother calculating the os.
1423         Instead use the gdbarch_info struct and look at the osabi field.
1424         Also use gdbarch_list_lookup_by_info() to look for a
1425         candidate gdbarch.
1426
1427 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
1428
1429         * frv-tdep.c (frv_register_byte): Delete.
1430         (frv_extract_return_value, frv_store_return_value)
1431         (frv_extract_struct_value_address): Don't call frv_register_byte().
1432         Convert to non-deprecated form.
1433         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1434         Convert calls to set_gdbarch_deprecated_extract_return_value(),
1435         set_gdbarch_deprecated_store_return_value(), and
1436         set_gdbarch_deprecated_extract_struct_value_address() into
1437         non-deprecated forms.
1438
1439 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1440
1441         * mips-tdep.c (mips_dump_tdep): Do not print
1442         PRINT_EXTRA_FRAME_INFO.
1443         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1444         Rename PRINT_EXTRA_FRAME_INFO.
1445         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1446         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1447         (mips_print_extra_frame_info): Delete declaration.
1448         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1449
1450 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
1451
1452         * coffread.c (coff_symtab_read): Remove passing of info parameter
1453         to prim_record_minimal_symbol_and_info.
1454
1455 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1456
1457         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1458         (decode_base_type): Delete ifdeffed out code.
1459
1460 2003-11-04  Andrew Cagney  <cagney@redhat.com>
1461
1462         * symtab.c (find_active_alias): Delete function.
1463         (lookup_block_symbol): Delete alias code.
1464         * stabsread.c (resolve_live_range): Delete function.
1465         (add_live_range): Delete function.
1466         (resolve_symbol_reference): Delete function.
1467         (define_symbol): Delete live range and alias code.
1468         (scan_file_globals): Delete alias code.
1469         * symtab.h (SYMBOL_RANGES): Delete macro.
1470         (struct range_list): Delete structure.
1471         (struct symbol): Delete field "ranges".
1472         (SYMBOL_ALIASES): Delete macro.
1473         (struct alias_list): Delete structure.
1474         (struct symbol): Delete field "aliases".
1475
1476 2003-11-04  Michael Snyder  <msnyder@redhat.com>
1477
1478         * MAINTAINERS: Remove myself as owner of breakpoints and
1479         of sparc/solaris.
1480
1481 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
1482
1483         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1484         (sh_sh4al_dsp_register_name): Ditto.
1485         (sh4_nofpu_show_regs): Ditto.
1486         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1487         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1488
1489 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1490
1491         * bcache.c: Include "gdb_assert.h".
1492         (struct bcache): Add fields "expand_count" and
1493         "expand_hash_count".
1494         (expand_hash_table): Update the expand counts.
1495         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
1496         on object sizes and hashes.
1497         * Makefile.in (bcache.o): Update dependencies.
1498
1499 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1500
1501         * exec.c (xfer_memory): Eliminate xfer_fn.
1502
1503 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
1504
1505         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1506         (opcodes/frv-desc.h): Include.
1507         (iacc0h_regnum, iacc0l_regnum): Define.
1508         (last_spr_regnum, frv_num_regs): Update.
1509         (new_variant): Don't supply default names for holes in the SPRs.
1510         Supply names for iacc0h_regnum and iacc0l_regnum.
1511         (frv_register_type): Use symbolic constants first_fpr_regnum and
1512         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
1513         builtin_type_int instead of builtin_type_int32.
1514         (frv_register_sim_regno): New function.
1515         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1516         * Makefile.in (gdb_sim_frv_h): Define.
1517         (frv-tdep.o): Update dependencies.
1518
1519 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1520
1521         * avr-tdep.c (avr_frame_this_id): Do not call
1522         deprecated_inside_entry_file.
1523         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1524         * m32r-tdep.c (m32r_frame_this_id): Ditto.
1525         * d10v-tdep.c (d10v_frame_this_id): Ditto.
1526         * arm-tdep.c (arm_prologue_this_id): Ditto.
1527         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1528
1529 2003-10-31  Jim Blandy  <jimb@redhat.com>
1530
1531         * elfread.c (elf_symtab_read): Allocate correct number of tail
1532         elements to sectinfo structure.  (Fix from Woody LaRue.)
1533
1534 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1535
1536         * stack.c (return_command): Use get_frame_type, instead of
1537         CALL_DUMMY_HAS_COMPLETED.
1538         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1539         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1540
1541 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1542
1543         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1544         explicitly specify size of array.
1545         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1546         TDEP->sc_num_regs.
1547
1548 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1549
1550         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1551         function.
1552         (s390_gdbarch_init): Set extract_struct_value_address.
1553         * arch-utils.c (generic_cannot_extract_struct_value_address):
1554         Delete function.
1555         * arch-utils.h (generic_cannot_extract_struct_value_address):
1556         Delete definition.
1557
1558 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1559
1560         * i386-linux-nat.c (fetch_core_registers): Remove.
1561         (linux_elf_core_fns): Remove.
1562         (_initialize_i386_linux_nat): Remove.
1563
1564 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1565
1566         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
1567         "exec.h".
1568         (exec_entry_point): New function.
1569         (enable_break): Create a "tmp_bfd_target", use that and
1570         entry_point_address when computing the relocation offset.
1571         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1572         * Makefile.in (solib-svr4.o): Update dependencies.
1573
1574 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1575
1576         * defs.h (XZALLOC): Define.
1577         * target.h (struct target_ops): Add "to_data";
1578         * bfd-target.h, bfd-target.c: New files.
1579         * Makefile.in (SFILES): Add "bfd-target.c".
1580         (COMMON_OBS): Add "bfd-target.o".
1581         (bfd-target.o): Specify dependencies.
1582         (bfd_target_h): Define.
1583         * defs.h (XZALLOC): Define.
1584
1585 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1586
1587         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1588         adjust_breakpoint_address.
1589         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1590         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1591         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1592         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1593
1594 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1595
1596         * target.h (struct target_ops): Replace "to_read_partial" and
1597         "to_write_partial" with "to_xfer_partial".  Update comments.
1598         * target.c (debug_to_write_partial): Delete function.
1599         (debug_to_xfer_partial): Replace debug_to_read_partial.
1600         (add_target, update_current_target, setup_target_debug): Set
1601         "to_xfer_partial" instead of "to_read_partial" and
1602         "to_write_partial".
1603         (default_xfer_partial): Replace "default_write_partial".
1604         (default_read_partial): Delete.
1605         (target_read_partial, target_write_partial): Call
1606         "to_xfer_partial".
1607         * remote.c (init_remote_ops): Set "to_xfer_partial".
1608         (init_remote_async_ops): Ditto.
1609         (remote_xfer_partial): Replace "remote_read_partial".
1610
1611 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1612
1613         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1614         registers in `fxsave' format.
1615         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1616
1617 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
1618
1619         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1620         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1621         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1622
1623         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1624         specify size of array.
1625         (i386_linux_init_abi): Remove initialization of
1626         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1627         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1628
1629         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1630         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1631         core-regset.o.
1632
1633         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1634         the ELF header.
1635
1636 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1637
1638         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1639         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1640         core-regset.o.
1641
1642         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1643
1644         * corelow.c: Include "arch-utils.h", "regset.h" and
1645         "gdb_assert.h".
1646         (core_gdbarch): New variable.
1647         (sniff_core_bfd): Don't sniff if we have support for register sets
1648         in CORE_GDBARCH.
1649         (core_close): Reset CORE_GDBARCH.
1650         (core_open): Initialize CORE_GDBARCH.
1651         (get_core_register_section): Use register sets if they are
1652         supported by CORE_GDBARCH.
1653         (get_core_registers): Don't print error message if we have support
1654         for register sets in CORE_GDBARCH.
1655
1656 2003-10-29  Andrew Cagney  <cagney@redhat.com>
1657
1658         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1659         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1660
1661 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1662
1663         * objfiles.h (clear_objfile_data): New prototype.
1664         * objfiles.c (clear_objfile_data): New function.
1665         * symfile.c (reread_symbols): Clear per-objfile data.
1666
1667 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
1668
1669         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1670         printf_unfiltered instead of printf_filtered for output messages.
1671         (add_symbol_file_command): Ditto.
1672         (reread_symbols): Ditto.
1673         (overlay_auto_command): Ditto.
1674         (overlay_manual_command): Ditto.
1675         (overlay_off_command): Ditto.
1676
1677 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
1678
1679         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1680         (gdbarch_from_bfd): New function.
1681         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1682         deprecated_select_gdbarch_hack.
1683         * arch-utils.h (gdbarch_from_bfd): New prototype.
1684
1685 2003-10-27  Andrew Cagney  <cagney@redhat.com>
1686
1687         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1688         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1689         deprecated bfd_printable_arch_mach.
1690
1691 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
1692
1693         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1694         Delete.
1695         (frv_register_type): Rename from frv_register_virtual_type.  Add
1696         ``struct gdbarch *'' parameter.
1697         (frv_gdbarch_init): Delete calls to the following functions:
1698         set_gdbarch_deprecated_size(),
1699         set_gdbarch_deprecated_register_bytes(),
1700         set_gdbarch_deprecated_register_raw_size(),
1701         set_gdbarch_deprecated_max_register_raw_size(),
1702         set_gdbarch_deprecated_register_virtual_size(),
1703         set_gdbarch_deprecated_max_register_virtual_size(),
1704         set_gdbarch_deprecated_register_virtual_size(),
1705         set_gdbarch_deprecated_register_virtual_type().
1706         Add call to function set_gdbarch_register_type().
1707
1708 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
1709
1710         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1711         FDOFF_REGNUM): Remove defines.
1712         * win32-nat.c (do_child_fetch_inferior_registers): Include
1713         "i387-tdep.h".
1714         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1715         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1716         undefine I387_ST0_REGNUM.
1717
1718         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1719         * x86-64-tdep.c (x86_64_store_return_value): Use
1720         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1721
1722         Change register numbers to enumartion values.
1723         * i386-tdep.h (enum i386_regnum): New.
1724         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1725         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1726         I386_ST0_REGNUM): Remove defines.
1727         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1728         I386_EDI_REGNUM): Remove defines.
1729
1730 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1731
1732         * target.c: Include "gdbcore.h".
1733         (get_target_memory, get_target_memory_unsigned): New functions.
1734         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1735         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1736         Use get_target_memory_unsigned.
1737         * Makefile.in (target.o): Update dependencies.
1738
1739 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1740
1741         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1742         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1743         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1744         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1745         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1746
1747         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1748         (can_run_code_for): Use the OO term "singleton".
1749
1750 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1751
1752         * Makefile.in (stack.o): Add $(regcache_h).
1753         * stack.c: Include "regcache.h"
1754         (return_command): Rewrite.  Use get_frame_id and
1755         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1756         about unhandled return-values.
1757         * value.h (set_return_value): Delete declaration.
1758         * values.c (set_return_value): Delete function.
1759
1760 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1761
1762         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1763         (pseudo_regs): Add comment regarding register stack registers.
1764         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1765         (floatformat_valid): New static routine.
1766         (floatformat_ia64_ext): Add name field and set up is_valid routine
1767         to floatformat_valid().
1768         (examine_prologue):  For the previous cfm, use
1769         frame_unwind_register()
1770         if the cfm is not stored in a register-stack register.  Save the
1771         previous cfm value in the prev_cfm field.  Add debug output.
1772         (ia64_frame_this_id): Use frame_id_build_special() to also register
1773         the bsp.  Add debug output.
1774         (ia64_sigtramp_frame_this_id): Ditto.
1775         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1776         registers and also add some checks for framelessness before accepting
1777         current register values for fields such as return address.  For cfm,
1778         use the cached prev_cfm field if available.  Add comment to explain
1779         PSR logic.  Add debug output.
1780         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1781         as part of initialization.
1782         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1783         calculated.  Cache the bsp and cfm values.
1784         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1785         instead of using ia64_frame_prev_register() which doesn't expect most
1786         registers to be saved.  The saved values for bsp and sp
1787         can be taken from the cache.  Add debug output.
1788         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1789         the bsp.
1790
1791 2003-10-23  Jim Blandy  <jimb@redhat.com>
1792
1793         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1794         architecture the current arch can run code for --- but not if it's
1795         a superset.
1796         (can_run_code_for): New function.
1797
1798 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1799
1800         * MAINTAINERS: Move myself from paper trail section back to write
1801         after approval section.
1802
1803 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1804
1805         * exec.h: New file.
1806         * win32-nat.c: Include "exec.h".
1807         * solib.c: Include "exec.h".
1808         * target.h (build_section_table): Delete declaration.
1809         * somsolib.c: Include "exec.h".
1810         (exec_ops): Delete extern declaration.
1811         * rs6000-nat.c: Update copyright.  Include "exec.h".
1812         (exec_ops): Delete extern declaration.
1813         * pa64solib.c: Update copyright.  Include "exec.h".
1814         (exec_ops): Delete extern declaration.
1815         * exec.c: Update copyright.  Include "exec.h".
1816         * corelow.c: Update dependencies.  Include "exec.h".
1817         * Makefile.in (exec_h): Define.
1818         (exec.o, somsolib.o): Update dependencies.
1819         (pa64solib.o, corelow.o): Update dependencies.
1820
1821 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1822
1823         * target.c: Include "gdb_assert.h" (target_read): Call
1824         "target_read_partial", not "target_write_partial".
1825         (default_read_partial, default_write_partial): New function.
1826         (target_read_partial, target_write_partial): Simplify, assume that
1827         there is always a read/write method.
1828         (update_current_target, add_target): Always set "to_read_partial"
1829         and "to_write_partial".
1830         (target_write, target_read): Fail on a zero byte transfer.
1831         * Makefile.in (target.o): Update dependencies.
1832         * target.h: Update copyright date.
1833         (target_object): Fix typo.
1834
1835 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1836
1837         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1838         multi-arch method, add "targ" parameter.
1839         (struct target_ops): Declare.
1840         * gdbarch.h, gdbarch.c: Re-generate.
1841         * Makefile.in (c-valprint.o): Update dependencies.
1842         * arch-utils.h: Update copyright.
1843         (convert_from_func_ptr_addr_identity): Declare.
1844         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1845         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1846         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1847         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1848         * infcall.c (find_function_addr, call_function_by_hand): Update.
1849         * c-valprint.c: Include "target.h".
1850         (print_function_pointer_address): Update.
1851
1852 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1853
1854         * target.c (target_close): New function.
1855         (debug_to_close): Use "target_close".
1856         (push_target): Use "target_close".
1857         (unpush_target): Use "target_close".
1858         (pop_target): Use "target_close".
1859         * target.h (struct target_ops): Add "to_xclose".
1860         (target_open): Delete macro.  Move comment to "to_open".
1861         (target_close): Replace macro with function that takes a target.
1862         * top.c (quit_target): Pass "current_target" to "target_close".
1863
1864 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1865
1866         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1867         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1868         * symtab.h (lookup_minimal_symbol_text): Update.
1869         * breakpoint.c (create_overlay_event_breakpoint,
1870         create_longjmp_breakpoint): Update callers.
1871         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1872         * symtab.c (find_pc_sect_line): Ditto.
1873
1874 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1875
1876         * target.c (errno): Delete extern declaration.
1877
1878 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1879
1880         * ia64-tdep.c: Change all occurrences of
1881         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1882         (ia64_frame_prev_register): Minor whitespace change.
1883
1884 2003-10-20  Michael Chastain  <mec@shout.net>
1885
1886         * config/djgpp/fnchange.lst: Add lines for:
1887         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1888         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1889         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1890         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1891         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1892         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1893         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1894
1895 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1896
1897         * values.c (register_value_being_returned): Update comments.  Use
1898         "gdbarch_return_value" when available.
1899         (using_struct_return): Ditto.
1900         (set_return_value): Ditto.  Use "gdbarch_return_value" when
1901         available..  Print a warning, and not an error, when an unhandled
1902         return type is encountered.
1903         * infcmd.c: Include "gdb_assert.h".
1904         (print_return_value): When gdbarch_return_value_p, and using
1905         struct return, assume that the value is not available.
1906         * defs.h (return_value_convention): Define.
1907         * gdbarch.sh (gdbarch_return_value): New predicate method.
1908         * gdbarch.h, gdbarch.c: Re-generate
1909         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1910
1911 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1912
1913         * symtab.c: Replace "struct sec" with "struct bfd_section".
1914         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1915
1916 2003-10-19  Michael Chastain  <mec@shout.net>
1917
1918         * config/djgpp/fnchange.lst: Add lines for:
1919         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1920         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1921         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1922
1923 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
1924
1925         * amd64fbsd-nat.c (fetch_inferior_registers,
1926         store_inferior_registers): Remove functions.
1927         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1928
1929 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
1930
1931         Add NetBSD/amd64 native configuration:
1932         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1933         * amd64nbsd-tdep.c: New file.
1934         * amd64nbsd-nat.c: New file.
1935         * amd64bsd-nat.c: New file.
1936         * config/i386/nbsd64.mh: New file.
1937         * config/i386/nbsd64.mt: New file.
1938         * configure.host: Add x86_64-*-netbsd*.
1939         * configure.tgt: Add x86_64-*-netbsd*.
1940         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1941         New targets.
1942         * NEWS (New native configurations): Mention NetBSD/amd64.
1943
1944 2003-10-17  Michael Chastain  <mec@shout.net>
1945
1946         * config/djgpp/fnchange.lst: Remove dead lines for:
1947         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1948         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1949         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1950         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1951         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1952         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1953         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1954         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1955         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1956         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1957         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1958         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1959         gdb/config/sparc/tm-sparclite.h,
1960         gdb/gdbtk/generic/ChangeLog-2001,
1961         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1962         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1963         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1964         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1965         gdb/testsuite/gdb.mi/mi0-var-block.exp,
1966         gdb/testsuite/gdb.mi/mi0-var-child.exp,
1967         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1968         gdb/testsuite/gdb.mi/mi0-var-display.exp,
1969         itcl/iwidgets3.0.0/demos/extfileselectionbox,
1970         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1971         itcl/iwidgets3.0.0/demos/fileselectionbox,
1972         itcl/iwidgets3.0.0/demos/fileselectiondialog,
1973         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1974         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1975         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1976         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1977         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1978         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1979         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1980         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1981         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1982         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1983         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1984         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1985         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1986         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1987         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1988         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1989         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1990         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1991         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1992         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1993         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1994         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1995         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1996         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1997         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1998         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1999         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
2000         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
2001         itcl/iwidgets3.0.0/demos/html/shell.n.html,
2002         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
2003         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
2004         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
2005         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
2006         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
2007         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
2008         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
2009         itcl/iwidgets3.0.0/demos/scrolledcanvas,
2010         itcl/iwidgets3.0.0/demos/scrolledframe,
2011         itcl/iwidgets3.0.0/demos/scrolledhtml,
2012         itcl/iwidgets3.0.0/demos/scrolledlistbox,
2013         itcl/iwidgets3.0.0/demos/scrolledtext,
2014         itcl/iwidgets3.0.0/demos/selectionbox,
2015         itcl/iwidgets3.0.0/demos/selectiondialog,
2016         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
2017         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
2018         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
2019         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
2020         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
2021         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
2022         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
2023         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
2024         itcl/iwidgets3.0.0/doc/scrolledframe.n,
2025         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
2026         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
2027         itcl/iwidgets3.0.0/doc/scrolledtext.n,
2028         itcl/iwidgets3.0.0/doc/selectionbox.n,
2029         itcl/iwidgets3.0.0/doc/selectiondialog.n,
2030         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
2031         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
2032         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
2033         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
2034         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
2035         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
2036         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
2037         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
2038         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
2039         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
2040         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
2041         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
2042         itcl/iwidgets3.0.0/generic/selectionbox.itk,
2043         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
2044         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
2045         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
2046         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
2047         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
2048         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
2049         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
2050         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
2051         itcl/iwidgets3.0.0/tests/scrolledframe.test,
2052         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
2053         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
2054         itcl/iwidgets3.0.0/tests/scrolledtext.test,
2055         itcl/iwidgets3.0.0/tests/selectionbox.test,
2056         itcl/iwidgets3.0.0/tests/selectiondialog.test,
2057         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
2058         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
2059         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
2060         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
2061         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
2062         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
2063         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
2064         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
2065         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
2066         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
2067         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
2068         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
2069         tk/mac/tkMacProjects.sit.hqx.
2070
2071 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2072
2073         * target.c (target_section_by_addr): New function.
2074         (do_xfer_memory): Use "target_section_by_addr".
2075         * target.h (target_section_by_addr): Declare.
2076
2077         * target.h (struct target_ops): Add "to_read_partial" and
2078         "to_write_partial", delete "to_query".
2079         (target_read_partial, target_write_partial): Declare.
2080         (target_read, target_write): Declare.
2081         (target_query): Delete macro.
2082         * target.c (target_read_partial): New function.
2083         (target_write_partial, target_read, target_write): New function.
2084         (update_current_target): Delete inheritance of "to_query".  Add
2085         comments about "to_read_partial" and "to_write_partial".
2086         (debug_to_partial_read, debug_to_partial_write): New functions.
2087         (debug_to_query): Delete function.
2088         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2089         instead of "to_query".
2090         * remote.c (remote_read_partial): Replace "remote_query".
2091         (init_remote_ops): Set "to_read_partial" instead of "to_query".
2092         (init_remote_async_ops): Ditto.
2093         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
2094         "target_read_partial" instead of "target_query".
2095         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2096         Use "target_read_partial" instead of "target_query".
2097
2098 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
2099
2100         * frame.h (struct frame_id): Add new field: special_addr.
2101         (frame_id_build_special): New prototype.
2102         * frame.c (frame_id_build_special): New function.
2103         (frame_id_build): Change to call frame_id_build_special().
2104         (frame_id_eq): Change to also test special_addr field.
2105         (frame_id_inner): Update comment.
2106
2107 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2108
2109         * target.c (update_current_target): Perform the target cleanup.
2110         Put the target stack beneath the squashed "current_target".
2111         (add_target): Delete disabled call to "cleanup_target".
2112         (cleanup_target): Delete function.
2113         (push_target, unpush_target): Do not call "cleanup_target".
2114
2115 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2116
2117         * target.c (target_stack): Change to a static target_ops.
2118         (update_current_target): Walk the "struct target_ops" stack.
2119         (pop_target, do_xfer_memory, target_info): Ditto.
2120         (find_target_beneath): Ditto.
2121         (push_target): Rewrite to use the "struct target_ops" stack.
2122         (unpush_target): Ditto.
2123         * target.h (struct target_stack_item): Delete definition.
2124         (target_stack): Delete declaration.
2125         (struct target_ops): Add field "beneath".
2126
2127 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
2128
2129         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2130         declaration.
2131         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
2132         (h8300_examine_prologue): Use h8300_normal_mode flag
2133         (h8300_gdbarch_init): Set architecture info for normal mode
2134
2135 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
2136
2137         * remote.c (remote_protocol_vcont): New variable.
2138         (set_remote_protocol_vcont_packet_cmd): New function.
2139         (show_remote_protocol_vcont_packet_cmd): New function.
2140         (init_all_packet_configs): Handle remote_protocol_vcont.
2141         (remote_vcont_probe): New function.
2142         (remote_vcont_resume): New function.
2143         (remote_resume): Use it.
2144         (remote_async_resume): Call remote_resume.
2145         (_initialize_remote): Add verbose-resume packet commands.
2146
2147 2003-10-16  Andrew Cagney  <cagney@redhat.com>
2148
2149         * infrun.c (handle_inferior_event): Add comment about
2150         "frame_id_inner" being too weak.
2151
2152 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
2153
2154         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2155         second parameter, which is always null. Remove
2156         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2157         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2158         accordingly.
2159         * somsolib.c (som_solib_create_inferior_hook,
2160         som_solib_desire_dynamic_linker_symbols): Update callers.
2161         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2162
2163 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
2164
2165         * remote-m32r-sdi.c : New file, interface to m32r on-chip
2166         debug interface, SDI (Scalable Debug Interface).
2167         * NEWS: Mention m32r SDI protocol was supported.
2168         * Makefile.in (remote-m32r-sdi.o): Add build rule.
2169         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2170
2171 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2172
2173         * ia64-linux-tdep.c: Include gdbcore.h.
2174         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2175         (ia64_linux_sigcontext_register_addr): Find the address of the
2176         sigcontext area stored in the sigframe instead of using
2177         a magic offset constant.
2178
2179 2003-10-15  Andrew Cagney  <cagney@redhat.com>
2180
2181         * remote.c (remote_search): Delete function.
2182         * target.h (target_search): Delete disabled macro.
2183         (struct target_ops): Delete disabled field "to_search".
2184
2185 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
2186
2187         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2188         instead of deprecated_inside_entry_file().
2189
2190 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
2191
2192         * sh-tdep.c: Fix copy/paste hangover in comment.
2193         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2194         mode.
2195         (sh3e_sh4_extract_return_value): Ditto.
2196
2197 2003-10-13  Richard Henderson  <rth@redhat.com>
2198
2199         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2200         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
2201         match c_val_print a bit closer.
2202
2203 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2204
2205         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2206         (frv_gdbarch_adjust_breakpoint_address): New function.
2207         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2208         method.
2209
2210 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2211
2212         * breakpoint.h (struct breakpoint): Add new member
2213         ``requested_address''.
2214         * breakpoint.c (breakpoint_adjustment_warning)
2215         (adjust_breakpoint_address): New static functions.
2216         (print_it_typical): Issue warning if breakpoint's address is different
2217         from its requested address.
2218         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2219         (breakpoint_re_set_one):  Set breakpoint's
2220         ``requested_address'' field.  Set ``address'' field to the
2221         result of calling adjust_breakpoint_address() on the requested
2222         address.
2223
2224 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2225
2226         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2227         * gdbarch.h, gdbarch.c: Regenerate.
2228
2229 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2230
2231         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2232         TDEP->sc_num_regs.
2233
2234         * i386fbsd-tdep.c: New file.
2235         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2236         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2237         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2238         i386bsd-tdep.c.
2239         (_initialize_i386fbsd_tdep): New function.
2240         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2241         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2242         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2243         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
2244         TDEP->sc_num_regs.
2245         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2246         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2247         to initialize TDEP->sc_num_regs.
2248         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2249         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2250         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2251         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2252         FreeBSD ELF OS/ABI's here.
2253         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2254         (i386fbsd-tdep.o): New target.
2255         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2256         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
2257
2258         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2259         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2260         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2261         in initialization of TDEP->sc_num_regs.
2262
2263         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2264         (x86_64_init_abi): Initialize regset_from_core_section if
2265         appropriate.
2266
2267         * i386-tdep.c (i386_regset_from_core_section): New function.
2268         (i386_gdbarch_init): Initialize regset_from_core_section if
2269         appropriate.
2270         * i386-tdep.h (i386_regset_from_core_section): New declaration.
2271
2272         * i386-tdep.h (struct regset): Declare opaque.
2273
2274         * gdbarch.sh (regset_from_core_section): New method.
2275         (struct regset): Declare opaque.
2276         * gdbarch.c, gdbarch.h: Regenerated.
2277
2278 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
2279
2280         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2281         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
2282         Correct test for pc within section.
2283
2284 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2285
2286         * gdbarch.sh: Remove trailing whitepsace from comments.
2287
2288 2003-10-08  Roland McGrath  <roland@redhat.com>
2289
2290         * gcore.c (make_mem_sec): Function removed, folded into ...
2291         (gcore_create_callback): ... here.  To omit a section, clear its
2292         SEC_LOAD bit rather than zeroing its size.
2293         Omit read-only sections only if they correspond to a known disk file.
2294         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2295
2296 2003-10-10  Michael Snyder  <msnyder@redhat.com>
2297
2298         * d10v-tdep.c: Fix typo in comment.
2299
2300 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2301
2302         * rs6000-tdep.c (e500_store_return_value): Delete function.
2303         (e500_extract_return_value): Delete function.
2304         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2305         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2306         "ppc_sysv_abi_restore_return_value" where applicable.
2307         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2308         (ppc_sysv_abi_extract_return_value): Declare.
2309         (ppc_sysv_abi_broken_store_return_value): Declare.
2310         (ppc_sysv_abi_broken_extract_return_value): Declare.
2311         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2312         * ppc-sysv-tdep.c (return_value_convention): Move definition to
2313         start of file.
2314         (do_ppc_sysv_return_value): New function.
2315         (ppc_sysv_abi_extract_return_value): New function.
2316         (ppc_sysv_abi_store_return_value): New function.
2317         (ppc_sysv_abi_broken_extract_return_value): New function.
2318         (ppc_sysv_abi_broken_store_return_value): New function.
2319         (ppc_sysv_abi_use_struct_convention): Call
2320         do_ppc_sysv_return_value.
2321
2322 2003-10-10  J. Brobecker  <brobecker@gnat.com>
2323
2324         * blockframe.c (inside_main_func): No longer use symbol_lookup()
2325         to lookup the main function symbol.
2326
2327 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2328
2329         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2330         types correctly.
2331         (sh_push_dummy_call_fpu): Fix argument passing rules.
2332         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2333         float types.
2334         (sh3e_sh4_store_return_value): Ditto.
2335
2336 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
2337
2338         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2339         comment.
2340
2341 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2342
2343         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2344         more readable code.  Accomodate passing of bitfields.
2345
2346 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2347
2348         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2349         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2350         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2351         * ppc-sysv-tdep.c: Include "gdb_assert.h".
2352         (ppc64_sysv_abi_push_dummy_call): New function.
2353         (ppc64_sysv_abi_broken_push_dummy_call): New function.
2354         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2355         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2356
2357 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
2358
2359         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2360         * README: Ditto.
2361         * d10v-tdep.c: Ditto.
2362         * h8300-tdep.c: Ditto.
2363         * remote-e7000.c: Ditto.
2364         * remote-hms.c: Ditto.
2365         * ser-e7kpc.c: Ditto.
2366         * sh-stub.c: Ditto.
2367         * sh-tdep.c: Ditto.
2368         * sh-tdep.h: Ditto.
2369         * sh3-rom.c: Ditto.
2370         * sh64-tdep.c: Ditto.
2371         * top.c: Ditto.
2372         * wince.c: Ditto.
2373         * config/d10v/d10v.mt: Ditto.
2374         * config/sh/embed.mt: Ditto.
2375         * config/sh/linux.mt: Ditto.
2376         * config/sh/tm-linux.h: Ditto.
2377         * config/sh/tm-sh.h: Ditto.
2378         * config/sh/wince.mt: Ditto.
2379
2380 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2381
2382         * ppc-tdep.h (struct type): Declare opaque.
2383         * x86-64-tdep.h (struct regcache): Declare opaque.
2384         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2385         coding style.
2386
2387 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2388
2389         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2390         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2391         (SOFTWARE_SINGLE_STEP_P): Ditto.
2392         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2393         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2394         (SOFTWARE_SINGLE_STEP_P): Ditto.
2395         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2396         software_single_step to rs6000_software_single_step.
2397
2398 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2399
2400         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2401
2402 2003-10-09  Michael Snyder  <msnyder@redhat.com>
2403
2404         * frame.h: Fix typo in comment.
2405         * dummy-frame.c: Fix typo in comment.
2406         * d10v-tdep.c: Random whitespace/comment tweaks.
2407
2408 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
2409
2410         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2411         (sh_push_dummy_code): Delete function, it's only used for dummy calls
2412         on stack.
2413
2414         Based on input by Stephen Clarke (stephen.clarke@superh.com):
2415         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2416         in detail.
2417
2418 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2419
2420         * remote-mips.c (mips_initialize): Remove unneeded call to
2421         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2422
2423 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2424
2425         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2426         a memory pointer.
2427
2428 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2429
2430         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2431         for any lwp we resume.
2432         (running_callback): Add lwps that have pending status events
2433         against them to be considered running.
2434
2435 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
2436
2437         * m32r-tdep.c : Include "dis-asm.h".
2438         * Makefile.in (m32r-tdep.o): Update dependencies.
2439
2440 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2441
2442         * completer.h (get_gdb_completer_word_break_characters): Delete.
2443         * completer.c: include language.h.
2444         (gdb_completer_word_break_characters): Delete.
2445         (get_gdb_completer_word_break_characters): Delete.
2446         (location_completer): Use the word break characters of the current
2447         language.
2448         (complete_line): Likewise.
2449         (line_completion_function): Likewise.
2450         (skip_quoted_chars): Likewise.
2451         * Makefile.in (completer.o): Add dependency on language.h.
2452         * top.c (init_main): Set the readline word break characters
2453         to GDB's default word break characters.
2454
2455 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2456
2457         * language.h (language_defn): new field, la_word_break_characters.
2458         * language.c (unknown_language_defn): Set new field to
2459         default_word_break_characters.
2460         (auto_language_defn): Likewise.
2461         (local_language_defn): Likewise.
2462         * ada-lang.c (ada_language_defn): Likewise.
2463         * c-lang.c (c_language_defn): Likewise.
2464         (cplus_language_defn): Likewise.
2465         (asm_language_defn): Likewise.
2466         (minimal_language_defn): Likewise.
2467         * f-lang.c (f_language_defn): Likewise.
2468         * jv-lang.c (java_language_defn): Likewise.
2469         * m2-lang.c (m2_language_defn): Likewise.
2470         * objc-lang.c (objc_language_defn): Likewise.
2471         * p-lang.c (pascal_language_defn): Likewise.
2472         * scm-lang.c (scm_language_defn): Likewise.
2473
2474 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2475
2476         * ppc-sysv-tdep.c: Re-indent.
2477
2478 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2479
2480         * language.h (default_word_break_characters): Add prototype.
2481         * language.c (default_word_break_characters): New function.
2482
2483 2003-10-06  Andreas Schwab  <schwab@suse.de>
2484
2485         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2486         with %eax.
2487
2488 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2489
2490         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2491         "h8500-tdep.c".
2492         (z8k-tdep.o): Delete custom build rule.
2493
2494 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2495
2496         * Makefile.in: Update all dependencies.
2497
2498         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2499         No longer list PA as as obsolete candidate.  List m32r as
2500         broken instead of obsolete.
2501
2502         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2503         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2504         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2505         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2506         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2507         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2508         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2509         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2510         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2511         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2512         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2513         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2514         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2515         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2516         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2517         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2518         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2519         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2520         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2521         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2522         * config/z8k/z8k.mt: Ditto.
2523
2524         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2525         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2526         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2527         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2528         sparclite were removed.
2529         * configure.host, configure.tgt: Remove corresponding tuples.
2530
2531         * breakpoint.c, breakpoint.h: Remove obsolete code.
2532         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2533         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2534         * stabsread.h, xcoffread.c: Ditto.
2535
2536         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2537         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2538         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2539         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2540
2541 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
2542
2543         * f-valprint.c: Reformatting
2544
2545 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
2546
2547         * x86-64-tdep.c: Remove duplicate comment.
2548
2549         * x86-64-tdep.c (x86_64_store_return_value): Don't use
2550         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
2551         names for return values.  This fixes a bug since we looked at %rbx
2552         instead of %rdx.
2553
2554 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
2555
2556         * x86-64-tdep.c: Include "regset.h".
2557
2558         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2559         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2560         sizeof_fpregset.
2561         * i386-tdep.c: Include "regset.h".
2562         (i386_supply_gregset): New function.
2563         (i386_supply_fpregset): New function.
2564         (i386_gdbarch_init): Initialze register set-related members of
2565         TDEP.
2566         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2567         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2568
2569 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2570
2571         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2572         set extract_return_value, store_return_value and
2573         use_struct_convention to ppc64_sysv_abi_extract_return_value,
2574         ppc64_sysv_abi_store_return_value and
2575         ppc64_sysv_abi_use_struct_convention.
2576         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2577         (ppc64_sysv_abi_store_return_value): Declare.
2578         (ppc64_sysv_abi_use_struct_convention): Declare.
2579         * ppc-sysv-tdep.c (enum return_value_convention): Define.
2580         (ppc64_sysv_abi_extract_return_value): New function.
2581         (ppc64_sysv_abi_store_return_value): New function.
2582         (ppc64_sysv_abi_use_struct_convention): New function.
2583         (ppc64_sysv_abi_return_value): New function.
2584
2585 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2586
2587         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2588         convert a descriptor to a function when it's in the ".opd"
2589         section.
2590
2591 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2592
2593         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2594         reg_size to keep GCC silent.
2595
2596 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2597
2598         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2599         base for DW_EH_PE_textrel encodings.
2600         (read_encoded_value): Add a DW_EH_PE_textrel case.
2601         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2602         section.
2603
2604 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
2605
2606         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2607
2608 2003-10-02  Andrew Cagney  <cagney@redhat.com>
2609
2610         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2611         REGISTER_RAW_SIZE.
2612         * gdbarch.h, gdbarch.c: Re-generate.
2613         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2614         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2615         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2616         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2617         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2618         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2619         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2620         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2621         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2622         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2623         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2624         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2625         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2626         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2627         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2628         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2629
2630 2003-10-02  Jim Blandy  <jimb@redhat.com>
2631
2632         * dwarf2read.c (struct die_info): Doc fix.
2633
2634 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2635
2636         * sh-tdep.c: Running thru gdb_indent.sh.
2637
2638 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2639
2640         * sh-tdep.c (sh_justify_value_in_reg): New function.
2641         (sh_stack_allocsize): Ditto.
2642         (flt_argreg_array): New array used for floating point argument
2643         passing.
2644         (sh_init_flt_argreg): New function.
2645         (sh_next_flt_argreg): Ditto.
2646         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2647         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2648         Fix argument passing strategy.
2649         (sh_push_dummy_call_nofpu): Ditto.
2650
2651 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2652
2653         * value.h (register_value_being_returned): Declare.  Replace
2654         "value_being_returned".
2655         * infcall.c (call_function_by_hand): Use
2656         register_value_being_returned.
2657         * infcmd.c (print_return_value): Call
2658         "register_value_being_returned", handle struct return locally.
2659         * values.c (register_value_being_returned): New function.  Replace
2660         "value_being_returned".
2661
2662 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
2663
2664         * linux-proc.c (linux_do_registers): New function.
2665         (linux_make_note_section): Use linux_do_registers in case of
2666         single threaded inferior programs.
2667
2668 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2669
2670         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2671         use STRUCT_ADDR.  When not using "struct return convention", pass
2672         "0" to "value_being_returned".  Add FIXMEs.
2673         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2674         value_being_returned.  Add comments.
2675         * values.c (value_being_returned): Add fixme.
2676         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2677         (hppa_value_returned_from_stack): Add FIXME.
2678
2679 2003-09-30  David Carlton  <carlton@kealia.com>
2680
2681         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2682         'has_children' and 'next' by 'child' and 'sibling'.
2683         (read_comp_unit): Rework algorithm, breaking body into
2684         read_die_and_children and read_die_and_siblings.
2685         (read_die_and_children, read_die_and_siblings): New.
2686         (read_full_die): Add 'has_children' argument; set it instead of
2687         the die's 'has_children' field.  Minor formatting cleanup.
2688         (free_die_list): Use die->child and die->sibling instead of
2689         die->next.
2690         (dump_die_list): Ditto.
2691         (sibling_die): Use die->sibling.
2692         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2693         'has_children' and 'next' fields.
2694         (process_die, read_file_scope, read_func_scope)
2695         (read_lexical_block_scope, read_structure_scope)
2696         (read_enumeration, read_array_type, read_common_block)
2697         (read_namespace, read_subroutine_type, dump_die): Ditto.
2698
2699 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2700
2701         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2702         to 224, not 220.
2703
2704 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2705
2706         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2707         REGISTER_VIRTUAL_SIZE.
2708         * gdbarch.h, gdbarch.c: Regenerate.
2709         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2710         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2711         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2712
2713 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2714
2715         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2716         REGISTER_VIRTUAL_TYPE.
2717         * gdbarch.h, gdbarch.c: Regenerate.
2718         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2719         * sh64-tdep.c, sparc-tdep.c: Update.
2720
2721         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2722         * remote-vxmips.c (vx_read_register): Ditto.
2723         * remote-vx68.c (vx_read_register): Ditto.
2724         * gnu-nat.c (inf_validate_procs): Ditto.
2725
2726 2003-09-29  J. Brobecker  <brobecker@gnat.com>
2727
2728         * infcall.c (call_function_by_hand): Fix build failure
2729         introduced in the previous change to this file.
2730
2731 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2732
2733         * NEWS: Mention Objective-C.
2734
2735 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2736
2737         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2738         test if the register has been saved on the stack.
2739         (arm_scan_prologue_cache): When analysing the instruction
2740         "str lr, [sp, #-4]", save the address where lr has been stored.
2741
2742 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2743
2744         * frame.c (frame_read_unsigned_register): Delete function.
2745         * frame.h (frame_read_unsigned_register): Delete declaration.
2746         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2747         get_frame_register_unsigned.
2748         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2749         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2750         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2751
2752         * frame.h (frame_read_register): Delete declaration.
2753         * frame.c (frame_read_register): Delete function.
2754         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2755         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2756         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2757         * mips-tdep.c (mips_register_to_value): Ditto.
2758         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2759         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2760
2761         * frame.c (frame_read_signed_register): Delete function.
2762         (frame_read_unsigned_register): Update comments.
2763         * frame.h (frame_read_signed_register): Delete declaration.
2764         * h8300-tdep.c (h8300_print_register): Use
2765         get_frame_register_signed.
2766         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2767
2768         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2769         Rename VALUE_RETURNED_FROM_STACK.
2770         * infcmd.c (print_return_value): Update.
2771         * infcall.c (call_function_by_hand): Update.
2772
2773 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2774
2775         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2776         regcache argument and reverse the order of the other two
2777         arguments.  Remove local regcache variable.  Determine
2778         architecture from REGCACHE.  Update comments.
2779         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2780         reverse the order of the other two arguments.  Remove local
2781         regcache variable.  Determine architecture from REGCACHE.  Update
2782         comments.
2783         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2784         prototypes.  Update comments.
2785         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2786         comment.
2787         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2788         Update.
2789         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2790         * i386-interix-nat.c (supply_fpregset): Update.
2791         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2792         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2793         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2794         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2795         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2796         Update.
2797         * i386obsd-tdep.c (fetch_core_registers): Update.
2798         * i386v4-nat.c (supply_fpregset): Update.
2799         * x86-64-linux-nat.c (supply_fpregset): Update.
2800         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2801
2802 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2803
2804         * i386-tdep.h: Put opaque declarations in alphabetical
2805         order.  Remove spurious whitespace.
2806         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2807         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2808         * i386-tdep.c (MM0_REGNUM): Remove define.
2809         (i386_mmx_regnum_p): Add gdbarch argument.
2810         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2811         Rewrite using new macro definitions for FPU/SSE registers.
2812         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2813         definitions from i387-tdep.h.
2814         (i386_register_name): Update.
2815         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2816         new macro definitions for FPU/SSE registers.
2817         (i386_extract_return_value): Determine whether floating-point
2818         registers are present by examining REGCACHE's architecture.
2819         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2820         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2821         FPU/SSE registers.
2822         (i386_register_type): Update.
2823         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2824         definitions for FPU registers.  Use REGCACHE's architecture to
2825         determine the appropriate register numbers.
2826         (i386_pseudo_register_read, i386_pseudo_register_write,
2827         i386_register_reggroup_p): Update.
2828         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2829         TDEP->mm0_regnum.
2830         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2831         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2832         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2833         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2834         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2835         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2836         *' to `void *'.
2837         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2838         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2839         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2840         definitions for FPU/SSE registers.
2841         (FXSAVE_MXCSR_ADDR): New define.
2842         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2843         TDEP->mm0_regnum.
2844         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2845         (I387_ST0_REGNUM): Define.
2846
2847         * regcache.h (get_regcache_arch): New prototype.
2848         * regcache.c (get_regcache_arch): New function.
2849
2850         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2851         whitespace.
2852
2853         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2854         Initialize using ARRAY_SIZE.
2855
2856 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2857
2858         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2859         "init_frame_pc_default".
2860         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2861         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2862         * vax-tdep.c (vax_gdbarch_init): Update.
2863         * v850-tdep.c (v850_gdbarch_init): Update.
2864         * sh64-tdep.c (sh64_gdbarch_init): Update.
2865         * s390-tdep.c (s390_gdbarch_init): Update.
2866         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2867         * mcore-tdep.c (mcore_gdbarch_init): Update.
2868         * h8300-tdep.c (h8300_gdbarch_init): Update.
2869         * cris-tdep.c (cris_gdbarch_init): Update.
2870         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2871
2872 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2873
2874         * regset.h: New file.
2875         * Makefile.in (regset_h): Add.
2876
2877 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2878
2879         * frame.h (deprecated_frame_saved_regs): Rename
2880         get_frame_saved_regs.
2881         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2882         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2883         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2884         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2885         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2886
2887 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2888
2889         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2890         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2891         and Java.
2892         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2893         arm*-*-* do not use the new frame code.
2894
2895 2003-09-25  David Carlton  <carlton@kealia.com>
2896
2897         * c-exp.y: Remove 'register' declarations.
2898         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2899
2900 2003-09-25  David Carlton  <carlton@kealia.com>
2901
2902         * c-exp.y: Include cp-support.h.  Add qualified_type.
2903         (yylex): Delete nested type hack; add comments.
2904         * cp-namespace.c (cp_lookup_nested_type): New function.
2905         * cp-support.h: Declare cp_lookup_nested_type.
2906         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2907         instead of value_struct_elt_for_reference.
2908         * valops.c: Include cp-support.h.
2909         (value_aggregate_elt): New function.
2910         (value_namespace_elt): Ditto.
2911         (value_struct_elt_for_reference): Make static.
2912         * value.h: Delete declaration of value_struct_elt_for_reference;
2913         add declaration for value_aggregate_elt.
2914         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2915         (valops.o): Ditto.
2916
2917 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
2918
2919         * stack.c: Include "reggroups.h".
2920         (frame_info): Only display registers in all_reggroup.
2921         * Makefile.in (stack.o): Update dependencies.
2922
2923 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2924
2925         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2926         "add ip, sp #n" in the prologue.
2927         (arm_scan_prologue): Ditto.
2928
2929 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
2930
2931         * MAINTAINERS (write after approval): Add myself.
2932
2933 2003-09-25  Andreas Schwab  <schwab@suse.de>
2934
2935         * m68k-tdep.c: Include "dwarf2-frame.h".
2936         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2937         * Makefile.in (m68k-tdep.o): Update dependencies.
2938
2939 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
2940
2941         * sh-tdep.c (struct frame_extra_info): Remove.
2942         (struct sh_frame_cache): New structure.
2943         (GET_SOURCE_REG): New macro extracting source register of an opcode.
2944         (GET_TARGET_REG): Ditto but target register.
2945         (GET_PUSHED_REG): Remove.
2946         (IS_MOV_ARG_TO_REG): New macro.
2947         (IS_MOV_ARG_TO_IND_R14): New macro.
2948         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2949         (IS_MOVW_PCREL_TO_REG): New macro.
2950         (IS_MOVL_PCREL_TO_REG): New macro.
2951         (IS_SUB_REG_FROM_SP): New macro.
2952         (IS_ARG_MOV): Remove.
2953         (IS_MOV_TO_R14): Remove.
2954         (IS_RESTORE_FP): New macro.
2955         (IS_RTS): New macro.
2956         (IS_LDS): New macro.
2957         (IS_MOV_FP_SP): New macro.
2958         (IS_ADD_REG_TO_FP): New macro.
2959         (IS_ADD_IMM_FP): New macro.
2960         (sh_skip_prologue_hard_way): Remove.
2961         (sh_saved_pc_after_call): Remove.
2962         (sh_frame_chain): Remove.
2963         (sh_find_callers_reg): Remove.
2964         (sh_nofp_frame_init_saved_regs): Remove.
2965         (sh_fp_frame_init_saved_regs): Remove.
2966         (sh_init_extra_frame_info): Remove.
2967         (sh_analyze_prologue): New function.
2968         (sh_skip_prologue): Remove deprecated code.  Rely on new function
2969         sh_analyze_prologue when after_prologue fails.
2970         (sh_frame_saved_pc): Remove.
2971         (sh_alloc_frame_cache): New function.
2972         (sh_frame_cache): Ditto.
2973         (sh_frame_prev_register): Ditto.
2974         (sh_frame_this_id): Ditto.
2975         (sh_frame_unwind): New structure defining the heuristic frame
2976         sniffer interface.
2977         (sh_frame_sniffer): New function.
2978         (sh_unwind_sp): Ditto.
2979         (sh_unwind_pc): Ditto.
2980         (sh_unwind_dummy_id): Ditto.
2981         (sh_frame_base_address): Ditto.
2982         (sh_frame_base): New structure defining new frame base code.
2983         (sh_in_function_epilogue_p): New function.
2984         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2985         code and to call all new code instead.  Initialize dwarf2 and
2986         heuristic frame sniffer.
2987
2988 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
2989
2990         * parser-defs.h (struct exp_descriptor): New definition, containing
2991         language-specific info for printing, prefixifying, dumping, and
2992         evaluating expressions.
2993         (exp_descriptor_standard): Declare new variable.
2994         (print_subexp): Make global and declare here (from expprint.c).
2995         (dump_subexp): Ditto.
2996         (dump_subexp_body_standard): Declare.
2997         (operator_length_standard): Declare.
2998         (op_name_standard): Declare.
2999         (print_subexp): Declare.
3000         (print_subexp_standard): Declare.
3001
3002         * language.h (struct language_defn): Add la_exp_desc field to hold
3003         pointer to table for language-specific operators.
3004         Remove evaluate_exp field, which is now in struct exp_descriptor.
3005
3006         * parse.c (operator_length): Move most code to new
3007         operator_length_standard function.  Use language-specific information.
3008         (operator_length_standard): New function taking most code from
3009         operator_length.
3010         (exp_descriptor_standard): New constant.
3011
3012         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
3013         and OP_EXTENDED_LAST.
3014
3015         * expprint.c (print_subexp): Use language-specific print_subexp.
3016         Make global; remove static declaration.
3017         Move most code to print_subexp_standard.
3018         (print_subexp_standard): New function, containing code formerly in
3019         print_subexp.
3020         (op_name): Add expression to argument signature.
3021         Use langauge-specific op_name.
3022         Move most code to op_name_standard.
3023         (op_name_standard): New function, containing code formerly in op_name.
3024         (dump_subexp):  Use new version of op_name function.
3025         Use language-specific dump_subexp_body, and move most existing code to
3026         dump_subexp_body_standard.
3027         (dump_raw_expression): Use new op_name interface.
3028         (dump_subexp_body): Move most code to dump_subexp_body_standard.
3029         (dump_subexp_body_standard): New function, containing code formerly
3030         in dump_subexp_body.
3031
3032         * language.c (unknown_language): Add default la_exp_desc field and
3033         remove evaluate_exp field.
3034         (auto_language): Ditto.
3035         (local_language): Ditto.
3036         * f-lang.c (f_language_defn): Ditto.
3037         * c-lang.c (c_language_defn): Ditto.
3038         (cplus_language_defn): Ditto.
3039         (asm_language_defn): Ditto.
3040         (minimal_language_defn): Ditto.
3041         * p-lang.c (pascal_language_defn): Ditto.
3042         * m2-lang.c (m2_language_defn): Ditto.
3043         * objc-lang.c (objc_language_defn): Ditto.
3044
3045         * jv-lang.c (exp_descriptor_java): New variable, containing
3046         Java-specific expression evaluator.
3047         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
3048         field.
3049         * scm-lang.c (exp_descriptor_scm): New variable, containing
3050         Scheme-specific expression evaluator.
3051         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
3052         field.
3053         * objc-lang.c (print_object_command): Take evaluate_exp from the
3054         la_exp_desc field.
3055
3056         * Makefile.in (eval.o): Add dependency on parser-defs.h.
3057
3058         * eval.c: Include parser-defs.h for the full declaration of
3059         la_exp_desc's type.
3060         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
3061
3062 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
3063
3064         * parser-defs.h (operator_length): Declare.
3065
3066         * parse.c (length_of_subexp): Use operator_length to get operator
3067         lengths and arities for operators.
3068         Move most code to new operator_length function.
3069         (operator_length): New function absorbing most code from
3070         length_of_subexp.
3071         (prefixify_subexp): Remove large case and use operator_length instead.
3072         (parse_exp_1): Use renamings:
3073         dump_prefix_expression => dump_raw_expression and
3074         dump_postfix_expression => dump_prefix_expression.
3075
3076         * expression.h (dump_prefix_expression): Rename to ...
3077         (dump_raw_expression): New name.
3078         (dump_postfix_expression): Rename to ...
3079         (dump_prefix_expression): New name.
3080
3081         * expprint.c (dump_subexp): Make global.  Add comment.
3082         Move most existing code to dump_subexp_body.
3083         (dump_subexp_body): New function.
3084         (dump_prefix_expression): Rename to dump_raw_expression.
3085         Remove attempt to print the expression via print_expression: it can't
3086         work before the expression is prefixified.
3087         (dump_raw_expression): Renamed from dump_prefix_expression.
3088         (dump_postfix_expression): Rename to dump_prefix_expression, since
3089         that's what it does.
3090         Remove 'note' parameter, since this routine must be used on
3091         prefixified expression.
3092         (dump_prefix_expression): Renamed from dump_postfix_expression.
3093
3094 2003-09-22  Jim Blandy  <jimb@redhat.com>
3095
3096         * dwarf2read.c (read_array_type): When building the type for an
3097         array of unspecified length, make sure to choose the upper bound
3098         so that the array's total length comes out to be zero --- that's
3099         how we represent such arrays.
3100
3101 2003-09-22  Michael Chastain  <mec@shout.net>
3102
3103         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3104
3105 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
3106
3107         * top.c (quit_force): Fix indirect call to quit_target so
3108         a struct qt_args pointer is passed.
3109
3110 2003-09-22  Andrew Cagney  <cagney@redhat.com>
3111
3112         * arch-utils.h (init_frame_pc_noop): Delete declaration.
3113         * arch-utils.c (init_frame_pc_noop): Delete function.
3114         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3115         "init_frame_pc".
3116         * mips-tdep.c (mips_gdbarch_init): Ditto.
3117         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3118         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3119         declaration.
3120         (DEPRECATED_INIT_FRAME_PC): Delete macro.
3121         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3122         declaration.
3123         (DEPRECATED_INIT_FRAME_PC): Delete macro.
3124
3125 2003-09-22  Anthony Green  <green@redhat.com>
3126
3127         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3128         declaration.
3129
3130 2003-09-20  Andrew Cagney  <cagney@redhat.com>
3131
3132         * breakpoint.c: Eliminate ARGSUSED.
3133         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3134         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3135         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3136         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3137         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3138         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3139         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3140         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3141         * wince.c, remote-vx.c: Ditto.
3142
3143         * cli/cli-script.c: Remove "register" attributes.
3144         * config/pa/tm-hppa.h: Ditto.
3145         * cli/cli-decode.c: Ditto.
3146         * cli/cli-cmds.c: Ditto.
3147
3148 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3149
3150         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3151         DEPRECATED_NPC_REGNUM.
3152         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3153
3154 2003-09-19  Christopher Faylor  <cgf@redhat.com>
3155
3156         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3157
3158 2003-09-19  Jim Blandy  <jimb@redhat.com>
3159
3160         * macrotab.c (macro_include): Use the correct comparison to find
3161         the appropriate place for this inclusion in the list.
3162
3163 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3164
3165         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3166         (DEPRECATED_HPUX_TEXT_END): Define.
3167         (deprecated_hpux_text_end): Declare.
3168         (struct target_ops): Declare opaque.
3169         * hppah-nat.c (text_end): Make static.
3170         (deprecated_hpux_text_end): New function.
3171         * exec.c (text_end): Delete global variable.
3172         (NEED_TEXT_START_END): Do not define.
3173         (exec_file_attach): Replace code computing "text_end" code with
3174         call to DEPRECATED_HPUX_TEXT_END.
3175
3176 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3177
3178         * utils.c (align_up, align_down): New functions.
3179         * defs.h (align_up, align_down): Declare.
3180         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3181         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3182         and "align_down".
3183         (round_up, round_down): Delete functions.
3184         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3185         "align_down".
3186         (ROUND_DOWN, ROUND_UP): Delete macros.
3187         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3188         * h8300-tdep.c: Replace "round_up" and "round_down" with
3189         "align_up" and "align_down".
3190         (round_up, round_down): Delete macros.
3191         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3192         "align_down".
3193         (ROUND_UP, ROUND_DOWN): Delete macros.
3194
3195 2003-09-18  J. Brobecker  <brobecker@gnat.com>
3196
3197         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3198         hard-coded constant. Use the proper machine name instead.
3199
3200 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3201
3202         * sparc-tdep.c (legacy_register_name): Delete function.
3203         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3204         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3205         * infcmd.c (gdb_register_name): Delete variable.
3206         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3207         REGISTER_NAME and "tm.h".
3208         * gdbarch.h, gdbarch.c: Regenerate.
3209         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3210         REGISTER_NAMES in comments.
3211         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3212         * m68klinux-nat.c (regmap): Ditto.
3213
3214 2003-09-17  Jim Blandy  <jimb@redhat.com>
3215
3216         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3217
3218 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3219
3220         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3221         (ppcnbsd_init_abi): Set "use_struct_convention" to
3222         "ppcnbsd_use_struct_convention".
3223
3224 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
3225
3226         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3227         * gdbarch.h, gdbarch.c: Regenerate.
3228         (stabs_argument_has_addr): New architecture method.
3229         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3230         * arch-utils.c: Include "buildsym.h".
3231         (default_stabs_argument_has_addr): New function.
3232         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3233         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3234
3235 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3236
3237         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3238         * gdbarch.h, gdbarch.c: Regenerate.
3239         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3240         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3241         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3242         * sparcnbsd-tdep.c: Update.
3243
3244 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3245
3246         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3247         * gdbarch.h, gdbarch.c: Regenerate.
3248         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3249         * d10v-tdep.c, frame.c: Update.
3250         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3251         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3252         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3253         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3254         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3255         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3256         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3257         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3258         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3259         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3260         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3261         * config/pa/nm-hppah.h: Update.
3262
3263 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3264
3265         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3266         "use_struct_convention" to "ppc_linux_use_struct_convention".
3267         (ppc_linux_use_struct_convention): New function.
3268         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3269         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3270         "rs6000_use_struct_convention".
3271         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3272         declaration.
3273         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3274         Delete function.
3275
3276 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3277
3278         * buildsym.c: Remove more occurances of "register".
3279         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3280         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3281         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3282         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3283         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3284         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3285         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3286         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3287
3288 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
3289
3290         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
3291         numbers to enumeration values.
3292         * sh-tdep.c: Accomodate above change.
3293         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3294         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3295         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3296         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3297         (IS_FPUSH): Rename from IS_FMOV.
3298         (sh_extract_struct_value_address): Remove useless comment.
3299         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3300         instead of own local values.
3301         (sh_dump_tdep): Remove.
3302         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3303         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3304
3305 2003-09-15  Andrew Cagney  <cagney@redhat.com>
3306
3307         * doublest.c (convert_floatformat_to_doublest): No longer need to
3308         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
3309
3310 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
3311
3312         * values.c (unpack_double): Call floatformat_is_valid.
3313
3314 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
3315
3316         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3317         ps_strings into a long.
3318
3319         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3320         _initialize_am64fbsd_nat.
3321
3322 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
3323
3324         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3325         associated with DW_AT_ranges attribute is out of bounds.
3326
3327 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
3328
3329         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3330
3331 2003-09-14  Michael Chastain  <mec@shout.net>
3332
3333         * config/m68k/nm-apollo68v.h: Delete.
3334         * config/m68k/xm-apollo68v.h: Delete.
3335
3336 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3337
3338         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3339         * dcache.c: Update copyrights and descriptions.
3340         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3341
3342 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3343
3344         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3345         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3346
3347 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3348
3349         * alpha-nat.c: Remove some occurances of "register".
3350         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3351         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3352         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3353         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3354         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3355         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3356         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3357         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3358         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3359         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3360         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3361         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3362         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3363         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3364         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3365         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3366         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3367         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3368         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3369         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3370         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3371         * values.c, vax-tdep.c, xcoffread.c: Ditto.
3372
3373 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3374
3375         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3376         * ppc-tdep.h (struct regcache): Declare opaque.
3377         * objfiles.h (struct objfile_data): Declare opaque.
3378         * cp-support.h (struct objfile): Declare opaque.
3379         * linux-nat.h (target_waitstatus): Declare opaque.
3380
3381 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
3382
3383         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3384         (stabs_argument_has_addr): New architecture method.
3385         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3386         * arch-utils.c: Include "buildsym.h".
3387         (default_stabs_argument_has_addr): New function.
3388         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3389         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3390
3391         * cris-tdep.c (cris_gdbarch_init): Set
3392         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3393         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3394         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3395         * mips-tdep.c (mips_gdbarch_init): Likewise.
3396         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3397         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3398
3399 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3400
3401         * values.c (using_struct_return): Delete "function" and "funcaddr"
3402         parameters.
3403         * value.h (using_struct_return): Update declaration.
3404         * infcmd.c (finish_command_continuation): Update.
3405         (finish_command): Update.
3406         * infcall.c (call_function_by_hand): Update.
3407         * eval.c (evaluate_subexp_standard): Update.
3408
3409 2003-09-13  Christopher Faylor  <cgf@redhat.com>
3410
3411         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3412         SSE registers since gdb will not operate correctly without this.
3413         Restore include file ordering munged in previous change.
3414         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3415
3416 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
3417
3418         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3419         REG_STRUCT_HAS_ADDR.
3420         * gdbarch.c, gdbarch.h: Updated.
3421         * infcall.c (call_function_by_hand): Update.
3422         * stabsread.c (define_symbol): Updated.
3423
3424         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3425
3426 2003-09-12  Christopher Faylor  <cgf@redhat.com>
3427
3428         * win32-nat.c: Reorganize so that defines used by target headers are
3429         actually defined by the system headers.
3430         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3431         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3432
3433 2003-09-12  Jim Blandy  <jimb@redhat.com>
3434
3435         * dbxread.c (read_dbx_symtab): Don't report an internal error if
3436         the file has no .data, .bss, or .rodata sections.  Instead wait
3437         until we see a variable alleged to live in one of those sections.
3438
3439         * dbxread.c (read_dbx_symtab): If we have no .data section and no
3440         .bss section, presume that any variables we find live in the
3441         .rodata section.
3442
3443         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3444         offsets for global and static variables.
3445
3446         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3447         symbol types are, by definition, in the .data section, so it is
3448         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3449         If there is no .data section, there should be no N_DATA or N_DATA
3450         | N_EXT symbols.
3451
3452 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
3453
3454         * amd64fbsd-tdep.c: Fix sigtramp recognition.
3455         (amd64fbsd_sigcontext_addr): Rewrite.
3456         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3457         with correct values.
3458         (amd64fbsd_sc_reg_offset): Initialize with correct values.
3459         (amd64fbsd_init_abi): Fix typo.
3460
3461 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3462
3463         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3464         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3465
3466 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3467
3468         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3469         "entry_file_highpc".  Update comments.
3470         * defs.h (deprecated_inside_entry_file): Rename
3471         "inside_entry_file".
3472         * blockframe.c (deprecated_inside_entry_file): Rename
3473         "inside_entry_file".
3474         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
3475         * vax-tdep.c (vax_frame_chain): Update.
3476         * sh64-tdep.c (sh64_frame_chain): Update.
3477         * sh-tdep.c (sh_frame_chain): Update.
3478         * rs6000-tdep.c (rs6000_frame_chain): Update.
3479         * ns32k-tdep.c (ns32k_frame_chain): Update.
3480         * mips-tdep.c (mips_frame_chain): Update.
3481         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3482         * m32r-tdep.c (m32r_frame_this_id): Update.
3483         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3484         * frv-tdep.c (frv_frame_this_id): Update.
3485         * d10v-tdep.c (d10v_frame_this_id): Update.
3486         * cris-tdep.c (cris_frame_chain): Update.
3487         * blockframe.c (legacy_frame_chain_valid): Update.
3488         * avr-tdep.c (avr_frame_this_id): Update.
3489         * arm-tdep.c (arm_prologue_this_id): Update.
3490         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3491         * objfiles.c (objfile_relocate): Update.
3492         * mipsread.c (mipscoff_symfile_read): Update.
3493         (mipscoff_symfile_read): Update.
3494         * mdebugread.c (parse_partial_symbols): Update.
3495         * dwarfread.c (read_file_scope): Update.
3496         * dwarf2read.c (read_file_scope): Update.
3497         * dbxread.c (read_dbx_symtab): Update.
3498         (read_dbx_symtab): Update.
3499         * coffread.c (complete_symtab): Update.
3500
3501 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
3502
3503         * top.c (quit_target): New static helper function.
3504         (quit_force): Moved code to quit_target().  Call quit_target()
3505         via catch_errors() to catch errors during quit.
3506
3507 2003-09-11  David Carlton  <carlton@kealia.com>
3508
3509         * buildsym.c (finish_block): Use allocate_block to allocate the
3510         block.
3511         * mdebugread.c (new_block): Add FIXME.
3512
3513 2003-09-11  David Carlton  <carlton@kealia.com>
3514
3515         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3516         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3517         (recursive_dump_type): Ditto.
3518         * printcmd.c (print_formatted): Ditto.
3519         * typeprint.c (print_type_scalar): Ditto.
3520         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3521         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3522         * cp-support.h: Declare cp_check_possible_namespace_symbols,
3523         maint_cplus_cmd_list.
3524         * cp-support.c: Make maint_cplus_cmd_list extern.
3525         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3526         command.h.
3527         (lookup_symbol_file): Look in possible namespace blocks when
3528         appropriate.
3529         (initialize_namespace_symtab): New.
3530         (get_possible_namespace_block, free_namespace_block)
3531         (check_possible_namespace_symbols)
3532         (check_possible_namespace_symbols_loop)
3533         (check_one_possible_namespace_symbol)
3534         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3535         (_initialize_cp_namespace): Ditto.
3536         * block.h: Declare allocate_block.
3537         * block.c (allocate_block): New.
3538         * jv-lang.c (get_java_class_symtab): Allocate blocks via
3539         allocate_block.
3540         * symfile.h: Update declaration of add_psymbol_to_list.
3541         * symfile.c (add_psymbol_to_list): Return the partial symbol in
3542         question.
3543         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3544         scan_partial_symbols_call.
3545         (scan_partial_symbols): Add NAMESPACE argument; update calls to
3546         helper functions.
3547         (add_partial_symbol): If necessary, scan mangled names for names
3548         of namespaces.
3549         (add_partial_namespace): Add NAMESPACE argument; generate partial
3550         symbols associated  to namespaces.
3551         (add_partial_enumeration): Add NAMESPACE argument.
3552         (new_symbol): Allow namespace syms.
3553         (read_namespace): Generate namespace syms.
3554         * objfiles.h: Add opaque declaration of struct symtab.
3555         (struct objfile): Add cp_namespace_symtab member.
3556         * objfiles.c (allocate_objfile): Set
3557         objfile->cp_namespace_symtab.
3558         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3559         dictionary_h, command_h.
3560
3561 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3562
3563         * rs6000-tdep.c (rs6000_push_dummy_call): Use
3564         regcache_raw_write_signed to set SP_REGNUM, move the operation to
3565         near the function's end.
3566         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3567         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3568         regcache_raw_write_signed to set SP_REGNUM.
3569
3570 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
3571
3572         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3573         orig_addrs is set up properly.
3574
3575 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3576
3577         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3578         * gdbarch.h, gdbarch.c: Re-generate.
3579         * infcall.c (call_function_by_hand): Update.
3580         * hppa-tdep.c (hppa_push_arguments): Update.
3581         * ada-lang.c (place_on_stack): Update.
3582         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3583         * sparc-tdep.c (sparc_gdbarch_init): Update.
3584         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3585         * hppa-tdep.c (hppa_gdbarch_init): Update.
3586         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3587         stack_align.
3588
3589 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
3590
3591         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3592         register do need a frame.
3593
3594 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3595
3596         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3597         buildable since GDB 5.0.
3598         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3599         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3600         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3601         * irix4-nat.c: Delete file.
3602         * config/mips/irix4.mh: Delete file.
3603         * config/mips/irix3.mh: Delete file.
3604         * config/mips/irix3.mt: Delete file.
3605         * config/mips/tm-irix3.h: Delete file.
3606         * config/mips/nm-irix3.h: Delete file.
3607         * config/mips/xm-irix3.h: Delete file.
3608         * config/mips/nm-irix4.h: Delete file.
3609         * config/mips/xm-irix4.h: Delete file.
3610         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3611
3612 2003-09-10  J. Brobecker  <brobecker@gnat.com>
3613
3614         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3615         * Makefile.in (hppa-tdep.o): Update dependencies.
3616
3617 2003-09-10  James E Wilson  <wilson@specifixinc.com>
3618
3619         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3620         section.
3621
3622 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3623
3624         * MAINTAINERS (frv): New ISA entry.
3625
3626 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3627
3628         * frv-tdep.c (dis-asm.h): Include.
3629         * Makefile.in (frv-tdep.o): Update dependencies.
3630
3631 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3632
3633         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3634         Fix typo for high range of floating registers.
3635
3636 2003-09-09  David Carlton  <carlton@kealia.com>
3637
3638         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3639         highpc initialization here out of scan_partial_symbols.
3640         (scan_partial_symbols): Restructure into a recursive version,
3641         calling add_partial_namespace and add_partial_enumeration when
3642         appropriate.
3643         (add_partial_namespace): New.
3644         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3645
3646 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3647
3648         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3649         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3650         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3651         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3652
3653         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3654         (rs6000_push_dummy_call): Set the "TOC" register.
3655
3656         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3657         methods "max_register_raw_size", "max_register_virtual_size" or
3658         "register_virtual_size".
3659
3660 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
3661
3662         * MAINTAINERS: Update my e-mail address.
3663
3664 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3665
3666         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3667         (rs6000_push_dummy_call): Store the struct return address.
3668         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3669
3670 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3671
3672         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3673         "ppc_sysv_abi_push_arguments".
3674         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3675         "ppc_sysv_abi_push_arguments".
3676         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3677         instead of "push_arguments".
3678         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3679
3680 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3681
3682         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3683         instead of CALL_DUMMY_ADDRESS.
3684
3685 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
3686
3687         * p-lang.c: Eliminate "register".
3688         * c-lang.c: Ditto.
3689         * expprint.c: Ditto.
3690         * f-lang.c: Ditto.
3691         * jv-lang.c: Ditto.
3692         * language.c: Ditto.
3693         * m2-lang.c: Ditto.
3694         * parse.c: Ditto.
3695         * scm-lang.c: Ditto.
3696         * objc-lang.c: Ditto.
3697
3698 2003-09-09  Nick Clifton  <nickc@redhat.com>
3699
3700         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3701
3702 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3703
3704         * avr-tdep.c: Include "dis-asm.h".
3705         * cris-tdep.c: Include "dis-asm.h".
3706         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3707         instead of corresponding typedef.
3708         * h8300-tdep.c: Include "dis-asm.h".
3709         * ia64-tdep.c: Include "dis-asm.h".
3710         * i386-tdep.c: Include "dis-asm.h".
3711         (i386_print_insn): Use "struct disassemble_info" instead of
3712         corresponding typedef.
3713         * m68k-tdep.c: Include "dis-asm.h".
3714         * mcore-tdep.c: Include "dis-asm.h".
3715         * mips-tdep.c: Include "dis-asm.h".
3716         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3717         instead of corresponding typedef.
3718         * ns32k-tdep.c: Include "dis-asm.h".
3719         * s390-tdep.c: Include "dis-asm.h".
3720         * sparc-tdep.c: Include "dis-asm.h".
3721         * vax-tdep.c: Include "dis-asm.h".
3722         * v850-tdep.c: Include "dis-asm.h".
3723         * mn10300-tdep.c: Include "dis-asm.h".
3724         * rs6000-tdep.c: Include "dis-asm.h".
3725         * xstormy16-tdep.c: Include "dis-asm.h".
3726         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3727         print_insn_xstormy16.
3728         * Makefile.in (v850-tdep.o): Update dependencies.
3729         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3730         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3731         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3732         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3733         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3734         (gdbarch_h): Remove $(dis_asm_h).
3735         * disasm.c: Include "dis-asm.h".
3736         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3737         corresponding typedef.
3738         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3739         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3740         * gdbarch.sh: Do not include "dis-asm.h".
3741         (struct disassemble_info): Declare opaque.
3742         (TARGET_PRINT_INSN): Update declaration.
3743         * gdbarch.h, gdbarch.c: Re-generate.
3744
3745 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3746
3747         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3748         CALL_DUMMY_ADDRESS, change to a predicate.
3749         * gdbarch.h, gdbarch.c: Re-generate.
3750         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3751         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3752         * infcall.c (call_function_by_hand): Ditto.
3753         * sparc-tdep.c (sparc_push_return_address): Ditto.
3754         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3755         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3756         CALL_DUMMY_ADDRESS with entry_point_address.
3757         * v850-tdep.c (v850_push_return_address): Ditto.
3758         * s390-tdep.c (s390_push_return_address): Ditto.
3759         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3760         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3761         * mcore-tdep.c (mcore_push_return_address): Ditto.
3762         * cris-tdep.c (cris_push_return_address): Ditto.
3763         * arm-tdep.c (arm_push_return_address): Ditto.
3764
3765 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3766
3767         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3768         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3769         and REG_UNMODIFIED to REG_SAME_VALUE.
3770         (execute_cfa_program): Update.
3771         (dwarf2_frame_cache): Update.  Initialize table to
3772         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3773         location.
3774         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3775
3776 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3777
3778         * gnu-nat.c: Remove "inline" function attribute.
3779         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3780
3781 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3782
3783         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3784         target.
3785
3786 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3787
3788         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3789         (frame_extra_info): Rename this struct to frv_unwind_cache.
3790         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3791         Add fields ``prev_sp'' and ``base''.
3792         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3793         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3794         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3795         Delete.
3796         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3797         Revise all callers.  Fill in the unwind cache argument and make
3798         other adjustments to account for new frame mechanisms.
3799         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3800         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3801         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3802         (frv_frame_unwind, frv_frame_base): New structs.
3803         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3804         additional arguments expected by this method and adjust function
3805         body accordingly.
3806         (frv_gdbarch_init): Remove calls to the following functions:
3807         set_gdbarch_deprecated_init_frame_pc(),
3808         set_gdbarch_deprecated_saved_pc_after_call(),
3809         set_gdbarch_deprecated_frame_chain(),
3810         set_gdbarch_deprecated_frame_saved_pc(),
3811         set_gdbarch_deprecated_frame_init_saved_regs(),
3812         set_gdbarch_deprecated_push_arguments(),
3813         set_gdbarch_deprecated_push_return_address(),
3814         set_gdbarch_deprecated_pop_frame(),
3815         set_gdbarch_deprecated_call_dummy_words(),
3816         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3817         set_gdbarch_deprecated_init_extra_frame_info(),
3818         set_gdbarch_deprecated_dummy_write_sp(), and
3819         set_gdbarch_deprecated_pc_in_call_dummy().
3820         Add calls to the following functions:
3821         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3822         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3823         frame_base_set_default().
3824         * Makefile.in (frv-tdep.o): Update dependencies.
3825
3826 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3827
3828         * dwarf2-frame.c (read_encoded_value): Add support for
3829         DW_EH_PE_aligned encoding.
3830
3831 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3832
3833         * infrun.c (normal_stop): Don't print a message if the inferior
3834         has exited.
3835
3836 2003-09-08  Jim Blandy  <jimb@redhat.com>
3837
3838         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3839         * dbxread.c: #include "gdb_assert.h".
3840         (read_dbx_symtab): If the objfile has no .data section, use the
3841         section index for the .bss section instead.
3842
3843 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3844
3845         * frame.c (deprecated_safe_get_selected_frame): New function.
3846         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3847         * findvar.c (read_var_value): Call it.
3848
3849 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3850
3851         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3852         (sh64-tdep.o): Add dependencies.
3853         * configure.tgt: Add FIXME to sh-*-linux*.
3854         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3855         (sh_gdbarch_init): Always set correct sh_show_regs function
3856         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3857         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3858         * sh64-tdep.c: New file, containing all sh64 related code from
3859         sh-tdep.c.
3860         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3861         * config/sh/linux.mt (TDEPFILES): Ditto.
3862         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3863         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3864         * config/sh/wince.mt (TDEPFILES): Ditto.
3865
3866 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3867
3868         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3869         (stop_wait_callback): Handle !lp->signalled also.
3870         (lin_lwp_has_pending, flush_callback): New functions.
3871         (lin_lwp_wait): Call flush_callback.
3872         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3873         (linux_proc_pending_signals): New function.
3874         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3875
3876 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3877
3878         From Nick Kelsey <nickk@ubicom.com>:
3879         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3880         when the stop PC is at the beginning of a function also.
3881
3882 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3883
3884         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3885         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3886
3887 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3888
3889         * sol-thread.c: Include "gdb_string.h".
3890
3891 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3892
3893         * gcore.c: Reorder include files in alphabetical order.  Include
3894         "gdb_assert.h".  Various coding style fixes.
3895         (derive_stack_segment, derive_heap_segment): Replace check for
3896         non-null BOTTOM and TOP with gdb_assert.
3897         (derive_heap_segment): Replace check for successful creation of
3898         ZERO with gdb_assert.
3899         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3900
3901 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3902
3903         * thread-db.c (verbose_dlsym): New function.
3904         (thread_db_load): Use verbose_dlsym
3905         (thread_db_new_objfile): Print that libthread_db was loaded, and
3906         that thread debugging was enabled.
3907
3908 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3909
3910         * configure.tgt: Add "mips64*-*-*" target.  Delete
3911         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3912         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3913         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3914         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3915         mips*-sony-*, and mips64*-*-elf* targets.
3916         * config/mips/embedl.mt: Delete file.
3917         * config/mips/embedl64.mt: Delete file.
3918         * config/mips/mips.mt: Delete file.
3919         * config/mips/mips64.mt: Delete file.
3920         * config/mips/tm-embed.h: Delete file.
3921         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3922         * config/mips/embed64.mt: Delete out-of-date comment.
3923
3924 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3925
3926         * hppa-tdep.c (hppa_gdbarch_init): Set
3927         "have_nonsteppable_watchpoint".
3928         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3929         * mips-tdep.c (mips_dump_tdep): Do not print
3930         HAVE_NONSTEPPABLE_WATCHPOINT.
3931         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3932         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3933         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3934         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3935
3936 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3937
3938         * breakpoint.c (watchpoint_check): Remove accidentally checked in
3939         unused code.  Add comment.
3940
3941 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
3942
3943         * breakpoint.c (watchpoint_check): Check for pc being in an
3944         epilogue if watchpoint frame couldn't be found.
3945
3946 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3947
3948         * Makefile.in: Re-generate all dependencies.
3949
3950 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3951
3952         * arch-utils.h (legacy_print_insn): Delete declaration.
3953         * arch-utils.c (legacy_print_insn): Delete function.
3954         * disasm.c (deprecated_tm_print_insn_info): Delete.
3955         (_initialize_disasm): Delete function, contained code initializing
3956         deprecated_tm_print_insn_info.
3957         * gdbarch.sh (deprecated_tm_print_insn): Delete.
3958         (deprecated_tm_print_insn_info): Delete.
3959         (TARGET_PRINT_INSN): Do not provide a default.
3960         * gdbarch.h, gdbarch.c: Re-generate.
3961
3962 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3963
3964         * disasm.c (fprintf_disasm): New function.
3965         (gdb_disassemble_info): Call "init_disassemble_info", instead of
3966         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
3967         reverts 2003-08-14 change.
3968         (_initialize_disasm): Call "init_disassemble_info", instead of
3969         INIT_DISASSEMBLE_INFO_NO_ARCH.
3970
3971 2003-09-03  Michael Snyder  <msnyder@redhat.com>
3972
3973         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3974
3975 2003-09-03  Andrew Cagney  <cagney@redhat.com>
3976
3977         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3978         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3979         * symfile.c (syms_from_objfile): Update.
3980         (reread_symbols): `Update
3981         * exec.c (exec_file_attach): Update.
3982         (exec_file_attach): Update.
3983         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3984         2003-08-29 change.
3985         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3986
3987 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
3988
3989         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3990         trad-frame.h.
3991         (arm_get_cache): Delete macro.
3992         (struct arm_prologue_cache): Update comments.  Make saved_regs into
3993         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
3994         to prev_sp.
3995         (thumb_scan_prologue): Update for cache changes.  Don't call
3996         DEPRECATED_PC_IN_CALL_DUMMY.
3997         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
3998         argument and use it in desperation search for our prologue.  Do not
3999         search past the specified PC.
4000         (arm_make_prologue_cache): Simplify.
4001
4002         (arm_prologue_this_id, arm_prologue_prev_register)
4003         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
4004         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
4005         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
4006         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
4007         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
4008
4009         (arm_frame_chain_valid, arm_find_callers_reg)
4010         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
4011         (arm_pop_frame): Delete obsolete methods.
4012         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
4013
4014         (arm_gdbarch_init): Update for new frame methods.  Register prologue
4015         and sigtramp unwinders.  Set the default frame base method.
4016
4017         * Makefile.in (arm-tdep.o): Update dependencies.
4018         * varobj.c (find_frame_addr_in_frame_chain): Call
4019         get_frame_base_address.
4020         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4021
4022 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
4023
4024         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4025         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
4026         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
4027         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
4028         Take NEXT_FRAME and CACHE arguments.  Call
4029         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
4030         Set unwound_pc in CACHE instead of modifying the frame argument.
4031         Don't bother checking the frame type when looking for sigtramp
4032         frames.
4033         (arm_make_prologue_cache, arm_frame_chain)
4034         (arm_init_extra_frame_info): New functions.
4035
4036 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
4037
4038         * arm-tdep.c (arm_get_cache): Define.
4039         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
4040         unwound_sp, unwound_pc, and saved_regs.
4041         (thumb_scan_prologue): Take a cache instead of the frame.
4042         (arm_scan_prologue): Likewise.
4043         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
4044         instead of a temporary frame.
4045         (arm_init_extra_frame_info): Allocate and use a cache.
4046         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
4047
4048 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4049
4050         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4051         * config/mips/wince.mt (TM_CLIBS): Ditto.
4052         * config/sh/wince.mt (TM_CLIBS): Ditto.
4053         * config/pa/hppa64.mt (TM_CLIBS): Delete.
4054         * config/sparc/sp64.mt (CC): Delete.
4055
4056 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4057
4058         * defs.h: Do not include "arch-utils.h".
4059         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
4060         GDB_MULTI_ARCH_PURE.
4061         * configure.in (GDB_MULTI_ARCH): Do not define.
4062         * configure, config.in: Regenerate.
4063         * configure.tgt: Do not set variable "gdb_multi_arch".
4064         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
4065         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
4066         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
4067         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
4068         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
4069         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
4070         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
4071         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
4072         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
4073         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
4074         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
4075         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
4076         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
4077         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
4078         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4079         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4080         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4081         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
4082
4083 2003-08-30  Michael Chastain  <mec@shout.net>
4084
4085         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4086         * config/m68k/nm-hp300hpux.h: Delete.
4087         * config/m68k/tm-hp300hpux.h: Delete.
4088         * config/m68k/xm-hp300hpux.h: Delete.
4089         * config/m68k/xm-hp300bsd.h: Delete.
4090         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4091         tm-hp300hpux.h, xm-hp300hpux.h.
4092         * somsolib.c: Remove comment about hp300 shared libraries.
4093
4094 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
4095
4096         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4097         Only define PTRACE_GET_THREAD_AREA is not already defined.
4098         Various style fixes in code and comments and some additional
4099         spelling fixes in comments.  Move after functions dealing with
4100         debug registers.
4101         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4102         Fix coding-style.
4103
4104         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4105         frame_unwind_register_unsigned instead of
4106         frame_unwind_unsigned_register.
4107
4108 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
4109
4110         * configure.in: Search for gethostbyname in libnsl.
4111         * configure: Regenerated.
4112
4113 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
4114
4115         * configure.in: Remove redundant AC_MSG_RESULT in check for
4116         uintptr_t in stdint.h.
4117         * configure: Regenerated.
4118
4119         * amd64-nat.h (struct regcache): Add opaque declaration.
4120
4121         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4122         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4123         Change "register array" to "register cache" in comments.
4124         (x86_64_linux_gregset64_reg_offset): New variable.
4125         (GETREGS_SUPPLIES): Remove macro.
4126         (supply_gregset): Call amd64_supply_native_gregset instead of
4127         x86_64_linux_supply_gregset.
4128         (fill_gregset): Rename `regno' to `regnum'.  Call
4129         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4130         (store_regs): Rename `regno' to `regnum'.
4131         (store_fpregs): Rename `regno' to `regnum'.
4132         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
4133         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4134         Reorganize function a bit.
4135         (store_inferior_registers): Rename `regno' to `regnum'.  Use
4136         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4137         Reorganize function a bit.
4138         (_initialize_x86_64_linux_nat): New function.
4139         * config/i386/x86-64linux.mh.
4140
4141 2003-08-29  Andrew Cagney  <cagney@redhat.com>
4142
4143         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4144         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4145         (target_remove_watchpoint): Delete macro.
4146         (target_insert_watchpoint): Delete macro.
4147         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4148         (remote_mips_stopped_by_watchpoint): Delete declaration.
4149         (remote_mips_remove_watchpoint): Delete declaration.
4150         (remote_mips_set_watchpoint): Delete declaration.
4151         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4152         * remote-mips.c (_initialize_remote_mips): Set
4153         "to_insert_watchpoint", "to_stopped_by_watchpoint",
4154         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4155         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4156         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4157         (mips_stopped_by_watchpoint): Rename
4158         remote_mips_stopped_by_watchpoint.
4159         (mips_can_hardware_watchpoint): Rename
4160         remote_mips_can_use_hardware_watchpoint, update function
4161         signature.
4162
4163 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
4164
4165         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4166         USER_DS.  We haven't given them a register number yet.
4167
4168         * amd64-nat.h: New file.
4169         * amd64-nat.c: New file.
4170         * amd64fbsd-nat.c: Include "amd64-nat.h".
4171         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4172         (amd64fbsd32_r_reg_offset): New variable.
4173         (supply_gregset): Simply call amd64_supply_native_gregset.
4174         (fill_gregset): Rename `regno' to `regnum'.  Simply call
4175         amd64_collect_native_gregset.
4176         (fill_fpregset): Rename `regno' to `regnum'.
4177         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
4178         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4179         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4180         `fpregset_t'.  Call amd64_supply_native_gregset instead of
4181         supply_gregset.  Call x86_64_supply_fxsave instead of
4182         supply_fpregset.
4183         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
4184         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4185         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4186         `fpregset_t'.  Call amd64_collect_native_gregset instead of
4187         fill_gregset.  Call x86_64_collect_fxsave instead of
4188         fill_fpregset.
4189         (_initialize_am64fbsd_nat): Initialize
4190         amd64_native_gregset32_reg_offset and
4191         amd64_native_gregset64_reg_offset.
4192         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4193
4194         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4195         null pointer.  Fix typo in comment.
4196
4197         * regcache.c (supply_register): Reimplement to call
4198         regcache_raw_supply.
4199         (regcache_collect): Reimplement by calling regcache_raw_collect.
4200
4201 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
4202
4203         * regcache.c (register_buffer): Consitify first argument.
4204         (regcache_raw_supply, regcache_raw_collect): New
4205         functions.
4206
4207 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4208
4209         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
4210         by Nathan J. Williams.
4211
4212 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4213
4214         * lin-lwp.c (wait_lwp): New function, copied from
4215         stop_wait_callback.  Clean up.
4216         (stop_wait_callback): Use wait_lwp.
4217
4218 2003-08-28  Andrew Cagney  <cagney@redhat.com>
4219
4220         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4221         flavour and disassembler options.
4222         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4223         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
4224         deprecated_tm_print_insn_info.
4225
4226 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4227
4228         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4229         Use target_read_memory.
4230         (s390_get_frame_info): Update.  Do not reference
4231         deprecated_tm_print_insn_info.
4232         (s390_check_function_end, s390_is_sigreturn): Ditto.
4233
4234 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4235
4236         * Makefile.in (cris-tdep.o): Update dependencies.
4237         * cris-tdep.c: Include "gdb_assert.h".
4238         (cris_gdbarch_init): Set print_insn.
4239         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4240         (cris_delayed_get_disassembler): Simplify, directly call the
4241         disassembler returned by cris_get_disassembler.
4242         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4243         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4244         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4245         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4246         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4247         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4248         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4249         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4250         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4251         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4252         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4253         (gdb_print_insn_sparc): Delete function.
4254         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4255         deprecated_tm_print_insn_info.
4256         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4257         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4258         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4259         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4260         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4261         * s390-tdep.c (gdb_print_insn_s390): Delete function.
4262         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4263         (s390_gdbarch_init): Set print_insn.
4264
4265 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4266
4267         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4268         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4269         * infcall.c (call_function_by_hand): Convert the entry point
4270         address into a code address.
4271
4272 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4273
4274         * dsrec.c: Include "gdb_string.h".
4275         * Makefile.in (dsrec.o): Update dependencies.
4276
4277 2003-08-27  Michael Chastain  <mec@shout.net>
4278
4279         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4280
4281 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4282
4283         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4284         (alpha_osf1_init_abi): Do not set call_dummy_address.
4285
4286 2003-08-27  David Carlton  <carlton@kealia.com>
4287
4288         From Randolph Chung  <tausq@debian.org>:
4289         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4290         compiles with -Wformat-nonliteral -Werror.
4291
4292 2003-08-26  Jim Blandy  <jimb@redhat.com>
4293
4294         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4295         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4296         bfd_lookup_symbol, since we only want symbols in code sections.
4297         (look_for_base): Pass zero as the SECT_FLAGS argument to
4298         bfd_lookup_symbol, since we're not concerned about which section
4299         the symbol is in.
4300
4301 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4302
4303         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4304         we are frameless or the return address register is already known.
4305
4306 2003-08-26  Andrew Cagney  <cagney@redhat.com>
4307
4308         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4309         in size.  Add comments.
4310
4311 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4312
4313         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4314         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
4315
4316 2003-08-26  Jason Merrill  <jason@redhat.com>
4317
4318         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4319         case out of #ifdef MIPS block.
4320
4321 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
4322
4323         PR java/1322
4324         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4325         available before calling SECT_OFF_TEXT.
4326         * PROBLEMS: Remove description of java/1322.
4327
4328 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
4329
4330         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4331         bof, and nat0-nat127 as pseudo-registers.
4332         (ia64_frame_cache): New struct used to cache frame info.
4333         (ia64_register_reggroup_p): New routine used to override default
4334         register grouping so registers without names are still saved and
4335         restored.
4336         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
4337         pseudo values.
4338         (ia64_pseudo_register_read): New routine to read pseudo-registers.
4339         (ia64_pseudo_register_write): New routine to write pseudo-registers.
4340         (ia64_alloc_frame_cache): New routine to create a new
4341         ia64_frame_cache.
4342         (examine_prologue): Change prototype to add next_frame pointer.
4343         Assume frameless until otherwise proven.  Verify that the cfm for
4344         current frame matches the cfm that should occur for the prologues
4345         alloc insn and if equal, mark as not frameless.  At end of routine,
4346         if not frameless, calculate registers for the previous frame and store
4347         in the cache, if a cache is provided.
4348         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
4349         and pass 0 for next_frame.
4350         (ia64_store_return_value): Change to use convert_typed_floating()
4351         instead of calling ia64_convert_to_raw().
4352         (ia64_extract_return_value): Change to use convert_typed_floating()
4353         instead of calling ia64_convert_to_virtual().
4354         (ia64_frame_cache): New routine to support new frame model.
4355         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4356         (ia64_frame_sniffer): Ditto.
4357         (ia64_sigtramp_frame_init_saved_regs): Ditto.
4358         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4359         (ia64_sigtramp_frame_prev_register): Ditto.
4360         (ia64_sigtramp_frame_sniffer): Ditto.
4361         (ia64_frame_base_address): Ditto.
4362         (ia64_extract_struct_value_address): Change to issue error message.
4363         (ia64_frame_align): New routine to align sp.
4364         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4365         (ia64_push_arguments): Removed.  Logic moved to
4366         ia64_push_dummy_call().
4367         (ia64_push_return_address): Ditto.
4368         (ia64_unwind_dummy_id): New function.
4369         (ia64_unwind_pc): Ditto.
4370         (ia64_convert_register_p): Ditto.
4371         (ia64_register_to_value): Ditto.
4372         (ia64_value_to_register): Ditto.
4373         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4374         (ia64_register_byte, ia64_register_raw_size): Ditto.
4375         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4376         (ia64_saved_pc_after_call): Ditto.
4377         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4378         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4379         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4380         (ia64_register_convert_to_raw): Ditto.
4381         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4382         (ia64_init_extra_frame_info): Ditto.
4383         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4384         (ia64_gdbarch_init): Remove registering of deprecated functions that
4385         are no longer used.  Add registration of new gdbarch functions.
4386         Remove registering deprecated_write_sp.  Replace
4387         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4388         Delete set_gdbarch_deprecated_register_convertible(),
4389         set_gdbarch_deprecated_register_convert_to_virtual(), and
4390         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
4391         set_gdbarch_deprecated_register_size(),
4392         set_gdbarch_deprecated_register_bytes(),
4393         set_gdbarch_pcregnum(),
4394         set_gdbarch_deprecated_register_byte(),
4395         set_gdbarch_deprecated_register_raw_size(),
4396         set_gdbarch_deprecated_max_register_raw_size(),
4397         set_gdbarch_deprecated_register_virtual_size(),
4398         and set_gdbarch_deprecated_max_register_virtual_size() calls.
4399         Replace set_gdbarch_deprecated_extract_return_value() with
4400         set_gdbarch_extract_return_value().  Remove calls to:
4401         set_gdbarch_deprecated_saved_pc_after_call();
4402         set_gdbarch_deprecated_frame_chain(),
4403         set_gdbarch_deprecated_frame_saved_pc(),
4404         set_gdbarch_deprecated_frame_init_saved_regs(),
4405         set_gdbarch_deprecated_get_saved_register(),
4406         set_gdbarch_deprecated_call_dummy_words(),
4407         set_gdbarch_deprecated_sizeof_call_dummy_words(),
4408         set_gdbarch_deprecated_init_extra_frame_info(),
4409         set_gdbarch_deprecated_frame_args_address(),
4410         set_gdbarch_deprecated_frame_locals_address(),
4411         and set_gdbarch_deprecated_dummy_write_sp().
4412         Add set_gdbarch_convert_register_p(),
4413         set_gdbarch_register_to_value(),
4414         set_gdbarch_value_to_register(),
4415         set_gdbarch_push_dummy_call(),
4416         set_gdbarch_frame_align(),
4417         set_gdbarch_unwind_dummy_id(),
4418         set_gdbarch_unwind_pc(),
4419         frame_unwind_append_sniffer(),
4420         frame_unwind_append_sniffer(),
4421         and frame_base_set_default().
4422
4423 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
4424
4425         * configure.tgt: Document need for special "mipsisa64" handling.
4426         (mipsisa64*-*-linux64): Handle as target linux64.
4427         (mipsisa64*-*-*): Handle as target embed64.
4428
4429 2003-08-18  Michael Chastain  <mec@shout.net>
4430
4431         * PROBLEMS: Document pr gdb/1322, the Java anonymous
4432         objfile bug.
4433
4434 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
4435
4436         * i387-tdep.h: Update copyright date.
4437         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4438
4439         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4440         CFLAGS games to reflect reality.
4441
4442 2003-08-24  Andrew Cagney  <cagney@redhat.com>
4443
4444         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4445         GDB_MULTI_ARCH is always non-zero.
4446         * osabi.c (_initialize_gdb_osabi): Ditto.
4447         (gdbarch_init_osabi): Ditto.
4448         * sparc-tdep.c: Ditto for #if code.
4449
4450 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4451
4452         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4453         Update comments.
4454         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
4455         comments.
4456         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4457         x86_64_supply_fxsave.
4458         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4459         x86_64_supply_fxsave.
4460         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4461         x86_64_supply_fxsave.
4462
4463 2003-08-23  Andreas Jaeger  <aj@suse.de>
4464
4465         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4466         i387_supply_fxsave.
4467
4468 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4469
4470         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4471         i387_supply_register.
4472         (go32_fetch_registers): Adjust call to i387_supply_fsave.
4473         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4474         i387_supply_fsave.
4475         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4476         i387_supply_fxsave.
4477         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4478         i387_supply_fsave.
4479         * i386bsd-nat.c (supply_fpregset): Adjust call to
4480         i387_supply_fsave.
4481         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
4482         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
4483         supply_fpregset.
4484         (store_inferior_registers): Remove extraneous whitespace.  Call
4485         i387_fill_fsave instead of fill_fpregset.
4486         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4487         (supply_fpregset): Likewise.
4488         * i386v4-nat.c (supply_fpregset): Adjust call to
4489         i387_supply_fsave.
4490         * i386-interix-nat.c (supply_fpregset): Adjust call to
4491         i387_supply_fsave.
4492         * i386-linux-nat.c (supply_fpregset): Adjust call to
4493         i387_supply_fsave.
4494         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4495         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4496         i387supply_fsave and i387_supply_fxsave.
4497         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4498         Incorporate code from `i387_supply_register.
4499         (i387_supply_register): Remove.
4500         (i387_supply_fxsave): Add `regnum' argument.
4501         Update comments.
4502         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4503         prototype.
4504         (i387_supply_register): remove prototype.
4505         Update comments.
4506
4507 2003-08-22  Michael Chastain  <mec@shout.net>
4508
4509         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4510         Add lines for files in gdb/testsuite/gdb.cp/* that are
4511         still not 8.3 unique.
4512
4513 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
4514
4515         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4516         TYPE_VPTR_FIELDNO is valid.
4517
4518 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
4519
4520         * utils.c (set_width_command): Remove prototypes.
4521         (set_screen_size): New prototype.
4522         (init_page_info): Simplify by fetching the screen size from
4523         Readline.  Call set_screen_size.
4524         (set_screen_size): New function.
4525         (set_width): Add missing whitespace in comment.
4526         (set_width_command): Call set_screen_size.
4527         (set_height_command): New function.
4528         (initialize_utils): Fix formatting.  Make "set height" command
4529         call set_height_command.  Remove redundant code that turns off
4530         pagination if output isn't a terminal.  Remove redundant call to
4531         set_width_command.
4532
4533 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
4534
4535         * sparc64-tdep.h (sparc64_regnum): Fix comment.
4536         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4537         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4538         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4539         `case' keyword.
4540         (sparc64_register_info): Give the reister with number
4541         SPARC64_STATE_REGNUM a name.
4542         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4543         %asi and %ccr.
4544         (sparc64_push_dummy_call): Take BIAS into account when checking
4545         stcak alignment.
4546         (sparc_software_single_step): Remove assertions that check whether
4547         NPC and NNPC were zero.
4548         (sparc_supply_rwindow): Make public.  Merge functionality with
4549         sparc64_supply_rwindow.
4550         (sparc_fill_rwindow): Make public.  Merge functionality with
4551         sparc64_fill_rwindow.
4552         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4553         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4554         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4555         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4556         sparc_supply_rwindow instead of sparc64_supply_rwindow.
4557
4558         * reggroups.c: Add whitespace after declarations of local
4559         variables in functions.
4560
4561 2003-08-21  Michael Chastain  <mec@shout.net>
4562
4563         * gdbtypes.h: Change array bound type from an int to enum.
4564
4565 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4566
4567         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4568         * config/sparc/tm-sparc.h: Ditto.
4569         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4570         unconditionally.
4571         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4572
4573 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4574
4575         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4576         (register_objfile_data, set_objfile_data, objfile_data): New
4577         prototypes.
4578         * objfiles.c (objfile_alloc_data, objfile_free_data): New
4579         prototypes.
4580         (allocate_objfile): Call objfile_alloc_data.
4581         (free_objfile): Call objfile_free_data.
4582         (struct objfile_data): New.
4583         (struct objfile_data_registration): New.
4584         (struct objfile_data_registry): New.
4585         (objfile_data_registry): New variable.
4586         (register_objfile_data): New function.
4587         (objfile_alloc_data, objfile_free_data): New functions.
4588         (set_objfile_data, objfile_data): New functions.
4589         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4590         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4591         (_initialize_dwarf2_frame): New function and prototype.
4592
4593 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4594
4595         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4596         a specific architecture.
4597         * arch-utils.h (set_architecture_from_arch_mach): Delete
4598         declaration.
4599         (target_architecture_hook): Delete declaration.
4600         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4601         (default_float_format): Assume GDB_MULTI_ARCH.
4602         (default_double_format): Assume GDB_MULTI_ARCH.
4603         (set_endian_from_file): Delete function.
4604         (arch_ok): Delete function.
4605         (set_arch): Delete function.
4606         (set_architecture_from_arch_mach): Delete function.
4607         (set_architecture_from_file): Delete function.
4608         (set_architecture): Assume GDB_MULTI_ARCH.
4609         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4610
4611 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
4612
4613         Rewrite FreeBSD/sparc64 native configuration.
4614         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4615         * sparc64fbsd-nat.c: New file.
4616         * sparc64fbsd-tdep.c: New file.
4617         * sparc64-tdep.c sparc64-tdep.h: New files.
4618         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4619         sparc64fbsd-tdep.o): New dependencies.
4620         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4621         and sparc64fbsd-tdep.c.
4622         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4623         * config/sparc/fbsd.mh: Remove copyright notice.
4624         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4625         sparcbsd-nat.o.
4626         * config/sparc/fbsd.mt: Remove copyright notice.
4627         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4628         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4629         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4630         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4631         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4632         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4633         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4634         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4635         "sparc/tm-sp64.h".
4636         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4637         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4638
4639 2003-08-21  Michael Chastain  <mec@shout.net>
4640
4641         * symtab.h: Add doco on the space critical structures and
4642         some measurements of space usage.
4643
4644 2003-08-21  Michael Snyder  <msnyder@redhat.com>
4645
4646         * tracepoint.c (trace_dump_command): Trace break address
4647         is subject to DECR_PC_AFTER_BREAK.
4648         (set_traceframe_context): Make "trace_line" an int.
4649         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
4650
4651 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4652
4653         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4654         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4655         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4656         argument passing.
4657         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4658         functions, replace sh_push_dummy_call.
4659         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4660
4661 2003-08-20  Michael Chastain  <mec@shout.net>
4662
4663         * gdbtypes.h (struct main_type): Rearrange to save space.
4664
4665 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4666
4667         * trad-frame.c: Comment typo fix.
4668
4669 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4670             Kevin Buettner  <kevinb@redhat.com>
4671
4672         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4673         (frv_frame_init_saved_regs): Add declaration.
4674         (frame_extra_info): Add new field ``saved_regs''.
4675         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4676         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4677         Update frame related code.
4678         (frv_extract_struct_value_address): Adjust formatting.
4679         * Makefile.in (frv-tdep.o): Update dependencies.
4680         * config/frv/tm-frv.h (target_insert_watchpoint)
4681         (target_remove_watchpoint, target_insert_hw_breakpoint)
4682         (target_remove_hw_breakpoint): Delete these macros.
4683         (remote_insert_watchpoint, remote_remove_watchpoint)
4684         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4685         these declarations.
4686
4687 2003-08-20  Michael Chastain  <mec@shout.net>
4688
4689         * defs.h (ENUM_BITFIELD): New macro.
4690         * symtab.h (ENUM_BITFIELD): Use it.
4691         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4692
4693 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
4694
4695         * MAINTAINERS (write after approval): Add myself.
4696
4697 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4698
4699         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4700         * gdbarch.h, gdbarch.c: Re-generate.
4701         * infcall.c (call_function_by_hand): Adjust the SP by
4702         frame_red_zone_size before allocating any stack space.
4703         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4704         * x86-64-tdep.c (x86_64_frame_align): New function.
4705         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4706
4707         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4708         Remove code adjusting SP so that it skips over the Red Zone.
4709
4710 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4711
4712         * NEWS (New native configurations): Mention FreeBSD/amd64.
4713
4714 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4715
4716         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4717         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4718         "m68k_frame_p".
4719         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4720
4721 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4722
4723         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4724
4725 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
4726
4727         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4728         Define.
4729         * i386-linux-nat.c: Include "linux-nat.h".
4730         (child_post_startup_inferior): New function.
4731
4732 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4733
4734         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4735         at the start of a frameless function.  This probably fixes PR
4736         backtrace/1338.
4737
4738 2003-08-17  Michael Chastain  <mec@shout.net>
4739
4740         * symfile.c (find_sym_fns): Remove special case for apollo target.
4741
4742 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4743
4744         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4745         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4746         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4747         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4748         (linux_supports_tracevforkdone): New function.
4749         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4750         TRACEVFORKDONE.
4751         (child_follow_fork): Handle vfork.
4752         (linux_handle_extended_wait): Likewise.  Also handle exec.
4753         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4754         * NEWS: Mention fork tracing.
4755
4756 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4757
4758         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4759
4760 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4761
4762         * Makefile.in (i386-linux-nat.o): Update dependencies.
4763         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4764         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4765         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4766         * i386-linux-nat.c: Include "linux-nat.h".
4767         (child_post_startup_inferior): New function.
4768         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4769         * infptrace.c (kill_inferior): Wrap in #ifdef.
4770         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4771         attaching to each LWP.
4772         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4773         (init_lin_lwp_ops): Fill in some more operations.
4774         * linux-nat.h (linux_enable_event_reporting)
4775         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4776         prototypes.
4777         * linux-nat.c (linux_enable_event_reporting): New function.
4778         (child_post_attach, linux_child_post_startup_inferior)
4779         (child_post_startup_inferior, child_follow_fork)
4780         (linux_handle_extended_wait, kill_inferior): New functions.
4781
4782 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4783
4784         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4785         * gdbarch.h, gdbarch.c: Re-generate.
4786
4787 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4788
4789         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4790
4791 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4792
4793         * NEWS: Mention that "set prompt-escape-char" was deleted.
4794         * top.c (get_prompt_1): Delete function.
4795         (gdb_prompt_escape):
4796         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4797         prompt-escape-char" command.
4798         (MAX_PROMPT_SIZE): Delete macro.
4799         (get_prompt): Simplify, do not call get_prompt_1.
4800
4801 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4802
4803         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4804         -Werror.  -Wformat-nonliteral problems.
4805
4806 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4807
4808         Further multiarching work mostly for hppa64-*-hpux11:
4809         * hppa-tdep.h: New file.
4810         * hppa-tdep.c: #include hppa-tdep.c.
4811         (hppa32_num_regs): Renamed from hppa_num_regs.
4812         (hppa64_num_regs): New constant.
4813         (hppa64_call_dummy_breakpoint_offset): New constant.
4814         (hppa32_call_dummy_length): New constant.
4815         (hppa64_call_dummy_length): New constant.
4816         (hppa32_stack_align): Make name 32bit explicit.
4817         (hppa32_register_virtual_type): Likewise.
4818         (hppa32_extract_return_value): Likewise.
4819         (hppa32_use_struct_convention): Likewise.
4820         (hppa32_store_return_value): Likewise.
4821         (hppa64_register_virtual_type): New function.
4822         (hppa64_extract_return_value): New function.
4823         (hppa64_use_struct_convention): New function.
4824         (hppa64_store_return_value): New function.
4825         (hppa_frame_locals_address): Remove declaration, function does
4826         not exist anymore.
4827         (hppa_register_byte): Add support for PA64 ABI.
4828         (hppa_gdbarch_init): Add support for PA64 ABI.
4829         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4830         Make name 32bit explicit.
4831         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4832         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4833         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4834         (hppa64_hpux_frame_base_before_sigtramp): New function.
4835         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4836         * config/pa/tm-hppa64.h: Remove macros that are no longer
4837         necessary now that the gdbarch vector is properly setup.
4838         Transform some macros into function calls. Some minor cleanup.
4839         * config/pa/tm-hppah.h: Update function calls in macros
4840         following the function renaming in hppa-hpux-tdep.c.
4841         * Makefile.in (hppa_tdep_h): New variable.
4842         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4843
4844 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4845
4846         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4847
4848 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4849
4850         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4851         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4852         routine.
4853
4854 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4855
4856         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4857         (frv_saved_pc_after_call): Use deprecated ftype.
4858         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4859         (frv_remote_translate_xfer_address): Remove.
4860         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4861
4862 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4863
4864         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4865         initialization after the common gdbarch initialization, not before.
4866
4867 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4868
4869         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4870         (ADDR_BITS_REMOVE): Remove, redundant.
4871
4872 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4873
4874         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4875         gdbarch method to clear the 2 low bits of text addresses.
4876
4877 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4878
4879         * Makefile.in (dsrec.o): Update dependencies.
4880         * dsrec.c: Include "gdb_assert.h".
4881         (make_srec): Use snprintf instead of sprintf, use a literal format
4882         string.
4883
4884 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4885
4886         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4887         FRAME_OBSTACK_ZALLOC.
4888
4889 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4890
4891         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4892         SSE registers.
4893
4894 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4895
4896         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4897         amd64fbsd_sc_reg_offset): Add extern declarations.
4898         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4899         declarations.
4900
4901 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
4902
4903         * MAINTAINERS (write after approval): Update my mail address.
4904
4905 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4906
4907         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4908
4909 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4910
4911         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4912         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4913         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4914         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4915         i386bsd_sc_reg_offset): Add extern declarations.
4916         * i386obsd-nat.c: Include "i386-tdep.h"
4917         (_initialize_i386obsd_nat): Remove extern declarations.
4918         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4919         declarations.
4920         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4921         declarations.
4922
4923         * i386-tdep.c (i386_register_to_value): Use get_frame_register
4924         instead of frame_read_register.
4925         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4926         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
4927         SP_REGNUM.
4928         (i386_frame_prev_register): Use frame_unwind_register_unsigned
4929         instead of frame_unwind_unsigned_register.  Use
4930         I386_EFLAGS_REGISTER instead of PS_REGNUM.
4931         (i386_get_longjmp_target): Use regcache_read_unsigned_register
4932         instead of read_register.  Use builtin_type_void_data_ptr instead
4933         of builtin_type_void_func_ptr when extracting the address of the
4934         jmp_buf.
4935         (i386_extract_return_value, i386_store_return_value,
4936         i386_pseudo_register_read, i386_pseudo_register_write): Use
4937         register_size instead REGISTER_RAW_SIZE.
4938
4939 2003-08-10  Andrew Cagney  <cagney@redhat.com>
4940
4941         * infcall.c (call_function_by_hand): Use xstrprintf instead of
4942         sprintf.  Make "name" constant.
4943
4944 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4945
4946         * i387-tdep.c (i387_register_to_value): Use get_frame_register
4947         instead of frame_read_register.
4948         (i387_print_float_info): Use get_frame_register and
4949         get_frame_register_unsigned instead of frame_register_read.
4950
4951         * i386fbsd-nat.c: Include "i386-tdep.h".
4952         (child_resume): Make `eflags' an ULONGEST.  Use
4953         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4954         instead of register_read and register_write.
4955
4956         * i386bsd-nat.c (fetch_inferior_registers,
4957         store_inferior_registers): Don't use && at the end of a line.
4958         (_initialize_i386bsd_nat): Fix typo.
4959
4960         * frame.c (_initialize_frame): Add missing backslash.
4961
4962         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4963         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4964         and supply_register instead of manipulating the register buffer
4965         directly.
4966
4967         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4968         * config/i386/nm-i386sol2.h
4969         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4970
4971         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4972         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4973         instructions that GCC likes to mingle into the prologue.  Fixes
4974         gdb/1253 and gdb/1255.
4975
4976 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4977
4978         Fix GDB PR cli/926.
4979         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4980         * command.h (add_setshow_uinteger_cmd): Declare.
4981         * frame.c (set_backtrace_cmd): New function.
4982         (show_backtrace_cmd): New function.
4983         * frame.c (_initialize_frame): Replace "set/show
4984         backtrace-below-main" with "set/show backtrace past-main".  Add
4985         command "set/show backtrace limit".
4986         (backtrace_past_main): Rename "backtrace_below_main".
4987         (backtrace_limit): New variable.
4988         (get_prev_frame): Update.  Check the backtrace_limit.
4989
4990 2003-08-09  Andrew Cagney  <cagney@redhat.com>
4991
4992         * defs.h (xstrprintf): Declare.
4993         * utils.c (xstrprintf): New function.
4994         * breakpoint.c (insert_breakpoints): Replace sprintf and
4995         non-literal format strings, with xstrprintf and cleanups.
4996         (delete_breakpoint,breakpoint_re_set): Ditto.
4997         (commands_command, insert_breakpoints): Ditto.
4998         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4999         (break_at_finish_command_1): Ditto.
5000
5001 2003-08-09  Andrew Cagney  <cagney@redhat.com>
5002
5003         * MAINTAINERS (language support): List Adam Fedor as Objective C
5004         maintainer.
5005
5006 2003-08-08  J. Brobecker  <brobecker@gnat.com>
5007
5008         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
5009         are now multiarched.
5010
5011 2003-08-08  J. Brobecker  <brobecker@gnat.com>
5012
5013         * config/pa/tm-hppa64.h: Remove lots of macros that are no
5014         longer necessary now that hppa64 is partially multiarch'ed.
5015
5016 2003-08-08  Andrew Cagney  <cagney@redhat.com>
5017
5018         * interps.c (interp_set): Check for a NULL "old_interp".
5019
5020 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5021
5022         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
5023         (install-only): Support DESTDIR.
5024         (uninstall): Likewise.
5025         (install-gdbtk): Likewise.
5026
5027 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
5028
5029         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
5030         contains something meaningful at all times.
5031
5032 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
5033
5034         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
5035
5036 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
5037
5038         * MAINTAINERS (write after approval): Added self.
5039
5040 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5041
5042         * inferior.h (AT_SYMBOL): Define.
5043         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
5044         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
5045         * mips-tdep.c (mips_call_dummy_address): Delete function.
5046         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
5047         set call_dummy_address.
5048
5049 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5050
5051         * language.c (op_error): Delete function.
5052         (binop_type_check): Delete function.
5053         * language.h (type_op_error, range_op_error): Delete macros.
5054         (op_error): Delete declaration.
5055
5056 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5057
5058         * interps.h (INTERP_MI2, INTERP_MI3): Define.
5059
5060 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
5061
5062         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
5063         (x86_64_push_arguments): Skip the red zone.
5064
5065 2003-08-05  Andrew Cagney  <cagney@redhat.com>
5066
5067         * reggroups.c (reggroup_next): Check for the final entry.
5068
5069 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5070
5071         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
5072         * cli/cli-script.c (define_command): Call query directly, instead
5073         of passing it a buffer.
5074         * ocd.c (ocd_error): Pass error a constant format string.
5075         * remote-mips.c (mips_error): Use fputs_filtered.
5076
5077         * solib-svr4.c (_initialize_svr4_solib): Update
5078         register_gdbarch_data call.
5079         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5080
5081         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5082         (register_gdbarch_data): Delete "free" parameter.  Update
5083         comments.
5084         * gdbarch.h, gdbarch.c: Re-generate.
5085         * reggroups.c (_initialize_reggroup): Update.
5086         * gnu-v3-abi.c (init_gnuv3_ops): Update.
5087         * frame-base.c (_initialize_frame_base): Update.
5088         * frame-unwind.c (_initialize_frame_unwind): Update.
5089         * user-regs.c (_initialize_user_regs): Update.
5090         * remote.c (_initialize_remote): Update.
5091         * regcache.c (_initialize_regcache): Update.
5092
5093         * regcache.c (xfree_regcache_descr): Delete function.
5094         (_initialize_regcache): Update call to register_gdbarch_data.
5095         (init_regcache_descr, init_legacy_regcache_descr): Use
5096         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5097
5098         * remote.c (free_remote_state): Delete function.
5099         (_initialize_remote): Update register_gdbarch_data.
5100         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5101         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5102
5103 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5104
5105         * reggroups.c (struct reggroup_el): Define.
5106         (struct reggroups): Delete field "nr_group".  Replace array
5107         "group" with a "first" to "last" linked list.
5108         (reggroups_init): Update.  Allocate using gdbarch's obstack.
5109         (reggroups_free): Delete function.
5110         (add_group): Update.  Add "el" parameter.
5111         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5112         (default_groups): Update.
5113         (reggroup_next): Replace reggroups.
5114         (reggroups_dump): Update.
5115         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5116         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5117         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5118
5119 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
5120
5121         * Makefile.in (tui-interp.o): Update dependencies.
5122
5123 2003-08-04  David Carlton  <carlton@kealia.com>
5124
5125         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5126         to internal_error call.
5127         * source.c (forward_search_command): Add "%s" format argument.
5128         (reverse_search_command): Ditto.
5129         * top.c (quit_confirm): Ditto.
5130         * cli/cli-setshow.c (do_setshow_command): Ditto.
5131         * cp-valprint.c (cp_print_class_method): Replace
5132         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5133         (cp_print_class_member): Ditto.
5134         * event-top.c (command_line_handler): Ditto.
5135         * linux-proc.c (linux_info_proc_cmd): Ditto.
5136         * p-typeprint.c (pascal_type_print_base): Ditto.
5137         * p-valprint.c (pascal_object_print_class_method): Ditto.
5138         (pascal_object_print_class_member): Ditto.
5139         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5140         * remote.c (remote_cisco_section_offsets): Ditto.
5141         * top.c (command_line_input): Ditto.
5142         * utils.c (vwarning,error_stream,quit): Ditto.
5143         * valprint.c (print_floating,print_binary_chars)
5144         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5145
5146 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5147
5148         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5149
5150 2003-08-02  Andrew Cagney  <cagney@redhat.com>
5151
5152         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5153         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5154         amd64fbsd-nat.c.
5155
5156 2003-08-02  Andrew Cagney  <cagney@redhat.com>
5157
5158         * Makefile.in: Update all dependencies and definitions.
5159
5160 2003-08-02  Adam Fedor  <fedor@gnu.org>
5161
5162         * linespec.c (is_objc_method_format): New function
5163         (decode_line_1, locate_first_half): Use it.
5164         Fixes PR objc/1298
5165
5166 2003-08-01  Andrew Cagney  <cagney@redhat.com>
5167
5168         * NEWS: Mention that m32r is multi-arch.
5169         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5170         * configure.tgt: Recognize m32r-*-*.
5171         * config/m32r/tm-m32r.h: Delete file.
5172         * config/m32r/m32r.mt: New file.
5173         * m32r-rom.c (m32r_upload_command): Use hostent only when
5174         gethostname succeeds, in order to avoid a compilation
5175         warning.
5176         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5177         compiler warning.
5178
5179 2003-08-01  Michael Snyder  <msnyder@redhat.com>
5180
5181         * sh-tdep.c (sh_frame_align): New gdbarch method.
5182         (sh_gdbarch_init): Set up frame_align method.
5183
5184 2003-07-31  Michael Snyder  <msnyder@redhat.com>
5185
5186         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5187         which is already covered by the new frames infrastructure.
5188
5189 2003-07-31  Andrew Cagney  <cagney@redhat.com>
5190
5191         * user-regs.c (struct user_reg): Add "next" link.
5192         (struct user_regs): Replace "user" with "first" and "last" links.
5193         (append_user_reg): Add pre-allocated "reg" parameter.
5194         (builtin_user_regs): Provide initial value for "last".
5195         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5196         (user_regs_init): Allocate memory from the gdbarch obstack.
5197         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5198         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5199         linked list.
5200         (usernum_to_user_reg): New function.
5201         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5202         (value_of_user_reg): Use usernum_to_user_reg.
5203         (user_regs_free): Delete function.
5204         (_initialize_user_regs): Update register_gdbarch_data call.
5205
5206 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
5207
5208         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5209
5210 2003-07-30  Michael Snyder  <msnyder@redhat.com>
5211
5212         * value.h (value_being_returned): Add a struct_addr argument.
5213         * infcall.c (call_function_by_hand): Pass struct_addr to
5214         value_being_returned.
5215         * infcmd.c (print_return_value): Pass zero as struct_addr.
5216         * values.c (value_being_returned): If struct_addr is passed,
5217         use it instead of trying to recover it from the inferior.
5218
5219 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
5220
5221         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5222         the prologue analyzer won't need to attempt to extract the pc
5223         value from the woefully incomplete dummy frame.
5224         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5225         possible.  Disable code which modifies the frame.
5226
5227 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5228
5229         * annotate.c (annotate_breakpoints_headers): Restrict annotation
5230         to level 2.
5231         (annotate_breakpoints_table, annotate_record): Ditto.
5232         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5233         (annotate_field_name_end, annotate_field_value): Ditto.
5234         (annotate_field_end, annotate_frame_source_begin): Ditto.
5235         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5236         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5237         (annotate_frame_begin, annotate_frame_function_name): Ditto.
5238         (annotate_frame_address_end, annotate_frame_address): Ditto.
5239         (annotate_frame_args, annotate_frame_end): Ditto.
5240         (annotate_frame_where, annotate_arg_begin): Ditto.
5241         (annotate_arg_name_end, annotate_arg_value): Ditto.
5242         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5243         (annotate_function_call, annotate_signal_name): Ditto.
5244         (annotate_signal_string, annotate_signal_name_end): Ditto.
5245         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5246         (annotate_value_begin, annotate_value_history_value): Ditto.
5247         (annotate_value_history_end, annotate_value_end): Ditto.
5248         (annotate_display_begin, annotate_display_number_end): Ditto.
5249         (annotate_display_format, annotate_display_expression): Ditto.
5250         (annotate_display_expression_end, annotate_display_value): Ditto.
5251         (annotate_display_end, annotate_array_section_begin): Ditto.
5252         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5253         (annotate_elt, annotate_array_section_end): Ditto.
5254
5255 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5256
5257         * regcache.c (struct regcache_descr): Update comments on
5258         nr_raw_registers.
5259         (init_legacy_regcache_descr): Don't set nr_raw_registers or
5260         sizeof_raw_register_valid_p.
5261         (init_regcache_descr): Set nr_raw_registers and
5262         sizeof_raw_register_valid_p before calling
5263         init_legacy_regcache_descr.
5264
5265 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5266
5267         * mips-tdep.c (print_gp_register_row): Print the GPR's register
5268         MOD NUM_REGS.
5269
5270 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
5271
5272         * thread.c (info_threads_command): Use get_selected_frame ().
5273         Check that there is at least one non-sentinel frame.
5274
5275 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5276
5277         * m68hc11-tdep.c (struct frame_extra_info): Remove.
5278         (m68hc11_pop_frame): Remove.
5279         (m68hc11_frame_saved_pc): Remove.
5280         (m68hc11_frame_chain): Remove.
5281         (m68hc11_frame_init_saved_regs): Remove.
5282         (m68hc11_init_extra_frame_info): Remove.
5283         (m68hc11_store_struct_return): Remove.
5284         (m68hc11_saved_pc_after_call): Remove.
5285
5286 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5287
5288         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5289         frame unwind information.
5290         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5291         and adapted for frame unwinding.
5292         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5293         (m68hc11_unwind_pc): New function.
5294         (m68hc11_frame_unwind_cache): New function to analyze frames.
5295         (m68hc11_frame_this_id): New function to create new frame struct.
5296         (m68hc11_frame_prev_register): New function to unwind a register from
5297         the frame.
5298         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5299         (m68hc11_frame_p): New function for the above.
5300         (m68hc11_frame_base_address): New function to return fp of frame.
5301         (m68hc11_frame_args_address): Update for frame.
5302         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5303         (m68hc11_unwind_sp): New function.
5304         (m68hc11_unwind_dummy_id): New function.
5305         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5306         calls.
5307
5308 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5309
5310         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5311         (m68hc11_guess_from_prologue): Advance the pc and frame size only
5312         when we are beyond the current pc.
5313
5314 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5315
5316         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5317         from m68hc11_push_arguments.
5318         (m68hc11_push_arguments): Remove.
5319         (m68hc11_push_return_address): Remove.
5320         (m68hc11_gdbarch_init): Install the above; remove above deprecated
5321         handlers; remove deprecated_extra_stack_alignment_needed.
5322
5323 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5324
5325         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5326         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5327         REAL_PC and not the pointer.
5328         * hppa-hpux-tdep.c: Include frame.h
5329
5330 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5331
5332         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5333         GDB_MULTI_ACH_PARTIAL.
5334
5335 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5336
5337         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5338         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5339         operator at start and not end of line.
5340         (decode_prologue): Ditto.
5341         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5342         frame_unwind_register_unsigned instead of
5343         frame_unwind_unsigned_register.
5344         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5345         read_register.
5346         (m32r_push_dummy_call): Use register_size instead of
5347         REGISTER_RAW_SIZE.
5348         (m32r_frame_sniffer): Replace m32r_frame_p.
5349         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5350         * m32r-rom.c (report_transfer_performance): Delete extern
5351         declaration.
5352         (m32r_load, m32r_upload_command): Use print_transfer_performance
5353         instead of report_transfer_performance.
5354         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5355         / add_show_from_set.
5356
5357 2003-07-26  Andrew Cagney  <cagney@redhat.com>
5358
5359         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5360         store_return_value and extract_struct_value_address.
5361
5362 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
5363
5364         PR c++/1267
5365         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5366         NULL, default to the section containing PC.
5367
5368 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
5369
5370         * NEWS: Mention "regs" deprecated for m68hc11 too.
5371
5372         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5373         (m68hc11_print_register): New function to print out one register.
5374         (m68hc11_print_registers_info): New function to print registers.
5375         (show_regs): Deprecate and use the above.
5376         (m68hc11_gdbarch_init): Install the print_registers_info.
5377
5378 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5379
5380         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5381         that we have a SIGTRAP before returning non-zero.
5382
5383 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
5384             Elena Zannoni  <ezannoni@redhat.com>
5385
5386         * linespec.c (decode_line_2): Avoid crash if
5387         find_function_start_sal() returns empty record.
5388
5389 2003-07-23  Andreas Schwab  <schwab@suse.de>
5390
5391         * ia64-tdep.c (ia64_print_insn): New function.
5392         (ia64_gdbarch_init): Set print_insn to it.
5393         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5394         deprecated_tm_print_insn_info.
5395
5396 2003-07-22  Michael Snyder  <msnyder@redhat.com>
5397
5398         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5399         handle 8-bit returns (long long).
5400         (h8300h_extract_return_value): Ditto.
5401         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5402
5403 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5404
5405         * gdbarch.c Include "gdb_obstack.h".
5406         (struct gdbarch): Add an "obstack".
5407         (alloc_gdbarch_data): Allocate the gdbarch data using
5408         GDBARCH_OBSTACK_CALLOC.
5409         (free_gdbarch_data): Delete function.
5410         (gdbarch_obstack_zalloc): New function.
5411         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5412         Assert that the architecture is not initialized.
5413         (gdbarch_alloc): Allocate an obstack, allocate the architecture
5414         vector from the obstack.
5415         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5416         architecture obstack.
5417         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5418         (set_gdbarch_data): Assert that the data is not initialized.
5419         (struct gdbarch_data): Delete member "free".
5420         (register_gdbarch_data): Do not initialize "free".
5421         * gdbarch.h, gdbarch.c: Re-generate.
5422
5423 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5424
5425         * configure.in (build_warnings): Add -Wformat-nonliteral.
5426         * configure: Re-generate.
5427
5428 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5429
5430         * dwarf2loc.c (locexpr_describe_location): Fix typos.
5431
5432 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5433
5434         * findvar.c (read_var_value): Remove case for thread local storage
5435         variables.  It is now entirely handled by the dwarf2 location
5436         expression code.
5437         * printcmd.c (address_info): Ditto.
5438         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5439         enumeration value.
5440         (struct symbol): Remove objfile field, which was used by
5441         LOC_THREAD_LOCAL_STATIC only.
5442         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5443         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5444         usage of objfile pointer.
5445         * dwarf2loc.c (locexpr_describe_location): Add case to handle
5446         thread local variables.
5447         Add include of objfiles.h.
5448         * dwarf2expr.c (execute_stack_op): Add comments about thread local
5449         storage variables.
5450         * Makefile.in (dwarf2loc.o): Update dependencies.
5451
5452 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5453
5454         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5455         get_frame_base.
5456         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5457         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5458         (struct value): Add opaque declaration.
5459         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5460
5461 2003-07-21  Andrew Cagney  <cagney@redhat.com>
5462
5463         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5464         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5465
5466 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5467
5468         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5469         regcache_cooked_read_unsigned instead of read_register.
5470         (m68hc11_saved_pc_after_call): Likewise.
5471         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5472         instead of write_register.
5473         (m68hc11_register_type): New function.
5474         (m68hc11_register_virtual_type): Remove.
5475         (m68hc11_store_return_value): Convert to use the regcache.
5476         (m68hc11_extract_struct_value_address): Likewise.
5477         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5478         m68hc11_register_type; undeprecate store_return_value and
5479         extract_struct_value_address.
5480
5481 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5482
5483         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5484         and translate to use regcache.
5485         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5486
5487 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5488
5489         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5490         * gdbarch.h, gdbarch.c: Re-generate.
5491         * i386-tdep.c (i386_gdbarch_init): Do not set
5492         DWARF2_BUILD_FRAME_INFO.
5493         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5494         unconditionally.
5495         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5496         DWARF2_BUILD_FRAME_INFO.
5497
5498 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5499
5500         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5501         * disasm.c (gdb_disassemble_info): Initilize di.arch.
5502
5503 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5504
5505         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5506         frame_unwind_address_in_block, instead of frame_pc_unwind.
5507         (dwarf2_frame_cache): Ditto.
5508
5509 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5510
5511         * user-regs.h (struct gdbarch): Declare opaque.
5512         * ui-out.h (struct ui_file): Declare opaque.
5513         * dwarf2-frame.h (struct frame_info): Declare opaque.
5514
5515 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
5516
5517         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
5518         #include "...".
5519         (procfs_meminfo): Change strerror to safe_strerror.
5520         (procfs_can_run): Remove K&R badness.
5521
5522 2003-07-17  Michael Snyder  <msnyder@redhat.com>
5523
5524         * remote-sim.c: Comment typo fix.
5525
5526 2003-07-17  Andrew Cagney  <cagney@redhat.com>
5527
5528         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
5529         configure.
5530         * sparc-tdep.c (sparc_intreg_size): Make non-static.
5531         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5532         GDB_MULTI_ARCH_PARTIAL.
5533
5534 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
5535
5536         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5537         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
5538         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5539
5540 2003-07-16  Theodore A. Roth  <troth@openavr.org>
5541
5542         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5543         found.
5544         (avr_frame_unwind_cache): Don't unwind FP for main.
5545         Update a comment.
5546         Save the computed prev_sp.
5547         (avr_saved_regs_unwinder): Remove function.
5548         (avr_frame_prev_register): Use PC unwind logic from
5549         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5550
5551 2003-07-16  Andrew Cagney  <cagney@redhat.com>
5552
5553         * frame-base.h (frame_base_p_ftype): Delete definition.
5554         (frame_base_append_predicate): Delete declaration.
5555         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5556         (frame_unwind_append_predicate): Delete declaration.
5557         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5558         (append_predicate): Delete parameter "p".
5559         (frame_unwind_append_predicate): Delete function.
5560         (frame_unwind_append_sniffer): Update call to append_predicate.
5561         (frame_unwind_free): Delete function.
5562         (_initialize_frame_unwind): Pass NULL as "free" to
5563         register_gdbarch_data.
5564         (frame_unwind_init): Append the dummy_frame_sniffer.
5565         (frame_unwind_find_by_frame): Simplify.
5566         * frame-base.c (struct frame_base_table): Delete field "p".
5567         (append_predicate): Delete parameter "p".
5568         (frame_base_append_predicate): Delete function.
5569         (frame_base_append_sniffer): Update call to append_predicate.
5570         (frame_base_free): Delete function.
5571         (frame_base_find_by_frame): Simplify.
5572         (_initialize_frame_base): Pass NULL as "free" to
5573         register_gdbarch_data.
5574         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5575         (x86_64_sigtramp_frame_sniffer): Replace
5576         "x86_64_sigtramp_frame_p".
5577         (x86_64_init_abi): Set the frame unwind sniffers.
5578         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5579         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5580         (m68k_gdbarch_init): Set the frame unwind sniffers.
5581         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5582         "i386_sigtramp_frame_p".
5583         (i386_frame_sniffer): Replace "i386_frame_p".
5584         (i386_gdbarch_init): Set the frame unwind sniffers.
5585         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5586         (avr_gdbarch_init): Set the frame unwind sniffers.
5587         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5588         "alpha_sigtramp_frame_p"
5589         (alpha_heuristic_frame_sniffer): Replace
5590         "alpha_heuristic_frame_p".
5591         (alpha_gdbarch_init): Set the frame unwind sniffers.
5592         (alpha_dwarf2_init_abi): Ditto.
5593         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5594         "alpha_debug_frame_p".
5595         (alpha_mdebug_frame_base_sniffer): Replace
5596         "alpha_mdebug_frame_base_p".
5597         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5598         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5599         (d10v_gdbarch_init): Set the frame unwind sniffer.
5600         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5601         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5602         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5603         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5604         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5605         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5606
5607 2003-07-16  Michael Snyder  <msnyder@redhat.com>
5608
5609         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5610         should go thru sh_dsp_register_sim_regno, else the dsp regs
5611         will not get the right values.
5612
5613 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5614
5615         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5616         deprecated_store_floating by call to store_typed_floating.
5617         (sh_sh4_register_convert_to_raw): Substitute call to
5618         deprecated_extract_floating by call to extract_typed_floating.
5619
5620 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5621
5622         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5623
5624 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5625
5626         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5627         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5628         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5629         as possible.
5630         (do_pseudo_register): Remove.
5631         (sh_push_dummy_code): New function.
5632         (sh64_store_struct_return): Rename from sh_store_struct_return.
5633         Only called for sh64 now.
5634         (sh_extract_struct_value_address): Regcache'ify.
5635         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5636         and accomodate new tasks.
5637         (sh64_push_return_address): Rename from sh_push_return_address.
5638         Only called for sh64 now.
5639         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5640         Regcache'ify.
5641         (sh3e_sh4_extract_return_value): Regcache'ify.
5642         (sh_default_store_return_value): Ditto.
5643         (sh3e_sh4_store_return_value): Ditto.
5644         (sh_default_register_byte): Remove.
5645         (sh_sh4_register_byte): Remove.
5646         (sh_default_register_raw_size): Remove.
5647         (sh_sh4_register_raw_size): Remove.
5648         (sh_register_virtual_size): Remove.
5649         (sh_sh3e_register_virtual_type): Remove.
5650         (sh_sh3e_register_type): New function.
5651         (sh_sh4_register_virtual_type): Remove.
5652         (sh_sh4_register_type): New function.
5653         (sh_default_register_virtual_type): Remove.
5654         (sh_default_register_type): New function.
5655         (do_fv_register_info): Add parameters to accomodate call from
5656         sh_print_registers_info.
5657         (do_dr_register_info): Ditto.
5658         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5659         Add parameters to accomodate call from sh_print_registers_info.
5660         (sh_do_fp_register): Ditto.
5661         (sh64_do_pseudo_register): Call do_dr_register_info,
5662         do_fv_register_info and sh_do_fp_register with default parameters.
5663         (sh_do_register): Add parameters to accomodate call from
5664         sh_print_registers_info.
5665         (sh_print_register): Ditto.
5666         (sh_print_registers_info): Rename from sh_do_registers_info.
5667         Add parameters to be used as gdbarch_print_registers_info
5668         implementation.  Accomodate removed do_pseudo_register function
5669         pointer.
5670         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5671         function pointer. Call sh_print_register with default parameters.
5672         (sh64_do_registers_info): Call sh_print_registers_info instead of
5673         sh_do_registers_info.
5674         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5675         detection of deprecated vs. non-deprecated functionality.
5676         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5677         function pointer assignments by direct function calls.
5678
5679 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5680
5681         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5682         (frame_register_unwind, create_new_frame): Ditto.
5683         (legacy_get_prev_frame, get_frame_type): Ditto.
5684         (get_frame_base_address): Use frame_base_find_by_frame.
5685         (get_frame_locals_address): Use frame_base_find_by_frame.
5686         (get_frame_args_address): Use frame_base_find_by_frame.
5687         * frame-base.h (frame_base_sniffer_ftype): Declare.
5688         (frame_base_append_sniffer): Declare.
5689         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5690         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5691         (frame_base_append_sniffer): New function.
5692         (frame_base_append_predicate): Add a NULL sniffer.
5693         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5694         (struct frame_base_table): Add "sniffer".
5695         (frame_base_free): Free the "sniffer" table.
5696         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5697         (frame_unwind_append_sniffer): Declare.
5698         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5699         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5700         (struct frame_unwind_table): Add "sniffer", delete "middle".
5701         (append_predicate): Add "sniffer" parameter, append the sniffer.
5702         (frame_unwind_init): Update append_predicate call.
5703         (frame_unwind_append_sniffer): New function.
5704         (frame_unwind_append_predicate): Update append_predicate call.
5705         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5706
5707 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5708
5709         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5710         before code inhibiting repeated unwind attempts.  Add to
5711         commentary on that test's problems.
5712         * blockframe.c (inside_main_func): Look for "main" in the minimal
5713         symbol table.
5714         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5715         identical.
5716
5717 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5718
5719         * complaints.c (struct explanation): Define.
5720         (struct complaints): Change type of "explanation" to "struct
5721         explanation".
5722         (symfile_explanations): Convert to a "struct explanation" table.
5723         (vcomplaint): Update.
5724
5725 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
5726
5727         * x86-64-linux-nat.c (regmap): Removed.
5728         (supply_gregset, fill_gregset): Call
5729         x86_64_linux_(fill,supply)_gregset functions.
5730         * x86-64-linux-tdep.c (USER_*): New defines.
5731         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5732         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5733         New functions.
5734         (fetch_core_registers): Ditto.
5735         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5736         * x86-64-linux-tdep.h: New file.
5737         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5738         and core-regset.o.
5739         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5740
5741 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5742
5743         * x86-64-tdep.c (x86_64_store_return_value): Use
5744         regcache_cooked_write_part instead of regcache_cooked_write.
5745
5746         * configure.host: Add x86_64-*-freebsd*.
5747         * configure.tgt: Add x86_64-*-freebsd*.
5748         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5749         * amd64fbsd-nat.c: New file.
5750         * amd64fbsd-tdep.c: New file.
5751         * config/i386/nm-fbsd64.h: New file.
5752         * config/i386/fbsd64.mh: New file.
5753         * config/i386/fbsd64.mt: New file.
5754
5755 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5756
5757         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5758         `sc_regs_offset' and `sc_fpregs_offset'.
5759         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5760         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5761         (alpha_sigtramp_register_address): Rewrite to use new members of
5762         `struct gdbarch_tdep'.
5763         (alpha_gdbarch_init): Initialize new members of struct
5764         gdbarch_tdep'.
5765         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5766         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5767         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5768         (alphafbsd_pc_in_sigtramp): Implement.
5769         (alphafbsd_sigtramp_offset): New function.
5770         (alphafbsd_sigcontext_addr): New function.
5771         (alphafbsd_init_abi): Initialize signal trampoline related members
5772         of `struct gdbarch_tdep'.
5773         (_initialize_alphafbsd_tdep): Add prototype.
5774
5775 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5776
5777         * Makefile.in (install-only): Quote sed expression when generating
5778         transformed_name.
5779
5780 2003-07-11  Richard Henderson  <rth@redhat.com>
5781
5782         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5783         * dwarf2-frame.c: Include complaints.h.
5784         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5785         variable initialization; return NULL on error.
5786         (decode_frame_entry): New.
5787
5788 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5789
5790         * frame.h (frame_address_in_block): Delete declaration.
5791         * blockframe.c (frame_address_in_block): Delete function.
5792         (get_frame_block): Use get_frame_address_in_block.
5793         (block_innermost_frame): Ditto.
5794         * stack.c (print_frame, backtrace_command_1): Ditto.
5795
5796         * frame.h (get_frame_address_in_block): Declare.
5797         (frame_unwind_address_in_block): Declare.
5798         * frame.c (frame_unwind_address_in_block): New function.
5799         (get_frame_address_in_block): New function.
5800
5801 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5802
5803         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5804         pre-default.   Note: re-generate has no effect.
5805
5806 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5807
5808         * gdbarch.sh: When a variable, but not a function, compare against
5809         0.  Fix problem in previous patch.
5810         * gdbarch.c: Re-generate.
5811
5812 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5813
5814         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5815         functions against NULL, not 0.
5816         * gdbarch.c: Re-generate.
5817
5818 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5819
5820         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5821         null string instead of a null pointer.
5822         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5823
5824 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5825
5826         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5827
5828 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5829
5830         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5831         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5832         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5833         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5834         * x86-64-tdep.c: ... from here.
5835
5836 2003-07-09  Andreas Schwab  <schwab@suse.de>
5837
5838         * m68k-tdep.h (enum struct_return): Define.
5839         (struct gdbarch_tdep): Add struct_return.
5840         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5841         bytes are padded to the right, not to the left.  Pass struct value
5842         address in register %a1, not on stack.
5843         (m68k_use_struct_convention): New function.
5844         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5845         struct_return in tdep to pcc_struct_return.
5846         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5847         reg_struct_return.
5848
5849 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5850
5851         * somread.c (som_symfile_offsets): Fix compilation error.
5852
5853 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5854
5855         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5856         Add comments about the checks.
5857
5858 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5859
5860         * Makefile.in: Make dependency section headers consistent.
5861         (config_h): Move to $BUILD headers section.
5862         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5863         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5864         (ada-exp.tab.c): Move to YACC/LEX section.
5865         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5866         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5867
5868 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5869
5870         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5871         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5872         of strerror with safe_strerror, use ISO C function definitions,
5873         and replace instances of sprintf with snprintf.
5874
5875 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5876
5877         * frame.c (get_prev_frame): Enable check for identical frames.
5878         Update comments.  Update error messages.
5879
5880 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5881
5882         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5883
5884 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5885
5886         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5887         sort_symtab_syms, no longer necessary.
5888
5889 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5890
5891         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5892
5893 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5894
5895         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5896         (mips_register_byte): Likewise.
5897
5898 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5899
5900         * Makefile.in (sparc_tdep_h): New.
5901         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5902         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5903         * sparc-linux-nat.c: Include "sparc-tdep.h".
5904         * sparc-nat.c: Likewise.
5905         * sparc-tdep.c: Likewise.
5906         * sparc64nbsd-nat.c: Likewise.
5907         * sparcnbsd-nat.c: Likewise.
5908         * sparcnbsd-tdep.c: Likewise.
5909         * sparc-tdep.h: New file.
5910         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5911         and sparc_npc_regnum.
5912
5913 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5914
5915         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5916         (mips_linux_cannot_store_register): List supported instead of
5917         unsupported registers.
5918
5919 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5920
5921         * disasm.c (dump_insns): Separate instructions from addresses.
5922
5923 2003-07-07  Andreas Schwab  <schwab@suse.de>
5924
5925         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5926         dependencies.
5927         * m68k-tdep.c (NUM_FREGS): Delete.
5928         (SIG_PC_FP_OFFSET): Delete.
5929         (TARGET_M68K): Delete.
5930         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5931         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5932         P_MOVEL_SP, P_MOVEML_SP): Define.
5933         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5934         P_TRAP): Delete.
5935         (m68k_register_raw_size): Delete.
5936         (m68k_register_virtual_size): Delete.
5937         (m68k_register_type): Renamed from m68k_register_virtual_type and
5938         add gdbarch argument.
5939         (m68k_store_struct_return): Delete.
5940         (m68k_deprecated_extract_return_value): Delete.
5941         (m68k_deprecated_extract_struct_value_address): Delete.
5942         (m68k_frame_chain): Delete.
5943         (m68k_frame_saved_pc): Delete.
5944         (m68k_fix_call_dummy): Delete.
5945         (m68k_push_dummy_frame): Delete.
5946         (m68k_pop_frame): Delete.
5947         (m68k_extract_return_value): New function.
5948         (m68k_store_return_value): Rewrite using regcache.
5949         (m68k_extract_struct_value_address): Rewrite using regcache.
5950         (m68k_push_dummy_call): New function.
5951         (struct m68k_frame_cache): Define.
5952         (m68k_alloc_frame_cache): New function.
5953         (m68k_analyze_frame_setup): New function.
5954         (m68k_analyze_register_saves): New function.
5955         (m68k_analyze_prologue): New function.
5956         (m68k_skip_prologue): Rewrite using above functions.
5957         (m68k_unwind_pc): New function.
5958         (m68k_frame_cache): New function.
5959         (m68k_frame_this_id): New function.
5960         (m68k_frame_prev_register): New function.
5961         (m68k_frame_unwind): New variable.
5962         (m68k_frame_p): New function.
5963         (m68k_sigtramp_frame_cache): New function.
5964         (m68k_sigtramp_frame_this_id): New function.
5965         (m68k_sigtramp_frame_prev_register): New function.
5966         (m68k_sigtramp_frame_unwind): New variable.
5967         (m68k_sigtramp_frame_p): New function.
5968         (m68k_frame_base_address): New function.
5969         (m68k_frame_base): New function.
5970         (m68k_unwind_dummy_id): New function.
5971         (fill_gregset): Use regcache_collect.
5972         (fill_fpregset): Likewise.
5973         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5974         defined.
5975         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
5976         deprecated_init_frame_pc, deprecated_store_struct_return,
5977         deprecated_extract_return_value, deprecated_store_return_value,
5978         deprecated_frame_chain, deprecated_frame_saved_pc,
5979         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5980         deprecated_register_virtual_size,
5981         deprecated_max_register_raw_size,
5982         deprecated_max_register_virtual_size,
5983         deprecated_register_virtual_type, deprecated_register_size,
5984         deprecated_register_byte, deprecated_register_bytes,
5985         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5986         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5987         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5988         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5989         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5990         deprecated_push_dummy_frame, deprecated_pop_frame,
5991         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
5992         only if SYSCALL_TRAP is defined.  Set extract_return_value,
5993         store_return_value, extract_struct_value_address, register_type,
5994         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
5995         predicates.
5996         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5997         M68K_MAX_REGISTER_SIZE): Define.
5998         (struct m68k_sigtramp_info): Define.
5999         (struct gdbarch_tdep): Add get_sigtramp_info.
6000         * m68klinux-nat.c (fetch_register): Use register_size instead of
6001         REGISTER_RAW_SIZE.  Don't put assignment in if.
6002         (store_register): Likewise.
6003         (fetch_inferior_registers): Likewise.
6004         (store_inferior_registers): Likewise.
6005         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
6006         (m68k_linux_frame_saved_pc): Delete.
6007         (m68k_linux_sigcontext_reg_offset,
6008         m68k_linux_ucontext_reg_offset): Define.
6009         (m68k_linux_get_sigtramp_info): New function.
6010         (m68k_linux_extract_return_value): Rewrite using regcache.
6011         (m68k_linux_store_return_value): Likewise.
6012         (m68k_linux_extract_struct_value_address): Likewise.
6013         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
6014         Don't set deprecated_frame_saved_pc,
6015         deprecated_extract_return_value, deprecated_store_return_value,
6016         deprecated_extract_struct_value_address.  Set
6017         extract_return_value, store_return_value,
6018         extract_struct_value_address.
6019
6020 2003-07-07  Andrew Cagney  <cagney@redhat.com>
6021
6022         * expprint.c: Include "user-regs.h" instead of "frame.h".
6023         (print_subexp): Use user_reg_map_regnum_to_name, instead of
6024         frame_map_regnum_to_name.
6025         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
6026         (frame_map_name_to_regnum): Simplify, call
6027         user_reg_map_name_to_regnum.
6028         (frame_map_regnum_to_name): Simplify, call
6029         user_reg_map_regnum_to_name.
6030         (frame_register_unwind): Update.
6031         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
6032         (_initialize_frame_reg): Call user_reg_add_builtin.
6033         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
6034         (value_of_register): Use value_of_user_reg.
6035         * eval.c (evaluate_subexp_standard): Update.
6036         * parse.c (write_dollar_variable): Update.
6037         * d10v-tdep.c (d10v_print_registers_info): Update.
6038         * infcmd.c (registers_info): Update.
6039         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
6040         (builtin_regs_h): Delete macro.
6041         (user_regs_h): Define.
6042         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
6043         (builtin-regs.o): Delete target.
6044         (user-regs.o): Specify dependencies.
6045         (expprint.o): Update dependencies.
6046         (findvar.o): Update dependencies.
6047         (frame.o): Update dependencies.
6048         (std-regs.o): Update dependencies.
6049
6050 2003-07-06  Christopher Faylor  <cgf@redhat.com>
6051
6052         * win32-nat.c (solib_symbols_add): Use one variable for all section
6053         address stuff.  Pass variable rather than address of variable to
6054         safe_symbol_file_add.
6055
6056 2003-07-06  Andreas Schwab  <schwab@suse.de>
6057
6058         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
6059
6060 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
6061
6062         * rs6000-nat.c (vmap_symtab): Fix compilation error.
6063
6064 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
6065
6066         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
6067
6068 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
6069
6070         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
6071         * config/i386/nto.mh: New file.
6072         * config/i386/nm-nto.h: New file.
6073         * configure.host: Add i[3456]86-*-nto*.
6074
6075 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
6076
6077         * remote-vx.c (vx_add_symbols): Fix compilation error.
6078
6079 2003-07-03  Andrew Cagney  <cagney@redhat.com>
6080
6081         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6082         * gdbarch.h, gdbarch.c: Re-generate.
6083         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6084         (legacy_register_name): Declare.
6085         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6086         (REGISTER_NAME): Define.
6087         * sparc-tdep.c (legacy_register_name): New function.
6088         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6089         (REGISTER_NAME): Define.
6090         (hppa64_register_name): Declare.
6091         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6092         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6093         (hppa64_register_name): New function.
6094         (hppa_register_name): New function.
6095         * arch-utils.c (legacy_register_name): Delete.
6096         * arch-utils.h (legacy_register_name): Delete.
6097
6098 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
6099
6100         * cli/cli-interp.c (cli_interpreter_resume): Update the
6101         cli_uiout's stream to gdb_stdout.
6102
6103 2003-07-03  Andrew Cagney  <cagney@redhat.com>
6104
6105         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6106         predicate.
6107         * gdbarch.h, gdbarch.c: Re-generate.
6108         * regcache.c (init_regcache_descr): Use legacy code when either
6109         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6110
6111 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
6112
6113         * NEWS: Move "set logging" entry into GDB 6.0 section.
6114
6115 2003-07-02  Jim Blandy  <jimb@redhat.com>
6116
6117         * s390-tdep.c (struct frame_extra_info): new member:
6118         'stack_bought_valid'.
6119         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6120         initialize fextra_info->stack_bought.
6121         (s390_frameless_function_invocation): Don't trust the value of
6122         fextra_info_ptr->stack_bought unless
6123         fextra_info->stack_bought_valid is set.
6124
6125         New S390 prologue analyzer.
6126         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6127         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6128         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6129         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6130         compute_x_addr, s390_on_stack, s390_store,
6131         s390_get_signal_frame_info): New functions.
6132         (S390_NUM_SPILL_SLOTS): New macro.
6133         (s390_get_frame_info): Rewritten.
6134         (is_arg_reg): Deleted.
6135
6136         Break out the decoding of S/390 instructions into separate
6137         functions, to make it more legible, and easier to check
6138         against the spec.
6139         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6140         is_rx, is_rxe): New functions.
6141         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6142         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6143         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6144         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6145         enums for opcode values.  (Is this an improvement?)
6146
6147 2003-07-02  Andrew Cagney  <cagney@redhat.com>
6148
6149         * i386-tdep.c: Revert change committed as part of trad-frame code
6150         below.
6151
6152 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
6153
6154         * breakpoint.c (insert_catchpoint): Make static.
6155
6156 2003-07-02  Andreas Schwab  <schwab@suse.de>
6157
6158         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6159         former ia64_push_arguments and ia64_push_return_address, and use
6160         regcache functions instead of read/write_register.
6161         (ia64_gdbarch_init): Set push_dummy_call instead of
6162         deprecated_push_arguments and deprecated_push_return_address.
6163
6164 2003-07-01  Andreas Jaeger  <aj@suse.de>
6165
6166         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6167         before the call.
6168         Set %rax only to number of SSE registers used.
6169
6170 2003-07-01  Andrew Cagney  <cagney@redhat.com>
6171
6172         * trad-frame.h: Update comments, a -1 .addr is reserved.
6173         (trad_frame_value_p, trad_frame_addr_p): Declare.
6174         (trad_frame_reg_p): Declare.
6175         (trad_frame_set_value): Rename trad_frame_register_value.
6176         (trad_frame_set_unknown): Declare.
6177         * trad-frame.c (trad_frame_realreg_p): New function.
6178         (trad_frame_addr_p, trad_frame_value_p): New function.
6179         (trad_frame_set_unknown): New function.
6180         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6181         (trad_frame_prev_register): Use trad_frame_realreg_p,
6182         trad_frame_addr_p and trad_frame_value_p.
6183         (trad_frame_set_value): Rename trad_frame_register_value.
6184         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6185         and trad_frame_set_value.
6186
6187 2003-06-30  Jim Blandy  <jimb@redhat.com>
6188
6189         Patch from IBM (authors unspecified, probably Ulrich Weigand and
6190         Gerhard Tonn) for argument passing on the S/390 and S/390x:
6191         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6192         for 16 registers, and then 32 more bytes.
6193         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6194         New macros.
6195         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6196         Move up in the file, since it's now used by is_simple_arg.
6197         (is_simple_arg): Don't assume registers are four bytes long.
6198         Exclude all double arguments.  Extended floats are not simple
6199         args.
6200         (is_power_of_two): New function.
6201         (pass_by_copy_ref): Call is_power_of_two, and check that the
6202         length fits in a register, rather than listing all the acceptable
6203         sizes.  Extended floats are not passed by reference.
6204         (s390_push_arguments): Don't assume registers are four bytes long.
6205         Reserve an argument register to point to the buffer for structures
6206         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
6207         S390_STACK_FRAME_OVERHEAD.
6208
6209 2003-06-30  Andreas Schwab  <schwab@suse.de>
6210
6211         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6212         format error message.
6213
6214 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
6215
6216         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6217
6218 2003-06-30  David Carlton  <carlton@kealia.com>
6219
6220         Band-aid for PR c++/1245.
6221         * Makefile.in (cp-support.o): Depend on complaints_h.
6222         * cp-support.c: Include complaints.h.  Add declaration for
6223         find_last_component.
6224         (cp_find_first_component): Separate code into
6225         cp_find_first_component_aux.
6226         (cp_find_first_component_aux): Call demangled_name_complaint.
6227         (demangled_name_complaint): New.
6228
6229 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6230
6231         * remote.c (remote_write_bytes): Explicitly compute and then use
6232         the payload size.  Update comments to reflect.  Fixes problem of
6233         GDB not sending small packets as found by Fred Fish.
6234
6235 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6236
6237         * remote.c (remote_async_wait): Fix -Wformat problem.
6238
6239 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6240
6241         * remote.c (remote_wait): Call error, and not warning, when the
6242         packet is corrupt.
6243         (remote_async_wait): Ditto.
6244
6245 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6246
6247         * sparc-tdep.c (sparc_y_regnum): Make external again.
6248
6249 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6250
6251         * cli/cli-logging.c (pop_output_files): Add void to function
6252         definition.
6253
6254 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6255
6256         * frame.c (frame_register_unwind): Use unsigned char when dumping
6257         the buffer contents.
6258
6259 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
6260
6261         * cli/cli-logging.c: New file.
6262         * cli-out.c (struct ui_out_data): Add original_stream.
6263         (cli_redirect): New function.
6264         (cli_ui_out_impl): Add cli_redirect.
6265         (cli_out_new): Initialize original_stream.
6266         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6267         (uo_redirect, ui_out_redirect): New.
6268         * ui-out.h (struct ui_out_impl): Add redirect member.
6269         (redirect_ftype): New.
6270         (ui_out_redirect): Add prototype.
6271         * Makefile.in: Add rules for cli-logging.c.
6272         * NEWS: Mention "set logging".
6273
6274 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6275
6276         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6277
6278 2003-06-27  Andrew Cagney  <cagney@redhat.com>
6279
6280         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6281         (m68hc11_gdbarch_init): Do not set call_dummy_address.
6282         * avr-tdep.c (avr_call_dummy_address): Delete function.
6283         (avr_gdbarch_init): Do not set call_dummy_address.
6284
6285 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6286
6287         * symfile.c (syms_from_objfile): Move variables to inner block.
6288         Move the checks for the non-mainline case a bit earlier to avoid
6289         doing some useless computations.
6290
6291 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6292
6293         * dwarfread.c (decode_modified_type): Gag new compiler warning.
6294
6295 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
6296
6297         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6298         sections.
6299
6300 2003-06-26  Michael Chastain  <mec@shout.net>
6301
6302         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6303         gdb/testsuite/gdb.c++/pr-1210.exp.
6304
6305 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6306
6307         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6308         altivec_expression.h and altivec_registers.h.
6309
6310 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6311
6312         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6313         info->mach when MIPS16.  Patch suggested by Fred Fish.
6314
6315 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6316
6317         * utils.c (internal_vproblem): Print the problem to a reason
6318         buffer and then pass to query.  Make the msg variable more local.
6319
6320 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6321
6322         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
6323         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
6324         * gdbarch.h, gdbarch.c: Re-generate.
6325         * frame-base.c (default_frame_args_address): Update.  Use
6326         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6327         not available.
6328         (default_frame_locals_address): Ditto for
6329         DEPRECATED_FRAME_LOCALS_ADDRESS.
6330         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6331         (vax_frame_num_args): Update.
6332         (vax_gdbarch_init): Update.
6333         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6334         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6335         * mcore-tdep.c (mcore_gdbarch_init): Update.
6336         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6337         * ia64-tdep.c (ia64_gdbarch_init): Update.
6338         * symtab.h (address_class): Update comments.
6339         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6340         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6341         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6342         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6343         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6344         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6345         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6346         * alpha-mdebug-tdep.c: Update.
6347         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6348
6349 2003-06-26  Andreas Jaeger  <aj@suse.de>
6350
6351         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6352         of SSE registers so that varargs functions work.  Rework handling
6353         of passing arguments on the stack.
6354         (x86_64_store_return_value): Return double and float values in SSE
6355         register.
6356
6357 2003-06-24  Michael Chastain  <mec@shout.net>
6358
6359         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6360         the "constructor breakpoints ignored" bug.
6361
6362 2003-06-25  David Carlton  <carlton@kealia.com>
6363
6364         * MAINTAINERS: Update e-mail address.
6365
6366 2003-06-24  Jim Blandy  <jimb@redhat.com>
6367
6368         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6369
6370         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6371         function.
6372         (ppc_linux_init_abi): Register it as the
6373         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6374
6375         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6376         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6377         method.
6378
6379         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6380         (ppc64_standard_linkage_target): Use it.
6381
6382 2003-06-23  Andrew Cagney  <cagney@redhat.com>
6383
6384         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6385         for 0 "int0" and 4 "int32" sized registers.
6386         * gdbtypes.c (builtin_type_int0): Define.
6387         (build_gdbtypes): Initialize builtin_type_int0.
6388         * gdbtypes.h (builtin_type_int0): Declare.
6389
6390 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
6391
6392         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6393         as characters are unsigned.
6394
6395 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6396
6397         PR gdb/1179
6398         * dwarfread.c (struct_type): Skip static fields without crashing.
6399
6400 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6401
6402         GDB 6.0 branch created.
6403         * README: Update.
6404         * PROBLEMS: Update.  Empty.
6405         * NEWS: Update.
6406
6407 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6408
6409         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6410         Suggested by Nick Hibma <n_hibma@webweaving.org>.
6411
6412 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6413
6414         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6415         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
6416         Velikov.
6417
6418 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6419
6420         * cli/cli-cmds.c (shell_escape): Silence warnings from old
6421         compilers.
6422
6423 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6424
6425         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6426         argument of val_print.
6427         * cp-valprint.c (cp_print_value): Don't add the offset parameter
6428         to the address argument of baseclass_offset or target_read_memory.
6429         Do add it to the argument of cp_print_value_fields.
6430
6431 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6432
6433         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6434         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6435         instead of 0..NUM_REGS.
6436         (mips_register_reggroup_p): New function.
6437         (mips_pseudo_register_write): New function.
6438         (mips_pseudo_register_read): New function.
6439         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6440         based on the register's type.
6441         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
6442         cooked.
6443         (mips_get_saved_register): Simplify.  Assert that REGNO is a
6444         pseudo / cooked.
6445         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
6446         (mips_register_type): Replace mips_register_virtual_type.  Map
6447         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
6448         when available.
6449         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
6450         that the register is cooked / virtual.
6451         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6452         Only get the extra info when needed.
6453         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6454         (mips32_heuristic_proc_desc): Fetch the cooked register.
6455         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6456         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6457         (mips_print_register): Use gdbarch_register_type, instead of
6458         REGISTER_VIRTUAL_TYPE.
6459         (print_gp_register_row): Use gdbarch_register_type, instead of
6460         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
6461         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6462         Print the pseudo / cooked registers.
6463         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6464         Print the pseudo / cooked registers.
6465         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
6466         REG_NUM is pseudo / cooked.
6467         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6468         (mips_n32n64_xfer_return_value): Ditto.
6469         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6470         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6471         (mips_register_sim_regno): New function.
6472         (mips_gdbarch_init): Set deprecated_register_byte,
6473         register_group_p, pseudo_register_write, pseudo_register_read,
6474         register_sim_regno, and num_pseudo_regs.  Set register_type,
6475         instead of register_virtual_type.
6476         * Makefile.in (mips-tdep.o): Update dependencies.
6477         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6478         REGISTER_VIRTUAL_TYPE.
6479         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6480         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6481         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6482         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6483         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6484
6485 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6486
6487         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6488         * cli/cli-cmds.c: Include "gdb_vfork.h".
6489         (shell_escape): Use vfork.
6490
6491 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6492
6493         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6494         32 bit floating-point register saves.
6495
6496         * frame.h (deprecated_unwind_get_saved_register): Delete.
6497         * frame.c (deprecated_unwind_get_saved_register): Delete function.
6498         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6499         and deprecated_get_next_frame_hack instead of
6500         deprecated_unwind_get_saved_register.
6501
6502         * mips-tdep.c (mips_dump_tdep): Do not print
6503         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6504
6505         * frame.c (get_frame_register): New function.
6506         (frame_unwind_register_signed): New function.
6507         (get_frame_register_signed): New function.
6508         (frame_unwind_register_unsigned): New function.
6509         (get_frame_register_unsigned): New function.
6510         * frame.h: Add comments on naming schema.
6511         (get_frame_register, frame_unwind_register_signed): Declare.
6512         (get_frame_register_signed, get_frame_register_signed): Declare.
6513         (frame_unwind_register_unsigned): Declare.
6514         (get_frame_register_unsigned): Declare.
6515
6516 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6517
6518         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6519
6520 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6521
6522         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6523         (avr_read_sp): Ditto.
6524
6525 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
6526
6527         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6528         * config/arm/nm-linux.h: Likewise.
6529         * config/arm/tm-linux.h: Likewise.
6530         * config/ia64/nm-linux.h: Likewise.
6531         * config/ia64/tm-ia64.h: Likewise.
6532         * config/s390/tm-linux.h: Likewise.
6533         * config/s390/tm-s390.h: Likewise.
6534         * s390-nat.c: Likewise.
6535         * s390-tdep.c: Likewise.
6536
6537         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6538         * config/ia64/linux.mt: Likewise.
6539         * config/m68k/linux.mh: Likewise.
6540         * config/mips/linux.mt: Likewise.
6541         * config/powerpc/linux.mh: Likewise.
6542         * config/sh/linux.mt: Likewise.
6543
6544 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
6545
6546         * solib.c (solib_open): Change tests for whether to search
6547         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
6548         comments.
6549
6550 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6551
6552         * avr-tdep.c (avr_frame_address): Delete function.
6553         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6554         set_gdbarch_frame_args_address.
6555
6556 2003-06-19  Andrew Cagney  <cagney@redhat.com>
6557
6558         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6559         (REGISTER_CONVERT_FROM_TYPE): Delete.
6560         (mips_register_convert_to_type): Delete declaration.
6561         (mips_register_convert_from_type): Delete declaration.
6562         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
6563         kernel/.
6564
6565 2003-06-19  Michael Snyder  <msnyder@redhat.com>
6566
6567         * linux-nat.h: New file.
6568         * linux-nat.c: Include linux-nat.h.
6569         * lin-lwp.c: Include linux-nat.h.
6570         Move struct lwp_info def to linux-nat.h.
6571         * linux-proc.c: Include linux-nat.h.
6572         (linux_make_note_section): Iterate over lwps instead of threads.
6573         (linux_do_thread_registers): Use lwp instead of merged pid.
6574         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6575         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6576         Add dependency on linux_nat_h.
6577
6578 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6579
6580         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6581
6582 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6583
6584         * varobj.c (get_type, get_target_type): Use check_typedef.
6585
6586 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6587
6588         * breakpoint.c (insert_catchpoint): Call internal_error.
6589
6590 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6591
6592         * avr-tdep.c (avr_push_dummy_code): Delete function.
6593         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6594
6595 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6596
6597         * arch-utils.c (default_prepare_to_proceed): Remove.
6598         (generic_prepare_to_proceed): Remove.
6599         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6600         (generic_prepare_to_proceed): Remove prototype.
6601         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6602         * gdbarch.c: Regenerate.
6603         * gdbarch.h: Regenerate.
6604         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6605         * hppah-nat.c (hppa_switched_threads): Remove.
6606         * infrun.c (prepare_to_proceed): New static function, copied from
6607         generic_prepare_to_proceed.  Remove select_it argument.
6608         (proceed): Call prepare_to_proceed.
6609         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6610         variables.
6611         (ptrace_wait): Don't set the removed variables.
6612         (hppa_switched_threads): Remove.
6613         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6614         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6615         (lin_lwp_prepare_to_proceed): Remove prototype.
6616         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6617         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6618
6619 2003-06-18  Theodore A. Roth  <troth@openavr.org>
6620
6621         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6622         trad-frame.h.
6623         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6624         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6625         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6626         (AVR_PROLOGUE_*): Enumerate prologue types.
6627         (struct frame_extra_info): Remove.
6628         (struct avr_unwind_cache): Define.
6629         (avr_write_sp): Delete function.
6630         (avr_read_fp): Ditto.
6631         (avr_init_extra_frame_info): Ditto.
6632         (avr_pop_frame): Ditto.
6633         (avr_frame_saved_pc): Ditto.
6634         (avr_saved_pc_after_call): Ditto.
6635         (avr_push_return_address): Ditto.
6636         (avr_frame_chain): Ditto.
6637         (avr_store_struct_return): Ditto.
6638         (avr_push_arguments): Ditto.
6639         (avr_scan_prologue): Update comments. Changed to set up the info for
6640         cache unwinding. Now returns end of prologue PC.
6641         (avr_skip_prologue): Better handling of functions lacking a prologue
6642         by using avr_scan_prologue.
6643         (avr_scan_arg_moves): New function.
6644         (avr_saved_regs_unwinder): Ditto.
6645         (avr_frame_unwind_cache): Ditto.
6646         (avr_unwind_pc): Ditto.
6647         (avr_frame_this_id): Ditto.
6648         (avr_frame_prev_register): Ditto.
6649         (avr_frame_p): Ditto.
6650         (avr_frame_base_address ): Ditto.
6651         (avr_unwind_dummy_id): Ditto.
6652         (avr_push_dummy_code): Ditto.
6653         (push_stack_item): Ditto.
6654         (pop_stack_item): Ditto.
6655         (avr_push_dummy_call): Ditto.
6656         (struct stack_item): Define.
6657         (avr_frame_unwind): Declare structure.
6658         (avr_frame_base): Ditto.
6659         (avr_gdbarch_init): Remove calls to
6660         set_gdbarch_deprecated_init_frame_pc,
6661         set_gdbarch_deprecated_target_read_fp,
6662         set_gdbarch_deprecated_dummy_write_sp,
6663         set_gdbarch_deprecated_fp_regnum,
6664         set_gdbarch_deprecated_push_arguments,
6665         set_gdbarch_deprecated_push_return_address,
6666         set_gdbarch_deprecated_pop_frame,
6667         set_gdbarch_deprecated_store_struct_return,
6668         set_gdbarch_deprecated_frame_init_saved_regs,
6669         set_gdbarch_deprecated_init_extra_frame_info,
6670         set_gdbarch_deprecated_frame_chain,
6671         set_gdbarch_deprecated_frame_saved_pc,
6672         set_gdbarch_deprecated_saved_pc_after_call.
6673         Add calls to set_gdbarch_push_dummy_call,
6674         set_gdbarch_push_dummy_code,
6675         frame_unwind_append_predicate,
6676         frame_base_set_default,
6677         set_gdbarch_unwind_dummy_id,
6678         set_gdbarch_unwind_pc.
6679         Wrap a long line.
6680
6681 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
6682
6683         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6684         registers for H8/300S.
6685         (h8300_print_registers_info): Ditto.
6686         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6687
6688 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
6689
6690         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6691         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6692         (lin_lwp_wait): Likewise.  Update comments.
6693         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6694         (pull_pid_from_list, linux_record_stopped_pid): New.
6695
6696 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6697
6698         * ada-lang.c (scan_discrim_bound): Name first argument.
6699         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6700         declared by ALL_BLOCK_SYMBOLS.
6701
6702 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6703
6704         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6705         ("regcache.h"): Include it.
6706         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6707
6708 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6709
6710         * NEWS: Mention gdbserver detach change and "disconnect" command.
6711         * infcmd.c (disconnect_command): New function.
6712         (_initialize_infcmd): Add ``disconnect'' command.
6713         * remote.c (remote_async_detach): Delete.
6714         (remote_detach): Merge remote_async_detach.
6715         (remote_disconnect): New.
6716         (init_remote_ops): Set to_disconnect.
6717         (init_remote_cisco_ops): Likewise.
6718         (init_remote_async_ops): Likewise.  Use remote_detach.
6719         * target.c (cleanup_target): Default to_disconnect.
6720         (update_current_target): Inherit to_disconnect.
6721         (target_disconnect, debug_to_disconnect): New functions.
6722         (setup_target_debug): Set to_disconnect.
6723         * target.h (struct target_ops): Add to_disconnect.
6724         (target_disconnect): Add prototype.
6725
6726 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6727
6728         * breakpoint.c (insert_catchpoint): New function.
6729         (insert_breakpoints): Use catch_exceptions to call
6730         insert_catchpoint.  Disable catchpoints if they fail to insert.
6731
6732 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6733
6734         * symfile.c (reread_symbols): Clear sym_private.
6735
6736 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6737
6738         * trad-frame.h (struct frame_info): Add opaque declaration.
6739         * remote-fileio.h (struct cmd_list_element): Add opaque
6740         declaration.
6741         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6742         comments.
6743
6744 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6745
6746         * remote.c (remote_prepare_to_store): Replace call to
6747         deprecated_read_register_bytes with multiple regcache_raw_read
6748         calls.
6749
6750 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6751
6752         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6753         (nto_find_and_open_solib): Likewise.
6754         (nto_init_solib_absolute_prefix): Likewise.
6755         (_initialize_nto_tdep): Fix indentation.
6756
6757 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6758
6759         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6760
6761 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6762
6763         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6764
6765 2003-06-17  Jim Blandy  <jimb@redhat.com>
6766
6767         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6768
6769 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6770
6771         * avr-tdep.c (avr_extract_return_value): New function.
6772         (avr_gdbarch_init): Set extract_return_value method.
6773
6774 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6775
6776         * frame.h (deprecated_get_next_frame_hack): Declare.
6777         * frame.c (legacy_saved_regs_prev_register): Only require
6778         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6779         there are always saved regs.
6780         (deprecated_generic_get_saved_register): Do not require
6781         DEPRECATED_FRAME_INIT_SAVED_REGS.
6782         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6783         use frame ID unwind instead.
6784         (deprecated_get_next_frame_hack): New function.
6785
6786 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6787
6788         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6789         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6790         (h8300_push_return_address): Remove.
6791         (h8300_gdbarch_init): Remove calls to
6792         set_gdbarch_deprecated_dummy_write_sp,
6793         set_gdbarch_deprecated_push_arguments and
6794         set_gdbarch_deprecated_push_return_address.
6795         Add call to set_gdbarch_push_dummy_call.
6796
6797 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6798
6799         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6800         (E_PSEUDO_EXR_REGNUM): Ditto.
6801         (h8300_is_argument_spill): Check for instructions moving argument
6802         registers into safe registers.
6803         (h8300_skip_prologue): Check for stm instruction to push registers
6804         used for register variables onto stack.
6805         (gdb_print_insn_h8300): Remove.
6806         (h8300_examine_prologue): Add a comment.
6807         (h8300_register_name): Take pseudo registers into account.
6808         (h8300s_register_name): Ditto.
6809         (h8300sx_register_name): Ditto.
6810         (h8300_print_register): Ditto.
6811         (h8300_print_registers_info): Define "nice" printing order.
6812         (h8300_saved_pc_after_call): Take pseudo registers into account.
6813         (h8300_register_type): Ditto.  Return type used for remote connection
6814         when requesting real CCR or EXR register, return actual type when
6815         requesting pseudo CCR or EXR.
6816         (h8300_pseudo_register_read): New function.
6817         (h8300_pseudo_register_write): Ditto.
6818         (h8300_dbg_reg_to_regnum): Ditto.
6819         (h8300s_dbg_reg_to_regnum): Ditto.
6820         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6821         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6822         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6823         set_gdbarch_print_insn architecture dependent.
6824         Call set_gdbarch_pseudo_register_read and
6825         set_gdbarch_pseudo_register_write.
6826         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6827
6828 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6829
6830         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6831         * gdbarch.h, gdbarch.c: Re-generate.
6832         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6833         * s390-tdep.c (s390_gdbarch_init): Update.
6834         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6835         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6836         * mips-tdep.c (mips_gdbarch_init): Update.
6837         * mcore-tdep.c (mcore_gdbarch_init): Update.
6838         * cris-tdep.c (cris_gdbarch_init): Update.
6839         * infcall.c (call_function_by_hand): Update.
6840         * ia64-tdep.c (ia64_push_arguments): Update comment.
6841         * frame.c (legacy_get_prev_frame): Do not assume
6842         SAVE_DUMMY_FRAME_TOS_P.
6843         * dummy-frame.c (find_dummy_frame): Update comment.
6844
6845 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6846
6847         * regcache.c (do_cooked_read): Do not use register_valid_p.
6848
6849 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6850
6851         * avr-tdep.c (avr_register_type): Remove a blank line.
6852         (avr_scan_prologue): Correct some comments.
6853
6854 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6855
6856         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6857         prologue types.
6858         Properly scan prologues generated by gcc with the -mcall-prologues
6859         option.
6860         Add code to scan -mcall-prologues for mega devices.
6861
6862 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6863
6864         * avr-tdep.c (avr_register_byte): Delete function.
6865         (avr_register_raw_size): Delete function.
6866         (avr_register_virtual_size): Delete function.
6867         (avr_register_virtual_type): Delete function.
6868         (avr_register_type): New function.
6869         (avr_address_to_pointer): Remove unused code.
6870         (avr_read_fp): Need to read FP as two separate bytes due to change to
6871         avr_register_type() usage.
6872         (avr_gdbarch_init): Don't set deprecated_register_size.
6873         Don't set deprecated_register_bytes.
6874         Don't set deprecated_register_byte.
6875         Don't set deprecated_register_raw_size.
6876         Don't set deprecated_max_register_raw_size.
6877         Don't set deprecated_register_virtual_size.
6878         Don't set deprecated_max_register_virtual_size.
6879         Don't set deprecated_register_virtual_type.
6880         Set register_type method.
6881
6882 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6883
6884         * Makefile.in (linux-nat.o): Add rule.
6885         * linux-nat.c: New file.
6886         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6887         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6888         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6889         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6890         * config/arm/linux.mh (NATDEPFILES): Likewise.
6891         * config/i386/linux.mh (NATDEPFILES): Likewise.
6892         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6893         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6894         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6895         * config/mips/linux.mh (NATDEPFILES): Likewise.
6896         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6897         * config/s390/s390.mh (NATDEPFILES): Likewise.
6898         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6899
6900 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6901
6902         * i387-tdep.c: Reorder includes, fix some whitespace issues and
6903         replace out-of-date comment.
6904
6905 2003-06-15  Andrew Cagney  <cagney@redhat.com>
6906
6907         * rdi-share/host.h (Fail): Change to a varargs function.
6908         * remote-rdi.c (Fail): Update.
6909
6910 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6911
6912         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6913         (i386_convert_register_p, i386_register_to_value,
6914         i386_register_from_value): Handle types longer than 8 bytes.
6915
6916 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
6917
6918         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6919         Move floating-point code to new function in i387-tdep.c.
6920         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6921         New functions containing code moved here from i386-tdep.c.
6922         * i387-tdep.h: Add opaque declaration for `struct type'.
6923         (i387_register_to_value, i387_value_to_register): New prototypes.
6924         * x86-64-tdep.c (x86_64_convert_register_p): New function.
6925         (x86_64_init_abi): Set convert_register_p, register_to_value and
6926         value_to_register here.
6927
6928 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6929
6930         * mips-tdep.c (mips_register_to_value): Make static.
6931         (mips_value_to_register): Make static.
6932         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6933         * ia64-tdep.c (ia64_register_raw_size): Make static.
6934         (ia64_register_virtual_size): Make static.
6935         (ia64_register_byte): Make static.
6936         * i387-tdep.c: Include "i387-tdep.h".
6937         (print_387_control_word): Delete function.
6938         (print_387_status_word): Delete function.
6939         (print_387_status_bits): Delete function.
6940         (print_387_control_bits): Delete function.
6941         * Makefile.in (i387-tdep.o): Update dependencies.
6942         * rdi-share/host.h (Fail): Declare.
6943         * remote-rdi.c (Fail): Update to match declaration.
6944
6945 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6946
6947         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6948         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6949         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6950         * config/djgpp/fnchange.lst: Delete "remote-array.c".
6951         * README: Delete reference to remote-array.
6952         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6953         (remote-array.o): Delete target.
6954         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6955         * remote-array.c: Delete file.
6956
6957 2003-06-14  Andrew Cagney  <cagney@redhat.com>
6958             Mark Kettenis  <kettenis@gnu.org>
6959
6960         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6961         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6962         parameter with "frame".
6963         * gdbarch.h, gdbarch.c: Re-generate.
6964         * frame.h (put_frame_register): Declare.
6965         * frame.c (put_frame_register): New function.
6966         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6967         (legacy_register_to_value): Rewrite, use "frame" to get the
6968         register value.
6969         (legacy_value_to_register): Rewrite, use "frame" to find the
6970         register's location before storing.
6971         * arch-utils.h (legacy_convert_register_p): Update.
6972         (legacy_register_to_value, legacy_value_to_register): Update.
6973         * findvar.c (value_from_register): Rewrite, eliminate use of
6974         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6975         "frame" to REGISTER_TO_VALUE.
6976         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6977         lval_reg_frame_relative + lval_register branch of the switch.  Do
6978         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
6979         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6980         I386_EDI_REGNUM): New defines.
6981         (i386_next_regnum, i386_convert_register_p,
6982         i386_register_to_value, i386_value_to_register): New functions.
6983         (i386_register_convertible, i386_register_convert_to_virtual,
6984         i386_convert_to_raw): Remove functions.
6985         (i386_gdbarch_init): Set convert_register_p, register_to_value and
6986         value_to_register instead of register_convertible,
6987         register_convert_to_virtual and register_convert_to_raw.
6988         * mips-tdep.c (mips_convert_register_p): New function.
6989         (mips_value_to_register): Replace mips_register_convert_from_type.
6990         (mips_register_to_value): Replace mips_register_convert_to_type.
6991         (mips_gdbarch_init): Set conver_register_p, value_to_register and
6992         register_to_value.
6993         * alpha-tdep.c (alpha_convert_register_p): Update.
6994         (alpha_value_to_register): Update, store the register.
6995         (alpha_register_to_value): Update, fetch the register.
6996
6997 2003-06-14  Theodore A. Roth  <troth@openavr.org>
6998
6999         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
7000         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
7001         Don't set deprecated_call_dummy_words.
7002         Remove commented out set_gdbarch_believe_pcc_promotion() call.
7003         Don't set remote_translate_xfer_address.
7004         (avr_io_reg_read_command): Remove commented out debug printf.
7005         Wrap a long line.
7006
7007 2003-06-14  Theodore A. Roth  <troth@openavr.org>
7008
7009         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
7010         causes gdb to seg fault.
7011
7012 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
7013
7014         * sparc-nat.c (fetch_inferior_registers): Correct
7015         a reference to "registers".
7016
7017 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
7018
7019         * Makefile.in (exc_request_U_h): Define
7020         (exc_request_S_h): Likewise.
7021         (msg_reply_S_h): Likewise.
7022         (msg_U_h): Likewise.
7023         (notify_S_h): Likewise.
7024         (process_reply_S_h): Likewise.
7025         (gnu-nat.o): Depend on gdb_obstack_h
7026         * gnu-nat.c: Include "gdb_obstack.h".
7027
7028 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7029
7030         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
7031         * gdbarch.h, gdbarch.c: Re-generate.
7032
7033 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7034
7035         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
7036         when deprecated REGISTER macros can be deleted.
7037         * gdbarch.h, gdbarch.c: Re-generate.
7038
7039 2003-06-13  Jim Blandy  <jimb@redhat.com>
7040
7041         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
7042         Linux entry point symbols for _dl_debug_state, too.
7043
7044 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7045
7046         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
7047         available, do not use the FP register, and always save the TOS.
7048         * dummy-frame.c (dummy_frame_this_id): Do not assert
7049         SAVE_DUMMY_FRAME_TOS.
7050         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
7051         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
7052         (i386_push_dummy_call): Add 8 to the returned SP.
7053         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
7054         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
7055         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
7056         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
7057         (x86_64_push_dummy_call): Return "sp + 16".
7058         (x86_64_init_abi): Do not set save_dummy_frame_tos.
7059         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7060         save_dummy_frame_tos.
7061
7062 2003-06-13  Jim Blandy  <jimb@redhat.com>
7063
7064         * frv-tdep.c (frv_use_struct_convention): Delete static
7065         declaration for function deleted in my change of 2003-06-12.
7066
7067 2003-06-13  Theodore A. Roth  <troth@openavr.org>
7068
7069         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
7070         (avr_pointer_to_address): Shift code addrs left 1 bit.
7071         (avr_convert_from_func_ptr_addr): Delete function since operation is
7072         better handled by avr_address_to_pointer and avr_pointer_to_address.
7073         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
7074
7075 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
7076
7077         From Kelley Cook  <kelleycook@wideopenwest.com>:
7078         * configure.host: Accept i[34567]86 variants.
7079         * configure.tgt: Likewise.
7080         * nlm/configure.in: Likewise.
7081         * nlm/configure: Regenerated.
7082
7083 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
7084
7085         * arm-tdep.c (solib-svr4.h): Dont' include it.
7086         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7087         * arm-linux-tdep.c: ... here.  Make static.
7088         (arm_linux_init_abi): Register it.
7089         (solib-svr4.h): Include it.
7090         * Makefile.in: Update dependencies.
7091         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7092         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7093
7094 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
7095
7096         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7097         indicate registers used for return values.
7098         (struct frame_extra_info): Drop args_pointer and locals_pointer.
7099         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7100         members.
7101         (h8300_init_extra_frame_info): Ditto.
7102         (h8300_frame_locals_address): Removed.
7103         (h8300_frame_args_address): Removed.
7104         (h8300_extract_return_value): Use new regcache structure. Only care
7105         for 16 bit CPUs.
7106         (h8300h_extract_return_value): Same function for 32 bit CPUs.
7107         (h8300_store_return_value): Use new regcache structure. Only care
7108         for 16 bit CPUs.
7109         (h8300h_store_return_value): Same function for 32 bit CPUs.
7110         (h8300_store_struct_return): Removed.
7111         (h8300_extract_struct_value_address): Use new regcache structure.
7112         (h8300h_extract_struct_value_address): Removed.
7113         (h8300_push_dummy_code): New function.
7114         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7115         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
7116         set_gdbarch_store_return_value architecture dependent.
7117         Call set_gdbarch_push_dummy_code and
7118         set_gdbarch_extract_struct_value_address.
7119         Remove calls to set_gdbarch_frame_args_address,
7120         set_gdbarch_frame_locals_address,
7121         set_gdbarch_deprecated_store_struct_return,
7122         set_gdbarch_deprecated_extract_return_value,
7123         set_gdbarch_deprecated_extract_struct_value_address,
7124         set_gdbarch_deprecated_call_dummy_words and
7125         set_gdbarch_deprecated_sizeof_call_dummy_words.
7126
7127 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
7128
7129         * h8300-tdep.c (h8300_register_byte): Remove.
7130         (h8300h_register_byte): Remove.
7131         (h8300_register_virtual_type): Remove.  Substitute by...
7132         (h8300_register_type): New function.
7133         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7134         (h8300h_extract_struct_value_address): Ditto.
7135         (h8300_gdbarch_init): Drop calls to
7136         set_gdbarch_deprecated_register_byte and
7137         set_gdbarch_deprecated_register_virtual_type.
7138         Add call to set_gdbarch_register_type.
7139
7140 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7141
7142         * gdbarch.sh: Update comments on registers.
7143         (deprecated_register_byte): Rename register_byte.
7144         (deprecated_register_raw_size): Rename register_raw_size.
7145         (deprecated_register_virtual_size): Rename register_virtual_size.
7146         (deprecated_register_virtual_type): Rename register_virtual_type.
7147         * gdbarch.h, gdbarch.c: Re-generate.
7148         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7149         * vax-tdep.c (vax_gdbarch_init): Update.
7150         * v850-tdep.c (v850_gdbarch_init): Update.
7151         * sparc-tdep.c (sparc_gdbarch_init): Update.
7152         * sh-tdep.c (sh_gdbarch_init): Update.
7153         * s390-tdep.c (s390_gdbarch_init): Update.
7154         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7155         * ns32k-tdep.c: Update.
7156         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7157         * mips-tdep.c (mips_gdbarch_init): Update.
7158         * mcore-tdep.c (mcore_gdbarch_init): Update.
7159         * m68k-tdep.c (m68k_gdbarch_init): Update.
7160         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7161         * ia64-tdep.c (ia64_gdbarch_init): Update.
7162         * hppa-tdep.c (hppa_gdbarch_init): Update.
7163         * h8300-tdep.c (h8300_gdbarch_init): Update.
7164         * frv-tdep.c (frv_gdbarch_init): Update.
7165         * cris-tdep.c (cris_gdbarch_init): Update.
7166         * avr-tdep.c (avr_gdbarch_init): Update.
7167         * alpha-tdep.c (alpha_gdbarch_init): Update.
7168         * arm-tdep.c (arm_gdbarch_init): Update.
7169
7170 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7171
7172         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7173         mips_o32_use_struct_convention with always_use_struct_convention.
7174
7175 2003-06-12  David Carlton  <carlton@kealia.com>
7176
7177         * cp-namespace.c (cp_set_block_scope): Comment out
7178         processing_has_namespace_info branch.
7179
7180 2003-06-12  Jim Blandy  <jimb@redhat.com>
7181
7182         Recognize and skip 64-bit PowerPC Linux linkage functions.
7183         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7184         insn_pattern, insns_match_pattern, d_field, ds_field): New
7185         functions, macros, and types for working with PPC instructions.
7186         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7187         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7188         ppc64_skip_trampoline_code): New functions, variables, and macros
7189         for recognizing and skipping linkage functions.
7190         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7191         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7192
7193         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7194         register offsets for both the 32- and 64-bit interfaces.
7195
7196         Actually finish the job started by my change of 2003-05-29.
7197         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7198         other #definition of this.
7199         (ppc_linux_skip_trampoline_code): Remove declaration.
7200         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7201         static.
7202         (ppc_linux_init_abi): Register it as the skip_trampoline_code
7203         method for GDBARCH.
7204
7205         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7206         'long' on ppc64-*-linux*.
7207
7208         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7209         isn't #defined, assume the register doesn't exist: act as if
7210         tdep->ppc_mq_regnum were -1.
7211
7212         * configure.host, configure.tgt: Add entries for
7213         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7214         powerpc/linux.mt.
7215         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7216         New files.
7217
7218         * arch-utils.c (always_use_struct_convention): New function.
7219         * arch-utils.h (always_use_struct_convention): New prototype.
7220         * alpha-tdep.c (alpha_use_struct_convention): Delete.
7221         (alpha_gdbarch_init): Register always_use_struct_convention,
7222         instead of alpha_use_struct_convention.
7223         * cris-tdep.c (cris_use_struct_convention): Delete.
7224         (cris_gdbarch_init): Register always_use_struct_convention,
7225         instead of cris_use_struct_convention.
7226         * frv-tdep.c (frv_use_struct_convention): Delete.
7227         (frv_gdbarch_init): Register always_use_struct_convention,
7228         instead of frv_use_struct_convention.
7229         * h8300-tdep.c (h8300_use_struct_convention): Delete.
7230         (h8300_gdbarch_init): Register always_use_struct_convention,
7231         instead of h8300_use_struct_convention.
7232         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
7233         (mips_o32_gdbarch_init): Register always_use_struct_convention,
7234         instead of mips_o32_use_struct_convention.
7235
7236 2003-06-12  Andrew Cagney  <cagney@redhat.com>
7237
7238         * wince.c: Include "mips-tdep.h".
7239         * mips-tdep.h (mips_next_pc): Declare.
7240         * mcore-tdep.c: Make more local functions static.
7241         * Makefile.in (wince.o): Update dependencies.
7242
7243 2003-06-12  David Carlton  <carlton@kealia.com>
7244
7245         * symtab.c (lookup_symbol_aux_minsyms): Replace
7246         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7247         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7248         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7249         SYMBOL_NATURAL_NAME.
7250
7251 2003-06-12  Andreas Schwab  <schwab@suse.de>
7252
7253         * Makefile.in (tuiDisassem.o): Update dependencies.
7254
7255 2003-06-12  David Carlton  <carlton@bactrian.org>
7256
7257         * symtab.h: Delete declaration of make_symbol_overload_list.
7258         Add declaration of lookup_partial_symbol.
7259         * symtab.c (remove_params): Move to cp-support.c.
7260         (overload_list_add_symbol, make_symbol_overload_list)
7261         (sym_return_val_size, sym_return_val_index): Ditto.
7262         (lookup_partial_symbol): Make extern.
7263         * cp-support.h: Add declaration of make_symbol_overload_list.
7264         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7265         symtab.h, and block.h.
7266         (remove_params): Move here from symtab.c.
7267         (overload_list_add_symbol, make_symbol_overload_list)
7268         (sym_return_val_size, sym_return_val_index): Ditto.
7269         * valops.c: Include cp-support.h.
7270         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7271         frame_h, and block_h.
7272         (valops.o): Depend on cp_support_h.
7273
7274 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
7275
7276         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7277         substitute by NUM_REGS throughout.
7278         (h8300_register_name): Only care for H8/300 and H8/300H registers.
7279         (h8300s_register_name): New function for H8S registers.
7280         (h8300sx_register_name): Ditto for H8SX registers.
7281         (h8300_print_register): Revise register printing, avoid depending
7282         on 32 bit long.
7283         (h8300_register_byte): Only care for H8/300 registers.
7284         (h8300h_register_byte): New function for any other architecture.
7285         (h8300_register_raw_size): Remove.
7286         (h8300_register_virtual_type): Revise to return actually useful
7287         type.
7288         (h8300_extract_struct_value_address): Only care for H8/300 registers.
7289         (h8300h_extract_struct_value_address): New function for any other
7290         architecture.
7291         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
7292         set_gdbarch_register_name, set_gdbarch_register_byte,
7293         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7294         Remove calls to set_gdbarch_deprecated_register_size,
7295         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7296         set_gdbarch_deprecated_max_register_raw_size,
7297         set_gdbarch_register_virtual_size and
7298         set_gdbarch_deprecated_max_register_virtual_size entirely.
7299         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7300         set_gdbarch_long_double_bit.
7301
7302 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7303
7304         * doublest.c (convert_doublest_to_floatformat): When dealing
7305         with the implied integer bit, only alter mant_bits if we are
7306         processing a full 32 bits of mantissa.
7307
7308 2003-06-11  David Carlton  <carlton@bactrian.org>
7309
7310         * dictionary.h: New.
7311         * dictionary.c: New.
7312         * block.h: Add opaque declaration for struct dictionary.
7313         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7314         'sym' members.
7315         (BLOCK_DICT): New macro.
7316         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7317         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7318         BLOCK_SHOULD_SORT.
7319         (ALL_BLOCK_SYMBOLS): Update definition.
7320         * Makefile.in (SFILES): Add dictionary.c.
7321         (dictionary_h): New.
7322         (COMMON_OBS): Add dictionary.o.
7323         (dictionary.o): New.
7324         (ada-lang.o): Depend on dictionary_h.
7325         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7326         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7327         (mi-cmd-stack.o): Ditto.
7328         (gdbtk-cmds.o): Update dependencies.
7329         (gdbtk-stack.o): Ditto.
7330         * ada-lang.c: Include dictionary.h.
7331         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7332         (fill_in_ada_prototype, debug_print_block): Ditto.
7333         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7334         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
7335         'is_sorted'.
7336         * mdebugread.c: Include dictionary.h.
7337         (struct parse_stack): Delete 'maxsyms' member.
7338         (parse_symbol): Update calls to new_block.  Delete calls to
7339         shrink_block.  Use dictionary methods.
7340         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7341         Update calls to new_symtab.  Don't maintain maxsyms data.
7342         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7343         (add_symbol): Just call dict_add_symbol.
7344         (new_symtab): Delete 'maxsyms' argument.
7345         (new_symtab): Update calls to new_block.
7346         (new_block): Delete 'maxsyms' argument; add 'function' argument.
7347         (shrink_block): Delete function.
7348         (fixup_sigtramp): Update call to new_block.  Add symbol via
7349         dict_add_symbol.
7350         * jv-lang.c: Include dictionary.h.
7351         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7352         appropriately.  Set class_symtab->free_func.  Make sure the
7353         blockvector is big enough to hold two blocks.
7354         (add_class_symtab_symbol): Use dictionary methods.
7355         (free_class_block): New function.
7356         (type_from_class): Replace explicit iteration by
7357         ALL_BLOCK_SYMBOLS.
7358         * symtab.h (struct symtab): Replace 'free_ptr' method by
7359         'free_func'.
7360         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7361         sort_symtab_syms.
7362         * dwarfread.c (psymtab_to_symtab_1): Delete call to
7363         sort_symtab_syms.
7364         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7365         Include dictionary.h.
7366         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7367         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7368         sort_symtab_syms.
7369         * objfiles.c: Include dictionary.h.
7370         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7371         * buildsym.c: Include dictionary.h.
7372         (finish_block): Use dictionary methods.
7373         (end_symtab): Set free_func to NULL, not free_ptr.
7374         * tracepoint.c: Include dictionary.h.
7375         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7376         (scope_info): Ditto.
7377         * stack.c: Include dictionary.h.
7378         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7379         (print_block_frame_labels, print_frame_arg_vars)
7380         (print_frame_args): Ditto.
7381         * symmisc.c (free_symtab_block): Use dictionary methods.
7382         (dump_symtab): Ditto.
7383         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7384         Include dictionary.h.
7385         * symfile.h: Delete declarations of sort_block_syms,
7386         sort_symtab_syms.
7387         * symfile.c (sort_block_syms): Delete.
7388         (sort_symtab_syms): Delete.
7389         * symtab.c: Include dictionary.h.
7390         (lookup_block_symbol): Use dictionary iterators.
7391         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7392         (search_symbols, make_symbol_completion_list): Ditto.
7393         (make_symbol_overload_list): Ditto.
7394         * valops.c (value_of_local): Use dict_empty.
7395         Include dictionary.h.
7396
7397 2003-06-11  J. Brobecker  <brobecker@gnat.com>
7398
7399         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7400
7401 2003-06-11  David Carlton  <carlton@bactrian.org>
7402
7403         * block.h (BLOCK_SHOULD_SORT): Delete.
7404         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7405         blocks.
7406         * ada-lang.c (ada_add_block_symbols): Ditto.
7407         * symfile.c (sort_block_syms): Delete.
7408         (sort_symtab_syms): Ditto.
7409         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7410         declarations.
7411         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7412         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7413         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7414         * dwarfread.c (psymtab_to_symtab_1): Ditto.
7415         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7416         * mdebugread.c (psymtab_to_symtab_1): Ditto.
7417         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7418
7419 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7420
7421         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7422         bits to 128.
7423
7424 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7425
7426         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7427         REGISTER_CONVERTIBLE.
7428         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7429         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7430         * gdbarch.h, gdbarch.c: Re-generate.
7431         * arch-utils.h (deprecated_register_convertible_not): Rename
7432         generic_register_convertible_not.
7433         * arch-utils.c (deprecated_register_convertible_not): Rename
7434         generic_register_convertible.
7435         (legacy_convert_register_p, legacy_register_to_value): Update.
7436         * sh-tdep.c (sh64_push_arguments): Update.
7437         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7438         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7439         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7440         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7441         * arch-utils.c (legacy_value_to_register): Update.
7442         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7443         (rs6000_register_convert_to_raw): Make parameter "from" const.
7444         * mips-tdep.c (mips_gdbarch_init): Update.
7445         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
7446         * infcmd.c (default_print_registers_info): Update.
7447         * ia64-tdep.c (ia64_gdbarch_init): Update.
7448         (ia64_register_convert_to_raw): Make parameter "from" const.
7449         * i386-tdep.c (i386_gdbarch_init): Update.
7450         (i386_register_convert_to_raw): Update.
7451
7452 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7453
7454         * remote-fileio.c: Include "remote-fileio.h".
7455         * Makefile.in (remote-fileio.o): Update dependencies.
7456         (remote_fileio_h): Fix typo.
7457
7458 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7459
7460         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7461         (xstormy16_save_dummy_frame_tos): Make static.
7462         (_initialize_xstormy16_tdep): Add declaration.
7463         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7464         * v850-tdep.c: Make local functions static.
7465         (_initialize_v850_tdep): Add declaration.
7466         * sparc-tdep.c: Make local functions static.
7467         (_initialize_sparc_tdep): Add declaration.
7468         * sh-tdep.c: Make local functions static.
7469         (_initialize_sh_tdep): Add declaration.
7470         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7471         * s390-tdep.c: Make local functions static.
7472         (_initialize_s390_tdep): Add declaration.
7473         * dbxread.c (find_stab_function_addr): Make static.
7474         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7475         * ocd.c (_initialize_remote_ocd): Add declaration.
7476         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7477         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7478         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7479         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7480         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7481         * remote-array.c (_initialize_array): Add declaration.
7482         (_initialize_remote_monitors): Add declaration.
7483         * remote-mips.c: Make local functions static.
7484         (_initialize_remote_mips): Add declaration.
7485         * mcore-tdep.c: Make all local functions static.
7486         (_initialize_mcore_tdep): Add declaration.
7487         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7488         * abug-rom.c (_initialize_abug_rom): Add declaration.
7489         * rom68k-rom.c (_initialize_rom68k): Add declaration.
7490         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7491         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7492         * remote-est.c (_initialize_est): Add declaration.
7493         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7494         (m68hc11_call_dummy_address): Make static.
7495         * ia64-tdep.c: Make local functions static.
7496         (_initialize_ia64_tdep): Add declaration.
7497         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7498         * monitor.c (monitor_wait_filter): Make static.
7499         (_initialize_remote_monitors): Add declaration.
7500         * remote-hms.c (_initialize_remote_hms): Add declaration.
7501         * remote-e7000.c (fetch_regs_from_dump): Make static.
7502         (expect_n): Make static.
7503         (_initialize_remote_e7000): Add declaration.
7504         * ser-e7kpc.c: Always include "defs.h".
7505         (_initialize_ser_e7000pc): Add declaration.
7506         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7507         * cris-tdep.c: Make all but one function static.
7508         (_initialize_cris_tdep): Add declaration.
7509         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7510         * solib.c (update_solib_list): Make static.
7511         (_initialize_solib): Add declaration.
7512         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7513         (_initialize_avr_tdep): Add declaration.
7514         * remote-rdi.c (voiddummy): Make static.
7515         (_initialize_remote_rdi): Add declaration.
7516         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7517         * remote-rdp.c (send_rdp): Make static.
7518         (_initialize_remote_rdp): Add declaration.
7519         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7520
7521 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
7522
7523         * remote-fileio.c: Make ari happy.
7524
7525 2003-06-10  J. Brobecker  <brobecker@gnat.com>
7526
7527         * rs6000-nat.c (child_xfer_memory): Compute the right address when
7528         fetching the trailing bytes of the buffer we are about to write.
7529
7530 2003-06-10  Andrew Cagney  <cagney@redhat.com>
7531
7532         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7533         * Makefile.in (remote-fileio.o): Update dependencies.
7534         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
7535         include <setjmp.h>, or <sys/types.h> conditional on USG.
7536         (remote_fio_jmp_buf): Delete global variable.
7537
7538 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
7539             Martin M. Hunt  <hunt@redhat.com>
7540
7541         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7542         (SFILES): Add remote-fileio.c.
7543         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
7544         dependencies for building remote.o.
7545         * remote-fileio.c: New file implementing the remote File-I/O protocol.
7546         * remote-fileio.h: New header file defining remote File-I/O interface.
7547         * remote.c (remote_write_bytes, remote_read_bytes): Remove
7548         static storage class.
7549         (remote_wait, remote_async_wait): Call remote_fileio_request() on
7550         'F' packet.
7551         (_initialize_remote): Call initialize_remote_fileio().
7552         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7553         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7554         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7555         (captured_main): Initialize new ui_files.
7556         * ui-file.c: Add read and fgets input functions.
7557         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7558         (null_file_read): New function.
7559         (ui_file_read): New function.
7560         (set_ui_file_read): New function.
7561         (stdio_file_read): New function.
7562         * ui-file.h: New type ui_file_read_ftype.
7563         (set_ui_file_read): Declare.
7564         (ui_file_read): Declare.
7565
7566 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7567
7568         * frame.h (deprecated_unwind_get_saved_register): Rename
7569         generic_unwind_get_saved_register, update comments.
7570         * mips-tdep.c (mips_get_saved_register): Update.
7571         * frame.c (deprecated_unwind_get_saved_register): Update.
7572
7573 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7574
7575         * vax-tdep.c (vax_frame_locals_address): Delete function.
7576         (vax_gdbarch_init): Do not set frame_locals_address.
7577         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7578         (m68hc11_gdbarch_init): Do not set frame_locals_address.
7579         * s390-tdep.c (s390_frame_args_address): Delete function.
7580         (s390_gdbarch_init): Do not set frame_args_address or
7581         frame_locals_address.
7582         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7583         (ns32k_gdbarch_init): Do not set frame_locals_address.
7584         * hppa-tdep.c (hppa_frame_args_address): Delete function.
7585         (hppa_frame_locals_address): Delete function.
7586         (hppa_gdbarch_init): Do not set frame_args_address, or
7587         frame_locals_address.
7588         * arm-tdep.c (arm_frame_args_address): Delete.
7589         (arm_frame_locals_address): Delete.
7590         (arm_gdbarch_init): Do not set frame_args_address, or
7591         frame_locals_address.
7592
7593 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7594
7595         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7596         * gdbarch.h, gdbarch.c: Re-generate.
7597         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7598         * arch-utils.c (frame_num_args_unknown): Delete function.
7599         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7600         (frame_info): Use FRAME_NUM_ARGS_P.
7601         * arm-tdep.c (arm_frame_num_args): Delete function.
7602         (arm_gdbarch_init): Do not set frame_num_args.
7603         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7604         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7605         (hppa_gdbarch_init): Do not set frame_num_args.
7606         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7607         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7608         frame_num_args to default frame_num_args_unknown.
7609         * v850-tdep.c (v850_gdbarch_init): Ditto.
7610         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7611         * sh-tdep.c (sh_gdbarch_init): Ditto.
7612         * s390-tdep.c (s390_gdbarch_init): Ditto.
7613         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7614         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7615         * mips-tdep.c (mips_gdbarch_init): Ditto.
7616         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7617         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7618         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7619         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7620         * i386-tdep.c (i386_gdbarch_init): Ditto.
7621         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7622         * frv-tdep.c (frv_gdbarch_init): Ditto.
7623         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7624         * cris-tdep.c (cris_gdbarch_init): Ditto.
7625         * avr-tdep.c (avr_gdbarch_init): Ditto.
7626         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7627
7628 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7629
7630         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7631         (print_frame_args): Moved to "stack.c".
7632         * stack.c: Include "gdb_assert.h".
7633         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7634         (print_frame_args): Moved from "printcmd.c".
7635         * frame.h (print_frame_args): Delete declaration.
7636         * Makefile.in (stack.o): Update dependencies.
7637
7638 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7639
7640         * frame.c (get_prev_frame): Remove reference to
7641         frame_args_address_correct in comments.
7642         * frame-base.c (default_frame_args_address): Delete code
7643         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7644         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7645         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7646         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7647         (vax_frame_args_address_correct): Delete declaration.
7648
7649 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7650
7651         * gdbarch.sh (UNWIND_SP): Add.
7652         * gdbarch.h, gdbarch.c: Re-generate.
7653         * frame.c (frame_sp_unwind): New function.
7654         (get_frame_sp): New function.
7655         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7656         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7657         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7658         value.
7659         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7660         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7661
7662 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7663
7664         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7665         REMOTE_BREAKPOINT.
7666         * remote.c: Update.
7667         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7668         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7669         * config/m68k/tm-sun3.h: Update.
7670         * config/m68k/tm-m68klynx.h: Update.
7671         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7672
7673         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7674         trad_frame".  Update comments.
7675         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7676         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7677         (trad_frame_register_value, trad_frame_prev_register): Update.
7678
7679 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7680
7681         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7682         from GCC's acinclude.m4.
7683         * configure.in: Check for getopt's delcaration.
7684         * aclocal.m4, config.in, configure: Re-generate.
7685         * main.c (error_init): Delete declaration.
7686         * defs.h (error_init): Declare.
7687         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7688         (rs6000_convert_from_func_ptr_addr): Make static.
7689         (_initialize_rs6000_tdep): Add declaration.
7690         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7691         (show_commands, set_verbose, show_history): Delete declaration.
7692         * top.h (set_verbose): Add declaration.
7693         (show_history, set_history, show_commands): Add declaration.
7694         (do_restore_instream_cleanup): Add declaration.
7695         * objc-lang.c (specialcmp): Make static.
7696         (print_object_command): Make static.
7697         (find_objc_msgsend): Make static.
7698         (find_objc_msgcall_submethod_helper): Make static.
7699         (find_objc_msgcall_submethod): Make static.
7700         (_initialize_objc_language): Add declaration.
7701         (find_implementation_from_class): Make static.
7702         (find_implementation): Make static.
7703         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7704         * objc-lang.h (lookup_struct_typedef): Add declaration.
7705         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7706         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7707         (do_restore_user_call_depth): Make static.
7708         (do_restore_instream_cleanup): Delete declaration.
7709         (dont_repeat): Delete declaration.
7710         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7711         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7712         * reggroups.c (_initialize_reggroup): Add declaration.
7713         * cp-support.c (_initialize_cp_support): Add declaration.
7714         * cp-abi.c (_initialize_cp_abi): Add declaration.
7715         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7716         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7717         (_initialize_gnu_v3_abi): Add declaration.
7718         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7719         (_initialize_gnu_v2_abi): Add declaration.
7720         * frame-base.c (_initialize_frame_base): Add declaration.
7721         * doublest.c (floatformat_from_length): Make static.
7722         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7723         * frame.c (create_sentinel_frame): Make static.
7724         (_initialize_frame): Add declaration.
7725         * top.c (do_catch_errors): Make static.
7726         (gdb_rl_operate_and_get_next_completion): Make static.
7727         * typeprint.c: Include "typeprint.h".
7728         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7729         (sentinel_frame_this_id): Make static.
7730         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7731         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7732         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7733         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7734         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7735         * maint.c (maintenance_print_architecture): Make static.
7736         * signals/signals.c (_initialize_signals): Add declaration.
7737         * std-regs.c (_initialize_frame_reg): Add declaration.
7738         * jv-exp.y (push_variable): ISO C definition.
7739         (push_qualified_expression_name): Ditto.
7740         * memattr.c (_initialize_mem): Add declaration.
7741         * remote.c (remote_check_watch_resources): Make static.
7742         (remote_stopped_by_watchpoint): Make static.
7743         (remote_stopped_data_address): Make static.
7744         * d10v-tdep.c (nr_dmap_regs): Make static.
7745         (a0_regnum): Make static.
7746         (d10v_frame_unwind_cache): Make static.
7747         (d10v_frame_p): Make static.
7748         * osabi.c (show_osabi): Make static.
7749         (_initialize_gdb_osabi): Add extern declaration.
7750         * gdbtypes.c (make_qualified_type): Make static.
7751         (safe_parse_type): Make static.
7752         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7753         * macrotab.c (macro_bcache_free): Make static.
7754         * interps.c (interp_set_quiet): Make static.
7755         (interpreter_exec_cmd): Make static.
7756         * stack.h (select_frame_command): New file.
7757         * stack.c: Include "stack.h".
7758         (select_frame_command_wrapper): Delete function.
7759         (select_frame_command): Make global.
7760         * infcall.c: Include "infcall.h".
7761         * linespec.c: Include "linespec.h".
7762         * symfile.c (sections_overlap): Make static.
7763         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7764         * charset.c (_initialize_charset): Add missing prototype.
7765         * regcache.c (init_legacy_regcache_descr): Make static.
7766         (do_regcache_xfree): Make static.
7767         (regcache_xfer_part): Make static.
7768         (_initialize_regcache): Add missing prototype.
7769         * breakpoint.c (parse_breakpoint_sals): Make static.
7770         (breakpoint_sals_to_pc): Make static.
7771         * interps.h (clear_interpreter_hooks): ISO C declaration.
7772         * Makefile.in (stack_h): Define.
7773         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7774         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7775
7776 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7777
7778         * Makefile.in (d10v-tdep.o): Update dependencies.
7779         (SFILES): Add trad-frame.c.
7780         (trad_frame_h): Define.
7781         (COMMON_OBS): Add trad-frame.o.
7782         (trad-frame.o): Specify dependencies.
7783         * d10v-tdep.c: Include "trad-frame.h".
7784         (saved_regs_unwinder): Delete function.
7785         (d10v_frame_prev_register): Use trad_frame_prev_register.
7786         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7787         trad_frame", delete "regs" and "prev_sp".
7788         (prologue_find_regs): Use trad-frame.
7789         * trad-frame.h, trad-frame.c: New files.
7790
7791 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7792
7793         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7794
7795 2003-06-07  Adam Fedor  <fedor@gnu.org>
7796
7797         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7798         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7799         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7800         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7801         resolve_msgsend_super, resolve_msgsend_super_stret):
7802         Use it.
7803
7804 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7805
7806         * symfile.h: Re-indent, clean up comments.
7807
7808 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7809
7810         * inferior.h (deprecated_write_sp): Replace
7811         generic_target_write_sp.
7812         * regcache.c (deprecated_write_sp): Replace
7813         generic_target_write_sp.
7814         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7815         * vax-tdep.c (vax_gdbarch_init): Update.
7816         * v850-tdep.c (v850_gdbarch_init): Update.
7817         * sparc-tdep.c (sparc_gdbarch_init): Update.
7818         * sh-tdep.c (sh_gdbarch_init): Update.
7819         * s390-tdep.c (s390_gdbarch_init): Update.
7820         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7821         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7822         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7823         * mcore-tdep.c (mcore_gdbarch_init): Update.
7824         * m68k-tdep.c (m68k_gdbarch_init): Update.
7825         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7826         * ia64-tdep.c (ia64_gdbarch_init): Update.
7827         * h8300-tdep.c (h8300_gdbarch_init): Update.
7828         * frv-tdep.c (frv_gdbarch_init): Update.
7829         * cris-tdep.c (cris_gdbarch_init): Update.
7830         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7831
7832 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7833
7834         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7835         Assert that PC_REGNUM is valid.
7836         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7837
7838 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7839
7840         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7841         * gdbarch.h, gdbarch.c: Regenerate.
7842         * mn10300-tdep.c: Include "gdb_assert.h".
7843         (mn10300_read_fp): New function.
7844         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7845         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7846         * ia64-tdep.c: Include "gdb_assert.h".
7847         (ia64_read_fp): New function.
7848         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7849         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7850         * regcache.c (generic_target_read_sp): Delete function.
7851         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7852         * inferior.h (generic_target_read_sp): Delete declaration.
7853         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7854         generic_target_read_sp.
7855         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7856         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7857         * sh-tdep.c (sh_gdbarch_init): Ditto.
7858         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7859         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7860
7861 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7862
7863         * gdbarch.sh: Comment each field of startup_gdbarch.
7864         * gdbarch.h, gdbarch.c: Re-generate.
7865
7866 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7867
7868         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7869         * gdbarch.h, gdbarch.c: Re-generate.
7870         * regcache.c: Update comments on read_pc et.al.
7871         (generic_target_read_pc): Delete function.
7872         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7873         * inferior.h (generic_target_read_pc): Delete declaration.
7874         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7875         generic_target_read_pc.
7876         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7877         * sh-tdep.c (sh_gdbarch_init): Ditto.
7878         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7879         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7880
7881 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7882
7883         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7884         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7885         Append period to coments.
7886
7887 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7888
7889         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7890         (elfstab_offset_sections): Likewise.
7891         * gdb-stabs.h (stab_section_info): Likewise.
7892         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7893         * objfiles.c (objfile_relocate): Likewise.
7894         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7895         * remote.c (get_offsets): Likewise.
7896         (remote_cisco_objfile_relocate): Likewise.
7897         * somread.c (som_symfile_offsets): Likewise.
7898         * symfile.c (alloc_section_addr_info): New function.
7899         (build_section_addr_info_from_section_tab): Use it.
7900         (free_section_addr_info): Adjust.
7901         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7902         (syms_from_objfile): Allocate local_addr dynamically.
7903         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7904         dynamically.
7905         (add_symbol_file_command): Allocate sect_opts dynamically.
7906         (reread_symbols): Avoid use of SECT_OFF_MAX.
7907         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7908         (alloc_section_addr_info): Declare it.
7909         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7910         * win32-nat.c (solib_symbols_add): Allocate section_addrs
7911         dynamically.
7912         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7913
7914 2003-06-06  Andrew Cagney  <cagney@redhat.com>
7915
7916         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7917         (d10v_frame_unwind_cache): Do not set "return_pc".
7918
7919 2003-06-06  Michael Snyder  <msnyder@redhat.com>
7920
7921         * h8300-tdep.c: Make tidy (long lines).
7922
7923 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
7924
7925         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7926         to regcache_collect().
7927
7928 2003-06-05  J. Brobecker  <brobecker@gnat.com>
7929
7930         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7931         pc_in_sigtramp multiarch method.
7932         (hppa_hpux_som_init_abi): Use it.
7933         (hppa_hpux_elf_init_abi): Likewise.
7934         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7935         macro has been multiarched.
7936         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7937         macro here, as hppa64 isn't multiarched yet.
7938
7939 2003-06-05  Andrew Cagney  <cagney@redhat.com>
7940
7941         * Makefile.in (value_h): Add $(frame_h).
7942         * value.h: Include "frame.h".
7943         (struct value): Replace "frame_addr" with "frame_id".
7944         (VALUE_FRAME_ID): Replace VALUE_FRAME.
7945         * values.c (allocate_value): Use VALUE_FRAME_ID.
7946         (value_copy): Use VALUE_FRAME_ID.
7947         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7948         * valops.c (value_assign): Update.  Use frame_find_by_id.
7949
7950 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
7951
7952         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7953         in each pass.
7954
7955 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
7956
7957         * thread-db.c (check_event): For create/death event breakpoints,
7958         loop through all messages to ensure that we read the message
7959         corresponding to the breakpoint we are at.
7960
7961 2003-06-04  Michael Snyder  <msnyder@redhat.com>
7962
7963         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7964
7965 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
7966
7967         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7968         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7969         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7970         when handling .eh_frame sections.
7971
7972 2003-06-04  J. Brobecker  <brobecker@gnat.com>
7973
7974         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7975         prepare_to_proceed procedure instead of the hppa-specific one.
7976         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7977
7978 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
7979
7980         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7981         * config.in: Regenerated.
7982         * configure.in: Add test for syscall function and check for
7983         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7984         * configure: Regenerated.
7985         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7986         <sys/syscall.h>.
7987         (kill_lwp): New function that uses tkill syscall or
7988         uses kill, depending on whether threading model is nptl or not.
7989         All callers of kill() changed to use kill_lwp().
7990         (lin_lwp_wait): Make special check when WIFEXITED occurs to
7991         see if all threads have already exited in the nptl model.
7992         (stop_and_resume_callback): New callback function used by the
7993         lin_lwp_wait thread exit handling code.
7994         (stop_wait_callback): Check for threads already having exited and
7995         delete such threads fromt the lwp list when discovered.
7996         (stop_callback): Don't assert retcode of kill call.
7997
7998         Roland McGrath  <roland@redhat.com>
7999         * i386-linux-nat.c (ps_get_thread_area): New function needed by
8000         nptl libthread_db.
8001
8002 2003-06-03  Richard Henderson  <rth@redhat.com>
8003
8004         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
8005         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
8006         (alpha_sigtramp_frame_prev_register): Likewise.
8007         (alpha_heuristic_frame_prev_register): Likewise.
8008         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
8009
8010         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
8011         alpha-specific register id names.
8012         (alpha_mdebug_frame_unwind_cache): Likewise.
8013         (alpha_mdebug_frame_prev_register): Likewise.
8014
8015 2003-06-03  Richard Henderson  <rth@redhat.com>
8016
8017         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
8018         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
8019         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
8020         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
8021         unwind routines.
8022         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8023         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8024         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8025
8026         * alpha-linux-tdep.c: Remove unnecessary includes.
8027         * Makefile.in (alpha-linux-tdep.o): Update.
8028
8029 2003-06-03  Richard Henderson  <rth@redhat.com>
8030
8031         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
8032         (alphabsd_fill_fpreg): Likewise.
8033
8034 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8035
8036         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
8037         references to struct frame_info fields by calls to the equivalent
8038         accessors. Necessary now that frame_info is opaque.
8039
8040 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8041
8042         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
8043         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
8044         structure, field no longer exists.
8045
8046 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8047
8048         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8049         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
8050
8051 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8052
8053         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
8054         references to struct frame_info fields by calls to the equivalent
8055         accessors. Necessary now that frame_info is opaque.
8056
8057 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8058
8059         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
8060         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
8061         structure, field no longer exists.
8062
8063 2003-06-03  Theodore A. Roth  <troth@openavr.org>
8064
8065         * remote.c (init_remote_state): Compute sizeof_g_packet by
8066         accumulation of the size of all registers instead of blindly using
8067         DEPRECATED_REGISTER_BYTES.
8068
8069 2003-06-03  Michael Snyder  <msnyder@redhat.com>
8070
8071         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
8072         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
8073         for h8300sx.
8074
8075 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8076
8077         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
8078         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8079
8080 2003-06-03  Andrew Cagney  <cagney@redhat.com>
8081
8082         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8083         (sparc_convert_to_raw): Delete function.
8084         (sparc_gdbarch_init): Do not set register_convert_to_raw or
8085         register_convert_to_virtual.
8086
8087 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
8088
8089         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8090         layer if not dealing with a statically-linked threaded program.
8091
8092 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
8093
8094         * solib.c (solib_open): Update comment to reflect actual search order.
8095
8096 2003-06-03  Andrew Cagney  <cagney@redhat.com>
8097
8098         * frame.c (get_frame_memory_signed): New function.
8099         (get_frame_memory, get_frame_memory_unsigned): New function.
8100         (get_frame_arch): New function.
8101         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8102         (get_frame_memory, get_frame_unsigned_memory): Declare.
8103         * d10v-tdep.c (d10v_frame_unwind_cache): Use
8104         get_frame_memory_unsigned and get_frame_arch.
8105         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8106
8107 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
8108
8109         * MAINTAINERS (write after approval): Add myself.
8110
8111 2003-06-03  Jim Blandy  <jimb@redhat.com>
8112
8113         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8114         elements of gregset_t are 64 bits each, but access registers
8115         are still 32 bits, so they're packed two per gregset_t
8116         element.  Unpack/pack them properly.
8117
8118 2003-06-02  David Carlton  <carlton@bactrian.org>
8119
8120         * linespec.c (find_methods): Break out code into
8121         add_matching_methods and add_constructors.
8122         (add_matching_methods): New.
8123         (add_constructors): Ditto.
8124
8125 2003-06-02  Andrew Cagney  <cagney@redhat.com>
8126
8127         * sparc-tdep.c (sparc_print_registers): Delete call to
8128         REGISTER_CONVERTIBLE.
8129         (sparc_gdbarch_init): Do not set register_convertible.
8130         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8131         * frv-tdep.c (frv_gdbarch_init): Ditto.
8132         * cris-tdep.c (cris_gdbarch_init): Ditto.
8133
8134 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
8135
8136         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
8137         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8138         (syms_from_objfile): Ditto.
8139
8140 2003-06-03  Andreas Schwab  <schwab@suse.de>
8141
8142         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8143         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8144
8145 2003-06-02  Richard Henderson  <rth@redhat.com>
8146
8147         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8148         a member of all_reggroup.
8149
8150 2003-06-02  Richard Henderson  <rth@redhat.com>
8151
8152         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8153         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8154         (alpha_lds, alpha_sts): New.
8155         (alpha_convert_register_p): Change from _register_convertible.
8156         (alpha_register_to_value): Change from _convert_to_virtual;
8157         restructure and fail for type sizes other than 4 or 8.
8158         (alpha_value_to_register): Similarly.
8159         (alpha_extract_return_value): Use alpha_sts.
8160         (alpha_store_return_value): Use alpha_lds.
8161         (alpha_gdbarch_init): Update hooks.
8162
8163 2003-06-02  Richard Henderson  <rth@redhat.com>
8164
8165         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8166         regnum identifiers.
8167         (alpha_sigtramp_register_address): Likewise.
8168
8169 2003-06-02  Richard Henderson  <rth@redhat.com>
8170
8171         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8172         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8173         * alpha-tdep.h: Declare them.
8174
8175         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8176         Remove zerobuf.  Don't error on UNIQUE.
8177         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8178         (ALPHA_REGSET_UNIQUE): Provide default.
8179         (supply_gregset): Use alpha_supply_int_regs.
8180         (fill_gregset): Use alpha_fill_int_regs.
8181         (supply_fpregset): Use alpha_supply_fp_regs.
8182         (fill_fpregset): Use alpha_fill_fp_regs.
8183         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8184         (alphabsd_supply_reg): Use alpha_supply_int_regs.
8185         (alphabsd_fill_reg): Use alpha_fill_int_regs.
8186         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8187         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8188         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8189
8190 2003-06-02  Richard Henderson  <rth@redhat.com>
8191
8192         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8193
8194         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8195         (alpha_store_return_value): Likewise.
8196
8197 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8198
8199         * block.c (contained_in): Add 'const' to arguments.
8200         (block_function): Ditto.
8201         * block.h: Update declarations for block_function and
8202         contained_in.
8203
8204 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8205
8206         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8207         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8208         * p-valprint.c (pascal_val_print): Ditto.
8209         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8210
8211 2003-06-02  Richard Henderson  <rth@redhat.com>
8212
8213         * alpha-tdep.c (alpha_push_dummy_call): Use
8214         builtin_type_ieee_double_little instead of builtin_type_double.
8215
8216         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
8217         sign-extension of 32-bit values.
8218         (alpha_store_return_value): Similarly.
8219
8220         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8221         (alpha_extract_return_value): Likewise.
8222         (alpha_store_return_value): Likewise.
8223
8224         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8225         (alpha_store_return_value): Error on IEEE Quad floats.
8226
8227         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8228         (alpha_extract_struct_value_address): Likewise.
8229         (alpha_store_return_value): Likewise.
8230         (alpha_store_struct_return): Remove.
8231         (alpha_gdbarch_init): Update hook registration to match.
8232
8233         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8234         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8235         macros where appropriate.
8236         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
8237         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
8238
8239         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8240         for SP, GP; void_func_ptr for PC; non-language-specific types
8241         for all others.
8242         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
8243
8244 2003-06-02  Richard Henderson  <rth@redhat.com>
8245
8246         * top.h (lim_at_start): Declare.
8247         * main.c (captured_main): Set it.
8248         * top.c (lim_at_start): Define.
8249         (command_loop): Use it instead of &environ.
8250         * event-top.c (command_handler): Likewise.
8251
8252 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
8253
8254         * mipsnbsd-tdep.c: Update copyright years.
8255         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8256
8257 2003-06-01  Richard Henderson  <rth@redhat.com>
8258
8259         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8260         (alpha-linux-tdep.o): Update dependencies.
8261         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8262         * alpha-mdebug-tdep.c: Remove unneeded includes.
8263
8264 2003-06-01  Richard Henderson  <rth@redhat.com>
8265
8266         * alpha-tdep.c (alpha_register_reggroup_p): New.
8267         (alpha_gdbarch_init): Register it.
8268
8269 2003-06-02  Andrew Cagney  <cagney@redhat.com>
8270
8271         * dwarfread.c: Eliminate "register"
8272         (decode_die_type): Eliminate assignment within "if".
8273         (struct_type, decode_array_element_type): Ditto.
8274         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8275         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8276         (decode_modified_type, completedieinfo): Ditto.
8277         * block.c: Eliminate "register".
8278         (blockvector_for_pc_sect): Eliminate assignment within "if".
8279         * cp-support.h (struct symbol): Opaque declaration.
8280         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8281
8282 2003-06-01  Richard Henderson  <rth@redhat.com>
8283
8284         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8285         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
8286
8287 2003-06-01  Adam Fedor  <fedor@gnu.org>
8288
8289         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8290         * gdbarch.[ch]: Regenerate.
8291         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8292         (hppa_gdbarch_init): Set it in the gdbarch vector.
8293         * i386-tdep.c (i386_fetch_pointer_argument): New
8294         (i386_gdbarch_init): Set it into gdbarch.
8295         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8296         (rs6000_gdbarch_init): Set it in gdbarch.
8297         * sparc-tdep.c (sparc_fetch_pointer_argument): New
8298         (sparc_gdbarch_init): Set it in gdbarch.
8299
8300 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8301
8302         * defs.h (extract_address): Delete declaration.
8303         * findvar.c (extract_address): Delete function.
8304         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8305         extract_address with the inline equivalent,
8306         extract_unsigned_integer.
8307         (xstormy16_extract_struct_value_address): Ditto.
8308         (xstormy16_pointer_to_address): Ditto.
8309         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8310         * v850-tdep.c (v850_push_arguments): Ditto.
8311         (v850_extract_return_value): Ditto.
8312         (v850_extract_struct_value_address): Ditto.
8313         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8314         (sparcnbsd_get_longjmp_target_64): Ditto.
8315         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8316         (get_longjmp_target): Ditto.
8317         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8318         (sh64_extract_struct_value_address): Ditto.
8319         (sh_push_arguments): Ditto.
8320         (sh64_push_arguments): Ditto.
8321         * remote-vxsparc.c (vx_read_register): Ditto.
8322         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8323         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8324         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8325         * mipsv4-nat.c (get_longjmp_target): Ditto.
8326         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8327         * mips-nat.c (get_longjmp_target): Ditto.
8328         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8329         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8330         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8331         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8332         * irix5-nat.c (get_longjmp_target): Ditto.
8333         * irix4-nat.c (get_longjmp_target): Ditto.
8334         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8335         (ia64_push_arguments): Ditto.
8336         * hpux-thread.c (hpux_thread_store_registers): Ditto.
8337         * h8300-tdep.c (h8300_push_arguments): Ditto.
8338         (h8300_store_return_value): Ditto.
8339         (h8300_extract_struct_value_address): Ditto.
8340         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8341         (frv_push_arguments): Ditto.
8342         * avr-tdep.c (avr_pointer_to_address): Ditto.
8343         (avr_push_arguments): Ditto.
8344         * arm-tdep.c (arm_push_dummy_call): Ditto.
8345         (arm_get_longjmp_target): Ditto.
8346         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8347         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8348         (alpha_get_longjmp_target): Ditto.
8349
8350         * solib-irix.c (extract_mips_address): Inline extract_address,
8351         replacing it with extract_signed_integer.
8352         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8353         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8354         (first_link_map_member, open_symbol_file_object): Ditto.
8355         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8356         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8357         (LM_NEXT, LM_NAME): Ditto.
8358
8359 2003-06-01  Richard Henderson  <rth@redhat.com>
8360
8361         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8362         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8363         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8364         (alpha_cannot_store_register): Likewise.
8365         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8366         * alpha-nat.c (supply_gregset): Likewise.
8367         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8368
8369 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8370
8371         * infcall.c (call_function_by_hand): Update comment on
8372         DEPRECATED_DUMMY_WRITE_SP.
8373
8374         * mips-tdep.c (mips_gdbarch_init): Do not set
8375         deprecated_dummy_write_sp.
8376         (mips_eabi_push_dummy_call): Set the SP register.
8377         (mips_o64_push_dummy_call): Set the SP register.
8378         (mips_o32_push_dummy_call): Set the SP register.
8379         (mips_n32n64_push_dummy_call): Set the SP register.
8380
8381 2003-06-01  Richard Henderson  <rth@redhat.com>
8382
8383         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8384         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8385         (supply_gregset): Likewise.
8386         * alpha-tdep.c (alpha_store_return_value): Likewise.
8387         (alpha_get_longjmp_target): Likewise.
8388         (alpha_register_name): Constify array.
8389         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8390         deprecated_register_size, deprecated_register_bytes,
8391         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8392         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8393         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8394
8395 2003-06-01  Richard Henderson  <rth@redhat.com>
8396
8397         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
8398         from arg_reg_buffer to regcache to avoid double conversion.
8399
8400 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8401
8402         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8403         SP_REGNUM.
8404         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8405         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8406
8407 2003-06-01  Richard Henderson  <rth@redhat.com>
8408
8409         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8410         (decode_frame_entry): Set it.  Skip FDE augmentation.
8411
8412 2003-06-01  Richard Henderson  <rth@redhat.com>
8413
8414         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8415         not overlapping PC_REGNUM.
8416
8417 2003-06-01  Richard Henderson  <rth@redhat.com>
8418
8419         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8420         alpha_push_arguments.  Don't dump argument register data to
8421         the target stack.  Fix float and 128-bit long double semantics.
8422         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
8423         (alpha_fix_call_dummy): Remove.
8424         (alpha_call_dummy_words): Remove.
8425         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8426
8427 2003-06-01  Richard Henderson  <rth@redhat.com>
8428
8429         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8430
8431 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8432
8433         * mips-tdep.c (is_mips16_addr): New function.
8434         (make_mips16_addr, unmake_mips16_addr): New functions.
8435         (pc_is_mips16, mips_fetch_instruction): Use.
8436         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8437         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8438         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8439         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8440         TARGET_MIPS.
8441         * config/mips/tm-mips.h: Update copyright.
8442         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8443         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8444         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8445         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8446         (TM_PRINT_INSN_MACH): Delete.
8447         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8448
8449         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8450         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8451         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8452         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8453         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
8454         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
8455         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
8456         mips*-*-riscos* and mips*-*-sysv* onto mips.
8457         * config/mips/mips64.mt: New file.
8458         * config/mips/mips.mt: New file.
8459         * config/mips/littlemips.mt: Delete file.
8460         * config/mips/decstation.mt: Delete file.
8461         * config/mips/vr4300el.mt: Delete file.
8462         * config/mips/vr5000el.mt: Delete file.
8463         * config/mips/vr5000.mt: Delete file.
8464         * config/mips/vr4100.mt: Delete file.
8465         * config/mips/vr4xxxel.mt: Delete file.
8466         * config/mips/vr4300.mt: Delete file.
8467         * config/mips/vr4xxx.mt: Delete file.
8468         * config/mips/bigmips.mt: Delete file.
8469         * config/mips/bigmips64.mt: Delete file.
8470         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8471         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8472         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8473         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8474         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8475         "tm-bigmips.h".
8476         * config/mips/tm-irix3.h: Ditto.
8477         * config/mips/tm-mipsv4.h: Ditto.
8478         * config/mips/tm-embed.h: Ditto.
8479         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8480         "tm-bigmips64.h".
8481         * config/mips/tm-vr5000el.h: Delete file.
8482         * config/mips/tm-tx39l.h: Delete file.
8483         * config/mips/tm-vr4300el.h: Delete file.
8484         * config/mips/tm-vr4xxxel.h: Delete file.
8485         * config/mips/tm-vr4300.h: Delete file.
8486         * config/mips/tm-vr4100.h: Delete file.
8487         * config/mips/tm-vr4xxx.h: Delete file.
8488         * config/mips/tm-vr5000.h: Delete file.
8489         * config/mips/tm-embedl64.h: Delete file.
8490         * config/mips/tm-embedl.h: Delete file.
8491         * config/mips/tm-embed64.h: Delete file.
8492         * config/mips/tm-bigmips64.h: Delete file.
8493         * config/mips/tm-bigmips.h: Delete file.
8494
8495 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8496
8497         Fix gdb/1216.
8498         * shnbsd-nat.c: Include "sh-tdep.h".
8499
8500         From Richard Henderson  <rth@redhat.com>:
8501         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8502
8503 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8504
8505         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
8506         forward declaration.
8507         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8508         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8509         (mips_find_saved_regs): Use set_reg_offset.
8510         (mips_frame_init_saved_regs): Delete function.
8511         (mips_pop_frame): Call mips_find_saved_regs instead of
8512         DEPRECATED_FRAME_INIT_SAVED_REGS.
8513
8514 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8515
8516         * mips-tdep.c (mips_gdbarch_init): Do not set
8517         deprecated_max_register_raw_size, register_virtual_size, and
8518         deprecated_max_register_virtual_size.
8519
8520 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8521
8522         * i386-tdep.c: Include "dwarf2-frame.h".
8523         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8524         * Makefile.in (i386-tdep.o): Update dependencies.
8525
8526         * dwarf2-frame.c, dwarf2-frame.h: New files.
8527         * Makefile.in (SFILES): Add dwarf2-frame.c.
8528         (dwarf2_frame_h): Define.
8529         (COMMON_OBS): Add dwarf2-frame.o.
8530         (dwarf2-frame.o): Add dependencies.
8531
8532 2003-05-31  Andreas Jaeger  <aj@suse.de>
8533
8534         * x86-64-linux-nat.c: Fix comment.
8535
8536 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8537
8538         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8539         function signature.
8540
8541         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8542         have a sigcontext_addr handler.
8543         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8544         sigcontext_addr handler.
8545
8546 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8547
8548         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8549         (print_fp_register_row): Replace do_fp_register_row.
8550         (mips_print_fp_register): Add "file" and "frame" parameters.
8551         (mips_print_register): Add "file" and "frame" parameters.
8552         (mips_print_registers_info): Replace mips_do_registers_info.
8553         (mips_gdbarch_init): Set print_registers_info instead of
8554         deprecated_do_registers_info.
8555         (mips_read_fp_register_single): Add "frame" parameter.
8556         (mips_read_fp_register_double): Add "frame" parameter.
8557
8558 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8559
8560         * i386-tdep.c (i386_register_name): Check for MMX registers first.
8561         Fixes a bug where GDB would print the wrong register names for
8562         targets without SSE.
8563
8564         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8565         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8566         registers.
8567
8568         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8569         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8570         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8571         TDEP->sc_sp_offset.
8572
8573         From Michal Ludvig  <mludvig@suse.cz>:
8574         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8575         and `sc_num_regs'.
8576         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8577         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8578         I386_ST0_REGNUM): Move here from...
8579         * i386-tdep.c: ... here.
8580         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8581         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8582         registers if possible.
8583         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8584         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8585         Remove variables.
8586         (i386bsd_sc_reg_offset): New variable.
8587         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8588         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8589         TDEP->sc_sp_offset.
8590         (i386fbsd_sc_reg_offset): New variable.
8591         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8592         TDEP->sc_num_regs.
8593         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8594         variables.
8595         (i386fbsd4_sc_reg_offset): New variable.
8596         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8597         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8598         TDEP->sc_sp_offset.
8599         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8600         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8601         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8602         Remove variables.
8603         (i386nbsd_sc_reg_offset): New variable.
8604         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8605         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8606         TDEP->sc_sp_offset.
8607         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8608         Remove variables.
8609         (i386obsd_sc_reg_offset): New variable.
8610         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8611         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8612         TDEP->sc_sp_offset.
8613         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8614         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8615         for frame pointer offset in `struct sigcontext'.
8616
8617 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8618
8619         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8620         architecture methods call_dummy_words, sizeof_call_dummy_words,
8621         push_return_address, store_struct_return, and fix_call_dummy.  Set
8622         push_dummy_call instead of deprecated_push_arguments.
8623         (mips_store_struct_return): Delete function.
8624         (mips_fix_call_dummy): Delete function.
8625         (mips_push_return_address): Delete function.
8626         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8627         RA_REGNUM and T9_REGNUM.
8628         (mips_n32n64_push_dummy_call): Ditto for
8629         mips_n32n64_push_arguments.
8630         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8631         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8632
8633 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8634
8635         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8636         "dummy_addr" to "bp_addr".
8637         * infcall.c (call_function_by_hand): Pass "funaddr" to
8638         gdbarch_push_dummy_call.
8639         * gdbarch.h, gdbarch.c: Re-generate.
8640         * i386-tdep.c (i386_push_dummy_call): Update.
8641         * arm-tdep.c (arm_push_dummy_call): Update.
8642         * d10v-tdep.c (d10v_push_dummy_call): Update.
8643
8644 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8645
8646         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8647         variable declarations.
8648         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8649         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8650         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8651         x86_64_init_frame_pc, x86_64_init_frame_pc,
8652         x86_64_function_has_prologue): Remove prototypes.
8653         (X86_64_NUM_GREGS): New define.
8654         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8655         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8656         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8657         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8658         XMM1_REGNUM): Remove defines.
8659         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8660         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8661         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8662         X86_64_XMM1_REGNUM): New defines.
8663         (struct x86_64_register_info): Renamed from `struct
8664         register_info'.  Remove `size' member.
8665         (x86_64_register_info_table): Remove variable.
8666         (x86_64_register_info): New variable.
8667         (X86_64_NUM_REGS): New define.
8668         (X86_64_NUM_GREGS): Remove define.
8669         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8670         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8671         Remove variables.
8672         (x86_54_dwarf2_reg_to_regnum): Remove function.
8673         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8674         (x86_64_dwarf_reg_to_regnum): New function.
8675         (x86_64_register_name): Rewrite.
8676         (x86_64_register_raw_size): Remove function.
8677         (x86_64_register_byte_table): Remove variable.
8678         (x86_64_register_byte): Remove function.
8679         (x86_64_register_virtual_type): Remove function.
8680         (x86_64_register_type): New function.
8681         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8682         x86_64_register_convert_to_raw): Remove functions.
8683         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8684         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8685         defines.
8686         (x86_64_frame_init_saved_regs): Remove function.
8687         (x86_64_push_arguments): Make static.  Change to accept a regcache
8688         as argument.
8689         (x86_64_store_return_value, x86_64_extract_return_value): Make
8690         static.  Rewrite based on i386 counterparts.
8691         (x86_64_push_dummy_call): New function.
8692         (X86_64_NUM_SAVED_REGS): New define.
8693         (x86_64_register_number): Remove function.
8694         (x86_64_store_struct_return): Remove function.
8695         (x86_64_frameless_function_invocation,
8696         x86_64_function_has_prologue): Remove functions.
8697         (PROLOG_BUFSIZE): Remove define.
8698         (struct x86_64_frame_cache): New structure.
8699         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8700         x86_64_frame_cache, x86_64_frame_this_id,
8701         x86_64_frame_prev_register, x86_64_frame_p,
8702         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8703         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8704         functions.
8705         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8706         variables.
8707         (x86_64_skip_prologue): Rewrite in terms of
8708         x86_64_analyze_prologue.
8709         (x86_64_frame_base_address): New function.
8710         (x86_64_frame_base): New variable.
8711         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8712         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8713         set deprecated_fp_regnum, deprecated_register_size,
8714         deprecated_register_bytes, register_raw_size, register_byte,
8715         register_virtual_type, register_convertiable,
8716         register_convert_to_virtual, convert_to_raw,
8717         deprecated_get_saved_register, deprecated_target_read_fp,
8718         deprecated_push_arguments, deprecated_push_return_address,
8719         deprecated_pop_frame, deprecated_store_struct_return,
8720         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8721         frameless_function_invocation, deprecated_frame_saved_pc,
8722         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8723         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8724         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8725         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8726         and x86_64_frame_p.  Call frame_base_set_default to register
8727         x86_64_frame_base.
8728         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8729         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8730         (_initialize_x86_64_tdep): Remove function.
8731         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8732         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8733         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8734         define.
8735         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8736         (x86_64_linux_sigcontext_addr): Rewrite.
8737         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8738         x86_64_linux_frame_saved_pc): Remove functions.
8739         (x86_64_linux_pc_in_sigtramp): Renamed from
8740         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8741         trampoline.
8742         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8743         Remove_functions.
8744         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8745         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8746         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8747         (x86_64_regmap): Rename to regmap.
8748         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8749         x86_64_num_gregs.
8750         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8751         x86_64_regmap.
8752         (x86_64_fxsave_offset): Remove function.
8753         (supply_fpregset): Simply call x86_64_supply_fxsave.
8754         (fill_fpregset): Simply call x86_64_fill_fxsave.
8755         (fetch_inferior_registers, store_inferior_registers): Avoid
8756         asignment in if-statement.
8757         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8758         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8759         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8760         (fetch_core_registers): Remove function.
8761         (linux_elf_core_fns): Remove.
8762         (offsetoff): Don't define.
8763         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8764         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8765         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8766         add core-regset.o.
8767         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8768         protection against multiple includes instead of NM_X86_64_h.  Add
8769         various comments.  Include "config/nm-linux.h".  Don't include
8770         <signal.h>.
8771         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8772         GET_THREAD_SIGNALS): Remove defines.
8773         (x86_64_register_u_addr, kernel_u_size,
8774         lin_thread_get_thread_signals): Remove prototypes.
8775         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8776         [HAVE_LINK_H]: Don't include "solib.h".
8777         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8778         * config/i386/tm-x86-64linux.h: Fix comments.
8779         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8780         x86-64-tdep.o): Update dependencies.
8781
8782 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8783
8784         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8785         Change parameter type to a "struct regcache *".
8786
8787         * gdbarch.sh: Regardless of the multi-arch level, always define
8788         the macro when not already defined.
8789         * gdbarch.h, gdbarch.c: Re-generate.
8790
8791 2003-05-30  Richard Henderson  <rth@redhat.com>
8792
8793         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8794         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8795         (alpha_mdebug_frame_this_id): Likewise.
8796         (alpha_mdebug_frame_prev_register): Likewise.
8797         (alpha_mdebug_frame_base_address): Likewise.
8798         (alpha_mdebug_frame_locals_address): Likewise.
8799         (alpha_mdebug_frame_args_address): Likewise.
8800         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8801         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8802         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8803         loop increment.
8804         (alpha_heuristic_frame_this_id): Make static.
8805         (alpha_heuristic_frame_prev_register): Likewise.
8806         (alpha_heuristic_frame_base_address): Likewise.
8807         * alpha-tdep.h: Update.
8808
8809 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8810
8811         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8812         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8813         defenitions.
8814         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8815         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8816         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8817         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8818         I386_ST0_REGNUM): New defines.
8819         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8820         codestream_get): Remove define.
8821         (codestream_next_addr, condestream_addr, condestream_buf,
8822         codestream_off, codestream_cnt): Remove variables.
8823         (codestream_fill, codestream_seek, codestream_read): Remove
8824         functions.
8825         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8826         functionality.
8827         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8828         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8829         i386_frame_saved_pc, i386_saved_pc_after_call,
8830         i386_frame_num_args, i386_frame_init_saved_regs,
8831         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8832         i386_push_arguments): Remove functions.
8833         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8834         functionality.  Use i386_analyze_prologue instead of
8835         i386_get_frame_setup.
8836         (I386_NUM_SAVED_REGS): New define.
8837         (struct i386_frame_cache): New structure.
8838         (i386_alloc_frame_cache, i386_analyze_struct_return,
8839         i386_skip_probe, i386_analyze_frame_setup,
8840         i386_analyze_register_saves, i386_analyze_prologue,
8841         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8842         i386_frame_prev_register, i386_sigtramp_frame_cache,
8843         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8844         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8845         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8846         New functions.
8847         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8848         New variables.
8849         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8850         I386_EAX_REGNUM and I386_EDX_REGNUM.
8851         (i386_extract_return_value, i386_store_return_value): Use
8852         I386_ST0_REGNUM where appropriate.
8853         (i386_extract_struct_value_address): Rewrite to use extract_address.
8854         (i386_svr4_pc_in_sigtramp): Add comment.
8855         (i386_svr4_sigcontext_addr): Rewrite.
8856         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8857         TDEP->sc_sp_offset.
8858         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8859         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8860         of new defines.  Set push_dummy_call, don't set
8861         deprecated_push_arguments, deprecated_push_return_address,
8862         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8863         deprecated_frame_chain, deprecated_frame_saved_pc,
8864         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8865         save_dummy_frame_tos, unwind_pc.  Call
8866         frame_unwind_append_predicate and frame_base_set_default.  Don't
8867         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8868         Don't set frameless_function_invocation.  Don't set
8869         deprecated_register_bytes, deprecated_register_size,
8870         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8871         * i386-linux-tdep.c: Fix formatting in some comments.
8872         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8873         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8874         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8875         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8876         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8877         redundant parentheses.
8878         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8879         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8880         (find_minsym_and_objfile): Change name of second argument.
8881         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8882         changed.  Use frame_pc_unwind instead of
8883         DEPRECATED_SAVED_PC_AFTER_CALL.
8884         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8885         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8886         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8887         unwinder.
8888         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8889         "dummy-frame.h".
8890         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8891         (_initialize_i386_cygwin_tdep): New prototype.
8892         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8893         deprecated_frame_chain_valid.
8894         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8895         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8896         Rely on the SVR4 defaults.
8897         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8898         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8899
8900 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8901
8902         * infcall.c (call_function_by_hand): Always call
8903         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8904
8905 2003-05-30  Richard Henderson  <rth@redhat.com>
8906
8907         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8908         increment.
8909
8910 2003-05-29  Jim Blandy  <jimb@redhat.com>
8911
8912         Use gdbarch methods for solib stuff on PowerPC Linux.
8913         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8914         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8915         show through.
8916         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8917         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8918         giving the same effect as the #definitions above.
8919
8920 2003-05-29  Adam Fedor  <fedor@gnu.org>
8921
8922         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8923         (find_implementation_from_class): Replace it with the standard
8924         case i.e. do nothing.
8925
8926 2003-05-29  Richard Henderson  <rth@redhat.com>
8927
8928         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8929         (alpha_linux_sigtramp_offset): Use it.  Make static.
8930         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8931         update for new frame model.
8932         * alpha-mdebug-tdep.c: New file.
8933         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8934         (alpha_osf1_init_abi): Install it.
8935         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8936         (linked_proc_desc_table): Remove.
8937         (alpha_frame_past_sigtramp_frame): Remove.
8938         (alpha_dynamic_sigtramp_offset): Remove.
8939         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8940         (alpha_proc_desc_is_dyn_sigtramp): Remove.
8941         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8942         (push_sigtramp_desc): Remove.
8943         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8944         (alpha_cannot_store_register): Likewise.
8945         (alpha_sigcontext_addr): Remove.
8946         (alpha_find_saved_regs): Remove.
8947         (alpha_frame_init_saved_regs): Remove.
8948         (alpha_init_frame_pc_first): Remove.
8949         (read_next_frame_reg): Remove.
8950         (alpha_frame_saved_pc): Remove.
8951         (alpha_saved_pc_after_call): Remove.
8952         (temp_proc_desc, temp_saved_regs): Remove.
8953         (alpha_about_to_return): Remove.
8954         (cached_proc_desc): Remove.
8955         (alpha_frame_chain): Remove.
8956         (alpha_print_extra_frame_info): Remove.
8957         (alpha_init_extra_frame_info): Remove.
8958         (alpha_frame_locals_address): Remove.
8959         (alpha_frame_args_address): Remove.
8960         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8961         (alpha_push_dummy_frame): Remove.
8962         (alpha_pop_frame): Remove.
8963         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8964         (alpha_read_insn): New.
8965         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8966         for different insn encodings.
8967         (alpha_in_lenient_prologue): Remove.
8968         (struct alpha_sigtramp_unwind_cache): New.
8969         (alpha_sigtramp_frame_unwind_cache): New.
8970         (alpha_sigtramp_register_address): New.
8971         (alpha_sigtramp_frame_this_id): New.
8972         (alpha_sigtramp_frame_prev_register): New.
8973         (alpha_sigtramp_frame_unwind): New.
8974         (alpha_sigtramp_frame_p): New.
8975         (struct alpha_heuristic_unwind_cache): New.
8976         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8977         don't count nop insns that occur between functions.
8978         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8979         heuristic_proc_desc, but without the mdebug wrapping.
8980         (alpha_heuristic_frame_this_id): New.
8981         (alpha_heuristic_frame_prev_register): New.
8982         (alpha_heuristic_frame_unwind): New.
8983         (alpha_heuristic_frame_p): New.
8984         (alpha_heuristic_frame_base_address): New.
8985         (alpha_heuristic_frame_base): New.
8986         (alpha_unwind_dummy_id): New.
8987         (alpha_unwind_pc): New.
8988         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
8989         frame related deprecated initializations; install replacements.
8990         (alpha_dump_tdep): Remove.
8991         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8992         (alpha_read_insn, alpha_after_prologue,
8993         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8994         alpha_heuristic_frame_prev_register,
8995         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8996         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8997         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8998         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8999
9000 2003-05-29  Andrew Cagney  <cagney@redhat.com>
9001
9002         * gdb_assert.h (gdb_assert_fail): Provide different definitions
9003         dependant on the availability of ASSERT_FUNCTION.
9004         (ASSERT_FUNCTION): Do not define when there is no function name.
9005
9006 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
9007
9008         From Jimi X <jimix@watson.ibm.com>:
9009         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
9010
9011 2003-05-28  Jim Blandy  <jimb@redhat.com>
9012
9013         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9014         argument to ptrace to int; the system headers should give it the
9015         right type, and pointers don't fit in ints on powerpc64-*-*.
9016
9017 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
9018
9019         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
9020         DW_TAG_catch_block.
9021
9022 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
9023
9024         * stabsread.c (dbx_lookup_type): Make static.
9025         (read_type): Ditto.
9026         (add_undefined_type): Ditto.
9027         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
9028         not export.
9029
9030 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
9031
9032         * hpread.c (hpread_has_name): Make static.
9033         (hpread_psymtab_to_symtab): Ditto.
9034         (file_exists): Ditto.
9035         (hpread_call_pxdb): Ditto.
9036         (hpread_pxdb_needed): Ditto.
9037         (hpread_quick_traverse): Ditto.
9038         (hpread_get_header): Ditto.
9039         (hpread_get_lntt): Ditto.
9040         (hpread_get_slt): Ditto.
9041         (class_of): Ditto.
9042
9043 2003-05-25  Andreas Schwab  <schwab@suse.de>
9044
9045         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
9046         stack_align and deprecated_extra_stack_alignment_needed.
9047         (m68k_stack_align): Delete.
9048
9049         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
9050         (m68k_register_virtual_size): Likewise.
9051         (altos_skip_prologue): Remove obsolete function.
9052         (isi_frame_num_args): Likewise.
9053         (news_frame_num_args): Likewise.
9054         (m68k_fix_call_dummy): Make static.
9055         (m68k_push_dummy_frame): Likewise.
9056         (m68k_pop_frame): Likewise.
9057         (m68k_skip_prologue): Likewise.
9058         (m68k_frame_init_saved_regs): Likewise.
9059         (m68k_saved_pc_after_call): Likewise.
9060         (m68k_get_longjmp_target): Make multi-arch.
9061         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
9062         structure.  Register m68k_get_longjmp_target if enabled.
9063         * m68k-tdep.h (struct gdbarch_tdep): Define.
9064         * config/m68k/tm-m68k.h: Don't include "regcache.h".
9065
9066         * Makefile.in (config.status): Also depend on configure.tgt
9067         and configure.host.
9068         (m68klinux-tdep.o): Update dependencies.
9069         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
9070         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
9071         (M68K_LINUX_JB_PC): Define.
9072         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
9073         and take additional parameter.
9074         (m68k_linux_sigtramp_saved_pc): Update.
9075         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
9076         m68k_linux_pc_in_sigtramp, in_plt_section,
9077         find_solib_trampoline_target.
9078         * config/m68k/tm-linux.h: Don't include any tm headers.
9079         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9080         (JB_ELEMENT_SIZE): Likewise.
9081         (JB_PC): Likewise.
9082         (GET_LONGJMP_TARGET): Likewise.
9083         (IN_SIGTRAMP): Likewise.
9084         (SVR4_SHARED_LIBS): Define this and include "solib.h".
9085
9086 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
9087
9088         * sparc-tdep.c (sparc32_do_push_arguments): New function.
9089         (sparc32_push_arguments): Re-implement by calling
9090         sparc32_do_push_arguments.
9091
9092 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
9093
9094         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9095         SPARC_O1_REGNUM): New defines.
9096         (sparc32_extract_return_value): Rewrite to operate on a regcache.
9097         (sparc32_store_return_value): New function.
9098         (sparc_extract_struct_value_address): Rewrite to operate on a
9099         regcache.
9100         (sparc_gdbarch_init): Don't set
9101         deprecated_extract_struct_value_address.  Set
9102         extract_struct_value_address instead. Don't set
9103         deprecated_extract_return_value and deprecated_store_return_value
9104         for 32-bit targets.  Set extract_return_value and
9105         store_return_value instead.
9106         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
9107         DEPRECATED_EXTRACT_RETURN_VALUE,
9108         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9109         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9110         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9111         (sparc_store_return_value): Remove prototype.
9112         (sparc32_store_return_value): New prototype.
9113         (sparc32_extract_return_value, sparc_extract_struct_value_address):
9114         Adjust prototypes.
9115
9116 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
9117
9118         * sparcnbsd-tdep.c: Include "gdb_string.h".
9119
9120 2003-05-23  Andrew Cagney  <cagney@redhat.com>
9121
9122         * p-valprint.c (pascal_val_print): Replace extract_address with
9123         the inline equivalent extract_unsigned_integer.
9124         * jv-valprint.c (java_value_print): Ditto.
9125         * ada-valprint.c (ada_val_print_1): Ditto.
9126         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9127
9128 2003-05-23  Theodore A. Roth  <troth@openavr.org>
9129
9130         * blockframe.c (frameless_look_for_prologue): Remove unused
9131         after_prologue variable.
9132
9133 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
9134
9135         * blockframe.c (get_pc_function_start): Rewrite to avoid
9136         asignments in if-statements.
9137
9138 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
9139
9140         Committed by Elena Zannoni  <ezannoni@redhat.com>.
9141         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
9142         files, don't relocate absolute symbols (and do use mst_abs).
9143
9144 2003-05-23  Andrew Cagney  <cagney@redhat.com>
9145
9146         * objc-lang.c: Include "gdb_assert.h".
9147         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9148         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9149         (gdb_check, gdb_check_fatal): Delete functions.
9150         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9151         gdb_assert.
9152         (parse_selector, parse_method, find_methods, find_imps): Ditto.
9153         * Makefile.in (objc-lang.o): Update dependencies.
9154
9155 2003-05-22  Ian Lance Taylor  <ian@airs.com>
9156
9157         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9158         with fprintf_filtered, not fprintf_unfiltered.
9159
9160 2003-05-22  Andrew Cagney  <cagney@redhat.com>
9161
9162         * stack.c (frame_info): Inline extract_address, replacing it with
9163         extract_unsigned_integer.
9164         * findvar.c (unsigned_pointer_to_address): Ditto.
9165         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9166         * dwarf2expr.c (dwarf2_read_address): Ditto.
9167         * frame.c (frame_pc_unwind): Update comment.
9168         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9169
9170 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
9171
9172         * infptrace.c (detach): Call print_sys_errmsg rather than
9173         perror_with_name to issue warning message when errno is non-zero
9174         after calling ptrace detach.
9175
9176 2003-05-21  J. Brobecker  <brobecker@gnat.com>
9177
9178         * config/pa/tm-hppa.h: Delete some unused macros. Move some
9179         macro definitions from here...
9180         * hppa-tdep.c: ...to there.
9181
9182 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
9183
9184         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9185         register_ptrace_addr().  Fix all callers.
9186
9187 2003-05-21  Andreas Schwab  <schwab@suse.de>
9188
9189         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9190         dependencies.
9191         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9192         end.
9193         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9194         (_initialize_m68k_linux_tdep): New function.
9195         (m68k_linux_frame_saved_pc): Make static.
9196         (m68k_linux_extract_return_value): Likewise.
9197         (m68k_linux_store_return_value): Likewise.
9198         (m68k_linux_extract_struct_value_address): Likewise.
9199         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9200         Remove.
9201         (DEPRECATED_STORE_RETURN_VALUE): Remove.
9202         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9203         (DEPRECATED_FRAME_SAVED_PC): Remove.
9204
9205 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
9206
9207         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9208         regset numbering rather than our own.
9209
9210 2003-05-19  David Carlton  <carlton@bactrian.org>
9211
9212         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9213
9214 2003-05-19  David Carlton  <carlton@bactrian.org>
9215
9216         Partial fix for PR c++/827.
9217         * cp-support.h: Include symtab.h.
9218         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9219         * cp-namespace.c: Update contributors.
9220         (cp_lookup_symbol_nonlocal): New.
9221         (lookup_namespace_scope, cp_lookup_symbol_namespace)
9222         (lookup_symbol_file): Ditto.
9223         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9224         * block.h: Declare block_scope, block_using, block_global_block.
9225         * block.c (block_scope): New.
9226         (block_using, block_global_block): Ditto.
9227         * Makefile.in (cp_support_h): Depend on symtab_h.
9228         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9229
9230 2003-05-19  David Carlton  <carlton@bactrian.org>
9231
9232         * language.h (struct language_defn): Add 'la_value_of_this'
9233         and 'la_lookup_symbol_nonlocal' members.
9234         * symtab.h: Declare basic_lookup_symbol_nonlocal,
9235         lookup_symbol_static, lookup_symbol_global,
9236         lookup_symbol_aux_block.
9237         * symtab.c (lookup_symbol_aux): Call language hooks to determine
9238         if we should search fields of this and how to do static/global
9239         lookup.
9240         (lookup_symbol_aux_block): Make extern.
9241         (basic_lookup_symbol_nonlocal): New.
9242         (lookup_symbol_static, lookup_symbol_global): Ditto.
9243         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9244         'la_lookup_symbol_nonlocal' members.
9245         * c-lang.c (c_language_defn, cplus_language_defn)
9246         (asm_language_defn, minimal_language_defn): Ditto.
9247         * jv-lang.c (java_language_defn): Ditto.
9248         * language.c (unknown_language_defn, auto_language_defn)
9249         (local_language_defn): Ditto.
9250         * m2-lang.c (m2_language_defn): Ditto.
9251         * objc-lang.c (objc_language_defn): Ditto.
9252         * scm-lang.c (scm_language_defn): Ditto.
9253         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9254         * p-lang.c (pascal_language_defn): Ditto for both.
9255         * Makefile.in (f-lang.o): Depend on value_h.
9256         (p-lang.o): Ditto.
9257
9258 2003-05-19  David Carlton  <carlton@bactrian.org>
9259
9260         * block.h: Declare block_static_block.
9261         * block.c (block_static_block): New.
9262         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9263         lookup_symbol_aux_local, calling block_static_block instead.
9264         (lookup_symbol_aux_local): Delete 'static_block' argument.
9265
9266 2003-05-19  David Carlton  <carlton@bactrian.org>
9267
9268         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9269
9270 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
9271
9272         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9273         register numbers mapping.
9274
9275 2003-05-18  Adam Fedor  <fedor@gnu.org>
9276
9277         * symtab.c (completion_list_objc_symbol): New function.
9278         (make_symbol_completion_list): Use it to add ObjC symbols
9279         when looking though the list.
9280         (language_search_unquoted_string): New function.
9281         (make_file_symbol_completion_list): Use it.
9282
9283 2003-05-18  Andreas Schwab  <schwab@suse.de>
9284
9285         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9286         dependencies.
9287         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9288         as m68k_linux_extract_return_value.
9289         (DEPRECATED_STORE_RETURN_VALUE): Define as
9290         m68k_linux_store_return_value.
9291         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9292         m68k_linux_extract_struct_value_address.
9293         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9294         get_next_frame, get_frame_base, get_frame_pc.
9295         (m68k_linux_frame_saved_pc): Use get_frame_base.
9296         (m68k_linux_extract_return_value): New function.
9297         (m68k_linux_store_return_value): New function.
9298         (m68k_linux_extract_struct_value_address): New function.
9299         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9300
9301         * c-exp.y (typebase): Remove duplicate occurence of
9302         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
9303         of lookup_signed_typename.
9304
9305 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
9306
9307         * dwarf2loc.c (find_location_expression): Change type of second
9308         argument to `size_t *'.
9309         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9310         for size variable.
9311
9312 2003-05-18  David Carlton  <carlton@bactrian.org>
9313
9314         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9315         'linkage_name'.  Add comment.
9316         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9317         'linkage_name'.
9318         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9319         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9320         (lookup_block_symbol): Ditto.
9321
9322 2003-05-16  Andrew Cagney  <cagney@redhat.com>
9323
9324         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9325         * gdbarch.h, gdbarch.c: Re-generate.
9326         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9327         * TODO (REGISTER_BYTES): Delete reference.
9328         * alpha-tdep.c (alpha_gdbarch_init): Update.
9329         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9330         * x86-64-tdep.c (x86_64_init_abi): Update.
9331         * vax-tdep.c (vax_gdbarch_init): Update.
9332         * v850-tdep.c (v850_gdbarch_init): Update.
9333         * sparc-tdep.c (sparc_gdbarch_init): Update.
9334         * sh-tdep.c (sh_gdbarch_init): Update.
9335         * s390-tdep.c (s390_gdbarch_init): Update.
9336         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9337         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9338         (ns32k_gdbarch_init_32382): Update.
9339         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9340         * mcore-tdep.c (mcore_gdbarch_init): Update.
9341         * m68k-tdep.c (m68k_gdbarch_init): Update.
9342         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9343         * ia64-tdep.c (ia64_gdbarch_init): Update.
9344         * i386-tdep.c (i386_gdbarch_init): Update.
9345         * i386-linux-tdep.c (i386_linux_init_abi): Update.
9346         * hppa-tdep.c (hppa_gdbarch_init): Update.
9347         * h8300-tdep.c (h8300_gdbarch_init): Update.
9348         * frv-tdep.c (frv_gdbarch_init): Update.
9349         * cris-tdep.c (cris_gdbarch_init): Update.
9350         * avr-tdep.c (avr_gdbarch_init): Update.
9351         * arm-tdep.c (arm_gdbarch_init): Update.
9352         * sparc-tdep.c (sparc_pop_frame): Update.
9353         * rs6000-tdep.c (rs6000_pop_frame): Update.
9354         * remote.c (init_remote_state): Update.
9355         (remote_prepare_to_store): Update.
9356         * remote-vx.c (vx_prepare_to_store): Update.
9357         * remote-sds.c (sds_fetch_registers): Update.
9358         (sds_prepare_to_store): Update.
9359         * remote-array.c: Update.
9360         * regcache.c (init_legacy_regcache_descr): Update.
9361         (init_regcache_descr): Update.
9362         * mips-tdep.c (mips_eabi_extract_return_value): Update.
9363         (mips_o64_extract_return_value): Update.
9364         * irix5-nat.c (fetch_core_registers): Update.
9365         * irix4-nat.c (fetch_core_registers): Update.
9366         * i386-tdep.h: Update.
9367         * hppa-tdep.c (pa_do_registers_info): Update.
9368         (pa_do_strcat_registers_info): Update.
9369         * cris-tdep.c (cris_register_bytes_ok): Update.
9370         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9371         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9372         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9373         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9374         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9375         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9376         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9377         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9378         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9379         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9380         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9381         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9382         (REGISTER_BYTES_OK): Update.
9383         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9384         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9385
9386 2003-05-16  Ian Lance Taylor  <ian@airs.com>
9387
9388         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9389         (vax_print_insn, print_insn_arg): Remove static functions.
9390         (vax_gdbarch_init): Call set_gdbarch_print_insn with
9391         print_insn_vax from opcodes library.
9392         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9393
9394 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9395
9396         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9397         * target.h (memory_breakpoint_from_pc): Delete declaration.
9398         * mem-break.c (memory_breakpoint_from_pc): Delete function.
9399         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9400         * monitor.c (monitor_insert_breakpoint): Use
9401         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9402         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9403         * gdbarch.h, gdbarch.c: Re-generate.
9404         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9405         (sparc_gdbarch_init): Set breakpoint_from_pc to
9406         sparc_breakpoint_from_pc.
9407         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9408         (BREAKPOINT_FROM_PC): Define.
9409         (sparc_breakpoint_from_pc): Declare.
9410         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9411         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9412         (BREAKPOINT_FROM_PC): Define.
9413         (BREAKPOINT): Delete macro.
9414         * target.h: Update comment.
9415         * s390-tdep.c (s390_gdbarch_init): Update comments.
9416         * remote.c: Update comments.
9417         * remote-mips.c: Update comments.
9418         * proc-api.c (write_with_trace): Do not check for a breakpoint.
9419         * mem-break.c: Update comment.
9420         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9421         (ia64_memory_insert_breakpoint): Update.
9422         * config/sparc/tm-sparc.h: Update comment.
9423         * config/pa/tm-hppa64.h: Update comment.
9424         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9425         (rs6000_breakpoint_from_pc): Update.
9426         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9427         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9428         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9429         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9430         (mips_breakpoint_from_pc): Update.
9431         (mips_dump_tdep): Update.
9432
9433         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9434         * minsyms.c (lookup_minimal_symbol): Inline
9435         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
9436
9437         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9438         * p-valprint.c (pascal_object_print_value_fields): Ditto.
9439         * p-lang.c (pascal_printstr): Ditto.
9440         * objc-lang.c (objc_printstr): Ditto.
9441         * m2-lang.c (m2_printstr): Ditto.
9442         * jv-valprint.c (java_print_value_fields): Ditto.
9443         * f-lang.c (f_printstr): Ditto.
9444         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
9445         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9446         for repeat_count_threshold.
9447         * Makefile.in (cp-valprint.o): Update dependencies.
9448
9449 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
9450
9451         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9452         (examine_prologue): Support looking through leaf functions, knowing
9453         they start with mov r2,r12.  Support skipping over indirect stores
9454         of the input registers.  Upon hitting a non-nop branch instruction
9455         or predicated instruction, bail out by setting lim_pc to the current
9456         pc value in the loop.  At the end, if the lim_pc value is still
9457         beyond our calculated value and we have trust_limit set,
9458         use the lim_pc value.
9459
9460 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9461
9462         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9463         generic_find_dummy_frame.
9464         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9465         (deprecated_generic_find_dummy_frame): Update.
9466         (deprecated_read_register_dummy): Update.
9467         * frame.c (deprecated_generic_get_saved_register): Update.
9468
9469 2003-05-15  Theodore A. Roth  <troth@openavr.org>
9470
9471         * avr-tdep.c (avr_breakpoint_from_pc): New function.
9472         (avr_gdbarch_init): Set breakpoint_from_pc method.
9473
9474 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9475
9476         * regcache.c (build_regcache): Set deprecated_register_valid
9477         directly.
9478         (deprecated_grub_regcache_for_register_valid): Delete function.
9479         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9480         declaration.
9481
9482 2003-05-15  David Carlton  <carlton@bactrian.org>
9483
9484         Committed by Elena Zannoni <ezannoni@redhat.com>
9485         * symtab.c (lookup_symbol_aux): Delete calls to
9486         lookup_symbol_aux_minsyms.
9487         (lookup_symbol_aux_minsyms): Comment out function and
9488         prototype. Delete lookup by mangled name.
9489
9490 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
9491
9492         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9493         correctly indicate an empty stack and ``stack_allocated'' to the
9494         indicate the number of elements initially allocated.
9495         (dwarf_expr_grow_stack): Simplify method for computing new
9496         stack size.  Don't loop infinitely if ``stack_len'' is zero.
9497         (execute_stack_op): Move ``ctx->in_reg'' initialization
9498         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9499         be used in conjuction with DW_OP_piece.  Revise error message
9500         accordingly.
9501
9502 2003-05-14  Theodore A. Roth  <troth@openavr.org>
9503
9504         * MAINTAINERS: Update my email address.
9505         * avr-tdep.c: Ditto.
9506
9507 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
9508
9509         * symtab.h (enum domain_enum): Rename from namespace_enum.
9510         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9511         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9512         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9513         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9514         TYPES_NAMESPACE, METHODS_NAMESPACE.
9515         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9516         (struct symbol, struct partial_symbol): Rename field
9517         'namespace_enum namespace' to 'domain_enum domain'.
9518         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9519         Delete old define kludge for namespace.
9520
9521         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9522         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9523         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9524         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9525         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9526         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9527         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9528         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9529         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9530         occurrences of the above.
9531
9532 2003-05-14  Ian Lance Taylor  <ian@airs.com>
9533
9534         * Makefile.in (install-only): Use $(SHELL) when running
9535         mkinstalldirs.
9536
9537 2003-05-13  Ian Lance Taylor  <ian@airs.com>
9538
9539         * MAINTAINERS (write after approval): Add myself.
9540
9541         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9542         second and third arguments.
9543         * ser-tcp.c (_initialize_ser_tcp): Likewise.
9544         * ser-unix.c (_initialize_ser_hardwire): Likewise.
9545
9546 2003-05-13  Andrew Cagney  <cagney@redhat.com>
9547
9548         * defs.h (store_address): Delete declaration.
9549         findvar.c (store_address): Delete function.
9550         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9551         store_unsigned_integer.
9552         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9553         * v850-tdep.c (v850_push_arguments): Ditto.
9554         * sparc-tdep.c (sparc_get_saved_register): Ditto.
9555         * sh-tdep.c (sh64_get_saved_register): Ditto.
9556         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9557         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9558         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9559         (mips_get_saved_register): Ditto.
9560         * ia64-tdep.c (ia64_get_saved_register): Ditto.
9561         (find_func_descr, ia64_push_arguments): Ditto.
9562         * i386-tdep.c (i386_push_arguments): Ditto.
9563         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9564         * frv-tdep.c (frv_push_arguments): Ditto.
9565         * frame.c (legacy_saved_regs_prev_register): Ditto.
9566         (deprecated_generic_get_saved_register): Ditto.
9567         * findvar.c (unsigned_address_to_pointer): Ditto.
9568         * dwarf2read.c (dwarf2_const_value): Ditto.
9569         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9570         * alpha-tdep.c (alpha_push_arguments): Ditto.
9571
9572 2003-05-12  J. Brobecker  <brobecker@gnat.com>
9573
9574         * NEWS: Mention that the hppa-hpux port has been partially
9575         multiarched (32bit ABIT only, so far).
9576
9577 2003-05-11  Andrew Cagney  <cagney@redhat.com>
9578
9579         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9580         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9581         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9582         sim/testsuite/sim/arm/misaligned2.ms, and
9583         sim/testsuite/sim/arm/misaligned3.ms.
9584         * disasm.h (struct ui_file): Add opaque struct declaration.
9585         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9586         * frame.h (struct ui_file): Ditto.
9587
9588 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
9589
9590         * value.h: Pretty print.
9591
9592 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
9593
9594         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9595
9596 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9597
9598         * regcache.h (max_register_size): Delete declaration.
9599         * regcache.c (max_register_size): Delete function.
9600         (struct regcache_descr): Delete field "max_register_size".
9601         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9602         registers fit in MAX_REGISTER_SIZE.
9603         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9604         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9605         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9606         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9607         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9608         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9609         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9610         * dve3900-rom.c, hppa-tdep.c: Ditto.
9611
9612 2003-05-08  David Carlton  <carlton@math.stanford.edu>
9613
9614         * valops.c (push_word): Fix typo.
9615
9616 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9617
9618         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9619         * gdbarch.h: Re-generate.
9620         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9621         (legacy_max_register_raw_size): Delete declaration.
9622         * regcache.c (legacy_max_register_raw_size): Delete function.
9623         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9624         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9625         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9626         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9627         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9628         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9629         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9630         * findvar.c, dwarf2cfi.c: Ditto.
9631
9632 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9633
9634         * mips-tdep.c (read_signed_register): New function, moved to here
9635         from "regcache.c".
9636         (read_signed_register_pid): Ditto.
9637         * regcache.c (read_signed_register_pid): Delete function, moved to
9638         "mips-tdep.c".
9639         (read_signed_register): Ditto.
9640         * regcache.h (read_signed_register): Delete declaration.
9641         (read_signed_register_pid): Delete declaration.
9642
9643 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9644
9645         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9646         * gdbarch.h: Re-generate.
9647         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9648         (legacy_max_register_virtual_size): Delete declaration.
9649         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9650         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9651         * tracepoint.c (memrange_sortmerge): Ditto.
9652         * sparc-tdep.c (sparc_print_registers): Ditto.
9653         * regcache.c (legacy_max_register_virtual_size): Delete function.
9654
9655 2002-05-08  J. Brobecker  <brobecker@gnat.com>
9656
9657         * fork-child.c (escape_bang_in_quoted_argument): New function.
9658         (fork_inferior): Escape '!' characters in quoted arguments
9659         only when needed.
9660
9661 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9662
9663         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9664         the language of the CU is not currently supported by GDB.
9665
9666 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9667
9668         * defs.h (language): Add language_minimal enum value.
9669         * c-lang.c (minimal_language_defn): New language definition.
9670         (_initialize_c_language): Add the new minimal language to the list
9671         of languages known to GDB.
9672
9673 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
9674
9675         * frame.c (get_frame_type): Don't attempt to lazily initialize
9676         frame's unwinder for legacy frames.
9677
9678 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9679
9680         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9681         and "regcache" parameters.
9682         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9683
9684 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9685
9686         * dwarf2read.c (dwarf_decode_lines): Only use output of
9687         check_cu_functions() when calling record_line().  Do not update
9688         the current address.
9689
9690 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9691
9692         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9693         code.
9694
9695 2003-05-07  Jim Blandy  <jimb@redhat.com>
9696
9697         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9698         'maint info symtabs' and 'maint info psymtabs'.
9699         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9700         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9701         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9702         Declarations updated.
9703         * maint.c (maintenance_list_command): Delete.
9704         (_initialize_maint_cmds): Update calls to add_cmd.
9705         * gdbcmd.h (maintenancelistlist): Delete declaration.
9706         * cli/cli-cmds.c (maintenancelistlist): Delete.
9707         (init_cmd_lists): Don't initialize it.
9708         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9709
9710 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9711
9712         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9713         "regcache".
9714         (d10v_print_registers_info): Update.
9715         (d10v_dmap_register, d10v_imap_register): Delete functions.
9716         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9717         and "imap_register".
9718         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9719         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9720         * arch-utils.c (generic_remote_translate_xfer_address): Add
9721         "regcache" and "gdbarch" parameters.
9722         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9723         parameter.  Change class to multi-arch.
9724         * gdbarch.h, gdbarch.c: Re-generate.
9725         * remote.c (remote_xfer_memory): Use
9726         gdbarch_remote_translate_xfer_address.
9727
9728 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9729
9730         * infrun.c (prev_pc): Move declaration ahead of proceed().
9731         (proceed): Refresh prev_pc value before resuming.
9732         (stop_stepping): Remove code to refresh prev_pc.
9733
9734 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9735
9736         * nto-tdep.c: Removed stray comment.
9737
9738 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9739
9740         * i386-nto-tdep.c: Fix old K&R function definitions.
9741         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9742         Also change add_show_from_set() call to add_setshow_cmd().
9743         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9744
9745 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9746
9747         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9748         (fprint_dummy_frames): New function.
9749         (maintenance_print_dummy_frames): New function.
9750         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9751         * frame.c (fprint_frame_id): Make global.
9752         * frame.h (fprint_frame_id): Declare.
9753         * Makefile.in (dummy-frame.o): Update dependencies.
9754
9755 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9756
9757         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9758         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9759         SIZEOF_CALL_DUMMY_WORDS.
9760         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9761         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9762         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9763         CALL_DUMMY_BREAKPOINT_OFFSET.
9764         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9765         CALL_DUMMY_START_OFFSET.
9766         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9767         * gdbarch.h, gdbarch.c: Re-generate.
9768         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9769         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9770         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9771         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9772         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9773         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9774         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9775         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9776         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9777         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9778         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9779         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9780         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9781         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9782         * config/sparc/tm-sparc.h: Update.
9783
9784 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9785
9786         * configure.tgt: Add i[3456]86-*-nto*.
9787         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9788         * nto-tdep.c: New file. Neutrino target support routines.
9789         * nto-tdep.h: New file. Neutrino target header.
9790         * config/tm-qnxnto.h: New file.
9791         * config/i386/i386nto.mt: New file.
9792         * config/i386/tm-i386nto.h: New file.
9793
9794 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9795
9796         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9797         (load_infrun_state): Ditto.
9798         (struct thread_info): Drop "prev_func_name" field.
9799         * thread.c (load_infrun_state): Update.
9800         (save_infrun_state): Update.
9801         * infrun.c (prev_func_name): Delete variable.
9802         (init_wait_for_inferior): Do not clear prev_func_name.
9803         (stop_stepping, keep_going, context_switch): Do not swap
9804         prev_func_name.
9805         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9806         instead of PC_IN_SIGTRAMP.
9807
9808 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9809
9810         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9811         REGISTER_BYTE with register_offset_hack.
9812         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9813         that REGISTER_BYTE is consistent with the regcache.
9814         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9815         * gdbarch.h, gdbarch.c: Regenerate.
9816
9817 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9818
9819         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9820         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9821
9822         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9823
9824 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9825
9826         From Thierry Schneider <tpschneider1@yahoo.com>
9827         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9828         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9829         (mi-cmd-symbol.o): Add rule.
9830
9831 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9832
9833         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9834         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9835         * gdbarch.h, gdbarch.c: Re-generate.
9836         * d10v-tdep.c (d10v_push_dummy_code): New function.
9837         (d10v_gdbarch_init): Set push_dummy_code.
9838         * infcall.c (legacy_push_dummy_code): New function.
9839         (generic_push_dummy_code): New function.
9840         (push_dummy_code): New function.
9841         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9842         instead of dummy_addr, to push_dummy_call.  Move call to
9843         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9844         switch.
9845         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9846
9847 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9848
9849         * disasm.h (print_insn): Declare.
9850         * disasm.c (init_gdb_disassemble_info): New function.
9851         (gdb_disassembly): Call init_gdb_disassemble_info.
9852         (gdb_print_insn): New function.
9853         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9854         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9855         * mcore-tdep.c: Include "disasm.h"
9856         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9857         * d10v-tdep.c: Include "disasm.h".
9858         (display_trace): Call gdb_print_insn, instead of print_insn.
9859         (print_insn): Delete function.
9860         * printcmd.c: Include "disasm.h".
9861         (print_insn): Delete function.
9862         (print_formatted): Call gdb_print_insn, instead of print_insn.
9863         * Makefile.in (printcmd.o): Update dependencies.
9864         (mcore-tdep.o, d10v-tdep.o): Ditto.
9865
9866 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9867
9868         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9869         PC_REGNUM, re-indent.
9870         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9871         PC_REGNUM isn't set.
9872
9873         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9874         * gdbarch.h, gdbarch.c: Re-generate.
9875         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9876         register_virtual_size, pc_regnum, or register_bytes.
9877         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9878         (d10v_register_type): Use D10V_PC_REGNUM.
9879         (d10v_print_registers_info, d10v_read_pc): Ditto.
9880         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9881         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9882
9883 2003-05-02  David Carlton  <carlton@bactrian.org>
9884
9885         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9886         the name with mstrsave.
9887
9888 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9889
9890         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9891         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9892         (host_charset_name, target_charset_name): New vars for use by
9893         set/show commands.
9894         (host_charset_enum, target_charset_enum): New enums for set/show
9895         commands.
9896         (set_charset_sfunc, set_host_charset_sfunc,
9897         set_target_charset_sfunc): New functions.
9898         (set_host_charset, set_target_charset): Make static.
9899         (list_charsets, set_host_charset_command,
9900         set_target_charset_command): Delete functions.
9901         (show_charset_command): Rewrite as....
9902         (show_charset): Hook this up with the set/show command mechanism.
9903         (_initialize_charset): Change names of charsets to match the
9904         set/show enums. Use host_charset_name and target_charset_name.
9905         Use set/show mechanism for charset, host-charset, target-charset
9906         commands. Do not make 'show host-charset' and 'show
9907         target-charset' be aliases of 'show charset'.
9908
9909         * charset.h (set_host_charset, set_target_charset): Don't export,
9910         they are not used outside the file.
9911
9912 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9913
9914         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9915         (gdb_disassembly): Make "di" non static, always initialize and
9916         cleanup.  Always use dis_asm_read_memory.
9917         (gdb_dis_asm_read_memory): Delete function.
9918
9919 2003-05-01  Andrew Cagney  <cagney@redhat.com>
9920
9921         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9922         (d10v_gdbarch_init): Set frame_align instead of stack_align.
9923
9924 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9925
9926         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9927         "tm_print_insn_info".
9928         (TARGET_PRINT_INSN_INFO): Delete macro.
9929         (dis_asm_read_memory): Delete function declaration.
9930         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9931         (tm_print_insn_info): Delete variable definition.
9932         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9933         * gdbarch.h, gdbarch.c: Re-generate.
9934         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9935         "deprecated_tm_print_insn_info".
9936         * mcore-tdep.c (mcore_dump_insn): Ditto.
9937         * mips-tdep.c (mips_gdbarch_init): Ditto.
9938         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9939         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9940         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9941         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9942         instead of TARGET_PRINT_INSN_INFO, add comment.
9943         * s390-tdep.c (s390_get_frame_info): Instead of
9944         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9945         (s390_check_function_end, s390_is_sigreturn): Ditto.
9946         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9947         (dis_asm_memory_error, dis_asm_print_address): Ditto.
9948         * disasm.c: Include "gdbcore.h".
9949         (_initialize_disasm): New function, initialize
9950         "deprecated_tm_print_insn_info".
9951         (deprecated_tm_print_insn_info): New variable.
9952         (dis_asm_read_memory): Moved from "corefile.c", made static.
9953         (dis_asm_print_address, dis_asm_memory_error): Ditto.
9954         * Makefile.in (disasm.o): Update dependencies.
9955
9956 2003-04-30  Andrew Cagney  <cagney@redhat.com>
9957
9958         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9959
9960 2003-04-29  Adam Fedor  <fedor@gnu.org>
9961
9962         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9963         * infcall.c (find_function_addr): Make non-static.
9964         * infcall.h (find_function_addr): Declare.
9965         * Makefile.in (eval.o): Update dependencies.
9966
9967 2003-04-28  Adam Fedor  <fedor@gnu.org>
9968
9969         * symtab.c (symbol_find_demangled_name): Check for and demangle
9970         ObjC symbols.
9971         (symbol_init_demangled_name): Init for language_objc as well.
9972
9973 2003-04-28  Andrew Cagney  <cagney@redhat.com>
9974
9975         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9976         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9977         * gdbarch.h, gdbarch.c: Re-generate.
9978         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9979         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9980         * inferior.h (deprecated_read_fp): Rename read_fp.
9981         (generic_target_read_fp): Delete declaration.
9982         * regcache.c (generic_target_read_fp): Delete function.
9983         (deprecated_read_fp): Replace read_fp, use
9984         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9985         * d10v-tdep.c (d10v_read_fp): Delete function.
9986         (d10v_gdbarch_init): Do not set deprecated_read_fp.
9987
9988         * sparc-tdep.c (sparc_gdbarch_init): Do not set
9989         deprecated_target_read_fp to generic_target_read_fp.
9990         * sh-tdep.c (sh_gdbarch_init): Ditto.
9991         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9992         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9993         * frv-tdep.c (frv_gdbarch_init): Ditto.
9994
9995         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9996         deprecated_fp_regnum.
9997         * x86-64-tdep.c (x86_64_init_abi): Ditto.
9998         * vax-tdep.c (vax_gdbarch_init): Ditto.
9999         * v850-tdep.c (v850_gdbarch_init): Ditto.
10000         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10001         * sh-tdep.c (sh_gdbarch_init): Ditto.
10002         * s390-tdep.c (s390_gdbarch_init): Ditto.
10003         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10004         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10005         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10006         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10007         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10008         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10009         * i386-tdep.c (i386_gdbarch_init): Ditto.
10010         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10011         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10012         * frv-tdep.c (frv_gdbarch_init): Ditto.
10013         * cris-tdep.c (cris_gdbarch_init): Ditto.
10014         * avr-tdep.c (avr_gdbarch_init): Ditto.
10015         * arm-tdep.c (arm_gdbarch_init): Ditto.
10016         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10017
10018         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
10019         * v850-tdep.c (v850_gdbarch_init): Ditto.
10020         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10021         * sh-tdep.c (sh_gdbarch_init): Ditto.
10022         * s390-tdep.c (s390_gdbarch_init): Ditto.
10023         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10024         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10025         * mips-tdep.c (mips_gdbarch_init): Ditto.
10026         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10027         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10028         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10029         * frv-tdep.c (frv_gdbarch_init): Ditto.
10030         * avr-tdep.c (avr_gdbarch_init): Ditto.
10031         * arm-tdep.c (arm_gdbarch_init): Ditto.
10032
10033         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
10034         DEPRECATED_FP_REGNUM.
10035         (vax_push_dummy_frame, vax_pop_frame): Ditto.
10036         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
10037         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10038         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
10039         (sparc32_register_virtual_type): Ditto.
10040         * sh-tdep.c (sh64_frame_chain): Ditto.
10041         (sh64_get_saved_register, sh64_pop_frame): Ditto.
10042         (sh_nofp_frame_init_saved_regs): Ditto.
10043         (sh64_nofp_frame_init_saved_regs): Ditto.
10044         (sh_fp_frame_init_saved_regs): Ditto.
10045         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10046         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10047         * procfs.c (procfs_fetch_registers): Ditto.
10048         (procfs_store_registers): Ditto.
10049         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
10050         (store_inferior_registers, fetch_core_registers): Ditto.
10051         (fetch_kcore_registers, clear_regs): Ditto.
10052         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
10053         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
10054         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
10055         * nlm/i386.c (do_status): Ditto.
10056         * mipsv4-nat.c (supply_gregset): Ditto.
10057         * mips-tdep.c: Ditto for comments.
10058         * mips-nat.c (fetch_inferior_registers): Ditto.
10059         (store_inferior_registers, fetch_core_registers): Ditto.
10060         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
10061         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
10062         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
10063         (i386_do_pop_frame, i386_register_type): Ditto.
10064         * hppa-tdep.c (hppa_frame_chain): Ditto.
10065         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
10066         (hppa_pop_frame, hppa_read_fp): Ditto.
10067         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
10068         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
10069         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
10070         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
10071         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
10072         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
10073         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
10074         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
10075         * blockframe.c: Ditto for comments.
10076         * arch-utils.h: Ditto for comments.
10077         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
10078         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10079         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10080         * alpha-tdep.h: Ditto for comments.
10081         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10082         (alpha_cannot_store_register): Ditto.
10083         (alpha_push_dummy_frame): Ditto.
10084         * alpha-nat.c (supply_gregset): Ditto.
10085
10086         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10087         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10088         * config/sparc/tm-sparc.h: Update comment.
10089
10090         * hppa-tdep.c (hppa_init_extra_frame_info): Use
10091         deprecated_read_fp instead of TARGET_READ_FP.
10092         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10093         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10094         * sparc-tdep.c (sparc_init_extra_frame_info): Use
10095         deprecated_read_fp instead of read_fp.
10096         * s390-tdep.c (s390_push_arguments): Ditto.
10097         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10098         * frame.h: Ditto in comments.
10099         * frame.c (legacy_get_prev_frame): Ditto.
10100         * dummy-frame.c (dummy_frame_this_id): Ditto.
10101         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10102
10103 2003-04-28  Andrew Cagney  <cagney@redhat.com>
10104
10105         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10106         * gdbarch.h, gdbarch.c: Re-generate.
10107         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10108         * vax-tdep.c (_initialize_vax_tdep): Update.
10109         * v850-tdep.c (_initialize_v850_tdep): Update.
10110         * sparc-tdep.c (_initialize_sparc_tdep): Update.
10111         * s390-tdep.c (_initialize_s390_tdep): Update.
10112         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10113         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10114         * mips-tdep.c (_initialize_mips_tdep): Update.
10115         * mcore-tdep.c (_initialize_mcore_tdep): Update.
10116         * m68k-tdep.c (_initialize_m68k_tdep): Update.
10117         * ia64-tdep.c (_initialize_ia64_tdep): Update.
10118         * hppa-tdep.c (_initialize_hppa_tdep): Update.
10119         * h8300-tdep.c (_initialize_h8300_tdep): Update.
10120         * frv-tdep.c (_initialize_frv_tdep): Update.
10121         * cris-tdep.c (cris_delayed_get_disassembler): Update.
10122         (_initialize_cris_tdep): Update.
10123         * arch-utils.c (legacy_print_insn): Update.
10124         * alpha-tdep.c (_initialize_alpha_tdep): Update.
10125
10126 2003-04-26  Adam Fedor  <fedor@gnu.org>
10127
10128         * linespec.c (decode_objc): New function to decode ObjC calls
10129         (decode_line_1): Check for ObjC calls (using decode_objc)
10130         * Makefile (linespec.o): Update dependencies.
10131
10132 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
10133
10134         * breakpoint.h (struct breakpoint_ops): New.
10135         (struct breakpoint): Add ops member.
10136
10137         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10138         (mention): Use new breakpoint ops member.
10139         (set_raw_breakpoint): Initialize ops field to NULL.
10140         (print_exception_catchpoint, print_one_exception_catchpoint)
10141         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10142         (gnu_v3_exception_catchpoint_ops): New.
10143         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10144
10145 2003-04-25  Adam Fedor  <fedor@gnu.org>
10146
10147         * Makefile.in (COMMON_OBS): Add objc-lang.o
10148
10149 2003-04-25  Andrew Cagney  <cagney@redhat.com>
10150
10151         * d10v-tdep.c (print_insn): Delete function.
10152         (display_trace): Use TARGET_PRINT_INSN.
10153         (_initialize_d10v_tdep): Do not set tm_print_insn.
10154         (d10v_gdbarch_init): Set print_insn.
10155
10156 2003-04-25  Andrew Cagney  <cagney@redhat.com>
10157
10158         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10159         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10160         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10161         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10162         (nr_dmap_regs, a0_regnum): ... new functions.
10163         (d10v_print_registers_info): Use a0_regnum, use register_size.
10164         (d10v_register_byte): Delete function.
10165         (d10v_register_raw_size): Delete function.
10166         (d10v_register_type): Use a0_regnum.
10167         (d10v_print_registers_info): Use a0_regnum.
10168         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10169         (d10v_gdbarch_init): Do not set register_byte or
10170         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10171         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10172         extract_address.
10173         (trace_command): Use XCALLOC.
10174         (print_insn): Delete reference to tm_print_insn.
10175         (saved_regs_unwinder): Use store_unsigned_integer instead of
10176         store_address.
10177         * frame.h (FRAME_OBSTACK_CALLOC): Define
10178
10179 2003-04-25  David Carlton  <carlton@bactrian.org>
10180
10181         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10182
10183 2003-04-24  Adam Fedor  <fedor@gnu.org>
10184
10185         * objc-lang.c: Include "valprint.h"
10186         * Makefile.in (objc-lang.o): Update dependencies.
10187
10188 2003-04-24  Adam Fedor  <fedor@gnu.org>
10189
10190         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
10191         architecture dependant compilation and mark as unimplemented
10192         (until they get put in the gdbarch vector).
10193
10194 2003-04-23  David Carlton  <carlton@bactrian.org>
10195
10196         * cp-support.c (cp_find_first_component): Accept 'operator' in
10197         more locations.
10198
10199 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10200
10201         * infcall.c (call_function_by_hand): Eliminate redundant
10202         indentation.  Move "saved_async" and "old_cleanups" to where they
10203         are needed.
10204
10205 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10206
10207         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10208         and "buffer".  Move the "name" code to where it is needed.
10209
10210 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10211
10212         * infcall.c (call_function_by_hand): Move variables "start_sp",
10213         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10214         code to ON_STACK switch branch.
10215
10216 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10217
10218         * infcall.c (call_function_by_hand): Make declaration of "i",
10219         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
10220         lint.
10221
10222 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10223
10224         * infcall.c (call_function_by_hand): Delete variable
10225         "n_method_args".  Localize "param_type"'s declaration to the loop
10226         that it is used.  Reinstate code assigning to said variable -
10227         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
10228         Rationalize code using "param_type".
10229
10230 2003-04-22  Andrew Cagney  <cagney@redhat.com>
10231
10232         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10233         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
10234         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
10235         to DEPRECATED_PUSH_RETURN_ADDRESS.
10236
10237 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
10238
10239         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10240         on the DWARF2 register number prior to fetching a register.
10241
10242 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10243
10244         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10245         Update all the tests using SOFT_FLOAT considering the fact that
10246         this macro was always set to 0.
10247         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10248         considering the fact that this macro was always set to 0.
10249         * hppa-tdep.h (hppa_store_return_value): Likewise.
10250         (hppa_extract_return_value): Likewise.
10251
10252 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10253
10254         * config/pa/tm-hppa.h: Remove obsolete code, was used by
10255         the hppa-pro target only.
10256
10257 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10258
10259         Ongoing multi-arch conversion effort for HP/UX:
10260         * config/pa/tm-hppa.h: Move all macro that are no longer
10261         defined now that GDB_MULTI_ARCH is now set to 1 from here...
10262         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10263
10264 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10265
10266         * config/pa/tm-hppa.h: Obsolete a section that was only used
10267         for hppa-pro.
10268
10269 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10270
10271         Ongoing multi-arch conversion for HP/UX.
10272         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10273         if already defined (allows hppa64 to stay non-multiarched for now).
10274         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10275
10276 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10277
10278         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10279
10280 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10281
10282         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10283         "i386_num_mmx_regs".
10284
10285 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10286
10287         * infcall.c: New file.
10288         * infcall.h: New file.
10289         * valarith.c: Include "infcall.h".
10290         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10291         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10292         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10293         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10294         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10295         (SFILES): Add "infcall.c"
10296         (COMMON_OBS): Add "infcall.o".
10297         (infcall.o): Specify dependencies.
10298         * value.h (call_function_by_hand): Delete declaration.
10299         * inferior.h (run_stack_dummy): Delete declaration.
10300         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10301         (run_stack_dummy): Move to "infcall.c", merged into
10302         call_function_by_hand.
10303         * valops.c (call_function_by_hand): Moved to "infcall.c".
10304         (find_function_addr, value_arg_coerce): Ditto.
10305         (unwindonsignal_p, coerce_float_to_double): Ditto.
10306         (_initialize_valops): Move "set/show coerce-float-to-double", and
10307         "set/show unwindonsignal" commands to "infcall.c".
10308         * v850-tdep.c, target.h: Update comments.
10309         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10310         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10311         (sh64_init_extra_frame_info): Update comments.
10312         * mn10300-tdep.c: Update comments.
10313         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10314         * config/sparc/tm-sparc.h: Update comments.
10315         * breakpoint.h: Update comments.
10316         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10317         * arm-tdep.c: Update comment.
10318
10319 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10320
10321         * i386-tdep.c (i386_num_register_names): New variable.
10322         (i386_num_mmx_regs): Renamed from mmx_num_regs.
10323         (MM0_REGNUM): Remove redundant parentheses in define.
10324         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10325         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10326         i386_mxcsr_regnum_p): Remove redundant parentheses.
10327         (i386_register_name): Use i386_num_register_names.
10328
10329         * i386-tdep.c (i386_extract_return_value,
10330         i386_store_return_value): Correct check for availability of
10331         floating-point registers.
10332
10333         * i386-tdep.c (i386_frame_num_args): Remove function.
10334         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10335
10336         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10337         mmx_regnum_to_fp_regnum.  Adjust all callers.
10338
10339         * i386-tdep.c (i386_get_longjmp_target): Use
10340         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10341         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
10342         extract_address.
10343
10344 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10345
10346         * core-regset.c: Update comments to reflect reality.  Re-order
10347         includes.
10348         (fetch_core_registers): Use switch instead of if.  Remove
10349         redundant prototype.
10350
10351 2003-04-18  Jim Blandy  <jimb@redhat.com>
10352
10353         * s390-tdep.c (s390_frame_align): New function.
10354         (s390_gdbarch_init): Register it with the gdbarch object.
10355
10356 2003-04-17  Richard Henderson  <rth@redhat.com>
10357
10358         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10359
10360 2003-04-17  Michael Snyder  <msnyder@redhat.com>
10361             Karen Bennet  <bennet@redhat.com>
10362
10363         Committed by Elena Zannoni  <ezannoni@redhat.com>
10364         * gdb_gcore.sh: New script to create a core dump of a process.
10365
10366 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
10367
10368         * values.c (value_being_returned): Don't fetch the return
10369         value if the return type is void.
10370
10371 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10372
10373         * thread-db.c: Reindented.
10374
10375 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10376
10377         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10378         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10379         as types.
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
10406
10407         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10408         the size of ``long double'' to 16, instead of 8.
10409
10410 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
10411
10412         * i386-linux-nat.c: Add some whitespace to make things more
10413         readable.
10414         (fetch_register, store_register, fetch_inferior_registers,
10415         store_inferior_registers): Get rid of assignment in if-statement.
10416         (store_register): Fix typo in error message.
10417
10418 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10419
10420         * utils.c (xmmalloc): Always allocate something, matches
10421         libiberty/xmalloc's semantics.
10422         (xmrealloc, xmcalloc): Ditto.
10423
10424 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10425
10426         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10427         update comments.
10428         (get_frame_type): Initialize unwind and type when needed.
10429         (get_frame_id, frame_register_unwind): Ditto.
10430
10431 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10432
10433         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10434         obsolete.
10435         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10436         * sparcl-stub.c: Obsolete file.
10437         * config/sparc/tm-sparclet.h: Obsolete file.
10438         * sparclet-stub.c: Obsolete file.
10439         * sparclet-rom.c: Obsolete file.
10440         * sparcl-tdep.c: Obsolete file.
10441         * config/sparc/tm-sparclite.h: Obsolete file.
10442         * config/sparc/sparclite.mt: Obsolete file.
10443         * config/sparc/sparclet.mt: Obsolete file.
10444         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10445         sparc86x-*-* obsolete.
10446
10447 2003-04-15  David Carlton  <carlton@math.stanford.edu>
10448
10449         * Makefile.in (SFILES): Add cp-namespace.c.
10450         (COMMON_OBS): Add cp-namespace.o.
10451         (block.o): Depend on gdb_obstack_h and cp_support_h.
10452         (buildsym.o): Depend on cp_support_h.
10453         (cp-namespace.o): New.
10454         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10455         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10456         (dwarf2read.o): Depend on cp_support_h.
10457         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10458         * dwarf2read.c (process_die): Set processing_has_namespace_info,
10459         processing_current_namespace.
10460         (read_namespace): Update processing_current_namespace; check for
10461         anonymous namespaces.
10462         (dwarf2_name): New function.
10463         (dwarf2_extension): Ditto.
10464         * cp-support.h: Update copyright, contributors.
10465         Add inclusion guards.
10466         Add opaque declaration for structs obstack, block, symbol.
10467         (struct using_direct): New struct.
10468         Add declarations for cp_find_first_component,
10469         cp_entire_prefix_len, processing_has_namespace_info,
10470         processing_current_namespace, cp_is_anonymous,
10471         cp_add_using_directive, cp_initialize_namespace,
10472         cp_finalize_namespace, cp_set_block_scope,
10473         cp_scan_for_anonymous_namespaces.
10474         * cp-namespace.c: New file.
10475         * cp-support.c: Update copyright.
10476         Include ctype.h, gdb_assert.h, gdbcmd.h.
10477         New variable maint_cplus_cmd_list.
10478         (cp_find_first_component): New function.
10479         (cp_entire_prefix_len, maint_cplus_command)
10480         (first_component_command, _initialize_cp_support): Ditto.
10481         * buildsym.c: Include cp-support.h.
10482         New variable using_list.
10483         (add_symbol_to_list): Check for anonymous namespaces.
10484         (finish_block): Set block's scope.
10485         (start_symtab): Initialize C++ namespace support.
10486         (end_symtab): Finalize C++ namespace support.
10487         * block.h: Add opaque declarations for structs
10488         block_namespace_info, using_direct, and obstack.
10489         Add declarations for block_set_scope and block_set_using.
10490         (struct block): Add 'language_specific' member.
10491         (BLOCK_NAMESPACE): New macro.
10492         * block.c: Include gdb_obstack.h and cp-support.h.
10493         (struct block_namespace_info): New struct.
10494         (block_set_scope): New function.
10495         (block_set_using, block_initialize_namespace): Ditto.
10496
10497 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
10498
10499         * solib-svr4.c (svr4_have_link_map_offsets): New function.
10500         (locate_base): Return early if there aren't any link map offsets.
10501         (svr4_solib_create_inferior_hook): Warn if shared library support
10502         is unavailable.
10503
10504 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10505
10506         * symtab.c (symbol_set_names): Add prefix when storing Java names
10507         in hash table.  Fix for PR java/1039.
10508
10509 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10510
10511         * symtab.c (symbol_set_names): Rename 'name' arg to
10512         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10513         * symtab.h: Change 'name' argument in declaration of
10514         symbol_set_names to 'linkage_name'.
10515         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10516
10517 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10518
10519         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10520         return the fully sign-extended register value.
10521         (get_frame_pointer): Ditto.
10522         (mips_pop_frame): Initialize "proc_desc" after checking for a
10523         dummy frame.
10524
10525 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10526
10527         * mips-tdep.c (mips_push_dummy_frame): Delete function.
10528         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10529         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10530         (mips_push_register): Delete function.
10531         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10532         PUSH_FP_REGNUM.
10533
10534 2003-04-14  Jim Blandy  <jimb@redhat.com>
10535
10536         * symmisc.c: #include "gdb_regex.h".
10537         (maintenance_list_symtabs, maintenance_list_psymtabs): New
10538         functions.
10539         * maint.c (maintenance_list_command): New function.
10540         (_initialize_maint_cmds): Register the above as commands.
10541         * symtab.h (maintenance_list_symtabs,
10542         maintenance_list_psymtabs): New declarations.
10543         * cli/cli-cmds.c (maintenancelistlist): New variable.
10544         (init_cmd_lists): Initialize it.
10545         * cli/cli-cmds.h (maintenancelistlist): New declaration.
10546         * gdbcmd.h (maintenancelistlist): New declaration.
10547         * Makefile.in (symmisc.o): Update dependencies.
10548
10549 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
10550
10551         * s390-nat.c: Include asm/types.h for addr_t.
10552
10553 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
10554
10555         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10556         actually incoming type.
10557
10558 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10559
10560         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10561         get_next_frame and get_frame_saved_regs.
10562
10563 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10564
10565         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10566         of gdbarch_num_regs.
10567
10568 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10569
10570         * frame.h: Mention what replaced what in "struct frame_info".
10571         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10572         deprecated_update_frame_base_hack and
10573         deprecated_update_frame_pc_hack.
10574         * hppa-tdep.c: Ditto.
10575
10576 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10577
10578         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10579         to read_reg and update its comment.  Remove regnum member.
10580         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10581         Don't call read_reg when setting in_reg.  Call read_reg to get
10582         the frame base if it's in a register.  Return the register number
10583         on the stack instead of in the context.  Remove extra arguments
10584         to read_reg.
10585         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10586         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10587         the register number on the expression stack.
10588         (needs_frame_read_reg): Remove extra arguments.
10589
10590 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10591
10592         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10593         made non-static.
10594         (execute_stack_op): All callers updated.
10595         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10596         * dwarf2loc.c (find_location_expression): New function.
10597         (dwarf_expr_frame_base): Call it.
10598         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10599         (dwarf2_tracepoint_var_ref): New function, broken out from
10600         locexpr_tracepoint_var_ref.
10601         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10602         Make static.
10603         (loclist_read_variable, loclist_read_needs_frame): New functions.
10604         (loclist_describe_location, loclist_tracepoint_var_ref): New
10605         functions.
10606         (dwarf2_loclist_funcs): New struct location_funcs.
10607         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10608         (struct dwarf2_locexpr_baton): Add comments.
10609         (dwarf2_loclist_funcs): New extern.
10610         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10611         base_address and base_known.
10612         (dwarf_loc_buffer): New variable.
10613         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10614         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10615         (dwarf2_has_info): Initialize dwarf_loc_offset.
10616         (dwarf2_build_psymtabs): Read in .debug_loc.
10617         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10618         DWARF_LOC_SIZE.
10619         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10620         here, from...
10621         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10622         cu_header.
10623         (dwarf2_symbol_mark_computed): Handle location lists.
10624
10625 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10626
10627         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10628         if the linkage name demangled successfully.
10629
10630 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10631
10632         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10633         disassmbly_flavour): Removed.
10634
10635         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10636
10637 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10638
10639         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10640
10641 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10642
10643         * frame.h (struct frame_info): Move definition from here ...
10644         * frame.c (struct frame_info): ... to here.
10645
10646 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10647
10648         * gdbthread.h (save_infrun_state): Delete parameter
10649         "prev_func_start".
10650         (struct thread_info): Delete field "prev_func_start".
10651         (load_infrun_state): Ditto.
10652         * thread.c (load_infrun_state, save_infrun_state): Update.
10653         * infrun.c (prev_func_start): Delete variable.
10654         (context_switch, init_wait_for_inferior): Update.
10655         (stop_stepping, keep_going): Update.
10656
10657 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10658
10659         * gdbarch.sh: Add missing opaque declarations.
10660         * gdbarch.h: Regnerate.
10661         * symtab.h: Add missing opaque declarations.
10662         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10663         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10664         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10665         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10666         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10667         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10668         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10669         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10670         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10671         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10672         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10673         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10674         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10675
10676 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10677
10678         * frame.c (get_frame_id): Return this frame's "id".
10679         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10680         function start.
10681         (legacy_saved_regs_this_id): Replace function body with
10682         internal-error.
10683         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10684         FRAME_OBSTACK_ZALLOC.
10685         (create_new_frame): Mark the frame ID as valid.
10686
10687 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
10688
10689         * Makefile.in (libbfd_h): Added missing setting.
10690         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10691         according to the selected ABI.
10692
10693 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
10694
10695         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10696
10697 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10698
10699         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10700         SAVED_PC_AFTER_CALL.
10701         * gdbarch.h, gdbarch.c: Regenerate.
10702         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10703         * x86-64-tdep.c (x86_64_init_abi): Update.
10704         * vax-tdep.c (vax_gdbarch_init): Update.
10705         * v850-tdep.c (v850_gdbarch_init): Update.
10706         * sparc-tdep.c (sparc_gdbarch_init): Update.
10707         * sh-tdep.c (sh_gdbarch_init): Update.
10708         * s390-tdep.c (s390_gdbarch_init): Update.
10709         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10710         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10711         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10712         * mips-tdep.c (mips_gdbarch_init): Update.
10713         * mcore-tdep.c (mcore_gdbarch_init): Update.
10714         * m68k-tdep.c (m68k_gdbarch_init): Update.
10715         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10716         * ia64-tdep.c (ia64_gdbarch_init): Update.
10717         (ia64_saved_pc_after_call): Update declaration.
10718         * i386ly-tdep.c (i386lynx_init_abi): Update.
10719         * i386-tdep.c (i386_gdbarch_init): Update.
10720         * hppa-tdep.c (hppa_gdbarch_init): Update.
10721         * h8300-tdep.c (h8300_gdbarch_init): Update.
10722         * frv-tdep.c (frv_gdbarch_init): Update.
10723         * cris-tdep.c (cris_gdbarch_init): Update.
10724         * avr-tdep.c (avr_gdbarch_init): Update.
10725         * arm-tdep.c (arm_gdbarch_init): Update.
10726         * alpha-tdep.c (alpha_gdbarch_init): Update.
10727         * ns32knbsd-nat.c (frame_num_args): Update.
10728         * ns32k-tdep.c (umax_frame_num_args): Update.
10729         * mips-tdep.c (mips_init_frame_pc_first): Update.
10730         * infrun.c (step_over_function): Update.
10731         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10732         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10733         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10734         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10735         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10736         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10737         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10738         * arch-utils.c (init_frame_pc_default): Update.
10739         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10740         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10741         declaration.
10742
10743 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10744
10745         * i387-tdep.c: Update copyright.
10746         (i387_to_double): Delete function.
10747         (double_to_i387): Delete function.
10748
10749 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10750
10751         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10752         frame's function's address.  Simplify.
10753         (d10v_frame_unwind_cache): Check that the frame's function is
10754         non-zero.
10755
10756 2003-04-10  Jim Blandy  <jimb@redhat.com>
10757
10758         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10759         call to set_gdbarch_deprecated_push_arguments.
10760
10761 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10762
10763         * frame.c (fprint_frame_id): New function.
10764         (fprint_frame_type, fprint_frame): New function.
10765         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10766         (create_sentinel_frame, get_frame_id): Ditto.
10767         (frame_id_p, frame_id_eq): Ditto.
10768         (frame_id_inner, create_new_frame): Ditto.
10769         (legacy_get_prev_frame, get_prev_frame): Ditto.
10770         (deprecated_update_frame_pc_hack): Ditto.
10771         (frame_register_unwind): Ditto.
10772         (deprecated_update_frame_base_hack): Ditto.
10773
10774 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10775
10776         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10777         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10778         frame_chain function.
10779         * Makefile.in: Add dependencies due to above change.
10780
10781 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10782
10783         * blockframe.c (legacy_frame_chain_valid): Move call to
10784         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10785         inside_entry_file.
10786
10787 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10788
10789         * frame.h (struct frame_id): Replace "pc" and "base" with
10790         "stack_addr" and "code_addr".  Update comments.
10791         (frame_id_build): Update parameter names and comment.
10792         (struct frame_info): Replace "id_p" and "id" with "this_id".
10793         * dummy-frame.c (dummy_frame_this_id): Update.
10794         * breakpoint.c (print_one_breakpoint): Update.
10795         * frame.c (get_frame_id): Update.
10796         (get_frame_base, frame_id_build): Update.
10797         (create_sentinel_frame, legacy_get_prev_frame): Update.
10798         (deprecated_update_frame_base_hack): Update.
10799         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10800         (frame_id_inner): Ditto.
10801
10802 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10803
10804         * defs.h (gdb_print_host_address): Make "addr" parameter a
10805         pointer constant.
10806         * utils.c (gdb_print_host_address): Update.
10807
10808 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10809
10810         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10811         register number for R0 is 0.
10812
10813 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10814
10815         * frame.h (struct gdbarch): Add opaque structure definition
10816         to avoid a compilation warning on LynxOS 4.0.
10817
10818 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10819
10820         * frame.h (struct frame_info): Delete field "pc".  Replace
10821         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10822         structure.
10823         * frame.c (frame_pc_unwind): Update.
10824         (create_sentinel_frame): Do not set "pc".
10825         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10826         (get_frame_pc): Call frame_pc_unwind.
10827         (deprecated_update_frame_pc_hack): Update.
10828         (create_new_frame): Use "pc" not "->pc".
10829
10830 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10831
10832         * frame.c (get_frame_id): Eliminate code updating "frame".
10833         (legacy_get_prev_frame): Ditto.
10834         (get_frame_base): Return id.base directly.
10835         (deprecated_update_frame_base_hack): Update "id.base".
10836         * frame.h (struct frame_info): Delete field "frame".
10837
10838 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10839
10840         * NEWS: Mention that the "Sequent family" is obsolete.
10841         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10842         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10843         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10844         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10845         * config/i386/tm-ptx4.h: Obsolete file.
10846         * config/i386/tm-ptx.h: Obsolete file.
10847         * symm-tdep.c: Obsolete file.
10848         * config/i386/symmetry.mt: Obsolete file.
10849         * config/i386/tm-symmetry.h: Obsolete file.
10850         * symm-nat.c: Obsolete file.
10851         * config/i386/nm-symmetry.h: Obsolete file.
10852         * config/i386/xm-symmetry.h: Obsolete file.
10853         * config/i386/symmetry.mh: Obsolete file.
10854         * config/i386/nm-ptx4.h: Obsolete file.
10855         * config/i386/ptx4.mh: Obsolete file.
10856         * config/i386/ptx.mt: Obsolete file.
10857         * config/i386/ptx.mh: Obsolete file.
10858         * config/i386/xm-ptx4.h: Obsolete file.
10859         * config/i386/xm-ptx.h: Obsolete file.
10860
10861 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10862
10863         Obsolete mips*-*-mach3*.
10864         * NEWS: Mention that mips*-*-mach3* is obsolete.
10865         * m3-nat.c: Obsolete file.
10866         * config/nm-m3.h: Obsolete file.
10867         * config/mips/tm-mipsm3.h: Obsolete file.
10868         * config/mips/mipsm3.mt: Obsolete file.
10869         * config/mips/mipsm3.mh: Obsolete file.
10870         * config/mips/xm-mipsm3.h: Obsolete file.
10871         * mipsm3-nat.c: Obsolete file.
10872         * configure.host: Obsolete mips-dec-mach3*.
10873         * configure.tgt: Obsolete mips*-*-mach3*.
10874
10875 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10876
10877         * doublest.h: Update copyright.
10878         (deprecated_store_floating, deprecated_extract_floating): Rename
10879         store_floating and extract_floating.  Update comments.
10880         * doublest.c: Update copyright.
10881         (extract_floating_by_length): Replace extract_floating.
10882         (store_floating_by_length): Replace store_floating.
10883         (deprecated_extract_floating): New function.
10884         (deprecated_store_floating): New function.
10885         (extract_typed_floating): Call extract_floating_by_length.
10886         (store_typed_floating): Call store_floating_by_length.
10887         * x86-64-tdep.c (x86_64_store_return_value): Update.
10888         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10889         (sh64_extract_return_value): Update.
10890         (sh_sh4_register_convert_to_virtual): Update.
10891         (sh_sh64_register_convert_to_virtual): Update.
10892         (sh_sh4_register_convert_to_raw): Update.
10893         (sh_sh64_register_convert_to_raw): Update.
10894         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10895         (rs6000_register_convert_to_raw): Update.
10896         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10897         (ia64_register_convert_to_raw): Update.
10898         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10899         (REGISTER_CONVERT_TO_VIRTUAL): Update.
10900         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10901         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10902         (alpha_register_convert_to_raw): Update.
10903
10904 2003-04-08  Andrew Cagney  <cagney@redhat.com>
10905
10906         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10907         * gdbarch.h, gdbarch.c: Re-generate.
10908         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10909         (d10v_gdbarch_init): Do not set saved_pc_after_call.
10910         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10911         conditionally, use frame_pc_unwind as an alternative.  Add
10912         comments.
10913         * arch-utils.c (init_frame_pc_default): Only call
10914         SAVED_PC_AFTER_CALL when available.
10915
10916 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10917
10918         * infrun.c (stop_soon): Rename from stop_soon_quietly.
10919         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10920         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10921         (start_remote): Ditto.
10922         (handle_inferior_event): Ditto.
10923         (save_inferior_status): Ditto.
10924         (restore_inferior_status): Ditto.
10925         * infcmd.c (attach_command): Ditto.
10926         * fork-child.c (startup_inferior): Ditto.
10927         * inferior.h (stop_soon): Rename from stop_soon_quietly.
10928         * alpha-tdep.c (heuristic_proc_start): Ditto.
10929         * mips-tdep.c (heuristic_proc_start): Ditto.
10930         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10931         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10932         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10933         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10934         * remote-vx.c (vx_create_inferior): Ditto.
10935
10936 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
10937
10938         * infrun.c (stop_soon_quietly): Make it an enum, to better
10939         override the default behavior of handle_inferior_event.
10940         (clear_proceed_status): Update uses of stop_soon_quietly to
10941         reflect that it is now an enum.
10942         (start_remote): Ditto.
10943         (handle_inferior_event): Change logic a bit if stop_soon_quietly
10944         is set to handle the new GNU/Linux kernel behavior for
10945         attach/sigstop.  Update uses of stop_soon_quietly.
10946         * inferior.h (enum stop_kind): New enum.
10947         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10948         Reset normal handle_inferior_event behavior, afterwards.
10949         * fork-child.c (startup_inferior): Update.
10950         * alpha-tdep.c (heuristic_proc_start): Update.
10951         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10952         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10953         * solib-osf.c (osf_solib_create_inferior_hook): Update.
10954         * solib-irix.c (irix_solib_create_inferior_hook): Update.
10955         * remote-vx.c (vx_create_inferior): Update.
10956         * mips-tdep.c (heuristic_proc_start): Update.
10957
10958 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
10959
10960         * disasm.c (dump_insns):  Move variables inside loop, or they will
10961         be freed more than once, causing wild memory corruptions.
10962         (gdb_disassembly): Look for the substring "-thread",
10963         instead of "-threads" in the target name, to make sure to find
10964         the 'multi-thread' target.  Also, make sure we do the right thing
10965         with the "core" target.
10966
10967 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
10968
10969         * mips-tdep.c (mips_print_fp_register): New function, created from
10970         do_fp_register_row().  Registers are now (also) printed as hex.
10971         Only one register is printed per row.
10972         (mips_print_register, do_fp_register_row): Print floating point
10973         registers with mips_print_fp_register().
10974
10975 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10976
10977         * valprint.h (inspect_it): Add extern declaration.
10978         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10979         (selectors_info, classes_info): Ditto.
10980         (find_objc_msgcall): Fix indentation.
10981         (objc_printstr): Delete extern declarations.
10982
10983         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10984
10985 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10986
10987         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10988         Update comment.
10989         * frame.c (legacy_saved_regs_this_id): Update.
10990         (legacy_get_prev_frame): Update.
10991         * xstormy16-tdep.c: Update comment.
10992         * sparc-tdep.c (sparc_frame_chain): Update comment.
10993         * blockframe.c (legacy_frame_chain_valid): Update.
10994
10995 2003-04-06  Andrew Cagney  <cagney@redhat.com>
10996
10997         * valprint.c (val_print_type_code_int): Delete #ifdef
10998         PRINT_TYPELESS_INTEGER code.
10999
11000         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
11001         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
11002         multi-arch definition.
11003         * gdbarch.h: Re-generate.
11004
11005 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11006
11007         Eliminate FRAME_FIND_SAVED_REGS.
11008         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11009         Change FSR parameter to a pointer.
11010         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
11011         Assume FSR parameter is a pointer.
11012         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11013         Make fsr a pointer.
11014         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
11015         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
11016         saved_regs a pointer.
11017         (hppa_frame_saved_pc): Ditto.
11018         (find_dummy_frame_regs): Make frame_saved_regs a pointer
11019         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
11020         pointer.
11021         (restore_pc_queue): Make fsr a pointer.
11022         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
11023         (hppa_frame_chain): Make saved_regs a pointer, call
11024         hppa_frame_init_saved_regs.
11025         * sparc-tdep.c: Include "gdb_assert.h".
11026         (sparc_frame_find_saved_regs): Replace internal_error with
11027         gdb_assert.
11028         * remote-vxsparc.c (vx_read_register): Delete reference to
11029         FRAME_FIND_SAVED_REGS.
11030         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
11031         * gdbarch.h: Regenerate.
11032         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11033         (deprecated_get_frame_saved_regs): Delete declaration.
11034         (struct frame_saved_regs): Delete definition.
11035         * frame.c (deprecated_get_frame_saved_regs): Delete function.
11036         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
11037         (hppa_frame_find_saved_regs): Delete declaration.
11038         (FRAME_FIND_SAVED_REGS): Delete macro.
11039         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
11040         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
11041         FRAME_FIND_SAVED_REGS in comment.
11042
11043 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11044
11045         * frame.c (frame_func_unwind, get_frame_func): New functions.
11046         * frame.h (get_frame_func, frame_func_unwind): Declare.
11047         (struct frame_info): Add field "prev_func" for caching the
11048         previous frame's function address.
11049         * arm-tdep.c (arm_frameless_function_invocation): Combine
11050         get_pc_function_start and get_frame_pc into get_frame_func.
11051         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11052         (sh64_nofp_frame_init_saved_regs): Ditto.
11053         * s390-tdep.c (s390_function_start): Ditto.
11054         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
11055         (rs6000_frameless_function_invocation): Ditto.
11056         (rs6000_frame_saved_pc): Ditto.
11057         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
11058         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
11059         * i386-tdep.c (i386_frameless_signal_p): Ditto.
11060         (i386_frame_init_saved_regs): Ditto.
11061         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
11062         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
11063         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
11064         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
11065         * blockframe.c (frameless_look_for_prologue): Ditto.
11066
11067 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11068
11069         * frame.c (legacy_get_prev_frame): Link prev to next at the
11070         function start.  Update comments.
11071
11072 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11073
11074         * frame.c (get_frame_id): Update comment.
11075         (legacy_get_prev_frame): Update comment.
11076         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
11077         * gdbarch.h: Regenerate.
11078         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11079         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11080
11081 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11082
11083         * stack.c (print_frame_info): Use get_frame_pc.
11084
11085 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11086
11087         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
11088         the frame's type from the unwinder.
11089         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11090         (create_new_frame, legacy_get_prev_frame): When the unwinder's
11091         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11092         (get_frame_base_address): Use get_frame_type.
11093         (get_frame_locals_address, get_frame_args_address): Ditto.
11094         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11095         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11096         (struct frame_info): Add comment explaining why the frame contains
11097         a "type" field.
11098         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11099         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11100         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11101         NORMAL_FRAME.
11102         * frame-unwind.h: Include "frame.h".
11103         (struct frame_unwind): Add "type" field.
11104         * Makefile.in (frame_unwind_h): Add $(frame_h).
11105
11106 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11107
11108         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11109         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11110         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11111         get_frame_base.
11112         (d10v_unwind_dummy_id): Use frame_id_build.
11113         * frame.c (find_frame_sal): Use get_frame_pc.
11114         (create_new_frame): Use deprecated_update_frame_pc_hack and
11115         deprecated_update_frame_base_hack.
11116         (create_sentinel_frame): Add comment about ->pc going away.
11117         (get_prev_frame): Add comment about ->pc going away.
11118         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11119         frame_id_build, deprecated_update_frame_pc_hack and
11120         deprecated_update_frame_base_hack.
11121         (select_frame): Use get_frame_pc.
11122         (legacy_saved_regs_this_id): Use frame_id_build.
11123
11124 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
11125
11126         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11127         signed integer case.
11128         (classify_argument): Handle enumerations and references.
11129
11130 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11131
11132         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11133         ID to NULL.
11134
11135 2003-04-01  Adam Fedor  <fedor@gnu.org>
11136
11137         * gdb/objc-lang.c (selectors_info): Replace calls to
11138         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11139         SYMBOL_NATURAL_NAME.
11140         (classes_info, find_methods): Likewise.
11141
11142 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
11143
11144         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11145         ``mach'' to the value determined by bfd_default_set_arch_mach().
11146
11147 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
11148
11149         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11150         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11151         (mi-cmd-file.o): Update dependencies.
11152
11153 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
11154
11155         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11156         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11157
11158 2003-04-01  Adam Fedor  <fedor@gnu.org>
11159
11160         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11161         * language.h (struct language_defn): Add la_demangle.
11162         (language_demangle): Declare.
11163         * language.c (language_demangle): New function.
11164         (unk_lang_demangle): Likewise.
11165         (unknown_language_defn, auto_language_defn, local_language_defn):
11166         Add ukn_lang_demangle.
11167         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
11168         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
11169         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11170         (cplus_language_defn): Add cplus_demangle for la_demangle element.
11171         * jv-lang.c (java_demangle): New function
11172         (java_language_defn): Use it for la_demangle element.
11173         * objc-lang.c (objc_demangle): Add options argument
11174         (objc_language_defn): Use objc_demangle for la_demangle element.
11175         * maint.c (maintenance_demangle): Replace switch with
11176         call to language_demangle.
11177         * utils.c (fprintf_symbol_filtered): Likewise.
11178
11179 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11180
11181         * printcmd.c (print_frame_nameless_args): Delete #ifdef
11182         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11183         PRINT_TYPELESS_INTEGER.
11184         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11185         PUSH_RETURN_ADDRESS.
11186
11187 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11188
11189         * Makefile.in (d10v-tdep.o): Update dependencies.
11190         * d10v-tdep.c: Include "frame-base.h".
11191         (d10v_frame_unwind): Make constant.
11192         (d10v_frame_base_address): New function.
11193         (d10v_frame_base): New variable.
11194         (d10v_gdbarch_init): Set frame_base default.
11195         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
11196         comment for base.
11197         (d10v_frame_unwind_cache): Set and use "prev_sp".
11198         (d10v_frame_this_id): Use the previous frame's inner most stack
11199         address and this frame's func address for the frame ID.  Use
11200         frame_id_build.  Don't analyze beyond the current instruction.
11201
11202 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11203
11204         * frame.h (get_frame_locals_address, get_frame_args_address):
11205         Refer to the base address, instead of the address of the first
11206         local or parameter.
11207
11208 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11209
11210         Add frame debug info addresses:
11211         * frame-base.c: New file.
11212         * frame-base.h: New file.
11213         * frame.h (struct frame_base): Add opaque declaration.
11214         (get_frame_base): Update comment.
11215         (get_frame_base_address): Declare.
11216         (get_frame_locals_address): Declare.
11217         (get_frame_args_address): Declare.
11218         (struct frame_info): Add "base" and "base_cache".  Update
11219         comments on the unwinder.
11220         * frame.c: Include "frame-base.h".
11221         (get_frame_locals_address): New function.
11222         (get_frame_base_address): New function.
11223         (get_frame_args_address): New function.
11224         * findvar.c (read_var_value): Use get_frame_locals_address and
11225         get_frame_args_address.
11226         * stack.c (frame_info): Use get_frame_locals_address and
11227         get_frame_args_address.
11228         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11229         moved to "frame-base.c".
11230         * printcmd.c (print_frame_nameless_args): Ditto.
11231         * symtab.h (address_class): Update comments.
11232         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11233         get_frame_base_address.
11234         * dwarf2expr.c (execute_stack_op): Ditto.
11235         * Makefile.in (frame_base_h): Define.
11236         (frame.o): Update dependencies.
11237         (frame-base.o): Add dependencies.
11238         (SFILES): Add frame-base.c.
11239         (COMMON_OBS): Add frame-base.o.
11240
11241 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11242
11243         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11244         CALL_DUMMY_LENGTH): Ditto.
11245         * gdbarch.c: Re-generate.
11246         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11247         (CALL_DUMMY_LENGTH): Delete macro.
11248         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11249         * arm-tdep.c (arm_gdbarch_init): Ditto.
11250         * avr-tdep.c (avr_gdbarch_init): Ditto.
11251         * cris-tdep.c (cris_gdbarch_init): Ditto.
11252         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11253         * frv-tdep.c (frv_gdbarch_init): Ditto.
11254         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11255         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11256         * i386-tdep.c (i386_gdbarch_init): Ditto.
11257         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11258         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11259         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11260         * mips-tdep.c (mips_gdbarch_init): Ditto.
11261         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11262         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11263         * s390-tdep.c (s390_gdbarch_init): Ditto.
11264         * sh-tdep.c (sh_gdbarch_init): Ditto.
11265         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11266         * v850-tdep.c (v850_gdbarch_init): Ditto.
11267         * vax-tdep.c (vax_gdbarch_init): Ditto.
11268         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11269
11270 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
11271
11272         * frame.c (get_prev_frame): Disable call to inside_entry_file().
11273
11274 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11275
11276         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11277         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11278         * gdbarch.h, gdbarch.c: Re-generate.
11279         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11280         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11281         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11282         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11283         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11284         * infcmd.c (run_stack_dummy): Simplify assuming
11285         CALL_DUMMY_BREAKPOINT_OFFSET_P.
11286         * infrun.c (handle_inferior_event): Ditto.
11287         * alpha-tdep.c (alpha_gdbarch_init): Do not set
11288         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11289         * arm-tdep.c (arm_gdbarch_init): Ditto.
11290         * avr-tdep.c (avr_gdbarch_init): Ditto.
11291         * cris-tdep.c (cris_gdbarch_init): Ditto.
11292         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11293         * frv-tdep.c (frv_gdbarch_init): Ditto.
11294         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11295         * i386-tdep.c (i386_gdbarch_init): Ditto.
11296         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11297         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11298         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11299         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11300         * mips-tdep.c (mips_gdbarch_init): Ditto.
11301         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11302         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11303         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11304         * s390-tdep.c (s390_gdbarch_init): Ditto.
11305         * sh-tdep.c (sh_gdbarch_init): Ditto.
11306         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11307         * v850-tdep.c (v850_gdbarch_init): Ditto.
11308         * vax-tdep.c (vax_gdbarch_init): Ditto.
11309         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11310
11311 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
11312
11313         * symfile.c (symfile_relocate_debug_section): Update call to
11314         bfd_simple_get_relocated_section_contents.
11315
11316 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11317
11318         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11319         * gdbarch.h, gdbarch.c: Regenerate.
11320         * inferior.h (FIX_CALL_DUMMY): Delete macro.
11321         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11322         available.
11323         * frame.h (generic_fix_call_dummy): Delete declaration.
11324         * dummy-frame.h: Update comment.
11325         * dummy-frame.c (generic_fix_call_dummy): Delete function.
11326         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11327         fix_call_dummy.
11328         * sh-tdep.c (sh_gdbarch_init): Ditto.
11329         * s390-tdep.c (s390_gdbarch_init): Ditto.
11330         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11331         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11332         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11333         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11334         * i386-tdep.c (i386_gdbarch_init): Ditto.
11335         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11336         * frv-tdep.c (frv_gdbarch_init): Ditto.
11337         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11338         * cris-tdep.c (cris_gdbarch_init): Ditto.
11339         * avr-tdep.c (avr_gdbarch_init): Ditto.
11340         * arm-tdep.c (arm_gdbarch_init): Ditto.
11341
11342 2003-03-31  J. Brobecker  <brobecker@gnat.com>
11343
11344         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11345         (INIT_FRAME_AP): Likewise.
11346         (EXTRA_FRAME_INFO): Likewise.
11347
11348 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11349
11350         * gdbarch.sh: Include "symfile.h".
11351         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11352         * gdbarch.h, gdbarch.c: Re-generate.
11353         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11354         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11355         call_dummy_address, the default is at entry_point_address.
11356         * v850-tdep.c (v850_gdbarch_init): Ditto.
11357         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11358         * sh-tdep.c (sh_gdbarch_init): Ditto.
11359         * s390-tdep.c (s390_gdbarch_init): Ditto.
11360         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11361         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11362         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11363         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11364         * i386-tdep.c (i386_gdbarch_init): Ditto.
11365         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11366         * frv-tdep.c (frv_gdbarch_init): Ditto.
11367         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11368         * cris-tdep.c (cris_gdbarch_init): Ditto.
11369         * arm-tdep.c (arm_gdbarch_init): Ditto.
11370
11371 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11372
11373         * gdbarch.sh (CALL_DUMMY_P): Delete.
11374         * gdbarch.h, gdbarch.c: Re-generate.
11375         * inferior.h (CALL_DUMMY_P): Delete macro.
11376         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11377         * vax-tdep.c (vax_gdbarch_init): Update.
11378         * v850-tdep.c (v850_gdbarch_init): Update.
11379         * sparc-tdep.c (sparc_gdbarch_init): Update.
11380         * sh-tdep.c (sh_gdbarch_init): Update.
11381         * s390-tdep.c (s390_gdbarch_init): Update.
11382         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11383         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11384         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11385         * mips-tdep.c (mips_gdbarch_init): Update.
11386         * mcore-tdep.c (mcore_gdbarch_init): Update.
11387         * m68k-tdep.c (m68k_gdbarch_init): Update.
11388         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11389         * ia64-tdep.c (ia64_gdbarch_init): Update.
11390         * i386-tdep.c (i386_gdbarch_init): Update.
11391         * h8300-tdep.c (h8300_gdbarch_init): Update.
11392         * frv-tdep.c (frv_gdbarch_init): Update.
11393         * d10v-tdep.c (d10v_gdbarch_init): Update.
11394         * cris-tdep.c (cris_gdbarch_init): Update.
11395         * breakpoint.c (deprecated_frame_in_dummy): Update.
11396         * avr-tdep.c (avr_gdbarch_init): Update.
11397         * alpha-tdep.c (alpha_gdbarch_init): Update.
11398         * arm-tdep.c (arm_gdbarch_init): Update.
11399         * dummy-frame.c (dummy_frame_this_id): Update comments.
11400         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11401         * frame.c (legacy_get_prev_frame): Ditto.
11402         * valops.c (call_function_by_hand): Delete function.
11403         (hand_function_call): Rename to call_function_by_hand
11404
11405 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11406
11407         2002-11-10 Klee Dienes <kdienes@apple.com>
11408         * value.h (struct value): Update comment.
11409
11410 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11411
11412         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11413         D10V_FP_REGNUM.
11414         (d10v_gdbarch_init): Do not set fp_regnum.
11415
11416         * frame.c (get_frame_base): Force ID initialization.
11417         (get_prev_frame): Move computation of the frame ID from here ...
11418         (get_frame_id): ... to here.
11419         (legacy_get_prev_frame): Mark the frame ID as valid.
11420         * frame.h (struct frame_info): Add field "id_p".
11421
11422 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
11423
11424         * i386-tdep.c (i386_store_struct_return): Removed.
11425         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11426
11427 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11428
11429         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11430         * gdbarch.h, gdbarch.c: Regenerate.
11431         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11432         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11433         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11434         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11435         * i386-tdep.c (i386_gdbarch_init): Ditto.
11436         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11437         * cris-tdep.c (cris_gdbarch_init): Ditto.
11438         * vax-tdep.c (vax_gdbarch_init): Ditto.
11439         * s390-tdep.c (s390_gdbarch_init): Ditto.
11440         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11441         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11442         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11443         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11444         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11445         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11446         * sparc-tdep.c (sparc_gdbarch_init): Update.
11447         * sh-tdep.c (sh_gdbarch_init): Update.
11448         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11449         * mips-tdep.c (mips_gdbarch_init): Update.
11450         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11451         * ia64-tdep.c (ia64_gdbarch_init): Update.
11452         * frv-tdep.c (frv_gdbarch_init): Update.
11453         * avr-tdep.c (avr_gdbarch_init): Update.
11454         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11455         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
11456         instead of when push_dummy_call is not available.
11457
11458 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11459
11460         * infttrace.c: Include "gdbthread.h".
11461         (parent_attach_all): Fix function signature.
11462         (call_ptrace): Update call.
11463         * Makefile.in (infttrace.o): Update dependencies.
11464
11465 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11466
11467         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11468         PUSH_RETURN_ADDRESS.
11469         * gdbarch.h, gdbarch.c: Regenerate.
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         * h8300-tdep.c (h8300_gdbarch_init): Update.
11484         * frv-tdep.c (frv_gdbarch_init): Update.
11485         * cris-tdep.c (cris_gdbarch_init): Update.
11486         * avr-tdep.c (avr_gdbarch_init): Update.
11487         * arm-tdep.c (arm_gdbarch_init): Update.
11488         * valops.c (hand_function_call): Update.
11489
11490 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11491
11492         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11493         sizeof_call_dummy_words.
11494         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11495         define.
11496         * gdbarch.h: Regenerate.
11497
11498 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11499
11500         * infttrace.h: New file.
11501         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11502         (hpread_get_textlow): Detect an uninitialized dn_bufp.
11503         (hpread_read_doc_function_type): Detect an initialized type1.
11504         (hpread_quick_traverse): Initialize mod_name_string.
11505         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11506         (som_solib_get_solib_by_pc): Declare.
11507         (so_lib_thread_start_addr): Declare.
11508         (no_shared_libraries): Declare.
11509         * somread.c (init_import_symbols): Make static.  Add forward
11510         declaration.
11511         * config/pa/nm-hppah.h: Include "infttrace.h" for
11512         parent_attach_all.
11513         (hppa_insert_hw_watchpoint): Declare.
11514         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11515         * hppah-nat.c: Include "gdb_string.h".
11516         (parent_attach_all): Delete extern declaration, moved to
11517         "infttrace.h".
11518         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11519         int.
11520         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11521         * Makefile.in (infttrace_h): Define.
11522         (hpread.o): Update dependencies.
11523         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11524         * hppa-hpux-tdep.c: Include "gdb_string.h".
11525         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11526         * infrun.c (handle_inferior_event): Always initialize
11527         stepped_after_stopped_by_watchpoint.  Add default and remove
11528         fallthrough in switch statement.
11529         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11530         parameter to int.
11531         (hppa_remove_hw_watchpoint): Ditto.
11532
11533 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11534
11535         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11536         offset.
11537
11538 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
11539
11540         * arm-tdep.c (arm_push_arguments): Delete.
11541         (struct stack_item): New type.
11542         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11543         (arm_store_struct_return): Delte.
11544         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
11545         arm_push_arguments or arm_store_struct_return.
11546
11547 2003-03-28  Andrew Cagney  <cagney@redhat.com>
11548
11549         * Makefile.in (d10v-tdep.o): Update dependencies.
11550         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11551         * d10v-tdep.c: Include "remote.h".
11552         (target_resume_hook): Delete extern declaration.
11553         (target_wait_loop_hook): Ditto.
11554         (tdisassemble_command): Eliminate assignment in "if" conditional.
11555         (d10v_ts2_register_sim_regno): Eliminate call to
11556         legacy_register_sim_regno.
11557         (d10v_ts3_register_sim_regno): Ditto.
11558
11559 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
11560
11561         * thread.c: Reindented.
11562         * lin-lwp.c: Ditto.
11563         * linux-proc.c: Ditto.
11564
11565 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
11566
11567         * MAINTAINERS (write after approval): Add myself.
11568
11569 2003-03-27  Theodore A. Roth  <troth@openavr.org>
11570
11571         * objc-exp.y: Add missing semi-colons.
11572
11573 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11574
11575         * regcache.c (write_sp): Delete function and references.
11576         * inferior.h (write_sp): Delete declaration.
11577         * valops.c (hand_function_call): Replace write_sp with
11578         TARGET_WRITE_SP.
11579         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11580         (sparc_pop_frame): Ditto.
11581
11582 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11583
11584         * NEWS: Mention removal of support for hppa*-*-bsd* and
11585         hppa*-*-osf* natives, and hppa*-*-pro* target.
11586         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11587         * config/pa/xm-pa.h: Obsolete file.
11588         * config/pa/xm-hppab.h: Obsolete file.
11589         * config/pa/nm-hppab.h: Obsolete file.
11590         * config/pa/tm-hppab.h: Obsolete file.
11591         * config/pa/tm-hppao.h: Obsolete file.
11592         * config/pa/nm-hppao.h: Obsolete file.
11593         * config/pa/tm-pro.h: Obsolete file.
11594         * config/pa/hppaosf.mt: Obsolete file.
11595         * config/pa/hppaosf.mh: Obsolete file.
11596         * config/pa/hppapro.mt: Obsolete file.
11597         * config/pa/hppabsd.mt: Obsolete file.
11598         * config/pa/hppabsd.mh: Obsolete file.
11599         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11600         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11601         hppa*-*-osf*.
11602
11603 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11604
11605         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11606         push_arguments.  Don't set push_return_address or write_sp.
11607         (d10v_push_dummy_call): Replace d10v_push_arguments.
11608         (d10v_push_return_address, d10v_write_sp): Delete function,
11609         handled by push_dummy_call.
11610
11611 2003-03-26  Andrew Cagney  <cagney@redhat.com>
11612
11613         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11614         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11615         regcache and dummy_addr parameters.
11616         * gdbarch.h, gdbarch.c: Re-generate.
11617         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11618         available; assume it will handle stack alignment and return
11619         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11620         legacy_push_arguments.
11621         (legacy_push_arguments): Rename default_push_arguments.
11622         * value.h (legacy_push_arguments): Rename default_push_arguments.
11623         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11624         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11625         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11626         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11627         * config/i386/tm-symmetry.h: Update.
11628         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11629         * x86-64-tdep.c (x86_64_init_abi): Update.
11630         * v850-tdep.c (v850_gdbarch_init): Update.
11631         * sparc-tdep.c (sparc_gdbarch_init): Update.
11632         * sh-tdep.c (sh_gdbarch_init): Update.
11633         * s390-tdep.c (s390_gdbarch_init): Update.
11634         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11635         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11636         * mips-tdep.c (mips_gdbarch_init): Update.
11637         * mcore-tdep.c (mcore_gdbarch_init): Update.
11638         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11639         * ia64-tdep.c (ia64_gdbarch_init): Update.
11640         * i386-tdep.c (i386_gdbarch_init): Update.
11641         * hppa-tdep.c (hppa_gdbarch_init): Update.
11642         * h8300-tdep.c (h8300_gdbarch_init): Update.
11643         * frv-tdep.c (frv_gdbarch_init): Update.
11644         * d10v-tdep.c (d10v_gdbarch_init): Update.
11645         * cris-tdep.c (cris_gdbarch_init): Update.
11646         * avr-tdep.c (avr_gdbarch_init): Update.
11647         * arm-tdep.c (arm_gdbarch_init): Update.
11648         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11649         * alpha-tdep.c (alpha_gdbarch_init): Update.
11650
11651 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11652
11653         * signals/signals.c (do_target_signal_to_host): Correct realtime
11654         signal range test.
11655
11656 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11657
11658         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11659         (struct sal_chain, map_catch_names): Remove.
11660         (catch_exception_command_1): Don't call
11661         handle_gnu_4_16_catch_command.
11662
11663 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11664
11665         From Mark Dettinger <dettinge@de.ibm.com>:
11666         * dwarf2cfi.c (read_2u): Increment pointer by two.
11667
11668 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11669
11670         * signals/signals.c: Fix typos in last change.
11671
11672 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11673
11674         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11675         not already defined.  Use __SIGRTMIN if available.
11676         (target_signal_from_host): Remove SIGRTMIN block.
11677         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11678         the signal is within the realtime range.
11679
11680 2003-03-25  Adam Fedor  <fedor@gnu.org>
11681
11682         * Makefile.in (infrun.o): Add $(language_h)
11683         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11684         for language specific trampolines.
11685         * language.h (struct language_defn): Add skip_trampoline.
11686         (skip_language_trampoline): Declare.
11687         * language.c (unk_lang_trampoline, skip_language_trampoline):
11688         New functions.
11689         (unknown_language_defn, auto_language_defn, local_language_defn):
11690         Add ukn_lang_trampoline.
11691         * ada-lang.c (ada_language_defn): Add NULL for language
11692         specific skip_trampoline.
11693         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11694         scm-lang.c: Likewise.
11695         * objc-lang.c (objc_skip_trampoline): New function.
11696         (objc_language_defn): Add objc_skip_trampoline.
11697
11698 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11699
11700         * frame.c (get_prev_frame): Delay validating a frame's ID -
11701         non-NULL, didn't go backwards - until an attempt to unwind it to
11702         the previous frame.
11703
11704 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11705
11706         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11707         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11708         * gdbarch.h, gdbarch.c: Re-generate.
11709         * config/sparc/tm-sparc.h
11710         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11711         * sparc-tdep.c (sparc_gdbarch_init): Set
11712         deprecated_extra_stack_alignment_needed.
11713         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11714         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11715         extra_stack_alignment_needed.
11716         * v850-tdep.c (v850_gdbarch_init): Ditto.
11717         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11718         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11719         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11720         * cris-tdep.c (cris_gdbarch_init): Ditto.
11721         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11722         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11723
11724 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11725
11726         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11727         STORE_STRUCT_RETURN.
11728         * gdbarch.h, gdbarch.c: Regenerate.
11729         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11730         (d10v_push_arguments): Set the struct return register.
11731         (d10v_gdbarch_init): Update.
11732         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11733         * x86-64-tdep.c (x86_64_init_abi): Update.
11734         * vax-tdep.c (vax_gdbarch_init): Update.
11735         * v850-tdep.c (v850_gdbarch_init): Update.
11736         * sparc-tdep.c (sparc_gdbarch_init): Update.
11737         * sh-tdep.c (sh_gdbarch_init): Update.
11738         * s390-tdep.c (s390_gdbarch_init): Update.
11739         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11740         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11741         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11742         * mips-tdep.c (mips_gdbarch_init): Update.
11743         * mcore-tdep.c (mcore_gdbarch_init): Update.
11744         * m68k-tdep.c (m68k_gdbarch_init): Update.
11745         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11746         * ia64-tdep.c (ia64_gdbarch_init): Update.
11747         * i386-tdep.c (i386_gdbarch_init): Update.
11748         * hppa-tdep.c (hppa_gdbarch_init): Update.
11749         * h8300-tdep.c (h8300_gdbarch_init): Update.
11750         * frv-tdep.c (frv_gdbarch_init): Update.
11751         * cris-tdep.c (cris_gdbarch_init): Update.
11752         * avr-tdep.c (avr_gdbarch_init): Update.
11753         * arm-tdep.c (arm_gdbarch_init): Update.
11754         * alpha-tdep.c (alpha_gdbarch_init): Update.
11755
11756 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11757
11758         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11759         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11760         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11761         * gdbarch.h, gdbarch.c: Regenerate.
11762         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11763         call_dummy_stack_adjust_p.
11764         * vax-tdep.c (vax_gdbarch_init): Ditto.
11765         * v850-tdep.c (v850_gdbarch_init): Ditto.
11766         * sh-tdep.c (sh_gdbarch_init): Ditto.
11767         * s390-tdep.c (s390_gdbarch_init): Ditto.
11768         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11769         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11770         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11771         * mips-tdep.c (mips_gdbarch_init): Ditto.
11772         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11773         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11774         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11775         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11776         * i386-tdep.c (i386_gdbarch_init): Ditto.
11777         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11778         * frv-tdep.c (frv_gdbarch_init): Ditto.
11779         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11780         * cris-tdep.c (cris_gdbarch_init): Ditto.
11781         * avr-tdep.c (avr_gdbarch_init): Ditto.
11782         * arm-tdep.c (arm_gdbarch_init): Ditto.
11783         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11784         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11785         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11786         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11787         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11788         call_dummy_stack_adjust_p.
11789         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11790         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11791         * sparc-tdep.c (sparc32_push_arguments): Update.
11792         * valops.c (hand_function_call): Update.
11793
11794 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11795
11796         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11797         set_gdbarch_char_signed.
11798
11799 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11800
11801         PR cli/548
11802         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11803
11804 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11805
11806         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11807         (_initialize_arm_tdep): Don't set tm_print_insn.
11808
11809 2003-03-24  Adam Fedor  <fedor@gnu.org>
11810
11811         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11812         * objc-lang.h: Add multiple inclusion protection.
11813         (start_msglist, add_msglist, end_msglist): Additional declarations.
11814
11815 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11816
11817         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11818         value was renamed to ARM_FLOAT_SOFT_FPA.
11819
11820 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11821
11822         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11823         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11824         * gdbarch.h, gdbarch.c: Regenerate.
11825         * valops.c (hand_function_call): Update.
11826         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11827         * frame.c (legacy_saved_regs_this_id): Update.
11828         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11829         * dummy-frame.h: Update.
11830         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11831         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11832         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11833         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11834         * config/m68k/tm-sun3.h: Update.
11835         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11836         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11837         * x86-64-tdep.c (x86_64_init_abi): Update.
11838         * vax-tdep.c (vax_gdbarch_init): Update.
11839         * v850-tdep.c (v850_gdbarch_init): Update.
11840         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11841         * sh-tdep.c (sh_gdbarch_init): Update.
11842         * s390-tdep.c (s390_gdbarch_init): Update.
11843         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11844         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11845         (frame_get_saved_regs): Update.
11846         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11847         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11848         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11849         * mips-tdep.c (mips_gdbarch_init): Update.
11850         * mcore-tdep.c (mcore_gdbarch_init): Update.
11851         * m68k-tdep.c (m68k_gdbarch_init): Update.
11852         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11853         * ia64-tdep.c (ia64_gdbarch_init): Update.
11854         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11855         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11856         (i386_interix_back_one_frame): Update.
11857         * hppa-tdep.c (hppa_gdbarch_init): Update.
11858         (hppa_init_extra_frame_info): Update.
11859         * h8300-tdep.c (h8300_gdbarch_init): Update.
11860         * frv-tdep.c (frv_gdbarch_init): Update.
11861         * cris-tdep.c (cris_gdbarch_init): Update.
11862         * avr-tdep.c (avr_gdbarch_init): Update.
11863         * arm-tdep.c (arm_gdbarch_init): Update.
11864         * alpha-tdep.c (alpha_gdbarch_init): Update.
11865
11866 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11867
11868         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11869         (arm_get_fp_model): Declare.
11870         * arm-tdep.c (fp_model_strings): New string array.
11871         (arm_fp_model, current_fp_model): New variables.
11872         (arm_get_fp_model): New function.
11873         (arm_set_fp): New function.
11874         (set_fp_model_sfunc): New function.
11875         (show_fp_model): New function.
11876         (_initialize_arm_tdep): Add new command to set/show the FPU.
11877         (arm_extract_return_value): Use arm_get_fp_model.
11878         (arm_store_return_value): Likewise.
11879         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11880         to initialize the floating-point data types.
11881         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11882         model is FPA.
11883
11884 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11885
11886         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11887         the current setting of each value.
11888         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11889         new_set and new_show.  Use add_setshow_cmd_full and
11890         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11891         commands and add new version as subcommands of "set/show arm".
11892
11893 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11894
11895         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11896         (set_arm_command, show_arm_command): New functions.
11897         (_initialize_arm_tdep): Add them.
11898         (num_disassembly_options): Renamed from num_flavor_options.
11899         (valid_disassembly_styles): Renamed from valid_flavors.
11900         (disassembly_style): Renamed from disassembly_flavor.
11901         (set_disassembly_style_sfunc): Renamed from
11902         set_disassembly_flavor_sfunc.
11903         (set_disassembly_style): Renamed from set_disassembly_flavor.
11904         (arm_othernames): Updated.
11905         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11906         command.  Add "set/show arm disassembly" commands.  Deprecate
11907         "othernames" command.
11908
11909 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11910
11911         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11912         (arm-tdep.o): Depend on elf_arm_h.
11913
11914 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11915
11916         * Makefile.in (coff_internal_h): Define.
11917         (arm-tdep.o): Update dependencies.
11918
11919 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11920
11921         * arm-tdep.c (prologue_cache): Delete.
11922         (check_prologue_cache, save_prologue_cache): Delete.
11923         (arm_scan_prologue): Don't check or update the prologue_cache.
11924         (arm_gdb_arch_init): Don't initialize it.
11925         (_initialize_arm_tdep): Likewise.
11926
11927 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
11928
11929         * MAINTAINERS (tui): Maintainer of tui code.
11930
11931 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
11932
11933         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11934         (i386-cygwin-tdep.o): Add dependencies.
11935         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11936         * i386-cygwin-tdep.c: New file.
11937         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11938         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11939
11940 2003-03-20  Andrew Cagney  <cagney@redhat.com>
11941
11942         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11943         (handle_inferior_event): Remove code calling
11944         DYNAMIC_TRAMPOLINE_NEXTPC.
11945
11946         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11947         already has a full path.
11948
11949         * main.c (gdb_main): Return 1.
11950         (captured_main): Call error to report an invalid interpreter.
11951
11952         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11953         * alpha-osf1-tdep.c: Include "gdb_string.h".
11954
11955 2003-03-19  J. Brobecker  <brobecker@gnat.com>
11956
11957         Continuing work to convert the hppa targets to multiarch partial.
11958
11959         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11960         method, now that hppa_push_dummy_frame has a conformant prototype.
11961         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11962         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11963         for the switch to multiarch partial.
11964
11965 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
11966
11967         * mdebugread.c (parse_symbol): For stEnd, we're done counting
11968         when iss is issNull.
11969
11970 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11971
11972         * mips-tdep.c (mips_register_name): Fix fencepost error involving
11973         NUM_REGS bounds check.
11974
11975 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
11976
11977         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11978         * mips-tdep.c (gdb_assert.h): Include.
11979         (mips_generic_reg_names, mips_processor_reg_names): Make static.
11980         (mips_register_name): Handle integer registers explicitly.  Add
11981         bounds checking.
11982         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11983         (mips_lsi33k_reg_names): Don't list integer registers; they're
11984         handled by mips_register_name() now.
11985         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11986         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11987         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11988         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11989         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11990
11991 2003-03-18  Andrew Cagney  <cagney@redhat.com>
11992
11993         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11994         a void pointer.
11995         * gdbtypes.h (print_scalar_formatted): Update declaration.
11996         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11997
11998 2003-03-18  J. Brobecker  <brobecker@gnat.com>
11999
12000         * infrun.c (observer.h): Add #include.
12001         (normal_stop): Add call to observer_notify_normal_stop.
12002         * Makefile.in (infrun.o): Add dependency on observer.h.
12003
12004 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12005
12006         Continuing work to convert the hppa targets to multiarch partial.
12007         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
12008         parameter. Reformat comment.
12009         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
12010         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
12011         to match new profile.
12012
12013 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12014
12015         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
12016         appear to be working in any case.
12017
12018 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12019
12020         * observer.c (observer_test_first_observer): New static variable.
12021         (observer_test_second_observer): Likewise.
12022         (observer_test_third_observer): Likewise.
12023         (observer_test_first_notification_function): New static function.
12024         (observer_test_second_notification_function): Likewise.
12025         (observer_test_third_notification_function): Likewise.
12026
12027 2003-03-17  J. Brobecker  <brobecker@gnat.com>
12028
12029         * hppa-tdep.c (gdb_assert.h): Add missing #include.
12030         * somsolib.c (gdb_assert.h): Likewise.
12031         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
12032         (somsolib.o): Likewise.
12033
12034 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12035
12036         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
12037         BFD.  Simplify setting of di.endian.
12038
12039 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12040
12041         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
12042         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
12043
12044         From Elena Zannoni  <ezannoni@redhat.com>
12045         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
12046         vector and floating-point parameters.
12047         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
12048         convention.
12049         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
12050
12051 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
12052
12053         * MAINTAINERS: Remove my name from several maintainership roles.
12054
12055 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12056
12057         Fix frame off-by-one bug.
12058         * frame-unwind.h (frame_this_id_ftype): Replace
12059         frame_unwind_id_ftype.
12060         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
12061         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
12062         with "prev_register".
12063         * frame-unwind.c (frame_unwind_find_by_pc): Return
12064         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
12065         comment.
12066         * dummy-frame.c (cached_find_dummy_frame): Delete function.
12067         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
12068         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
12069         (dummy_frame_unwind): Update.
12070         * sentinel-frame.c (sentinel_frame_prev_register): Replace
12071         sentinel_frame_register_unwind.
12072         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
12073         (sentinel_frame_unwinder): Update.
12074         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12075         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
12076         * frame.c (create_sentinel_frame): Update. Initialize
12077         "prologue_cache" instead of "unwind_cache".
12078         (frame_register_unwind): Call this frame's prev_register with the
12079         next frame and this frame's prologue cache.
12080         (get_prev_frame): Simplify.  Always call prev frame's this_id with
12081         this frame and prev frame's prologue cache.  Document that this
12082         call is shifted one to the left when compared to the
12083         frame_register_unwind call.
12084         (legacy_saved_regs_prev_register): Replace
12085         frame_saved_regs_register_unwind.
12086         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12087         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12088         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12089         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12090         (d10v_frame_unwind): Update.
12091         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12092         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12093         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12094         "saved_regs" with "this_saved_regs".
12095
12096 2003-03-16  Andrew Cagney  <cagney@redhat.com>
12097
12098         * frame.c (frame_pop): Don't call target_store_registers.  Fix
12099         problem reported by Mark Kettenis.
12100
12101 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
12102
12103         * i386-tdep.c (i386_register_type): Renamed from
12104         i386_register_virtual_type.  Adjust function signature.
12105         (i386_gdbarch_init): Set register_type instead of
12106         deprecated_max_register_raw_size,
12107         deprecated_max_register_virtual_size and register_virtual_type.
12108
12109 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12110
12111         * frame.c (get_prev_frame): When a legacy frame, always call
12112         legacy_get_prev_frame.  Simplify unwind code using assumption that
12113         the unwinder is new.
12114         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12115         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12116         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12117
12118 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12119
12120         * frame.c (get_saved_register): Delete function.
12121         * frame.h (get_saved_register): Delete declaration.
12122         * xstormy16-tdep.c: Update comment.
12123         * regcache.h: Update comments.
12124         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12125         get_saved_register and extract_address, use
12126         frame_read_unsigned_register.
12127         (sparc_frame_saved_pc): Ditto.
12128         (sparc_get_saved_register): Instead of get_saved_register, use
12129         frame_register.
12130         (sparc_pop_frame): Ditto.
12131         * findvar.c: Update comments.
12132         (value_of_register): Call frame_register instead of
12133         get_saved_register.
12134         (value_from_register): Ditto.
12135         * config/sparc/tm-sparc.h: Update comment.
12136         * breakpoint.c: Update comment.
12137
12138 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12139
12140         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12141         GET_SAVED_REGISTER.
12142         * gdbarch.h, gdbarch.c: Re-generate.
12143         * frame.h: Update comments.
12144         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12145         * x86-64-tdep.c (x86_64_init_abi): Update.
12146         * sparc-tdep.c (sparc_gdbarch_init): Update.
12147         * sh-tdep.c (sh_gdbarch_init): Update.
12148         * mips-tdep.c (mips_gdbarch_init): Update.
12149         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12150         * cris-tdep.c (cris_gdbarch_init): Update.
12151         * ia64-tdep.c (ia64_gdbarch_init): Update.
12152         * frame.c (frame_register): Update.
12153         (get_saved_register): Update.
12154         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
12155
12156 2003-03-13  Andrew Cagney  <cagney@redhat.com>
12157
12158         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12159         * gdbarch.h, gdbarch.c: Regenerate.
12160         * valops.c (hand_function_call): Update comment.
12161         * stack.c (return_command): Update comment.
12162         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12163         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12164         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12165         * x86-64-tdep.c (x86_64_init_abi): Update.
12166         * vax-tdep.c (vax_gdbarch_init): Update.
12167         * v850-tdep.c (v850_gdbarch_init): Update.
12168         * sparc-tdep.c (sparc_gdbarch_init): Update.
12169         * sh-tdep.c (sh_gdbarch_init): Update.
12170         * s390-tdep.c (s390_gdbarch_init): Update.
12171         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12172         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12173         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12174         * mips-tdep.c (mips_gdbarch_init): Update.
12175         * mcore-tdep.c (mcore_gdbarch_init): Update.
12176         * m68k-tdep.c (m68k_gdbarch_init): Update.
12177         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12178         * ia64-tdep.c (ia64_gdbarch_init): Update.
12179         * i386-tdep.c (i386_gdbarch_init): Update.
12180         * hppa-tdep.c (hppa_gdbarch_init): Update.
12181         * h8300-tdep.c (h8300_gdbarch_init): Update.
12182         * frv-tdep.c (frv_gdbarch_init): Update.
12183         * cris-tdep.c (cris_gdbarch_init): Update.
12184         * avr-tdep.c (avr_gdbarch_init): Update.
12185         * arm-tdep.c (arm_gdbarch_init): Update.
12186         * alpha-tdep.c (alpha_gdbarch_init): Update.
12187
12188 2003-03-13  Andrew Cagney  <cagney@redhat.com>
12189
12190         * frame.c (legacy_frame_p): New function.
12191         (get_prev_frame): Use legacy_frame_p.
12192         * frame.h (legacy_frame_p): Declare.
12193
12194 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12195
12196         * MAINTAINERS (write after approval): Alphabetically
12197         listing corrected.
12198
12199 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12200
12201         * MAINTAINERS (write after approval): Add myself.
12202
12203 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12204
12205         * frame.c (get_prev_frame): Rename the frame parameter to
12206         "this_frame".
12207         (get_next_frame, legacy_get_prev_frame): Ditto.
12208
12209 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12210
12211         * frame.c (get_current_frame): Check target_has_registers before
12212         checking target_has_stack.
12213         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12214         instead of deprecated_selected_frame.
12215         * findvar.c (value_of_register): Pass "frame", not
12216         deprecated_selected_frame, to value_of_builtin_reg.
12217
12218 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12219
12220         * regcache.c (regcache_cooked_write_signed): New function.
12221         (regcache_cooked_write_unsigned): New function.
12222         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12223         (regcache_cooked_read_signed): Fix regnum in range assertion.
12224         * regcache.h (regcache_cooked_write_signed): Declare.
12225         (regcache_cooked_write_unsigned): Declare.
12226
12227 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12228
12229         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12230         * gdbarch.h, gdbarch.c: Re-generate.
12231         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12232         * x86-64-tdep.h: Update.
12233         * x86-64-tdep.c (x86_64_init_abi): Update.
12234         * v850-tdep.c (v850_gdbarch_init): Update.
12235         * sparc-tdep.c (sparc_gdbarch_init): Update.
12236         * sh-tdep.c (sh_gdbarch_init): Update.
12237         * s390-tdep.c (s390_gdbarch_init): Update.
12238         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12239         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12240         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12241         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12242         * mips-tdep.c (mips_gdbarch_init): Update.
12243         * mcore-tdep.c (mcore_gdbarch_init): Update.
12244         * m68k-tdep.c (m68k_gdbarch_init): Update.
12245         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12246         * ia64-tdep.c (ia64_gdbarch_init): Update.
12247         * i386-tdep.c (i386_gdbarch_init): Update.
12248         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12249         * hppa-tdep.c (hppa_gdbarch_init): Update.
12250         * h8300-tdep.c (h8300_gdbarch_init): Update.
12251         * frv-tdep.c (frv_gdbarch_init): Update.
12252         * cris-tdep.c (cris_gdbarch_init): Update.
12253         * avr-tdep.c (avr_gdbarch_init): Update.
12254         * arm-tdep.c (arm_gdbarch_init): Update.
12255         * alpha-tdep.c (alpha_gdbarch_init): Update.
12256         * sh-tdep.c (sh_init_extra_frame_info): Update.
12257         (sh64_init_extra_frame_info): Update.
12258         * ns32knbsd-nat.c (frame_num_args): Update.
12259         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12260         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12261         (xstormy16_frame_chain_valid): Update.
12262         * vax-tdep.c (vax_saved_pc_after_call): Update.
12263         * v850-tdep.c (v850_frame_chain): Update.
12264         (v850_pop_frame): Update.
12265         (v850_init_extra_frame_info): Update.
12266         * sparc-tdep.c (setup_arbitrary_frame): Update.
12267         * ns32k-tdep.c (umax_frame_num_args): Update.
12268         * s390-tdep.c (s390_pop_frame_regular): Update.
12269         * mn10300-tdep.c (mn10300_frame_chain): Update.
12270         (mn10300_pop_frame_regular): Update.
12271         (mn10300_init_extra_frame_info): Update.
12272         * mips-tdep.c (mips_init_frame_pc_first): Update.
12273         (mips_frame_chain): Update.
12274         (mips_pop_frame): Update.
12275         * mcore-tdep.c (mcore_frame_chain): Update.
12276         (mcore_pop_frame): Update.
12277         (mcore_init_extra_frame_info): Update.
12278         * arch-utils.c (init_frame_pc_default): Update.
12279         * m68k-tdep.c (isi_frame_num_args): Update.
12280         (delta68_frame_num_args): Update.
12281         (news_frame_num_args): Update.
12282         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12283         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12284         (alpha_frame_chain): Update.
12285         (alpha_pop_frame): Update.
12286         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12287         (hppa_init_extra_frame_info): Update.
12288         (hppa_frame_chain): Update.
12289         (hppa_frame_chain_valid): Update.
12290         * cris-tdep.c (cris_init_extra_frame_info): Update.
12291         * avr-tdep.c (avr_init_extra_frame_info): Update.
12292         * arm-tdep.c (arm_frame_chain_valid): Update.
12293         (arm_init_extra_frame_info): Update.
12294         (arm_pop_frame): Update.
12295         * frame.c (frame_pc_unwind): Update.
12296         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12297         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12298         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12299         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12300         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12301         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12302
12303 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12304
12305         Eliminate the need for POP_FRAME.
12306         * frame.c (do_frame_unwind_register): New function.
12307         (frame_pop): When no POP_FRAME, pop the frame using register
12308         unwind and a scratch regcache.
12309         (frame_saved_regs_pop): Delete function.
12310         (trad_frame_unwinder): Update.
12311         * d10v-tdep.c (d10v_frame_pop): Delete function.
12312         (d10v_frame_unwind): Update.
12313         * sentinel-frame.c (sentinel_frame_pop): Delete function.
12314         (sentinel_frame_unwinder): Update.
12315         * dummy-frame.c (dummy_frame_pop): Delete function.
12316         (dummy_frame_unwind): Update.
12317         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12318         (struct frame_unwind): Update.
12319
12320 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
12321
12322         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12323         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12324         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12325         Do range checks on register number obtained from debugging info.
12326         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12327         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
12328         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12329         mapping function.
12330         (do_fp_register_row): Fix typo which caused double type to be
12331         used when attempting to unpack a float.
12332
12333 2003-03-11  J. Brobecker  <brobecker@gnat.com>
12334
12335         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12336
12337 2003-03-11  Andrew Cagney  <cagney@redhat.com>
12338
12339         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12340         frame.  Problem found by Corinna Vinschen.
12341
12342 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
12343
12344         * doublest.c (floatformat_from_length): Accept also
12345         the real size of 'long double' type.
12346
12347 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
12348
12349         From Klee Dienes <kdienes@apple.com>:
12350         * breakpoint.c (bpstat_copy): Copy the command lines as well
12351         as the old value, to match what is freed in bpstat_clear.
12352
12353 2003-03-10  David Carlton  <carlton@math.stanford.edu>
12354
12355         * minsyms.c (add_minsym_to_hash_table): Replace
12356         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12357         (compare_minimal_symbols, compact_minimal_symbols)
12358         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12359         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12360         of DEPRECATED_SYMBOL_MATCHES_NAME.
12361         (lookup_minimal_symbol_solib_trampoline): Ditto.
12362
12363 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12364
12365         * regcache.h (regcache_cooked_read_ftype): Define.
12366         (regcache_save, regcache_restore): Add a cooked_read parameter.
12367         * regcache.c (regcache_save, regcache_restore): Update.
12368         (do_cooked_read): New function.
12369         (regcache_cpy): Pass do_cooked_read to regcache_save and
12370         regcache_restore.
12371
12372 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12373
12374         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12375         * gdbarch.h, gdbarch.c: Re-generate.
12376         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12377         * x86-64-tdep.h: Update.
12378         * x86-64-tdep.c (x86_64_init_abi): Update.
12379         * v850-tdep.c (v850_gdbarch_init): Update.
12380         * sparc-tdep.c (sparc_gdbarch_init): Update.
12381         * sh-tdep.c (sh_gdbarch_init): Update.
12382         * s390-tdep.c (s390_gdbarch_init): Update.
12383         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12384         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12385         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12386         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12387         * mips-tdep.c (mips_gdbarch_init): Update.
12388         * mcore-tdep.c (mcore_gdbarch_init): Update.
12389         * m68k-tdep.c (m68k_gdbarch_init): Update.
12390         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12391         * ia64-tdep.c (ia64_gdbarch_init): Update.
12392         * i386-tdep.c (i386_gdbarch_init): Update.
12393         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12394         * hppa-tdep.c (hppa_gdbarch_init): Update.
12395         * h8300-tdep.c (h8300_gdbarch_init): Update.
12396         * frv-tdep.c (frv_gdbarch_init): Update.
12397         * cris-tdep.c (cris_gdbarch_init): Update.
12398         * avr-tdep.c (avr_gdbarch_init): Update.
12399         * arm-tdep.c (arm_gdbarch_init): Update.
12400         * alpha-tdep.c (alpha_gdbarch_init): Update.
12401         * sh-tdep.c (sh_init_extra_frame_info): Update.
12402         (sh64_init_extra_frame_info): Update.
12403         * ns32knbsd-nat.c (frame_num_args): Update.
12404         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12405         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12406         (xstormy16_frame_chain_valid): Update.
12407         * vax-tdep.c (vax_saved_pc_after_call): Update.
12408         * v850-tdep.c (v850_frame_chain): Update.
12409         (v850_pop_frame): Update.
12410         (v850_init_extra_frame_info): Update.
12411         * sparc-tdep.c (setup_arbitrary_frame): Update.
12412         * ns32k-tdep.c (umax_frame_num_args): Update.
12413         * s390-tdep.c (s390_pop_frame_regular): Update.
12414         * mn10300-tdep.c (mn10300_frame_chain): Update.
12415         (mn10300_pop_frame_regular): Update.
12416         (mn10300_init_extra_frame_info): Update.
12417         * mips-tdep.c (mips_init_frame_pc_first): Update.
12418         (mips_frame_chain): Update.
12419         (mips_pop_frame): Update.
12420         * mcore-tdep.c (mcore_frame_chain): Update.
12421         (mcore_pop_frame): Update.
12422         (mcore_init_extra_frame_info): Update.
12423         * arch-utils.c (init_frame_pc_default): Update.
12424         * m68k-tdep.c (isi_frame_num_args): Update.
12425         (delta68_frame_num_args): Update.
12426         (news_frame_num_args): Update.
12427         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12428         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12429         (alpha_frame_chain): Update.
12430         (alpha_pop_frame): Update.
12431         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12432         (hppa_init_extra_frame_info): Update.
12433         (hppa_frame_chain): Update.
12434         (hppa_frame_chain_valid): Update.
12435         * cris-tdep.c (cris_init_extra_frame_info): Update.
12436         * avr-tdep.c (avr_init_extra_frame_info): Update.
12437         * arm-tdep.c (arm_frame_chain_valid): Update.
12438         (arm_init_extra_frame_info): Update.
12439         (arm_pop_frame): Update.
12440         * frame.c (frame_pc_unwind): Update.
12441         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12442         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12443         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12444         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12445         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12446         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12447
12448 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12449
12450         * gdbarch.sh (gdbarch_unwind_pc): New method.
12451         * gdbarch.h, gdbarch.c: Regenerate.
12452         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
12453         but use read_pc and FRAME_SAVED_PC as fall backs.
12454         (frame_saved_regs_pc_unwind): Delete function.
12455         (trad_frame_unwinder): Update.
12456         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12457         (struct frame_unwind): Update.
12458         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12459         (dummy_frame_unwind): Update.
12460         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12461         (sentinel_frame_unwinder): Update.
12462         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12463         (d10v_frame_unwind): Update.
12464         (d10v_unwind_pc): New function.
12465         (d10v_gdbarch_init): Set unwind_pc.
12466
12467 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12468
12469         * gdbarch.h: Re-generate.
12470
12471         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12472         PC.
12473         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12474         the PC register.
12475
12476 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
12477
12478         * gdbarch.sh (save_dummy_frame_tos): Add comment.
12479
12480 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12481
12482         * cli-out.c: Update copyright.
12483         (cli_out_data): Define typedef.  Use instead of ui_out_data.
12484
12485 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12486
12487         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12488         the result.
12489
12490 2003-03-07  Andrew Cagney  <cagney@redhat.com>
12491
12492         * gdbarch.sh: Don't generate two macro definitions when an
12493         undefined macro taking no arguments.
12494         * gdbarch.h: Regenerate.
12495
12496 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
12497
12498         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12499         (x86_64_unwind_dummy_id): New functions.
12500         (x86_64_init_abi): Register these two new functions.
12501
12502 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
12503
12504         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12505         (x86_64_skip_prologue): Move prologue detection to
12506         separate function.
12507         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12508
12509 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12510
12511         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12512         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12513         * frame.c (get_prev_frame): Restructure the frame ID unwind code
12514         to use unwind_dummy_id when a dummy frame.
12515         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12516         predicate.
12517         * gdbarch.h, gdbarch.c: Regneerate.
12518
12519 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12520
12521         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12522         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12523         Do not use d10v_read_sp or d10v_read_fp when obtaining register
12524         values.
12525
12526 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12527
12528         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12529         (struct d10v_unwind_cache): Delete field "frameless".  Replace
12530         "next_addr" with "sp_offset".  Add "r11_offset".
12531         (d10v_frame_unwind_cache): Update.
12532         (prologue_find_regs): Update.  When "mv r11, sp", save the
12533         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
12534         RN was saved in r11_offset.
12535
12536 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12537
12538         * frame.c (deprecated_update_frame_pc_hack): Also update the the
12539         cached PC value in the next frame.
12540
12541 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12542
12543         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12544         "id_unwind_cache" with "id".
12545         (frame_id_unwind): Delete declaration.
12546         * frame.c (frame_id_unwind): Delete function.
12547         (get_prev_frame): Call the frame id unwind method directly.  Store
12548         the returned next frame's ID value in NEXT_FRAME.  Note that there
12549         is a problem with the wrong unwind ID being called with the wrong
12550         unwind cache.
12551
12552 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12553
12554         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12555
12556 2003-03-05  James Ingham <jingham@apple.com>
12557             Daniel Jacobowitz  <drow@mvista.com>
12558
12559         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12560         (auto_cp_abi): New variable.
12561         (current_cp_abi, num_cp_abis): Make static.
12562         (CP_ABI_MAX): Define.
12563         (cp_abis): Turn into an array.
12564         (value_virtual_fn_field): Fix formatting.
12565         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
12566         takes a pointer.
12567         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12568         (list_cp_abis, _initialize_cp_abi): New functions.
12569         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
12570         declarations for cp_abis, num_cp_abis, current_cp_abi, and
12571         switch_to_cp_abi.  Update prototype for register_cp_abi.
12572         * Makefile.in (cp-abi.o): Update dependencies.
12573         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12574         instead of switch_to_cp_abi.
12575         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
12576         register_cp_abi.
12577         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12578         register_cp_abi.
12579         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12580
12581 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12582
12583         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12584         * dwarf2loc.c: Include "regcache.h".
12585         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12586         register_size.
12587         * Makefile.in (dwarf2loc.o): Update dependencies.
12588
12589 2003-03-04  Theodore A. Roth  <troth@openavr.org>
12590
12591         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12592         number of io registers reported by remote target is not a multiple of
12593         step.
12594
12595 2003-03-04  David Carlton  <carlton@math.stanford.edu>
12596
12597         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12598         (lookup_symbol_aux_psymtabs): Update call to
12599         lookup_partial_symbol.
12600         (lookup_transparent_type, find_main_psymtab)
12601         (make_symbol_overload_list): Ditto.
12602
12603 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12604
12605         * MAINTAINERS (Write after approval): Update my email address.
12606
12607 2003-03-03  Andrew Cagney  <cagney@redhat.com>
12608
12609         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12610         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12611         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12612         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12613         MAX_REGISTER_VIRTUAL_SIZE.
12614         * regcache.c (legacy_max_register_raw_size): New function.
12615         (legacy_max_register_virtual_size): New function.
12616         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12617         (MAX_REGISTER_RAW_SIZE): Define.
12618         (legacy_max_register_raw_size): Declare.
12619         (legacy_max_register_virtual_size): Declare.
12620         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12621         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12622         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12623         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12624         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12625         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12626         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12627         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12628         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12629         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12630         * vax-tdep.c (vax_gdbarch_init): Update.
12631         * v850-tdep.c (v850_gdbarch_init): Update.
12632         * sparc-tdep.c (sparc_gdbarch_init): Update.
12633         * sh-tdep.c (sh_gdbarch_init): Update.
12634         * s390-tdep.c (s390_gdbarch_init): Update.
12635         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12636         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12637         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12638         * mips-tdep.c (mips_gdbarch_init): Update.
12639         * mcore-tdep.c (mcore_gdbarch_init): Update.
12640         * m68k-tdep.c (m68k_gdbarch_init): Update.
12641         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12642         * ia64-tdep.c (ia64_gdbarch_init): Update.
12643         * i386-tdep.c (i386_gdbarch_init): Update.
12644         * hppa-tdep.c (hppa_gdbarch_init): Update.
12645         * h8300-tdep.c (h8300_gdbarch_init): Update.
12646         * frv-tdep.c (frv_gdbarch_init): Update.
12647         * cris-tdep.c (cris_gdbarch_init): Update.
12648         * avr-tdep.c (avr_gdbarch_init): Update.
12649         * arm-tdep.c (arm_gdbarch_init): Update.
12650         * alpha-tdep.c (alpha_gdbarch_init): Update.
12651         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12652         max_register_raw_size or max_register_virtual_size.
12653
12654 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12655
12656         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12657         SYMBOL_MATCHES_NAME, add comment.
12658         (SYMBOL_MATCHES_NATURAL_NAME): New.
12659         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12660         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12661         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12662         * symtab.c (lookup_partial_symbol): Use
12663         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12664         unhelpful comment.
12665         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12666         SYMBOL_MATCHES_NAME.
12667         Fix for PR c++/33.
12668
12669 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12670
12671         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12672         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12673         by regexp matching against SYMBOL_NATURAL_NAME.
12674
12675 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12676
12677         * linespec.c (find_method): Extract code into collect_methods.
12678         (collect_methods): New.
12679
12680 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
12681
12682         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12683         get_frame_base.
12684
12685         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12686         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12687
12688 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12689
12690         * arch-utils.c (generic_register_byte): Fix to use the loop index
12691         and not regnum when summing the size of all registers up to regnum.
12692
12693 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12694
12695         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12696         FRAME_INIT_SAVED_REGS.
12697         * gdbarch.h, gdbarch.c: Regenerate.
12698         * stack.c (frame_info): Update.
12699         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12700         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12701         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12702         * ns32k-tdep.c (ns32k_pop_frame): Update.
12703         * mips-tdep.c (mips_pop_frame): Update.
12704         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12705         * ia64-tdep.c (ia64_frame_chain): Update.
12706         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12707         (ia64_frameless_function_invocation): Update.
12708         (ia64_init_extra_frame_info): Update.
12709         (ia64_pop_frame_regular): Update.
12710         * frame.h (struct frame_info): Update comment.
12711         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12712         * frame.c (frame_saved_regs_register_unwind): Update.
12713         (frame_saved_regs_register_unwind): Update.
12714         (deprecated_generic_get_saved_register): Update.
12715         * cris-tdep.c: Update comment.
12716         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12717         Rename macro.
12718         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12719         * x86-64-tdep.c (x86_64_init_abi): Update.
12720         * vax-tdep.c (vax_gdbarch_init): Update.
12721         * v850-tdep.c (v850_gdbarch_init): Update.
12722         * sparc-tdep.c (sparc_gdbarch_init): Update.
12723         * sh-tdep.c (sh_gdbarch_init): Update.
12724         * s390-tdep.c (s390_gdbarch_init): Update.
12725         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12726         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12727         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12728         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12729         * mips-tdep.c (mips_gdbarch_init): Update.
12730         * mcore-tdep.c (mcore_gdbarch_init): Update.
12731         * m68k-tdep.c (m68k_gdbarch_init): Update.
12732         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12733         * ia64-tdep.c (ia64_gdbarch_init): Update.
12734         * i386-tdep.c (i386_gdbarch_init): Update.
12735         * frv-tdep.c (frv_gdbarch_init): Update.
12736         * avr-tdep.c (avr_gdbarch_init): Update.
12737         * arm-tdep.c (arm_gdbarch_init): Update.
12738         * alpha-tdep.c (alpha_gdbarch_init): Update.
12739
12740 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12741
12742         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12743         option enum and switch.  When no windows, set the interpreter to
12744         INTERP_CONSOLE.
12745
12746 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12747
12748         * main.c (captured_main): Replace magic option characters with an
12749         enum.
12750
12751 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12752
12753         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12754         INIT_EXTRA_FRAME_INFO.
12755         * gdbarch.h, gdbarch.c: Regenerate.
12756         * arm-tdep.c: Update comments.
12757         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12758         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12759         * frame.h, avr-tdep.c: Ditto.
12760         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12761         (create_new_frame, legacy_get_prev_frame): Ditto.
12762         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12763         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12764         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12765         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12766         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12767         * v850-tdep.c (v850_gdbarch_init): Ditto.
12768         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12769         * sh-tdep.c (sh_gdbarch_init): Ditto.
12770         * s390-tdep.c (s390_gdbarch_init): Ditto.
12771         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12772         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12773         * mips-tdep.c (mips_gdbarch_init): Ditto.
12774         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12775         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12776         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12777         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12778         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12779         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12780         * frv-tdep.c (frv_gdbarch_init): Ditto.
12781         * cris-tdep.c (cris_gdbarch_init): Ditto.
12782         * avr-tdep.c (avr_gdbarch_init): Ditto.
12783         * arm-tdep.c (arm_gdbarch_init): Ditto.
12784         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12785         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12786
12787 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12788
12789         * gdbarch.sh (register_type): New function with predicate.
12790         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12791         * gdbarch.h, gdbarch.c: Re-generate.
12792         * arch-utils.c (generic_register_byte): Use generic_register_size.
12793         (generic_register_size): When available, use
12794         gdbarch_register_type.
12795         * regcache.c (init_regcache_descr): When available, initialize the
12796         register type array using gdbarch_register_type.  If the
12797         architecture supplies gdbarch_register_type, do not use the legacy
12798         regcache layout.
12799         * d10v-tdep.c (d10v_register_type): Replace
12800         d10v_register_virtual_type.
12801         (d10v_gdbarch_init): Set register_type instead of
12802         register_virtual_type.
12803
12804 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12805
12806         * Makefile.in (ax-gdb.o): Update dependencies.
12807         * ax-gdb.c: Include "regcache.h".
12808         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12809         * findvar.c (value_of_register): Ditto.
12810         * infcmd.c (default_print_registers_info): Ditto.
12811
12812 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12813
12814         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12815         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12816
12817 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12818
12819         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12820         of STREQ.
12821
12822 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12823
12824         * Makefile.in (dwarf2loc.o): Update dependencies.
12825         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12826         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12827         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12828         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12829         (locexpr_tracepoint_var_ref): New function.
12830         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12831
12832 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12833
12834         * regcache.c (register_size): New function.
12835         * regcache.h (register_size): Declare
12836         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12837         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12838
12839 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12840
12841         * linespec.c (decode_compound): Extract code into find_method.
12842         (find_method): New.
12843
12844 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12845
12846         * Makefile.in: Add rules to build and link in observer.o.
12847
12848 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12849
12850         * observer.c: Minor comments edits.
12851
12852 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12853
12854         * observer.h, observer.c: New file.
12855
12856 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12857
12858         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12859
12860 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12861
12862         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12863         (M6812_OP_STS_EXT): Likewise.
12864         (m6811_prologue): Use the above to recognize prologue.
12865         (m6812_prologue): Likewise.
12866
12867 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12868
12869         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12870         SYMBOL_PRINT_NAME.
12871         (compare_psymbols): Ditto.
12872         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12873
12874 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12875
12876         * f-lang.c (build_fortran_types): New function.
12877         (_initialize_f_language): Gdbarch-register built-in fortran types.
12878         * doublest.c (extract_floating): Fix warning text.
12879
12880 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12881
12882         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12883         predicate.  Replaces PUSH_DUMMY_FRAME.
12884         * gdbarch.h, gdbarch.c: Regnerate.
12885         * valops.c (hand_function_call): Update.  Call
12886         generic_push_dummy_frame directly.
12887         * vax-tdep.c (vax_gdbarch_init): Update.
12888         * sparc-tdep.c (sparc_gdbarch_init): Update.
12889         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12890         * m68k-tdep.c (m68k_gdbarch_init): Update.
12891         * hppa-tdep.c (hppa_gdbarch_init): Update.
12892         * alpha-tdep.c (alpha_gdbarch_init): Update.
12893         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12894         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12895         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12896         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12897         push_dummy_frame to generic_push_dummy_frame.
12898         * v850-tdep.c (v850_gdbarch_init): Ditto.
12899         * sh-tdep.c (sh_gdbarch_init): Ditto.
12900         * s390-tdep.c (s390_gdbarch_init): Ditto.
12901         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12902         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12903         * mips-tdep.c (mips_gdbarch_init): Ditto.
12904         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12905         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12906         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12907         * i386-tdep.c (i386_gdbarch_init): Ditto.
12908         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12909         * frv-tdep.c (frv_gdbarch_init): Ditto.
12910         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12911         * cris-tdep.c (cris_gdbarch_init): Ditto.
12912         * avr-tdep.c (avr_gdbarch_init): Ditto.
12913         * arm-tdep.c (arm_gdbarch_init): Ditto.
12914
12915 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
12916
12917         * mips-tdep.c (show_mips_abi): New function.
12918         (_initialize_mips_tdep): Use show_mips_abi() to implement the
12919         command ``show mips abi''.
12920
12921 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
12922
12923         From Elena Zannoni  <ezannoni@redhat.com>
12924         * dbxread.c (process_one_symbol): Only record line 0 if one or
12925         more sline entries have been seen for the function.
12926
12927 2003-02-26  Michael Chastain  <mec@shout.net>
12928
12929         * configure: Regenerate with autoconf 000227.
12930
12931 2003-02-26  Michael Chastain  <mec@shout.net>
12932
12933         Close PR build/660.
12934         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12935         for old libc5/glibc.
12936         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12937
12938 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
12939
12940         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12941         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12942
12943 2003-02-26  Michael Chastain  <mec@shout.net>
12944
12945         * configure.in: New variable HAVE_UINTPTR_T.
12946         * configure, config.in: Regenerated.
12947
12948 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
12949
12950         Fix PR build/1097.
12951         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12952
12953 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12954
12955         * frame.c (get_prev_frame): Add comment on check for
12956         inside_entry_func. Only check for inside_entry_file when not a
12957         dummy and not a sentinel.  Check that the new frame is not inner
12958         to the old frame.
12959
12960 2003-02-25  Andrew Cagney  <cagney@redhat.com>
12961
12962         * frame.c (frame_debug): New variable.
12963         (_initialize_frame): Add "set/show debug frame" command.
12964         (get_prev_frame): When frame_debug, print reason why unwind
12965         failed.
12966
12967 2003-02-25  Michael Chastain  <mec@shout.net>
12968
12969         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12970         to avoid uintptr_t definition problems.
12971
12972 2003-02-25  David Carlton  <carlton@math.stanford.edu>
12973
12974         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12975         (SYMBOL_LINKAGE_NAME): Ditto.
12976         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12977         SYMBOL_LINKAGE_NAME.
12978         (struct general_symbol_info): Expand comment.
12979         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12980         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12981         (SYMBOL_MATCHES_REGEXP): Ditto.
12982         * symtab.c (symbol_natural_name): New function.
12983         * objfiles.h: Replace all uses of SYMBOL_NAME by
12984         DEPRECATED_SYMBOL_NAME.
12985         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12986         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12987         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12988         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12989         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12990         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12991         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12992         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12993         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12994         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12995         * ada-exp.y: Ditto.
12996         * ada-exp.y: Update copyright.
12997         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12998         * cp-valprint.c: Ditto.
12999
13000 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13001
13002         * infptrace.c (detach): Do not flag error if ptrace detach fails
13003         and errno is set to ESRCH.
13004
13005 2003-02-24  Andrew Cagney  <cagney@redhat.com>
13006
13007         * infptrace.c (udot_info): Change type of udot_off to long.  Use
13008         paddr when printing udot_off's value.
13009
13010 2003-02-24  David Carlton  <carlton@math.stanford.edu>
13011
13012         * symtab.c (make_symbol_overload_list): Only read in partial
13013         symtabs containing a matching partial symbol.
13014
13015 2003-02-24  David Carlton  <carlton@math.stanford.edu>
13016
13017         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
13018         do the comparison, not strcmp.
13019         * symfile.c (compare_psymbols): Ditto.
13020         * defs.h: Declare strcmp_iw_ordered.
13021         * utils.c (strcmp_iw_ordered): New function.
13022
13023 2003-02-24  Jim Blandy  <jimb@redhat.com>
13024
13025         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
13026         support, shared libs): Remove my name from here, to better reflect
13027         reality.
13028
13029 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13030
13031         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
13032         (target_ops): Add to_have_continuable_watchpoint.
13033         * target.c (update_current_target): Add INHERIT line for
13034         to_have_continuable_watchpoint.
13035         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
13036         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
13037         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
13038         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
13039
13040 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
13041
13042         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
13043         maintainership.
13044
13045 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13046
13047         * solib.c (solib_open): Call target defined search function after
13048         failing with solib-search-path.
13049         * solist.h (target_so_ops): Add find_and_open_solib function hook and
13050         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
13051
13052 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13053
13054         * MAINTAINERS: Add myself to Write After section.
13055
13056 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
13057
13058         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
13059
13060 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
13061
13062         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
13063         (m68hc11_add_reggroups): New function.
13064         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
13065         (m68hc11_gdbarch_init): Install the reggroups.
13066         (_initialize_m68hc11_tdep): Initialize them.
13067
13068 2003-02-21  James E Wilson  <wilson@tuliptree.org>
13069
13070         * MAINTAINERS: Update my email address.
13071
13072 2003-02-21  David Carlton  <carlton@math.stanford.edu>
13073
13074         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
13075
13076 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
13077
13078         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13079         * symtab.h: Add opaque declarations of struct axs_value and
13080         struct agent_expr.
13081         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13082         (struct location_funcs): New type.
13083         (struct symbol): Add "loc" to aux_value.
13084         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13085         * dwarf2read.c: Include "dwarf2expr.h".
13086         (dwarf2_symbol_mark_computed): New function.
13087         (read_func_scope): Use it.
13088         (var_decode_location): New function.
13089         (new_symbol): Use it.
13090         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13091
13092         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13093         (dwarf2expr_h, dwarf2loc_h): New variables.
13094         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13095         (dwarf2expr.o, dwarf2loc.o): New rules.
13096         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13097         * buildsym.c (finish_block): Handle LOC_COMPUTED and
13098         LOC_COMPUTED_ARG.
13099         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13100         * m2-exp.y (yylex): Likewise.
13101         * printcmd.c (address_info, print_frame_args): Likewise.
13102         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13103         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13104         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13105         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13106         * symtab.c (lookup_block_symbol): Likewise.
13107
13108 2003-02-20  Adam Fedor  <fedor@gnu.org>
13109
13110         * symtab.h: Remove objc_specific struct
13111         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13112         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13113         Have language_objc use cplus_specific struct.
13114
13115 2003-02-20  Tom Tromey  <tromey@redhat.com>
13116
13117         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13118         TYPE_NAME, when printing a String value.  PR java/1075.
13119
13120 2003-02-20  Adam Fedor  <fedor@gnu.org>
13121
13122         * objc-lang.h (find_methods): Remove declaration.
13123         * objc-lang.c (find_methods): Make static.
13124
13125 2003-02-20  Christopher Faylor  <cgf@redhat.com>
13126
13127         * win32-nat.c (get_image_name): Check return value from
13128         ReadProcessMemory.
13129         (child_xfer_memory): Ditto.
13130
13131 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
13132
13133         * configure.in (TARGET_SYSTEM_ROOT): Set default to
13134         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
13135         '${exec_prefix}' (in addition to the expansion thereof) as
13136         relocatable.
13137         * configure: Rebuilt.
13138
13139 2003-02-20  David Carlton  <carlton@math.stanford.edu>
13140
13141         * symtab.c (search_symbols): Revert the search_symbols part of my
13142         2002-12-23 patch.  Add comment.
13143
13144 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13145
13146         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13147         * dbxread.c (elfstab_build_psymtabs): Don't call
13148         install_minimal_symbols.
13149         (stabsect_build_psymtabs): Likewise.
13150         * elfread.c (elf_symfile_read): Call install_minimal_symbols
13151         earlier.
13152         * somread.c (som_symfile_read): Call install_minimal_symbols
13153         and do_cleanups earlier.
13154         * nlmread.c (nlm_symfile_read): Likewise.
13155         * mdebugread.c (elfmdebug_build_psymtabs): Call
13156         install_minimal_symbols and make appropriate cleanups.
13157
13158 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13159
13160         * solib.c (reload_shared_libraries): New function.
13161         (_initialize_solib): Add callbacks for ``set solib-search-path''
13162         and ``set solib-absolute-prefix''.
13163
13164 2003-02-20  David Carlton  <carlton@math.stanford.edu>
13165
13166         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13167         expand comment.
13168         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13169         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13170         * ada-typeprint.c (ada_typedef_print): Ditto.
13171         * ax-gdb.c (gen_var_ref): Ditto.
13172         * breakpoint.c (print_one_breakpoint): Ditto.
13173         * buildsym.c (finish_block): Ditto.
13174         * c-valprint.c (c_val_print): Ditto.
13175         * expprint.c (print_subexp): Ditto.
13176         * findvar.c (locate_var_value): Ditto.
13177         * infcmd.c (jump_command): Ditto.
13178         * linespec.c (decode_line_2, decode_compound): Ditto.
13179         * maint.c (maintenance_translate_address): Ditto.
13180         * objc-lang.c (compare_selectors, compare_classes): Ditto.
13181         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13182         Ditto.
13183         * p-valprint.c (pascal_val_print): Ditto.
13184         * stabsread.c (define_symbol): Ditto.
13185         * stack.c (print_frame, frame_info, print_block_frame_locals)
13186         (print_frame_arg_vars, return_command): Ditto.
13187         * symfile.c (compare_symbols, compare_psymbols): Ditto.
13188         * symmisc.c (print_symbol): Ditto.
13189         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13190         (compare_search_syms, print_symbol_info, print_msymbol_info)
13191         (rbreak_command): Ditto.
13192         * tracepoint.c (tracepoints_info): Ditto.
13193         * typeprint.c (typedef_print): Ditto.
13194         * valops.c (value_of_variable, hand_function_call): Ditto.
13195         * cli/cli-cmds.c (edit_command, list_command): Ditto.
13196         * ada-typeprint.c: Update Copyright.
13197         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13198         * tracepoint.c, cli/cli-cmds.c: Ditto.
13199
13200 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13201
13202         * frame.c (generic_unwind_get_saved_register): Make non-static.
13203         * frame.h (generic_unwind_get_saved_register): Declare.
13204         * mips-tdep.c (read_next_frame_reg): Fetch register from
13205         current regcache when frame is NULL.
13206         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13207         that must be NULL.
13208         (mips_get_saved_register): Call generic_unwind_get_saved_register()
13209         instead of frame_register_unwind().
13210
13211 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13212
13213         * remote-sim.c (gdbsim_insert_breakpoint)
13214         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13215         code.
13216
13217 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13218
13219         * remote.c (_initialize_remote): Add commands "set/show remote
13220         hardware-watchpoint-limit" and "set/show remote
13221         hardware-breakpoint-limit".
13222         (remote_hw_watchpoint_limit): Initialize to -1.
13223         (remote_hw_breakpoint_limit): Ditto.
13224         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13225
13226 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
13227
13228         * coff-pe-read.c: New file - support reading of minimal symbols from a
13229         portable executable using the export table.
13230         * coff-pe-read.h: New file.
13231         * coffread.c: Include coff-pe-read.h.
13232         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13233         debugging symbols found.
13234         * Makefile.in (SFILES): Add coff-pe-read.o.
13235         (coff_pe_read_h): Define.
13236         (COMMON_OBS): Add coff-pe-read.o.
13237         (coffread.o): Add coff_pe_read_h dependency.
13238         (coff-pe-read.o): New target.
13239
13240 2003-02-19  David Carlton  <carlton@math.stanford.edu>
13241
13242         * Makefile.in (SFILES): Add block.c.
13243         (block_h): New.
13244         (COMMON_OBS): Add block.o.
13245         (block.o): New.
13246         (x86-64-tdep.o): Add $(block_h).
13247         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13248         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13249         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13250         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13251         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13252         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13253         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13254         * value.h: Add opaque declaration for struct block.
13255         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13256         * ada-lang.h: Ditto.
13257         * x86-64-tdep.c: #include "block.h"
13258         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13259         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13260         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13261         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13262         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13263         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13264         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13265         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13266         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13267         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13268         * symtab.c (block_function): Ditto.
13269         (contained_in): Ditto.
13270         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13271         block.h.  Add opaque declaration for struct block.
13272         * symtab.h: Move block_function and contained_in declarations to
13273         block.h.  Add opaque declarations for struct block, struct
13274         blockvector.
13275         (struct block): Move to block.h.
13276         (struct blockvector): Ditto.
13277         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13278         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13279         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13280         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13281         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13282         Ditto.
13283         * block.c: New file.
13284         * block.h: New file.
13285
13286 2003-02-19  Theodore A. Roth  <troth@openavr.org>
13287
13288         * avr-tdep.c (avr_extract_return_value): Remove function.
13289         (avr_store_return_value): Remove function.
13290         (avr_extract_struct_value_address): Remove function.
13291         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13292
13293 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
13294
13295         * rs6000-tdep.c: Include "gdb_assert.h".
13296         (registers_e500): Add "acc" and "spefscr".
13297         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13298         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13299         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
13300         really is "r0".
13301         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13302
13303 2003-02-18  Keith Seitz  <keiths@redhat.com>
13304
13305         * Makefile.in: Add gdbtk-interps.c.
13306
13307 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
13308
13309         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13310         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13311
13312 2003-02-18  Andrew Cagney  <cagney@redhat.com>
13313
13314         * symtab.h (struct objfile): Add opaque declaration.
13315
13316 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
13317
13318         From Jim Ingham   <jingham@apple.com>:
13319         * dbxread.c (process_one_symbol): Use last_function_start rather
13320         than function_start_offset to find the real beginning of the
13321         current function.  The latter is just the text section offset on
13322         some systems, the former is always the real function start.
13323
13324 2003-02-17  Andrew Cagney  <cagney@redhat.com>
13325
13326         * configure.in: Revert ${target} != ${host}.
13327
13328 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
13329
13330         * configure.in (Makefile): Use the test ${target} != ${host},
13331         instead of the absence of the "nm.h" file, to determine of the
13332         configuration non-native.
13333         * configure: Regenerate.
13334
13335 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
13336
13337         From Brian Ford  <ford@vss.fsi.com>
13338
13339         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13340         conditionalize tui_active test.
13341         (lookup_cmd_1): Ditto.
13342
13343 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
13344
13345         * configure.in: Add check for _etext.
13346         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13347         available.
13348         * config.in, configure: regenerated.
13349
13350 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
13351
13352         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13353
13354 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
13355
13356         * main.c (tui_version): Delete variable.
13357         (captured_main): When --tui, set interpreter_p to "tui" instead of
13358         enabling tui_version.
13359         * printcmd.c (display_command) [TUI]: Test tui_active instead of
13360         tui_version.
13361         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13362         * cli/cli-cmds.c (disassemble_command): Ditto.
13363         * defs.h (tui_version): Delete declaration.
13364         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13365         (tui-interp.o): Add rules.
13366         (SUBDIR_TUI_OBS): Add "tui-interp.o".
13367
13368 2003-02-14  Christopher Faylor  <cgf@redhat.com>
13369
13370         * win32-nat.c (register_loaded_dll): Correctly set address range for
13371         just-loaded dll.
13372
13373 2003-02-12  Jason Molenda  (jmolenda@apple.com)
13374
13375         * symmisc.c (print_objfile_statistics): Include information about
13376         the number of psymtabs and symtabs in each object file.
13377
13378 2003-02-13  Keith R Seitz  <keiths@redhat.com>
13379
13380         * main.h (struct captured_main_args): Add interpreter_p.
13381         * main.c (captured_main): Initialize interpreter_p from context.
13382         * gdb.c (main): Set interpreter_p argument.
13383         * Makefile.in (gdb.o): Add dependency for interps.h.
13384
13385 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13386
13387         * event-top.c (cli_command_loop): Delete declaration.
13388         (_initialize_event_loop): Delete function setting event_loop_hook.
13389         * event-top.h (cli_command_loop): Declare.  Update copyright.
13390         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
13391         * interps.c (current_interp_command_loop): When event_loop_p, call
13392         cli_command_loop.
13393
13394 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13395
13396         * interps.h (interp_command_loop_ftype): Change return type to
13397         void.
13398
13399 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
13400
13401         * x86-64-tdep.c (x86_64_extract_return_value)
13402         (x86_64_store_return_value): Use regcache instead of regbuf.
13403         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13404         * x86-64-linux-nat.c (fill_gregset): Use regcache.
13405
13406 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
13407
13408         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13409         * aclocal.m4: Regenerate.
13410         * configure: Regenerate.
13411
13412         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13413         TCL_LD_SEARCH_FLAGS.
13414
13415 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
13416
13417         * dwarf2cfi.c: Reindented.
13418
13419 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
13420
13421         * interps.c (clear_interpreter_hooks): Convert function definition
13422         to ISO C.
13423
13424 2003-02-07  David Carlton  <carlton@math.stanford.edu>
13425
13426         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13427
13428 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
13429
13430         * gdbtypes.h (struct main_type): Move ``length'' field from here...
13431         (struct type): ...to here.
13432         (TYPE_LENGTH): Adjust to reflect different location of ``length''
13433         field.
13434         * gdbtypes.c (make_qualified_type): Set length on newly created type.
13435         (replace_type): Set length on all type variants for a given type.
13436
13437 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
13438
13439         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13440         <sys/stat.h>.
13441         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13442
13443 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
13444
13445         * Makefile.in (symm-nat.o): Update dependencies.
13446         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13447         (lynx-nat.o, ia64-linux-nat.): Ditto.
13448         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13449         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13450         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13451
13452         * Makefile.in (inflow_h): Define.
13453         (procfs.o, inflow.o, procfs.o): Update dependencies.
13454         * inftarg.c (child_stop): Delete extern declaration of
13455         inferior_process_group.  Include "inflow.h".
13456         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
13457         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13458         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
13459         (our_process_group, inferior_process_group): Extern declarations.
13460
13461         * procfs.c: Include "gdb_assert.h".
13462
13463         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13464         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13465         * jv-typeprint.c (java_type_print_base): Ditto.
13466         * typeprint.c (typedef_print): Eliminate STREQ.
13467         * cli/cli-script.c (define_command, define_command): Ditto.
13468         * main.c (captured_main): Ditto.
13469         * values.c (lookup_internalvar): Ditto.
13470         * utils.c (safe_strerror, parse_escape): Eliminate assignment
13471         within `if' conditional.
13472         * linespec.c (decode_line_2): Ditto.
13473         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13474         (bfd_openw_with_cleanup): Ditto.
13475
13476 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
13477
13478         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13479         legacy_extract_return_value and store_return_value to
13480         legacy_return_value.
13481
13482 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
13483
13484         * win32-nat.c (get_relocated_section_addrs): New function.  Find
13485         section load addresses for symbol handling in relocated DLLs.
13486         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13487
13488 2003-02-05  Fred Fish  <fnf@intrinsity.com>
13489
13490         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13491         '=' and '!='.
13492         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13493         with '&' and '=='.
13494         (angel_RDI_info): Ditto.
13495         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13496         with '&' and '!='.
13497         (threads_continue_all_with_signals): Ditto.
13498
13499 2003-02-05  Jim Ingham <jingham@apple.com>
13500             Keith Seitz  <keiths@redhat.com>
13501             Elena Zannoni  <ezannoni@redhat.com>
13502             Andrew Cagney  <ac131313@redhat.com>
13503
13504         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13505         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13506         (SUBDIR_MI_OBS): Add "mi-interp.o".
13507         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13508         (SFILES): Add "interps.c".
13509         (COMMON_OBS): Add "interps.o".
13510         (interps_h, mi_main_h): Define.
13511         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13512         (mi-main.o, main.o, event-top.o): Update dependencies.
13513         * cli/cli-interp.c: New file.
13514         * interps.h, interps.c: New files.
13515         * top.c: (gdb_init): Don't install the default interpreter, handed
13516         by captured_main.
13517         * main.c: Include "interps.h".
13518         (interpreter_p): Note that it should malloc'ed.
13519         (captured_command_loop): Call current_interp_command_loop.
13520         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
13521         xfree and xstrdup when updating interpreter_p.  Install the
13522         default interpreter.  Add hack to stop mi1's copyright notice
13523         being encoded.
13524         * event-top.h (gdb_setup_readline): Declare.
13525         (gdb_disable_readline): Declare.
13526         * event-top.c: Include "interps.h".
13527         (display_gdb_prompt): Call current_interp_display_prompt_p.
13528         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13529         gdb_stdlog, and gdb_stdtarg.
13530         (_initialize_event_loop): Don't call gdb_setup_readline.
13531         * cli-out.c (cli_out_set_stream): New function.
13532         * cli-out.h (cli_out_set_stream): Declare.
13533
13534 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
13535
13536         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13537         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
13538         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13539         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13540         config/i386/i386v42mp.mt: Removed.
13541
13542 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
13543
13544         * configure.tgt (*-*-solaris*): Set gdb_osabi to
13545         GDB_OSABI_SOLARIS.
13546
13547 2003-02-05  Michael Chastain  <mec@shout.net>
13548
13549         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13550         2.12.1 and earlier versions.
13551
13552 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
13553
13554         Remove orphaned hosts, targets and files.
13555         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13556         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13557         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13558         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13559         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13560         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13561         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13562         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13563         * config/sparc/tm-sp64sim.h: Delete.
13564         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13565         hosts.
13566         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13567         mips*-dec-mach3* targets.
13568
13569 2003-02-04  Michael Chastain  <mec@shout.net>
13570
13571         * NEWS: Fix typo: sepcifying -> specifying.
13572
13573 2003-02-04  Michael Chastain  <mec@shout.net>
13574
13575         * dwarfread.c: Add documentation on the state of dwarf-1,
13576         looking towards obsoletion.
13577
13578 2003-02-03  Michael Chastain  <mec@shout.net>
13579
13580         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13581         gdb/testsuite/gdb.c++/pr-1023.exp.
13582
13583 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13584
13585         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13586         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13587
13588         * utils.c (init_page_info): Delete reference to MPW in comments.
13589         * main.c (captured_main): Delete #ifdef MPW.
13590
13591 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13592
13593         * NEWS: Note that the m32r-*-elf* is obsolete.
13594         * monitor.c (monitor_expect): Obsolete reference to m32r.
13595         * configure.tgt: Mark m32r-*-elf* as obsolete.
13596         * MAINTAINERS: Mark m32k as obsolete.
13597         * m32r-rom.c: Obsolete file.
13598         * config/m32r/m32r.mt: Obsolete file.
13599         * config/m32r/tm-m32r.h: Obsolete file.
13600         * m32r-stub.c: Obsolete file.
13601         * m32r-tdep.c: Obsolete file.
13602
13603 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13604
13605         * NEWS: Mention that the z8k-zilog-none is obsolete.
13606         * MAINTAINERS: Mark z8k as obsolete.
13607         * configure.tgt: Obsolete the z8k-*-coff* target.
13608         * config/z8k/z8k.mt: Obsolete file.
13609         * config/z8k/tm-z8k.h: Obsolete file.
13610         * z8k-tdep.c: Obsolete file.
13611
13612 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13613
13614         * NEWS: Mention that the mn10200-elf is obsolete.
13615         * configure.tgt: Obsolete mn10200-*-* target.
13616         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13617         mention that the mn10200 is obsolete.
13618         * breakpoint.h: Ditto.
13619         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13620         * config/mn10200/mn10200.mt: Obsolete file.
13621         * config/mn10200/tm-mn10200.h: Obsolete file.
13622         * mn10200-tdep.c: Obsolete file.
13623
13624 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13625
13626         * MAINTAINERS: Mark h8500 as obsolete.
13627         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13628         * findvar.c (value_from_register): Ditto.
13629         * h8500-tdep.c: Mark file as obsolete.
13630         * config/h8500/h8500.mt: Ditto.
13631         * config/h8500/tm-h8500.h: Ditto.
13632         * NEWS: Mention that h8500 is obsolete.
13633
13634 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13635
13636         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13637         start of function.
13638         * jv-lang.c (get_dynamics_objfile): Add comment.
13639
13640 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13641
13642         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13643         * printcmd.c (build_address_symbolic): Replace uses of
13644         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13645         SYMBOL_NAME, and asm_demangle.
13646         Update copyright.
13647
13648 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13649
13650         * linespec.c (decode_compound): Extract code into
13651         lookup_prefix_sym.
13652         (lookup_prefix_sym): New function.
13653
13654 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13655
13656         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13657         FLOAT_COERCION_BADNESS.
13658         * gdbtypes.c (rank_one_type): Replace all uses of
13659         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13660
13661 2003-02-04  Jim Blandy  <jimb@redhat.com>
13662
13663         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13664         section, let dwarf_macinfo_section point to it, not
13665         dwarf_loc_section.
13666
13667 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13668
13669         Pointed out by Anton Blanchard <anton@samba.org>.
13670         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13671         (ppc_linux_at_sigtramp_return_path): Use it.
13672
13673 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13674
13675         * defs.h (streq): Add prototype.
13676         * utils.c (streq): New function.
13677
13678         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13679         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13680         * mdebugread.c (new_symbol): Likewise.
13681         * stabsread.c (define_symbol): Likewise.
13682         * coffread.c (process_coff_symbol): Likewise.
13683         * dwarfread.c (new_symbol): Likewise.
13684
13685         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13686         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13687         here.
13688         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13689         SYMBOL_INIT_DEMANGLED_NAME.
13690         * objfiles.c: Include "hashtab.h".
13691         (allocate_objfile): Call htab_set_functions_ex for the
13692         demangled_names_hash.
13693         (free_objfile): Call htab_delete for the demangled_names_hash.
13694         * objfiles.h (struct htab): Add declaration.
13695         (struct objfile): Add demangled_names_hash.
13696         * symfile.c: Include "hashtab.h".
13697         (reread_symbols): Call htab_delete for the demangled_names_hash.
13698         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13699         SYMBOL_NAME in the bcache.
13700         * symtab.c: Include "hashtab.h".  Update comments.
13701         (create_demangled_names_hash, symbol_set_names): New functions.
13702         (symbol_find_demangled_name): New function, broken out from
13703         symbol_init_demangled_names.
13704         (symbol_init_demangled_names): Use it.
13705         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13706         (SYMBOL_SET_NAMES): New macro.
13707         (symbol_set_names): Add prototype.
13708
13709 2003-02-03  Jim Blandy  <jimb@redhat.com>
13710
13711         Use a single, consistent representation for an empty minimal
13712         symbol table in an objfile.
13713         * objfiles.c (terminate_minimal_symbol_table): New function.
13714         (allocate_objfile): Call it.
13715         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13716         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13717         non-NULL.
13718         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13719         objfile has minimal symbols, compare minimal_symbol_count to zero,
13720         instead of comparing msymbols with NULL.
13721         * objfiles.c (have_minimal_symbols): Same.
13722         * solib-sunos.c (solib_add_common_symbols): Call
13723         terminate_minimal_symbol_table.
13724         * symfile.c (reread_symbols): Same.
13725
13726 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
13727
13728         * s390-tdep.c (s390_address_class_type_flags)
13729         (s390_address_class_type_flags_to_name)
13730         (s390_address_class_name_to_type_flags): New functions.
13731         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13732         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13733
13734 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13735
13736         * arm-tdep.c: Fix spell-o in comment.
13737
13738 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13739
13740         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13741         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13742         error messages to contain BFD filename.
13743
13744 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13745
13746         Fix PR gdb/742 gdb/743 gdb/877
13747         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13748         (do_mixed_source_and_assembly): Use
13749         make_cleanup_ui_out_tuple_begin_end and
13750         make_cleanup_ui_out_tuple_begin_end.
13751         (do_mixed_source_and_assembly): Ditto.
13752         * thread.c (do_captured_list_thread_ids): Ditto.
13753         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13754         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13755         ui_out_tuple_end): Delete prototypes.
13756         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13757         ui_out_list_end, ui_out_tuple_end): Delete.
13758
13759         From Kevin Buettner  <kevinb@redhat.com>:
13760         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13761         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13762         (do_cleanup_table_end):  New functions.
13763         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13764         Use cleanups to invoke_ui_out_tuple_end().
13765         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13766         * cli/cli-setshow.c (cmd_show_list): Use
13767         make_cleanup_ui_out_tuple_begin_end.
13768
13769 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13770
13771         * frame.c (frame_unwind_register): New function.
13772         (frame_unwind_unsigned_register): Use.
13773         (frame_unwind_signed_register): Use.
13774         (frame_read_register): New function.
13775         * frame.h (frame_unwind_register): Declare.
13776         (frame_read_register): Declare.
13777
13778         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13779         and frame_unwind_register instead of read_memory, write_register
13780         and deprecated_write_register_bytes.
13781
13782 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13783
13784         * frame.h: Note that namelen can be negative.
13785         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13786         NAME's length.
13787
13788         * NEWS: Mention that the d10v's `regs' command is deprecated.
13789         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13790         (d10v_print_registers_info): New function.
13791         (show_regs): Call d10v_print_registers_info.
13792         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13793
13794 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13795
13796         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13797         lost in the previous patch.
13798
13799 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13800
13801         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13802         * stack.c (print_frame_info_base): Output complete FRAME tuple
13803         for synthesized frames.
13804
13805 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13806
13807         * mips-nat.c (zerobuf): Delete.
13808         (fetch_inferior_registers): Alloc local zerobuf.
13809         (fetch_core_registers): Alloc local zerobuf.
13810         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13811         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13812         * thread-db.c (thread_db_store_registers): Ditto.
13813         * sh-tdep.c (sh_do_register): Ditto.
13814         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13815         * remote-sim.c (gdbsim_store_register): Ditto.
13816         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13817         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13818         * monitor.c (monitor_supply_register): Ditto.
13819         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13820         * mips-nat.c (fetch_inferior_registers): Ditto.
13821         * m68klinux-nat.c (fetch_register): Ditto.
13822         * lynx-nat.c (fetch_inferior_registers): Ditto.
13823         (fetch_inferior_registers): Ditto.
13824         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13825         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13826         (hpux_thread_store_registers): Ditto.
13827         * hppah-nat.c (fetch_register): Ditto.
13828         * hppab-nat.c (fetch_register): Ditto.
13829         * hppa-tdep.c (pa_register_look_aside): Ditto.
13830         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13831         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13832
13833 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13834
13835         * gdbarch.sh: Explictly specify all method levels.  When a
13836         variable with an empty level, provide a non-multi-arch default.
13837         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13838         * gdbarch.h: Re-generate.
13839         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13840         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13841
13842 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13843
13844         * defs.h (host_pointer_to_address): Delete declaration.
13845         (address_to_host_pointer): Delete declaration.
13846         * utils.c (host_pointer_to_address): Delete function.
13847         (address_to_host_pointer): Delete function.
13848         * procfs.c (procfs_address_to_host_pointer): New function.
13849         * procfs.c (proc_set_watchpoint): Use.
13850         (procfs_can_use_hw_breakpoint): Update comments.
13851         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13852         (som_solib_add): Use.
13853         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13854         * hppa-tdep.c (unwind_command): Use.
13855
13856 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13857
13858         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13859         strlen d_name.
13860
13861         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13862         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13863         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13864         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13865         (define_symbol): Update.
13866         * symfile.c (generic_load): Remove references to nindy.
13867         * symtab.c: Remove references to nindy.
13868
13869 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13870
13871         * infcmd.c (print_float_info): Delete code conditional on
13872         FLOAT_INFO.
13873         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13874         * config/m68k/nm-apollo68b.h: Ditto.
13875         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13876         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13877         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13878
13879 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13880
13881         * config/i386/tm-i386os9k.h: Removed.
13882
13883         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13884         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13885         they're identical to i[3456]86-*-sysv* now.
13886         * config/i386/i386v32.mh: Removed.
13887         * config/i386/xm-i386v32.h: Removed.
13888         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13889
13890         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13891
13892         * config/i386/i386dgux.mh: Removed.
13893         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13894
13895         * configure.in: Fix typo.
13896         * configure: Regenerated.
13897
13898 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13899
13900         * dwarf2read.c (dwarf2_locate_sections): Set
13901         dwarf_ranges_section.
13902
13903 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13904
13905         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13906         * utils.c: Update comments documenting legitimate uses of PTR.
13907
13908         * utils.c: Re-indent.
13909
13910         * config/djgpp/fnchange.lst: Delete nindy files.
13911         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13912         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13913         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13914         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13915         * nindy-share/README, nindy-share/Onindy.c: Delete files.
13916         * nindy-tdep.c, nindy-share/Makefile: Delete files.
13917         * Makefile.in (init.c): Remove nindy references.
13918         (saber_gdb): Delete rule.
13919         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13920         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13921         and a68v-nat.c.
13922         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13923         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13924         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13925         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13926         nindy-share/stop.h.
13927         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13928         * saber.suppress: Delete file.
13929
13930 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
13931
13932         * dbxread.c (stabs_data): New static variable.
13933         (fill_symbuf): Support an in-memory buffer for stabs data.
13934         (stabs_seek): New function.
13935         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13936         (read_ofile_symtab): Use stabs_seek.
13937         (elfstab_build_psymtabs): Take an asection* instead of
13938         an offset and size.  Relocate the stabs data if necessary.
13939         Save the section* for dbx_psymtab_to_symtab.
13940         * dwarf2read.c: Add section variables for each debug section.
13941         (dwarf2_locate_sections): Fill them in.
13942         (dwarf2_read_section): Take an asection* argument.
13943         Relocate the section contents if necessary.
13944         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13945         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13946         it to dwarf2_read_section.
13947         (dwarf2_build_frame_info): Update callers.
13948         * elfread.c (elf_symfile_read): Update call to
13949         elfstab_build_psymtabs.
13950         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13951         (DBX_STAB_SECTION): New macro.
13952         * stabsread.h (elfstab_build_psymtabs): Update prototype.
13953         * symfile.c (symfile_dummy_outputs): New function.
13954         (symfile_relocate_debug_section): New function.
13955         * symfile.h (symfile_relocate_debug_section): Add prototype.
13956
13957 2003-01-31  Richard Henderson  <rth@redhat.com>
13958
13959         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13960         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
13961         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13962         * alpha-tdep.c (alpha_register_name): Add "unique".
13963         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13964         (ALPHA_UNIQUE_REGNUM): New.
13965         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13966
13967 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
13968
13969         * README: Remove reference to Ericsson 1800 monitor.
13970         * Makefile.in (remote-es.o): Delete rule.
13971         (ALLDEPFILES): Delete remote-es.c.
13972         * remote-es.c: Delete file.
13973         * config/m68k/es1800.mt: Delete file.
13974         * config/djgpp/fnchange.lst: Update.
13975         * configure.tgt: Delete m68*-ericsson-* target.
13976
13977 2003-01-31  Adam Fedor  <fedor@gnu.org>
13978
13979         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13980         Remove duplicate/shadowing variable of same name.
13981
13982 2003-01-30  Jim Blandy  <jimb@redhat.com>
13983
13984         * symfile.c (find_separate_debug_file): Assert that the objfile's
13985         directory name we compute ends with a slash, and then assume that
13986         that's so everywhere we use it.
13987
13988 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
13989
13990         * valops.c (value_assign): Flush frame cache after stores to memory
13991         also.
13992
13993 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13994
13995         * Makefile.in (mon960-rom.o): Delete rule.
13996         * mon960-rom.c: Delete file.
13997
13998 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
13999
14000         * d10v-tdep.c: Include "frame-unwind.h".
14001         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
14002         list.
14003         (next_addr, uses_frame): Delete.
14004         (struct d10v_unwind_cache): Define.
14005         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
14006         Use info instead of next_addr and uses_frame globals.
14007         (d10v_frame_init_saved_regs): Delete function.
14008         (d10v_init_extra_frame_info): Delete function.
14009         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
14010         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
14011         init_frame_pc or frame_saved_pc.
14012         (d10v_pop_frame): Delete function.
14013         (do_d10v_pop_frame): Delete function.
14014         (d10v_frame_chain): Delete function.
14015         (d10v_frame_chain_valid): Delete function.
14016         (d10v_frame_pc_unwind): New function.
14017         (d10v_frame_id_unwind): New function.
14018         (saved_regs_unwinder): New function.
14019         (d10v_frame_register_unwind): New function.
14020         (d10v_frame_pop): New function.
14021         (d10v_frame_unwind): New variable.
14022         (d10v_frame_p): New function.
14023         (d10v_frame_saved_pc): Delete function.
14024         * Makefile.in (d10v-tdep.o): Update dependencies.
14025
14026 2003-01-30  J. Brobecker  <brobecker@gnat.com>
14027
14028         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
14029         causing some regressions due to a change in the default value
14030         for this macro.
14031
14032 2003-01-29  Richard Henderson  <rth@redhat.com>
14033             Elena Zannoni  <ezannoni@redhat.com>
14034             Daniel Jacobowitz  <drow@mvista.com>
14035
14036         Fix PR gdb/961.
14037         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
14038         variables.
14039         (RANGES_SECTION): New.
14040         (dwarf_ranges_buffer): New variable.
14041         (struct comp_unit_head): Add member "die".
14042         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
14043         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
14044         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
14045         (dwarf2_locate_sections): Likewise.
14046         (dwarf2_build_psymtabs): Read .debug_ranges.
14047         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
14048         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
14049         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
14050         Look for DW_AT_ranges and return the bounding box.
14051
14052 2003-01-29  Brian Ford <ford@vss.fsi.com>
14053
14054         * win32-nat.c (cygwin_pid): Removed as unused.
14055         (child_attach): Try fall back to Cygwin pid.
14056
14057 2003-01-29  Jim Blandy  <jimb@redhat.com>
14058
14059         * objfiles.h (struct objfile): Doc fix.
14060
14061 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
14062
14063         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
14064         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
14065         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
14066         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
14067         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
14068         (FRAME_SAVED_PC): Change to a function with predicate.
14069         * gdbarch.h, gdbarch.c: Re-generate.
14070
14071 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
14072
14073         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
14074
14075         * complaints.c (complain): Delete function.
14076         * complaints.h (struct deprecated_complaint): Delete definition.
14077         (complain): Delete declaration.
14078
14079 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
14080
14081         * mips-tdep.c (mips_init_extra_frame_info): Return early for
14082         dummy frames.
14083
14084 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
14085
14086         * sentinel-frame.h, sentinel-frame.c: New files.
14087         * Makefile.in (frame.o): Update dependencies.
14088         (SFILES): Add sentinel-frame.c.
14089         (sentinel_frame_h): Define.
14090         (COMMON_OBS): Add sentinel-frame.o.
14091         (sentinel-frame.o): Specify dependencies.
14092         * frame.c: Include "sentinel-frame.h".
14093         (frame_register_unwind): Rewrite assuming that there is always a a
14094         ->next frame.
14095         (frame_register, generic_unwind_get_saved_register): Ditto.
14096         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14097         (create_sentinel_frame, unwind_to_current_frame): New functions.
14098         (get_current_frame): Rewrite using create_sentinel_frame and
14099         unwind_to_current_frame.  When possible, always create a frame.
14100         (create_new_frame): Set next to the sentinel frame.
14101         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
14102         (deprecated_update_frame_pc_hack): Update the next frame's PC and
14103         ID cache when necessary.
14104         (frame_saved_regs_id_unwind): Use frame_relative_level.
14105         (deprecated_generic_get_saved_register): Use frame_relative_level,
14106         get_frame_saved_regs, get_frame_pc, get_frame_base and
14107         get_next_frame.
14108         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14109         frame_register.
14110
14111 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14112
14113         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14114
14115 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14116
14117         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14118         (maintenance_set_profile_cmd): Use error () instead of warning ().
14119
14120 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14121
14122         * configure.in: Check that -pg works if using --enable-profiling.
14123         Check for monstartup and _mcleanup regardless of --enable-profiling.
14124         * maint.c: Check for monstartup and _mcleanup before using them.
14125         * config.in: Regenerated.
14126         * configure: Regenerated.
14127
14128 2003-01-24  Nick Clifton  <nickc@redhat.com>
14129
14130         * Add sh2e support:
14131
14132         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
14133
14134                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14135                 (sh2e_show_regs): New.
14136                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14137                 * config/sh/tm-sh.h: Added sh2e to comments.
14138
14139 2003-01-23  Jim Blandy  <jimb@redhat.com>
14140
14141         * symfile.c (syms_from_objfile): Don't print the "(no debugging
14142         symbols found)" message here; we haven't checked for a separate
14143         debug info file yet, so we don't know yet.
14144         (symbol_file_add_with_addrs_or_offsets): Print it here, after
14145         we've looked everywhere.  Also, there's no need to print a special
14146         message when we're loading the separate debug info file: the one
14147         symbol_file_add prints is fine.
14148
14149 2003-01-23  Alexander Larsson <alexl@redhat.com>
14150             Jim Blandy  <jimb@redhat.com>
14151
14152         Add support for executables whose debug info has been separated
14153         out into a separate file, leaving only a link behind.
14154         * objfiles.h (struct objfile): New fields: separate_debug_objfile
14155         and separate_debug_objfile_backlink.
14156         (put_objfile_before): New declaration.
14157         * symfile.c: #include "filenames.h".
14158         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14159         debug info in a separate file, read that, too. Save the addrs
14160         argument, so we can use it again to read the separated debug info;
14161         syms_from_objfile modifies the table we pass it.
14162         (reread_symbols): After re-reading an objfile, call
14163         reread_separate_symbols to refresh its separate debug info
14164         objfile, if it has one.
14165         (reread_separate_symbols, find_separate_debug_file,
14166         get_debug_link_info, separate_debug_file_exists): New functions.
14167         (debug_file_directory): New global var.
14168         (_initialize_symfile): Initialize debug_file_directory, and
14169         provide the new `set debug-file-directory' command to let the user
14170         change it.
14171         * objfiles.c (free_objfile): If this objfile has its debug info in
14172         a separate objfile, free that one too.  If this is itself a
14173         separate debug info objfile, clear our parent's backlink.
14174         (put_objfile_before): New function.
14175         * utils.c (gnu_debuglink_crc32): New function.
14176         * defs.h (gnu_debuglink_crc32): New declaration.
14177         * Makefile.in (symfile.o): Note dependency on "filenames.h".
14178         * configure.in: Handle --with-separate-debug-dir config option.
14179         * acinclude.m4 (AC_DEFINE_DIR): New macro.
14180         * acconfig.h (DEBUGDIR): New macro.
14181         * configure, aclocal.m4, config.in: Regenerated.
14182
14183 2003-01-22  Jim Blandy  <jimb@redhat.com>
14184
14185         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14186         like the old symbol_file_add, but taking new arguments: you can
14187         now pass in either a `struct section_addr_info' list to say where
14188         each section is loaded, or a `struct section_offsets' table.  Pass
14189         these new arguments through to syms_from_objfile as appropriate.
14190         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
14191         with the appropriate quiescent values for the new arguments.
14192
14193         * symfile.c: #include "gdb_assert.h".
14194         (syms_from_objfile): Add the ability to pass in a section offset
14195         table directly, as an alternative to the section_addr_info table.
14196         Document arguments better.
14197         (symbol_file_add): Pass extra arguments to syms_from_objfile.
14198         * symfile.h (syms_from_objfile): Update declaration.
14199         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14200         syms_from_objfile.
14201         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14202
14203 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
14204
14205         Original patch by Tom Tromey <tromey@cygnus.com> and
14206         Jason Molenda <jmolenda@apple.com>.
14207         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14208         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14209         * NEWS: Mention profiling.
14210         * configure.in (--enable-gdbtk): Fix typo.
14211         (--enable-profiling): New.  Set PROFILE_CFLAGS.
14212         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14213         Fill in function.
14214         (profiling_state): New variable.
14215         (mcleanup_wrapper): New function.
14216         (_initialize_maint): Remove NOTYET, fix call to
14217         add_setshow_boolean_cmd for "maint set profile".
14218         * configure: Regenerated.
14219
14220 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
14221
14222         * Makefile.in (install-gdbtk): Install PNG images too.
14223
14224 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14225
14226         * exec.c (text_start): Delete global variable.
14227         (exec_file_attach): Make text_start local to the function.
14228         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14229         * valops.c (hand_function_call): Delete code that handles
14230         BEFORE_TEXT_END and AFTER_TEXT_END.
14231         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14232         of CALL_DUMMY_LOCATION.
14233         * gdbarch.c: Regenerate.
14234         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14235         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14236         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14237         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14238         (text_end): Delete extern declaration.
14239
14240 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14241
14242         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14243         * blockframe.c (backtrace_below_main): Move to "frame.c".
14244         (frame_chain_valid): Delete check for backtrace_below_main.
14245         (_initialize_blockframe): Delete initialization, move ``set
14246         backtrace-below-main'' command to "frame.c".
14247         (do_flush_frames_sfunc): Delete function.
14248         * frame.c: Include "command.h" and "gdbcmd.h".
14249         (frame_type_from_pc): New function.
14250         (create_new_frame): Use frame_type_from_pc.
14251         (legacy_get_prev_frame): New function.
14252         (get_prev_frame): Rewrite.  When an old style frame, call
14253         legacy_get_prev_frame.  Otherwize, unwind the PC first.
14254         (_initialize_frame): Add ``set backtrace-below-main'' command.
14255         * Makefile.in (frame.o): Update dependencies.
14256
14257 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14258
14259         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14260         DEPRECATED_REGISTERS_INFO.
14261
14262 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14263
14264         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14265         Maintainers'.  Update `Various Maintainers'.
14266
14267 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14268
14269         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14270         * gdbarch.sh (POP_FRAME): Change to function with predicate.
14271         Suppress actual parameters when `-'.
14272         * gdbarch.h, gdbarch.c: Regenerate.
14273
14274 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14275
14276         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14277         code handling dummy frames.
14278
14279 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14280
14281         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14282         (struct frame_unwind): Add field pop.
14283         * frame.h (frame_pop): Declare.
14284         * frame.c (frame_saved_regs_pop): New function.
14285         (trad_frame_unwinder): Add frame_saved_regs_pop.
14286         (frame_pop): New function.
14287         * dummy-frame.c (dummy_frame_pop): New function.
14288         (discard_innermost_dummy): New function.
14289         (generic_pop_dummy_frame): Use discard_innermost_dummy.
14290         (dummy_frame_unwind): Add dummy_frame_pop.
14291         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14292         * valops.c (hand_function_call): Ditto.
14293         * stack.c (return_command): Ditto.
14294
14295 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14296
14297         * cris-tdep.c: Fix function declaration indentation.
14298         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14299         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14300         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14301         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14302         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14303         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14304
14305 2003-01-18  Michael Chastain  <mec@shout.net>
14306
14307         * README (Unpacking and Installation -- quick overview):
14308         Warn against ".../gdb-5.3/gdb/configure".
14309
14310 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14311
14312         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14313         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14314         (struct frame_unwind): Declare opaque.
14315         (dummy_frame_p): Declare function.
14316         * dummy-frame.c (dummy_frame_id_unwind): Make static.
14317         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14318         * dummy-frame.c: Include "frame-unwind.h".
14319         (dummy_frame_p): New function.
14320         (dummy_frame_unwind): New variable.
14321         * frame.c: Include "frame-unwind.h".
14322         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14323         to use the new unwind field.
14324         (set_unwind_by_pc): Delete function.
14325         (create_new_frame, get_prev_frame): Set unwind field using
14326         frame_unwind_find_by_pc.
14327         (trad_frame_unwind, trad_frame_unwinder): New variables.
14328         * frame.h (trad_frame_unwind): Declare variable.
14329         (frame_id_unwind_ftype): Delete declaration.
14330         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14331         (struct frame_unwind): Declare opaque.
14332         (struct frame_info): Replace the fields id_unwind, pc_unwind and
14333         register_unwind with a single unwind pointer.
14334         * frame-unwind.h, frame-unwind.c: New files.
14335         * Makefile.in (SFILES): Add frame-unwind.c.
14336         (frame_unwind_h): Define.
14337         (COMMON_OBS): Add frame-unwind.o.
14338         (frame-unwind.o): Specify dependencies.
14339         (frame.o, dummy-frame.o): Update dependencies.
14340
14341 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14342
14343         * ada-valprint.c: Eliminate PTR.
14344         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14345         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14346         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14347         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14348         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14349         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14350         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
14351
14352 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
14353
14354         * main.c (captured_main): Don't use PTR.
14355         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14356         * gdbtypes.c (lookup_primitive_typename): Ditto.
14357         (lookup_struct_elt_type): Ditto.
14358         * f-valprint.c (info_common_command): Ditto.
14359         (list_all_visible_commons): Ditto.
14360         * jv-typeprint.c (java_type_print_base): Ditto.
14361
14362         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14363         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14364         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
14365         i386-interix-nat.c and i386-interix-tdep.c.  Rename
14366         m68klinux-nat.c and m68klinux-tdep.c.  Rename
14367         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
14368         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
14369         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14370         * main.c (captured_main): Use xfree, not free.
14371
14372 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
14373
14374         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14375         ID back using a parameter.
14376         * frame.c (frame_id_unwind): Update call.
14377         (frame_saved_regs_id_unwind): Update.
14378         * dummy-frame.c (dummy_frame_id_unwind): Update function.
14379         * dummy-frame.h (struct frame_id): Add opaque declaration.
14380         (dummy_frame_id_unwind): Update declaration.
14381
14382 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
14383
14384         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14385
14386 2003-01-15  Stephen P. Smith <ischis2@cox.net>
14387
14388         * MAINTAINERS (Stephen P. Smith): Updated email address.
14389
14390 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
14391
14392         Fix PR gdb/898
14393         * breakpoint.c (until_break_command): Add new argument.  Use it to
14394         decide whether to stop only at the current frame or not.
14395         * breakpoint.h (until_break_command): Update prototype.
14396         * infcmd.c (until_command): Add new argument to until_break_command
14397         call.
14398         (advance_command): New function.
14399         (_initialize_infcmd): Update help string for 'until' command.
14400         Add new 'advance' command.
14401
14402 2003-01-14  David Carlton  <carlton@math.stanford.edu>
14403
14404         * linespec.c (decode_line_1): Normalize comments.
14405         (set_flags): Ditto.
14406         (locate_first_half): Ditto.
14407         (decode_compound): Ditto.
14408         (symtab_from_filename): Ditto.
14409         (decode_all_digits): Ditto.
14410         (decode_dollar): Ditto.
14411         (find_methods): Ditto.
14412         (find_toplevel_char): Ditto.
14413
14414 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14415
14416         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14417         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14418         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14419         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14420         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14421         * language.c, language.h, m32r-tdep.c: Update copyright.
14422         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14423         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14424         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14425         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14426         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14427         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14428
14429 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14430
14431         * stabsread.h (process_later, resolve_cfront_continuation):
14432         Obsolete.
14433         Update copyright years.
14434         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14435         Update copyright year.
14436         * dbxread.c(struct cont_elem): Obsolete.
14437         (process_later, process_now): Obsolete functions.
14438         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14439         Update copyright year.
14440         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14441         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14442         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14443         (parse_partial_symbols): Obsolete cfront support.
14444         * stabsread.c
14445         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14446         macros.
14447         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14448         read_cfront_baseclasses, read_cfront_member_functions,
14449         resolve_cfront_continuation,read_cfront_static_fields,
14450         copy_cfront_struct_fields): Obsolete functions.
14451         (define_symbol, read_one_struct_field): Obsolete cfront support.
14452         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14453         Update Copyright year.
14454
14455 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14456
14457         * stack.c (print_frame_info, print_stack_frame_base_stub,
14458         print_stack_frame_base, show_and_print_stack_frame_stub,
14459         show_and_print_stack_frame, print_only_stack_frame_stub,
14460         print_only_stack_frame): Delete functions.
14461         (print_stack_frame_stub): Call print_frame_info instead of
14462         print_frame_info_base.
14463         (print_frame_info_base): Rename to print_frame_info.
14464         (backtrace_command_1): Call print_frame_info, instead of
14465         print_frame_info_base.
14466         (current_frame_command): Call print_stack_frame, instead of
14467         print_only_stack_frame.
14468         (frame_command): Call print_stack_frame, instead of
14469         show_and_print_stack_frame.
14470         (up_command): Ditto.
14471         (down_command): Ditto.
14472         * frame.h (print_only_stack_frame): Delete prototype.
14473         * infrun.c (normal_stop): Call print_stack_frame, instead of
14474         show_and_print_stack_frame.
14475         * thread.c (info_threads_command): Call print_stack_frame, instead
14476         of print_only_stack_frame.
14477
14478 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14479
14480         * README (Graphical interface to GDB): Update URL.  Point at
14481         gdb/links/.
14482
14483         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
14484         version match.
14485
14486 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14487
14488         * symtab.c (find_pc_sect_line): Don't consider end-of-function
14489         lines.
14490
14491 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14492
14493         * thread-db.c (attach_thread): Prototype.
14494         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
14495         thread information (ti), and valid flags (th_valid, ti_valid).
14496         (attach_thread): Move target_pid_to_str call to after the thread
14497         is added to GDB's list.  Initialize the cache.
14498         (thread_get_info_callback, thread_db_map_id2thr)
14499         (thread_db_get_info): New functions.
14500         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14501         (thread_db_store_registers, thread_db_thread_alive)
14502         (thread_db_get_thread_local_address): Use them.
14503         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
14504         of calling error() for threads in unknown state.
14505
14506         (clear_lwpid_callback): New function.
14507         (thread_db_resume): Use it to clear the cache.
14508
14509 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14510
14511         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14512         (resume_callback): Remove dead code.
14513
14514 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14515
14516         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14517         predicate.
14518         * gdbarch.h, gdbarch.c: Regenerate.
14519         * stack.c (frame_info): Only initialize the saved registers when
14520         FRAME_INIT_SAVED_REGS_P.
14521         * frame.c (frame_saved_regs_register_unwind): Assert
14522         FRAME_INIT_SAVED_REGS_P.
14523         (deprecated_generic_get_saved_register): Ditto.
14524
14525 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14526
14527         * source.c (openp): Squelch warning about "filename".
14528
14529 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14530
14531         * source.c (openp): If the file does not exist don't necessarily
14532         search the path.
14533
14534 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14535
14536         Fix PR gdb/872.
14537         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14538         (integer_types_same_name_p): New function.
14539         (rank_one_type): Use it.
14540         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14541
14542 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14543
14544         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14545         variables.
14546         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14547         * configure.in: Add --with-sysroot.
14548         * configure: Regenerated.
14549         * main.c (gdb_sysroot): New variable.
14550         (captured_main): Initialize gdb_sysroot.
14551         * defs.h (gdb_sysroot): New extern declaration.
14552         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14553
14554 2003-01-12  Michael Chastain  <mec@shout.net>
14555
14556         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14557
14558 2003-01-12  Michael Chastain  <mec@shout.net>
14559
14560         * top.c (print_gdb_version): Bump copyright year to 2003.
14561
14562 2003-01-12  David Carlton  <carlton@bactrian.org>
14563
14564         * linespec.c (symtab_from_filename): Rename variable 's' to
14565         'file_symtab'.
14566
14567 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14568
14569         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14570         dummy frame.
14571         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14572
14573 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14574
14575         * d10v-tdep.c: Include "gdb_assert.h".
14576         (d10v_store_return_value): Rewrite to match current interface.
14577         (d10v_extract_struct_value_address): Ditto.
14578         (d10v_extract_return_value): Ditto.
14579         (d10v_gdbarch_init): Set store_restore_value,
14580         extract_struct_value_address and extract_return_value.
14581
14582 2003-01-12  J. Brobecker  <brobecker@gnat.com>
14583
14584         * hpread.c (set_namestring): New procedure replacing the
14585         SET_NAMESTRING macro.
14586         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14587         by calls to set_namestring.
14588
14589 2003-01-11  J. Brobecker  <brobecker@gnat.com>
14590
14591         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14592         a compilation warning.
14593         (hpread_process_one_debug_symbol): Likewise.
14594
14595 2003-01-10  David Carlton  <carlton@math.stanford.edu>
14596
14597         * linespec.c (decode_line_1): Rename variable 's' to
14598         'file_symtab'.
14599         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14600         (decode_dollar): Ditto.
14601         (decode_variable): Ditto.
14602         (symbol_found): Ditto.
14603
14604 2003-01-09  Michael Chastain  <mec@shout.net>
14605
14606         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14607
14608 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
14609
14610         * win32-nat.c (set_process_privilege): New function.
14611         (child_attach): Call set_process_privilege() to enable the
14612         SE_DEBUG_NAME user privilege if available in process token.
14613
14614 2003-01-10  J. Brobecker  <brobecker@gnat.com>
14615
14616         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14617         compilation error in the previous revision.
14618
14619 2003-01-09  David Carlton  <carlton@math.stanford.edu>
14620
14621         * linespec.c: Update copyright.
14622
14623 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
14624
14625         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14626         than inferior_ptid.
14627         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14628
14629 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
14630
14631         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14632         Update comments.
14633         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14634         (frame_saved_regs_zalloc): Update.
14635         (frame_saved_regs_register_unwind): Update.
14636         (create_new_frame): Update.
14637         (get_prev_frame): Update.
14638         (frame_extra_info_zalloc): Update.
14639         (deprecated_get_frame_saved_regs): Update.
14640         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14641         * cris-tdep.c: Update comment.
14642
14643         * somsolib.h: Fix function indentation.
14644         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14645         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14646         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14647         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14648         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14649
14650         * infrun.c (follow_fork): Use ISO C definition.
14651         * expprint.c (print_subexp): Use xfree instead of free.
14652         * charset.c: Include "gdb_string.h" instead of <string.h>.
14653         (register_iconv_charsets): Use ISO C definition.
14654         (host_charset, target_charset): Ditto.
14655         * Makefile.in (charset.o): Update dependencies.
14656         (mi-cmd-env.o): Update dependencies.
14657
14658 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14659
14660         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14661         get_frame_base.
14662
14663 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14664
14665         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14666         build directories.  Save edited gdb output in Mbuild.log.  If a
14667         build fails, remove any final GDB executable.
14668
14669 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14670
14671         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14672         replacing hex constants with function names and stripping leading
14673         file name directory prefixes.
14674
14675 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14676
14677         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14678         get_frame_base.
14679
14680 2003-01-08  David Carlton  <carlton@math.stanford.edu>
14681
14682         * linespec.c (decode_line_1): Move code into decode_variable.
14683         (decode_variable): New function.
14684
14685 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14686
14687         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14688
14689 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14690
14691         * cris-tdep.c (cris_frame_init_saved_regs): Use
14692         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14693         saved_regs buffer.
14694         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14695         (sh64_nofp_frame_init_saved_regs): Ditto.
14696         (sh_fp_frame_init_saved_regs): Ditto.
14697         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14698         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14699         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14700         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14701
14702 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
14703
14704         * minsyms.c (lookup_minimal_symbol): Update comment.
14705         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14706         (lookup_minimal_symbol_solib_trampoline): Likewise.
14707
14708 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14709
14710         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14711         frame_relative_level.
14712
14713         * alpha-tdep.c: Use get_frame_extra_info.
14714         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14715         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14716         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14717         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14718
14719         * alpha-tdep.c: Use get_next_frame.
14720         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14721         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14722         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14723         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14724         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14725         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14726         * xstormy16-tdep.c: Ditto.
14727
14728 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14729
14730         * alpha-tdep.c: Use get_frame_base.
14731         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14732         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14733         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14734         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14735         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14736         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14737         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14738         * config/sparc/tm-sparc.h: Ditto.
14739
14740 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14741
14742         * frame.c (deprecated_get_frame_context): New function.
14743         (deprecated_set_frame_context): New function.
14744         * frame.h (deprecated_get_frame_context): Declare.
14745         (deprecated_set_frame_context): Declare.
14746         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14747         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14748
14749 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14750
14751         * frame.c (deprecated_set_frame_next_hack): New function.
14752         (deprecated_set_frame_prev_hack): New function.
14753         * frame.h (deprecated_set_frame_next_hack): Declare.
14754         (deprecated_set_frame_prev_hack): Declare.
14755         * mcore-tdep.c (analyze_dummy_frame): Use
14756         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14757         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14758
14759 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14760
14761         * linespec.c (decode_line_1): Move code into decode_dollar.
14762         (decode_dollar): New function.
14763
14764 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14765
14766         * arm-tdep.c (arm_init_extra_frame_info): Use
14767         deprecated_update_frame_base_hack.
14768         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14769         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14770         (fix_frame_pointer): Ditto.
14771         (mn10300_analyze_prologue): Ditto.
14772
14773 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14774
14775         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14776         extra_info using frame_extra_info_zalloc.
14777         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14778         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14779         (sh64_init_extra_frame_info): Ditto.
14780         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14781         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14782         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14783         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14784         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14785         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14786         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14787         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14788         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14789         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14790         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14791         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14792
14793         * mn10300-tdep.c (analyze_dummy_frame): Use
14794         deprecated_set_frame_extra_info_hack.
14795         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14796
14797 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14798
14799         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14800         class is not scText. These do not define "real" procedures.
14801         (parse_partial_symbols): Likewise.
14802
14803 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14804
14805         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14806
14807 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14808
14809         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14810         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14811         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14812         deprecated_frame_xmalloc_with_cleanup.
14813         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14814         deprecated_frame_xmalloc.
14815         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14816         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14817
14818 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14819
14820         * x86-64-linux-tdep.c: Include "osabi.h".
14821         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14822
14823         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14824
14825 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14826
14827         * MAINTAINERS (Target Instruction Set Architectures): Update
14828         arm-elf.  Can be built with -Werror, has been multiarched.
14829
14830         * value.h (unpack_long): Make buffer parameter constant.
14831         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14832         * scm-lang.h (scm_parse): Ditto.
14833         * defs.h (extract_typed_address, extract_address): Ditto.
14834         (extract_long_unsigned_integer): Ditto.
14835         * inferior.h (unsigned_pointer_to_address): Ditto.
14836         (signed_pointer_to_address): Ditto.
14837         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14838         * gdbarch.h, gdbarch.c: Regenerate.
14839         * findvar.c (extract_long_unsigned_integer): Update.
14840         (extract_address): Update.
14841         (extract_typed_address): Update.
14842         (unsigned_pointer_to_address): Update.
14843         * values.c (unpack_long): Update.
14844         (unpack_double): Update.
14845         (unpack_pointer): Update.
14846         (unpack_field_as_long): Update.
14847         * d10v-tdep.c (d10v_pointer_to_address): Update.
14848         * avr-tdep.c (avr_pointer_to_address): Update.
14849         * scm-lang.c (scm_unpack): Update.
14850         * findvar.c (signed_pointer_to_address): Update.
14851
14852 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14853
14854         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14855         since it is in i386-tdep.c.
14856
14857 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14858
14859         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14860         failure introduced in the previous change.
14861
14862 2003-01-05  Michael Chastain  <mec@shout.net>
14863
14864         * README: Remove references to deleted remote-*.c files:
14865         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14866         remote-nrom.c, remote-os9k.c, remote-udi.c.
14867
14868 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14869
14870         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14871         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14872         i386_get_longjmp_target.
14873
14874 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14875
14876         * arm-tdep.c (prologue_cache): Change to a pointer.
14877         (_initialize_arm_tdep): Allocate prologue_cache.
14878         (check_prologue_cache): Update.
14879         (save_prologue_cache): Update.
14880         (arm_gdbarch_init): Update.
14881
14882 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14883
14884         * stabsread.c (update_method_name_from_physname): Call complaint()
14885         instead of error.
14886
14887 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14888
14889         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14890         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14891         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14892
14893         * blockframe.c: Include "gdbcmd.h" and "command.h".
14894         (backtrace_below_main): New variable.
14895         (file_frame_chain_valid, func_frame_chain_valid)
14896         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14897         (generic_func_frame_chain_valid): Remove functions.
14898         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14899         (_initialize_blockframe): New function.
14900         * Makefile.in (blockframe.o): Update dependencies.
14901         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14902         comment.  Call frame_chain_valid ().
14903         * frame.h: Remove old prototypes.  Add prototype for
14904         frame_chain_valid and update comments to match.
14905         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14906         Remove old comment.
14907         * gdbarch.h: Regenerated.
14908         * gdbarch.c: Regenerated.
14909
14910         * alpha-tdep.c (alpha_gdbarch_init): Don't call
14911         set_gdbarch_frame_chain_valid.
14912         * avr-tdep.c (avr_gdbarch_init): Likewise.
14913         * cris-tdep.c (cris_gdbarch_init): Likewise.
14914         * frv-tdep.c (frv_gdbarch_init): Likewise.
14915         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14916         * i386-tdep.c (i386_svr4_init_abi): Likewise.
14917         (i386_nw_init_abi): Likewise.
14918         (i386_gdbarch_init): Likewise.
14919         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14920         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14921         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14922         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14923         * mips-tdep.c (mips_gdbarch_init): Likewise.
14924         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14925         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14926         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14927         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14928         * s390-tdep.c (s390_gdbarch_init): Likewise.
14929         * sh-tdep.c (sh_gdbarch_init): Likewise.
14930         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14931         * v850-tdep.c (v850_gdbarch_init): Likewise.
14932         * vax-tdep.c (vax_gdbarch_init): Likewise.
14933         * x86-64-tdep.c (x86_64_init_abi): Likewise.
14934
14935         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14936         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14937         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14938         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14939         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14940         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14941         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14942         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14943
14944 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
14945
14946         * Makefile.in (acconfig_h): Remove incorrect macro.
14947         (config_h): Define.
14948         (osabi.o): Update dependencies.
14949         * configure.tgt: Set gdb_osabi based on target triplet.
14950         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14951         * configure: Regenerated.
14952         * config.in: Regenerated.
14953         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14954         (GDB_OSABI_DEFAULT): Define if not already defined.
14955         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14956         (set_osabi_string): New variables.
14957         (gdbarch_register_osabi): Add new OS ABI to
14958         gdb_osabi_available_names.
14959         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14960         (set_osabi, show_osabi): New functions.
14961         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14962
14963 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14964
14965         * arch-utils.c (gdbarch_info_init): Set osabi to
14966         GDB_OSABI_UNINITIALIZED.
14967         * gdbarch.sh: Add osabi to struct gdbarch and to struct
14968         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
14969         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14970         * gdbarch.c: Regenerated.
14971         * gdbarch.h: Regenerated.
14972         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14973         there's no BFD.
14974         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14975         * osabi.h (enum gdb_osabi): Move to defs.h.
14976         (gdbarch_init_osabi): Update prototype.
14977         * defs.h (enum gdb_osabi): Moved here.
14978         * Makefile.in: Update dependencies.
14979
14980         * alpha-tdep.h: Don't include "osabi.h".
14981         (struct gdbarch_tdep): Remove osabi member.
14982         * alpha-tdep.c: Include "osabi.h".
14983         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14984         iterate over arches.  Update call to gdbarch_init_osabi.
14985         (alpha_dump_tdep): Don't dump osabi.
14986         * alpha-linux-tdep.c: Include "osabi.h".
14987         * alpha-osf1-tdep.c: Include "osabi.h".
14988         * alphafbsd-tdep.c: Include "osabi.h".
14989         * alphanbsd-tdep.c: Include "osabi.h".
14990
14991         * arm-tdep.h: Don't include "osabi.h".
14992         (struct gdbarch_tdep): Remove osabi member.
14993         * arm-tdep.c: Include "osabi.h".
14994         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
14995         iterate over arches.  Update call to gdbarch_init_osabi.
14996         (arm_dump_tdep): Don't dump osabi.
14997         * arm-linux-tdep.c: Include "osabi.h".
14998         * armnbsd-tdep.c: Include "osabi.h".
14999
15000         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
15001         Update call to gdbarch_init_osabi.
15002
15003         * i386-tdep.h: Don't include "osabi.h".
15004         (struct gdbarch_tdep): Remove osabi member.
15005         * i386-tdep.c: Include "osabi.h".
15006         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15007         iterate over arches.  Update call to gdbarch_init_osabi.
15008         (i386_dump_tdep): Don't dump osabi.
15009         * i386-linux-tdep.c: Include "osabi.h".
15010         * i386-sol2-tdep.c: Include "osabi.h".
15011         * i386bsd-tdep.c: Include "osabi.h".
15012         * i386gnu-tdep.c: Include "osabi.h".
15013         * i386ly-tdep.c: Include "osabi.h".
15014         * i386nbsd-tdep.c: Include "osabi.h".
15015         * i386obsd-tdep.c: Include "osabi.h".
15016
15017         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
15018         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15019         check osabi when iterating over arches.  Update call to
15020         gdbarch_init_osabi.
15021         (mips_dump_tdep): Don't dump osabi.
15022
15023         * ns32k-tdep.h: Don't include "osabi.h".
15024         (struct gdbarch_tdep): Remove.
15025         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
15026         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
15027         allocate tdep.  Update call to gdbarch_init_osabi.
15028         (ns32k_dump_tdep): Remove.
15029         (_initialize_ns32k_tdep): Update call to gdbarch_register.
15030         * ns32knbsd-tdep.c: Include "osabi.h".
15031
15032         * ppc-tdep.h: Don't include "osabi.h".
15033         (struct gdbarch_tdep): Remove osabi member.
15034         * rs6000-tdep.c: Include "osabi.h".
15035         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
15036         osabi when iterating over arches.  Update call to
15037         gdbarch_init_osabi.
15038         (rs6000_dump_tdep): Don't dump osabi.
15039         * ppc-linux-tdep.c: Include "osabi.h".
15040         * ppcnbsd-tdep.c: Include "osabi.h".
15041
15042         * sh-tdep.h: Don't include "osabi.h".
15043         (struct gdbarch_tdep): Remove osabi member.
15044         * sh-tdep.c: Include "osabi.h".
15045         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15046         iterate over arches.  Update call to gdbarch_init_osabi.
15047         (sh_dump_tdep): Don't dump osabi.
15048         * shnbsd-tdep.c: Include "osabi.h".
15049
15050         * sparc-tdep.c: Include "osabi.h".
15051         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15052         iterate over arches.  Update call to gdbarch_init_osabi.
15053         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
15054         tdep structure.
15055
15056         * vax-tdep.h: Don't include "osabi.h".
15057         (struct gdbarch_tdep): Remove.
15058         * vax-tdep.c: Include "osabi.h".
15059         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15060         iterate over arches.  Don't allocate tdep.  Update call
15061         to gdbarch_init_osabi.
15062         (vax_dump_tdep): Remove.
15063         (_initialize_vax_tdep): Update call to gdbarch_register.
15064
15065 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15066
15067         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
15068         entirely.
15069         (breakpoint_re_set_one): Don't fetch the value for a disabled
15070         watchpoint.
15071
15072 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15073
15074         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
15075         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
15076         (COERCE_FLOAT_TO_DOUBLE): Remove.
15077         * gdbarch.c: Regenerate.
15078         * gdbarch.h: Regenerate.
15079         * Makefile.in: Remove value_h from gdbarch_h.
15080         * valops.c (coerce_float_to_double): New variable.
15081         (default_coerce_float_to_double): Remove.
15082         (standard_coerce_float_to_double): Remove.
15083         (value_arg_coerce): Use coerce_float_to_double.
15084         (_initialize_valops): Add "set coerce-float-to-double".
15085         * value.h (default_coerce_float_to_double): Remove prototype.
15086         (standard_coerce_float_to_double): Remove prototype.
15087
15088         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15089         prototyped.
15090         * mdebugread.c (parse_symbol): Likewise.
15091         * stabsread.c (define_symbol): Mark all functions as prototyped.
15092
15093         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15094         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15095         set_gdbarch_coerce_float_to_double.
15096         * arm-tdep.c (arm_gdbarch_init): Likewise.
15097         * frv-tdep.c (frv_gdbarch_init): Likewise.
15098         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15099         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15100         * mips-tdep.c (mips_gdbarch_init): Likewise.
15101         (mips_coerce_float_to_double): Remove.
15102         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15103         (rs6000_coerce_float_to_double): Remove.
15104         * s390-tdep.c (s390_gdbarch_init): Likewise.
15105         * sh-tdep.c (sh_gdbarch_init): Likewise.
15106         (sh_coerce_float_to_double): Remove.
15107         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15108         (sparc_coerce_float_to_double): Remove.
15109         * v850-tdep.c (v850_gdbarch_init): Likewise.
15110         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15111         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15112         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15113         (hppa_coerce_float_to_double): Remove prototype.
15114         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15115
15116 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15117
15118         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15119
15120 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15121
15122         Suggested by Stewart Brown <sb24@avaya.com>:
15123         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15124         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
15125         (c_type_print_varspec_suffix): Likewise.
15126
15127 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
15128
15129         * configure.in: Don't set and AC_SUBST SUBDIRS.
15130         * configure: Regenerated.
15131
15132         * configure.in: Remove code dealing with shared libraries.
15133         * Makefile.in: Remove HLDFLAGS and HLDENV.
15134         * configure: Regenerated.
15135
15136 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
15137
15138         * frame.c (deprecated_frame_xmalloc): New function.
15139         (deprecated_set_frame_saved_regs_hack): New function.
15140         (deprecated_set_frame_extra_info_hack): New function.
15141         * frame.h (deprecated_frame_xmalloc): Declare.
15142         (deprecated_set_frame_saved_regs_hack): Declare.
15143         (deprecated_set_frame_extra_info_hack): Declare.
15144
15145 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
15146
15147         * configure.in: Move code that provides the --enable-gdbtk option
15148         right after the code that handles the --enable-tui option, and
15149         polish it somewhat.
15150         * configure: Regenerated.
15151
15152         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
15153         AC_CHECK_FUNCS and remove the old check for pread64.
15154         * acinclude.m4 (AC_GNU_SOURCE): New macro.
15155         * acconfig.h (_GNU_SOURCE): Add.
15156         (HAVE_PREAD64): Remove.
15157         * configure, aclocal.m4, config.in: Regenerated.
15158
15159 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
15160
15161         * alpha-tdep.c: Use get_frame_saved_regs.
15162         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15163         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15164         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15165         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15166         * vax-tdep.c, xstormy16-tdep.c: Ditto.
15167
15168 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15169
15170         * configure.in: Remove all use of the SUBDIRS variable; add
15171         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
15172         code providing the --enable-multi-ice option, and move it right in
15173         front of the code that checks whether gdbserver is supported.
15174         Polish that too.
15175         * configure: Regenerated.
15176         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15177         @SUBDIRS@.
15178
15179 2003-01-03  Andrew Cagney  <cagney@redhat.com>
15180
15181         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15182         * avr-tdep.c, cris-tdep.c: Ditto.
15183         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15184         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15185
15186 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15187
15188         * configure.in: Remove --enable-netrom option.
15189         * configure: Regenerated.
15190
15191 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15192
15193         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15194         declaration for `struct re_pattern_buffer' instead.
15195         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15196
15197 2003-01-03  J. Brobecker  <brobecker@gnat.com>
15198
15199         * mdebugread.c (parse_symbol): Count until the stEnd matching
15200         the structure name.
15201
15202 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15203
15204         * configure.in: Remove --with-cpu option.
15205         subscripts.  Remove evil changequotes here.
15206         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15207         * config.in, configure: Regenerated.
15208
15209         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15210         * configure.in: Cleanup section that sources GDB and BFD configure
15211         subscripts.  Remove evil changequotes here.
15212         * config.in, configure: Regenerated.
15213
15214 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15215
15216         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15217         frame accessor methods.
15218         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15219         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15220         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15221         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15222         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15223         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15224         * z8k-tdep.c: Ditto.
15225
15226 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15227
15228         * configure.in: Remove UI_OUT configuration code.
15229         * ada-lang.c: Update assuming UI_OUT is always true.
15230         * Makefile.in (UIOUT_CFLAGS): Remove.
15231         * configure: Regenerated.
15232         * TODO: Remove blurb about elimination of -DUI_OUT.
15233
15234         * configure.in: Move code that provides the --enable-gdbcli,
15235         --enable-gdbmi options right before the code that handles the
15236         --enable-tui option.  Polish a bit.
15237         * configure: Regenerated.
15238
15239         * configure.in: Rewrite check for GNU regex and the
15240         --without-included regex option, and move it into the "Checks for
15241         library functions" section.  This makes us use the system regex
15242         again by default on systems with version 2 of the GNU C library.
15243         This was apparently broken.
15244         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15245         * acconfig.h (USE_INCLUDED_REGEX): Remove.
15246         * config.in, configure: Regenerated.
15247
15248         * configure.in: Move code that provides the --enable-tui option
15249         before the "Checks for libraries" section.  Polish the code
15250         somewhat and set need_curses to yes if we build the TUI.  Rewrite
15251         code that looks for a library providing termcap functionality to
15252         match more closely what's done in the Readline library, and move
15253         it into to the "Checks for libraries" section.
15254         * configure: Regenerated.
15255         * Makefile.in (TERMCAP): Remove variable.
15256         * config/i386/go32.mh (TERMCAP): Remove variable.
15257
15258 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15259
15260         * MAINTAINERS: Mention gdb_mbuild.sh.
15261         * gdb_mbuild.sh: Rewrite.
15262
15263 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15264
15265         * configure.in: Fix typo in last change.
15266         * config.in, configure: Regenerated.
15267
15268 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15269
15270         * valarith.c (value_binop): Delete obsolete code and comments.
15271         * configure.host: Ditto.
15272         * buildsym.h (make_blockvector): Ditto.
15273         * buildsym.c (make_blockvector): Ditto.
15274         * defs.h (enum language): Ditto.
15275         (chill_demangle): Ditto.
15276         * elfread.c (elf_symtab_read): Ditto.
15277         * dwarfread.c (CHILL_PRODUCER): Ditto.
15278         (set_cu_language): Ditto.
15279         (handle_producer): Ditto.
15280         * expprint.c (print_subexp): Ditto.
15281         * gdbtypes.c (chill_varying_type): Ditto.
15282         * gdbtypes.h (builtin_type_chill_bool): Ditto.
15283         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15284         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15285         (chill_varying_type): Ditto.
15286         * language.h (_LANG_chill): Ditto.
15287         * language.c (binop_result_type, integral_type): Ditto.
15288         (character_type, string_type, structured_type): Ditto.
15289         (lang_bool_type, binop_type_check): Ditto.
15290         * stabsread.h (os9k_stabs): Ditto.
15291         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15292         (define_symbol, read_type, read_struct_fields): Ditto.
15293         (read_array_type, read_enum_type, read_huge_number): Ditto.
15294         (read_range_type, start_stabs): Ditto.
15295         * symfile.c (init_filename_language_table): Ditto.
15296         (add_psymbol_with_dem_name_to_list): Ditto.
15297         * symtab.c (symbol_init_language_specific): Ditto.
15298         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15299         * symtab.h (struct general_symbol_info): Ditto.
15300         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15301         * typeprint.c (typedef_print): Ditto.
15302         * utils.c (fprintf_symbol_filtered): Ditto.
15303         * valops.c (value_cast, search_struct_field, value_slice): Delete
15304         obsolete code.
15305         (varying_to_slice): Delete function.
15306         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15307         (varying_to_slice): Delete declaration.
15308         * MAINTAINERS: Update.
15309
15310 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15311
15312         * configure.in: Reorganize "Checks for library functions section"
15313         a bit.  Remove check for `btowc' and `isascii' functions.
15314         * configure: Regenerated.
15315
15316         * acconfig.h (_MSE_INT_H): Remove.
15317         * configure.in: Create "Checks for header files" section, and move
15318         appropriate tests there.  Don't check for objlist.h, wchar.h,
15319         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
15320         misdetection fix.  Also add "Checks for types", "Checks for
15321         compiler characteristics" and "Checks for library functions"
15322         sections.
15323         * config.in, configure: Regenerated.
15324
15325         * configure.in: Create "Checks for programs" section, and move
15326         appropriate tests there.
15327
15328 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
15329
15330         * configure.in: Create "Checks for libraries" section, and move
15331         appropriate tests there.  Cleanup check for wctype in libw.  Use
15332         AC_SEARCH_LIBS to see whether we need libsocket.
15333         * configure: Regenerated.
15334
15335 For older changes see ChangeLog-2002
15336 \f
15337 Local Variables:
15338 mode: change-log
15339 left-margin: 8
15340 fill-column: 74
15341 version-control: never
15342 End: