* remote-fileio.c (remote_fileio_to_fio_stat)
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-12-30  Eli Zaretskii  <eliz@elta.co.il>
2
3         * remote-fileio.c (remote_fileio_to_fio_stat)
4         (remote_fileio_func_fstat) [HAVE_STRUCT_STAT_ST_BLOCKS]: Support
5         systems that don't have `st_blocks' member in `struct stat'.
6
7         * configure.in (HAVE_STRUCT_STAT_ST_BLOCKS): Ditto.
8
9 2003-12-29  Eli Zaretskii  <eliz@elta.co.il>
10
11         * go32-nat.c (go32_sldt, go32_sgdt, go32_sidt, go32_pte): Fix
12         mismatches between format string and arguments (avoids compiler
13         warnings).
14
15         * configure.in: Set ac_cv_search_tgetent to "none required" for
16         "*djgpp*" targets as well (DJGPP doesn't have termcap and doesn't
17         need one).
18
19         * config/djgpp/config.sed: Tweak to adapt to the changes in
20         configury.
21
22         * config/djgpp/djconfig.sh: Fix the test of unpacked
23         distribution, since there's no gdb.cxx directory anymore.
24
25 2003-12-28  Mark Kettenis  <kettenis@gnu.org>
26
27         * i386-sol2-tdep.c (i386_sol2_mcontext_addr): New function.
28         (i386_sol2_init_abi): Initialize TDEP->sigcontext_addr,
29         TDEP->sc_reg_offset and TDEP->sc_num_regs.
30
31         * i386-tdep.h (i386_regnum): Add I386_CS_REGNUM and
32         I386_SS_REGNUM.
33
34 2003-12-27  Mark Kettenis  <kettenis@gnu.org>
35
36         * dwarf2-frame.c (dwarf2_reg_rule): Add REG_RA and REG_CFA.
37         (dwarf2_frame_cache): Initialize PC_REGNUM with REG_RA and
38         SP_REGNUM with REG_CFA.  Don't overwrite the initialized register
39         rule for registers left unspecified by the CFI.  Remove the
40         special handling of PC_REGNUM.  Add code to eleminate any REG_RA
41         rules.
42         (dwarf2_frame_prev_register): Remove the special handling of
43         SP_REGNUM.  Add support for the REG_CFA rule.
44
45 2003-12-26  Mark Kettenis  <kettenis@gnu.org>
46
47         * i386obsd-tdep.c: Include "regset.h", "gdb_assert.h" and
48         "gdb_string.h".
49         (i386obsd_r_reg_offset): New variable.
50         (i386obsd_aout_supply_regset)
51         (i386obsd_aout_regset_from_core_section): New functions.
52         (i386obsd_supply_reg, fetch_core_registers): Remove functions.
53         (i286obsd_core_fns): Remove variable.
54         (i386obsd_init_abi): Initialize TDEP->gregset_reg_offset,
55         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Set
56         regset_from_core_section.  Use ARRAY_SIZE to initialize
57         TDEP->sc_num_regs.
58         (_initialize_i386obsd_tdep): Don't call add_core_fns.
59
60         * i386bsd-tdep.c (i386bsd_core_osabi_sniffer): New function.
61         (_initialize_i386bsd_tdep): Register i386bsd_core_osabi_sniffer.
62
63         * i386-linux-nat.c: Add comment.
64
65 2003-12-26  Christopher Faylor  <cgf@redhat.com>
66
67         * win32-nat.c: Add some comments about below change.
68
69 2003-12-25  Christopher Faylor  <cgf@redhat.com>
70
71         Fix for PR threads/1048
72         * win32-nat.c (thread_info_struct): Add reload_context flag.
73         (thread_rec): Don't reload thread context here.  Just set a flag.
74         (do_child_fetch_inferior_registers): Reload thread context here if
75         appropriate.  Avoid doing anything if current_thread is NULL thanks to
76         strange Windows behavior.
77         (child_fetch_inferior_registers): Avoid doing anything if
78         current_thread is NULL.
79         (do_child_store_inferior_registers): Ditto.
80         (child_store_inferior_registers): Ditto.
81         (child_kill_inferior): Ditto.
82         (fake_create_process): Pretend to create a process for pathological
83         windows attach situation.
84         (get_child_debug_event): Call fake_create_process when the first event
85         noticed is thread creation rather than process creation.
86         (child_attach): Always set attach_flag when attaching.
87         (child_create_inferior): Set attach_flag to zero since we're not
88         attaching.
89
90 2003-12-25  Christopher Faylor  <cgf@redhat.com>
91
92         * win32-nat.c (get_child_debug_event): Keep main thread id around even
93         after thread exits since Windows insists on continuing to report events
94         against it.
95
96 2003-12-22  Mark Kettenis  <kettenis@gnu.org>
97
98         * dwarf2-frame.c (dwarf2_frame_cache): Don't skip the return
99         address column.
100
101 2003-12-21  Jim Blandy  <jimb@redhat.com>
102
103         * breakpoint.c (bpstat_do_actions): To ensure that
104         clear_proceed_status doesn't free the command tree we're
105         evaluating out from under us, zero the bpstat's pointer to it, and
106         take care of freeing it ourselves.
107         * cli/cli-script.c (make_cleanup_free_command_lines): Make this
108         function externally visible.
109         * cli/cli-script.h (make_cleanup_free_command_lines): New
110         declaration.
111
112 2003-12-20  Mark Kettenis  <kettenis@gnu.org>
113
114         * x86-64-tdep.c (x86_64_dwarf_regmap): Map the Return Address to
115         RIP.
116
117 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
118
119         * hppa-tdep.c (hppa_gdbarch_init): Set long double floating
120         point type to floatformat_ia64_quad_big.
121
122 2003-12-18  Kevin Buettner  <kevinb@redhat.com>
123
124         * frv-tdep.c (skip_prologue_using_sal): New function.  Taken verbatim
125         from mips-tdep.c.
126         (frv_analyze_prologue): Rework to account for intermixed prologue /
127         body instructions.
128
129 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
130
131         * hppa-tdep.c (hppa_gdbarch_init): Set sizeof(long_double) to 128.
132         Document type sizes for hppa*-*-hpux* compilers available to me.
133
134 2003-12-18  Michael Chastain  <mec.gnu@mindspring.com>
135
136         * hppam3-nat.c: Delete obsolete file.
137         * hppab-nat.c: Delete obsolete file.
138         * Makefile.in: Remove references.
139
140 2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>
141
142         * symtab.c (decode_line_spec): Change call to decode_line_1.
143
144 2003-12-17  Jeff Johnston  <jjohnstn@redhat.com>
145
146         * linespec.h (decode_line_1): Add new not_found_ptr parameter.
147         * linespec.c (decode_line_1): Add new parameter.  Pass on
148         new parameter to decode_variable and symtab_from_filename
149         functions.
150         (decode_variable): Add new not_found_ptr parameter.  Throw exception
151         rather than failing if the not_found_ptr is non-null and the
152         function is not found.
153         (symtab_from_filename): Add new not_found_ptr parametr.   Throw 
154         exception rather than failing if the not_found_ptr is non-null and 
155         the source file is not found.
156         * breakpoint.c: Change all callers of decode_line_1 to add default
157         extra parameter for decode_line_1 calls.
158         * tracepoint.c: Ditto.
159         * cli/cli-cmds.c: Ditto.
160
161 2003-12-16  J. Brobecker  <brobecker@gnat.com>
162
163         * irix5-nat.c: Include mips-tdep.h.
164
165 2003-12-16  Mark Kettenis  <kettenis@gnu.org>
166
167         * solib.h (SOLIB_CREATE_CATCH_LOAD_HOOK)
168         (SOLIB_CREATE_CATCH_UNLOAD_HOOK, SOLIB_LOADED_LIBRARY_PATHNAME)
169         (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_HAVE_LOAD_EVENT)
170         (SOLIB_HAVE_UNLOAD_EVENT): Remove defines.
171
172         * blockframe.c (inside_main_func): Don't treat a zero PC specially.
173         Needed to fix PR backtrace/1476.
174
175 2003-12-16  David Carlton  <carlton@kealia.com>
176
177         * cp-support.c (class_name_from_physname): Add DMGL_PARAMS.
178         (method_name_from_physname): Ditto.
179
180 2003-12-15  Mark Kettenis  <kettenis@gnu.org>
181
182         * i386-sol2-tdep.c (i386_sol2_gregset_reg_offset): New variable.
183         (i386_sol2_init_abi): Initialize TDEP->gregset_reg_offset,
184         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
185         TDEP->sizeof_fpregset.
186         * config/i386/i386sol2.mh (XM_FILE): Set to xm-i386.h.
187         (XM_CLIBS): Remove.
188         (NATDEPFILES): Remove core-regset.o and corelow.o.
189         * config/i386/i386sol2.mt (TDEPFILES): Add corelow.o.
190
191 2003-12-14  Mark Kettenis  <kettenis@gnu.org>
192
193         * proc-api.c (procfs_note): Add format string to fprintf call.
194
195         * i386-tdep.c (i386_analyze_frame_setup): Add missing encodings
196         for `subl' and `xorl' instructions.
197
198 2003-12-13  Jim Blandy  <jimb@redhat.com>
199
200         * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
201         Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
202         to strcmp and strncmp.
203
204         * osabi.c (gdbarch_init_osabi): Reformat error message with better
205         line breaks.
206
207 2003-12-13  Mark Kettenis  <kettenis@gnu.org>
208
209         * blockframe.c (inside_main_func): Reformat.  Introduce new local
210         variables to prevent long lines.  Update comments to reflect
211         reality.
212
213 2003-12-12  Kevin Buettner  <kevinb@redhat.com>
214
215         From David Mosberger  <davidm@hpl.hp.com>:
216         * libunwind-frame.c (unw_find_dyn_list_p): Replace most arguments
217         with a single unw_dyn_info_t pointer.
218         (libunwind_find_dyn_list): Likewise.
219         * libunwind-frame.h: Likewise.
220         * ia64-tdep.c (ia64_find_unwind_table): Switch to using
221         UNW_INFO_FORMAT_REMOTE_TABLE so we can avoid having to read in the
222         entire unwind-table at once.  Support for this table format has
223         been added to libunwind v0.95.
224         (ia64_find_proc_info_x): Adjust for remote-unwind-table changes.
225         (ia64_get_dyn_info_list): Adjust for interface change for
226         libunwind_find_dyn_list().
227
228 2003-12-12  Jeff Johnston  <jjohnstn@redhat.com>
229
230         * breakpoint.c (breakpoint_enabled): New function to test whether
231         breakpoint is active and enabled.
232         (insert_bp_location, insert_breakpoints): Call new function to test
233         for enabled breakpoint.
234         (remove_breakpoint, breakpoint_here_p, breakpoint_thread_match)
235         (bpstat_should_step, bpstat_have_active_hw_watchpoints)
236         (disable_breakpoints_in_shlibs, hw_watchpoint_used_count)
237         (disable_watchpoints_before_interactive_call_start)
238         (breakpoint_re_set_one): Ditto.
239         (bpstat_stop_status): Use new function and simplify test.
240
241 2003-12-11  Mark Kettenis  <kettenis@gnu.org>
242
243         * observer.c (observer_test_first_observer)
244         (observer_test_second_observer, observer_test_third_observer):
245         Don't define as `static'.
246         (observer_test_first_notification_function)
247         (observer_test_second_notification_function)
248         (observer_test_third_notification_function): Likewise.
249
250 2003-12-10  Mark Kettenis  <kettenis@gnu.org>
251
252         * solib.h (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define as "" instead
253         of (0).
254
255 2003-12-11  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
256
257         * MAINTAINERS (write after approval): Add myself.
258
259 2003-12-11  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
260
261         * config/h8300/tm-h8300.h (h8300hmode): Remove.
262         (h8300hmode): Likewise.
263         (h8300smode): Likewise.
264         (h8300sxmode): Likewise.
265         (h8300_normal_mode): Likewise.
266         (GDB_TARGET_IS_H8300): Likewise.
267         (NUM_REALREGS): Use TARGET_ARCHITECTURE->mach instead of global.
268         * h8300-tdep.c (is_h8300hmode): New function.
269         (is_h8300smode): New function.
270         (is_h8300sxmode): New function.
271         (is_h8300_normal_mode): New function.
272         (BINWORD): Use new functions.
273         (h8300_examine_prologue): Likewise.
274         (h8300_print_register): Likewise.
275         (h8300_print_registers_info): Likewise.
276         (h8300_register_type): Likewise.
277         (h8300_gdbarch_init): Remove use of globals like h8300hmode.
278         * remote-e7000.c (e7000_open): Remove use of GDB_TARGET_IS_H8300.
279         (e7000_fetch_registers): Use TARGET_ARCHITECTURE->mach instead.
280         (e7000_wait): Use TARGET_ARCHITECTURE->mach instead of global.
281
282 2003-12-10  J. Brobecker  <brobecker@gnat.com>
283
284         * frame.c (select_frame): Get the current frame PC using
285         get_frame_address_in_block() instead of get_frame_pc().
286         * stack.c (get_frame_language): Likewise.
287
288 2003-12-08  Kevin Buettner  <kevinb@redhat.com>
289
290         * remote.c (remote_open_1, remote_cisco_open): Avoid closing
291         remote_desc more than once.
292
293 2003-12-07  Andrew Cagney  <cagney@redhat.com>
294
295         * defs.h (DEPRECATED_STREQN, DEPRECATED_STREQ): Simplify by
296         directly calling strcmp equivalents.  Add disclaimer.
297
298 2003-12-06  Andrew Cagney  <cagney@redhat.com>
299
300         * remote.c (remote_fetch_registers): For short packets, explicitly
301         supply a zero value.  Use regcache_raw_supply.  Fix suggested by
302         Jonathan Larmour.
303
304 2003-12-05  Jeff Johnston  <jjohnstn@redhat.com>
305
306         * ia64-tdep.c (ia64_gdbarch_init): Set up the gdbarch long double
307         format to be the i387 extended float format which is used for
308         long doubles stored in memory. 
309
310 2003-12-05  Mark Kettenis  <kettenis@gnu.org>
311
312         From Ulrich Weigand  <weigand@informatik.uni-erlangen.de>:
313         * dwarf2-frame.c (dwarf2_frame_cache): Use the untranslated RA
314         column instead of translating it.
315
316 2003-12-04  Michael Chastain  <mec.gnu@mindspring.com>
317
318         Partial fix for PR c++/1465.
319         Fix for PR c++/1377.
320         * cp-support.h (cp_lookup_rtti_type): New function.
321         * cp-support.c (cp_lookup_rtti_type): New function.
322         * gnu-v2-abi.c: Update copyright years.
323         (gnuv2_rtti_type): Call cp_lookup_rtti_type.
324         * gnu-v3-abi.c: Update copyright years.
325         (gnuv3_rtti_type): Call cp_lookup_rtti_type.
326
327 2003-12-04  J. Brobecker  <brobecker@gnat.com>
328
329         * stabsread.c (read_type): Save a reference to types that are defined
330         as cross references to other types.
331
332 2003-12-02  Roland McGrath  <roland@redhat.com>
333
334         * thread-db.c (enable_thread_event): Change return type to
335         td_err_e.  Return TD_OK or error code.
336         (enable_thread_event_reporting): Update callers.
337
338 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
339
340         * NEWS: Mention new C++ demangler code.
341
342 2003-12-03  Andrew Cagney  <cagney@redhat.com>
343
344         * ppc-linux-nat.c (store_register, fetch_register): Convert
345         between ptrace and regcache's wordsize.
346         (ppc_register_u_addr): Use the ptrace wordsize.
347
348 2003-12-02  Kevin Buettner  <kevinb@redhat.com>
349
350         * frv-tdep.c (frv_gdbarch_init): Add case for fr550.
351
352 2003-12-02  Daniel Jacobowitz  <drow@mvista.com>
353
354         * dwarf2read.c (dwarf_info_offset, dwarf_abbrev_offset)
355         (dwarf_line_offset, dwarf_pubnames_offset, dwarf_aranges_offset)
356         (dwarf_loc_offset, dwarf_macinfo_offset, dwarf_str_offset)
357         (dwarf_ranges_offset, dwarf_frame_offset, dwarf_eh_frame_offset):
358         Delete.
359         (dwarf2_read_section): Remove offset and size arguments.  Use
360         bfd_get_section_size_before_reloc and sectp->filepos.
361         (dwarf2_has_info): Clear section variables instead of offsets.
362         (dwarf2_locate_sections): Don't initialize the deleted variables.
363         (dwarf2_build_psymtabs): Update calls to dwarf2_read_section.
364         (dwarf2_build_psymtabs_easy): Likewise.
365         * dwarf2-frame.c (dwarf_frame_offset, dwarf_frame_size)
366         (dwarf_eh_frame_offset, dwarf_eh_frame_size): Remove extern
367         declarations.
368         (dwarf2_read_section): Update prototype.
369         (dwarf2_build_frame_info): Update calls to dwarf2_read_section.
370         Use bfd_get_section_size_before_reloc instead of global size
371         variables.
372
373 2003-12-01  Michael Chastain  <mec.gnu@mindspring.com>
374
375         * dwarfread.c: Update documentation on the state of dwarf-1.
376
377 2003-12-01  Andrew Cagney  <cagney@redhat.com>
378
379         Obsolete old MIPS SVr3 and SVr4 systems.
380         * NEWS: Mention obsoleted systems.
381         * configure.tgt: Mark mips*-*-sysv4* as obsolete.
382         * configure.host: Mark mips-dec-*, mips-little-*, mips-sony-*,
383         mips-*-sysv4*, mips-*-sysv*, mips-*-riscos* and mips-*-mach3* as
384         obsolete.
385         * config/mips/decstation.mh: Mark as obsolete.
386         * config/mips/littlemips.mh: Mark as obsolete.
387         * config/mips/nm-mips.h: Mark as obsolete.
388         * config/mips/xm-mips.h: Mark as obsolete.
389         * config/mips/news-mips.mh: Mark as obsolete.
390         * config/mips/nm-news-mips.h: Mark as obsolete.
391         * config/mips/riscos.mh: Mark as obsolete.
392         * config/mips/nm-riscos.h: Mark as obsolete.
393         * config/mips/xm-riscos.h: Mark as obsolete.
394         * config/mips/mipsv4.mt: Mark as obsolete.
395         * config/mips/tm-mipsv4.h: Mark as obsolete.
396         * config/mips/xm-mipsv4.h: Mark as obsolete.
397
398         Obsolete old m68k systems.
399         * configure.host: Mark m68*-sun-*, m68*-sun-sunos4*,
400         m68*-sun-sunos3*, m68*-motorola-*, m68*-*-sysv4*, m68*-*-lynxos*,
401         m68*-bull*-sysv*, m68*-att-*, m680[01]0-sun-sunos4*, and
402         m680[01]0-sun-sunos3* as obsolete.
403         * configure.tgt: Mark m68*-*-lynxos*, m68*-*-sunos3*,
404         m68*-*-sunos4*, m68*-*-sysv4*, m68000-*-sunos3*, m68000-*-sunos4*,
405         m68*-bull-sysv*, m68*-att-*, and m68*-motorola-*, as obsolete.
406         * config/m68k/sun3os4.mh: Mark file obsolete.
407         * config/m68k/xm-sun3os4.h: Mark file obsolete.
408         * config/m68k/sun3os3.mh: Mark file obsolete.
409         * config/m68k/nm-sun3.h: Mark file obsolete.
410         * config/m68k/xm-sun3.h: Mark file obsolete.
411         * config/m68k/sun2os4.mh: Mark file obsolete.
412         * config/m68k/sun2os3.mh: Mark file obsolete.
413         * config/m68k/nm-sun2.h: Mark file obsolete.
414         * config/m68k/xm-sun2.h: Mark file obsolete.
415         * config/m68k/m68kv4.mh: Mark file obsolete.
416         * config/m68k/nm-sysv4.h: Mark file obsolete.
417         * config/m68k/xm-m68kv4.h: Mark file obsolete.
418         * config/m68k/m68klynx.mh: Mark file obsolete.
419         * config/m68k/nm-m68klynx.h: Mark file obsolete.
420         * config/m68k/dpx2.mh: Mark file obsolete.
421         * config/m68k/xm-dpx2.h: Mark file obsolete.
422         * config/m68k/nm-dpx2.h: Mark file obsolete.
423         * config/m68k/delta68.mh: Mark file obsolete.
424         * config/m68k/xm-delta68.h: Mark file obsolete.
425         * config/m68k/nm-delta68.h: Mark file obsolete.
426         * config/m68k/3b1.mh: Mark file obsolete.
427         * config/m68k/xm-3b1.h: Mark file obsolete.
428         * config/m68k/sun3os4.mt: Mark file obsolete.
429         * config/m68k/tm-sun3os4.h: Mark file obsolete.
430         * config/m68k/sun3os3.mt: Mark file obsolete.
431         * config/m68k/tm-sun3.h: Mark file obsolete.
432         * config/m68k/sun2os4.mt: Mark file obsolete.
433         * config/m68k/tm-sun2os4.h: Mark file obsolete.
434         * config/m68k/sun2os3.mt: Mark file obsolete.
435         * config/m68k/tm-sun2.h: Mark file obsolete.
436         * config/m68k/m68kv4.mt: Mark file obsolete.
437         * config/m68k/tm-m68kv4.h: Mark file obsolete.
438         * config/m68k/m68klynx.mt: Mark file obsolete.
439         * config/m68k/tm-m68klynx.h: Mark file obsolete.
440         * config/m68k/dpx2.mt: Mark file obsolete.
441         * config/m68k/tm-dpx2.h: Mark file obsolete.
442         * config/m68k/delta68.mt: Mark file obsolete.
443         * config/m68k/tm-delta68.h: Mark file obsolete.
444         * config/m68k/3b1.mt: Mark file obsolete.
445         * config/m68k/tm-3b1.h: Mark file obsolete.
446
447 2003-11-29  Mark Kettenis  <kettenis@gnu.org>
448
449         * x86-64-tdep.c (MAX_CLASSES): Remove macro.
450         (x86_64_reg_class): Remove enum.
451         (merge_classes, classify_argument, examine_argument): Remove
452         functions.
453         (INT_REGS, SSE_REGS): Remove macros.
454         (x86_64_push_arguments): Remove function.
455         (amd64_push_arguments): New function.
456         (x86_64_push_dummy_call): Call amd64_push_arguments instead of
457         x86_64_push_arguments.
458
459 2003-11-28  Mark Kettenis  <kettenis@gnu.org>
460
461         * x86-64-tdep.c (x86_64_frame_cache): Don't bail out if %rbp is
462         zero.  Reorganize code a bit.
463
464 2003-11-27  Mark Kettenis  <kettenis@gnu.org>
465
466         * dwarf2-frame.c: Fix another comment.
467
468         * x86-64-tdep.c (RET_INT_REGS, RET_SSE_REGS): Remove defines.
469         (x86_64_use_struct_convention, x86_64_extract_return_value,
470         x86_64_store_return_value): Remove.
471         (amd64_reg_class): New enum.
472         (amd64_merge_classes, amd64_classify_aggregate, amd64_classify,
473         amd64_return_value): New functions.
474         (x86_64_init_abi): Don't set extract_return_value,
475         store_return_value and use_struct_convention.  Set return_value to
476         amd64_return_value.
477         * i387-tdep.h (i387_return_value): New prototype.
478         * i387-tdep.c (i387_return_value): New function.
479
480         * dwarf2-frame.c: Fix some comments and whitespace problems.
481
482         * i386nbsd-tdep.c: Don't include "gdbtypes.h".  Include
483         "gdb_assert.h" and "gdb_string.h".
484         (i386nbsd_r_reg_offset): Rename from regmap.
485         (SIZEOF_STRUCT_REG): Remove.
486         (i386nbsd_supply_reg, fetch_core_registers,
487         fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
488         Remove.
489         (i386nbsd_aout_supply_regset,
490         i386nbsd_aout_regset_from_core_section): New functions.
491         (i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
492         (i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
493         TDEP->gregset_num_regs amd sizeof_gregset.  Use ARRAY_SIZE to
494         initialize TDEP->sc_num_regs.
495         (i386nbsdaout_init_abi): New function.
496         (i386nbsdelf_init_abi): Remove initialization of
497         TDEP->num_xmm_regs.  Don't set num_regs here.
498         (_initialize_i386nbsd_tdep): Don't call add_core_fns.  Use
499         i386nbsd_aout_init to register NetBSD a.out OS/ABI.
500
501         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use
502         .note.netbsdcore.procinfo section to recognize NetBSD core files.
503
504 2003-11-26  Michael Chastain  <mec.gnu@mindspring.com>
505
506         * cp-abi.c: Update copyright years.
507
508 2003-11-25  Andrew Cagney  <cagney@redhat.com>
509
510         * thread-db.c (enable_thread_event): New function.  Ensure that BP
511         is a code address.
512         (enable_thread_event_reporting): Use enable_thread_event.
513
514 2003-11-25  Michael Snyder  <msnyder@redhat.com>
515
516         * mips-tdep.c (mips_o64_extract_return_value): Correct for
517         NUM_REGS (see changes 2003-06-21).
518         (mips_eabi_extract_return_value): Ditto.
519
520 2003-11-25  Andrew Cagney  <cagney@redhat.com>
521
522         * infrun.c: Don't include "exec.h".
523         (handle_inferior_event): Pass current_target, instead of exec_ops,
524         to SOLIB_ADD.  Add comments.
525         * Makefile.in (infrun.o): Update dependencies.
526
527 2003-11-24  Daniel Jacobowitz  <drow@mvista.com>
528
529         * NEWS: Mention improved location expression support.
530
531 2003-11-23  Andrew Cagney  <cagney@redhat.com>
532
533         * Makefile.in (infrun.o): Update dependencies.
534         * infrun.c: Include "exec.h".
535         (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
536
537 2003-11-23  Andrew Cagney  <cagney@redhat.com>
538
539         * frame.c (frame_unwind_signed_register): Delete function.
540         * frame.h (frame_unwind_register_signed): Delete declaration.
541         * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
542
543         * arch-utils.h (generic_cannot_extract_struct_value_address):
544         Delete declaration.
545
546         * defs.h (DEPRECATED_STREQN): Rename STREQN.
547         (DEPRECATED_STREQ): Rename STREQ.
548         * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
549         * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
550         * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
551         * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
552         * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
553         * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
554         * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
555         * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
556         * source.c, sparc-tdep.c, stack.c, target.c: Update.
557
558         * symfile.c (symbol_file_command): Replace STREQ with strcmp.
559         * elfread.c (elf_symtab_read): Delete STREQ from comment.
560
561 2003-11-22  Andrew Cagney  <cagney@redhat.com>
562
563         * frame.c (deprecated_frame_xmalloc): Delete function.
564         (deprecated_set_frame_extra_info_hack): Delete function.
565         (deprecated_set_frame_saved_regs_hack): Delete function.
566         * frame.h (deprecated_frame_xmalloc): Delete declaration.
567         (deprecated_set_frame_extra_info_hack): Delete declaration.
568         (deprecated_set_frame_saved_regs_hack): Delete declaration.
569         * mcore-tdep.c (analyze_dummy_frame): Instead of
570         deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
571         and deprecated_set_frame_extra_info_hack use
572         deprecated_frame_xmalloc_with_cleanup.
573         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
574         * mips-tdep.c (mips_init_extra_frame_info): Delete call to
575         deprecated_set_frame_saved_regs_hack.
576
577         * mips-tdep.c (mips_frame_chain): Delete call to
578         deprecated_inside_entry_file.
579
580         * frame.h (deprecated_set_frame_next_hack): Delete declaration.
581         (deprecated_set_frame_prev_hack): Delete declaration.
582         * frame.c (deprecated_set_frame_next_hack): Delete function.
583         (deprecated_set_frame_prev_hack): Delete function.
584         * mcore-tdep.c (analyze_dummy_frame): Delete calls to
585         "deprecated_set_frame_next_hack" and
586         "deprecated_set_frame_prev_hack".
587         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
588
589         * mips-tdep.c (mips_register_convertible): Delete function.
590         (mips_register_convert_to_virtual): Delete function.
591         (mips_register_convert_to_raw): Delete function.
592         (mips_gdbarch_init): Do not set "deprecated_register_convertible",
593         "deprecated_register_convert_to_virtual", or
594         "deprecated_register_convert_to_raw".
595         (mips_pseudo_register_write, mips_pseudo_register_read): Handle
596         32/64 cooked to raw register conversions.
597
598         * frame.c (deprecated_get_frame_context): Delete function.
599         (deprecated_set_frame_context): Delete function.
600         (struct frame_info): Delete member "context".
601         * frame.h (deprecated_get_frame_context): Delete declaration.
602         (deprecated_set_frame_context): Delete declaration.
603
604         * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
605         * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
606         * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
607         * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
608
609         * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
610         (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
611         mips_regsize.
612         (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
613         * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
614         * config/mips/tm-irix5.h: Update copyright.
615         (SIGFRAME_REG_SIZE): Delete macro.
616
617         * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
618         * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
619         declaration.
620         (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
621         * infcall.c (call_function_by_hand): Delete #ifdef
622         DEPRECATED_VALUE_RETURNED_FROM_STACK code.
623         * infcmd.c (print_return_value): Ditto.
624
625         * mips-tdep.c (skip_prologue_using_sal): New function.
626         (mips32_skip_prologue, mips16_skip_prologue): Use
627         skip_prologue_using_sal to get an upper bound on the search.
628
629         * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
630         #if 0'ed macro.
631         * infrun.c (step_into_function): Delete #ifdef
632         PROLOGUE_FIRSTLINE_OVERLAP code.
633         * symtab.c (find_function_start_sal): Ditto.
634
635         * remote-rdp.c: Update copyright.
636         (rdp_init): #if 0 references to "target_byte_order".
637
638         * mips-tdep.c (mips_o32_store_return_value): Delete function.
639         (mips_o32_return_value): Replace mips_o32_xfer_return_value.
640         (mips_o32_extract_return_value): Delete function.
641         (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
642         (mips_n32n64_extract_return_value): Delete function.
643         (mips_n32n64_store_return_value): Delete function.
644         (mips_gdbarch_init): For o32 and n32n64, set "return_value"
645         instead of "store_return_value", "extract_return_value", and
646         "use_struct_convention".
647         (mips_n32n64_use_struct_convention): Delete function.
648
649 2003-11-21  Kevin Buettner  <kevinb@redhat.com>
650
651         * frv-tdep.c (frv_frame_this_id): Eliminate call to
652         inside_entry_func().
653
654 2003-11-20  Mark Kettenis  <kettenis@gnu.org>
655
656         * i386-tdep.c (i386_extract_return_value,
657         i386_store_return_value): Add gdbarch argument.  Use it instead of
658         determining it from REGCACHE.  Remove recursive call for
659         structures with a single member.
660         (i386_use_struct_convention): Remove.
661         (i386_reg_struct_return_p): New function.
662         (i386_return_value): New function.
663         (i386_gdbarch_init): Set return_value, don't set
664         extract_return_value, store_return_value and
665         use_struct_convention.
666         * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
667
668 2003-11-20  Jim Blandy  <jimb@redhat.com>
669
670         * osabi.c (_initialize_gdb_osabi): Don't return before registering
671         the 'set osabi' and 'show osabi' commands.
672
673 2003-11-19  Mark Kettenis  <kettenis@gnu.org>
674
675         * frame.c (get_prev_frame): Use result from
676         get_frame_address_in_block instead of get_frame_pc as argument to
677         inside_main_func.  Fixes PR backtrace/1435.
678
679 2003-11-19  Andrew Cagney  <cagney@redhat.com>
680
681         * stack.c (return_command): Handle "void", "legacy" and "unknown
682         location" return values separatly.
683         * values.c (using_struct_return): Return 0 for a "void" return
684         type.  Mention "register_value_being_returned".
685         (register_value_being_returned): Mention "using_struct_return".
686
687 2003-11-19  Daniel Jacobowitz  <drow@mvista.com>
688
689         * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
690         (frame_base_offset): Delete.
691         (read_func_scope): Delete call to decode_locdesc.
692         (decode_locdesc): Update comments.  Don't set the removed variables.
693         Complain for DW_OP_reg* not at the end.  Remove DW_OP_breg* and
694         DW_OP_fbreg support.
695
696 2003-11-18  Daniel Jacobowitz  <drow@mvista.com>
697
698         * dwarf2read.c (optimized_out, islocal): Remove.
699         (decode_locdesc): Update comments.  Don't set optimized_out
700         or islocal.
701
702 2003-11-17  Jeff Johnston  <jjohnstn@redhat.com>
703             David Mosberger  <davidm@hpl.hp.com>
704
705         * ia64-tdep.c: Include elf.h.
706         [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
707         libunwind-ia64.h.
708         (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
709         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
710         (ia64_is_fpreg, ia64_access_reg): Ditto.
711         (ia64_access_fpreg, ia64_access_mem): Ditto.
712         (get_kernel_table): Ditto.
713         (ia64_find_unwind_table): Ditto.
714         (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
715         (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
716         (ia64_libunwind_frame_prev_register): Ditto.
717         (ia64_libunwind_frame_sniffer): Ditto.
718         (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
719         sniffer.  Register libunwind functions needed by generic
720         libunwind frame code using libunwind_frame_set_descr().
721
722 2003-11-16  Daniel Jacobowitz  <drow@mvista.com>
723
724         * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
725         bp_shlib_disabled breakpoint if there is a shared library mapped
726         at its expected address.
727
728 2003-11-16  Andrew Cagney  <cagney@redhat.com>
729
730         * configure.tgt: Delete mips*tx39*-elf*.
731         * config/mips/tm-tx39.h: Delete file.
732         * config/mips/tx39.mt: Delete file.
733         * config/mips/tx39.mt: Delete file.
734
735         * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
736         * remote-mips.c (common_open): Instead of
737         "mips_read_register_type" and "mips_set_processor_type_command"
738         call "deprecated_mips_set_processor_regs_hack".
739         * config/mips/tm-mips.h (mips_read_processor_type): Delete
740         declaration.
741         (mips_set_processor_type_command): Delete declaration.
742         * mips-tdep.c (mips_gdbarch_init): Update comment.
743         (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
744         (mips_set_processor_type): Delete function.
745         (NUM_MIPS_PROCESSOR_REGS): Define.
746         (mips_show_processor_type_command): Delete function.
747         (mips_set_processor_type_command): Delete function.
748         (tmp_mips_processor_type): Delete.
749         (mips_processor_type): Delete.
750         (mips_processor_type_table): Delete.
751         (mips_r3051_reg_names): Delete.
752         (mips_r3081_reg_names): Delete.
753         (mips_lsi33k_reg_names): Delete.
754         (mips_processor_reg_names): Delete.
755         (mips_read_processor_type): Delete function.
756         (deprecated_mips_set_processor_regs_hack): New function.
757         (struct gdbarch_tdep): Add member "mips_processor_reg_names".
758         (mips_register_name): Get the processor names from the tdep.
759         (mips_tx39_reg_names): New array.
760         (mips_generic_reg_names): Wire to a standard set of names.
761         (mips_gdbarch_init): Set "mips_processor_reg_names".
762         * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
763         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
764         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
765
766 2003-11-16  Andrew Cagney  <cagney@redhat.com>
767
768         * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
769         (mips_fpa0_regnum, mips_regnum): New function.
770         (mips_gdbarch_init): Fill in the "regnum" fields.
771         * mips-tdep.h (struct mips_regnum): Define.
772         (mips_regnum): Declare.
773         * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
774         (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
775         (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
776         (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
777         * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
778         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
779         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
780         * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
781         (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
782         (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
783         * remote-mips.c: Include "mips-tdep.h".  Update.
784         * mipsnbsd-tdep.c: Update.
785         * mipsv4-nat.c: Update.
786         * mips-tdep.c: Update.
787         * mips-nat.c: Update.
788         * mips-linux-tdep.c: Update.
789         * mips-linux-nat.c: Update.
790         * irix5-nat.c: Update.
791         * dve3900-rom.c: Include "mips-tdep.h".  Update.
792         (ignore_packet): Supress GCC warning.
793         * config/mips/nm-riscos.h: Update.
794
795 2003-11-16  Andrew Cagney  <cagney@redhat.com>
796
797         * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
798         register_size.
799         (mips_register_raw_size): Delete function.
800         (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
801         (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
802         Check and set "mips64_transfers_32bit_regs_p".
803         (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
804         (mips_register_convertible): Check the architecture's
805         "mips64_transfers_32bit_regs_p".
806         (set_mips64_transfers_32bit_regs): New function.
807         (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
808         "set remote-mips64-transfers-32bit-regs" command.  Specify
809         set_mips64_transfers_32bit_regs as the set function.
810         * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
811
812 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
813
814         * i386-tdep.h (i386_supply_gregset): Provide prototype.
815         * i386-tdep.c (i386_supply_gregset): Make public.
816
817 2003-11-16  Andrew Cagney  <cagney@redhat.com>
818
819         * mips-tdep.c (mips_register_byte): Delete function.
820         (mips_gdbarch_init): Do not set "deprecated_register_byte".
821         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
822         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
823         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
824
825 2003-11-16  Mark Kettenis  <kettenis@gnu.org>
826
827         * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
828
829 2003-11-16  Andrew Cagney  <cagney@redhat.com>
830
831         * config/mips/linux64.mt: Delete file.
832         * config/mips/tm-linux64.h: Delete file.
833         * config/mips/tm-mips64.h: Delete file.
834         * config/mips/embed64.mt: Delete file.
835         * config/djgpp/fnchange.lst: Update.
836         * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
837         mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
838         * config/mips/tm-irix6.h: Update copyright.  Include
839         "mips/tm-mips.h" instead of "mips/tm-mips64.h".
840         * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
841         "OP_LDGPR".
842
843 2003-11-15  Andrew Cagney  <cagney@redhat.com>
844
845         * mips-tdep.c (mips_register_type): Simplify.  Eliminate reference
846         to MIPS_REGISTER_TYPE.  Make integer registers signed.  Make IRIX
847         n32 registers 64 bit.
848         (mips_register_raw_size, mips_register_byte): For pseudo
849         registers, use the register's pseudo size and not the
850         corresponding raw register's size.
851         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
852         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
853         * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
854         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
855
856 2003-11-15  Andrew Cagney  <cagney@redhat.com>
857
858         * mips-tdep.c (struct gdbarch_tdep): Delete member
859         gdb_target_is_mips64.
860         (GDB_TARGET_IS_MIPS64): Delete macro.
861         (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
862         (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
863         (mips_addr_bits_remove): Simplify.
864
865         * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
866         register_size.
867
868         Replace MIPS_REGSIZE with mips_regsize.
869         * mips-tdep.c (mips_regsize): New function.
870         * mips-tdep.h (mips_regsize): Declare.
871         * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
872         (SIZEOF_STRUCT_REG): Update.
873         * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
874         (mipsnbsd_fill_reg): Update.
875         (mipsnbsd_supply_fpreg): Update.
876         (mipsnbsd_fill_fpreg): Update.
877         (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
878         * mips-tdep.c (mips_register_raw_size): Update.
879         (mips_register_type): Update.
880         (SIGFRAME_BASE): Update.
881         (SIGFRAME_PC_OFF): Update.
882         (SIGFRAME_REGSAVE_OFF): Update.
883         (SIGFRAME_FPREGSAVE_OFF): Update.
884         (SIGFRAME_REG_SIZE): Update.
885         (mips32_heuristic_proc_desc): Update.
886         (print_gp_register_row): Update.
887         (mips_dump_tdep): Do not print MIPS_REGSIZE.
888         * irix5-nat.c (supply_gregset): Update.
889         (fetch_core_registers): Update.
890         * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
891         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
892         * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
893         (MIPS_REGISTER_BYTE): Update.
894         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
895
896 2003-11-15  Andrew Cagney  <cagney@redhat.com>
897
898         * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
899         USE_REGISTER_NOT_ARG.
900         * stabsread.c (define_symbol): Update.
901
902 2003-11-15  Andrew Cagney  <cagney@redhat.com>
903
904         * bcache.h (deprecated_bcache): Declare.
905         (bcache): Make returned buffer constant.
906         * bcache.c (deprecated_bcache): New function.
907         (bcache_data): New function.
908         (bcache): Call bcache data.
909         * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
910         (add_psymbol_with_dem_name_to_list): Ditto.
911
912 2003-11-15  Mark Kettenis  <kettenis@gnu.org>
913
914         * glibc-tdep.h (struct gdbarch): Declare opaque.
915         (glibc_skip_solib_resolver): Adjust prototype.
916         * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
917         * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
918         (arm_linux_init_abi): Set skip_solib_resolver.
919         * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
920         (i386_linux_init_abi): Set skip_solib_resolver.
921         * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
922         (arm_linux_skip_solib_resolver): Remove prototype.
923         * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
924         (i386_linux_skip_solib_resolver): Remove prototype.
925
926 2003-11-14  Mark Kettenis  <kettenis@gnu.org>
927
928         * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
929         function.
930         * gdbarch.c, gdbarch.h: Regenerate.
931         * infrun.c (handle_inferior_event): Call
932         gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
933         * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
934         definition.
935         * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
936         prototype.
937
938 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
939
940         * libunwind-frame.c: New file.
941         * libunwind-frame.h: New file.
942         * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
943         * configure.in: Add --with-libunwind option support.  Define
944         HAVE_LIBUNWIND if libunwind support selected / defaulted.
945         Also check for libunwind.h and libunwind-ia64.h headers.
946         * configure: Regenerated.
947         * Makefile.in: Add support for libunwind-frame.o.
948         * config.in: Regenerated.
949
950 2003-11-14  Jeff Johnston  <jjohnstn@redhat.com>
951
952         * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
953         set up the ia64 linux native target method for getting the kernel
954         unwind table.
955         * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
956         * inftarg.c (child_xfer_partial): Enable section of code to
957         handle TARGET_OBJECT_UNWIND_TABLE.
958         * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
959
960 2003-11-14  Ian Lance Taylor  <ian@wasabisystems.com>
961
962         * config/arm/nbsd.mt (TM_FILE): Define.
963         * config/arm/tm-nbsd.h: New file.
964
965 2003-11-14  Andrew Cagney  <cagney@redhat.com>
966
967         * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
968         * ppc-sysv-tdep.c: Include "objfiles.h".
969         (ppc64_sysv_abi_push_dummy_call): Provide the
970         the FN's objfile when looking for the descriptor.
971
972         * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
973         "name_of_malloc" to ".malloc".
974
975 2003-11-13  Mark Kettenis  <kettenis@gnu.org>
976
977         * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
978
979 2003-11-13  David Carlton  <carlton@kealia.com>
980
981         * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
982
983 2003-11-13  Andrew Cagney  <cagney@redhat.com>
984
985         * arch-utils.h (selected_architecture_name): Declare.
986         (selected_byte_order): Declare.
987         * arch-utils.c (selected_byte_order): New function.
988         (selected_architecture_name): New function.
989         (target_architecture_auto): Make static.
990         (set_architecture_string): Make static.
991         (target_byte_order): Make static.
992         (target_byte_order_auto): Make static.
993         * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
994         non-multi-arch definition.
995         (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
996         (target_byte_order, target_architecture): Delete declaration.
997         (target_byte_order_auto, target_architecture_auto): Ditto.
998         * gdbarch.h: Re-generate.
999         * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
1000         "selected_byte_order".
1001
1002 2003-11-13  Andrew Cagney  <cagney@redhat.com>
1003
1004         * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
1005
1006 2003-11-13  Jim Blandy  <jimb@redhat.com>
1007
1008         * cp-namespace.c: Doc fix.
1009
1010 2003-11-12  Michael Snyder  <msnyder@redhat.com>
1011
1012         * sh64_tdep.c: Regularize some names.
1013         (sh_sh64_register_name): Rename to sh64_register_name.
1014         (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
1015         (sh_sh64_register_byte): Rename to sh64_register_byte.
1016         (sh_sh64_build_float_register_type):
1017         Rename to sh64_build_float_register_type.
1018         (sh_sh64_register_convert_to_virtual):
1019         Rename to sh64_register_convert_to_virtual.
1020         (sh_sh64_register_convert_to_raw):
1021         Rename to sh64_register_convert_to_raw.
1022
1023         * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
1024         sh64_media_reg_base_num, sh64_compact_reg_base_num,
1025         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
1026         sh64_extract_return_value, sh64_show_media_regs,
1027         sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
1028         sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
1029         sh64_pseudo_register_read, sh64_pseudo_register_write,
1030         sh64_do_pseudo_register, sh_compact_print_registers_info):
1031         Delete unused variable 'tdep'.
1032
1033         * sh64-tdep.c: Coding standard and spelling comment fixes.
1034         (sh64_extract_return_value): Replace deprecated_store_floating
1035         with store_typed_floating.
1036         (sh_sh64_register_convert_to_raw): Replace
1037         deprecated_store_floating with store_typed_floating.
1038         (sh_sh64_register_virtual_type): Convert to sh64_register_type.
1039         (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
1040         sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
1041         sh64_extract_struct_value_address, sh64_pop_frame,
1042         sh64_extract_return_value, sh64_store_return_value,
1043         sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
1044         sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
1045         Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1046         Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
1047         (sh64_gdbarch_init): Don't set deprecated_register_bytes,
1048         deprecated_register_virtual_type, deprecated_register_raw_size,
1049         deprecated_max_register_raw_size, or
1050         deprecated_max_register_virtual_size.  Instead, just set
1051         gdbarch_register_type.
1052         (sh_sh64_register_raw_size): Delete.
1053         (sh_sh64_register_virtual_size): Delete.
1054
1055 2003-11-12  Daniel Jacobowitz <drow@mvista.com>
1056
1057         * dwarf2read.c (struct dwarf2_cu): New type.
1058
1059         (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
1060         dwarf2_cu structure to pass down.
1061
1062         (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
1063         (add_partial_enumeration, locate_pdi_sibling, process_die)
1064         (read_file_scope, read_func_scope)
1065         (read_lexical_block_scope, dwarf2_get_pc_bounds)
1066         (dwarf2_add_field, dwarf2_attach_fields_to_type)
1067         (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
1068         (read_structure_scope, read_enumeration, read_array_type)
1069         (read_common_block, read_namespace, read_tag_pointer_type)
1070         (read_tag_ptr_to_member_type, read_tag_reference_type)
1071         (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
1072         (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
1073         (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
1074         (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
1075         (read_full_die. read_attribute_value, read_attribute)
1076         (read_address, dwarf_decode_line_header, dwarf_decode_lines)
1077         (var_decode_location, new_symbol, dwarf2_const_value, die_type)
1078         (die_containing_type, type_at_offset, tag_type_to_type)
1079         (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
1080         (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
1081
1082 2003-11-12  Daniel Jacobowitz  <drow@mvista.com>
1083
1084         PR breakpoints/1450
1085         * breakpoint.c (insert_bp_location): Fix a logic error by returning
1086         0 after a catchpoint fails.
1087
1088 2003-11-11  Michael Chastain  <mec.gnu@mindspring.com>
1089
1090         * mips-tdep.c (msymbol_size): Delete.
1091
1092 2003-11-07  Michael Chastain  <mec@shout.net>
1093
1094         * symtab.h (struct minimal_symbol): Add size.
1095         * dbxread.c: Use it.
1096         * elfread.c: (record_minimal_symbol_and_info): Do not use info.
1097         Rename to record_minimal_symbol.
1098         (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
1099         * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
1100         (install_minimal_symbols): Ditto.
1101         * objfiles.c (terminate_minimal_symbol_table): Ditto.
1102         * arm-tdep.c: Delete unused MSYMBOL_SIZE.
1103         * m68hc11-tdep.c: Ditto.
1104         * mips-tdep.c: Ditto.
1105         * sh64-tdep.c: Ditto.
1106
1107 2003-11-10  Michael Chastain  <mec.gnu@mindspring.com>
1108
1109         * MAINTAINERS: Change my e-mail address.
1110
1111 2003-11-10  Andrew Cagney  <cagney@redhat.com>
1112
1113         * gdbarch.sh (return_value): Replace "inval" and "outval" with
1114         "readbuf" and "writebuf".
1115         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1116         * d10v-tdep.c (d10v_return_value): Ditto.
1117         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1118         (ppc_sysv_abi_broken_return_value): Ditto.
1119         (ppc64_sysv_abi_return_value): Ditto.
1120         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
1121         (ppc_sysv_abi_return_value): Ditto.
1122         (ppc_sysv_abi_broken_return_value): Ditto.
1123         (ppc64_sysv_abi_return_value): Ditto.
1124         * values.c (register_value_being_returned): Update call.
1125         * stack.c (return_command): Update call.
1126         * gdbarch.h, gdbarch.c: Re-generate.
1127
1128         * target.h (struct target_ops): Order xfer buffer parameters "read
1129         write" not "write read".
1130         * bfd-target.c (target_bfd_xfer_partial): Update.
1131         * remote.c (remote_xfer_partial): Update.
1132         * inftarg.c (child_xfer_partial): Update.
1133         * target.c (default_xfer_partial): Update.
1134         (target_read_partial, target_write_partial): Update.
1135         (debug_to_xfer_partial): Update.
1136
1137         * arch-utils.h, arch-utils.c: Fix typo in comment.
1138
1139         * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
1140         (gdbarch_from_bfd): Call gdbarch_find_by_info.
1141         (set_gdbarch_from_file): Call
1142         "deprecated_current_gdbarch_select_hack".
1143
1144 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1145
1146         * arch-utils.c (gdbarch_update_p): New function.
1147         * gdbarch.sh (gdbarch_update_p): Delete function.
1148         (find_arch_by_info, gdbarch_find_by_info): New functions.
1149         (deprecated_current_gdbarch_select_hack): New function.
1150         * gdbarch.c: Re-generate.
1151
1152         * gdbarch.sh (clear_gdbarch_swap): Delete function.
1153         (swapout_gdbarch_swap): Delete function.
1154         (swapin_gdbarch_swap): Delete function.
1155         (init_gdbarch_swap): Delete function.
1156         (initialize_non_multiarch): Delete function.
1157         (current_gdbarch_swap_in_hack): New function.
1158         (current_gdbarch_swap_out_hack): New function.
1159         (current_gdbarch_swap_init_hack): New function.
1160         * gdbarch.c: Re-generate.
1161
1162         * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
1163         parameter to "current_gdbarch".  Add comment explaining why.
1164         (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
1165         (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
1166         * gdbarch.c: Re-generate.
1167
1168         * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
1169         * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
1170         * config/s390/xm-linux.h: Delete file.
1171         * config/m88k/xm-delta88v4.h: Delete stray.
1172
1173         * Makefile.in (arch-utils.o): Update dependencies.
1174         * arch-utils.c: Include "osabi.h".
1175         (gdbarch_info_fill): New function.
1176         * arch-utils.h (gdbarch_info_fill): Declare.
1177         * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
1178         * gdbarch.c: Re-generate.
1179
1180 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
1181             David S. Miller  <davem@redhat.com>
1182
1183         * glibc-tdep.c, glibc-tdep.h: New files.
1184         * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
1185         * config/i386/linux.mt (TDEPFILES): Likewise.
1186         * i386-linux-tdep.c (glibc-tdep.h): Include.
1187         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1188         (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1189         * arm-linux-tdep.c (glibc-tdep.h): Include.
1190         (find_minsym_and_objfile, skip_hurd_resolver): Delete.
1191         (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
1192         * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
1193         (glibc_tdep_h): Define.
1194         (glibc-tdep.o): Add dependencies.
1195         (arm-linux-tdep.o): Update dependencies.
1196         (i386-linux-tdep.o): Likewise.
1197
1198 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1199
1200         * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
1201         * config/mips/nm-irix6.h: Delete file.
1202         * config/mips/nm-linux.h: Update copyright.
1203         (MIPS_GNULINUX_TARGET): Delete macro.
1204         * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
1205         * config/mips/xm-irix6.h: Delete file.
1206         * config/mips/linux.mh (XM_FILE): Delete definition.
1207         * config/mips/xm-linux.h: Delete file.
1208
1209 2003-11-09  Andrew Cagney  <cagney@redhat.com>
1210
1211         * d10v-tdep.c (d10v_return_value): New function.
1212         (d10v_use_struct_convention): Delete function.
1213         (d10v_store_return_value): Delete function.
1214         (d10v_extract_struct_value_address): Delete function.
1215         (d10v_gdbarch_init): Set "return_value" instead of
1216         "extract_return_value", "store_return_value",
1217         "extract_struct_value_address", and "use_struct_convention".
1218         (RET1_REGNUM): Delete const.
1219
1220 2003-11-09  Mark Kettenis  <kettenis@gnu.org>
1221
1222         From David S. Miller  <davem@redhat.com>:
1223         * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
1224         * gdbarch.c, gdbarch.h: Regenerated.
1225         * arch-utils.c (generic_skip_solib_resolver): New function.
1226         * arch-utils.h (generic_skip_solib_resolver): New prototype.
1227         * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
1228
1229 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1230
1231         * top.c (print_gdb_version): Replace STREQ with strcmp.
1232         * valops.c (value_struct_elt_for_reference): Ditto.
1233         (value_struct_elt_for_reference): Ditto.
1234         * symtab.c (gdb_mangle_name): Ditto.
1235         (find_line_symtab): Ditto.
1236         * symmisc.c (maintenance_print_symbols): Ditto.
1237         * symfile.c (symbol_file_command): Ditto.
1238         * stabsread.c (define_symbol, read_type): Ditto.
1239         (cleanup_undefined_types, scan_file_globals): Ditto.
1240         * solib.c (solib_map_sections): Ditto.
1241         * solib-svr4.c (bfd_lookup_symbol): Ditto.
1242         * rs6000-tdep.c (skip_prologue): Ditto.
1243         * p-valprint.c (pascal_value_print): Ditto.
1244         (pascal_object_is_vtbl_ptr_type): Ditto.
1245         * objfiles.c (in_plt_section): Ditto.
1246         * minsyms.c (lookup_minimal_symbol): Ditto.
1247         (compact_minimal_symbols): Ditto.
1248         (find_solib_trampoline_target): Ditto.
1249         * mdebugread.c (parse_type): Ditto.
1250         * language.c (set_language_command): Ditto.
1251         (set_type_command, set_range_command): Ditto.
1252         * f-lang.c (add_common_block): Ditto.
1253         (add_common_block): Ditto.
1254         (find_first_common_named): Ditto.
1255         (patch_all_commons_by_name): Ditto.
1256         * elfread.c (elf_locate_sections): Ditto.
1257         (elf_locate_sections): Ditto.
1258         (elfstab_offset_sections): Ditto.
1259         * dwarf2read.c (dwarf2_locate_sections): Ditto.
1260         * dbxread.c (add_old_header_file): Ditto.
1261         (find_corresponding_bincl_psymtab): Ditto.
1262         (read_dbx_symtab, process_one_symbol): Ditto.
1263         * coffread.c (patch_opaque_types): Ditto.
1264         * cli/cli-decode.c (delete_cmd): Ditto.
1265         * cli/cli-cmds.c (pwd_command, list_command): Ditto.
1266         * c-typeprint.c (c_type_print_base): Ditto.
1267         * breakpoint.c (bpstat_stop_status): Ditto.
1268         (clear_command, breakpoint_re_set_one): Ditto.
1269
1270 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1271
1272         * bcache.h: Update copyright.  Add comments on bcache VS hashtab.
1273         * bcache.c (struct bstring): Make "length" an unsigned short, add
1274         "half_hash".
1275         (struct bcache): Add "half_hash_error_count".
1276         (bcache): Compute and save the "half_hash".  Compare the
1277         "half_hash" before comparing the length.  Update
1278         half_hash_error_count.
1279
1280 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1281
1282         * inftarg.c (child_xfer_partial): New function
1283         (init_child_ops): Set "to_xfer_partial".
1284
1285 2003-11-07  Andrew Cagney  <cagney@redhat.com>
1286
1287         * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
1288         set "return_value" instead of "use_struct_convention".
1289         (ppc_linux_use_struct_convention): Delete function.
1290         (ppc_linux_return_value): New function.
1291         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
1292         (ppc_sysv_abi_broken_return_value): New function.
1293         (do_ppc_sysv_return_value): Add "gdbarch" parameter.
1294         (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
1295         static.
1296         (ppc_sysv_abi_extract_return_value): Delete function.
1297         (ppc_sysv_abi_broken_extract_return_value): Delete function.
1298         (ppc_sysv_abi_store_return_value): Delete function.
1299         (ppc_sysv_abi_broken_store_return_value): Delete function.
1300         (ppc_sysv_abi_use_struct_convention): Delete function.
1301         (ppc64_sysv_abi_use_struct_convention): Delete function.
1302         (ppc64_sysv_abi_extract_return_value): Delete function.
1303         (ppc64_sysv_abi_store_return_value): Delete function.
1304         * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
1305         (ppcnbsd_init_abi): Set "return_value", instead of
1306         "use_struct_convention", "extract_return_value", and
1307         "store_return_value".
1308         (ppcnbsd_use_struct_convention): Delete function.
1309         * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
1310         (ppc_sysv_abi_return_value): Declare.
1311         (ppc_sysv_abi_broken_return_value): Declare.
1312         (ppc_sysv_abi_use_struct_convention): Delete.
1313         (ppc_sysv_abi_store_return_value): Delete.
1314         (ppc_sysv_abi_extract_return_value): Delete.
1315         (ppc_sysv_abi_broken_store_return_value): Delete.
1316         (ppc_sysv_abi_broken_extract_return_value): Delete.
1317         (ppc64_sysv_abi_use_struct_convention): Delete.
1318         (ppc64_sysv_abi_extract_return_value): Delete.
1319         (ppc64_sysv_abi_store_return_value): Delete.
1320         * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
1321         set "return_value" instead of "extract_return_value",
1322         "store_return_value", and "use_struct_convention".
1323
1324 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1325
1326         * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
1327
1328         * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
1329         fscanf.
1330
1331 2003-11-07  Mark Kettenis  <kettenis@gnu.org>
1332
1333         * fbsd-proc.c: Fix formatting.
1334
1335 2003-11-06  Kevin Buettner  <kevinb@redhat.com>
1336
1337         * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
1338         Define.
1339         (new_variant): Set name for iacc0_regnum.
1340         (frv_register_name): Accommodate pseudo-registers.
1341         (frv_register_type): Add case for iacc0_regnum.
1342         (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
1343         (frv_gdbarch_init): Set number of pseudo registers.  Establish
1344         pseudo-register read/write methods.
1345
1346 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1347
1348         * valops.c (destructor_name_p): Replace STREQN with strncmp.
1349         * top.c (command_line_input): Ditto.
1350         * objc-exp.y (yylex): Ditto.
1351         * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1352         * jv-exp.y (yylex): Ditto.
1353         * f-exp.y (yylex): Ditto.
1354         * event-top.c (command_line_handler): Ditto.
1355         * environ.c (get_in_environ): Ditto.
1356         (set_in_environ): Ditto.
1357         * dwarfread.c (handle_producer): Ditto.
1358         * dbxread.c (process_one_symbol): Ditto.
1359         * c-typeprint.c (c_type_print_base): Ditto.
1360         * c-exp.y (yylex): Ditto.
1361
1362 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1363             Jeff Johnston  <jjohnstn@redhat.com>
1364
1365         * target.c (add_target): Only set "to_xfer_partial" when NULL.
1366         (init_dummy_target): Set "to_xfer_partial".
1367
1368 2003-11-06  Andrew Cagney  <cagney@redhat.com>
1369
1370         * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
1371         REGISTER_CONVENTION.
1372
1373 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1374
1375         * breakpoint.c (insert_bp_location, allocate_bp_location): Make
1376         static.
1377
1378 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1379
1380         * breakpoint.c (remove_breakpoint): Take an bp_location
1381         instead of a breakpoint argument.  Check the bp_location's type.
1382         Fix a reversed condition for hardware breakpoints.
1383
1384         (insert_bp_location): Update call to remove_breakpoint.
1385         (remove_breakpoints): Likewise.  Use ALL_BP_LOCATIONS.
1386         (remove_hw_watchpoints): Likewise.
1387         (reattach_breakpoints): Likewise.
1388         (detach_breakpoints): Likewise.
1389         (delete_breakpoint): Likewise.
1390
1391 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1392
1393         * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
1394         (beakpoint_init_inferior): Likewise.
1395         (breakpoint_here_p): Likewise.  Only check addresses for software
1396         or hardware breakpoints.
1397         (breakpoint_inserted_here_p): Likewise.
1398         (breakpoint_thread_match): Likewise.  Correct comment.
1399         (bpstat_have_active_hw_watchpoints): Likewise.
1400         (check_duplicates): Likewise.
1401
1402 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1403
1404         * breakpoints.c (insert_bp_location): New function, broken out
1405         from insert_breakpoints.  Work on an bp_location instead of a
1406         breakpoint.
1407         (insert_breakpoints): Use it.
1408
1409 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1410
1411         * breakpoint.h (struct bp_location): Add section.
1412         (struct breakpoint): Remove section.
1413         * breakpoint.c (insert_breakpoints, remove_breakpoint)
1414         (breakpoint_here_p, breakpoint_inserted_here_p)
1415         (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
1416         (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
1417         (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
1418         section through loc.
1419
1420 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1421
1422         * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
1423         instead of ALL_BREAKPOINTS.  Check for software breakpoints only.
1424
1425 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1426
1427         * breakpoint.c (allocate_bp_location): Take bpt and bp_type
1428         arguments.  Initialize owner and type for the new breakpoint
1429         location item.
1430         (set_raw_breakpoint): Update call to allocate_bp_location.
1431
1432 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1433
1434         * breakpoint.h (struct bp_location): Add a chain pointer.
1435         * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
1436         macros.
1437         (bp_location_chain): New variable.
1438         (allocate_bp_location): New function.
1439         (set_raw_breakpoint): Use it.
1440         (delete_breakpoint): Remove ->loc from the bp_location_chain.
1441
1442 2003-11-06  Daniel Jacobowitz  <drow@mvista.com>
1443
1444         * breakpoint.h (enum bp_loc_type, struct bp_location): New.
1445         (struct breakpoint): Remove address, shadow_contents, inserted,
1446         requested_address, and duplicate.  Add a struct bp_location.
1447         * breakpoint.c (condition_command, read_memory_nobpt)
1448         (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
1449         (reattach_breakpoints, update_breakpoints_after_exec)
1450         (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
1451         (breakpoint_init_inferior, breakpoint_here_p)
1452         (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
1453         (breakpoint_thread_match, bpstat_stop_status)
1454         (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
1455         (describe_other_breakpoints, check_duplicates)
1456         (make_breakpoint_permanent, create_thread_event_breakpoint)
1457         (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
1458         (set_longjmp_resume_breakpoint, mention, create_breakpoints)
1459         (watch_command_1, print_one_exception_catchpoint)
1460         (clear_command, breakpoint_re_set_one): Adjust member accesses to
1461         use the breakpoint's ->loc.
1462         (set_raw_breakpoint): Likewise.  Initialize ->loc.
1463         (delete_breakpoint): Likewise.  Free ->loc.
1464
1465 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1466
1467         * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
1468         macro.
1469         * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
1470         * config/i386/tm-cygwin.h
1471         (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
1472         * config/powerpc/tm-linux.h
1473         (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
1474         (at_subroutine_call_instruction_target): Delete declaration.
1475         * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
1476         * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
1477         * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
1478
1479         * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
1480         "struct bfd_section" and "struct bfd".
1481         * target.h (struct section_table): Ditto.
1482         * rs6000-nat.c (xcoff_relocate_core): Ditto.
1483         * solib-svr4.c (elf_locate_base): Ditto.
1484         * pa64solib.c (dld_cache_t): Ditto.
1485         * objfiles.h (struct obj_section): Ditto.
1486         * objfiles.c (add_to_objfile_sections): Ditto.
1487         * exec.c (bfdsec_to_vmap): Ditto.
1488         (add_to_section_table): Ditto.
1489         (build_section_table): Ditto.
1490         * corelow.c (get_core_register_section): Ditto.
1491         * coffread.c (find_linenos): Ditto.
1492         * elfread.c (elf_interpreter): Delete #if0'd function.
1493
1494         * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
1495         * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
1496         * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
1497         * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
1498
1499         * arch-utils.h (generic_cannot_extract_struct_value_address):
1500         Delete declaration.
1501         * wince.c (_initialize_wince): Fix multi-line string.
1502         * ia64-tdep.c (floatformat_valid): Convert to ISO C.
1503
1504 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1505
1506         * top.c (execute_command): Fix broken logic for command execution
1507         while inferior is running in async mode.
1508
1509 2003-11-06  Mark Kettenis  <kettenis@gnu.org>
1510
1511         * dwarf2-frame.c (execute_cfa_program): Mark register as
1512         REG_SAVED_REG for DW_CFA_register opcode.
1513
1514 2003-11-05  Mark Kettenis  <kettenis@gnu.org>
1515
1516         * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1517         %rsp, %rip and %eflags to match ABI-change.
1518
1519 2003-11-05  Jeff Johnston  <jjohnstn@redhat.com>
1520
1521         * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1522         (ia64_gdbarch_init): Don't bother calculating the os.
1523         Instead use the gdbarch_info struct and look at the osabi field.
1524         Also use gdbarch_list_lookup_by_info() to look for a
1525         candidate gdbarch.
1526
1527 2003-11-05  Kevin Buettner  <kevinb@redhat.com>
1528
1529         * frv-tdep.c (frv_register_byte): Delete.
1530         (frv_extract_return_value, frv_store_return_value)
1531         (frv_extract_struct_value_address): Don't call frv_register_byte().
1532         Convert to non-deprecated form.
1533         (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1534         Convert calls to set_gdbarch_deprecated_extract_return_value(),
1535         set_gdbarch_deprecated_store_return_value(), and
1536         set_gdbarch_deprecated_extract_struct_value_address() into
1537         non-deprecated forms.
1538
1539 2003-11-05  Andrew Cagney  <cagney@redhat.com>
1540
1541         * mips-tdep.c (mips_dump_tdep): Do not print
1542         PRINT_EXTRA_FRAME_INFO.
1543         * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1544         Rename PRINT_EXTRA_FRAME_INFO.
1545         * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1546         * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1547         (mips_print_extra_frame_info): Delete declaration.
1548         * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1549
1550 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
1551
1552         * coffread.c (coff_symtab_read): Remove passing of info parameter
1553         to prim_record_minimal_symbol_and_info.
1554
1555 2003-11-05  Elena Zannoni  <ezannoni@redhat.com>
1556
1557         * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1558         (decode_base_type): Delete ifdeffed out code.
1559
1560 2003-11-04  Andrew Cagney  <cagney@redhat.com>
1561
1562         * symtab.c (find_active_alias): Delete function.
1563         (lookup_block_symbol): Delete alias code.
1564         * stabsread.c (resolve_live_range): Delete function.
1565         (add_live_range): Delete function.
1566         (resolve_symbol_reference): Delete function.
1567         (define_symbol): Delete live range and alias code.
1568         (scan_file_globals): Delete alias code.
1569         * symtab.h (SYMBOL_RANGES): Delete macro.
1570         (struct range_list): Delete structure.
1571         (struct symbol): Delete field "ranges".
1572         (SYMBOL_ALIASES): Delete macro.
1573         (struct alias_list): Delete structure.
1574         (struct symbol): Delete field "aliases".
1575
1576 2003-11-04  Michael Snyder  <msnyder@redhat.com>
1577
1578         * MAINTAINERS: Remove myself as owner of breakpoints and
1579         of sparc/solaris.
1580
1581 2003-11-03  Corinna Vinschen  <vinschen@redhat.com>
1582
1583         * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1584         (sh_sh4al_dsp_register_name): Ditto.
1585         (sh4_nofpu_show_regs): Ditto.
1586         (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1587         bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1588
1589 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1590
1591         * bcache.c: Include "gdb_assert.h".
1592         (struct bcache): Add fields "expand_count" and
1593         "expand_hash_count".
1594         (expand_hash_table): Update the expand counts.
1595         (print_bcache_statistics): Use XCALLOC, not alloca.  Print stats
1596         on object sizes and hashes.
1597         * Makefile.in (bcache.o): Update dependencies.
1598
1599 2003-11-03  Andrew Cagney  <cagney@redhat.com>
1600
1601         * exec.c (xfer_memory): Eliminate xfer_fn.
1602
1603 2003-10-31  Kevin Buettner  <kevinb@redhat.com>
1604
1605         * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1606         (opcodes/frv-desc.h): Include.
1607         (iacc0h_regnum, iacc0l_regnum): Define.
1608         (last_spr_regnum, frv_num_regs): Update.
1609         (new_variant): Don't supply default names for holes in the SPRs.
1610         Supply names for iacc0h_regnum and iacc0l_regnum.
1611         (frv_register_type): Use symbolic constants first_fpr_regnum and
1612         last_fpr_regnum instead of hardcoded constants 64 and 127.  Use
1613         builtin_type_int instead of builtin_type_int32.
1614         (frv_register_sim_regno): New function.
1615         (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1616         * Makefile.in (gdb_sim_frv_h): Define.
1617         (frv-tdep.o): Update dependencies.
1618
1619 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1620
1621         * avr-tdep.c (avr_frame_this_id): Do not call
1622         deprecated_inside_entry_file.
1623         * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1624         * m32r-tdep.c (m32r_frame_this_id): Ditto.
1625         * d10v-tdep.c (d10v_frame_this_id): Ditto.
1626         * arm-tdep.c (arm_prologue_this_id): Ditto.
1627         * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1628
1629 2003-10-31  Jim Blandy  <jimb@redhat.com>
1630
1631         * elfread.c (elf_symtab_read): Allocate correct number of tail
1632         elements to sectinfo structure.  (Fix from Woody LaRue.)
1633
1634 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1635
1636         * stack.c (return_command): Use get_frame_type, instead of
1637         CALL_DUMMY_HAS_COMPLETED.
1638         * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1639         * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1640
1641 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1642
1643         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1644         explicitly specify size of array.
1645         (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1646         TDEP->sc_num_regs.
1647
1648 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1649
1650         * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1651         function.
1652         (s390_gdbarch_init): Set extract_struct_value_address.
1653         * arch-utils.c (generic_cannot_extract_struct_value_address):
1654         Delete function.
1655         * arch-utils.h (generic_cannot_extract_struct_value_address):
1656         Delete definition.
1657
1658 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1659
1660         * i386-linux-nat.c (fetch_core_registers): Remove.
1661         (linux_elf_core_fns): Remove.
1662         (_initialize_i386_linux_nat): Remove.
1663
1664 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1665
1666         * solib-svr4.c: Update copyright.  Include "bfd-target.h" and
1667         "exec.h".
1668         (exec_entry_point): New function.
1669         (enable_break): Create a "tmp_bfd_target", use that and
1670         entry_point_address when computing the relocation offset.
1671         (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1672         * Makefile.in (solib-svr4.o): Update dependencies.
1673
1674 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1675
1676         * defs.h (XZALLOC): Define.
1677         * target.h (struct target_ops): Add "to_data";
1678         * bfd-target.h, bfd-target.c: New files.
1679         * Makefile.in (SFILES): Add "bfd-target.c".
1680         (COMMON_OBS): Add "bfd-target.o".
1681         (bfd-target.o): Specify dependencies.
1682         (bfd_target_h): Define.
1683         * defs.h (XZALLOC): Define.
1684
1685 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1686
1687         * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1688         adjust_breakpoint_address.
1689         * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1690         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1691         * ppc-sysv-tdep.c: Include "target.h".  Update copyright.
1692         (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1693
1694 2003-10-31  Andrew Cagney  <cagney@redhat.com>
1695
1696         * target.h (struct target_ops): Replace "to_read_partial" and
1697         "to_write_partial" with "to_xfer_partial".  Update comments.
1698         * target.c (debug_to_write_partial): Delete function.
1699         (debug_to_xfer_partial): Replace debug_to_read_partial.
1700         (add_target, update_current_target, setup_target_debug): Set
1701         "to_xfer_partial" instead of "to_read_partial" and
1702         "to_write_partial".
1703         (default_xfer_partial): Replace "default_write_partial".
1704         (default_read_partial): Delete.
1705         (target_read_partial, target_write_partial): Call
1706         "to_xfer_partial".
1707         * remote.c (init_remote_ops): Set "to_xfer_partial".
1708         (init_remote_async_ops): Ditto.
1709         (remote_xfer_partial): Replace "remote_read_partial".
1710
1711 2003-10-31  Mark Kettenis  <kettenis@gnu.org>
1712
1713         * i386-tdep.c (i386_supply_fpregset): Support floating-point
1714         registers in `fxsave' format.
1715         (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1716
1717 2003-10-30  Mark Kettenis  <kettenis@gnu.org>
1718
1719         * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1720         (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1721         TDEP->gregset_num_regs and tdep->sizeof_gregset.
1722
1723         * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1724         specify size of array.
1725         (i386_linux_init_abi): Remove initialization of
1726         TDEP->num_xmm_regs.  Use I386_LINUX_NUM_REGS for number of
1727         registers.  Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1728
1729         * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1730         * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1731         core-regset.o.
1732
1733         * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1734         the ELF header.
1735
1736 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1737
1738         * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1739         * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1740         core-regset.o.
1741
1742         * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1743
1744         * corelow.c: Include "arch-utils.h", "regset.h" and
1745         "gdb_assert.h".
1746         (core_gdbarch): New variable.
1747         (sniff_core_bfd): Don't sniff if we have support for register sets
1748         in CORE_GDBARCH.
1749         (core_close): Reset CORE_GDBARCH.
1750         (core_open): Initialize CORE_GDBARCH.
1751         (get_core_register_section): Use register sets if they are
1752         supported by CORE_GDBARCH.
1753         (get_core_registers): Don't print error message if we have support
1754         for register sets in CORE_GDBARCH.
1755
1756 2003-10-29  Andrew Cagney  <cagney@redhat.com>
1757
1758         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1759         default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1760
1761 2003-10-29  Mark Kettenis  <kettenis@gnu.org>
1762
1763         * objfiles.h (clear_objfile_data): New prototype.
1764         * objfiles.c (clear_objfile_data): New function.
1765         * symfile.c (reread_symbols): Clear per-objfile data.
1766
1767 2003-10-28  Jeff Johnston  <jjohnstn@redhat.com>
1768
1769         * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1770         printf_unfiltered instead of printf_filtered for output messages.
1771         (add_symbol_file_command): Ditto.
1772         (reread_symbols): Ditto.
1773         (overlay_auto_command): Ditto.
1774         (overlay_manual_command): Ditto.
1775         (overlay_off_command): Ditto.
1776
1777 2003-10-27  Mark Kettenis  <kettenis@gnu.org>
1778
1779         * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1780         (gdbarch_from_bfd): New function.
1781         (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1782         deprecated_select_gdbarch_hack.
1783         * arch-utils.h (gdbarch_from_bfd): New prototype.
1784
1785 2003-10-27  Andrew Cagney  <cagney@redhat.com>
1786
1787         * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1788         arch_info.  Use warning instead of fprintf_filtered.  Do not use
1789         deprecated bfd_printable_arch_mach.
1790
1791 2003-10-26  Kevin Buettner  <kevinb@redhat.com>
1792
1793         * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1794         Delete.
1795         (frv_register_type): Rename from frv_register_virtual_type.  Add
1796         ``struct gdbarch *'' parameter.
1797         (frv_gdbarch_init): Delete calls to the following functions:
1798         set_gdbarch_deprecated_size(),
1799         set_gdbarch_deprecated_register_bytes(),
1800         set_gdbarch_deprecated_register_raw_size(),
1801         set_gdbarch_deprecated_max_register_raw_size(),
1802         set_gdbarch_deprecated_register_virtual_size(),
1803         set_gdbarch_deprecated_max_register_virtual_size(),
1804         set_gdbarch_deprecated_register_virtual_size(),
1805         set_gdbarch_deprecated_register_virtual_type().
1806         Add call to function set_gdbarch_register_type().
1807
1808 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
1809
1810         * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1811         FDOFF_REGNUM): Remove defines.
1812         * win32-nat.c (do_child_fetch_inferior_registers): Include
1813         "i387-tdep.h".
1814         (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1815         I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM.  Define and
1816         undefine I387_ST0_REGNUM.
1817
1818         * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1819         * x86-64-tdep.c (x86_64_store_return_value): Use
1820         I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1821
1822         Change register numbers to enumartion values.
1823         * i386-tdep.h (enum i386_regnum): New.
1824         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1825         I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1826         I386_ST0_REGNUM): Remove defines.
1827         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1828         I386_EDI_REGNUM): Remove defines.
1829
1830 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1831
1832         * target.c: Include "gdbcore.h".
1833         (get_target_memory, get_target_memory_unsigned): New functions.
1834         * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1835         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1836         Use get_target_memory_unsigned.
1837         * Makefile.in (target.o): Update dependencies.
1838
1839 2003-10-24  Andrew Cagney  <cagney@redhat.com>
1840
1841         * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1842         * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1843         * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1844         * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1845         * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1846
1847         * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1848         (can_run_code_for): Use the OO term "singleton".
1849
1850 2003-10-23  Andrew Cagney  <cagney@redhat.com>
1851
1852         * Makefile.in (stack.o): Add $(regcache_h).
1853         * stack.c: Include "regcache.h"
1854         (return_command): Rewrite.  Use get_frame_id and
1855         get_selected_frame.  Eliminate "deprecated_selected_frame".  Warn
1856         about unhandled return-values.
1857         * value.h (set_return_value): Delete declaration.
1858         * values.c (set_return_value): Delete function.
1859
1860 2003-10-23  Jeff Johnston  <jjohnstn@redhat.com>
1861
1862         * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1863         (pseudo_regs): Add comment regarding register stack registers.
1864         (ia64_alloc_frame_cache):  Initialize new prev_cfm field to 0.
1865         (floatformat_valid): New static routine.
1866         (floatformat_ia64_ext): Add name field and set up is_valid routine
1867         to floatformat_valid().
1868         (examine_prologue):  For the previous cfm, use
1869         frame_unwind_register()
1870         if the cfm is not stored in a register-stack register.  Save the
1871         previous cfm value in the prev_cfm field.  Add debug output.
1872         (ia64_frame_this_id): Use frame_id_build_special() to also register
1873         the bsp.  Add debug output.
1874         (ia64_sigtramp_frame_this_id): Ditto.
1875         (ia64_frame_prev_register):  Look at cache saved_regs for a few more
1876         registers and also add some checks for framelessness before accepting
1877         current register values for fields such as return address.  For cfm,
1878         use the cached prev_cfm field if available.  Add comment to explain
1879         PSR logic.  Add debug output.
1880         (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1881         as part of initialization.
1882         (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1883         calculated.  Cache the bsp and cfm values.
1884         (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1885         instead of using ia64_frame_prev_register() which doesn't expect most
1886         registers to be saved.  The saved values for bsp and sp
1887         can be taken from the cache.  Add debug output.
1888         (ia64_push_dummy_call): Use frame_id_build_special() to also register
1889         the bsp.
1890
1891 2003-10-23  Jim Blandy  <jimb@redhat.com>
1892
1893         * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1894         architecture the current arch can run code for --- but not if it's
1895         a superset.
1896         (can_run_code_for): New function.
1897
1898 2003-10-22  James E Wilson  <wilson@specifixinc.com>
1899
1900         * MAINTAINERS: Move myself from paper trail section back to write
1901         after approval section.
1902
1903 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1904
1905         * exec.h: New file.
1906         * win32-nat.c: Include "exec.h".
1907         * solib.c: Include "exec.h".
1908         * target.h (build_section_table): Delete declaration.
1909         * somsolib.c: Include "exec.h".
1910         (exec_ops): Delete extern declaration.
1911         * rs6000-nat.c: Update copyright.  Include "exec.h".
1912         (exec_ops): Delete extern declaration.
1913         * pa64solib.c: Update copyright.  Include "exec.h".
1914         (exec_ops): Delete extern declaration.
1915         * exec.c: Update copyright.  Include "exec.h".
1916         * corelow.c: Update dependencies.  Include "exec.h".
1917         * Makefile.in (exec_h): Define.
1918         (exec.o, somsolib.o): Update dependencies.
1919         (pa64solib.o, corelow.o): Update dependencies.
1920
1921 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1922
1923         * target.c: Include "gdb_assert.h" (target_read): Call
1924         "target_read_partial", not "target_write_partial".
1925         (default_read_partial, default_write_partial): New function.
1926         (target_read_partial, target_write_partial): Simplify, assume that
1927         there is always a read/write method.
1928         (update_current_target, add_target): Always set "to_read_partial"
1929         and "to_write_partial".
1930         (target_write, target_read): Fail on a zero byte transfer.
1931         * Makefile.in (target.o): Update dependencies.
1932         * target.h: Update copyright date.
1933         (target_object): Fix typo.
1934
1935 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1936
1937         * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1938         multi-arch method, add "targ" parameter.
1939         (struct target_ops): Declare.
1940         * gdbarch.h, gdbarch.c: Re-generate.
1941         * Makefile.in (c-valprint.o): Update dependencies.
1942         * arch-utils.h: Update copyright.
1943         (convert_from_func_ptr_addr_identity): Declare.
1944         * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1945         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1946         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1947         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1948         * infcall.c (find_function_addr, call_function_by_hand): Update.
1949         * c-valprint.c: Include "target.h".
1950         (print_function_pointer_address): Update.
1951
1952 2003-10-22  Andrew Cagney  <cagney@redhat.com>
1953
1954         * target.c (target_close): New function.
1955         (debug_to_close): Use "target_close".
1956         (push_target): Use "target_close".
1957         (unpush_target): Use "target_close".
1958         (pop_target): Use "target_close".
1959         * target.h (struct target_ops): Add "to_xclose".
1960         (target_open): Delete macro.  Move comment to "to_open".
1961         (target_close): Replace macro with function that takes a target.
1962         * top.c (quit_target): Pass "current_target" to "target_close".
1963
1964 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
1965
1966         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1967         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1968         * symtab.h (lookup_minimal_symbol_text): Update.
1969         * breakpoint.c (create_overlay_event_breakpoint,
1970         create_longjmp_breakpoint): Update callers.
1971         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1972         * symtab.c (find_pc_sect_line): Ditto.
1973
1974 2003-10-21  Andrew Cagney  <cagney@redhat.com>
1975
1976         * target.c (errno): Delete extern declaration.
1977
1978 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
1979
1980         * ia64-tdep.c: Change all occurrences of
1981         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1982         (ia64_frame_prev_register): Minor whitespace change.
1983
1984 2003-10-20  Michael Chastain  <mec@shout.net>
1985
1986         * config/djgpp/fnchange.lst: Add lines for:
1987         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1988         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1989         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1990         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1991         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1992         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1993         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1994
1995 2003-10-20  Andrew Cagney  <cagney@redhat.com>
1996
1997         * values.c (register_value_being_returned): Update comments.  Use
1998         "gdbarch_return_value" when available.
1999         (using_struct_return): Ditto.
2000         (set_return_value): Ditto.  Use "gdbarch_return_value" when
2001         available..  Print a warning, and not an error, when an unhandled
2002         return type is encountered.
2003         * infcmd.c: Include "gdb_assert.h".
2004         (print_return_value): When gdbarch_return_value_p, and using
2005         struct return, assume that the value is not available.
2006         * defs.h (return_value_convention): Define.
2007         * gdbarch.sh (gdbarch_return_value): New predicate method.
2008         * gdbarch.h, gdbarch.c: Re-generate
2009         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
2010
2011 2003-10-20  Andrew Cagney  <cagney@redhat.com>
2012
2013         * symtab.c: Replace "struct sec" with "struct bfd_section".
2014         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
2015
2016 2003-10-19  Michael Chastain  <mec@shout.net>
2017
2018         * config/djgpp/fnchange.lst: Add lines for:
2019         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
2020         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
2021         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
2022
2023 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
2024
2025         * amd64fbsd-nat.c (fetch_inferior_registers,
2026         store_inferior_registers): Remove functions.
2027         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
2028
2029 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
2030
2031         Add NetBSD/amd64 native configuration:
2032         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
2033         * amd64nbsd-tdep.c: New file.
2034         * amd64nbsd-nat.c: New file.
2035         * amd64bsd-nat.c: New file.
2036         * config/i386/nbsd64.mh: New file.
2037         * config/i386/nbsd64.mt: New file.
2038         * configure.host: Add x86_64-*-netbsd*.
2039         * configure.tgt: Add x86_64-*-netbsd*.
2040         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
2041         New targets.
2042         * NEWS (New native configurations): Mention NetBSD/amd64.
2043
2044 2003-10-17  Michael Chastain  <mec@shout.net>
2045
2046         * config/djgpp/fnchange.lst: Remove dead lines for:
2047         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
2048         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
2049         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
2050         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
2051         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
2052         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
2053         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
2054         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
2055         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
2056         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
2057         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
2058         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
2059         gdb/config/sparc/tm-sparclite.h,
2060         gdb/gdbtk/generic/ChangeLog-2001,
2061         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
2062         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
2063         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
2064         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
2065         gdb/testsuite/gdb.mi/mi0-var-block.exp,
2066         gdb/testsuite/gdb.mi/mi0-var-child.exp,
2067         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
2068         gdb/testsuite/gdb.mi/mi0-var-display.exp,
2069         itcl/iwidgets3.0.0/demos/extfileselectionbox,
2070         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
2071         itcl/iwidgets3.0.0/demos/fileselectionbox,
2072         itcl/iwidgets3.0.0/demos/fileselectiondialog,
2073         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
2074         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
2075         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
2076         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
2077         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
2078         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
2079         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
2080         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
2081         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
2082         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
2083         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
2084         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
2085         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
2086         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
2087         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
2088         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
2089         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
2090         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
2091         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
2092         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
2093         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
2094         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
2095         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
2096         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
2097         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
2098         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
2099         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
2100         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
2101         itcl/iwidgets3.0.0/demos/html/shell.n.html,
2102         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
2103         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
2104         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
2105         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
2106         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
2107         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
2108         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
2109         itcl/iwidgets3.0.0/demos/scrolledcanvas,
2110         itcl/iwidgets3.0.0/demos/scrolledframe,
2111         itcl/iwidgets3.0.0/demos/scrolledhtml,
2112         itcl/iwidgets3.0.0/demos/scrolledlistbox,
2113         itcl/iwidgets3.0.0/demos/scrolledtext,
2114         itcl/iwidgets3.0.0/demos/selectionbox,
2115         itcl/iwidgets3.0.0/demos/selectiondialog,
2116         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
2117         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
2118         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
2119         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
2120         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
2121         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
2122         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
2123         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
2124         itcl/iwidgets3.0.0/doc/scrolledframe.n,
2125         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
2126         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
2127         itcl/iwidgets3.0.0/doc/scrolledtext.n,
2128         itcl/iwidgets3.0.0/doc/selectionbox.n,
2129         itcl/iwidgets3.0.0/doc/selectiondialog.n,
2130         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
2131         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
2132         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
2133         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
2134         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
2135         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
2136         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
2137         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
2138         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
2139         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
2140         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
2141         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
2142         itcl/iwidgets3.0.0/generic/selectionbox.itk,
2143         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
2144         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
2145         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
2146         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
2147         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
2148         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
2149         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
2150         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
2151         itcl/iwidgets3.0.0/tests/scrolledframe.test,
2152         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
2153         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
2154         itcl/iwidgets3.0.0/tests/scrolledtext.test,
2155         itcl/iwidgets3.0.0/tests/selectionbox.test,
2156         itcl/iwidgets3.0.0/tests/selectiondialog.test,
2157         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
2158         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
2159         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
2160         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
2161         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
2162         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
2163         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
2164         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
2165         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
2166         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
2167         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
2168         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
2169         tk/mac/tkMacProjects.sit.hqx.
2170
2171 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2172
2173         * target.c (target_section_by_addr): New function.
2174         (do_xfer_memory): Use "target_section_by_addr".
2175         * target.h (target_section_by_addr): Declare.
2176
2177         * target.h (struct target_ops): Add "to_read_partial" and
2178         "to_write_partial", delete "to_query".
2179         (target_read_partial, target_write_partial): Declare.
2180         (target_read, target_write): Declare.
2181         (target_query): Delete macro.
2182         * target.c (target_read_partial): New function.
2183         (target_write_partial, target_read, target_write): New function.
2184         (update_current_target): Delete inheritance of "to_query".  Add
2185         comments about "to_read_partial" and "to_write_partial".
2186         (debug_to_partial_read, debug_to_partial_write): New functions.
2187         (debug_to_query): Delete function.
2188         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
2189         instead of "to_query".
2190         * remote.c (remote_read_partial): Replace "remote_query".
2191         (init_remote_ops): Set "to_read_partial" instead of "to_query".
2192         (init_remote_async_ops): Ditto.
2193         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
2194         "target_read_partial" instead of "target_query".
2195         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
2196         Use "target_read_partial" instead of "target_query".
2197
2198 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
2199
2200         * frame.h (struct frame_id): Add new field: special_addr.
2201         (frame_id_build_special): New prototype.
2202         * frame.c (frame_id_build_special): New function.
2203         (frame_id_build): Change to call frame_id_build_special().
2204         (frame_id_eq): Change to also test special_addr field.
2205         (frame_id_inner): Update comment.
2206
2207 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2208
2209         * target.c (update_current_target): Perform the target cleanup.
2210         Put the target stack beneath the squashed "current_target".
2211         (add_target): Delete disabled call to "cleanup_target".
2212         (cleanup_target): Delete function.
2213         (push_target, unpush_target): Do not call "cleanup_target".
2214
2215 2003-10-17  Andrew Cagney  <cagney@redhat.com>
2216
2217         * target.c (target_stack): Change to a static target_ops.
2218         (update_current_target): Walk the "struct target_ops" stack.
2219         (pop_target, do_xfer_memory, target_info): Ditto.
2220         (find_target_beneath): Ditto.
2221         (push_target): Rewrite to use the "struct target_ops" stack.
2222         (unpush_target): Ditto.
2223         * target.h (struct target_stack_item): Delete definition.
2224         (target_stack): Delete declaration.
2225         (struct target_ops): Add field "beneath".
2226
2227 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
2228
2229         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
2230         declaration.
2231         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
2232         (h8300_examine_prologue): Use h8300_normal_mode flag
2233         (h8300_gdbarch_init): Set architecture info for normal mode
2234
2235 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
2236
2237         * remote.c (remote_protocol_vcont): New variable.
2238         (set_remote_protocol_vcont_packet_cmd): New function.
2239         (show_remote_protocol_vcont_packet_cmd): New function.
2240         (init_all_packet_configs): Handle remote_protocol_vcont.
2241         (remote_vcont_probe): New function.
2242         (remote_vcont_resume): New function.
2243         (remote_resume): Use it.
2244         (remote_async_resume): Call remote_resume.
2245         (_initialize_remote): Add verbose-resume packet commands.
2246
2247 2003-10-16  Andrew Cagney  <cagney@redhat.com>
2248
2249         * infrun.c (handle_inferior_event): Add comment about
2250         "frame_id_inner" being too weak.
2251
2252 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
2253
2254         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2255         second parameter, which is always null. Remove
2256         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
2257         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
2258         accordingly.
2259         * somsolib.c (som_solib_create_inferior_hook,
2260         som_solib_desire_dynamic_linker_symbols): Update callers.
2261         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
2262
2263 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
2264
2265         * remote-m32r-sdi.c : New file, interface to m32r on-chip
2266         debug interface, SDI (Scalable Debug Interface).
2267         * NEWS: Mention m32r SDI protocol was supported.
2268         * Makefile.in (remote-m32r-sdi.o): Add build rule.
2269         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
2270
2271 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
2272
2273         * ia64-linux-tdep.c: Include gdbcore.h.
2274         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
2275         (ia64_linux_sigcontext_register_addr): Find the address of the
2276         sigcontext area stored in the sigframe instead of using
2277         a magic offset constant.
2278
2279 2003-10-15  Andrew Cagney  <cagney@redhat.com>
2280
2281         * remote.c (remote_search): Delete function.
2282         * target.h (target_search): Delete disabled macro.
2283         (struct target_ops): Delete disabled field "to_search".
2284
2285 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
2286
2287         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
2288         instead of deprecated_inside_entry_file().
2289
2290 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
2291
2292         * sh-tdep.c: Fix copy/paste hangover in comment.
2293         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
2294         mode.
2295         (sh3e_sh4_extract_return_value): Ditto.
2296
2297 2003-10-13  Richard Henderson  <rth@redhat.com>
2298
2299         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
2300         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
2301         match c_val_print a bit closer.
2302
2303 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2304
2305         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
2306         (frv_gdbarch_adjust_breakpoint_address): New function.
2307         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
2308         method.
2309
2310 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2311
2312         * breakpoint.h (struct breakpoint): Add new member
2313         ``requested_address''.
2314         * breakpoint.c (breakpoint_adjustment_warning)
2315         (adjust_breakpoint_address): New static functions.
2316         (print_it_typical): Issue warning if breakpoint's address is different
2317         from its requested address.
2318         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
2319         (breakpoint_re_set_one):  Set breakpoint's
2320         ``requested_address'' field.  Set ``address'' field to the
2321         result of calling adjust_breakpoint_address() on the requested
2322         address.
2323
2324 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
2325
2326         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
2327         * gdbarch.h, gdbarch.c: Regenerate.
2328
2329 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2330
2331         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
2332         TDEP->sc_num_regs.
2333
2334         * i386fbsd-tdep.c: New file.
2335         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2336         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2337         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
2338         i386bsd-tdep.c.
2339         (_initialize_i386fbsd_tdep): New function.
2340         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
2341         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
2342         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
2343         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
2344         TDEP->sc_num_regs.
2345         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
2346         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2347         to initialize TDEP->sc_num_regs.
2348         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2349         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
2350         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
2351         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
2352         FreeBSD ELF OS/ABI's here.
2353         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
2354         (i386fbsd-tdep.o): New target.
2355         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
2356         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
2357
2358         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
2359         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
2360         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
2361         in initialization of TDEP->sc_num_regs.
2362
2363         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
2364         (x86_64_init_abi): Initialize regset_from_core_section if
2365         appropriate.
2366
2367         * i386-tdep.c (i386_regset_from_core_section): New function.
2368         (i386_gdbarch_init): Initialize regset_from_core_section if
2369         appropriate.
2370         * i386-tdep.h (i386_regset_from_core_section): New declaration.
2371
2372         * i386-tdep.h (struct regset): Declare opaque.
2373
2374         * gdbarch.sh (regset_from_core_section): New method.
2375         (struct regset): Declare opaque.
2376         * gdbarch.c, gdbarch.h: Regenerated.
2377
2378 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
2379
2380         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
2381         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
2382         Correct test for pc within section.
2383
2384 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
2385
2386         * gdbarch.sh: Remove trailing whitepsace from comments.
2387
2388 2003-10-08  Roland McGrath  <roland@redhat.com>
2389
2390         * gcore.c (make_mem_sec): Function removed, folded into ...
2391         (gcore_create_callback): ... here.  To omit a section, clear its
2392         SEC_LOAD bit rather than zeroing its size.
2393         Omit read-only sections only if they correspond to a known disk file.
2394         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
2395
2396 2003-10-10  Michael Snyder  <msnyder@redhat.com>
2397
2398         * d10v-tdep.c: Fix typo in comment.
2399
2400 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2401
2402         * rs6000-tdep.c (e500_store_return_value): Delete function.
2403         (e500_extract_return_value): Delete function.
2404         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
2405         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
2406         "ppc_sysv_abi_restore_return_value" where applicable.
2407         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
2408         (ppc_sysv_abi_extract_return_value): Declare.
2409         (ppc_sysv_abi_broken_store_return_value): Declare.
2410         (ppc_sysv_abi_broken_extract_return_value): Declare.
2411         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
2412         * ppc-sysv-tdep.c (return_value_convention): Move definition to
2413         start of file.
2414         (do_ppc_sysv_return_value): New function.
2415         (ppc_sysv_abi_extract_return_value): New function.
2416         (ppc_sysv_abi_store_return_value): New function.
2417         (ppc_sysv_abi_broken_extract_return_value): New function.
2418         (ppc_sysv_abi_broken_store_return_value): New function.
2419         (ppc_sysv_abi_use_struct_convention): Call
2420         do_ppc_sysv_return_value.
2421
2422 2003-10-10  J. Brobecker  <brobecker@gnat.com>
2423
2424         * blockframe.c (inside_main_func): No longer use symbol_lookup()
2425         to lookup the main function symbol.
2426
2427 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2428
2429         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
2430         types correctly.
2431         (sh_push_dummy_call_fpu): Fix argument passing rules.
2432         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
2433         float types.
2434         (sh3e_sh4_store_return_value): Ditto.
2435
2436 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
2437
2438         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
2439         comment.
2440
2441 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
2442
2443         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
2444         more readable code.  Accomodate passing of bitfields.
2445
2446 2003-10-10  Andrew Cagney  <cagney@redhat.com>
2447
2448         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
2449         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
2450         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
2451         * ppc-sysv-tdep.c: Include "gdb_assert.h".
2452         (ppc64_sysv_abi_push_dummy_call): New function.
2453         (ppc64_sysv_abi_broken_push_dummy_call): New function.
2454         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
2455         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
2456
2457 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
2458
2459         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
2460         * README: Ditto.
2461         * d10v-tdep.c: Ditto.
2462         * h8300-tdep.c: Ditto.
2463         * remote-e7000.c: Ditto.
2464         * remote-hms.c: Ditto.
2465         * ser-e7kpc.c: Ditto.
2466         * sh-stub.c: Ditto.
2467         * sh-tdep.c: Ditto.
2468         * sh-tdep.h: Ditto.
2469         * sh3-rom.c: Ditto.
2470         * sh64-tdep.c: Ditto.
2471         * top.c: Ditto.
2472         * wince.c: Ditto.
2473         * config/d10v/d10v.mt: Ditto.
2474         * config/sh/embed.mt: Ditto.
2475         * config/sh/linux.mt: Ditto.
2476         * config/sh/tm-linux.h: Ditto.
2477         * config/sh/tm-sh.h: Ditto.
2478         * config/sh/wince.mt: Ditto.
2479
2480 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2481
2482         * ppc-tdep.h (struct type): Declare opaque.
2483         * x86-64-tdep.h (struct regcache): Declare opaque.
2484         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
2485         coding style.
2486
2487 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2488
2489         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
2490         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
2491         (SOFTWARE_SINGLE_STEP_P): Ditto.
2492         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
2493         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
2494         (SOFTWARE_SINGLE_STEP_P): Ditto.
2495         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
2496         software_single_step to rs6000_software_single_step.
2497
2498 2003-10-09  Andrew Cagney  <cagney@redhat.com>
2499
2500         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
2501
2502 2003-10-09  Michael Snyder  <msnyder@redhat.com>
2503
2504         * frame.h: Fix typo in comment.
2505         * dummy-frame.c: Fix typo in comment.
2506         * d10v-tdep.c: Random whitespace/comment tweaks.
2507
2508 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
2509
2510         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
2511         (sh_push_dummy_code): Delete function, it's only used for dummy calls
2512         on stack.
2513
2514         Based on input by Stephen Clarke (stephen.clarke@superh.com):
2515         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2516         in detail.
2517
2518 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2519
2520         * remote-mips.c (mips_initialize): Remove unneeded call to
2521         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2522
2523 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
2524
2525         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2526         a memory pointer.
2527
2528 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
2529
2530         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2531         for any lwp we resume.
2532         (running_callback): Add lwps that have pending status events
2533         against them to be considered running.
2534
2535 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
2536
2537         * m32r-tdep.c : Include "dis-asm.h".
2538         * Makefile.in (m32r-tdep.o): Update dependencies.
2539
2540 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2541
2542         * completer.h (get_gdb_completer_word_break_characters): Delete.
2543         * completer.c: include language.h.
2544         (gdb_completer_word_break_characters): Delete.
2545         (get_gdb_completer_word_break_characters): Delete.
2546         (location_completer): Use the word break characters of the current
2547         language.
2548         (complete_line): Likewise.
2549         (line_completion_function): Likewise.
2550         (skip_quoted_chars): Likewise.
2551         * Makefile.in (completer.o): Add dependency on language.h.
2552         * top.c (init_main): Set the readline word break characters
2553         to GDB's default word break characters.
2554
2555 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2556
2557         * language.h (language_defn): new field, la_word_break_characters.
2558         * language.c (unknown_language_defn): Set new field to
2559         default_word_break_characters.
2560         (auto_language_defn): Likewise.
2561         (local_language_defn): Likewise.
2562         * ada-lang.c (ada_language_defn): Likewise.
2563         * c-lang.c (c_language_defn): Likewise.
2564         (cplus_language_defn): Likewise.
2565         (asm_language_defn): Likewise.
2566         (minimal_language_defn): Likewise.
2567         * f-lang.c (f_language_defn): Likewise.
2568         * jv-lang.c (java_language_defn): Likewise.
2569         * m2-lang.c (m2_language_defn): Likewise.
2570         * objc-lang.c (objc_language_defn): Likewise.
2571         * p-lang.c (pascal_language_defn): Likewise.
2572         * scm-lang.c (scm_language_defn): Likewise.
2573
2574 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2575
2576         * ppc-sysv-tdep.c: Re-indent.
2577
2578 2003-10-06  J. Brobecker  <brobecker@gnat.com>
2579
2580         * language.h (default_word_break_characters): Add prototype.
2581         * language.c (default_word_break_characters): New function.
2582
2583 2003-10-06  Andreas Schwab  <schwab@suse.de>
2584
2585         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2586         with %eax.
2587
2588 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2589
2590         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2591         "h8500-tdep.c".
2592         (z8k-tdep.o): Delete custom build rule.
2593
2594 2003-10-06  Andrew Cagney  <cagney@redhat.com>
2595
2596         * Makefile.in: Update all dependencies.
2597
2598         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2599         No longer list PA as as obsolete candidate.  List m32r as
2600         broken instead of obsolete.
2601
2602         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2603         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2604         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2605         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2606         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2607         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2608         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2609         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2610         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2611         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2612         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2613         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2614         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2615         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2616         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2617         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2618         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2619         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2620         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2621         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2622         * config/z8k/z8k.mt: Ditto.
2623
2624         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2625         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2626         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2627         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2628         sparclite were removed.
2629         * configure.host, configure.tgt: Remove corresponding tuples.
2630
2631         * breakpoint.c, breakpoint.h: Remove obsolete code.
2632         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2633         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2634         * stabsread.h, xcoffread.c: Ditto.
2635
2636         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2637         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2638         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2639         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2640
2641 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
2642
2643         * f-valprint.c: Reformatting
2644
2645 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
2646
2647         * x86-64-tdep.c: Remove duplicate comment.
2648
2649         * x86-64-tdep.c (x86_64_store_return_value): Don't use
2650         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
2651         names for return values.  This fixes a bug since we looked at %rbx
2652         instead of %rdx.
2653
2654 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
2655
2656         * x86-64-tdep.c: Include "regset.h".
2657
2658         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2659         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2660         sizeof_fpregset.
2661         * i386-tdep.c: Include "regset.h".
2662         (i386_supply_gregset): New function.
2663         (i386_supply_fpregset): New function.
2664         (i386_gdbarch_init): Initialze register set-related members of
2665         TDEP.
2666         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2667         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2668
2669 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2670
2671         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2672         set extract_return_value, store_return_value and
2673         use_struct_convention to ppc64_sysv_abi_extract_return_value,
2674         ppc64_sysv_abi_store_return_value and
2675         ppc64_sysv_abi_use_struct_convention.
2676         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2677         (ppc64_sysv_abi_store_return_value): Declare.
2678         (ppc64_sysv_abi_use_struct_convention): Declare.
2679         * ppc-sysv-tdep.c (enum return_value_convention): Define.
2680         (ppc64_sysv_abi_extract_return_value): New function.
2681         (ppc64_sysv_abi_store_return_value): New function.
2682         (ppc64_sysv_abi_use_struct_convention): New function.
2683         (ppc64_sysv_abi_return_value): New function.
2684
2685 2003-10-03  Andrew Cagney  <cagney@redhat.com>
2686
2687         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2688         convert a descriptor to a function when it's in the ".opd"
2689         section.
2690
2691 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2692
2693         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2694         reg_size to keep GCC silent.
2695
2696 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
2697
2698         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2699         base for DW_EH_PE_textrel encodings.
2700         (read_encoded_value): Add a DW_EH_PE_textrel case.
2701         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2702         section.
2703
2704 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
2705
2706         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2707
2708 2003-10-02  Andrew Cagney  <cagney@redhat.com>
2709
2710         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2711         REGISTER_RAW_SIZE.
2712         * gdbarch.h, gdbarch.c: Re-generate.
2713         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2714         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2715         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2716         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2717         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2718         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2719         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2720         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2721         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2722         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2723         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2724         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2725         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2726         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2727         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2728         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
2729
2730 2003-10-02  Jim Blandy  <jimb@redhat.com>
2731
2732         * dwarf2read.c (struct die_info): Doc fix.
2733
2734 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2735
2736         * sh-tdep.c: Running thru gdb_indent.sh.
2737
2738 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
2739
2740         * sh-tdep.c (sh_justify_value_in_reg): New function.
2741         (sh_stack_allocsize): Ditto.
2742         (flt_argreg_array): New array used for floating point argument
2743         passing.
2744         (sh_init_flt_argreg): New function.
2745         (sh_next_flt_argreg): Ditto.
2746         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2747         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
2748         Fix argument passing strategy.
2749         (sh_push_dummy_call_nofpu): Ditto.
2750
2751 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2752
2753         * value.h (register_value_being_returned): Declare.  Replace
2754         "value_being_returned".
2755         * infcall.c (call_function_by_hand): Use
2756         register_value_being_returned.
2757         * infcmd.c (print_return_value): Call
2758         "register_value_being_returned", handle struct return locally.
2759         * values.c (register_value_being_returned): New function.  Replace
2760         "value_being_returned".
2761
2762 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
2763
2764         * linux-proc.c (linux_do_registers): New function.
2765         (linux_make_note_section): Use linux_do_registers in case of
2766         single threaded inferior programs.
2767
2768 2003-10-01  Andrew Cagney  <cagney@redhat.com>
2769
2770         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2771         use STRUCT_ADDR.  When not using "struct return convention", pass
2772         "0" to "value_being_returned".  Add FIXMEs.
2773         * infcmd.c (print_return_value): Pass an explicit 0/1 to
2774         value_being_returned.  Add comments.
2775         * values.c (value_being_returned): Add fixme.
2776         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2777         (hppa_value_returned_from_stack): Add FIXME.
2778
2779 2003-09-30  David Carlton  <carlton@kealia.com>
2780
2781         * dwarf2read.c (struct die_info): Add 'parent' field; replace
2782         'has_children' and 'next' by 'child' and 'sibling'.
2783         (read_comp_unit): Rework algorithm, breaking body into
2784         read_die_and_children and read_die_and_siblings.
2785         (read_die_and_children, read_die_and_siblings): New.
2786         (read_full_die): Add 'has_children' argument; set it instead of
2787         the die's 'has_children' field.  Minor formatting cleanup.
2788         (free_die_list): Use die->child and die->sibling instead of
2789         die->next.
2790         (dump_die_list): Ditto.
2791         (sibling_die): Use die->sibling.
2792         (psymtab_to_symtab_1): Use die's 'child' field in place of its
2793         'has_children' and 'next' fields.
2794         (process_die, read_file_scope, read_func_scope)
2795         (read_lexical_block_scope, read_structure_scope)
2796         (read_enumeration, read_array_type, read_common_block)
2797         (read_namespace, read_subroutine_type, dump_die): Ditto.
2798
2799 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2800
2801         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2802         to 224, not 220.
2803
2804 2003-09-30  Andrew Cagney  <cagney@redhat.com>
2805
2806         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2807         REGISTER_VIRTUAL_SIZE.
2808         * gdbarch.h, gdbarch.c: Regenerate.
2809         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2810         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2811         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2812
2813 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2814
2815         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2816         REGISTER_VIRTUAL_TYPE.
2817         * gdbarch.h, gdbarch.c: Regenerate.
2818         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2819         * sh64-tdep.c, sparc-tdep.c: Update.
2820
2821         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2822         * remote-vxmips.c (vx_read_register): Ditto.
2823         * remote-vx68.c (vx_read_register): Ditto.
2824         * gnu-nat.c (inf_validate_procs): Ditto.
2825
2826 2003-09-29  J. Brobecker  <brobecker@gnat.com>
2827
2828         * infcall.c (call_function_by_hand): Fix build failure
2829         introduced in the previous change to this file.
2830
2831 2003-09-29  Andrew Cagney  <cagney@redhat.com>
2832
2833         * NEWS: Mention Objective-C.
2834
2835 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
2836
2837         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2838         test if the register has been saved on the stack.
2839         (arm_scan_prologue_cache): When analysing the instruction
2840         "str lr, [sp, #-4]", save the address where lr has been stored.
2841
2842 2003-09-28  Andrew Cagney  <cagney@redhat.com>
2843
2844         * frame.c (frame_read_unsigned_register): Delete function.
2845         * frame.h (frame_read_unsigned_register): Delete declaration.
2846         * sparc-tdep.c (sparc_init_extra_frame_info): Use
2847         get_frame_register_unsigned.
2848         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2849         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2850         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2851
2852         * frame.h (frame_read_register): Delete declaration.
2853         * frame.c (frame_read_register): Delete function.
2854         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2855         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2856         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2857         * mips-tdep.c (mips_register_to_value): Ditto.
2858         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2859         * d10v-tdep.c (d10v_print_registers_info): Ditto.
2860
2861         * frame.c (frame_read_signed_register): Delete function.
2862         (frame_read_unsigned_register): Update comments.
2863         * frame.h (frame_read_signed_register): Delete declaration.
2864         * h8300-tdep.c (h8300_print_register): Use
2865         get_frame_register_signed.
2866         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2867
2868         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2869         Rename VALUE_RETURNED_FROM_STACK.
2870         * infcmd.c (print_return_value): Update.
2871         * infcall.c (call_function_by_hand): Update.
2872
2873 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
2874
2875         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2876         regcache argument and reverse the order of the other two
2877         arguments.  Remove local regcache variable.  Determine
2878         architecture from REGCACHE.  Update comments.
2879         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2880         reverse the order of the other two arguments.  Remove local
2881         regcache variable.  Determine architecture from REGCACHE.  Update
2882         comments.
2883         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2884         prototypes.  Update comments.
2885         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
2886         comment.
2887         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2888         Update.
2889         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2890         * i386-interix-nat.c (supply_fpregset): Update.
2891         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2892         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2893         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2894         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2895         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2896         Update.
2897         * i386obsd-tdep.c (fetch_core_registers): Update.
2898         * i386v4-nat.c (supply_fpregset): Update.
2899         * x86-64-linux-nat.c (supply_fpregset): Update.
2900         * x86-64-linux-tdep.c (fetch_core_registers): Update.
2901
2902 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
2903
2904         * i386-tdep.h: Put opaque declarations in alphabetical
2905         order.  Remove spurious whitespace.
2906         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2907         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2908         * i386-tdep.c (MM0_REGNUM): Remove define.
2909         (i386_mmx_regnum_p): Add gdbarch argument.
2910         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2911         Rewrite using new macro definitions for FPU/SSE registers.
2912         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2913         definitions from i387-tdep.h.
2914         (i386_register_name): Update.
2915         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2916         new macro definitions for FPU/SSE registers.
2917         (i386_extract_return_value): Determine whether floating-point
2918         registers are present by examining REGCACHE's architecture.
2919         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
2920         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
2921         FPU/SSE registers.
2922         (i386_register_type): Update.
2923         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2924         definitions for FPU registers.  Use REGCACHE's architecture to
2925         determine the appropriate register numbers.
2926         (i386_pseudo_register_read, i386_pseudo_register_write,
2927         i386_register_reggroup_p): Update.
2928         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2929         TDEP->mm0_regnum.
2930         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2931         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2932         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2933         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2934         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2935         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2936         *' to `void *'.
2937         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2938         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2939         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2940         definitions for FPU/SSE registers.
2941         (FXSAVE_MXCSR_ADDR): New define.
2942         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2943         TDEP->mm0_regnum.
2944         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2945         (I387_ST0_REGNUM): Define.
2946
2947         * regcache.h (get_regcache_arch): New prototype.
2948         * regcache.c (get_regcache_arch): New function.
2949
2950         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2951         whitespace.
2952
2953         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2954         Initialize using ARRAY_SIZE.
2955
2956 2003-09-27  Andrew Cagney  <cagney@redhat.com>
2957
2958         * arch-utils.c (deprecated_init_frame_pc_default): Rename
2959         "init_frame_pc_default".
2960         * arch-utils.h (deprecated_init_frame_pc_default): Update.
2961         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2962         * vax-tdep.c (vax_gdbarch_init): Update.
2963         * v850-tdep.c (v850_gdbarch_init): Update.
2964         * sh64-tdep.c (sh64_gdbarch_init): Update.
2965         * s390-tdep.c (s390_gdbarch_init): Update.
2966         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2967         * mcore-tdep.c (mcore_gdbarch_init): Update.
2968         * h8300-tdep.c (h8300_gdbarch_init): Update.
2969         * cris-tdep.c (cris_gdbarch_init): Update.
2970         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2971
2972 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
2973
2974         * regset.h: New file.
2975         * Makefile.in (regset_h): Add.
2976
2977 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2978
2979         * frame.h (deprecated_frame_saved_regs): Rename
2980         get_frame_saved_regs.
2981         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2982         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2983         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2984         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2985         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2986
2987 2003-09-25  Andrew Cagney  <cagney@redhat.com>
2988
2989         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2990         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2991         and Java.
2992         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2993         arm*-*-* do not use the new frame code.
2994
2995 2003-09-25  David Carlton  <carlton@kealia.com>
2996
2997         * c-exp.y: Remove 'register' declarations.
2998         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2999
3000 2003-09-25  David Carlton  <carlton@kealia.com>
3001
3002         * c-exp.y: Include cp-support.h.  Add qualified_type.
3003         (yylex): Delete nested type hack; add comments.
3004         * cp-namespace.c (cp_lookup_nested_type): New function.
3005         * cp-support.h: Declare cp_lookup_nested_type.
3006         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
3007         instead of value_struct_elt_for_reference.
3008         * valops.c: Include cp-support.h.
3009         (value_aggregate_elt): New function.
3010         (value_namespace_elt): Ditto.
3011         (value_struct_elt_for_reference): Make static.
3012         * value.h: Delete declaration of value_struct_elt_for_reference;
3013         add declaration for value_aggregate_elt.
3014         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
3015         (valops.o): Ditto.
3016
3017 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
3018
3019         * stack.c: Include "reggroups.h".
3020         (frame_info): Only display registers in all_reggroup.
3021         * Makefile.in (stack.o): Update dependencies.
3022
3023 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
3024
3025         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
3026         "add ip, sp #n" in the prologue.
3027         (arm_scan_prologue): Ditto.
3028
3029 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
3030
3031         * MAINTAINERS (write after approval): Add myself.
3032
3033 2003-09-25  Andreas Schwab  <schwab@suse.de>
3034
3035         * m68k-tdep.c: Include "dwarf2-frame.h".
3036         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
3037         * Makefile.in (m68k-tdep.o): Update dependencies.
3038
3039 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
3040
3041         * sh-tdep.c (struct frame_extra_info): Remove.
3042         (struct sh_frame_cache): New structure.
3043         (GET_SOURCE_REG): New macro extracting source register of an opcode.
3044         (GET_TARGET_REG): Ditto but target register.
3045         (GET_PUSHED_REG): Remove.
3046         (IS_MOV_ARG_TO_REG): New macro.
3047         (IS_MOV_ARG_TO_IND_R14): New macro.
3048         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
3049         (IS_MOVW_PCREL_TO_REG): New macro.
3050         (IS_MOVL_PCREL_TO_REG): New macro.
3051         (IS_SUB_REG_FROM_SP): New macro.
3052         (IS_ARG_MOV): Remove.
3053         (IS_MOV_TO_R14): Remove.
3054         (IS_RESTORE_FP): New macro.
3055         (IS_RTS): New macro.
3056         (IS_LDS): New macro.
3057         (IS_MOV_FP_SP): New macro.
3058         (IS_ADD_REG_TO_FP): New macro.
3059         (IS_ADD_IMM_FP): New macro.
3060         (sh_skip_prologue_hard_way): Remove.
3061         (sh_saved_pc_after_call): Remove.
3062         (sh_frame_chain): Remove.
3063         (sh_find_callers_reg): Remove.
3064         (sh_nofp_frame_init_saved_regs): Remove.
3065         (sh_fp_frame_init_saved_regs): Remove.
3066         (sh_init_extra_frame_info): Remove.
3067         (sh_analyze_prologue): New function.
3068         (sh_skip_prologue): Remove deprecated code.  Rely on new function
3069         sh_analyze_prologue when after_prologue fails.
3070         (sh_frame_saved_pc): Remove.
3071         (sh_alloc_frame_cache): New function.
3072         (sh_frame_cache): Ditto.
3073         (sh_frame_prev_register): Ditto.
3074         (sh_frame_this_id): Ditto.
3075         (sh_frame_unwind): New structure defining the heuristic frame
3076         sniffer interface.
3077         (sh_frame_sniffer): New function.
3078         (sh_unwind_sp): Ditto.
3079         (sh_unwind_pc): Ditto.
3080         (sh_unwind_dummy_id): Ditto.
3081         (sh_frame_base_address): Ditto.
3082         (sh_frame_base): New structure defining new frame base code.
3083         (sh_in_function_epilogue_p): New function.
3084         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
3085         code and to call all new code instead.  Initialize dwarf2 and
3086         heuristic frame sniffer.
3087
3088 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
3089
3090         * parser-defs.h (struct exp_descriptor): New definition, containing
3091         language-specific info for printing, prefixifying, dumping, and
3092         evaluating expressions.
3093         (exp_descriptor_standard): Declare new variable.
3094         (print_subexp): Make global and declare here (from expprint.c).
3095         (dump_subexp): Ditto.
3096         (dump_subexp_body_standard): Declare.
3097         (operator_length_standard): Declare.
3098         (op_name_standard): Declare.
3099         (print_subexp): Declare.
3100         (print_subexp_standard): Declare.
3101
3102         * language.h (struct language_defn): Add la_exp_desc field to hold
3103         pointer to table for language-specific operators.
3104         Remove evaluate_exp field, which is now in struct exp_descriptor.
3105
3106         * parse.c (operator_length): Move most code to new
3107         operator_length_standard function.  Use language-specific information.
3108         (operator_length_standard): New function taking most code from
3109         operator_length.
3110         (exp_descriptor_standard): New constant.
3111
3112         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
3113         and OP_EXTENDED_LAST.
3114
3115         * expprint.c (print_subexp): Use language-specific print_subexp.
3116         Make global; remove static declaration.
3117         Move most code to print_subexp_standard.
3118         (print_subexp_standard): New function, containing code formerly in
3119         print_subexp.
3120         (op_name): Add expression to argument signature.
3121         Use langauge-specific op_name.
3122         Move most code to op_name_standard.
3123         (op_name_standard): New function, containing code formerly in op_name.
3124         (dump_subexp):  Use new version of op_name function.
3125         Use language-specific dump_subexp_body, and move most existing code to
3126         dump_subexp_body_standard.
3127         (dump_raw_expression): Use new op_name interface.
3128         (dump_subexp_body): Move most code to dump_subexp_body_standard.
3129         (dump_subexp_body_standard): New function, containing code formerly
3130         in dump_subexp_body.
3131
3132         * language.c (unknown_language): Add default la_exp_desc field and
3133         remove evaluate_exp field.
3134         (auto_language): Ditto.
3135         (local_language): Ditto.
3136         * f-lang.c (f_language_defn): Ditto.
3137         * c-lang.c (c_language_defn): Ditto.
3138         (cplus_language_defn): Ditto.
3139         (asm_language_defn): Ditto.
3140         (minimal_language_defn): Ditto.
3141         * p-lang.c (pascal_language_defn): Ditto.
3142         * m2-lang.c (m2_language_defn): Ditto.
3143         * objc-lang.c (objc_language_defn): Ditto.
3144
3145         * jv-lang.c (exp_descriptor_java): New variable, containing
3146         Java-specific expression evaluator.
3147         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
3148         field.
3149         * scm-lang.c (exp_descriptor_scm): New variable, containing
3150         Scheme-specific expression evaluator.
3151         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
3152         field.
3153         * objc-lang.c (print_object_command): Take evaluate_exp from the
3154         la_exp_desc field.
3155
3156         * Makefile.in (eval.o): Add dependency on parser-defs.h.
3157
3158         * eval.c: Include parser-defs.h for the full declaration of
3159         la_exp_desc's type.
3160         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
3161
3162 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
3163
3164         * parser-defs.h (operator_length): Declare.
3165
3166         * parse.c (length_of_subexp): Use operator_length to get operator
3167         lengths and arities for operators.
3168         Move most code to new operator_length function.
3169         (operator_length): New function absorbing most code from
3170         length_of_subexp.
3171         (prefixify_subexp): Remove large case and use operator_length instead.
3172         (parse_exp_1): Use renamings:
3173         dump_prefix_expression => dump_raw_expression and
3174         dump_postfix_expression => dump_prefix_expression.
3175
3176         * expression.h (dump_prefix_expression): Rename to ...
3177         (dump_raw_expression): New name.
3178         (dump_postfix_expression): Rename to ...
3179         (dump_prefix_expression): New name.
3180
3181         * expprint.c (dump_subexp): Make global.  Add comment.
3182         Move most existing code to dump_subexp_body.
3183         (dump_subexp_body): New function.
3184         (dump_prefix_expression): Rename to dump_raw_expression.
3185         Remove attempt to print the expression via print_expression: it can't
3186         work before the expression is prefixified.
3187         (dump_raw_expression): Renamed from dump_prefix_expression.
3188         (dump_postfix_expression): Rename to dump_prefix_expression, since
3189         that's what it does.
3190         Remove 'note' parameter, since this routine must be used on
3191         prefixified expression.
3192         (dump_prefix_expression): Renamed from dump_postfix_expression.
3193
3194 2003-09-22  Jim Blandy  <jimb@redhat.com>
3195
3196         * dwarf2read.c (read_array_type): When building the type for an
3197         array of unspecified length, make sure to choose the upper bound
3198         so that the array's total length comes out to be zero --- that's
3199         how we represent such arrays.
3200
3201 2003-09-22  Michael Chastain  <mec@shout.net>
3202
3203         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
3204
3205 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
3206
3207         * top.c (quit_force): Fix indirect call to quit_target so
3208         a struct qt_args pointer is passed.
3209
3210 2003-09-22  Andrew Cagney  <cagney@redhat.com>
3211
3212         * arch-utils.h (init_frame_pc_noop): Delete declaration.
3213         * arch-utils.c (init_frame_pc_noop): Delete function.
3214         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3215         "init_frame_pc".
3216         * mips-tdep.c (mips_gdbarch_init): Ditto.
3217         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3218         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
3219         declaration.
3220         (DEPRECATED_INIT_FRAME_PC): Delete macro.
3221         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
3222         declaration.
3223         (DEPRECATED_INIT_FRAME_PC): Delete macro.
3224
3225 2003-09-22  Anthony Green  <green@redhat.com>
3226
3227         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
3228         declaration.
3229
3230 2003-09-20  Andrew Cagney  <cagney@redhat.com>
3231
3232         * breakpoint.c: Eliminate ARGSUSED.
3233         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
3234         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
3235         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
3236         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
3237         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
3238         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
3239         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
3240         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
3241         * wince.c, remote-vx.c: Ditto.
3242
3243         * cli/cli-script.c: Remove "register" attributes.
3244         * config/pa/tm-hppa.h: Ditto.
3245         * cli/cli-decode.c: Ditto.
3246         * cli/cli-cmds.c: Ditto.
3247
3248 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3249
3250         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
3251         DEPRECATED_NPC_REGNUM.
3252         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
3253
3254 2003-09-19  Christopher Faylor  <cgf@redhat.com>
3255
3256         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
3257
3258 2003-09-19  Jim Blandy  <jimb@redhat.com>
3259
3260         * macrotab.c (macro_include): Use the correct comparison to find
3261         the appropriate place for this inclusion in the list.
3262
3263 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3264
3265         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
3266         (DEPRECATED_HPUX_TEXT_END): Define.
3267         (deprecated_hpux_text_end): Declare.
3268         (struct target_ops): Declare opaque.
3269         * hppah-nat.c (text_end): Make static.
3270         (deprecated_hpux_text_end): New function.
3271         * exec.c (text_end): Delete global variable.
3272         (NEED_TEXT_START_END): Do not define.
3273         (exec_file_attach): Replace code computing "text_end" code with
3274         call to DEPRECATED_HPUX_TEXT_END.
3275
3276 2003-09-19  Andrew Cagney  <cagney@redhat.com>
3277
3278         * utils.c (align_up, align_down): New functions.
3279         * defs.h (align_up, align_down): Declare.
3280         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
3281         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
3282         and "align_down".
3283         (round_up, round_down): Delete functions.
3284         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3285         "align_down".
3286         (ROUND_DOWN, ROUND_UP): Delete macros.
3287         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
3288         * h8300-tdep.c: Replace "round_up" and "round_down" with
3289         "align_up" and "align_down".
3290         (round_up, round_down): Delete macros.
3291         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
3292         "align_down".
3293         (ROUND_UP, ROUND_DOWN): Delete macros.
3294
3295 2003-09-18  J. Brobecker  <brobecker@gnat.com>
3296
3297         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
3298         hard-coded constant. Use the proper machine name instead.
3299
3300 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3301
3302         * sparc-tdep.c (legacy_register_name): Delete function.
3303         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
3304         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
3305         * infcmd.c (gdb_register_name): Delete variable.
3306         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
3307         REGISTER_NAME and "tm.h".
3308         * gdbarch.h, gdbarch.c: Regenerate.
3309         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
3310         REGISTER_NAMES in comments.
3311         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
3312         * m68klinux-nat.c (regmap): Ditto.
3313
3314 2003-09-17  Jim Blandy  <jimb@redhat.com>
3315
3316         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
3317
3318 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3319
3320         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
3321         (ppcnbsd_init_abi): Set "use_struct_convention" to
3322         "ppcnbsd_use_struct_convention".
3323
3324 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
3325
3326         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3327         * gdbarch.h, gdbarch.c: Regenerate.
3328         (stabs_argument_has_addr): New architecture method.
3329         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3330         * arch-utils.c: Include "buildsym.h".
3331         (default_stabs_argument_has_addr): New function.
3332         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3333         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3334
3335 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3336
3337         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
3338         * gdbarch.h, gdbarch.c: Regenerate.
3339         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
3340         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
3341         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
3342         * sparcnbsd-tdep.c: Update.
3343
3344 2003-09-17  Andrew Cagney  <cagney@redhat.com>
3345
3346         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
3347         * gdbarch.h, gdbarch.c: Regenerate.
3348         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
3349         * d10v-tdep.c, frame.c: Update.
3350         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
3351         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
3352         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
3353         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
3354         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
3355         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
3356         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
3357         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
3358         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
3359         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
3360         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
3361         * config/pa/nm-hppah.h: Update.
3362
3363 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3364
3365         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
3366         "use_struct_convention" to "ppc_linux_use_struct_convention".
3367         (ppc_linux_use_struct_convention): New function.
3368         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
3369         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
3370         "rs6000_use_struct_convention".
3371         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
3372         declaration.
3373         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
3374         Delete function.
3375
3376 2003-09-16  Andrew Cagney  <cagney@redhat.com>
3377
3378         * buildsym.c: Remove more occurances of "register".
3379         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
3380         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
3381         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
3382         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
3383         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
3384         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
3385         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
3386         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
3387
3388 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
3389
3390         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
3391         numbers to enumeration values.
3392         * sh-tdep.c: Accomodate above change.
3393         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
3394         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
3395         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
3396         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
3397         (IS_FPUSH): Rename from IS_FMOV.
3398         (sh_extract_struct_value_address): Remove useless comment.
3399         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
3400         instead of own local values.
3401         (sh_dump_tdep): Remove.
3402         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
3403         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
3404
3405 2003-09-15  Andrew Cagney  <cagney@redhat.com>
3406
3407         * doublest.c (convert_floatformat_to_doublest): No longer need to
3408         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
3409
3410 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
3411
3412         * values.c (unpack_double): Call floatformat_is_valid.
3413
3414 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
3415
3416         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
3417         ps_strings into a long.
3418
3419         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
3420         _initialize_am64fbsd_nat.
3421
3422 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
3423
3424         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
3425         associated with DW_AT_ranges attribute is out of bounds.
3426
3427 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
3428
3429         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
3430
3431 2003-09-14  Michael Chastain  <mec@shout.net>
3432
3433         * config/m68k/nm-apollo68v.h: Delete.
3434         * config/m68k/xm-apollo68v.h: Delete.
3435
3436 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3437
3438         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
3439         * dcache.c: Update copyrights and descriptions.
3440         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
3441
3442 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3443
3444         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
3445         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
3446
3447 2003-09-14  Andrew Cagney  <cagney@redhat.com>
3448
3449         * alpha-nat.c: Remove some occurances of "register".
3450         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
3451         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
3452         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
3453         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
3454         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
3455         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
3456         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
3457         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
3458         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
3459         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
3460         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
3461         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
3462         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
3463         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
3464         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
3465         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
3466         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
3467         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
3468         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
3469         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
3470         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
3471         * values.c, vax-tdep.c, xcoffread.c: Ditto.
3472
3473 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3474
3475         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
3476         * ppc-tdep.h (struct regcache): Declare opaque.
3477         * objfiles.h (struct objfile_data): Declare opaque.
3478         * cp-support.h (struct objfile): Declare opaque.
3479         * linux-nat.h (target_waitstatus): Declare opaque.
3480
3481 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
3482
3483         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
3484         (stabs_argument_has_addr): New architecture method.
3485         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
3486         * arch-utils.c: Include "buildsym.h".
3487         (default_stabs_argument_has_addr): New function.
3488         * stabsread.c (define_symbol): Use stabs_argument_has_addr
3489         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
3490
3491         * cris-tdep.c (cris_gdbarch_init): Set
3492         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
3493         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3494         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3495         * mips-tdep.c (mips_gdbarch_init): Likewise.
3496         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3497         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3498
3499 2003-09-13  Andrew Cagney  <cagney@redhat.com>
3500
3501         * values.c (using_struct_return): Delete "function" and "funcaddr"
3502         parameters.
3503         * value.h (using_struct_return): Update declaration.
3504         * infcmd.c (finish_command_continuation): Update.
3505         (finish_command): Update.
3506         * infcall.c (call_function_by_hand): Update.
3507         * eval.c (evaluate_subexp_standard): Update.
3508
3509 2003-09-13  Christopher Faylor  <cgf@redhat.com>
3510
3511         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
3512         SSE registers since gdb will not operate correctly without this.
3513         Restore include file ordering munged in previous change.
3514         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3515
3516 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
3517
3518         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3519         REG_STRUCT_HAS_ADDR.
3520         * gdbarch.c, gdbarch.h: Updated.
3521         * infcall.c (call_function_by_hand): Update.
3522         * stabsread.c (define_symbol): Updated.
3523
3524         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3525
3526 2003-09-12  Christopher Faylor  <cgf@redhat.com>
3527
3528         * win32-nat.c: Reorganize so that defines used by target headers are
3529         actually defined by the system headers.
3530         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3531         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3532
3533 2003-09-12  Jim Blandy  <jimb@redhat.com>
3534
3535         * dbxread.c (read_dbx_symtab): Don't report an internal error if
3536         the file has no .data, .bss, or .rodata sections.  Instead wait
3537         until we see a variable alleged to live in one of those sections.
3538
3539         * dbxread.c (read_dbx_symtab): If we have no .data section and no
3540         .bss section, presume that any variables we find live in the
3541         .rodata section.
3542
3543         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3544         offsets for global and static variables.
3545
3546         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3547         symbol types are, by definition, in the .data section, so it is
3548         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3549         If there is no .data section, there should be no N_DATA or N_DATA
3550         | N_EXT symbols.
3551
3552 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
3553
3554         * amd64fbsd-tdep.c: Fix sigtramp recognition.
3555         (amd64fbsd_sigcontext_addr): Rewrite.
3556         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3557         with correct values.
3558         (amd64fbsd_sc_reg_offset): Initialize with correct values.
3559         (amd64fbsd_init_abi): Fix typo.
3560
3561 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3562
3563         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3564         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3565
3566 2003-09-12  Andrew Cagney  <cagney@redhat.com>
3567
3568         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3569         "entry_file_highpc".  Update comments.
3570         * defs.h (deprecated_inside_entry_file): Rename
3571         "inside_entry_file".
3572         * blockframe.c (deprecated_inside_entry_file): Rename
3573         "inside_entry_file".
3574         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
3575         * vax-tdep.c (vax_frame_chain): Update.
3576         * sh64-tdep.c (sh64_frame_chain): Update.
3577         * sh-tdep.c (sh_frame_chain): Update.
3578         * rs6000-tdep.c (rs6000_frame_chain): Update.
3579         * ns32k-tdep.c (ns32k_frame_chain): Update.
3580         * mips-tdep.c (mips_frame_chain): Update.
3581         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3582         * m32r-tdep.c (m32r_frame_this_id): Update.
3583         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3584         * frv-tdep.c (frv_frame_this_id): Update.
3585         * d10v-tdep.c (d10v_frame_this_id): Update.
3586         * cris-tdep.c (cris_frame_chain): Update.
3587         * blockframe.c (legacy_frame_chain_valid): Update.
3588         * avr-tdep.c (avr_frame_this_id): Update.
3589         * arm-tdep.c (arm_prologue_this_id): Update.
3590         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3591         * objfiles.c (objfile_relocate): Update.
3592         * mipsread.c (mipscoff_symfile_read): Update.
3593         (mipscoff_symfile_read): Update.
3594         * mdebugread.c (parse_partial_symbols): Update.
3595         * dwarfread.c (read_file_scope): Update.
3596         * dwarf2read.c (read_file_scope): Update.
3597         * dbxread.c (read_dbx_symtab): Update.
3598         (read_dbx_symtab): Update.
3599         * coffread.c (complete_symtab): Update.
3600
3601 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
3602
3603         * top.c (quit_target): New static helper function.
3604         (quit_force): Moved code to quit_target().  Call quit_target()
3605         via catch_errors() to catch errors during quit.
3606
3607 2003-09-11  David Carlton  <carlton@kealia.com>
3608
3609         * buildsym.c (finish_block): Use allocate_block to allocate the
3610         block.
3611         * mdebugread.c (new_block): Add FIXME.
3612
3613 2003-09-11  David Carlton  <carlton@kealia.com>
3614
3615         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3616         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3617         (recursive_dump_type): Ditto.
3618         * printcmd.c (print_formatted): Ditto.
3619         * typeprint.c (print_type_scalar): Ditto.
3620         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3621         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3622         * cp-support.h: Declare cp_check_possible_namespace_symbols,
3623         maint_cplus_cmd_list.
3624         * cp-support.c: Make maint_cplus_cmd_list extern.
3625         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3626         command.h.
3627         (lookup_symbol_file): Look in possible namespace blocks when
3628         appropriate.
3629         (initialize_namespace_symtab): New.
3630         (get_possible_namespace_block, free_namespace_block)
3631         (check_possible_namespace_symbols)
3632         (check_possible_namespace_symbols_loop)
3633         (check_one_possible_namespace_symbol)
3634         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3635         (_initialize_cp_namespace): Ditto.
3636         * block.h: Declare allocate_block.
3637         * block.c (allocate_block): New.
3638         * jv-lang.c (get_java_class_symtab): Allocate blocks via
3639         allocate_block.
3640         * symfile.h: Update declaration of add_psymbol_to_list.
3641         * symfile.c (add_psymbol_to_list): Return the partial symbol in
3642         question.
3643         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3644         scan_partial_symbols_call.
3645         (scan_partial_symbols): Add NAMESPACE argument; update calls to
3646         helper functions.
3647         (add_partial_symbol): If necessary, scan mangled names for names
3648         of namespaces.
3649         (add_partial_namespace): Add NAMESPACE argument; generate partial
3650         symbols associated  to namespaces.
3651         (add_partial_enumeration): Add NAMESPACE argument.
3652         (new_symbol): Allow namespace syms.
3653         (read_namespace): Generate namespace syms.
3654         * objfiles.h: Add opaque declaration of struct symtab.
3655         (struct objfile): Add cp_namespace_symtab member.
3656         * objfiles.c (allocate_objfile): Set
3657         objfile->cp_namespace_symtab.
3658         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3659         dictionary_h, command_h.
3660
3661 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3662
3663         * rs6000-tdep.c (rs6000_push_dummy_call): Use
3664         regcache_raw_write_signed to set SP_REGNUM, move the operation to
3665         near the function's end.
3666         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3667         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3668         regcache_raw_write_signed to set SP_REGNUM.
3669
3670 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
3671
3672         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3673         orig_addrs is set up properly.
3674
3675 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3676
3677         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3678         * gdbarch.h, gdbarch.c: Re-generate.
3679         * infcall.c (call_function_by_hand): Update.
3680         * hppa-tdep.c (hppa_push_arguments): Update.
3681         * ada-lang.c (place_on_stack): Update.
3682         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3683         * sparc-tdep.c (sparc_gdbarch_init): Update.
3684         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3685         * hppa-tdep.c (hppa_gdbarch_init): Update.
3686         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3687         stack_align.
3688
3689 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
3690
3691         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3692         register do need a frame.
3693
3694 2003-09-11  Andrew Cagney  <cagney@redhat.com>
3695
3696         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3697         buildable since GDB 5.0.
3698         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3699         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3700         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3701         * irix4-nat.c: Delete file.
3702         * config/mips/irix4.mh: Delete file.
3703         * config/mips/irix3.mh: Delete file.
3704         * config/mips/irix3.mt: Delete file.
3705         * config/mips/tm-irix3.h: Delete file.
3706         * config/mips/nm-irix3.h: Delete file.
3707         * config/mips/xm-irix3.h: Delete file.
3708         * config/mips/nm-irix4.h: Delete file.
3709         * config/mips/xm-irix4.h: Delete file.
3710         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3711
3712 2003-09-10  J. Brobecker  <brobecker@gnat.com>
3713
3714         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3715         * Makefile.in (hppa-tdep.o): Update dependencies.
3716
3717 2003-09-10  James E Wilson  <wilson@specifixinc.com>
3718
3719         * MAINTAINERS: Change my e-mail address.  Move to paper trail
3720         section.
3721
3722 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3723
3724         * MAINTAINERS (frv): New ISA entry.
3725
3726 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
3727
3728         * frv-tdep.c (dis-asm.h): Include.
3729         * Makefile.in (frv-tdep.o): Update dependencies.
3730
3731 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
3732
3733         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3734         Fix typo for high range of floating registers.
3735
3736 2003-09-09  David Carlton  <carlton@kealia.com>
3737
3738         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3739         highpc initialization here out of scan_partial_symbols.
3740         (scan_partial_symbols): Restructure into a recursive version,
3741         calling add_partial_namespace and add_partial_enumeration when
3742         appropriate.
3743         (add_partial_namespace): New.
3744         (add_partial_enumeration, locate_pdi_sibling): Ditto.
3745
3746 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3747
3748         * rs6000-tdep.c (ppc_push_return_address): Delete function.
3749         (rs6000_push_dummy_call): Set LR to BP_ADDR.
3750         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3751         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3752
3753         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3754         (rs6000_push_dummy_call): Set the "TOC" register.
3755
3756         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3757         methods "max_register_raw_size", "max_register_virtual_size" or
3758         "register_virtual_size".
3759
3760 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
3761
3762         * MAINTAINERS: Update my e-mail address.
3763
3764 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3765
3766         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3767         (rs6000_push_dummy_call): Store the struct return address.
3768         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3769
3770 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3771
3772         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3773         "ppc_sysv_abi_push_arguments".
3774         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3775         "ppc_sysv_abi_push_arguments".
3776         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3777         instead of "push_arguments".
3778         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3779
3780 2003-09-09  Andrew Cagney  <cagney@redhat.com>
3781
3782         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3783         instead of CALL_DUMMY_ADDRESS.
3784
3785 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
3786
3787         * p-lang.c: Eliminate "register".
3788         * c-lang.c: Ditto.
3789         * expprint.c: Ditto.
3790         * f-lang.c: Ditto.
3791         * jv-lang.c: Ditto.
3792         * language.c: Ditto.
3793         * m2-lang.c: Ditto.
3794         * parse.c: Ditto.
3795         * scm-lang.c: Ditto.
3796         * objc-lang.c: Ditto.
3797
3798 2003-09-09  Nick Clifton  <nickc@redhat.com>
3799
3800         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3801
3802 2003-09-04  Andrew Cagney  <cagney@redhat.com>
3803
3804         * avr-tdep.c: Include "dis-asm.h".
3805         * cris-tdep.c: Include "dis-asm.h".
3806         (cris_delayed_get_disassembler): Use "struct disassemble_info"
3807         instead of corresponding typedef.
3808         * h8300-tdep.c: Include "dis-asm.h".
3809         * ia64-tdep.c: Include "dis-asm.h".
3810         * i386-tdep.c: Include "dis-asm.h".
3811         (i386_print_insn): Use "struct disassemble_info" instead of
3812         corresponding typedef.
3813         * m68k-tdep.c: Include "dis-asm.h".
3814         * mcore-tdep.c: Include "dis-asm.h".
3815         * mips-tdep.c: Include "dis-asm.h".
3816         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3817         instead of corresponding typedef.
3818         * ns32k-tdep.c: Include "dis-asm.h".
3819         * s390-tdep.c: Include "dis-asm.h".
3820         * sparc-tdep.c: Include "dis-asm.h".
3821         * vax-tdep.c: Include "dis-asm.h".
3822         * v850-tdep.c: Include "dis-asm.h".
3823         * mn10300-tdep.c: Include "dis-asm.h".
3824         * rs6000-tdep.c: Include "dis-asm.h".
3825         * xstormy16-tdep.c: Include "dis-asm.h".
3826         (_initialize_xstormy16_tdep): Delete "extern" declaration of
3827         print_insn_xstormy16.
3828         * Makefile.in (v850-tdep.o): Update dependencies.
3829         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3830         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3831         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3832         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3833         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3834         (gdbarch_h): Remove $(dis_asm_h).
3835         * disasm.c: Include "dis-asm.h".
3836         (dis_asm_read_memory): Use "struct disassemble_info" instead of
3837         corresponding typedef.
3838         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3839         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3840         * gdbarch.sh: Do not include "dis-asm.h".
3841         (struct disassemble_info): Declare opaque.
3842         (TARGET_PRINT_INSN): Update declaration.
3843         * gdbarch.h, gdbarch.c: Re-generate.
3844
3845 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3846
3847         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3848         CALL_DUMMY_ADDRESS, change to a predicate.
3849         * gdbarch.h, gdbarch.c: Re-generate.
3850         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3851         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3852         * infcall.c (call_function_by_hand): Ditto.
3853         * sparc-tdep.c (sparc_push_return_address): Ditto.
3854         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3855         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3856         CALL_DUMMY_ADDRESS with entry_point_address.
3857         * v850-tdep.c (v850_push_return_address): Ditto.
3858         * s390-tdep.c (s390_push_return_address): Ditto.
3859         * rs6000-tdep.c (ppc_push_return_address): Ditto.
3860         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3861         * mcore-tdep.c (mcore_push_return_address): Ditto.
3862         * cris-tdep.c (cris_push_return_address): Ditto.
3863         * arm-tdep.c (arm_push_return_address): Ditto.
3864
3865 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3866
3867         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3868         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3869         and REG_UNMODIFIED to REG_SAME_VALUE.
3870         (execute_cfa_program): Update.
3871         (dwarf2_frame_cache): Update.  Initialize table to
3872         REG_UNSPECIFIED, complain if CFI fails to specify a register's
3873         location.
3874         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
3875
3876 2003-09-08  Andrew Cagney  <cagney@redhat.com>
3877
3878         * gnu-nat.c: Remove "inline" function attribute.
3879         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3880
3881 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3882
3883         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3884         target.
3885
3886 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
3887
3888         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3889         (frame_extra_info): Rename this struct to frv_unwind_cache.
3890         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3891         Add fields ``prev_sp'' and ``base''.
3892         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3893         (frv_saved_pc_after_call, frv_init_extra_frame_info)
3894         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3895         Delete.
3896         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3897         Revise all callers.  Fill in the unwind cache argument and make
3898         other adjustments to account for new frame mechanisms.
3899         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3900         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3901         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3902         (frv_frame_unwind, frv_frame_base): New structs.
3903         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
3904         additional arguments expected by this method and adjust function
3905         body accordingly.
3906         (frv_gdbarch_init): Remove calls to the following functions:
3907         set_gdbarch_deprecated_init_frame_pc(),
3908         set_gdbarch_deprecated_saved_pc_after_call(),
3909         set_gdbarch_deprecated_frame_chain(),
3910         set_gdbarch_deprecated_frame_saved_pc(),
3911         set_gdbarch_deprecated_frame_init_saved_regs(),
3912         set_gdbarch_deprecated_push_arguments(),
3913         set_gdbarch_deprecated_push_return_address(),
3914         set_gdbarch_deprecated_pop_frame(),
3915         set_gdbarch_deprecated_call_dummy_words(),
3916         set_gdbarch_deprecated_sizeof_call_dummy_words(),
3917         set_gdbarch_deprecated_init_extra_frame_info(),
3918         set_gdbarch_deprecated_dummy_write_sp(), and
3919         set_gdbarch_deprecated_pc_in_call_dummy().
3920         Add calls to the following functions:
3921         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3922         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3923         frame_base_set_default().
3924         * Makefile.in (frv-tdep.o): Update dependencies.
3925
3926 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
3927
3928         * dwarf2-frame.c (read_encoded_value): Add support for
3929         DW_EH_PE_aligned encoding.
3930
3931 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3932
3933         * infrun.c (normal_stop): Don't print a message if the inferior
3934         has exited.
3935
3936 2003-09-08  Jim Blandy  <jimb@redhat.com>
3937
3938         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3939         * dbxread.c: #include "gdb_assert.h".
3940         (read_dbx_symtab): If the objfile has no .data section, use the
3941         section index for the .bss section instead.
3942
3943 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
3944
3945         * frame.c (deprecated_safe_get_selected_frame): New function.
3946         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3947         * findvar.c (read_var_value): Call it.
3948
3949 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
3950
3951         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3952         (sh64-tdep.o): Add dependencies.
3953         * configure.tgt: Add FIXME to sh-*-linux*.
3954         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3955         (sh_gdbarch_init): Always set correct sh_show_regs function
3956         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
3957         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3958         * sh64-tdep.c: New file, containing all sh64 related code from
3959         sh-tdep.c.
3960         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3961         * config/sh/linux.mt (TDEPFILES): Ditto.
3962         * config/sh/nbsd.mt (TDEPFILES): Ditto.
3963         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3964         * config/sh/wince.mt (TDEPFILES): Ditto.
3965
3966 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3967
3968         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3969         (stop_wait_callback): Handle !lp->signalled also.
3970         (lin_lwp_has_pending, flush_callback): New functions.
3971         (lin_lwp_wait): Call flush_callback.
3972         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3973         (linux_proc_pending_signals): New function.
3974         * linux-nat.h (linux_proc_pending_signals): Add prototype.
3975
3976 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
3977
3978         From Nick Kelsey <nickk@ubicom.com>:
3979         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3980         when the stop PC is at the beginning of a function also.
3981
3982 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
3983
3984         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3985         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3986
3987 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
3988
3989         * sol-thread.c: Include "gdb_string.h".
3990
3991 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
3992
3993         * gcore.c: Reorder include files in alphabetical order.  Include
3994         "gdb_assert.h".  Various coding style fixes.
3995         (derive_stack_segment, derive_heap_segment): Replace check for
3996         non-null BOTTOM and TOP with gdb_assert.
3997         (derive_heap_segment): Replace check for successful creation of
3998         ZERO with gdb_assert.
3999         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
4000
4001 2003-09-04  Andrew Cagney  <cagney@redhat.com>
4002
4003         * thread-db.c (verbose_dlsym): New function.
4004         (thread_db_load): Use verbose_dlsym
4005         (thread_db_new_objfile): Print that libthread_db was loaded, and
4006         that thread debugging was enabled.
4007
4008 2003-09-04  Andrew Cagney  <cagney@redhat.com>
4009
4010         * configure.tgt: Add "mips64*-*-*" target.  Delete
4011         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
4012         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
4013         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
4014         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
4015         mips*-sony-*, and mips64*-*-elf* targets.
4016         * config/mips/embedl.mt: Delete file.
4017         * config/mips/embedl64.mt: Delete file.
4018         * config/mips/mips.mt: Delete file.
4019         * config/mips/mips64.mt: Delete file.
4020         * config/mips/tm-embed.h: Delete file.
4021         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
4022         * config/mips/embed64.mt: Delete out-of-date comment.
4023
4024 2003-09-04  Andrew Cagney  <cagney@redhat.com>
4025
4026         * hppa-tdep.c (hppa_gdbarch_init): Set
4027         "have_nonsteppable_watchpoint".
4028         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4029         * mips-tdep.c (mips_dump_tdep): Do not print
4030         HAVE_NONSTEPPABLE_WATCHPOINT.
4031         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
4032         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4033         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4034         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
4035
4036 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
4037
4038         * breakpoint.c (watchpoint_check): Remove accidentally checked in
4039         unused code.  Add comment.
4040
4041 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
4042
4043         * breakpoint.c (watchpoint_check): Check for pc being in an
4044         epilogue if watchpoint frame couldn't be found.
4045
4046 2003-09-04  Andrew Cagney  <cagney@redhat.com>
4047
4048         * Makefile.in: Re-generate all dependencies.
4049
4050 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4051
4052         * arch-utils.h (legacy_print_insn): Delete declaration.
4053         * arch-utils.c (legacy_print_insn): Delete function.
4054         * disasm.c (deprecated_tm_print_insn_info): Delete.
4055         (_initialize_disasm): Delete function, contained code initializing
4056         deprecated_tm_print_insn_info.
4057         * gdbarch.sh (deprecated_tm_print_insn): Delete.
4058         (deprecated_tm_print_insn_info): Delete.
4059         (TARGET_PRINT_INSN): Do not provide a default.
4060         * gdbarch.h, gdbarch.c: Re-generate.
4061
4062 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4063
4064         * disasm.c (fprintf_disasm): New function.
4065         (gdb_disassemble_info): Call "init_disassemble_info", instead of
4066         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
4067         reverts 2003-08-14 change.
4068         (_initialize_disasm): Call "init_disassemble_info", instead of
4069         INIT_DISASSEMBLE_INFO_NO_ARCH.
4070
4071 2003-09-03  Michael Snyder  <msnyder@redhat.com>
4072
4073         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
4074
4075 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4076
4077         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
4078         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
4079         * symfile.c (syms_from_objfile): Update.
4080         (reread_symbols): `Update
4081         * exec.c (exec_file_attach): Update.
4082         (exec_file_attach): Update.
4083         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
4084         2003-08-29 change.
4085         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
4086
4087 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
4088
4089         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
4090         trad-frame.h.
4091         (arm_get_cache): Delete macro.
4092         (struct arm_prologue_cache): Update comments.  Make saved_regs into
4093         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
4094         to prev_sp.
4095         (thumb_scan_prologue): Update for cache changes.  Don't call
4096         DEPRECATED_PC_IN_CALL_DUMMY.
4097         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
4098         argument and use it in desperation search for our prologue.  Do not
4099         search past the specified PC.
4100         (arm_make_prologue_cache): Simplify.
4101
4102         (arm_prologue_this_id, arm_prologue_prev_register)
4103         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
4104         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
4105         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
4106         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
4107         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
4108
4109         (arm_frame_chain_valid, arm_find_callers_reg)
4110         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
4111         (arm_pop_frame): Delete obsolete methods.
4112         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
4113
4114         (arm_gdbarch_init): Update for new frame methods.  Register prologue
4115         and sigtramp unwinders.  Set the default frame base method.
4116
4117         * Makefile.in (arm-tdep.o): Update dependencies.
4118         * varobj.c (find_frame_addr_in_frame_chain): Call
4119         get_frame_base_address.
4120         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4121
4122 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
4123
4124         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
4125         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
4126         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
4127         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
4128         Take NEXT_FRAME and CACHE arguments.  Call
4129         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
4130         Set unwound_pc in CACHE instead of modifying the frame argument.
4131         Don't bother checking the frame type when looking for sigtramp
4132         frames.
4133         (arm_make_prologue_cache, arm_frame_chain)
4134         (arm_init_extra_frame_info): New functions.
4135
4136 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
4137
4138         * arm-tdep.c (arm_get_cache): Define.
4139         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
4140         unwound_sp, unwound_pc, and saved_regs.
4141         (thumb_scan_prologue): Take a cache instead of the frame.
4142         (arm_scan_prologue): Likewise.
4143         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
4144         instead of a temporary frame.
4145         (arm_init_extra_frame_info): Allocate and use a cache.
4146         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
4147
4148 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4149
4150         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
4151         * config/mips/wince.mt (TM_CLIBS): Ditto.
4152         * config/sh/wince.mt (TM_CLIBS): Ditto.
4153         * config/pa/hppa64.mt (TM_CLIBS): Delete.
4154         * config/sparc/sp64.mt (CC): Delete.
4155
4156 2003-09-03  Andrew Cagney  <cagney@redhat.com>
4157
4158         * defs.h: Do not include "arch-utils.h".
4159         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
4160         GDB_MULTI_ARCH_PURE.
4161         * configure.in (GDB_MULTI_ARCH): Do not define.
4162         * configure, config.in: Regenerate.
4163         * configure.tgt: Do not set variable "gdb_multi_arch".
4164         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
4165         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
4166         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
4167         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
4168         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
4169         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
4170         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
4171         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
4172         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
4173         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
4174         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
4175         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
4176         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
4177         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
4178         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
4179         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
4180         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
4181         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
4182
4183 2003-08-30  Michael Chastain  <mec@shout.net>
4184
4185         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
4186         * config/m68k/nm-hp300hpux.h: Delete.
4187         * config/m68k/tm-hp300hpux.h: Delete.
4188         * config/m68k/xm-hp300hpux.h: Delete.
4189         * config/m68k/xm-hp300bsd.h: Delete.
4190         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
4191         tm-hp300hpux.h, xm-hp300hpux.h.
4192         * somsolib.c: Remove comment about hp300 shared libraries.
4193
4194 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
4195
4196         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
4197         Only define PTRACE_GET_THREAD_AREA is not already defined.
4198         Various style fixes in code and comments and some additional
4199         spelling fixes in comments.  Move after functions dealing with
4200         debug registers.
4201         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
4202         Fix coding-style.
4203
4204         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
4205         frame_unwind_register_unsigned instead of
4206         frame_unwind_unsigned_register.
4207
4208 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
4209
4210         * configure.in: Search for gethostbyname in libnsl.
4211         * configure: Regenerated.
4212
4213 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
4214
4215         * configure.in: Remove redundant AC_MSG_RESULT in check for
4216         uintptr_t in stdint.h.
4217         * configure: Regenerated.
4218
4219         * amd64-nat.h (struct regcache): Add opaque declaration.
4220
4221         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
4222         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
4223         Change "register array" to "register cache" in comments.
4224         (x86_64_linux_gregset64_reg_offset): New variable.
4225         (GETREGS_SUPPLIES): Remove macro.
4226         (supply_gregset): Call amd64_supply_native_gregset instead of
4227         x86_64_linux_supply_gregset.
4228         (fill_gregset): Rename `regno' to `regnum'.  Call
4229         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
4230         (store_regs): Rename `regno' to `regnum'.
4231         (store_fpregs): Rename `regno' to `regnum'.
4232         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
4233         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4234         Reorganize function a bit.
4235         (store_inferior_registers): Rename `regno' to `regnum'.  Use
4236         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
4237         Reorganize function a bit.
4238         (_initialize_x86_64_linux_nat): New function.
4239         * config/i386/x86-64linux.mh.
4240
4241 2003-08-29  Andrew Cagney  <cagney@redhat.com>
4242
4243         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
4244         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
4245         (target_remove_watchpoint): Delete macro.
4246         (target_insert_watchpoint): Delete macro.
4247         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
4248         (remote_mips_stopped_by_watchpoint): Delete declaration.
4249         (remote_mips_remove_watchpoint): Delete declaration.
4250         (remote_mips_set_watchpoint): Delete declaration.
4251         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
4252         * remote-mips.c (_initialize_remote_mips): Set
4253         "to_insert_watchpoint", "to_stopped_by_watchpoint",
4254         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
4255         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
4256         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
4257         (mips_stopped_by_watchpoint): Rename
4258         remote_mips_stopped_by_watchpoint.
4259         (mips_can_hardware_watchpoint): Rename
4260         remote_mips_can_use_hardware_watchpoint, update function
4261         signature.
4262
4263 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
4264
4265         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
4266         USER_DS.  We haven't given them a register number yet.
4267
4268         * amd64-nat.h: New file.
4269         * amd64-nat.c: New file.
4270         * amd64fbsd-nat.c: Include "amd64-nat.h".
4271         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
4272         (amd64fbsd32_r_reg_offset): New variable.
4273         (supply_gregset): Simply call amd64_supply_native_gregset.
4274         (fill_gregset): Rename `regno' to `regnum'.  Simply call
4275         amd64_collect_native_gregset.
4276         (fill_fpregset): Rename `regno' to `regnum'.
4277         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
4278         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4279         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4280         `fpregset_t'.  Call amd64_supply_native_gregset instead of
4281         supply_gregset.  Call x86_64_supply_fxsave instead of
4282         supply_fpregset.
4283         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
4284         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
4285         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
4286         `fpregset_t'.  Call amd64_collect_native_gregset instead of
4287         fill_gregset.  Call x86_64_collect_fxsave instead of
4288         fill_fpregset.
4289         (_initialize_am64fbsd_nat): Initialize
4290         amd64_native_gregset32_reg_offset and
4291         amd64_native_gregset64_reg_offset.
4292         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
4293
4294         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
4295         null pointer.  Fix typo in comment.
4296
4297         * regcache.c (supply_register): Reimplement to call
4298         regcache_raw_supply.
4299         (regcache_collect): Reimplement by calling regcache_raw_collect.
4300
4301 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
4302
4303         * regcache.c (register_buffer): Consitify first argument.
4304         (regcache_raw_supply, regcache_raw_collect): New
4305         functions.
4306
4307 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4308
4309         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
4310         by Nathan J. Williams.
4311
4312 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
4313
4314         * lin-lwp.c (wait_lwp): New function, copied from
4315         stop_wait_callback.  Clean up.
4316         (stop_wait_callback): Use wait_lwp.
4317
4318 2003-08-28  Andrew Cagney  <cagney@redhat.com>
4319
4320         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
4321         flavour and disassembler options.
4322         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
4323         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
4324         deprecated_tm_print_insn_info.
4325
4326 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4327
4328         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
4329         Use target_read_memory.
4330         (s390_get_frame_info): Update.  Do not reference
4331         deprecated_tm_print_insn_info.
4332         (s390_check_function_end, s390_is_sigreturn): Ditto.
4333
4334 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4335
4336         * Makefile.in (cris-tdep.o): Update dependencies.
4337         * cris-tdep.c: Include "gdb_assert.h".
4338         (cris_gdbarch_init): Set print_insn.
4339         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
4340         (cris_delayed_get_disassembler): Simplify, directly call the
4341         disassembler returned by cris_get_disassembler.
4342         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
4343         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
4344         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
4345         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
4346         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
4347         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
4348         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
4349         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
4350         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
4351         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
4352         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
4353         (gdb_print_insn_sparc): Delete function.
4354         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
4355         deprecated_tm_print_insn_info.
4356         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
4357         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
4358         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
4359         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
4360         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
4361         * s390-tdep.c (gdb_print_insn_s390): Delete function.
4362         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
4363         (s390_gdbarch_init): Set print_insn.
4364
4365 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4366
4367         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
4368         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
4369         * infcall.c (call_function_by_hand): Convert the entry point
4370         address into a code address.
4371
4372 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4373
4374         * dsrec.c: Include "gdb_string.h".
4375         * Makefile.in (dsrec.o): Update dependencies.
4376
4377 2003-08-27  Michael Chastain  <mec@shout.net>
4378
4379         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
4380
4381 2003-08-27  Andrew Cagney  <cagney@redhat.com>
4382
4383         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
4384         (alpha_osf1_init_abi): Do not set call_dummy_address.
4385
4386 2003-08-27  David Carlton  <carlton@kealia.com>
4387
4388         From Randolph Chung  <tausq@debian.org>:
4389         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
4390         compiles with -Wformat-nonliteral -Werror.
4391
4392 2003-08-26  Jim Blandy  <jimb@redhat.com>
4393
4394         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
4395         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
4396         bfd_lookup_symbol, since we only want symbols in code sections.
4397         (look_for_base): Pass zero as the SECT_FLAGS argument to
4398         bfd_lookup_symbol, since we're not concerned about which section
4399         the symbol is in.
4400
4401 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4402
4403         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
4404         we are frameless or the return address register is already known.
4405
4406 2003-08-26  Andrew Cagney  <cagney@redhat.com>
4407
4408         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
4409         in size.  Add comments.
4410
4411 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
4412
4413         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
4414         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
4415
4416 2003-08-26  Jason Merrill  <jason@redhat.com>
4417
4418         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
4419         case out of #ifdef MIPS block.
4420
4421 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
4422
4423         PR java/1322
4424         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
4425         available before calling SECT_OFF_TEXT.
4426         * PROBLEMS: Remove description of java/1322.
4427
4428 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
4429
4430         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
4431         bof, and nat0-nat127 as pseudo-registers.
4432         (ia64_frame_cache): New struct used to cache frame info.
4433         (ia64_register_reggroup_p): New routine used to override default
4434         register grouping so registers without names are still saved and
4435         restored.
4436         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
4437         pseudo values.
4438         (ia64_pseudo_register_read): New routine to read pseudo-registers.
4439         (ia64_pseudo_register_write): New routine to write pseudo-registers.
4440         (ia64_alloc_frame_cache): New routine to create a new
4441         ia64_frame_cache.
4442         (examine_prologue): Change prototype to add next_frame pointer.
4443         Assume frameless until otherwise proven.  Verify that the cfm for
4444         current frame matches the cfm that should occur for the prologues
4445         alloc insn and if equal, mark as not frameless.  At end of routine,
4446         if not frameless, calculate registers for the previous frame and store
4447         in the cache, if a cache is provided.
4448         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
4449         and pass 0 for next_frame.
4450         (ia64_store_return_value): Change to use convert_typed_floating()
4451         instead of calling ia64_convert_to_raw().
4452         (ia64_extract_return_value): Change to use convert_typed_floating()
4453         instead of calling ia64_convert_to_virtual().
4454         (ia64_frame_cache): New routine to support new frame model.
4455         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
4456         (ia64_frame_sniffer): Ditto.
4457         (ia64_sigtramp_frame_init_saved_regs): Ditto.
4458         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
4459         (ia64_sigtramp_frame_prev_register): Ditto.
4460         (ia64_sigtramp_frame_sniffer): Ditto.
4461         (ia64_frame_base_address): Ditto.
4462         (ia64_extract_struct_value_address): Change to issue error message.
4463         (ia64_frame_align): New routine to align sp.
4464         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
4465         (ia64_push_arguments): Removed.  Logic moved to
4466         ia64_push_dummy_call().
4467         (ia64_push_return_address): Ditto.
4468         (ia64_unwind_dummy_id): New function.
4469         (ia64_unwind_pc): Ditto.
4470         (ia64_convert_register_p): Ditto.
4471         (ia64_register_to_value): Ditto.
4472         (ia64_value_to_register): Ditto.
4473         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
4474         (ia64_register_byte, ia64_register_raw_size): Ditto.
4475         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
4476         (ia64_saved_pc_after_call): Ditto.
4477         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
4478         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
4479         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
4480         (ia64_register_convert_to_raw): Ditto.
4481         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
4482         (ia64_init_extra_frame_info): Ditto.
4483         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
4484         (ia64_gdbarch_init): Remove registering of deprecated functions that
4485         are no longer used.  Add registration of new gdbarch functions.
4486         Remove registering deprecated_write_sp.  Replace
4487         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
4488         Delete set_gdbarch_deprecated_register_convertible(),
4489         set_gdbarch_deprecated_register_convert_to_virtual(), and
4490         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
4491         set_gdbarch_deprecated_register_size(),
4492         set_gdbarch_deprecated_register_bytes(),
4493         set_gdbarch_pcregnum(),
4494         set_gdbarch_deprecated_register_byte(),
4495         set_gdbarch_deprecated_register_raw_size(),
4496         set_gdbarch_deprecated_max_register_raw_size(),
4497         set_gdbarch_deprecated_register_virtual_size(),
4498         and set_gdbarch_deprecated_max_register_virtual_size() calls.
4499         Replace set_gdbarch_deprecated_extract_return_value() with
4500         set_gdbarch_extract_return_value().  Remove calls to:
4501         set_gdbarch_deprecated_saved_pc_after_call();
4502         set_gdbarch_deprecated_frame_chain(),
4503         set_gdbarch_deprecated_frame_saved_pc(),
4504         set_gdbarch_deprecated_frame_init_saved_regs(),
4505         set_gdbarch_deprecated_get_saved_register(),
4506         set_gdbarch_deprecated_call_dummy_words(),
4507         set_gdbarch_deprecated_sizeof_call_dummy_words(),
4508         set_gdbarch_deprecated_init_extra_frame_info(),
4509         set_gdbarch_deprecated_frame_args_address(),
4510         set_gdbarch_deprecated_frame_locals_address(),
4511         and set_gdbarch_deprecated_dummy_write_sp().
4512         Add set_gdbarch_convert_register_p(),
4513         set_gdbarch_register_to_value(),
4514         set_gdbarch_value_to_register(),
4515         set_gdbarch_push_dummy_call(),
4516         set_gdbarch_frame_align(),
4517         set_gdbarch_unwind_dummy_id(),
4518         set_gdbarch_unwind_pc(),
4519         frame_unwind_append_sniffer(),
4520         frame_unwind_append_sniffer(),
4521         and frame_base_set_default().
4522
4523 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
4524
4525         * configure.tgt: Document need for special "mipsisa64" handling.
4526         (mipsisa64*-*-linux64): Handle as target linux64.
4527         (mipsisa64*-*-*): Handle as target embed64.
4528
4529 2003-08-18  Michael Chastain  <mec@shout.net>
4530
4531         * PROBLEMS: Document pr gdb/1322, the Java anonymous
4532         objfile bug.
4533
4534 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
4535
4536         * i387-tdep.h: Update copyright date.
4537         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4538
4539         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4540         CFLAGS games to reflect reality.
4541
4542 2003-08-24  Andrew Cagney  <cagney@redhat.com>
4543
4544         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4545         GDB_MULTI_ARCH is always non-zero.
4546         * osabi.c (_initialize_gdb_osabi): Ditto.
4547         (gdbarch_init_osabi): Ditto.
4548         * sparc-tdep.c: Ditto for #if code.
4549
4550 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4551
4552         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4553         Update comments.
4554         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
4555         comments.
4556         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4557         x86_64_supply_fxsave.
4558         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4559         x86_64_supply_fxsave.
4560         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4561         x86_64_supply_fxsave.
4562
4563 2003-08-23  Andreas Jaeger  <aj@suse.de>
4564
4565         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4566         i387_supply_fxsave.
4567
4568 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
4569
4570         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4571         i387_supply_register.
4572         (go32_fetch_registers): Adjust call to i387_supply_fsave.
4573         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4574         i387_supply_fsave.
4575         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4576         i387_supply_fxsave.
4577         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4578         i387_supply_fsave.
4579         * i386bsd-nat.c (supply_fpregset): Adjust call to
4580         i387_supply_fsave.
4581         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
4582         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
4583         supply_fpregset.
4584         (store_inferior_registers): Remove extraneous whitespace.  Call
4585         i387_fill_fsave instead of fill_fpregset.
4586         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4587         (supply_fpregset): Likewise.
4588         * i386v4-nat.c (supply_fpregset): Adjust call to
4589         i387_supply_fsave.
4590         * i386-interix-nat.c (supply_fpregset): Adjust call to
4591         i387_supply_fsave.
4592         * i386-linux-nat.c (supply_fpregset): Adjust call to
4593         i387_supply_fsave.
4594         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4595         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4596         i387supply_fsave and i387_supply_fxsave.
4597         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4598         Incorporate code from `i387_supply_register.
4599         (i387_supply_register): Remove.
4600         (i387_supply_fxsave): Add `regnum' argument.
4601         Update comments.
4602         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4603         prototype.
4604         (i387_supply_register): remove prototype.
4605         Update comments.
4606
4607 2003-08-22  Michael Chastain  <mec@shout.net>
4608
4609         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4610         Add lines for files in gdb/testsuite/gdb.cp/* that are
4611         still not 8.3 unique.
4612
4613 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
4614
4615         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4616         TYPE_VPTR_FIELDNO is valid.
4617
4618 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
4619
4620         * utils.c (set_width_command): Remove prototypes.
4621         (set_screen_size): New prototype.
4622         (init_page_info): Simplify by fetching the screen size from
4623         Readline.  Call set_screen_size.
4624         (set_screen_size): New function.
4625         (set_width): Add missing whitespace in comment.
4626         (set_width_command): Call set_screen_size.
4627         (set_height_command): New function.
4628         (initialize_utils): Fix formatting.  Make "set height" command
4629         call set_height_command.  Remove redundant code that turns off
4630         pagination if output isn't a terminal.  Remove redundant call to
4631         set_width_command.
4632
4633 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
4634
4635         * sparc64-tdep.h (sparc64_regnum): Fix comment.
4636         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4637         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4638         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4639         `case' keyword.
4640         (sparc64_register_info): Give the reister with number
4641         SPARC64_STATE_REGNUM a name.
4642         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4643         %asi and %ccr.
4644         (sparc64_push_dummy_call): Take BIAS into account when checking
4645         stcak alignment.
4646         (sparc_software_single_step): Remove assertions that check whether
4647         NPC and NNPC were zero.
4648         (sparc_supply_rwindow): Make public.  Merge functionality with
4649         sparc64_supply_rwindow.
4650         (sparc_fill_rwindow): Make public.  Merge functionality with
4651         sparc64_fill_rwindow.
4652         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4653         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4654         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4655         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4656         sparc_supply_rwindow instead of sparc64_supply_rwindow.
4657
4658         * reggroups.c: Add whitespace after declarations of local
4659         variables in functions.
4660
4661 2003-08-21  Michael Chastain  <mec@shout.net>
4662
4663         * gdbtypes.h: Change array bound type from an int to enum.
4664
4665 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4666
4667         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4668         * config/sparc/tm-sparc.h: Ditto.
4669         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4670         unconditionally.
4671         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4672
4673 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
4674
4675         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4676         (register_objfile_data, set_objfile_data, objfile_data): New
4677         prototypes.
4678         * objfiles.c (objfile_alloc_data, objfile_free_data): New
4679         prototypes.
4680         (allocate_objfile): Call objfile_alloc_data.
4681         (free_objfile): Call objfile_free_data.
4682         (struct objfile_data): New.
4683         (struct objfile_data_registration): New.
4684         (struct objfile_data_registry): New.
4685         (objfile_data_registry): New variable.
4686         (register_objfile_data): New function.
4687         (objfile_alloc_data, objfile_free_data): New functions.
4688         (set_objfile_data, objfile_data): New functions.
4689         * dwarf2-frame.c (dwarf2_frame_data): New variable.
4690         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4691         (_initialize_dwarf2_frame): New function and prototype.
4692
4693 2003-08-21  Andrew Cagney  <cagney@redhat.com>
4694
4695         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4696         a specific architecture.
4697         * arch-utils.h (set_architecture_from_arch_mach): Delete
4698         declaration.
4699         (target_architecture_hook): Delete declaration.
4700         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4701         (default_float_format): Assume GDB_MULTI_ARCH.
4702         (default_double_format): Assume GDB_MULTI_ARCH.
4703         (set_endian_from_file): Delete function.
4704         (arch_ok): Delete function.
4705         (set_arch): Delete function.
4706         (set_architecture_from_arch_mach): Delete function.
4707         (set_architecture_from_file): Delete function.
4708         (set_architecture): Assume GDB_MULTI_ARCH.
4709         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4710
4711 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
4712
4713         Rewrite FreeBSD/sparc64 native configuration.
4714         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4715         * sparc64fbsd-nat.c: New file.
4716         * sparc64fbsd-tdep.c: New file.
4717         * sparc64-tdep.c sparc64-tdep.h: New files.
4718         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4719         sparc64fbsd-tdep.o): New dependencies.
4720         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4721         and sparc64fbsd-tdep.c.
4722         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4723         * config/sparc/fbsd.mh: Remove copyright notice.
4724         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4725         sparcbsd-nat.o.
4726         * config/sparc/fbsd.mt: Remove copyright notice.
4727         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4728         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4729         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4730         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4731         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4732         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4733         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4734         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4735         "sparc/tm-sp64.h".
4736         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4737         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4738
4739 2003-08-21  Michael Chastain  <mec@shout.net>
4740
4741         * symtab.h: Add doco on the space critical structures and
4742         some measurements of space usage.
4743
4744 2003-08-21  Michael Snyder  <msnyder@redhat.com>
4745
4746         * tracepoint.c (trace_dump_command): Trace break address
4747         is subject to DECR_PC_AFTER_BREAK.
4748         (set_traceframe_context): Make "trace_line" an int.
4749         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
4750
4751 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4752
4753         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
4754         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4755         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
4756         argument passing.
4757         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4758         functions, replace sh_push_dummy_call.
4759         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4760
4761 2003-08-20  Michael Chastain  <mec@shout.net>
4762
4763         * gdbtypes.h (struct main_type): Rearrange to save space.
4764
4765 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4766
4767         * trad-frame.c: Comment typo fix.
4768
4769 2003-08-20  Michael Snyder  <msnyder@redhat.com>
4770             Kevin Buettner  <kevinb@redhat.com>
4771
4772         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4773         (frv_frame_init_saved_regs): Add declaration.
4774         (frame_extra_info): Add new field ``saved_regs''.
4775         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4776         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4777         Update frame related code.
4778         (frv_extract_struct_value_address): Adjust formatting.
4779         * Makefile.in (frv-tdep.o): Update dependencies.
4780         * config/frv/tm-frv.h (target_insert_watchpoint)
4781         (target_remove_watchpoint, target_insert_hw_breakpoint)
4782         (target_remove_hw_breakpoint): Delete these macros.
4783         (remote_insert_watchpoint, remote_remove_watchpoint)
4784         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4785         these declarations.
4786
4787 2003-08-20  Michael Chastain  <mec@shout.net>
4788
4789         * defs.h (ENUM_BITFIELD): New macro.
4790         * symtab.h (ENUM_BITFIELD): Use it.
4791         (BYTE_BITFIELD): Remove old macro, which was already disabled.
4792
4793 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
4794
4795         * MAINTAINERS (write after approval): Add myself.
4796
4797 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4798
4799         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4800         * gdbarch.h, gdbarch.c: Re-generate.
4801         * infcall.c (call_function_by_hand): Adjust the SP by
4802         frame_red_zone_size before allocating any stack space.
4803         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4804         * x86-64-tdep.c (x86_64_frame_align): New function.
4805         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4806
4807         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4808         Remove code adjusting SP so that it skips over the Red Zone.
4809
4810 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4811
4812         * NEWS (New native configurations): Mention FreeBSD/amd64.
4813
4814 2003-08-18  Andrew Cagney  <cagney@redhat.com>
4815
4816         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4817         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
4818         "m68k_frame_p".
4819         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4820
4821 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4822
4823         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4824
4825 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
4826
4827         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4828         Define.
4829         * i386-linux-nat.c: Include "linux-nat.h".
4830         (child_post_startup_inferior): New function.
4831
4832 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
4833
4834         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4835         at the start of a frameless function.  This probably fixes PR
4836         backtrace/1338.
4837
4838 2003-08-17  Michael Chastain  <mec@shout.net>
4839
4840         * symfile.c (find_sym_fns): Remove special case for apollo target.
4841
4842 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4843
4844         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4845         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4846         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4847         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4848         (linux_supports_tracevforkdone): New function.
4849         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4850         TRACEVFORKDONE.
4851         (child_follow_fork): Handle vfork.
4852         (linux_handle_extended_wait): Likewise.  Also handle exec.
4853         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4854         * NEWS: Mention fork tracing.
4855
4856 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4857
4858         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4859
4860 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
4861
4862         * Makefile.in (i386-linux-nat.o): Update dependencies.
4863         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4864         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4865         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4866         * i386-linux-nat.c: Include "linux-nat.h".
4867         (child_post_startup_inferior): New function.
4868         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4869         * infptrace.c (kill_inferior): Wrap in #ifdef.
4870         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4871         attaching to each LWP.
4872         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4873         (init_lin_lwp_ops): Fill in some more operations.
4874         * linux-nat.h (linux_enable_event_reporting)
4875         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4876         prototypes.
4877         * linux-nat.c (linux_enable_event_reporting): New function.
4878         (child_post_attach, linux_child_post_startup_inferior)
4879         (child_post_startup_inferior, child_follow_fork)
4880         (linux_handle_extended_wait, kill_inferior): New functions.
4881
4882 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4883
4884         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4885         * gdbarch.h, gdbarch.c: Re-generate.
4886
4887 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
4888
4889         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4890
4891 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4892
4893         * NEWS: Mention that "set prompt-escape-char" was deleted.
4894         * top.c (get_prompt_1): Delete function.
4895         (gdb_prompt_escape):
4896         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
4897         prompt-escape-char" command.
4898         (MAX_PROMPT_SIZE): Delete macro.
4899         (get_prompt): Simplify, do not call get_prompt_1.
4900
4901 2003-08-16  Andrew Cagney  <cagney@redhat.com>
4902
4903         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4904         -Werror.  -Wformat-nonliteral problems.
4905
4906 2003-08-15  J. Brobecker  <brobecker@gnat.com>
4907
4908         Further multiarching work mostly for hppa64-*-hpux11:
4909         * hppa-tdep.h: New file.
4910         * hppa-tdep.c: #include hppa-tdep.c.
4911         (hppa32_num_regs): Renamed from hppa_num_regs.
4912         (hppa64_num_regs): New constant.
4913         (hppa64_call_dummy_breakpoint_offset): New constant.
4914         (hppa32_call_dummy_length): New constant.
4915         (hppa64_call_dummy_length): New constant.
4916         (hppa32_stack_align): Make name 32bit explicit.
4917         (hppa32_register_virtual_type): Likewise.
4918         (hppa32_extract_return_value): Likewise.
4919         (hppa32_use_struct_convention): Likewise.
4920         (hppa32_store_return_value): Likewise.
4921         (hppa64_register_virtual_type): New function.
4922         (hppa64_extract_return_value): New function.
4923         (hppa64_use_struct_convention): New function.
4924         (hppa64_store_return_value): New function.
4925         (hppa_frame_locals_address): Remove declaration, function does
4926         not exist anymore.
4927         (hppa_register_byte): Add support for PA64 ABI.
4928         (hppa_gdbarch_init): Add support for PA64 ABI.
4929         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4930         Make name 32bit explicit.
4931         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4932         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4933         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4934         (hppa64_hpux_frame_base_before_sigtramp): New function.
4935         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4936         * config/pa/tm-hppa64.h: Remove macros that are no longer
4937         necessary now that the gdbarch vector is properly setup.
4938         Transform some macros into function calls. Some minor cleanup.
4939         * config/pa/tm-hppah.h: Update function calls in macros
4940         following the function renaming in hppa-hpux-tdep.c.
4941         * Makefile.in (hppa_tdep_h): New variable.
4942         (hppa-tdep.o): Add dependency over hppa_tdep_h.
4943
4944 2003-08-14  Michael Snyder  <msnyder@redhat.com>
4945
4946         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4947
4948 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4949
4950         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4951         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4952         routine.
4953
4954 2003-08-13  Michael Snyder  <msnyder@redhat.com>
4955
4956         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4957         (frv_saved_pc_after_call): Use deprecated ftype.
4958         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4959         (frv_remote_translate_xfer_address): Remove.
4960         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4961
4962 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4963
4964         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4965         initialization after the common gdbarch initialization, not before.
4966
4967 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4968
4969         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4970         (ADDR_BITS_REMOVE): Remove, redundant.
4971
4972 2003-08-13  J. Brobecker  <brobecker@gnat.com>
4973
4974         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4975         gdbarch method to clear the 2 low bits of text addresses.
4976
4977 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4978
4979         * Makefile.in (dsrec.o): Update dependencies.
4980         * dsrec.c: Include "gdb_assert.h".
4981         (make_srec): Use snprintf instead of sprintf, use a literal format
4982         string.
4983
4984 2003-08-12  Andrew Cagney  <cagney@redhat.com>
4985
4986         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4987         FRAME_OBSTACK_ZALLOC.
4988
4989 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
4990
4991         * i386-tdep.c (i386_gdbarch_init): Enable default support for
4992         SSE registers.
4993
4994 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
4995
4996         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4997         amd64fbsd_sc_reg_offset): Add extern declarations.
4998         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4999         declarations.
5000
5001 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
5002
5003         * MAINTAINERS (write after approval): Update my mail address.
5004
5005 2003-08-10  Andrew Cagney  <cagney@redhat.com>
5006
5007         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
5008
5009 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
5010
5011         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5012         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
5013         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
5014         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
5015         i386bsd_sc_reg_offset): Add extern declarations.
5016         * i386obsd-nat.c: Include "i386-tdep.h"
5017         (_initialize_i386obsd_nat): Remove extern declarations.
5018         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
5019         declarations.
5020         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
5021         declarations.
5022
5023         * i386-tdep.c (i386_register_to_value): Use get_frame_register
5024         instead of frame_read_register.
5025         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
5026         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
5027         SP_REGNUM.
5028         (i386_frame_prev_register): Use frame_unwind_register_unsigned
5029         instead of frame_unwind_unsigned_register.  Use
5030         I386_EFLAGS_REGISTER instead of PS_REGNUM.
5031         (i386_get_longjmp_target): Use regcache_read_unsigned_register
5032         instead of read_register.  Use builtin_type_void_data_ptr instead
5033         of builtin_type_void_func_ptr when extracting the address of the
5034         jmp_buf.
5035         (i386_extract_return_value, i386_store_return_value,
5036         i386_pseudo_register_read, i386_pseudo_register_write): Use
5037         register_size instead REGISTER_RAW_SIZE.
5038
5039 2003-08-10  Andrew Cagney  <cagney@redhat.com>
5040
5041         * infcall.c (call_function_by_hand): Use xstrprintf instead of
5042         sprintf.  Make "name" constant.
5043
5044 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
5045
5046         * i387-tdep.c (i387_register_to_value): Use get_frame_register
5047         instead of frame_read_register.
5048         (i387_print_float_info): Use get_frame_register and
5049         get_frame_register_unsigned instead of frame_register_read.
5050
5051         * i386fbsd-nat.c: Include "i386-tdep.h".
5052         (child_resume): Make `eflags' an ULONGEST.  Use
5053         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
5054         instead of register_read and register_write.
5055
5056         * i386bsd-nat.c (fetch_inferior_registers,
5057         store_inferior_registers): Don't use && at the end of a line.
5058         (_initialize_i386bsd_nat): Fix typo.
5059
5060         * frame.c (_initialize_frame): Add missing backslash.
5061
5062         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5063         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
5064         and supply_register instead of manipulating the register buffer
5065         directly.
5066
5067         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
5068         * config/i386/nm-i386sol2.h
5069         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
5070
5071         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
5072         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
5073         instructions that GCC likes to mingle into the prologue.  Fixes
5074         gdb/1253 and gdb/1255.
5075
5076 2003-08-09  Andrew Cagney  <cagney@redhat.com>
5077
5078         Fix GDB PR cli/926.
5079         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
5080         * command.h (add_setshow_uinteger_cmd): Declare.
5081         * frame.c (set_backtrace_cmd): New function.
5082         (show_backtrace_cmd): New function.
5083         * frame.c (_initialize_frame): Replace "set/show
5084         backtrace-below-main" with "set/show backtrace past-main".  Add
5085         command "set/show backtrace limit".
5086         (backtrace_past_main): Rename "backtrace_below_main".
5087         (backtrace_limit): New variable.
5088         (get_prev_frame): Update.  Check the backtrace_limit.
5089
5090 2003-08-09  Andrew Cagney  <cagney@redhat.com>
5091
5092         * defs.h (xstrprintf): Declare.
5093         * utils.c (xstrprintf): New function.
5094         * breakpoint.c (insert_breakpoints): Replace sprintf and
5095         non-literal format strings, with xstrprintf and cleanups.
5096         (delete_breakpoint,breakpoint_re_set): Ditto.
5097         (commands_command, insert_breakpoints): Ditto.
5098         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
5099         (break_at_finish_command_1): Ditto.
5100
5101 2003-08-09  Andrew Cagney  <cagney@redhat.com>
5102
5103         * MAINTAINERS (language support): List Adam Fedor as Objective C
5104         maintainer.
5105
5106 2003-08-08  J. Brobecker  <brobecker@gnat.com>
5107
5108         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
5109         are now multiarched.
5110
5111 2003-08-08  J. Brobecker  <brobecker@gnat.com>
5112
5113         * config/pa/tm-hppa64.h: Remove lots of macros that are no
5114         longer necessary now that hppa64 is partially multiarch'ed.
5115
5116 2003-08-08  Andrew Cagney  <cagney@redhat.com>
5117
5118         * interps.c (interp_set): Check for a NULL "old_interp".
5119
5120 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
5121
5122         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
5123         (install-only): Support DESTDIR.
5124         (uninstall): Likewise.
5125         (install-gdbtk): Likewise.
5126
5127 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
5128
5129         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
5130         contains something meaningful at all times.
5131
5132 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
5133
5134         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
5135
5136 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
5137
5138         * MAINTAINERS (write after approval): Added self.
5139
5140 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5141
5142         * inferior.h (AT_SYMBOL): Define.
5143         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
5144         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
5145         * mips-tdep.c (mips_call_dummy_address): Delete function.
5146         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
5147         set call_dummy_address.
5148
5149 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5150
5151         * language.c (op_error): Delete function.
5152         (binop_type_check): Delete function.
5153         * language.h (type_op_error, range_op_error): Delete macros.
5154         (op_error): Delete declaration.
5155
5156 2003-08-07  Andrew Cagney  <cagney@redhat.com>
5157
5158         * interps.h (INTERP_MI2, INTERP_MI3): Define.
5159
5160 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
5161
5162         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
5163         (x86_64_push_arguments): Skip the red zone.
5164
5165 2003-08-05  Andrew Cagney  <cagney@redhat.com>
5166
5167         * reggroups.c (reggroup_next): Check for the final entry.
5168
5169 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5170
5171         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
5172         * cli/cli-script.c (define_command): Call query directly, instead
5173         of passing it a buffer.
5174         * ocd.c (ocd_error): Pass error a constant format string.
5175         * remote-mips.c (mips_error): Use fputs_filtered.
5176
5177         * solib-svr4.c (_initialize_svr4_solib): Update
5178         register_gdbarch_data call.
5179         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
5180
5181         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
5182         (register_gdbarch_data): Delete "free" parameter.  Update
5183         comments.
5184         * gdbarch.h, gdbarch.c: Re-generate.
5185         * reggroups.c (_initialize_reggroup): Update.
5186         * gnu-v3-abi.c (init_gnuv3_ops): Update.
5187         * frame-base.c (_initialize_frame_base): Update.
5188         * frame-unwind.c (_initialize_frame_unwind): Update.
5189         * user-regs.c (_initialize_user_regs): Update.
5190         * remote.c (_initialize_remote): Update.
5191         * regcache.c (_initialize_regcache): Update.
5192
5193         * regcache.c (xfree_regcache_descr): Delete function.
5194         (_initialize_regcache): Update call to register_gdbarch_data.
5195         (init_regcache_descr, init_legacy_regcache_descr): Use
5196         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
5197
5198         * remote.c (free_remote_state): Delete function.
5199         (_initialize_remote): Update register_gdbarch_data.
5200         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
5201         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
5202
5203 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5204
5205         * reggroups.c (struct reggroup_el): Define.
5206         (struct reggroups): Delete field "nr_group".  Replace array
5207         "group" with a "first" to "last" linked list.
5208         (reggroups_init): Update.  Allocate using gdbarch's obstack.
5209         (reggroups_free): Delete function.
5210         (add_group): Update.  Add "el" parameter.
5211         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
5212         (default_groups): Update.
5213         (reggroup_next): Replace reggroups.
5214         (reggroups_dump): Update.
5215         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
5216         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
5217         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
5218
5219 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
5220
5221         * Makefile.in (tui-interp.o): Update dependencies.
5222
5223 2003-08-04  David Carlton  <carlton@kealia.com>
5224
5225         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
5226         to internal_error call.
5227         * source.c (forward_search_command): Add "%s" format argument.
5228         (reverse_search_command): Ditto.
5229         * top.c (quit_confirm): Ditto.
5230         * cli/cli-setshow.c (do_setshow_command): Ditto.
5231         * cp-valprint.c (cp_print_class_method): Replace
5232         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
5233         (cp_print_class_member): Ditto.
5234         * event-top.c (command_line_handler): Ditto.
5235         * linux-proc.c (linux_info_proc_cmd): Ditto.
5236         * p-typeprint.c (pascal_type_print_base): Ditto.
5237         * p-valprint.c (pascal_object_print_class_method): Ditto.
5238         (pascal_object_print_class_member): Ditto.
5239         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
5240         * remote.c (remote_cisco_section_offsets): Ditto.
5241         * top.c (command_line_input): Ditto.
5242         * utils.c (vwarning,error_stream,quit): Ditto.
5243         * valprint.c (print_floating,print_binary_chars)
5244         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
5245
5246 2003-08-04  Andrew Cagney  <cagney@redhat.com>
5247
5248         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
5249
5250 2003-08-02  Andrew Cagney  <cagney@redhat.com>
5251
5252         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
5253         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
5254         amd64fbsd-nat.c.
5255
5256 2003-08-02  Andrew Cagney  <cagney@redhat.com>
5257
5258         * Makefile.in: Update all dependencies and definitions.
5259
5260 2003-08-02  Adam Fedor  <fedor@gnu.org>
5261
5262         * linespec.c (is_objc_method_format): New function
5263         (decode_line_1, locate_first_half): Use it.
5264         Fixes PR objc/1298
5265
5266 2003-08-01  Andrew Cagney  <cagney@redhat.com>
5267
5268         * NEWS: Mention that m32r is multi-arch.
5269         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
5270         * configure.tgt: Recognize m32r-*-*.
5271         * config/m32r/tm-m32r.h: Delete file.
5272         * config/m32r/m32r.mt: New file.
5273         * m32r-rom.c (m32r_upload_command): Use hostent only when
5274         gethostname succeeds, in order to avoid a compilation
5275         warning.
5276         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
5277         compiler warning.
5278
5279 2003-08-01  Michael Snyder  <msnyder@redhat.com>
5280
5281         * sh-tdep.c (sh_frame_align): New gdbarch method.
5282         (sh_gdbarch_init): Set up frame_align method.
5283
5284 2003-07-31  Michael Snyder  <msnyder@redhat.com>
5285
5286         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
5287         which is already covered by the new frames infrastructure.
5288
5289 2003-07-31  Andrew Cagney  <cagney@redhat.com>
5290
5291         * user-regs.c (struct user_reg): Add "next" link.
5292         (struct user_regs): Replace "user" with "first" and "last" links.
5293         (append_user_reg): Add pre-allocated "reg" parameter.
5294         (builtin_user_regs): Provide initial value for "last".
5295         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
5296         (user_regs_init): Allocate memory from the gdbarch obstack.
5297         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
5298         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
5299         linked list.
5300         (usernum_to_user_reg): New function.
5301         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
5302         (value_of_user_reg): Use usernum_to_user_reg.
5303         (user_regs_free): Delete function.
5304         (_initialize_user_regs): Update register_gdbarch_data call.
5305
5306 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
5307
5308         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
5309
5310 2003-07-30  Michael Snyder  <msnyder@redhat.com>
5311
5312         * value.h (value_being_returned): Add a struct_addr argument.
5313         * infcall.c (call_function_by_hand): Pass struct_addr to
5314         value_being_returned.
5315         * infcmd.c (print_return_value): Pass zero as struct_addr.
5316         * values.c (value_being_returned): If struct_addr is passed,
5317         use it instead of trying to recover it from the inferior.
5318
5319 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
5320
5321         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
5322         the prologue analyzer won't need to attempt to extract the pc
5323         value from the woefully incomplete dummy frame.
5324         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
5325         possible.  Disable code which modifies the frame.
5326
5327 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5328
5329         * annotate.c (annotate_breakpoints_headers): Restrict annotation
5330         to level 2.
5331         (annotate_breakpoints_table, annotate_record): Ditto.
5332         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
5333         (annotate_field_name_end, annotate_field_value): Ditto.
5334         (annotate_field_end, annotate_frame_source_begin): Ditto.
5335         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
5336         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
5337         (annotate_frame_begin, annotate_frame_function_name): Ditto.
5338         (annotate_frame_address_end, annotate_frame_address): Ditto.
5339         (annotate_frame_args, annotate_frame_end): Ditto.
5340         (annotate_frame_where, annotate_arg_begin): Ditto.
5341         (annotate_arg_name_end, annotate_arg_value): Ditto.
5342         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
5343         (annotate_function_call, annotate_signal_name): Ditto.
5344         (annotate_signal_string, annotate_signal_name_end): Ditto.
5345         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
5346         (annotate_value_begin, annotate_value_history_value): Ditto.
5347         (annotate_value_history_end, annotate_value_end): Ditto.
5348         (annotate_display_begin, annotate_display_number_end): Ditto.
5349         (annotate_display_format, annotate_display_expression): Ditto.
5350         (annotate_display_expression_end, annotate_display_value): Ditto.
5351         (annotate_display_end, annotate_array_section_begin): Ditto.
5352         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
5353         (annotate_elt, annotate_array_section_end): Ditto.
5354
5355 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5356
5357         * regcache.c (struct regcache_descr): Update comments on
5358         nr_raw_registers.
5359         (init_legacy_regcache_descr): Don't set nr_raw_registers or
5360         sizeof_raw_register_valid_p.
5361         (init_regcache_descr): Set nr_raw_registers and
5362         sizeof_raw_register_valid_p before calling
5363         init_legacy_regcache_descr.
5364
5365 2003-07-28  Andrew Cagney  <cagney@redhat.com>
5366
5367         * mips-tdep.c (print_gp_register_row): Print the GPR's register
5368         MOD NUM_REGS.
5369
5370 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
5371
5372         * thread.c (info_threads_command): Use get_selected_frame ().
5373         Check that there is at least one non-sentinel frame.
5374
5375 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5376
5377         * m68hc11-tdep.c (struct frame_extra_info): Remove.
5378         (m68hc11_pop_frame): Remove.
5379         (m68hc11_frame_saved_pc): Remove.
5380         (m68hc11_frame_chain): Remove.
5381         (m68hc11_frame_init_saved_regs): Remove.
5382         (m68hc11_init_extra_frame_info): Remove.
5383         (m68hc11_store_struct_return): Remove.
5384         (m68hc11_saved_pc_after_call): Remove.
5385
5386 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5387
5388         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
5389         frame unwind information.
5390         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
5391         and adapted for frame unwinding.
5392         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
5393         (m68hc11_unwind_pc): New function.
5394         (m68hc11_frame_unwind_cache): New function to analyze frames.
5395         (m68hc11_frame_this_id): New function to create new frame struct.
5396         (m68hc11_frame_prev_register): New function to unwind a register from
5397         the frame.
5398         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
5399         (m68hc11_frame_p): New function for the above.
5400         (m68hc11_frame_base_address): New function to return fp of frame.
5401         (m68hc11_frame_args_address): Update for frame.
5402         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
5403         (m68hc11_unwind_sp): New function.
5404         (m68hc11_unwind_dummy_id): New function.
5405         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
5406         calls.
5407
5408 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5409
5410         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
5411         (m68hc11_guess_from_prologue): Advance the pc and frame size only
5412         when we are beyond the current pc.
5413
5414 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
5415
5416         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
5417         from m68hc11_push_arguments.
5418         (m68hc11_push_arguments): Remove.
5419         (m68hc11_push_return_address): Remove.
5420         (m68hc11_gdbarch_init): Install the above; remove above deprecated
5421         handlers; remove deprecated_extra_stack_alignment_needed.
5422
5423 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5424
5425         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
5426         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
5427         REAL_PC and not the pointer.
5428         * hppa-hpux-tdep.c: Include frame.h
5429
5430 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5431
5432         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
5433         GDB_MULTI_ACH_PARTIAL.
5434
5435 2003-07-27  Andrew Cagney  <cagney@redhat.com>
5436
5437         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
5438         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
5439         operator at start and not end of line.
5440         (decode_prologue): Ditto.
5441         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
5442         frame_unwind_register_unsigned instead of
5443         frame_unwind_unsigned_register.
5444         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
5445         read_register.
5446         (m32r_push_dummy_call): Use register_size instead of
5447         REGISTER_RAW_SIZE.
5448         (m32r_frame_sniffer): Replace m32r_frame_p.
5449         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
5450         * m32r-rom.c (report_transfer_performance): Delete extern
5451         declaration.
5452         (m32r_load, m32r_upload_command): Use print_transfer_performance
5453         instead of report_transfer_performance.
5454         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
5455         / add_show_from_set.
5456
5457 2003-07-26  Andrew Cagney  <cagney@redhat.com>
5458
5459         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
5460         store_return_value and extract_struct_value_address.
5461
5462 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
5463
5464         PR c++/1267
5465         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
5466         NULL, default to the section containing PC.
5467
5468 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
5469
5470         * NEWS: Mention "regs" deprecated for m68hc11 too.
5471
5472         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
5473         (m68hc11_print_register): New function to print out one register.
5474         (m68hc11_print_registers_info): New function to print registers.
5475         (show_regs): Deprecate and use the above.
5476         (m68hc11_gdbarch_init): Install the print_registers_info.
5477
5478 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
5479
5480         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
5481         that we have a SIGTRAP before returning non-zero.
5482
5483 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
5484             Elena Zannoni  <ezannoni@redhat.com>
5485
5486         * linespec.c (decode_line_2): Avoid crash if
5487         find_function_start_sal() returns empty record.
5488
5489 2003-07-23  Andreas Schwab  <schwab@suse.de>
5490
5491         * ia64-tdep.c (ia64_print_insn): New function.
5492         (ia64_gdbarch_init): Set print_insn to it.
5493         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
5494         deprecated_tm_print_insn_info.
5495
5496 2003-07-22  Michael Snyder  <msnyder@redhat.com>
5497
5498         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
5499         handle 8-bit returns (long long).
5500         (h8300h_extract_return_value): Ditto.
5501         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
5502
5503 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5504
5505         * gdbarch.c Include "gdb_obstack.h".
5506         (struct gdbarch): Add an "obstack".
5507         (alloc_gdbarch_data): Allocate the gdbarch data using
5508         GDBARCH_OBSTACK_CALLOC.
5509         (free_gdbarch_data): Delete function.
5510         (gdbarch_obstack_zalloc): New function.
5511         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
5512         Assert that the architecture is not initialized.
5513         (gdbarch_alloc): Allocate an obstack, allocate the architecture
5514         vector from the obstack.
5515         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5516         architecture obstack.
5517         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5518         (set_gdbarch_data): Assert that the data is not initialized.
5519         (struct gdbarch_data): Delete member "free".
5520         (register_gdbarch_data): Do not initialize "free".
5521         * gdbarch.h, gdbarch.c: Re-generate.
5522
5523 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5524
5525         * configure.in (build_warnings): Add -Wformat-nonliteral.
5526         * configure: Re-generate.
5527
5528 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5529
5530         * dwarf2loc.c (locexpr_describe_location): Fix typos.
5531
5532 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
5533
5534         * findvar.c (read_var_value): Remove case for thread local storage
5535         variables.  It is now entirely handled by the dwarf2 location
5536         expression code.
5537         * printcmd.c (address_info): Ditto.
5538         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5539         enumeration value.
5540         (struct symbol): Remove objfile field, which was used by
5541         LOC_THREAD_LOCAL_STATIC only.
5542         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5543         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5544         usage of objfile pointer.
5545         * dwarf2loc.c (locexpr_describe_location): Add case to handle
5546         thread local variables.
5547         Add include of objfiles.h.
5548         * dwarf2expr.c (execute_stack_op): Add comments about thread local
5549         storage variables.
5550         * Makefile.in (dwarf2loc.o): Update dependencies.
5551
5552 2003-07-22  Andrew Cagney  <cagney@redhat.com>
5553
5554         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5555         get_frame_base.
5556         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5557         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5558         (struct value): Add opaque declaration.
5559         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5560
5561 2003-07-21  Andrew Cagney  <cagney@redhat.com>
5562
5563         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5564         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5565
5566 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5567
5568         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
5569         regcache_cooked_read_unsigned instead of read_register.
5570         (m68hc11_saved_pc_after_call): Likewise.
5571         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5572         instead of write_register.
5573         (m68hc11_register_type): New function.
5574         (m68hc11_register_virtual_type): Remove.
5575         (m68hc11_store_return_value): Convert to use the regcache.
5576         (m68hc11_extract_struct_value_address): Likewise.
5577         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5578         m68hc11_register_type; undeprecate store_return_value and
5579         extract_struct_value_address.
5580
5581 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
5582
5583         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5584         and translate to use regcache.
5585         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5586
5587 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5588
5589         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5590         * gdbarch.h, gdbarch.c: Re-generate.
5591         * i386-tdep.c (i386_gdbarch_init): Do not set
5592         DWARF2_BUILD_FRAME_INFO.
5593         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5594         unconditionally.
5595         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5596         DWARF2_BUILD_FRAME_INFO.
5597
5598 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5599
5600         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5601         * disasm.c (gdb_disassemble_info): Initilize di.arch.
5602
5603 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5604
5605         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5606         frame_unwind_address_in_block, instead of frame_pc_unwind.
5607         (dwarf2_frame_cache): Ditto.
5608
5609 2003-07-18  Andrew Cagney  <cagney@redhat.com>
5610
5611         * user-regs.h (struct gdbarch): Declare opaque.
5612         * ui-out.h (struct ui_file): Declare opaque.
5613         * dwarf2-frame.h (struct frame_info): Declare opaque.
5614
5615 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
5616
5617         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
5618         #include "...".
5619         (procfs_meminfo): Change strerror to safe_strerror.
5620         (procfs_can_run): Remove K&R badness.
5621
5622 2003-07-17  Michael Snyder  <msnyder@redhat.com>
5623
5624         * remote-sim.c: Comment typo fix.
5625
5626 2003-07-17  Andrew Cagney  <cagney@redhat.com>
5627
5628         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
5629         configure.
5630         * sparc-tdep.c (sparc_intreg_size): Make non-static.
5631         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5632         GDB_MULTI_ARCH_PARTIAL.
5633
5634 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
5635
5636         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5637         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
5638         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5639
5640 2003-07-16  Theodore A. Roth  <troth@openavr.org>
5641
5642         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5643         found.
5644         (avr_frame_unwind_cache): Don't unwind FP for main.
5645         Update a comment.
5646         Save the computed prev_sp.
5647         (avr_saved_regs_unwinder): Remove function.
5648         (avr_frame_prev_register): Use PC unwind logic from
5649         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5650
5651 2003-07-16  Andrew Cagney  <cagney@redhat.com>
5652
5653         * frame-base.h (frame_base_p_ftype): Delete definition.
5654         (frame_base_append_predicate): Delete declaration.
5655         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5656         (frame_unwind_append_predicate): Delete declaration.
5657         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5658         (append_predicate): Delete parameter "p".
5659         (frame_unwind_append_predicate): Delete function.
5660         (frame_unwind_append_sniffer): Update call to append_predicate.
5661         (frame_unwind_free): Delete function.
5662         (_initialize_frame_unwind): Pass NULL as "free" to
5663         register_gdbarch_data.
5664         (frame_unwind_init): Append the dummy_frame_sniffer.
5665         (frame_unwind_find_by_frame): Simplify.
5666         * frame-base.c (struct frame_base_table): Delete field "p".
5667         (append_predicate): Delete parameter "p".
5668         (frame_base_append_predicate): Delete function.
5669         (frame_base_append_sniffer): Update call to append_predicate.
5670         (frame_base_free): Delete function.
5671         (frame_base_find_by_frame): Simplify.
5672         (_initialize_frame_base): Pass NULL as "free" to
5673         register_gdbarch_data.
5674         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5675         (x86_64_sigtramp_frame_sniffer): Replace
5676         "x86_64_sigtramp_frame_p".
5677         (x86_64_init_abi): Set the frame unwind sniffers.
5678         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5679         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5680         (m68k_gdbarch_init): Set the frame unwind sniffers.
5681         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5682         "i386_sigtramp_frame_p".
5683         (i386_frame_sniffer): Replace "i386_frame_p".
5684         (i386_gdbarch_init): Set the frame unwind sniffers.
5685         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5686         (avr_gdbarch_init): Set the frame unwind sniffers.
5687         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5688         "alpha_sigtramp_frame_p"
5689         (alpha_heuristic_frame_sniffer): Replace
5690         "alpha_heuristic_frame_p".
5691         (alpha_gdbarch_init): Set the frame unwind sniffers.
5692         (alpha_dwarf2_init_abi): Ditto.
5693         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5694         "alpha_debug_frame_p".
5695         (alpha_mdebug_frame_base_sniffer): Replace
5696         "alpha_mdebug_frame_base_p".
5697         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5698         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5699         (d10v_gdbarch_init): Set the frame unwind sniffer.
5700         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5701         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5702         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5703         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5704         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5705         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5706
5707 2003-07-16  Michael Snyder  <msnyder@redhat.com>
5708
5709         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5710         should go thru sh_dsp_register_sim_regno, else the dsp regs
5711         will not get the right values.
5712
5713 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5714
5715         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5716         deprecated_store_floating by call to store_typed_floating.
5717         (sh_sh4_register_convert_to_raw): Substitute call to
5718         deprecated_extract_floating by call to extract_typed_floating.
5719
5720 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5721
5722         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5723
5724 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
5725
5726         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5727         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5728         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
5729         as possible.
5730         (do_pseudo_register): Remove.
5731         (sh_push_dummy_code): New function.
5732         (sh64_store_struct_return): Rename from sh_store_struct_return.
5733         Only called for sh64 now.
5734         (sh_extract_struct_value_address): Regcache'ify.
5735         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
5736         and accomodate new tasks.
5737         (sh64_push_return_address): Rename from sh_push_return_address.
5738         Only called for sh64 now.
5739         (sh_default_extract_return_value): Rename from sh_extract_return_value.
5740         Regcache'ify.
5741         (sh3e_sh4_extract_return_value): Regcache'ify.
5742         (sh_default_store_return_value): Ditto.
5743         (sh3e_sh4_store_return_value): Ditto.
5744         (sh_default_register_byte): Remove.
5745         (sh_sh4_register_byte): Remove.
5746         (sh_default_register_raw_size): Remove.
5747         (sh_sh4_register_raw_size): Remove.
5748         (sh_register_virtual_size): Remove.
5749         (sh_sh3e_register_virtual_type): Remove.
5750         (sh_sh3e_register_type): New function.
5751         (sh_sh4_register_virtual_type): Remove.
5752         (sh_sh4_register_type): New function.
5753         (sh_default_register_virtual_type): Remove.
5754         (sh_default_register_type): New function.
5755         (do_fv_register_info): Add parameters to accomodate call from
5756         sh_print_registers_info.
5757         (do_dr_register_info): Ditto.
5758         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5759         Add parameters to accomodate call from sh_print_registers_info.
5760         (sh_do_fp_register): Ditto.
5761         (sh64_do_pseudo_register): Call do_dr_register_info,
5762         do_fv_register_info and sh_do_fp_register with default parameters.
5763         (sh_do_register): Add parameters to accomodate call from
5764         sh_print_registers_info.
5765         (sh_print_register): Ditto.
5766         (sh_print_registers_info): Rename from sh_do_registers_info.
5767         Add parameters to be used as gdbarch_print_registers_info
5768         implementation.  Accomodate removed do_pseudo_register function
5769         pointer.
5770         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5771         function pointer. Call sh_print_register with default parameters.
5772         (sh64_do_registers_info): Call sh_print_registers_info instead of
5773         sh_do_registers_info.
5774         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5775         detection of deprecated vs. non-deprecated functionality.
5776         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
5777         function pointer assignments by direct function calls.
5778
5779 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5780
5781         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5782         (frame_register_unwind, create_new_frame): Ditto.
5783         (legacy_get_prev_frame, get_frame_type): Ditto.
5784         (get_frame_base_address): Use frame_base_find_by_frame.
5785         (get_frame_locals_address): Use frame_base_find_by_frame.
5786         (get_frame_args_address): Use frame_base_find_by_frame.
5787         * frame-base.h (frame_base_sniffer_ftype): Declare.
5788         (frame_base_append_sniffer): Declare.
5789         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5790         * frame-base.c (append_predicate): Add a "sniffer" parameter.
5791         (frame_base_append_sniffer): New function.
5792         (frame_base_append_predicate): Add a NULL sniffer.
5793         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5794         (struct frame_base_table): Add "sniffer".
5795         (frame_base_free): Free the "sniffer" table.
5796         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5797         (frame_unwind_append_sniffer): Declare.
5798         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5799         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5800         (struct frame_unwind_table): Add "sniffer", delete "middle".
5801         (append_predicate): Add "sniffer" parameter, append the sniffer.
5802         (frame_unwind_init): Update append_predicate call.
5803         (frame_unwind_append_sniffer): New function.
5804         (frame_unwind_append_predicate): Update append_predicate call.
5805         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5806
5807 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5808
5809         * frame.c (get_prev_frame): Move disabled inside_entry_func to
5810         before code inhibiting repeated unwind attempts.  Add to
5811         commentary on that test's problems.
5812         * blockframe.c (inside_main_func): Look for "main" in the minimal
5813         symbol table.
5814         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5815         identical.
5816
5817 2003-07-15  Andrew Cagney  <cagney@redhat.com>
5818
5819         * complaints.c (struct explanation): Define.
5820         (struct complaints): Change type of "explanation" to "struct
5821         explanation".
5822         (symfile_explanations): Convert to a "struct explanation" table.
5823         (vcomplaint): Update.
5824
5825 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
5826
5827         * x86-64-linux-nat.c (regmap): Removed.
5828         (supply_gregset, fill_gregset): Call
5829         x86_64_linux_(fill,supply)_gregset functions.
5830         * x86-64-linux-tdep.c (USER_*): New defines.
5831         (user_to_gdb_regmap, x86_64_core_fns): New structure.
5832         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5833         New functions.
5834         (fetch_core_registers): Ditto.
5835         (_initialize_x86_64_linux_tdep): Call add_core_fns().
5836         * x86-64-linux-tdep.h: New file.
5837         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5838         and core-regset.o.
5839         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5840
5841 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
5842
5843         * x86-64-tdep.c (x86_64_store_return_value): Use
5844         regcache_cooked_write_part instead of regcache_cooked_write.
5845
5846         * configure.host: Add x86_64-*-freebsd*.
5847         * configure.tgt: Add x86_64-*-freebsd*.
5848         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5849         * amd64fbsd-nat.c: New file.
5850         * amd64fbsd-tdep.c: New file.
5851         * config/i386/nm-fbsd64.h: New file.
5852         * config/i386/fbsd64.mh: New file.
5853         * config/i386/fbsd64.mt: New file.
5854
5855 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
5856
5857         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5858         `sc_regs_offset' and `sc_fpregs_offset'.
5859         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5860         SIGFRAME_FPREGSAVE_OFF): Remove defines.
5861         (alpha_sigtramp_register_address): Rewrite to use new members of
5862         `struct gdbarch_tdep'.
5863         (alpha_gdbarch_init): Initialize new members of struct
5864         gdbarch_tdep'.
5865         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5866         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5867         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5868         (alphafbsd_pc_in_sigtramp): Implement.
5869         (alphafbsd_sigtramp_offset): New function.
5870         (alphafbsd_sigcontext_addr): New function.
5871         (alphafbsd_init_abi): Initialize signal trampoline related members
5872         of `struct gdbarch_tdep'.
5873         (_initialize_alphafbsd_tdep): Add prototype.
5874
5875 2003-07-11  Theodore A. Roth  <troth@openavr.org>
5876
5877         * Makefile.in (install-only): Quote sed expression when generating
5878         transformed_name.
5879
5880 2003-07-11  Richard Henderson  <rth@redhat.com>
5881
5882         * Makefile.in (dwarf2-frame.o): Add complaints_h.
5883         * dwarf2-frame.c: Include complaints.h.
5884         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5885         variable initialization; return NULL on error.
5886         (decode_frame_entry): New.
5887
5888 2003-07-11  Andrew Cagney  <cagney@redhat.com>
5889
5890         * frame.h (frame_address_in_block): Delete declaration.
5891         * blockframe.c (frame_address_in_block): Delete function.
5892         (get_frame_block): Use get_frame_address_in_block.
5893         (block_innermost_frame): Ditto.
5894         * stack.c (print_frame, backtrace_command_1): Ditto.
5895
5896         * frame.h (get_frame_address_in_block): Declare.
5897         (frame_unwind_address_in_block): Declare.
5898         * frame.c (frame_unwind_address_in_block): New function.
5899         (get_frame_address_in_block): New function.
5900
5901 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5902
5903         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
5904         pre-default.   Note: re-generate has no effect.
5905
5906 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5907
5908         * gdbarch.sh: When a variable, but not a function, compare against
5909         0.  Fix problem in previous patch.
5910         * gdbarch.c: Re-generate.
5911
5912 2003-07-10  Andrew Cagney  <cagney@redhat.com>
5913
5914         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
5915         functions against NULL, not 0.
5916         * gdbarch.c: Re-generate.
5917
5918 2003-07-10  Fred Fish  <fnf@ninemoons.com>
5919
5920         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5921         null string instead of a null pointer.
5922         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5923
5924 2003-07-09  Michael Snyder  <msnyder@redhat.com>
5925
5926         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5927
5928 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
5929
5930         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5931         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5932         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5933         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5934         * x86-64-tdep.c: ... from here.
5935
5936 2003-07-09  Andreas Schwab  <schwab@suse.de>
5937
5938         * m68k-tdep.h (enum struct_return): Define.
5939         (struct gdbarch_tdep): Add struct_return.
5940         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5941         bytes are padded to the right, not to the left.  Pass struct value
5942         address in register %a1, not on stack.
5943         (m68k_use_struct_convention): New function.
5944         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
5945         struct_return in tdep to pcc_struct_return.
5946         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5947         reg_struct_return.
5948
5949 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
5950
5951         * somread.c (som_symfile_offsets): Fix compilation error.
5952
5953 2003-07-09  Andrew Cagney  <cagney@redhat.com>
5954
5955         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5956         Add comments about the checks.
5957
5958 2003-07-08  Andrew Cagney  <cagney@redhat.com>
5959
5960         * Makefile.in: Make dependency section headers consistent.
5961         (config_h): Move to $BUILD headers section.
5962         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5963         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5964         (ada-exp.tab.c): Move to YACC/LEX section.
5965         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5966         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5967
5968 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
5969
5970         * nto-procfs.c: Cleaned up a bunch of ARI hits.
5971         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5972         of strerror with safe_strerror, use ISO C function definitions,
5973         and replace instances of sprintf with snprintf.
5974
5975 2003-07-07  Andrew Cagney  <cagney@redhat.com>
5976
5977         * frame.c (get_prev_frame): Enable check for identical frames.
5978         Update comments.  Update error messages.
5979
5980 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5981
5982         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5983
5984 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5985
5986         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5987         sort_symtab_syms, no longer necessary.
5988
5989 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5990
5991         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5992
5993 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
5994
5995         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5996         (mips_register_byte): Likewise.
5997
5998 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
5999
6000         * Makefile.in (sparc_tdep_h): New.
6001         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
6002         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
6003         * sparc-linux-nat.c: Include "sparc-tdep.h".
6004         * sparc-nat.c: Likewise.
6005         * sparc-tdep.c: Likewise.
6006         * sparc64nbsd-nat.c: Likewise.
6007         * sparcnbsd-nat.c: Likewise.
6008         * sparcnbsd-tdep.c: Likewise.
6009         * sparc-tdep.h: New file.
6010         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
6011         and sparc_npc_regnum.
6012
6013 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
6014
6015         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
6016         (mips_linux_cannot_store_register): List supported instead of
6017         unsupported registers.
6018
6019 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
6020
6021         * disasm.c (dump_insns): Separate instructions from addresses.
6022
6023 2003-07-07  Andreas Schwab  <schwab@suse.de>
6024
6025         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6026         dependencies.
6027         * m68k-tdep.c (NUM_FREGS): Delete.
6028         (SIG_PC_FP_OFFSET): Delete.
6029         (TARGET_M68K): Delete.
6030         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
6031         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
6032         P_MOVEL_SP, P_MOVEML_SP): Define.
6033         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
6034         P_TRAP): Delete.
6035         (m68k_register_raw_size): Delete.
6036         (m68k_register_virtual_size): Delete.
6037         (m68k_register_type): Renamed from m68k_register_virtual_type and
6038         add gdbarch argument.
6039         (m68k_store_struct_return): Delete.
6040         (m68k_deprecated_extract_return_value): Delete.
6041         (m68k_deprecated_extract_struct_value_address): Delete.
6042         (m68k_frame_chain): Delete.
6043         (m68k_frame_saved_pc): Delete.
6044         (m68k_fix_call_dummy): Delete.
6045         (m68k_push_dummy_frame): Delete.
6046         (m68k_pop_frame): Delete.
6047         (m68k_extract_return_value): New function.
6048         (m68k_store_return_value): Rewrite using regcache.
6049         (m68k_extract_struct_value_address): Rewrite using regcache.
6050         (m68k_push_dummy_call): New function.
6051         (struct m68k_frame_cache): Define.
6052         (m68k_alloc_frame_cache): New function.
6053         (m68k_analyze_frame_setup): New function.
6054         (m68k_analyze_register_saves): New function.
6055         (m68k_analyze_prologue): New function.
6056         (m68k_skip_prologue): Rewrite using above functions.
6057         (m68k_unwind_pc): New function.
6058         (m68k_frame_cache): New function.
6059         (m68k_frame_this_id): New function.
6060         (m68k_frame_prev_register): New function.
6061         (m68k_frame_unwind): New variable.
6062         (m68k_frame_p): New function.
6063         (m68k_sigtramp_frame_cache): New function.
6064         (m68k_sigtramp_frame_this_id): New function.
6065         (m68k_sigtramp_frame_prev_register): New function.
6066         (m68k_sigtramp_frame_unwind): New variable.
6067         (m68k_sigtramp_frame_p): New function.
6068         (m68k_frame_base_address): New function.
6069         (m68k_frame_base): New function.
6070         (m68k_unwind_dummy_id): New function.
6071         (fill_gregset): Use regcache_collect.
6072         (fill_fpregset): Likewise.
6073         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
6074         defined.
6075         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
6076         deprecated_init_frame_pc, deprecated_store_struct_return,
6077         deprecated_extract_return_value, deprecated_store_return_value,
6078         deprecated_frame_chain, deprecated_frame_saved_pc,
6079         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
6080         deprecated_register_virtual_size,
6081         deprecated_max_register_raw_size,
6082         deprecated_max_register_virtual_size,
6083         deprecated_register_virtual_type, deprecated_register_size,
6084         deprecated_register_byte, deprecated_register_bytes,
6085         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
6086         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
6087         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
6088         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
6089         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
6090         deprecated_push_dummy_frame, deprecated_pop_frame,
6091         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
6092         only if SYSCALL_TRAP is defined.  Set extract_return_value,
6093         store_return_value, extract_struct_value_address, register_type,
6094         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
6095         predicates.
6096         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
6097         M68K_MAX_REGISTER_SIZE): Define.
6098         (struct m68k_sigtramp_info): Define.
6099         (struct gdbarch_tdep): Add get_sigtramp_info.
6100         * m68klinux-nat.c (fetch_register): Use register_size instead of
6101         REGISTER_RAW_SIZE.  Don't put assignment in if.
6102         (store_register): Likewise.
6103         (fetch_inferior_registers): Likewise.
6104         (store_inferior_registers): Likewise.
6105         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
6106         (m68k_linux_frame_saved_pc): Delete.
6107         (m68k_linux_sigcontext_reg_offset,
6108         m68k_linux_ucontext_reg_offset): Define.
6109         (m68k_linux_get_sigtramp_info): New function.
6110         (m68k_linux_extract_return_value): Rewrite using regcache.
6111         (m68k_linux_store_return_value): Likewise.
6112         (m68k_linux_extract_struct_value_address): Likewise.
6113         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
6114         Don't set deprecated_frame_saved_pc,
6115         deprecated_extract_return_value, deprecated_store_return_value,
6116         deprecated_extract_struct_value_address.  Set
6117         extract_return_value, store_return_value,
6118         extract_struct_value_address.
6119
6120 2003-07-07  Andrew Cagney  <cagney@redhat.com>
6121
6122         * expprint.c: Include "user-regs.h" instead of "frame.h".
6123         (print_subexp): Use user_reg_map_regnum_to_name, instead of
6124         frame_map_regnum_to_name.
6125         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
6126         (frame_map_name_to_regnum): Simplify, call
6127         user_reg_map_name_to_regnum.
6128         (frame_map_regnum_to_name): Simplify, call
6129         user_reg_map_regnum_to_name.
6130         (frame_register_unwind): Update.
6131         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
6132         (_initialize_frame_reg): Call user_reg_add_builtin.
6133         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
6134         (value_of_register): Use value_of_user_reg.
6135         * eval.c (evaluate_subexp_standard): Update.
6136         * parse.c (write_dollar_variable): Update.
6137         * d10v-tdep.c (d10v_print_registers_info): Update.
6138         * infcmd.c (registers_info): Update.
6139         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
6140         (builtin_regs_h): Delete macro.
6141         (user_regs_h): Define.
6142         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
6143         (builtin-regs.o): Delete target.
6144         (user-regs.o): Specify dependencies.
6145         (expprint.o): Update dependencies.
6146         (findvar.o): Update dependencies.
6147         (frame.o): Update dependencies.
6148         (std-regs.o): Update dependencies.
6149
6150 2003-07-06  Christopher Faylor  <cgf@redhat.com>
6151
6152         * win32-nat.c (solib_symbols_add): Use one variable for all section
6153         address stuff.  Pass variable rather than address of variable to
6154         safe_symbol_file_add.
6155
6156 2003-07-06  Andreas Schwab  <schwab@suse.de>
6157
6158         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
6159
6160 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
6161
6162         * rs6000-nat.c (vmap_symtab): Fix compilation error.
6163
6164 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
6165
6166         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
6167
6168 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
6169
6170         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
6171         * config/i386/nto.mh: New file.
6172         * config/i386/nm-nto.h: New file.
6173         * configure.host: Add i[3456]86-*-nto*.
6174
6175 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
6176
6177         * remote-vx.c (vx_add_symbols): Fix compilation error.
6178
6179 2003-07-03  Andrew Cagney  <cagney@redhat.com>
6180
6181         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
6182         * gdbarch.h, gdbarch.c: Re-generate.
6183         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
6184         (legacy_register_name): Declare.
6185         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
6186         (REGISTER_NAME): Define.
6187         * sparc-tdep.c (legacy_register_name): New function.
6188         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
6189         (REGISTER_NAME): Define.
6190         (hppa64_register_name): Declare.
6191         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
6192         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
6193         (hppa64_register_name): New function.
6194         (hppa_register_name): New function.
6195         * arch-utils.c (legacy_register_name): Delete.
6196         * arch-utils.h (legacy_register_name): Delete.
6197
6198 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
6199
6200         * cli/cli-interp.c (cli_interpreter_resume): Update the
6201         cli_uiout's stream to gdb_stdout.
6202
6203 2003-07-03  Andrew Cagney  <cagney@redhat.com>
6204
6205         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
6206         predicate.
6207         * gdbarch.h, gdbarch.c: Re-generate.
6208         * regcache.c (init_regcache_descr): Use legacy code when either
6209         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
6210
6211 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
6212
6213         * NEWS: Move "set logging" entry into GDB 6.0 section.
6214
6215 2003-07-02  Jim Blandy  <jimb@redhat.com>
6216
6217         * s390-tdep.c (struct frame_extra_info): new member:
6218         'stack_bought_valid'.
6219         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
6220         initialize fextra_info->stack_bought.
6221         (s390_frameless_function_invocation): Don't trust the value of
6222         fextra_info_ptr->stack_bought unless
6223         fextra_info->stack_bought_valid is set.
6224
6225         New S390 prologue analyzer.
6226         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
6227         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
6228         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
6229         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
6230         compute_x_addr, s390_on_stack, s390_store,
6231         s390_get_signal_frame_info): New functions.
6232         (S390_NUM_SPILL_SLOTS): New macro.
6233         (s390_get_frame_info): Rewritten.
6234         (is_arg_reg): Deleted.
6235
6236         Break out the decoding of S/390 instructions into separate
6237         functions, to make it more legible, and easier to check
6238         against the spec.
6239         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
6240         is_rx, is_rxe): New functions.
6241         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
6242         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
6243         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
6244         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
6245         enums for opcode values.  (Is this an improvement?)
6246
6247 2003-07-02  Andrew Cagney  <cagney@redhat.com>
6248
6249         * i386-tdep.c: Revert change committed as part of trad-frame code
6250         below.
6251
6252 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
6253
6254         * breakpoint.c (insert_catchpoint): Make static.
6255
6256 2003-07-02  Andreas Schwab  <schwab@suse.de>
6257
6258         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
6259         former ia64_push_arguments and ia64_push_return_address, and use
6260         regcache functions instead of read/write_register.
6261         (ia64_gdbarch_init): Set push_dummy_call instead of
6262         deprecated_push_arguments and deprecated_push_return_address.
6263
6264 2003-07-01  Andreas Jaeger  <aj@suse.de>
6265
6266         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
6267         before the call.
6268         Set %rax only to number of SSE registers used.
6269
6270 2003-07-01  Andrew Cagney  <cagney@redhat.com>
6271
6272         * trad-frame.h: Update comments, a -1 .addr is reserved.
6273         (trad_frame_value_p, trad_frame_addr_p): Declare.
6274         (trad_frame_reg_p): Declare.
6275         (trad_frame_set_value): Rename trad_frame_register_value.
6276         (trad_frame_set_unknown): Declare.
6277         * trad-frame.c (trad_frame_realreg_p): New function.
6278         (trad_frame_addr_p, trad_frame_value_p): New function.
6279         (trad_frame_set_unknown): New function.
6280         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
6281         (trad_frame_prev_register): Use trad_frame_realreg_p,
6282         trad_frame_addr_p and trad_frame_value_p.
6283         (trad_frame_set_value): Rename trad_frame_register_value.
6284         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
6285         and trad_frame_set_value.
6286
6287 2003-06-30  Jim Blandy  <jimb@redhat.com>
6288
6289         Patch from IBM (authors unspecified, probably Ulrich Weigand and
6290         Gerhard Tonn) for argument passing on the S/390 and S/390x:
6291         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
6292         for 16 registers, and then 32 more bytes.
6293         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
6294         New macros.
6295         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
6296         Move up in the file, since it's now used by is_simple_arg.
6297         (is_simple_arg): Don't assume registers are four bytes long.
6298         Exclude all double arguments.  Extended floats are not simple
6299         args.
6300         (is_power_of_two): New function.
6301         (pass_by_copy_ref): Call is_power_of_two, and check that the
6302         length fits in a register, rather than listing all the acceptable
6303         sizes.  Extended floats are not passed by reference.
6304         (s390_push_arguments): Don't assume registers are four bytes long.
6305         Reserve an argument register to point to the buffer for structures
6306         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
6307         S390_STACK_FRAME_OVERHEAD.
6308
6309 2003-06-30  Andreas Schwab  <schwab@suse.de>
6310
6311         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
6312         format error message.
6313
6314 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
6315
6316         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
6317
6318 2003-06-30  David Carlton  <carlton@kealia.com>
6319
6320         Band-aid for PR c++/1245.
6321         * Makefile.in (cp-support.o): Depend on complaints_h.
6322         * cp-support.c: Include complaints.h.  Add declaration for
6323         find_last_component.
6324         (cp_find_first_component): Separate code into
6325         cp_find_first_component_aux.
6326         (cp_find_first_component_aux): Call demangled_name_complaint.
6327         (demangled_name_complaint): New.
6328
6329 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6330
6331         * remote.c (remote_write_bytes): Explicitly compute and then use
6332         the payload size.  Update comments to reflect.  Fixes problem of
6333         GDB not sending small packets as found by Fred Fish.
6334
6335 2003-06-30  Andrew Cagney  <cagney@redhat.com>
6336
6337         * remote.c (remote_async_wait): Fix -Wformat problem.
6338
6339 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6340
6341         * remote.c (remote_wait): Call error, and not warning, when the
6342         packet is corrupt.
6343         (remote_async_wait): Ditto.
6344
6345 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6346
6347         * sparc-tdep.c (sparc_y_regnum): Make external again.
6348
6349 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
6350
6351         * cli/cli-logging.c (pop_output_files): Add void to function
6352         definition.
6353
6354 2003-06-29  Andrew Cagney  <cagney@redhat.com>
6355
6356         * frame.c (frame_register_unwind): Use unsigned char when dumping
6357         the buffer contents.
6358
6359 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
6360
6361         * cli/cli-logging.c: New file.
6362         * cli-out.c (struct ui_out_data): Add original_stream.
6363         (cli_redirect): New function.
6364         (cli_ui_out_impl): Add cli_redirect.
6365         (cli_out_new): Initialize original_stream.
6366         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
6367         (uo_redirect, ui_out_redirect): New.
6368         * ui-out.h (struct ui_out_impl): Add redirect member.
6369         (redirect_ftype): New.
6370         (ui_out_redirect): Add prototype.
6371         * Makefile.in: Add rules for cli-logging.c.
6372         * NEWS: Mention "set logging".
6373
6374 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6375
6376         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
6377
6378 2003-06-27  Andrew Cagney  <cagney@redhat.com>
6379
6380         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
6381         (m68hc11_gdbarch_init): Do not set call_dummy_address.
6382         * avr-tdep.c (avr_call_dummy_address): Delete function.
6383         (avr_gdbarch_init): Do not set call_dummy_address.
6384
6385 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6386
6387         * symfile.c (syms_from_objfile): Move variables to inner block.
6388         Move the checks for the non-mainline case a bit earlier to avoid
6389         doing some useless computations.
6390
6391 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
6392
6393         * dwarfread.c (decode_modified_type): Gag new compiler warning.
6394
6395 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
6396
6397         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
6398         sections.
6399
6400 2003-06-26  Michael Chastain  <mec@shout.net>
6401
6402         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
6403         gdb/testsuite/gdb.c++/pr-1210.exp.
6404
6405 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6406
6407         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
6408         altivec_expression.h and altivec_registers.h.
6409
6410 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6411
6412         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
6413         info->mach when MIPS16.  Patch suggested by Fred Fish.
6414
6415 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6416
6417         * utils.c (internal_vproblem): Print the problem to a reason
6418         buffer and then pass to query.  Make the msg variable more local.
6419
6420 2003-06-26  Andrew Cagney  <cagney@redhat.com>
6421
6422         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
6423         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
6424         * gdbarch.h, gdbarch.c: Re-generate.
6425         * frame-base.c (default_frame_args_address): Update.  Use
6426         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
6427         not available.
6428         (default_frame_locals_address): Ditto for
6429         DEPRECATED_FRAME_LOCALS_ADDRESS.
6430         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
6431         (vax_frame_num_args): Update.
6432         (vax_gdbarch_init): Update.
6433         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6434         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6435         * mcore-tdep.c (mcore_gdbarch_init): Update.
6436         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6437         * ia64-tdep.c (ia64_gdbarch_init): Update.
6438         * symtab.h (address_class): Update comments.
6439         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
6440         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6441         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6442         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6443         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6444         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
6445         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
6446         * alpha-mdebug-tdep.c: Update.
6447         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
6448
6449 2003-06-26  Andreas Jaeger  <aj@suse.de>
6450
6451         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
6452         of SSE registers so that varargs functions work.  Rework handling
6453         of passing arguments on the stack.
6454         (x86_64_store_return_value): Return double and float values in SSE
6455         register.
6456
6457 2003-06-24  Michael Chastain  <mec@shout.net>
6458
6459         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
6460         the "constructor breakpoints ignored" bug.
6461
6462 2003-06-25  David Carlton  <carlton@kealia.com>
6463
6464         * MAINTAINERS: Update e-mail address.
6465
6466 2003-06-24  Jim Blandy  <jimb@redhat.com>
6467
6468         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
6469
6470         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
6471         function.
6472         (ppc_linux_init_abi): Register it as the
6473         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
6474
6475         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
6476         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
6477         method.
6478
6479         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
6480         (ppc64_standard_linkage_target): Use it.
6481
6482 2003-06-23  Andrew Cagney  <cagney@redhat.com>
6483
6484         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
6485         for 0 "int0" and 4 "int32" sized registers.
6486         * gdbtypes.c (builtin_type_int0): Define.
6487         (build_gdbtypes): Initialize builtin_type_int0.
6488         * gdbtypes.h (builtin_type_int0): Declare.
6489
6490 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
6491
6492         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
6493         as characters are unsigned.
6494
6495 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6496
6497         PR gdb/1179
6498         * dwarfread.c (struct_type): Skip static fields without crashing.
6499
6500 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6501
6502         GDB 6.0 branch created.
6503         * README: Update.
6504         * PROBLEMS: Update.  Empty.
6505         * NEWS: Update.
6506
6507 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6508
6509         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
6510         Suggested by Nick Hibma <n_hibma@webweaving.org>.
6511
6512 2003-06-22  Andrew Cagney  <cagney@redhat.com>
6513
6514         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6515         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
6516         Velikov.
6517
6518 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
6519
6520         * cli/cli-cmds.c (shell_escape): Silence warnings from old
6521         compilers.
6522
6523 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6524
6525         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6526         argument of val_print.
6527         * cp-valprint.c (cp_print_value): Don't add the offset parameter
6528         to the address argument of baseclass_offset or target_read_memory.
6529         Do add it to the argument of cp_print_value_fields.
6530
6531 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6532
6533         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6534         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6535         instead of 0..NUM_REGS.
6536         (mips_register_reggroup_p): New function.
6537         (mips_pseudo_register_write): New function.
6538         (mips_pseudo_register_read): New function.
6539         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6540         based on the register's type.
6541         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
6542         cooked.
6543         (mips_get_saved_register): Simplify.  Assert that REGNO is a
6544         pseudo / cooked.
6545         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
6546         (mips_register_type): Replace mips_register_virtual_type.  Map
6547         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
6548         when available.
6549         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
6550         that the register is cooked / virtual.
6551         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6552         Only get the extra info when needed.
6553         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6554         (mips32_heuristic_proc_desc): Fetch the cooked register.
6555         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6556         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6557         (mips_print_register): Use gdbarch_register_type, instead of
6558         REGISTER_VIRTUAL_TYPE.
6559         (print_gp_register_row): Use gdbarch_register_type, instead of
6560         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
6561         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6562         Print the pseudo / cooked registers.
6563         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6564         Print the pseudo / cooked registers.
6565         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
6566         REG_NUM is pseudo / cooked.
6567         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6568         (mips_n32n64_xfer_return_value): Ditto.
6569         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6570         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6571         (mips_register_sim_regno): New function.
6572         (mips_gdbarch_init): Set deprecated_register_byte,
6573         register_group_p, pseudo_register_write, pseudo_register_read,
6574         register_sim_regno, and num_pseudo_regs.  Set register_type,
6575         instead of register_virtual_type.
6576         * Makefile.in (mips-tdep.o): Update dependencies.
6577         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6578         REGISTER_VIRTUAL_TYPE.
6579         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6580         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6581         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6582         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6583         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6584
6585 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
6586
6587         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6588         * cli/cli-cmds.c: Include "gdb_vfork.h".
6589         (shell_escape): Use vfork.
6590
6591 2003-06-21  Andrew Cagney  <cagney@redhat.com>
6592
6593         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6594         32 bit floating-point register saves.
6595
6596         * frame.h (deprecated_unwind_get_saved_register): Delete.
6597         * frame.c (deprecated_unwind_get_saved_register): Delete function.
6598         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6599         and deprecated_get_next_frame_hack instead of
6600         deprecated_unwind_get_saved_register.
6601
6602         * mips-tdep.c (mips_dump_tdep): Do not print
6603         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6604
6605         * frame.c (get_frame_register): New function.
6606         (frame_unwind_register_signed): New function.
6607         (get_frame_register_signed): New function.
6608         (frame_unwind_register_unsigned): New function.
6609         (get_frame_register_unsigned): New function.
6610         * frame.h: Add comments on naming schema.
6611         (get_frame_register, frame_unwind_register_signed): Declare.
6612         (get_frame_register_signed, get_frame_register_signed): Declare.
6613         (frame_unwind_register_unsigned): Declare.
6614         (get_frame_register_unsigned): Declare.
6615
6616 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6617
6618         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6619
6620 2003-06-20  Theodore A. Roth  <troth@openavr.org>
6621
6622         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6623         (avr_read_sp): Ditto.
6624
6625 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
6626
6627         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6628         * config/arm/nm-linux.h: Likewise.
6629         * config/arm/tm-linux.h: Likewise.
6630         * config/ia64/nm-linux.h: Likewise.
6631         * config/ia64/tm-ia64.h: Likewise.
6632         * config/s390/tm-linux.h: Likewise.
6633         * config/s390/tm-s390.h: Likewise.
6634         * s390-nat.c: Likewise.
6635         * s390-tdep.c: Likewise.
6636
6637         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6638         * config/ia64/linux.mt: Likewise.
6639         * config/m68k/linux.mh: Likewise.
6640         * config/mips/linux.mt: Likewise.
6641         * config/powerpc/linux.mh: Likewise.
6642         * config/sh/linux.mt: Likewise.
6643
6644 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
6645
6646         * solib.c (solib_open): Change tests for whether to search
6647         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
6648         comments.
6649
6650 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6651
6652         * avr-tdep.c (avr_frame_address): Delete function.
6653         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6654         set_gdbarch_frame_args_address.
6655
6656 2003-06-19  Andrew Cagney  <cagney@redhat.com>
6657
6658         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6659         (REGISTER_CONVERT_FROM_TYPE): Delete.
6660         (mips_register_convert_to_type): Delete declaration.
6661         (mips_register_convert_from_type): Delete declaration.
6662         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
6663         kernel/.
6664
6665 2003-06-19  Michael Snyder  <msnyder@redhat.com>
6666
6667         * linux-nat.h: New file.
6668         * linux-nat.c: Include linux-nat.h.
6669         * lin-lwp.c: Include linux-nat.h.
6670         Move struct lwp_info def to linux-nat.h.
6671         * linux-proc.c: Include linux-nat.h.
6672         (linux_make_note_section): Iterate over lwps instead of threads.
6673         (linux_do_thread_registers): Use lwp instead of merged pid.
6674         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
6675         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6676         Add dependency on linux_nat_h.
6677
6678 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6679
6680         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6681
6682 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6683
6684         * varobj.c (get_type, get_target_type): Use check_typedef.
6685
6686 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6687
6688         * breakpoint.c (insert_catchpoint): Call internal_error.
6689
6690 2003-06-19  Theodore A. Roth  <troth@openavr.org>
6691
6692         * avr-tdep.c (avr_push_dummy_code): Delete function.
6693         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6694
6695 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
6696
6697         * arch-utils.c (default_prepare_to_proceed): Remove.
6698         (generic_prepare_to_proceed): Remove.
6699         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6700         (generic_prepare_to_proceed): Remove prototype.
6701         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6702         * gdbarch.c: Regenerate.
6703         * gdbarch.h: Regenerate.
6704         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6705         * hppah-nat.c (hppa_switched_threads): Remove.
6706         * infrun.c (prepare_to_proceed): New static function, copied from
6707         generic_prepare_to_proceed.  Remove select_it argument.
6708         (proceed): Call prepare_to_proceed.
6709         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6710         variables.
6711         (ptrace_wait): Don't set the removed variables.
6712         (hppa_switched_threads): Remove.
6713         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6714         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6715         (lin_lwp_prepare_to_proceed): Remove prototype.
6716         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6717         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6718
6719 2003-06-18  Theodore A. Roth  <troth@openavr.org>
6720
6721         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6722         trad-frame.h.
6723         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6724         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6725         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6726         (AVR_PROLOGUE_*): Enumerate prologue types.
6727         (struct frame_extra_info): Remove.
6728         (struct avr_unwind_cache): Define.
6729         (avr_write_sp): Delete function.
6730         (avr_read_fp): Ditto.
6731         (avr_init_extra_frame_info): Ditto.
6732         (avr_pop_frame): Ditto.
6733         (avr_frame_saved_pc): Ditto.
6734         (avr_saved_pc_after_call): Ditto.
6735         (avr_push_return_address): Ditto.
6736         (avr_frame_chain): Ditto.
6737         (avr_store_struct_return): Ditto.
6738         (avr_push_arguments): Ditto.
6739         (avr_scan_prologue): Update comments. Changed to set up the info for
6740         cache unwinding. Now returns end of prologue PC.
6741         (avr_skip_prologue): Better handling of functions lacking a prologue
6742         by using avr_scan_prologue.
6743         (avr_scan_arg_moves): New function.
6744         (avr_saved_regs_unwinder): Ditto.
6745         (avr_frame_unwind_cache): Ditto.
6746         (avr_unwind_pc): Ditto.
6747         (avr_frame_this_id): Ditto.
6748         (avr_frame_prev_register): Ditto.
6749         (avr_frame_p): Ditto.
6750         (avr_frame_base_address ): Ditto.
6751         (avr_unwind_dummy_id): Ditto.
6752         (avr_push_dummy_code): Ditto.
6753         (push_stack_item): Ditto.
6754         (pop_stack_item): Ditto.
6755         (avr_push_dummy_call): Ditto.
6756         (struct stack_item): Define.
6757         (avr_frame_unwind): Declare structure.
6758         (avr_frame_base): Ditto.
6759         (avr_gdbarch_init): Remove calls to
6760         set_gdbarch_deprecated_init_frame_pc,
6761         set_gdbarch_deprecated_target_read_fp,
6762         set_gdbarch_deprecated_dummy_write_sp,
6763         set_gdbarch_deprecated_fp_regnum,
6764         set_gdbarch_deprecated_push_arguments,
6765         set_gdbarch_deprecated_push_return_address,
6766         set_gdbarch_deprecated_pop_frame,
6767         set_gdbarch_deprecated_store_struct_return,
6768         set_gdbarch_deprecated_frame_init_saved_regs,
6769         set_gdbarch_deprecated_init_extra_frame_info,
6770         set_gdbarch_deprecated_frame_chain,
6771         set_gdbarch_deprecated_frame_saved_pc,
6772         set_gdbarch_deprecated_saved_pc_after_call.
6773         Add calls to set_gdbarch_push_dummy_call,
6774         set_gdbarch_push_dummy_code,
6775         frame_unwind_append_predicate,
6776         frame_base_set_default,
6777         set_gdbarch_unwind_dummy_id,
6778         set_gdbarch_unwind_pc.
6779         Wrap a long line.
6780
6781 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
6782
6783         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6784         registers for H8/300S.
6785         (h8300_print_registers_info): Ditto.
6786         (h8300_gdbarch_init): Accommodate register count for H8/300S.
6787
6788 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
6789
6790         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6791         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6792         (lin_lwp_wait): Likewise.  Update comments.
6793         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6794         (pull_pid_from_list, linux_record_stopped_pid): New.
6795
6796 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6797
6798         * ada-lang.c (scan_discrim_bound): Name first argument.
6799         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6800         declared by ALL_BLOCK_SYMBOLS.
6801
6802 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
6803
6804         * ada-tasks.c (find_function_in_inferior): Don't declare it.
6805         ("regcache.h"): Include it.
6806         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6807
6808 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6809
6810         * NEWS: Mention gdbserver detach change and "disconnect" command.
6811         * infcmd.c (disconnect_command): New function.
6812         (_initialize_infcmd): Add ``disconnect'' command.
6813         * remote.c (remote_async_detach): Delete.
6814         (remote_detach): Merge remote_async_detach.
6815         (remote_disconnect): New.
6816         (init_remote_ops): Set to_disconnect.
6817         (init_remote_cisco_ops): Likewise.
6818         (init_remote_async_ops): Likewise.  Use remote_detach.
6819         * target.c (cleanup_target): Default to_disconnect.
6820         (update_current_target): Inherit to_disconnect.
6821         (target_disconnect, debug_to_disconnect): New functions.
6822         (setup_target_debug): Set to_disconnect.
6823         * target.h (struct target_ops): Add to_disconnect.
6824         (target_disconnect): Add prototype.
6825
6826 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6827
6828         * breakpoint.c (insert_catchpoint): New function.
6829         (insert_breakpoints): Use catch_exceptions to call
6830         insert_catchpoint.  Disable catchpoints if they fail to insert.
6831
6832 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6833
6834         * symfile.c (reread_symbols): Clear sym_private.
6835
6836 2003-06-17  Andrew Cagney  <cagney@redhat.com>
6837
6838         * trad-frame.h (struct frame_info): Add opaque declaration.
6839         * remote-fileio.h (struct cmd_list_element): Add opaque
6840         declaration.
6841         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6842         comments.
6843
6844 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
6845
6846         * remote.c (remote_prepare_to_store): Replace call to
6847         deprecated_read_register_bytes with multiple regcache_raw_read
6848         calls.
6849
6850 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6851
6852         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6853         (nto_find_and_open_solib): Likewise.
6854         (nto_init_solib_absolute_prefix): Likewise.
6855         (_initialize_nto_tdep): Fix indentation.
6856
6857 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6858
6859         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6860
6861 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
6862
6863         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6864
6865 2003-06-17  Jim Blandy  <jimb@redhat.com>
6866
6867         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6868
6869 2003-06-16  Theodore A. Roth  <troth@openavr.org>
6870
6871         * avr-tdep.c (avr_extract_return_value): New function.
6872         (avr_gdbarch_init): Set extract_return_value method.
6873
6874 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6875
6876         * frame.h (deprecated_get_next_frame_hack): Declare.
6877         * frame.c (legacy_saved_regs_prev_register): Only require
6878         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
6879         there are always saved regs.
6880         (deprecated_generic_get_saved_register): Do not require
6881         DEPRECATED_FRAME_INIT_SAVED_REGS.
6882         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6883         use frame ID unwind instead.
6884         (deprecated_get_next_frame_hack): New function.
6885
6886 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6887
6888         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
6889         (h8300_push_dummy_call): ...this function.  Some minor optimization.
6890         (h8300_push_return_address): Remove.
6891         (h8300_gdbarch_init): Remove calls to
6892         set_gdbarch_deprecated_dummy_write_sp,
6893         set_gdbarch_deprecated_push_arguments and
6894         set_gdbarch_deprecated_push_return_address.
6895         Add call to set_gdbarch_push_dummy_call.
6896
6897 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
6898
6899         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6900         (E_PSEUDO_EXR_REGNUM): Ditto.
6901         (h8300_is_argument_spill): Check for instructions moving argument
6902         registers into safe registers.
6903         (h8300_skip_prologue): Check for stm instruction to push registers
6904         used for register variables onto stack.
6905         (gdb_print_insn_h8300): Remove.
6906         (h8300_examine_prologue): Add a comment.
6907         (h8300_register_name): Take pseudo registers into account.
6908         (h8300s_register_name): Ditto.
6909         (h8300sx_register_name): Ditto.
6910         (h8300_print_register): Ditto.
6911         (h8300_print_registers_info): Define "nice" printing order.
6912         (h8300_saved_pc_after_call): Take pseudo registers into account.
6913         (h8300_register_type): Ditto.  Return type used for remote connection
6914         when requesting real CCR or EXR register, return actual type when
6915         requesting pseudo CCR or EXR.
6916         (h8300_pseudo_register_read): New function.
6917         (h8300_pseudo_register_write): Ditto.
6918         (h8300_dbg_reg_to_regnum): Ditto.
6919         (h8300s_dbg_reg_to_regnum): Ditto.
6920         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6921         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6922         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6923         set_gdbarch_print_insn architecture dependent.
6924         Call set_gdbarch_pseudo_register_read and
6925         set_gdbarch_pseudo_register_write.
6926         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6927
6928 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6929
6930         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6931         * gdbarch.h, gdbarch.c: Re-generate.
6932         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6933         * s390-tdep.c (s390_gdbarch_init): Update.
6934         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6935         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6936         * mips-tdep.c (mips_gdbarch_init): Update.
6937         * mcore-tdep.c (mcore_gdbarch_init): Update.
6938         * cris-tdep.c (cris_gdbarch_init): Update.
6939         * infcall.c (call_function_by_hand): Update.
6940         * ia64-tdep.c (ia64_push_arguments): Update comment.
6941         * frame.c (legacy_get_prev_frame): Do not assume
6942         SAVE_DUMMY_FRAME_TOS_P.
6943         * dummy-frame.c (find_dummy_frame): Update comment.
6944
6945 2003-06-16  Andrew Cagney  <cagney@redhat.com>
6946
6947         * regcache.c (do_cooked_read): Do not use register_valid_p.
6948
6949 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6950
6951         * avr-tdep.c (avr_register_type): Remove a blank line.
6952         (avr_scan_prologue): Correct some comments.
6953
6954 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6955
6956         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6957         prologue types.
6958         Properly scan prologues generated by gcc with the -mcall-prologues
6959         option.
6960         Add code to scan -mcall-prologues for mega devices.
6961
6962 2003-06-15  Theodore A. Roth  <troth@openavr.org>
6963
6964         * avr-tdep.c (avr_register_byte): Delete function.
6965         (avr_register_raw_size): Delete function.
6966         (avr_register_virtual_size): Delete function.
6967         (avr_register_virtual_type): Delete function.
6968         (avr_register_type): New function.
6969         (avr_address_to_pointer): Remove unused code.
6970         (avr_read_fp): Need to read FP as two separate bytes due to change to
6971         avr_register_type() usage.
6972         (avr_gdbarch_init): Don't set deprecated_register_size.
6973         Don't set deprecated_register_bytes.
6974         Don't set deprecated_register_byte.
6975         Don't set deprecated_register_raw_size.
6976         Don't set deprecated_max_register_raw_size.
6977         Don't set deprecated_register_virtual_size.
6978         Don't set deprecated_max_register_virtual_size.
6979         Don't set deprecated_register_virtual_type.
6980         Set register_type method.
6981
6982 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
6983
6984         * Makefile.in (linux-nat.o): Add rule.
6985         * linux-nat.c: New file.
6986         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6987         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6988         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6989         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6990         * config/arm/linux.mh (NATDEPFILES): Likewise.
6991         * config/i386/linux.mh (NATDEPFILES): Likewise.
6992         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6993         * config/ia64/linux.mh (NATDEPFILES): Likewise.
6994         * config/m68k/linux.mh (NATDEPFILES): Likewise.
6995         * config/mips/linux.mh (NATDEPFILES): Likewise.
6996         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6997         * config/s390/s390.mh (NATDEPFILES): Likewise.
6998         * config/sparc/linux.mh (NATDEPFILES): Likewise.
6999
7000 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
7001
7002         * i387-tdep.c: Reorder includes, fix some whitespace issues and
7003         replace out-of-date comment.
7004
7005 2003-06-15  Andrew Cagney  <cagney@redhat.com>
7006
7007         * rdi-share/host.h (Fail): Change to a varargs function.
7008         * remote-rdi.c (Fail): Update.
7009
7010 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
7011
7012         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
7013         (i386_convert_register_p, i386_register_to_value,
7014         i386_register_from_value): Handle types longer than 8 bytes.
7015
7016 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
7017
7018         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
7019         Move floating-point code to new function in i387-tdep.c.
7020         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
7021         New functions containing code moved here from i386-tdep.c.
7022         * i387-tdep.h: Add opaque declaration for `struct type'.
7023         (i387_register_to_value, i387_value_to_register): New prototypes.
7024         * x86-64-tdep.c (x86_64_convert_register_p): New function.
7025         (x86_64_init_abi): Set convert_register_p, register_to_value and
7026         value_to_register here.
7027
7028 2003-06-14  Andrew Cagney  <cagney@redhat.com>
7029
7030         * mips-tdep.c (mips_register_to_value): Make static.
7031         (mips_value_to_register): Make static.
7032         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
7033         * ia64-tdep.c (ia64_register_raw_size): Make static.
7034         (ia64_register_virtual_size): Make static.
7035         (ia64_register_byte): Make static.
7036         * i387-tdep.c: Include "i387-tdep.h".
7037         (print_387_control_word): Delete function.
7038         (print_387_status_word): Delete function.
7039         (print_387_status_bits): Delete function.
7040         (print_387_control_bits): Delete function.
7041         * Makefile.in (i387-tdep.o): Update dependencies.
7042         * rdi-share/host.h (Fail): Declare.
7043         * remote-rdi.c (Fail): Update to match declaration.
7044
7045 2003-06-14  Andrew Cagney  <cagney@redhat.com>
7046
7047         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
7048         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
7049         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
7050         * config/djgpp/fnchange.lst: Delete "remote-array.c".
7051         * README: Delete reference to remote-array.
7052         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
7053         (remote-array.o): Delete target.
7054         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
7055         * remote-array.c: Delete file.
7056
7057 2003-06-14  Andrew Cagney  <cagney@redhat.com>
7058             Mark Kettenis  <kettenis@gnu.org>
7059
7060         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
7061         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
7062         parameter with "frame".
7063         * gdbarch.h, gdbarch.c: Re-generate.
7064         * frame.h (put_frame_register): Declare.
7065         * frame.c (put_frame_register): New function.
7066         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
7067         (legacy_register_to_value): Rewrite, use "frame" to get the
7068         register value.
7069         (legacy_value_to_register): Rewrite, use "frame" to find the
7070         register's location before storing.
7071         * arch-utils.h (legacy_convert_register_p): Update.
7072         (legacy_register_to_value, legacy_value_to_register): Update.
7073         * findvar.c (value_from_register): Rewrite, eliminate use of
7074         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
7075         "frame" to REGISTER_TO_VALUE.
7076         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
7077         lval_reg_frame_relative + lval_register branch of the switch.  Do
7078         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
7079         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
7080         I386_EDI_REGNUM): New defines.
7081         (i386_next_regnum, i386_convert_register_p,
7082         i386_register_to_value, i386_value_to_register): New functions.
7083         (i386_register_convertible, i386_register_convert_to_virtual,
7084         i386_convert_to_raw): Remove functions.
7085         (i386_gdbarch_init): Set convert_register_p, register_to_value and
7086         value_to_register instead of register_convertible,
7087         register_convert_to_virtual and register_convert_to_raw.
7088         * mips-tdep.c (mips_convert_register_p): New function.
7089         (mips_value_to_register): Replace mips_register_convert_from_type.
7090         (mips_register_to_value): Replace mips_register_convert_to_type.
7091         (mips_gdbarch_init): Set conver_register_p, value_to_register and
7092         register_to_value.
7093         * alpha-tdep.c (alpha_convert_register_p): Update.
7094         (alpha_value_to_register): Update, store the register.
7095         (alpha_register_to_value): Update, fetch the register.
7096
7097 2003-06-14  Theodore A. Roth  <troth@openavr.org>
7098
7099         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
7100         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
7101         Don't set deprecated_call_dummy_words.
7102         Remove commented out set_gdbarch_believe_pcc_promotion() call.
7103         Don't set remote_translate_xfer_address.
7104         (avr_io_reg_read_command): Remove commented out debug printf.
7105         Wrap a long line.
7106
7107 2003-06-14  Theodore A. Roth  <troth@openavr.org>
7108
7109         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
7110         causes gdb to seg fault.
7111
7112 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
7113
7114         * sparc-nat.c (fetch_inferior_registers): Correct
7115         a reference to "registers".
7116
7117 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
7118
7119         * Makefile.in (exc_request_U_h): Define
7120         (exc_request_S_h): Likewise.
7121         (msg_reply_S_h): Likewise.
7122         (msg_U_h): Likewise.
7123         (notify_S_h): Likewise.
7124         (process_reply_S_h): Likewise.
7125         (gnu-nat.o): Depend on gdb_obstack_h
7126         * gnu-nat.c: Include "gdb_obstack.h".
7127
7128 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7129
7130         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
7131         * gdbarch.h, gdbarch.c: Re-generate.
7132
7133 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7134
7135         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
7136         when deprecated REGISTER macros can be deleted.
7137         * gdbarch.h, gdbarch.c: Re-generate.
7138
7139 2003-06-13  Jim Blandy  <jimb@redhat.com>
7140
7141         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
7142         Linux entry point symbols for _dl_debug_state, too.
7143
7144 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7145
7146         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
7147         available, do not use the FP register, and always save the TOS.
7148         * dummy-frame.c (dummy_frame_this_id): Do not assert
7149         SAVE_DUMMY_FRAME_TOS.
7150         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
7151         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
7152         (i386_push_dummy_call): Add 8 to the returned SP.
7153         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
7154         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
7155         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
7156         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
7157         (x86_64_push_dummy_call): Return "sp + 16".
7158         (x86_64_init_abi): Do not set save_dummy_frame_tos.
7159         * alpha-tdep.c (alpha_gdbarch_init): Do not set
7160         save_dummy_frame_tos.
7161
7162 2003-06-13  Jim Blandy  <jimb@redhat.com>
7163
7164         * frv-tdep.c (frv_use_struct_convention): Delete static
7165         declaration for function deleted in my change of 2003-06-12.
7166
7167 2003-06-13  Theodore A. Roth  <troth@openavr.org>
7168
7169         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
7170         (avr_pointer_to_address): Shift code addrs left 1 bit.
7171         (avr_convert_from_func_ptr_addr): Delete function since operation is
7172         better handled by avr_address_to_pointer and avr_pointer_to_address.
7173         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
7174
7175 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
7176
7177         From Kelley Cook  <kelleycook@wideopenwest.com>:
7178         * configure.host: Accept i[34567]86 variants.
7179         * configure.tgt: Likewise.
7180         * nlm/configure.in: Likewise.
7181         * nlm/configure: Regenerated.
7182
7183 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
7184
7185         * arm-tdep.c (solib-svr4.h): Dont' include it.
7186         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
7187         * arm-linux-tdep.c: ... here.  Make static.
7188         (arm_linux_init_abi): Register it.
7189         (solib-svr4.h): Include it.
7190         * Makefile.in: Update dependencies.
7191         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7192         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
7193
7194 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
7195
7196         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
7197         indicate registers used for return values.
7198         (struct frame_extra_info): Drop args_pointer and locals_pointer.
7199         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
7200         members.
7201         (h8300_init_extra_frame_info): Ditto.
7202         (h8300_frame_locals_address): Removed.
7203         (h8300_frame_args_address): Removed.
7204         (h8300_extract_return_value): Use new regcache structure. Only care
7205         for 16 bit CPUs.
7206         (h8300h_extract_return_value): Same function for 32 bit CPUs.
7207         (h8300_store_return_value): Use new regcache structure. Only care
7208         for 16 bit CPUs.
7209         (h8300h_store_return_value): Same function for 32 bit CPUs.
7210         (h8300_store_struct_return): Removed.
7211         (h8300_extract_struct_value_address): Use new regcache structure.
7212         (h8300h_extract_struct_value_address): Removed.
7213         (h8300_push_dummy_code): New function.
7214         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
7215         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
7216         set_gdbarch_store_return_value architecture dependent.
7217         Call set_gdbarch_push_dummy_code and
7218         set_gdbarch_extract_struct_value_address.
7219         Remove calls to set_gdbarch_frame_args_address,
7220         set_gdbarch_frame_locals_address,
7221         set_gdbarch_deprecated_store_struct_return,
7222         set_gdbarch_deprecated_extract_return_value,
7223         set_gdbarch_deprecated_extract_struct_value_address,
7224         set_gdbarch_deprecated_call_dummy_words and
7225         set_gdbarch_deprecated_sizeof_call_dummy_words.
7226
7227 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
7228
7229         * h8300-tdep.c (h8300_register_byte): Remove.
7230         (h8300h_register_byte): Remove.
7231         (h8300_register_virtual_type): Remove.  Substitute by...
7232         (h8300_register_type): New function.
7233         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
7234         (h8300h_extract_struct_value_address): Ditto.
7235         (h8300_gdbarch_init): Drop calls to
7236         set_gdbarch_deprecated_register_byte and
7237         set_gdbarch_deprecated_register_virtual_type.
7238         Add call to set_gdbarch_register_type.
7239
7240 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7241
7242         * gdbarch.sh: Update comments on registers.
7243         (deprecated_register_byte): Rename register_byte.
7244         (deprecated_register_raw_size): Rename register_raw_size.
7245         (deprecated_register_virtual_size): Rename register_virtual_size.
7246         (deprecated_register_virtual_type): Rename register_virtual_type.
7247         * gdbarch.h, gdbarch.c: Re-generate.
7248         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7249         * vax-tdep.c (vax_gdbarch_init): Update.
7250         * v850-tdep.c (v850_gdbarch_init): Update.
7251         * sparc-tdep.c (sparc_gdbarch_init): Update.
7252         * sh-tdep.c (sh_gdbarch_init): Update.
7253         * s390-tdep.c (s390_gdbarch_init): Update.
7254         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7255         * ns32k-tdep.c: Update.
7256         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7257         * mips-tdep.c (mips_gdbarch_init): Update.
7258         * mcore-tdep.c (mcore_gdbarch_init): Update.
7259         * m68k-tdep.c (m68k_gdbarch_init): Update.
7260         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7261         * ia64-tdep.c (ia64_gdbarch_init): Update.
7262         * hppa-tdep.c (hppa_gdbarch_init): Update.
7263         * h8300-tdep.c (h8300_gdbarch_init): Update.
7264         * frv-tdep.c (frv_gdbarch_init): Update.
7265         * cris-tdep.c (cris_gdbarch_init): Update.
7266         * avr-tdep.c (avr_gdbarch_init): Update.
7267         * alpha-tdep.c (alpha_gdbarch_init): Update.
7268         * arm-tdep.c (arm_gdbarch_init): Update.
7269
7270 2003-06-13  Andrew Cagney  <cagney@redhat.com>
7271
7272         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
7273         mips_o32_use_struct_convention with always_use_struct_convention.
7274
7275 2003-06-12  David Carlton  <carlton@kealia.com>
7276
7277         * cp-namespace.c (cp_set_block_scope): Comment out
7278         processing_has_namespace_info branch.
7279
7280 2003-06-12  Jim Blandy  <jimb@redhat.com>
7281
7282         Recognize and skip 64-bit PowerPC Linux linkage functions.
7283         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
7284         insn_pattern, insns_match_pattern, d_field, ds_field): New
7285         functions, macros, and types for working with PPC instructions.
7286         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
7287         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
7288         ppc64_skip_trampoline_code): New functions, variables, and macros
7289         for recognizing and skipping linkage functions.
7290         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
7291         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
7292
7293         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
7294         register offsets for both the 32- and 64-bit interfaces.
7295
7296         Actually finish the job started by my change of 2003-05-29.
7297         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
7298         other #definition of this.
7299         (ppc_linux_skip_trampoline_code): Remove declaration.
7300         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
7301         static.
7302         (ppc_linux_init_abi): Register it as the skip_trampoline_code
7303         method for GDBARCH.
7304
7305         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
7306         'long' on ppc64-*-linux*.
7307
7308         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
7309         isn't #defined, assume the register doesn't exist: act as if
7310         tdep->ppc_mq_regnum were -1.
7311
7312         * configure.host, configure.tgt: Add entries for
7313         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
7314         powerpc/linux.mt.
7315         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
7316         New files.
7317
7318         * arch-utils.c (always_use_struct_convention): New function.
7319         * arch-utils.h (always_use_struct_convention): New prototype.
7320         * alpha-tdep.c (alpha_use_struct_convention): Delete.
7321         (alpha_gdbarch_init): Register always_use_struct_convention,
7322         instead of alpha_use_struct_convention.
7323         * cris-tdep.c (cris_use_struct_convention): Delete.
7324         (cris_gdbarch_init): Register always_use_struct_convention,
7325         instead of cris_use_struct_convention.
7326         * frv-tdep.c (frv_use_struct_convention): Delete.
7327         (frv_gdbarch_init): Register always_use_struct_convention,
7328         instead of frv_use_struct_convention.
7329         * h8300-tdep.c (h8300_use_struct_convention): Delete.
7330         (h8300_gdbarch_init): Register always_use_struct_convention,
7331         instead of h8300_use_struct_convention.
7332         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
7333         (mips_o32_gdbarch_init): Register always_use_struct_convention,
7334         instead of mips_o32_use_struct_convention.
7335
7336 2003-06-12  Andrew Cagney  <cagney@redhat.com>
7337
7338         * wince.c: Include "mips-tdep.h".
7339         * mips-tdep.h (mips_next_pc): Declare.
7340         * mcore-tdep.c: Make more local functions static.
7341         * Makefile.in (wince.o): Update dependencies.
7342
7343 2003-06-12  David Carlton  <carlton@kealia.com>
7344
7345         * symtab.c (lookup_symbol_aux_minsyms): Replace
7346         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7347         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
7348         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
7349         SYMBOL_NATURAL_NAME.
7350
7351 2003-06-12  Andreas Schwab  <schwab@suse.de>
7352
7353         * Makefile.in (tuiDisassem.o): Update dependencies.
7354
7355 2003-06-12  David Carlton  <carlton@bactrian.org>
7356
7357         * symtab.h: Delete declaration of make_symbol_overload_list.
7358         Add declaration of lookup_partial_symbol.
7359         * symtab.c (remove_params): Move to cp-support.c.
7360         (overload_list_add_symbol, make_symbol_overload_list)
7361         (sym_return_val_size, sym_return_val_index): Ditto.
7362         (lookup_partial_symbol): Make extern.
7363         * cp-support.h: Add declaration of make_symbol_overload_list.
7364         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
7365         symtab.h, and block.h.
7366         (remove_params): Move here from symtab.c.
7367         (overload_list_add_symbol, make_symbol_overload_list)
7368         (sym_return_val_size, sym_return_val_index): Ditto.
7369         * valops.c: Include cp-support.h.
7370         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
7371         frame_h, and block_h.
7372         (valops.o): Depend on cp_support_h.
7373
7374 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
7375
7376         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
7377         substitute by NUM_REGS throughout.
7378         (h8300_register_name): Only care for H8/300 and H8/300H registers.
7379         (h8300s_register_name): New function for H8S registers.
7380         (h8300sx_register_name): Ditto for H8SX registers.
7381         (h8300_print_register): Revise register printing, avoid depending
7382         on 32 bit long.
7383         (h8300_register_byte): Only care for H8/300 registers.
7384         (h8300h_register_byte): New function for any other architecture.
7385         (h8300_register_raw_size): Remove.
7386         (h8300_register_virtual_type): Revise to return actually useful
7387         type.
7388         (h8300_extract_struct_value_address): Only care for H8/300 registers.
7389         (h8300h_extract_struct_value_address): New function for any other
7390         architecture.
7391         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
7392         set_gdbarch_register_name, set_gdbarch_register_byte,
7393         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
7394         Remove calls to set_gdbarch_deprecated_register_size,
7395         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
7396         set_gdbarch_deprecated_max_register_raw_size,
7397         set_gdbarch_register_virtual_size and
7398         set_gdbarch_deprecated_max_register_virtual_size entirely.
7399         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
7400         set_gdbarch_long_double_bit.
7401
7402 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7403
7404         * doublest.c (convert_doublest_to_floatformat): When dealing
7405         with the implied integer bit, only alter mant_bits if we are
7406         processing a full 32 bits of mantissa.
7407
7408 2003-06-11  David Carlton  <carlton@bactrian.org>
7409
7410         * dictionary.h: New.
7411         * dictionary.c: New.
7412         * block.h: Add opaque declaration for struct dictionary.
7413         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
7414         'sym' members.
7415         (BLOCK_DICT): New macro.
7416         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
7417         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
7418         BLOCK_SHOULD_SORT.
7419         (ALL_BLOCK_SYMBOLS): Update definition.
7420         * Makefile.in (SFILES): Add dictionary.c.
7421         (dictionary_h): New.
7422         (COMMON_OBS): Add dictionary.o.
7423         (dictionary.o): New.
7424         (ada-lang.o): Depend on dictionary_h.
7425         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
7426         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
7427         (mi-cmd-stack.o): Ditto.
7428         (gdbtk-cmds.o): Update dependencies.
7429         (gdbtk-stack.o): Ditto.
7430         * ada-lang.c: Include dictionary.h.
7431         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
7432         (fill_in_ada_prototype, debug_print_block): Ditto.
7433         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
7434         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
7435         'is_sorted'.
7436         * mdebugread.c: Include dictionary.h.
7437         (struct parse_stack): Delete 'maxsyms' member.
7438         (parse_symbol): Update calls to new_block.  Delete calls to
7439         shrink_block.  Use dictionary methods.
7440         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
7441         Update calls to new_symtab.  Don't maintain maxsyms data.
7442         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
7443         (add_symbol): Just call dict_add_symbol.
7444         (new_symtab): Delete 'maxsyms' argument.
7445         (new_symtab): Update calls to new_block.
7446         (new_block): Delete 'maxsyms' argument; add 'function' argument.
7447         (shrink_block): Delete function.
7448         (fixup_sigtramp): Update call to new_block.  Add symbol via
7449         dict_add_symbol.
7450         * jv-lang.c: Include dictionary.h.
7451         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
7452         appropriately.  Set class_symtab->free_func.  Make sure the
7453         blockvector is big enough to hold two blocks.
7454         (add_class_symtab_symbol): Use dictionary methods.
7455         (free_class_block): New function.
7456         (type_from_class): Replace explicit iteration by
7457         ALL_BLOCK_SYMBOLS.
7458         * symtab.h (struct symtab): Replace 'free_ptr' method by
7459         'free_func'.
7460         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
7461         sort_symtab_syms.
7462         * dwarfread.c (psymtab_to_symtab_1): Delete call to
7463         sort_symtab_syms.
7464         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
7465         Include dictionary.h.
7466         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
7467         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
7468         sort_symtab_syms.
7469         * objfiles.c: Include dictionary.h.
7470         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
7471         * buildsym.c: Include dictionary.h.
7472         (finish_block): Use dictionary methods.
7473         (end_symtab): Set free_func to NULL, not free_ptr.
7474         * tracepoint.c: Include dictionary.h.
7475         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
7476         (scope_info): Ditto.
7477         * stack.c: Include dictionary.h.
7478         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
7479         (print_block_frame_labels, print_frame_arg_vars)
7480         (print_frame_args): Ditto.
7481         * symmisc.c (free_symtab_block): Use dictionary methods.
7482         (dump_symtab): Ditto.
7483         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
7484         Include dictionary.h.
7485         * symfile.h: Delete declarations of sort_block_syms,
7486         sort_symtab_syms.
7487         * symfile.c (sort_block_syms): Delete.
7488         (sort_symtab_syms): Delete.
7489         * symtab.c: Include dictionary.h.
7490         (lookup_block_symbol): Use dictionary iterators.
7491         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
7492         (search_symbols, make_symbol_completion_list): Ditto.
7493         (make_symbol_overload_list): Ditto.
7494         * valops.c (value_of_local): Use dict_empty.
7495         Include dictionary.h.
7496
7497 2003-06-11  J. Brobecker  <brobecker@gnat.com>
7498
7499         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
7500
7501 2003-06-11  David Carlton  <carlton@bactrian.org>
7502
7503         * block.h (BLOCK_SHOULD_SORT): Delete.
7504         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
7505         blocks.
7506         * ada-lang.c (ada_add_block_symbols): Ditto.
7507         * symfile.c (sort_block_syms): Delete.
7508         (sort_symtab_syms): Ditto.
7509         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
7510         declarations.
7511         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
7512         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7513         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7514         * dwarfread.c (psymtab_to_symtab_1): Ditto.
7515         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7516         * mdebugread.c (psymtab_to_symtab_1): Ditto.
7517         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7518
7519 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
7520
7521         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
7522         bits to 128.
7523
7524 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7525
7526         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7527         REGISTER_CONVERTIBLE.
7528         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7529         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7530         * gdbarch.h, gdbarch.c: Re-generate.
7531         * arch-utils.h (deprecated_register_convertible_not): Rename
7532         generic_register_convertible_not.
7533         * arch-utils.c (deprecated_register_convertible_not): Rename
7534         generic_register_convertible.
7535         (legacy_convert_register_p, legacy_register_to_value): Update.
7536         * sh-tdep.c (sh64_push_arguments): Update.
7537         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7538         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7539         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7540         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7541         * arch-utils.c (legacy_value_to_register): Update.
7542         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7543         (rs6000_register_convert_to_raw): Make parameter "from" const.
7544         * mips-tdep.c (mips_gdbarch_init): Update.
7545         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
7546         * infcmd.c (default_print_registers_info): Update.
7547         * ia64-tdep.c (ia64_gdbarch_init): Update.
7548         (ia64_register_convert_to_raw): Make parameter "from" const.
7549         * i386-tdep.c (i386_gdbarch_init): Update.
7550         (i386_register_convert_to_raw): Update.
7551
7552 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7553
7554         * remote-fileio.c: Include "remote-fileio.h".
7555         * Makefile.in (remote-fileio.o): Update dependencies.
7556         (remote_fileio_h): Fix typo.
7557
7558 2003-06-11  Andrew Cagney  <cagney@redhat.com>
7559
7560         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7561         (xstormy16_save_dummy_frame_tos): Make static.
7562         (_initialize_xstormy16_tdep): Add declaration.
7563         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7564         * v850-tdep.c: Make local functions static.
7565         (_initialize_v850_tdep): Add declaration.
7566         * sparc-tdep.c: Make local functions static.
7567         (_initialize_sparc_tdep): Add declaration.
7568         * sh-tdep.c: Make local functions static.
7569         (_initialize_sh_tdep): Add declaration.
7570         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7571         * s390-tdep.c: Make local functions static.
7572         (_initialize_s390_tdep): Add declaration.
7573         * dbxread.c (find_stab_function_addr): Make static.
7574         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7575         * ocd.c (_initialize_remote_ocd): Add declaration.
7576         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7577         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7578         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7579         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7580         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7581         * remote-array.c (_initialize_array): Add declaration.
7582         (_initialize_remote_monitors): Add declaration.
7583         * remote-mips.c: Make local functions static.
7584         (_initialize_remote_mips): Add declaration.
7585         * mcore-tdep.c: Make all local functions static.
7586         (_initialize_mcore_tdep): Add declaration.
7587         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7588         * abug-rom.c (_initialize_abug_rom): Add declaration.
7589         * rom68k-rom.c (_initialize_rom68k): Add declaration.
7590         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7591         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7592         * remote-est.c (_initialize_est): Add declaration.
7593         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7594         (m68hc11_call_dummy_address): Make static.
7595         * ia64-tdep.c: Make local functions static.
7596         (_initialize_ia64_tdep): Add declaration.
7597         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7598         * monitor.c (monitor_wait_filter): Make static.
7599         (_initialize_remote_monitors): Add declaration.
7600         * remote-hms.c (_initialize_remote_hms): Add declaration.
7601         * remote-e7000.c (fetch_regs_from_dump): Make static.
7602         (expect_n): Make static.
7603         (_initialize_remote_e7000): Add declaration.
7604         * ser-e7kpc.c: Always include "defs.h".
7605         (_initialize_ser_e7000pc): Add declaration.
7606         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7607         * cris-tdep.c: Make all but one function static.
7608         (_initialize_cris_tdep): Add declaration.
7609         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7610         * solib.c (update_solib_list): Make static.
7611         (_initialize_solib): Add declaration.
7612         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7613         (_initialize_avr_tdep): Add declaration.
7614         * remote-rdi.c (voiddummy): Make static.
7615         (_initialize_remote_rdi): Add declaration.
7616         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7617         * remote-rdp.c (send_rdp): Make static.
7618         (_initialize_remote_rdp): Add declaration.
7619         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7620
7621 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
7622
7623         * remote-fileio.c: Make ari happy.
7624
7625 2003-06-10  J. Brobecker  <brobecker@gnat.com>
7626
7627         * rs6000-nat.c (child_xfer_memory): Compute the right address when
7628         fetching the trailing bytes of the buffer we are about to write.
7629
7630 2003-06-10  Andrew Cagney  <cagney@redhat.com>
7631
7632         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7633         * Makefile.in (remote-fileio.o): Update dependencies.
7634         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
7635         include <setjmp.h>, or <sys/types.h> conditional on USG.
7636         (remote_fio_jmp_buf): Delete global variable.
7637
7638 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
7639             Martin M. Hunt  <hunt@redhat.com>
7640
7641         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7642         (SFILES): Add remote-fileio.c.
7643         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
7644         dependencies for building remote.o.
7645         * remote-fileio.c: New file implementing the remote File-I/O protocol.
7646         * remote-fileio.h: New header file defining remote File-I/O interface.
7647         * remote.c (remote_write_bytes, remote_read_bytes): Remove
7648         static storage class.
7649         (remote_wait, remote_async_wait): Call remote_fileio_request() on
7650         'F' packet.
7651         (_initialize_remote): Call initialize_remote_fileio().
7652         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
7653         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7654         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7655         (captured_main): Initialize new ui_files.
7656         * ui-file.c: Add read and fgets input functions.
7657         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7658         (null_file_read): New function.
7659         (ui_file_read): New function.
7660         (set_ui_file_read): New function.
7661         (stdio_file_read): New function.
7662         * ui-file.h: New type ui_file_read_ftype.
7663         (set_ui_file_read): Declare.
7664         (ui_file_read): Declare.
7665
7666 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7667
7668         * frame.h (deprecated_unwind_get_saved_register): Rename
7669         generic_unwind_get_saved_register, update comments.
7670         * mips-tdep.c (mips_get_saved_register): Update.
7671         * frame.c (deprecated_unwind_get_saved_register): Update.
7672
7673 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7674
7675         * vax-tdep.c (vax_frame_locals_address): Delete function.
7676         (vax_gdbarch_init): Do not set frame_locals_address.
7677         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7678         (m68hc11_gdbarch_init): Do not set frame_locals_address.
7679         * s390-tdep.c (s390_frame_args_address): Delete function.
7680         (s390_gdbarch_init): Do not set frame_args_address or
7681         frame_locals_address.
7682         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7683         (ns32k_gdbarch_init): Do not set frame_locals_address.
7684         * hppa-tdep.c (hppa_frame_args_address): Delete function.
7685         (hppa_frame_locals_address): Delete function.
7686         (hppa_gdbarch_init): Do not set frame_args_address, or
7687         frame_locals_address.
7688         * arm-tdep.c (arm_frame_args_address): Delete.
7689         (arm_frame_locals_address): Delete.
7690         (arm_gdbarch_init): Do not set frame_args_address, or
7691         frame_locals_address.
7692
7693 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7694
7695         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7696         * gdbarch.h, gdbarch.c: Re-generate.
7697         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7698         * arch-utils.c (frame_num_args_unknown): Delete function.
7699         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7700         (frame_info): Use FRAME_NUM_ARGS_P.
7701         * arm-tdep.c (arm_frame_num_args): Delete function.
7702         (arm_gdbarch_init): Do not set frame_num_args.
7703         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7704         * hppa-tdep.c (hppa_frame_num_args): Delete function.
7705         (hppa_gdbarch_init): Do not set frame_num_args.
7706         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7707         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7708         frame_num_args to default frame_num_args_unknown.
7709         * v850-tdep.c (v850_gdbarch_init): Ditto.
7710         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7711         * sh-tdep.c (sh_gdbarch_init): Ditto.
7712         * s390-tdep.c (s390_gdbarch_init): Ditto.
7713         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7714         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7715         * mips-tdep.c (mips_gdbarch_init): Ditto.
7716         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7717         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7718         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7719         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7720         * i386-tdep.c (i386_gdbarch_init): Ditto.
7721         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7722         * frv-tdep.c (frv_gdbarch_init): Ditto.
7723         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7724         * cris-tdep.c (cris_gdbarch_init): Ditto.
7725         * avr-tdep.c (avr_gdbarch_init): Ditto.
7726         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7727
7728 2003-06-09  Andrew Cagney  <cagney@redhat.com>
7729
7730         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7731         (print_frame_args): Moved to "stack.c".
7732         * stack.c: Include "gdb_assert.h".
7733         (print_frame_nameless_args): Moved from "printcmd.c", made static.
7734         (print_frame_args): Moved from "printcmd.c".
7735         * frame.h (print_frame_args): Delete declaration.
7736         * Makefile.in (stack.o): Update dependencies.
7737
7738 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7739
7740         * frame.c (get_prev_frame): Remove reference to
7741         frame_args_address_correct in comments.
7742         * frame-base.c (default_frame_args_address): Delete code
7743         conditional on FRAME_ARGS_ADDRESS_CORRECT.
7744         * vax-tdep.c (vax_frame_args_address_correct): Delete.
7745         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7746         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7747         (vax_frame_args_address_correct): Delete declaration.
7748
7749 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7750
7751         * gdbarch.sh (UNWIND_SP): Add.
7752         * gdbarch.h, gdbarch.c: Re-generate.
7753         * frame.c (frame_sp_unwind): New function.
7754         (get_frame_sp): New function.
7755         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7756         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7757         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7758         value.
7759         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7760         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7761
7762 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7763
7764         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7765         REMOTE_BREAKPOINT.
7766         * remote.c: Update.
7767         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7768         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7769         * config/m68k/tm-sun3.h: Update.
7770         * config/m68k/tm-m68klynx.h: Update.
7771         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7772
7773         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7774         trad_frame".  Update comments.
7775         * d10v-tdep.c (struct d10v_unwind_cache): Update.
7776         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7777         (trad_frame_register_value, trad_frame_prev_register): Update.
7778
7779 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7780
7781         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7782         from GCC's acinclude.m4.
7783         * configure.in: Check for getopt's delcaration.
7784         * aclocal.m4, config.in, configure: Re-generate.
7785         * main.c (error_init): Delete declaration.
7786         * defs.h (error_init): Declare.
7787         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7788         (rs6000_convert_from_func_ptr_addr): Make static.
7789         (_initialize_rs6000_tdep): Add declaration.
7790         * cli/cli-cmds.c (dont_repeat): Delete declaration.
7791         (show_commands, set_verbose, show_history): Delete declaration.
7792         * top.h (set_verbose): Add declaration.
7793         (show_history, set_history, show_commands): Add declaration.
7794         (do_restore_instream_cleanup): Add declaration.
7795         * objc-lang.c (specialcmp): Make static.
7796         (print_object_command): Make static.
7797         (find_objc_msgsend): Make static.
7798         (find_objc_msgcall_submethod_helper): Make static.
7799         (find_objc_msgcall_submethod): Make static.
7800         (_initialize_objc_language): Add declaration.
7801         (find_implementation_from_class): Make static.
7802         (find_implementation): Make static.
7803         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7804         * objc-lang.h (lookup_struct_typedef): Add declaration.
7805         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7806         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7807         (do_restore_user_call_depth): Make static.
7808         (do_restore_instream_cleanup): Delete declaration.
7809         (dont_repeat): Delete declaration.
7810         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7811         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7812         * reggroups.c (_initialize_reggroup): Add declaration.
7813         * cp-support.c (_initialize_cp_support): Add declaration.
7814         * cp-abi.c (_initialize_cp_abi): Add declaration.
7815         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7816         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7817         (_initialize_gnu_v3_abi): Add declaration.
7818         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7819         (_initialize_gnu_v2_abi): Add declaration.
7820         * frame-base.c (_initialize_frame_base): Add declaration.
7821         * doublest.c (floatformat_from_length): Make static.
7822         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7823         * frame.c (create_sentinel_frame): Make static.
7824         (_initialize_frame): Add declaration.
7825         * top.c (do_catch_errors): Make static.
7826         (gdb_rl_operate_and_get_next_completion): Make static.
7827         * typeprint.c: Include "typeprint.h".
7828         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7829         (sentinel_frame_this_id): Make static.
7830         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7831         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7832         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7833         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7834         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7835         * maint.c (maintenance_print_architecture): Make static.
7836         * signals/signals.c (_initialize_signals): Add declaration.
7837         * std-regs.c (_initialize_frame_reg): Add declaration.
7838         * jv-exp.y (push_variable): ISO C definition.
7839         (push_qualified_expression_name): Ditto.
7840         * memattr.c (_initialize_mem): Add declaration.
7841         * remote.c (remote_check_watch_resources): Make static.
7842         (remote_stopped_by_watchpoint): Make static.
7843         (remote_stopped_data_address): Make static.
7844         * d10v-tdep.c (nr_dmap_regs): Make static.
7845         (a0_regnum): Make static.
7846         (d10v_frame_unwind_cache): Make static.
7847         (d10v_frame_p): Make static.
7848         * osabi.c (show_osabi): Make static.
7849         (_initialize_gdb_osabi): Add extern declaration.
7850         * gdbtypes.c (make_qualified_type): Make static.
7851         (safe_parse_type): Make static.
7852         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7853         * macrotab.c (macro_bcache_free): Make static.
7854         * interps.c (interp_set_quiet): Make static.
7855         (interpreter_exec_cmd): Make static.
7856         * stack.h (select_frame_command): New file.
7857         * stack.c: Include "stack.h".
7858         (select_frame_command_wrapper): Delete function.
7859         (select_frame_command): Make global.
7860         * infcall.c: Include "infcall.h".
7861         * linespec.c: Include "linespec.h".
7862         * symfile.c (sections_overlap): Make static.
7863         * cp-support.h (cp_initialize_namespace): ISO C declaration.
7864         * charset.c (_initialize_charset): Add missing prototype.
7865         * regcache.c (init_legacy_regcache_descr): Make static.
7866         (do_regcache_xfree): Make static.
7867         (regcache_xfer_part): Make static.
7868         (_initialize_regcache): Add missing prototype.
7869         * breakpoint.c (parse_breakpoint_sals): Make static.
7870         (breakpoint_sals_to_pc): Make static.
7871         * interps.h (clear_interpreter_hooks): ISO C declaration.
7872         * Makefile.in (stack_h): Define.
7873         (stack.o, typeprint.o, mi-main.o): Update dependencies.
7874         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7875
7876 2003-06-08  Andrew Cagney  <cagney@redhat.com>
7877
7878         * Makefile.in (d10v-tdep.o): Update dependencies.
7879         (SFILES): Add trad-frame.c.
7880         (trad_frame_h): Define.
7881         (COMMON_OBS): Add trad-frame.o.
7882         (trad-frame.o): Specify dependencies.
7883         * d10v-tdep.c: Include "trad-frame.h".
7884         (saved_regs_unwinder): Delete function.
7885         (d10v_frame_prev_register): Use trad_frame_prev_register.
7886         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7887         trad_frame", delete "regs" and "prev_sp".
7888         (prologue_find_regs): Use trad-frame.
7889         * trad-frame.h, trad-frame.c: New files.
7890
7891 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
7892
7893         * dwarf2cfi.c, dwarf2cfi.h: Remove.
7894
7895 2003-06-07  Adam Fedor  <fedor@gnu.org>
7896
7897         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7898         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7899         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7900         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7901         resolve_msgsend_super, resolve_msgsend_super_stret):
7902         Use it.
7903
7904 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7905
7906         * symfile.h: Re-indent, clean up comments.
7907
7908 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7909
7910         * inferior.h (deprecated_write_sp): Replace
7911         generic_target_write_sp.
7912         * regcache.c (deprecated_write_sp): Replace
7913         generic_target_write_sp.
7914         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7915         * vax-tdep.c (vax_gdbarch_init): Update.
7916         * v850-tdep.c (v850_gdbarch_init): Update.
7917         * sparc-tdep.c (sparc_gdbarch_init): Update.
7918         * sh-tdep.c (sh_gdbarch_init): Update.
7919         * s390-tdep.c (s390_gdbarch_init): Update.
7920         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7921         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7922         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7923         * mcore-tdep.c (mcore_gdbarch_init): Update.
7924         * m68k-tdep.c (m68k_gdbarch_init): Update.
7925         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7926         * ia64-tdep.c (ia64_gdbarch_init): Update.
7927         * h8300-tdep.c (h8300_gdbarch_init): Update.
7928         * frv-tdep.c (frv_gdbarch_init): Update.
7929         * cris-tdep.c (cris_gdbarch_init): Update.
7930         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7931
7932 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7933
7934         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7935         Assert that PC_REGNUM is valid.
7936         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7937
7938 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7939
7940         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7941         * gdbarch.h, gdbarch.c: Regenerate.
7942         * mn10300-tdep.c: Include "gdb_assert.h".
7943         (mn10300_read_fp): New function.
7944         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7945         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
7946         * ia64-tdep.c: Include "gdb_assert.h".
7947         (ia64_read_fp): New function.
7948         (ia64_gdbarch_init): Set deprecated_target_read_fp to
7949         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
7950         * regcache.c (generic_target_read_sp): Delete function.
7951         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7952         * inferior.h (generic_target_read_sp): Delete declaration.
7953         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7954         generic_target_read_sp.
7955         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7956         * sparc-tdep.c (sparc_gdbarch_init): Ditto
7957         * sh-tdep.c (sh_gdbarch_init): Ditto.
7958         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7959         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7960
7961 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7962
7963         * gdbarch.sh: Comment each field of startup_gdbarch.
7964         * gdbarch.h, gdbarch.c: Re-generate.
7965
7966 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7967
7968         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7969         * gdbarch.h, gdbarch.c: Re-generate.
7970         * regcache.c: Update comments on read_pc et.al.
7971         (generic_target_read_pc): Delete function.
7972         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7973         * inferior.h (generic_target_read_pc): Delete declaration.
7974         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7975         generic_target_read_pc.
7976         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7977         * sh-tdep.c (sh_gdbarch_init): Ditto.
7978         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7979         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7980
7981 2003-06-07  Andrew Cagney  <cagney@redhat.com>
7982
7983         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7984         "index" with "special_local_sect".  Use strcmp instead of STREQ.
7985         Append period to coments.
7986
7987 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
7988
7989         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7990         (elfstab_offset_sections): Likewise.
7991         * gdb-stabs.h (stab_section_info): Likewise.
7992         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7993         * objfiles.c (objfile_relocate): Likewise.
7994         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7995         * remote.c (get_offsets): Likewise.
7996         (remote_cisco_objfile_relocate): Likewise.
7997         * somread.c (som_symfile_offsets): Likewise.
7998         * symfile.c (alloc_section_addr_info): New function.
7999         (build_section_addr_info_from_section_tab): Use it.
8000         (free_section_addr_info): Adjust.
8001         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
8002         (syms_from_objfile): Allocate local_addr dynamically.
8003         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
8004         dynamically.
8005         (add_symbol_file_command): Allocate sect_opts dynamically.
8006         (reread_symbols): Avoid use of SECT_OFF_MAX.
8007         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
8008         (alloc_section_addr_info): Declare it.
8009         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
8010         * win32-nat.c (solib_symbols_add): Allocate section_addrs
8011         dynamically.
8012         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8013
8014 2003-06-06  Andrew Cagney  <cagney@redhat.com>
8015
8016         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
8017         (d10v_frame_unwind_cache): Do not set "return_pc".
8018
8019 2003-06-06  Michael Snyder  <msnyder@redhat.com>
8020
8021         * h8300-tdep.c: Make tidy (long lines).
8022
8023 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
8024
8025         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
8026         to regcache_collect().
8027
8028 2003-06-05  J. Brobecker  <brobecker@gnat.com>
8029
8030         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
8031         pc_in_sigtramp multiarch method.
8032         (hppa_hpux_som_init_abi): Use it.
8033         (hppa_hpux_elf_init_abi): Likewise.
8034         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
8035         macro has been multiarched.
8036         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
8037         macro here, as hppa64 isn't multiarched yet.
8038
8039 2003-06-05  Andrew Cagney  <cagney@redhat.com>
8040
8041         * Makefile.in (value_h): Add $(frame_h).
8042         * value.h: Include "frame.h".
8043         (struct value): Replace "frame_addr" with "frame_id".
8044         (VALUE_FRAME_ID): Replace VALUE_FRAME.
8045         * values.c (allocate_value): Use VALUE_FRAME_ID.
8046         (value_copy): Use VALUE_FRAME_ID.
8047         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
8048         * valops.c (value_assign): Update.  Use frame_find_by_id.
8049
8050 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
8051
8052         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
8053         in each pass.
8054
8055 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
8056
8057         * thread-db.c (check_event): For create/death event breakpoints,
8058         loop through all messages to ensure that we read the message
8059         corresponding to the breakpoint we are at.
8060
8061 2003-06-04  Michael Snyder  <msnyder@redhat.com>
8062
8063         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
8064
8065 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
8066
8067         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
8068         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
8069         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
8070         when handling .eh_frame sections.
8071
8072 2003-06-04  J. Brobecker  <brobecker@gnat.com>
8073
8074         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
8075         prepare_to_proceed procedure instead of the hppa-specific one.
8076         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
8077
8078 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
8079
8080         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
8081         * config.in: Regenerated.
8082         * configure.in: Add test for syscall function and check for
8083         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
8084         * configure: Regenerated.
8085         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
8086         <sys/syscall.h>.
8087         (kill_lwp): New function that uses tkill syscall or
8088         uses kill, depending on whether threading model is nptl or not.
8089         All callers of kill() changed to use kill_lwp().
8090         (lin_lwp_wait): Make special check when WIFEXITED occurs to
8091         see if all threads have already exited in the nptl model.
8092         (stop_and_resume_callback): New callback function used by the
8093         lin_lwp_wait thread exit handling code.
8094         (stop_wait_callback): Check for threads already having exited and
8095         delete such threads fromt the lwp list when discovered.
8096         (stop_callback): Don't assert retcode of kill call.
8097
8098         Roland McGrath  <roland@redhat.com>
8099         * i386-linux-nat.c (ps_get_thread_area): New function needed by
8100         nptl libthread_db.
8101
8102 2003-06-03  Richard Henderson  <rth@redhat.com>
8103
8104         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
8105         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
8106         (alpha_sigtramp_frame_prev_register): Likewise.
8107         (alpha_heuristic_frame_prev_register): Likewise.
8108         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
8109
8110         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
8111         alpha-specific register id names.
8112         (alpha_mdebug_frame_unwind_cache): Likewise.
8113         (alpha_mdebug_frame_prev_register): Likewise.
8114
8115 2003-06-03  Richard Henderson  <rth@redhat.com>
8116
8117         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
8118         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
8119         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
8120         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
8121         unwind routines.
8122         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8123         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8124         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8125
8126         * alpha-linux-tdep.c: Remove unnecessary includes.
8127         * Makefile.in (alpha-linux-tdep.o): Update.
8128
8129 2003-06-03  Richard Henderson  <rth@redhat.com>
8130
8131         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
8132         (alphabsd_fill_fpreg): Likewise.
8133
8134 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8135
8136         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
8137         references to struct frame_info fields by calls to the equivalent
8138         accessors. Necessary now that frame_info is opaque.
8139
8140 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8141
8142         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
8143         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
8144         structure, field no longer exists.
8145
8146 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8147
8148         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8149         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
8150
8151 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8152
8153         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
8154         references to struct frame_info fields by calls to the equivalent
8155         accessors. Necessary now that frame_info is opaque.
8156
8157 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8158
8159         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
8160         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
8161         structure, field no longer exists.
8162
8163 2003-06-03  Theodore A. Roth  <troth@openavr.org>
8164
8165         * remote.c (init_remote_state): Compute sizeof_g_packet by
8166         accumulation of the size of all registers instead of blindly using
8167         DEPRECATED_REGISTER_BYTES.
8168
8169 2003-06-03  Michael Snyder  <msnyder@redhat.com>
8170
8171         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
8172         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
8173         for h8300sx.
8174
8175 2003-06-03  J. Brobecker  <brobecker@gnat.com>
8176
8177         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
8178         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8179
8180 2003-06-03  Andrew Cagney  <cagney@redhat.com>
8181
8182         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
8183         (sparc_convert_to_raw): Delete function.
8184         (sparc_gdbarch_init): Do not set register_convert_to_raw or
8185         register_convert_to_virtual.
8186
8187 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
8188
8189         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
8190         layer if not dealing with a statically-linked threaded program.
8191
8192 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
8193
8194         * solib.c (solib_open): Update comment to reflect actual search order.
8195
8196 2003-06-03  Andrew Cagney  <cagney@redhat.com>
8197
8198         * frame.c (get_frame_memory_signed): New function.
8199         (get_frame_memory, get_frame_memory_unsigned): New function.
8200         (get_frame_arch): New function.
8201         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
8202         (get_frame_memory, get_frame_unsigned_memory): Declare.
8203         * d10v-tdep.c (d10v_frame_unwind_cache): Use
8204         get_frame_memory_unsigned and get_frame_arch.
8205         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
8206
8207 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
8208
8209         * MAINTAINERS (write after approval): Add myself.
8210
8211 2003-06-03  Jim Blandy  <jimb@redhat.com>
8212
8213         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
8214         elements of gregset_t are 64 bits each, but access registers
8215         are still 32 bits, so they're packed two per gregset_t
8216         element.  Unpack/pack them properly.
8217
8218 2003-06-02  David Carlton  <carlton@bactrian.org>
8219
8220         * linespec.c (find_methods): Break out code into
8221         add_matching_methods and add_constructors.
8222         (add_matching_methods): New.
8223         (add_constructors): Ditto.
8224
8225 2003-06-02  Andrew Cagney  <cagney@redhat.com>
8226
8227         * sparc-tdep.c (sparc_print_registers): Delete call to
8228         REGISTER_CONVERTIBLE.
8229         (sparc_gdbarch_init): Do not set register_convertible.
8230         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8231         * frv-tdep.c (frv_gdbarch_init): Ditto.
8232         * cris-tdep.c (cris_gdbarch_init): Ditto.
8233
8234 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
8235
8236         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
8237         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
8238         (syms_from_objfile): Ditto.
8239
8240 2003-06-03  Andreas Schwab  <schwab@suse.de>
8241
8242         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
8243         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
8244
8245 2003-06-02  Richard Henderson  <rth@redhat.com>
8246
8247         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
8248         a member of all_reggroup.
8249
8250 2003-06-02  Richard Henderson  <rth@redhat.com>
8251
8252         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
8253         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
8254         (alpha_lds, alpha_sts): New.
8255         (alpha_convert_register_p): Change from _register_convertible.
8256         (alpha_register_to_value): Change from _convert_to_virtual;
8257         restructure and fail for type sizes other than 4 or 8.
8258         (alpha_value_to_register): Similarly.
8259         (alpha_extract_return_value): Use alpha_sts.
8260         (alpha_store_return_value): Use alpha_lds.
8261         (alpha_gdbarch_init): Update hooks.
8262
8263 2003-06-02  Richard Henderson  <rth@redhat.com>
8264
8265         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
8266         regnum identifiers.
8267         (alpha_sigtramp_register_address): Likewise.
8268
8269 2003-06-02  Richard Henderson  <rth@redhat.com>
8270
8271         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
8272         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
8273         * alpha-tdep.h: Declare them.
8274
8275         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
8276         Remove zerobuf.  Don't error on UNIQUE.
8277         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
8278         (ALPHA_REGSET_UNIQUE): Provide default.
8279         (supply_gregset): Use alpha_supply_int_regs.
8280         (fill_gregset): Use alpha_fill_int_regs.
8281         (supply_fpregset): Use alpha_supply_fp_regs.
8282         (fill_fpregset): Use alpha_fill_fp_regs.
8283         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
8284         (alphabsd_supply_reg): Use alpha_supply_int_regs.
8285         (alphabsd_fill_reg): Use alpha_fill_int_regs.
8286         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
8287         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
8288         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
8289
8290 2003-06-02  Richard Henderson  <rth@redhat.com>
8291
8292         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
8293
8294         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
8295         (alpha_store_return_value): Likewise.
8296
8297 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8298
8299         * block.c (contained_in): Add 'const' to arguments.
8300         (block_function): Ditto.
8301         * block.h: Update declarations for block_function and
8302         contained_in.
8303
8304 2003-06-02  David Carlton  <carlton@math.stanford.edu>
8305
8306         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
8307         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
8308         * p-valprint.c (pascal_val_print): Ditto.
8309         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
8310
8311 2003-06-02  Richard Henderson  <rth@redhat.com>
8312
8313         * alpha-tdep.c (alpha_push_dummy_call): Use
8314         builtin_type_ieee_double_little instead of builtin_type_double.
8315
8316         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
8317         sign-extension of 32-bit values.
8318         (alpha_store_return_value): Similarly.
8319
8320         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
8321         (alpha_extract_return_value): Likewise.
8322         (alpha_store_return_value): Likewise.
8323
8324         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
8325         (alpha_store_return_value): Error on IEEE Quad floats.
8326
8327         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
8328         (alpha_extract_struct_value_address): Likewise.
8329         (alpha_store_return_value): Likewise.
8330         (alpha_store_struct_return): Remove.
8331         (alpha_gdbarch_init): Update hook registration to match.
8332
8333         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
8334         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
8335         macros where appropriate.
8336         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
8337         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
8338
8339         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
8340         for SP, GP; void_func_ptr for PC; non-language-specific types
8341         for all others.
8342         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
8343
8344 2003-06-02  Richard Henderson  <rth@redhat.com>
8345
8346         * top.h (lim_at_start): Declare.
8347         * main.c (captured_main): Set it.
8348         * top.c (lim_at_start): Define.
8349         (command_loop): Use it instead of &environ.
8350         * event-top.c (command_handler): Likewise.
8351
8352 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
8353
8354         * mipsnbsd-tdep.c: Update copyright years.
8355         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
8356
8357 2003-06-01  Richard Henderson  <rth@redhat.com>
8358
8359         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
8360         (alpha-linux-tdep.o): Update dependencies.
8361         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
8362         * alpha-mdebug-tdep.c: Remove unneeded includes.
8363
8364 2003-06-01  Richard Henderson  <rth@redhat.com>
8365
8366         * alpha-tdep.c (alpha_register_reggroup_p): New.
8367         (alpha_gdbarch_init): Register it.
8368
8369 2003-06-02  Andrew Cagney  <cagney@redhat.com>
8370
8371         * dwarfread.c: Eliminate "register"
8372         (decode_die_type): Eliminate assignment within "if".
8373         (struct_type, decode_array_element_type): Ditto.
8374         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
8375         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
8376         (decode_modified_type, completedieinfo): Ditto.
8377         * block.c: Eliminate "register".
8378         (blockvector_for_pc_sect): Eliminate assignment within "if".
8379         * cp-support.h (struct symbol): Opaque declaration.
8380         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
8381
8382 2003-06-01  Richard Henderson  <rth@redhat.com>
8383
8384         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
8385         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
8386
8387 2003-06-01  Adam Fedor  <fedor@gnu.org>
8388
8389         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
8390         * gdbarch.[ch]: Regenerate.
8391         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
8392         (hppa_gdbarch_init): Set it in the gdbarch vector.
8393         * i386-tdep.c (i386_fetch_pointer_argument): New
8394         (i386_gdbarch_init): Set it into gdbarch.
8395         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
8396         (rs6000_gdbarch_init): Set it in gdbarch.
8397         * sparc-tdep.c (sparc_fetch_pointer_argument): New
8398         (sparc_gdbarch_init): Set it in gdbarch.
8399
8400 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8401
8402         * defs.h (extract_address): Delete declaration.
8403         * findvar.c (extract_address): Delete function.
8404         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
8405         extract_address with the inline equivalent,
8406         extract_unsigned_integer.
8407         (xstormy16_extract_struct_value_address): Ditto.
8408         (xstormy16_pointer_to_address): Ditto.
8409         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
8410         * v850-tdep.c (v850_push_arguments): Ditto.
8411         (v850_extract_return_value): Ditto.
8412         (v850_extract_struct_value_address): Ditto.
8413         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
8414         (sparcnbsd_get_longjmp_target_64): Ditto.
8415         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
8416         (get_longjmp_target): Ditto.
8417         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
8418         (sh64_extract_struct_value_address): Ditto.
8419         (sh_push_arguments): Ditto.
8420         (sh64_push_arguments): Ditto.
8421         * remote-vxsparc.c (vx_read_register): Ditto.
8422         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
8423         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
8424         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
8425         * mipsv4-nat.c (get_longjmp_target): Ditto.
8426         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
8427         * mips-nat.c (get_longjmp_target): Ditto.
8428         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
8429         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
8430         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
8431         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
8432         * irix5-nat.c (get_longjmp_target): Ditto.
8433         * irix4-nat.c (get_longjmp_target): Ditto.
8434         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
8435         (ia64_push_arguments): Ditto.
8436         * hpux-thread.c (hpux_thread_store_registers): Ditto.
8437         * h8300-tdep.c (h8300_push_arguments): Ditto.
8438         (h8300_store_return_value): Ditto.
8439         (h8300_extract_struct_value_address): Ditto.
8440         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
8441         (frv_push_arguments): Ditto.
8442         * avr-tdep.c (avr_pointer_to_address): Ditto.
8443         (avr_push_arguments): Ditto.
8444         * arm-tdep.c (arm_push_dummy_call): Ditto.
8445         (arm_get_longjmp_target): Ditto.
8446         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
8447         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
8448         (alpha_get_longjmp_target): Ditto.
8449
8450         * solib-irix.c (extract_mips_address): Inline extract_address,
8451         replacing it with extract_signed_integer.
8452         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8453         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
8454         (first_link_map_member, open_symbol_file_object): Ditto.
8455         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
8456         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
8457         (LM_NEXT, LM_NAME): Ditto.
8458
8459 2003-06-01  Richard Henderson  <rth@redhat.com>
8460
8461         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
8462         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
8463         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
8464         (alpha_cannot_store_register): Likewise.
8465         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
8466         * alpha-nat.c (supply_gregset): Likewise.
8467         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
8468
8469 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8470
8471         * infcall.c (call_function_by_hand): Update comment on
8472         DEPRECATED_DUMMY_WRITE_SP.
8473
8474         * mips-tdep.c (mips_gdbarch_init): Do not set
8475         deprecated_dummy_write_sp.
8476         (mips_eabi_push_dummy_call): Set the SP register.
8477         (mips_o64_push_dummy_call): Set the SP register.
8478         (mips_o32_push_dummy_call): Set the SP register.
8479         (mips_n32n64_push_dummy_call): Set the SP register.
8480
8481 2003-06-01  Richard Henderson  <rth@redhat.com>
8482
8483         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
8484         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
8485         (supply_gregset): Likewise.
8486         * alpha-tdep.c (alpha_store_return_value): Likewise.
8487         (alpha_get_longjmp_target): Likewise.
8488         (alpha_register_name): Constify array.
8489         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
8490         deprecated_register_size, deprecated_register_bytes,
8491         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
8492         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
8493         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
8494
8495 2003-06-01  Richard Henderson  <rth@redhat.com>
8496
8497         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
8498         from arg_reg_buffer to regcache to avoid double conversion.
8499
8500 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8501
8502         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
8503         SP_REGNUM.
8504         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
8505         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
8506
8507 2003-06-01  Richard Henderson  <rth@redhat.com>
8508
8509         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
8510         (decode_frame_entry): Set it.  Skip FDE augmentation.
8511
8512 2003-06-01  Richard Henderson  <rth@redhat.com>
8513
8514         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8515         not overlapping PC_REGNUM.
8516
8517 2003-06-01  Richard Henderson  <rth@redhat.com>
8518
8519         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8520         alpha_push_arguments.  Don't dump argument register data to
8521         the target stack.  Fix float and 128-bit long double semantics.
8522         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
8523         (alpha_fix_call_dummy): Remove.
8524         (alpha_call_dummy_words): Remove.
8525         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
8526
8527 2003-06-01  Richard Henderson  <rth@redhat.com>
8528
8529         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8530
8531 2003-06-01  Andrew Cagney  <cagney@redhat.com>
8532
8533         * mips-tdep.c (is_mips16_addr): New function.
8534         (make_mips16_addr, unmake_mips16_addr): New functions.
8535         (pc_is_mips16, mips_fetch_instruction): Use.
8536         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8537         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8538         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8539         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8540         TARGET_MIPS.
8541         * config/mips/tm-mips.h: Update copyright.
8542         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8543         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8544         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8545         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8546         (TM_PRINT_INSN_MACH): Delete.
8547         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8548
8549         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8550         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8551         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8552         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8553         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
8554         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
8555         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
8556         mips*-*-riscos* and mips*-*-sysv* onto mips.
8557         * config/mips/mips64.mt: New file.
8558         * config/mips/mips.mt: New file.
8559         * config/mips/littlemips.mt: Delete file.
8560         * config/mips/decstation.mt: Delete file.
8561         * config/mips/vr4300el.mt: Delete file.
8562         * config/mips/vr5000el.mt: Delete file.
8563         * config/mips/vr5000.mt: Delete file.
8564         * config/mips/vr4100.mt: Delete file.
8565         * config/mips/vr4xxxel.mt: Delete file.
8566         * config/mips/vr4300.mt: Delete file.
8567         * config/mips/vr4xxx.mt: Delete file.
8568         * config/mips/bigmips.mt: Delete file.
8569         * config/mips/bigmips64.mt: Delete file.
8570         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8571         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8572         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8573         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8574         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8575         "tm-bigmips.h".
8576         * config/mips/tm-irix3.h: Ditto.
8577         * config/mips/tm-mipsv4.h: Ditto.
8578         * config/mips/tm-embed.h: Ditto.
8579         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8580         "tm-bigmips64.h".
8581         * config/mips/tm-vr5000el.h: Delete file.
8582         * config/mips/tm-tx39l.h: Delete file.
8583         * config/mips/tm-vr4300el.h: Delete file.
8584         * config/mips/tm-vr4xxxel.h: Delete file.
8585         * config/mips/tm-vr4300.h: Delete file.
8586         * config/mips/tm-vr4100.h: Delete file.
8587         * config/mips/tm-vr4xxx.h: Delete file.
8588         * config/mips/tm-vr5000.h: Delete file.
8589         * config/mips/tm-embedl64.h: Delete file.
8590         * config/mips/tm-embedl.h: Delete file.
8591         * config/mips/tm-embed64.h: Delete file.
8592         * config/mips/tm-bigmips64.h: Delete file.
8593         * config/mips/tm-bigmips.h: Delete file.
8594
8595 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
8596
8597         Fix gdb/1216.
8598         * shnbsd-nat.c: Include "sh-tdep.h".
8599
8600         From Richard Henderson  <rth@redhat.com>:
8601         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8602
8603 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8604
8605         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
8606         forward declaration.
8607         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8608         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8609         (mips_find_saved_regs): Use set_reg_offset.
8610         (mips_frame_init_saved_regs): Delete function.
8611         (mips_pop_frame): Call mips_find_saved_regs instead of
8612         DEPRECATED_FRAME_INIT_SAVED_REGS.
8613
8614 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8615
8616         * mips-tdep.c (mips_gdbarch_init): Do not set
8617         deprecated_max_register_raw_size, register_virtual_size, and
8618         deprecated_max_register_virtual_size.
8619
8620 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8621
8622         * i386-tdep.c: Include "dwarf2-frame.h".
8623         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8624         * Makefile.in (i386-tdep.o): Update dependencies.
8625
8626         * dwarf2-frame.c, dwarf2-frame.h: New files.
8627         * Makefile.in (SFILES): Add dwarf2-frame.c.
8628         (dwarf2_frame_h): Define.
8629         (COMMON_OBS): Add dwarf2-frame.o.
8630         (dwarf2-frame.o): Add dependencies.
8631
8632 2003-05-31  Andreas Jaeger  <aj@suse.de>
8633
8634         * x86-64-linux-nat.c: Fix comment.
8635
8636 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8637
8638         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8639         function signature.
8640
8641         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8642         have a sigcontext_addr handler.
8643         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8644         sigcontext_addr handler.
8645
8646 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8647
8648         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8649         (print_fp_register_row): Replace do_fp_register_row.
8650         (mips_print_fp_register): Add "file" and "frame" parameters.
8651         (mips_print_register): Add "file" and "frame" parameters.
8652         (mips_print_registers_info): Replace mips_do_registers_info.
8653         (mips_gdbarch_init): Set print_registers_info instead of
8654         deprecated_do_registers_info.
8655         (mips_read_fp_register_single): Add "frame" parameter.
8656         (mips_read_fp_register_double): Add "frame" parameter.
8657
8658 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8659
8660         * i386-tdep.c (i386_register_name): Check for MMX registers first.
8661         Fixes a bug where GDB would print the wrong register names for
8662         targets without SSE.
8663
8664         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8665         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8666         registers.
8667
8668         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8669         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8670         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8671         TDEP->sc_sp_offset.
8672
8673         From Michal Ludvig  <mludvig@suse.cz>:
8674         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8675         and `sc_num_regs'.
8676         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8677         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8678         I386_ST0_REGNUM): Move here from...
8679         * i386-tdep.c: ... here.
8680         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8681         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8682         registers if possible.
8683         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8684         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8685         Remove variables.
8686         (i386bsd_sc_reg_offset): New variable.
8687         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8688         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8689         TDEP->sc_sp_offset.
8690         (i386fbsd_sc_reg_offset): New variable.
8691         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8692         TDEP->sc_num_regs.
8693         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8694         variables.
8695         (i386fbsd4_sc_reg_offset): New variable.
8696         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8697         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8698         TDEP->sc_sp_offset.
8699         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8700         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8701         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8702         Remove variables.
8703         (i386nbsd_sc_reg_offset): New variable.
8704         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8705         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8706         TDEP->sc_sp_offset.
8707         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8708         Remove variables.
8709         (i386obsd_sc_reg_offset): New variable.
8710         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8711         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8712         TDEP->sc_sp_offset.
8713         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8714         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
8715         for frame pointer offset in `struct sigcontext'.
8716
8717 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8718
8719         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8720         architecture methods call_dummy_words, sizeof_call_dummy_words,
8721         push_return_address, store_struct_return, and fix_call_dummy.  Set
8722         push_dummy_call instead of deprecated_push_arguments.
8723         (mips_store_struct_return): Delete function.
8724         (mips_fix_call_dummy): Delete function.
8725         (mips_push_return_address): Delete function.
8726         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8727         RA_REGNUM and T9_REGNUM.
8728         (mips_n32n64_push_dummy_call): Ditto for
8729         mips_n32n64_push_arguments.
8730         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8731         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8732
8733 2003-05-31  Andrew Cagney  <cagney@redhat.com>
8734
8735         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
8736         "dummy_addr" to "bp_addr".
8737         * infcall.c (call_function_by_hand): Pass "funaddr" to
8738         gdbarch_push_dummy_call.
8739         * gdbarch.h, gdbarch.c: Re-generate.
8740         * i386-tdep.c (i386_push_dummy_call): Update.
8741         * arm-tdep.c (arm_push_dummy_call): Update.
8742         * d10v-tdep.c (d10v_push_dummy_call): Update.
8743
8744 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
8745
8746         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8747         variable declarations.
8748         (x86_64_register_number, x86_64_register_name): Remove prototypes.
8749         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8750         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8751         x86_64_init_frame_pc, x86_64_init_frame_pc,
8752         x86_64_function_has_prologue): Remove prototypes.
8753         (X86_64_NUM_GREGS): New define.
8754         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8755         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
8756         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8757         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8758         XMM1_REGNUM): Remove defines.
8759         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8760         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8761         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8762         X86_64_XMM1_REGNUM): New defines.
8763         (struct x86_64_register_info): Renamed from `struct
8764         register_info'.  Remove `size' member.
8765         (x86_64_register_info_table): Remove variable.
8766         (x86_64_register_info): New variable.
8767         (X86_64_NUM_REGS): New define.
8768         (X86_64_NUM_GREGS): Remove define.
8769         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8770         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8771         Remove variables.
8772         (x86_54_dwarf2_reg_to_regnum): Remove function.
8773         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8774         (x86_64_dwarf_reg_to_regnum): New function.
8775         (x86_64_register_name): Rewrite.
8776         (x86_64_register_raw_size): Remove function.
8777         (x86_64_register_byte_table): Remove variable.
8778         (x86_64_register_byte): Remove function.
8779         (x86_64_register_virtual_type): Remove function.
8780         (x86_64_register_type): New function.
8781         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8782         x86_64_register_convert_to_raw): Remove functions.
8783         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8784         (x86_64_use_struct_convention): Make static.  Adjust for renamed
8785         defines.
8786         (x86_64_frame_init_saved_regs): Remove function.
8787         (x86_64_push_arguments): Make static.  Change to accept a regcache
8788         as argument.
8789         (x86_64_store_return_value, x86_64_extract_return_value): Make
8790         static.  Rewrite based on i386 counterparts.
8791         (x86_64_push_dummy_call): New function.
8792         (X86_64_NUM_SAVED_REGS): New define.
8793         (x86_64_register_number): Remove function.
8794         (x86_64_store_struct_return): Remove function.
8795         (x86_64_frameless_function_invocation,
8796         x86_64_function_has_prologue): Remove functions.
8797         (PROLOG_BUFSIZE): Remove define.
8798         (struct x86_64_frame_cache): New structure.
8799         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8800         x86_64_frame_cache, x86_64_frame_this_id,
8801         x86_64_frame_prev_register, x86_64_frame_p,
8802         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8803         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8804         functions.
8805         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8806         variables.
8807         (x86_64_skip_prologue): Rewrite in terms of
8808         x86_64_analyze_prologue.
8809         (x86_64_frame_base_address): New function.
8810         (x86_64_frame_base): New variable.
8811         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8812         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
8813         set deprecated_fp_regnum, deprecated_register_size,
8814         deprecated_register_bytes, register_raw_size, register_byte,
8815         register_virtual_type, register_convertiable,
8816         register_convert_to_virtual, convert_to_raw,
8817         deprecated_get_saved_register, deprecated_target_read_fp,
8818         deprecated_push_arguments, deprecated_push_return_address,
8819         deprecated_pop_frame, deprecated_store_struct_return,
8820         deprecated_frame_init_saved_regs, deprecated_frame_chain,
8821         frameless_function_invocation, deprecated_frame_saved_pc,
8822         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8823         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8824         deprecated_init_frame_pc and virtual_frame_pointer.  Call
8825         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8826         and x86_64_frame_p.  Call frame_base_set_default to register
8827         x86_64_frame_base.
8828         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8829         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8830         (_initialize_x86_64_tdep): Remove function.
8831         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8832         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8833         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8834         define.
8835         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8836         (x86_64_linux_sigcontext_addr): Rewrite.
8837         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8838         x86_64_linux_frame_saved_pc): Remove functions.
8839         (x86_64_linux_pc_in_sigtramp): Renamed from
8840         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
8841         trampoline.
8842         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8843         Remove_functions.
8844         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
8845         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8846         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8847         (x86_64_regmap): Rename to regmap.
8848         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8849         x86_64_num_gregs.
8850         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
8851         x86_64_regmap.
8852         (x86_64_fxsave_offset): Remove function.
8853         (supply_fpregset): Simply call x86_64_supply_fxsave.
8854         (fill_fpregset): Simply call x86_64_fill_fxsave.
8855         (fetch_inferior_registers, store_inferior_registers): Avoid
8856         asignment in if-statement.
8857         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8858         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8859         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8860         (fetch_core_registers): Remove function.
8861         (linux_elf_core_fns): Remove.
8862         (offsetoff): Don't define.
8863         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8864         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8865         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8866         add core-regset.o.
8867         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8868         protection against multiple includes instead of NM_X86_64_h.  Add
8869         various comments.  Include "config/nm-linux.h".  Don't include
8870         <signal.h>.
8871         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8872         GET_THREAD_SIGNALS): Remove defines.
8873         (x86_64_register_u_addr, kernel_u_size,
8874         lin_thread_get_thread_signals): Remove prototypes.
8875         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8876         [HAVE_LINK_H]: Don't include "solib.h".
8877         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8878         * config/i386/tm-x86-64linux.h: Fix comments.
8879         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8880         x86-64-tdep.o): Update dependencies.
8881
8882 2003-05-30  Andrew Cagney  <cagney@redhat.com>
8883
8884         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8885         Change parameter type to a "struct regcache *".
8886
8887         * gdbarch.sh: Regardless of the multi-arch level, always define
8888         the macro when not already defined.
8889         * gdbarch.h, gdbarch.c: Re-generate.
8890
8891 2003-05-30  Richard Henderson  <rth@redhat.com>
8892
8893         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8894         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8895         (alpha_mdebug_frame_this_id): Likewise.
8896         (alpha_mdebug_frame_prev_register): Likewise.
8897         (alpha_mdebug_frame_base_address): Likewise.
8898         (alpha_mdebug_frame_locals_address): Likewise.
8899         (alpha_mdebug_frame_args_address): Likewise.
8900         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8901         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8902         (alpha_heuristic_frame_unwind_cache): Make static; add missing
8903         loop increment.
8904         (alpha_heuristic_frame_this_id): Make static.
8905         (alpha_heuristic_frame_prev_register): Likewise.
8906         (alpha_heuristic_frame_base_address): Likewise.
8907         * alpha-tdep.h: Update.
8908
8909 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
8910
8911         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8912         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8913         defenitions.
8914         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8915         * i386-tdep.c: Mark functions that are 64-bit safe as such.
8916         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8917         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8918         I386_ST0_REGNUM): New defines.
8919         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8920         codestream_get): Remove define.
8921         (codestream_next_addr, condestream_addr, condestream_buf,
8922         codestream_off, codestream_cnt): Remove variables.
8923         (codestream_fill, codestream_seek, codestream_read): Remove
8924         functions.
8925         (i386_follow_jump): Rewrite to avoid usage of removed codestream
8926         functionality.
8927         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8928         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8929         i386_frame_saved_pc, i386_saved_pc_after_call,
8930         i386_frame_num_args, i386_frame_init_saved_regs,
8931         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8932         i386_push_arguments): Remove functions.
8933         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8934         functionality.  Use i386_analyze_prologue instead of
8935         i386_get_frame_setup.
8936         (I386_NUM_SAVED_REGS): New define.
8937         (struct i386_frame_cache): New structure.
8938         (i386_alloc_frame_cache, i386_analyze_struct_return,
8939         i386_skip_probe, i386_analyze_frame_setup,
8940         i386_analyze_register_saves, i386_analyze_prologue,
8941         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8942         i386_frame_prev_register, i386_sigtramp_frame_cache,
8943         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8944         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8945         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8946         New functions.
8947         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8948         New variables.
8949         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8950         I386_EAX_REGNUM and I386_EDX_REGNUM.
8951         (i386_extract_return_value, i386_store_return_value): Use
8952         I386_ST0_REGNUM where appropriate.
8953         (i386_extract_struct_value_address): Rewrite to use extract_address.
8954         (i386_svr4_pc_in_sigtramp): Add comment.
8955         (i386_svr4_sigcontext_addr): Rewrite.
8956         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8957         TDEP->sc_sp_offset.
8958         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
8959         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8960         of new defines.  Set push_dummy_call, don't set
8961         deprecated_push_arguments, deprecated_push_return_address,
8962         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
8963         deprecated_frame_chain, deprecated_frame_saved_pc,
8964         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
8965         save_dummy_frame_tos, unwind_pc.  Call
8966         frame_unwind_append_predicate and frame_base_set_default.  Don't
8967         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
8968         Don't set frameless_function_invocation.  Don't set
8969         deprecated_register_bytes, deprecated_register_size,
8970         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8971         * i386-linux-tdep.c: Fix formatting in some comments.
8972         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8973         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8974         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8975         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8976         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8977         redundant parentheses.
8978         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8979         (i386_linux_sigcontext_addr): Use it.  Rewrite.
8980         (find_minsym_and_objfile): Change name of second argument.
8981         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
8982         changed.  Use frame_pc_unwind instead of
8983         DEPRECATED_SAVED_PC_AFTER_CALL.
8984         (i386_linux_init_abi): Don't set deprecated_register_bytes.
8985         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8986         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8987         unwinder.
8988         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8989         "dummy-frame.h".
8990         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8991         (_initialize_i386_cygwin_tdep): New prototype.
8992         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8993         deprecated_frame_chain_valid.
8994         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8995         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8996         Rely on the SVR4 defaults.
8997         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8998         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8999
9000 2003-05-30  Andrew Cagney  <cagney@redhat.com>
9001
9002         * infcall.c (call_function_by_hand): Always call
9003         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
9004
9005 2003-05-30  Richard Henderson  <rth@redhat.com>
9006
9007         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
9008         increment.
9009
9010 2003-05-29  Jim Blandy  <jimb@redhat.com>
9011
9012         Use gdbarch methods for solib stuff on PowerPC Linux.
9013         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
9014         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
9015         show through.
9016         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
9017         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
9018         giving the same effect as the #definitions above.
9019
9020 2003-05-29  Adam Fedor  <fedor@gnu.org>
9021
9022         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
9023         (find_implementation_from_class): Replace it with the standard
9024         case i.e. do nothing.
9025
9026 2003-05-29  Richard Henderson  <rth@redhat.com>
9027
9028         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
9029         (alpha_linux_sigtramp_offset): Use it.  Make static.
9030         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
9031         update for new frame model.
9032         * alpha-mdebug-tdep.c: New file.
9033         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
9034         (alpha_osf1_init_abi): Install it.
9035         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
9036         (linked_proc_desc_table): Remove.
9037         (alpha_frame_past_sigtramp_frame): Remove.
9038         (alpha_dynamic_sigtramp_offset): Remove.
9039         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
9040         (alpha_proc_desc_is_dyn_sigtramp): Remove.
9041         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
9042         (push_sigtramp_desc): Remove.
9043         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
9044         (alpha_cannot_store_register): Likewise.
9045         (alpha_sigcontext_addr): Remove.
9046         (alpha_find_saved_regs): Remove.
9047         (alpha_frame_init_saved_regs): Remove.
9048         (alpha_init_frame_pc_first): Remove.
9049         (read_next_frame_reg): Remove.
9050         (alpha_frame_saved_pc): Remove.
9051         (alpha_saved_pc_after_call): Remove.
9052         (temp_proc_desc, temp_saved_regs): Remove.
9053         (alpha_about_to_return): Remove.
9054         (cached_proc_desc): Remove.
9055         (alpha_frame_chain): Remove.
9056         (alpha_print_extra_frame_info): Remove.
9057         (alpha_init_extra_frame_info): Remove.
9058         (alpha_frame_locals_address): Remove.
9059         (alpha_frame_args_address): Remove.
9060         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
9061         (alpha_push_dummy_frame): Remove.
9062         (alpha_pop_frame): Remove.
9063         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
9064         (alpha_read_insn): New.
9065         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
9066         for different insn encodings.
9067         (alpha_in_lenient_prologue): Remove.
9068         (struct alpha_sigtramp_unwind_cache): New.
9069         (alpha_sigtramp_frame_unwind_cache): New.
9070         (alpha_sigtramp_register_address): New.
9071         (alpha_sigtramp_frame_this_id): New.
9072         (alpha_sigtramp_frame_prev_register): New.
9073         (alpha_sigtramp_frame_unwind): New.
9074         (alpha_sigtramp_frame_p): New.
9075         (struct alpha_heuristic_unwind_cache): New.
9076         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
9077         don't count nop insns that occur between functions.
9078         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
9079         heuristic_proc_desc, but without the mdebug wrapping.
9080         (alpha_heuristic_frame_this_id): New.
9081         (alpha_heuristic_frame_prev_register): New.
9082         (alpha_heuristic_frame_unwind): New.
9083         (alpha_heuristic_frame_p): New.
9084         (alpha_heuristic_frame_base_address): New.
9085         (alpha_heuristic_frame_base): New.
9086         (alpha_unwind_dummy_id): New.
9087         (alpha_unwind_pc): New.
9088         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
9089         frame related deprecated initializations; install replacements.
9090         (alpha_dump_tdep): Remove.
9091         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
9092         (alpha_read_insn, alpha_after_prologue,
9093         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
9094         alpha_heuristic_frame_prev_register,
9095         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
9096         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
9097         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
9098         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
9099
9100 2003-05-29  Andrew Cagney  <cagney@redhat.com>
9101
9102         * gdb_assert.h (gdb_assert_fail): Provide different definitions
9103         dependant on the availability of ASSERT_FUNCTION.
9104         (ASSERT_FUNCTION): Do not define when there is no function name.
9105
9106 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
9107
9108         From Jimi X <jimix@watson.ibm.com>:
9109         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
9110
9111 2003-05-28  Jim Blandy  <jimb@redhat.com>
9112
9113         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
9114         argument to ptrace to int; the system headers should give it the
9115         right type, and pointers don't fit in ints on powerpc64-*-*.
9116
9117 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
9118
9119         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
9120         DW_TAG_catch_block.
9121
9122 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
9123
9124         * stabsread.c (dbx_lookup_type): Make static.
9125         (read_type): Ditto.
9126         (add_undefined_type): Ditto.
9127         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
9128         not export.
9129
9130 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
9131
9132         * hpread.c (hpread_has_name): Make static.
9133         (hpread_psymtab_to_symtab): Ditto.
9134         (file_exists): Ditto.
9135         (hpread_call_pxdb): Ditto.
9136         (hpread_pxdb_needed): Ditto.
9137         (hpread_quick_traverse): Ditto.
9138         (hpread_get_header): Ditto.
9139         (hpread_get_lntt): Ditto.
9140         (hpread_get_slt): Ditto.
9141         (class_of): Ditto.
9142
9143 2003-05-25  Andreas Schwab  <schwab@suse.de>
9144
9145         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
9146         stack_align and deprecated_extra_stack_alignment_needed.
9147         (m68k_stack_align): Delete.
9148
9149         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
9150         (m68k_register_virtual_size): Likewise.
9151         (altos_skip_prologue): Remove obsolete function.
9152         (isi_frame_num_args): Likewise.
9153         (news_frame_num_args): Likewise.
9154         (m68k_fix_call_dummy): Make static.
9155         (m68k_push_dummy_frame): Likewise.
9156         (m68k_pop_frame): Likewise.
9157         (m68k_skip_prologue): Likewise.
9158         (m68k_frame_init_saved_regs): Likewise.
9159         (m68k_saved_pc_after_call): Likewise.
9160         (m68k_get_longjmp_target): Make multi-arch.
9161         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
9162         structure.  Register m68k_get_longjmp_target if enabled.
9163         * m68k-tdep.h (struct gdbarch_tdep): Define.
9164         * config/m68k/tm-m68k.h: Don't include "regcache.h".
9165
9166         * Makefile.in (config.status): Also depend on configure.tgt
9167         and configure.host.
9168         (m68klinux-tdep.o): Update dependencies.
9169         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
9170         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
9171         (M68K_LINUX_JB_PC): Define.
9172         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
9173         and take additional parameter.
9174         (m68k_linux_sigtramp_saved_pc): Update.
9175         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
9176         m68k_linux_pc_in_sigtramp, in_plt_section,
9177         find_solib_trampoline_target.
9178         * config/m68k/tm-linux.h: Don't include any tm headers.
9179         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
9180         (JB_ELEMENT_SIZE): Likewise.
9181         (JB_PC): Likewise.
9182         (GET_LONGJMP_TARGET): Likewise.
9183         (IN_SIGTRAMP): Likewise.
9184         (SVR4_SHARED_LIBS): Define this and include "solib.h".
9185
9186 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
9187
9188         * sparc-tdep.c (sparc32_do_push_arguments): New function.
9189         (sparc32_push_arguments): Re-implement by calling
9190         sparc32_do_push_arguments.
9191
9192 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
9193
9194         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
9195         SPARC_O1_REGNUM): New defines.
9196         (sparc32_extract_return_value): Rewrite to operate on a regcache.
9197         (sparc32_store_return_value): New function.
9198         (sparc_extract_struct_value_address): Rewrite to operate on a
9199         regcache.
9200         (sparc_gdbarch_init): Don't set
9201         deprecated_extract_struct_value_address.  Set
9202         extract_struct_value_address instead. Don't set
9203         deprecated_extract_return_value and deprecated_store_return_value
9204         for 32-bit targets.  Set extract_return_value and
9205         store_return_value instead.
9206         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
9207         DEPRECATED_EXTRACT_RETURN_VALUE,
9208         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
9209         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
9210         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
9211         (sparc_store_return_value): Remove prototype.
9212         (sparc32_store_return_value): New prototype.
9213         (sparc32_extract_return_value, sparc_extract_struct_value_address):
9214         Adjust prototypes.
9215
9216 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
9217
9218         * sparcnbsd-tdep.c: Include "gdb_string.h".
9219
9220 2003-05-23  Andrew Cagney  <cagney@redhat.com>
9221
9222         * p-valprint.c (pascal_val_print): Replace extract_address with
9223         the inline equivalent extract_unsigned_integer.
9224         * jv-valprint.c (java_value_print): Ditto.
9225         * ada-valprint.c (ada_val_print_1): Ditto.
9226         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
9227
9228 2003-05-23  Theodore A. Roth  <troth@openavr.org>
9229
9230         * blockframe.c (frameless_look_for_prologue): Remove unused
9231         after_prologue variable.
9232
9233 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
9234
9235         * blockframe.c (get_pc_function_start): Rewrite to avoid
9236         asignments in if-statements.
9237
9238 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
9239
9240         Committed by Elena Zannoni  <ezannoni@redhat.com>.
9241         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
9242         files, don't relocate absolute symbols (and do use mst_abs).
9243
9244 2003-05-23  Andrew Cagney  <cagney@redhat.com>
9245
9246         * objc-lang.c: Include "gdb_assert.h".
9247         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
9248         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
9249         (gdb_check, gdb_check_fatal): Delete functions.
9250         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
9251         gdb_assert.
9252         (parse_selector, parse_method, find_methods, find_imps): Ditto.
9253         * Makefile.in (objc-lang.o): Update dependencies.
9254
9255 2003-05-22  Ian Lance Taylor  <ian@airs.com>
9256
9257         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
9258         with fprintf_filtered, not fprintf_unfiltered.
9259
9260 2003-05-22  Andrew Cagney  <cagney@redhat.com>
9261
9262         * stack.c (frame_info): Inline extract_address, replacing it with
9263         extract_unsigned_integer.
9264         * findvar.c (unsigned_pointer_to_address): Ditto.
9265         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
9266         * dwarf2expr.c (dwarf2_read_address): Ditto.
9267         * frame.c (frame_pc_unwind): Update comment.
9268         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
9269
9270 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
9271
9272         * infptrace.c (detach): Call print_sys_errmsg rather than
9273         perror_with_name to issue warning message when errno is non-zero
9274         after calling ptrace detach.
9275
9276 2003-05-21  J. Brobecker  <brobecker@gnat.com>
9277
9278         * config/pa/tm-hppa.h: Delete some unused macros. Move some
9279         macro definitions from here...
9280         * hppa-tdep.c: ...to there.
9281
9282 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
9283
9284         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
9285         register_ptrace_addr().  Fix all callers.
9286
9287 2003-05-21  Andreas Schwab  <schwab@suse.de>
9288
9289         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
9290         dependencies.
9291         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
9292         end.
9293         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
9294         (_initialize_m68k_linux_tdep): New function.
9295         (m68k_linux_frame_saved_pc): Make static.
9296         (m68k_linux_extract_return_value): Likewise.
9297         (m68k_linux_store_return_value): Likewise.
9298         (m68k_linux_extract_struct_value_address): Likewise.
9299         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
9300         Remove.
9301         (DEPRECATED_STORE_RETURN_VALUE): Remove.
9302         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
9303         (DEPRECATED_FRAME_SAVED_PC): Remove.
9304
9305 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
9306
9307         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
9308         regset numbering rather than our own.
9309
9310 2003-05-19  David Carlton  <carlton@bactrian.org>
9311
9312         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
9313
9314 2003-05-19  David Carlton  <carlton@bactrian.org>
9315
9316         Partial fix for PR c++/827.
9317         * cp-support.h: Include symtab.h.
9318         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
9319         * cp-namespace.c: Update contributors.
9320         (cp_lookup_symbol_nonlocal): New.
9321         (lookup_namespace_scope, cp_lookup_symbol_namespace)
9322         (lookup_symbol_file): Ditto.
9323         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
9324         * block.h: Declare block_scope, block_using, block_global_block.
9325         * block.c (block_scope): New.
9326         (block_using, block_global_block): Ditto.
9327         * Makefile.in (cp_support_h): Depend on symtab_h.
9328         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
9329
9330 2003-05-19  David Carlton  <carlton@bactrian.org>
9331
9332         * language.h (struct language_defn): Add 'la_value_of_this'
9333         and 'la_lookup_symbol_nonlocal' members.
9334         * symtab.h: Declare basic_lookup_symbol_nonlocal,
9335         lookup_symbol_static, lookup_symbol_global,
9336         lookup_symbol_aux_block.
9337         * symtab.c (lookup_symbol_aux): Call language hooks to determine
9338         if we should search fields of this and how to do static/global
9339         lookup.
9340         (lookup_symbol_aux_block): Make extern.
9341         (basic_lookup_symbol_nonlocal): New.
9342         (lookup_symbol_static, lookup_symbol_global): Ditto.
9343         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
9344         'la_lookup_symbol_nonlocal' members.
9345         * c-lang.c (c_language_defn, cplus_language_defn)
9346         (asm_language_defn, minimal_language_defn): Ditto.
9347         * jv-lang.c (java_language_defn): Ditto.
9348         * language.c (unknown_language_defn, auto_language_defn)
9349         (local_language_defn): Ditto.
9350         * m2-lang.c (m2_language_defn): Ditto.
9351         * objc-lang.c (objc_language_defn): Ditto.
9352         * scm-lang.c (scm_language_defn): Ditto.
9353         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
9354         * p-lang.c (pascal_language_defn): Ditto for both.
9355         * Makefile.in (f-lang.o): Depend on value_h.
9356         (p-lang.o): Ditto.
9357
9358 2003-05-19  David Carlton  <carlton@bactrian.org>
9359
9360         * block.h: Declare block_static_block.
9361         * block.c (block_static_block): New.
9362         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
9363         lookup_symbol_aux_local, calling block_static_block instead.
9364         (lookup_symbol_aux_local): Delete 'static_block' argument.
9365
9366 2003-05-19  David Carlton  <carlton@bactrian.org>
9367
9368         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
9369
9370 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
9371
9372         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
9373         register numbers mapping.
9374
9375 2003-05-18  Adam Fedor  <fedor@gnu.org>
9376
9377         * symtab.c (completion_list_objc_symbol): New function.
9378         (make_symbol_completion_list): Use it to add ObjC symbols
9379         when looking though the list.
9380         (language_search_unquoted_string): New function.
9381         (make_file_symbol_completion_list): Use it.
9382
9383 2003-05-18  Andreas Schwab  <schwab@suse.de>
9384
9385         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
9386         dependencies.
9387         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
9388         as m68k_linux_extract_return_value.
9389         (DEPRECATED_STORE_RETURN_VALUE): Define as
9390         m68k_linux_store_return_value.
9391         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9392         m68k_linux_extract_struct_value_address.
9393         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
9394         get_next_frame, get_frame_base, get_frame_pc.
9395         (m68k_linux_frame_saved_pc): Use get_frame_base.
9396         (m68k_linux_extract_return_value): New function.
9397         (m68k_linux_store_return_value): New function.
9398         (m68k_linux_extract_struct_value_address): New function.
9399         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
9400
9401         * c-exp.y (typebase): Remove duplicate occurence of
9402         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
9403         of lookup_signed_typename.
9404
9405 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
9406
9407         * dwarf2loc.c (find_location_expression): Change type of second
9408         argument to `size_t *'.
9409         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
9410         for size variable.
9411
9412 2003-05-18  David Carlton  <carlton@bactrian.org>
9413
9414         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
9415         'linkage_name'.  Add comment.
9416         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
9417         'linkage_name'.
9418         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9419         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
9420         (lookup_block_symbol): Ditto.
9421
9422 2003-05-16  Andrew Cagney  <cagney@redhat.com>
9423
9424         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
9425         * gdbarch.h, gdbarch.c: Re-generate.
9426         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
9427         * TODO (REGISTER_BYTES): Delete reference.
9428         * alpha-tdep.c (alpha_gdbarch_init): Update.
9429         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9430         * x86-64-tdep.c (x86_64_init_abi): Update.
9431         * vax-tdep.c (vax_gdbarch_init): Update.
9432         * v850-tdep.c (v850_gdbarch_init): Update.
9433         * sparc-tdep.c (sparc_gdbarch_init): Update.
9434         * sh-tdep.c (sh_gdbarch_init): Update.
9435         * s390-tdep.c (s390_gdbarch_init): Update.
9436         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9437         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
9438         (ns32k_gdbarch_init_32382): Update.
9439         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9440         * mcore-tdep.c (mcore_gdbarch_init): Update.
9441         * m68k-tdep.c (m68k_gdbarch_init): Update.
9442         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9443         * ia64-tdep.c (ia64_gdbarch_init): Update.
9444         * i386-tdep.c (i386_gdbarch_init): Update.
9445         * i386-linux-tdep.c (i386_linux_init_abi): Update.
9446         * hppa-tdep.c (hppa_gdbarch_init): Update.
9447         * h8300-tdep.c (h8300_gdbarch_init): Update.
9448         * frv-tdep.c (frv_gdbarch_init): Update.
9449         * cris-tdep.c (cris_gdbarch_init): Update.
9450         * avr-tdep.c (avr_gdbarch_init): Update.
9451         * arm-tdep.c (arm_gdbarch_init): Update.
9452         * sparc-tdep.c (sparc_pop_frame): Update.
9453         * rs6000-tdep.c (rs6000_pop_frame): Update.
9454         * remote.c (init_remote_state): Update.
9455         (remote_prepare_to_store): Update.
9456         * remote-vx.c (vx_prepare_to_store): Update.
9457         * remote-sds.c (sds_fetch_registers): Update.
9458         (sds_prepare_to_store): Update.
9459         * remote-array.c: Update.
9460         * regcache.c (init_legacy_regcache_descr): Update.
9461         (init_regcache_descr): Update.
9462         * mips-tdep.c (mips_eabi_extract_return_value): Update.
9463         (mips_o64_extract_return_value): Update.
9464         * irix5-nat.c (fetch_core_registers): Update.
9465         * irix4-nat.c (fetch_core_registers): Update.
9466         * i386-tdep.h: Update.
9467         * hppa-tdep.c (pa_do_registers_info): Update.
9468         (pa_do_strcat_registers_info): Update.
9469         * cris-tdep.c (cris_register_bytes_ok): Update.
9470         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
9471         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
9472         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
9473         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
9474         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
9475         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
9476         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
9477         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
9478         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
9479         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
9480         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
9481         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
9482         (REGISTER_BYTES_OK): Update.
9483         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
9484         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
9485
9486 2003-05-16  Ian Lance Taylor  <ian@airs.com>
9487
9488         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
9489         (vax_print_insn, print_insn_arg): Remove static functions.
9490         (vax_gdbarch_init): Call set_gdbarch_print_insn with
9491         print_insn_vax from opcodes library.
9492         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
9493
9494 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9495
9496         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
9497         * target.h (memory_breakpoint_from_pc): Delete declaration.
9498         * mem-break.c (memory_breakpoint_from_pc): Delete function.
9499         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
9500         * monitor.c (monitor_insert_breakpoint): Use
9501         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
9502         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
9503         * gdbarch.h, gdbarch.c: Re-generate.
9504         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
9505         (sparc_gdbarch_init): Set breakpoint_from_pc to
9506         sparc_breakpoint_from_pc.
9507         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
9508         (BREAKPOINT_FROM_PC): Define.
9509         (sparc_breakpoint_from_pc): Declare.
9510         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
9511         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
9512         (BREAKPOINT_FROM_PC): Define.
9513         (BREAKPOINT): Delete macro.
9514         * target.h: Update comment.
9515         * s390-tdep.c (s390_gdbarch_init): Update comments.
9516         * remote.c: Update comments.
9517         * remote-mips.c: Update comments.
9518         * proc-api.c (write_with_trace): Do not check for a breakpoint.
9519         * mem-break.c: Update comment.
9520         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9521         (ia64_memory_insert_breakpoint): Update.
9522         * config/sparc/tm-sparc.h: Update comment.
9523         * config/pa/tm-hppa64.h: Update comment.
9524         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9525         (rs6000_breakpoint_from_pc): Update.
9526         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9527         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9528         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9529         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9530         (mips_breakpoint_from_pc): Update.
9531         (mips_dump_tdep): Update.
9532
9533         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9534         * minsyms.c (lookup_minimal_symbol): Inline
9535         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
9536
9537         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9538         * p-valprint.c (pascal_object_print_value_fields): Ditto.
9539         * p-lang.c (pascal_printstr): Ditto.
9540         * objc-lang.c (objc_printstr): Ditto.
9541         * m2-lang.c (m2_printstr): Ditto.
9542         * jv-valprint.c (java_print_value_fields): Ditto.
9543         * f-lang.c (f_printstr): Ditto.
9544         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
9545         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9546         for repeat_count_threshold.
9547         * Makefile.in (cp-valprint.o): Update dependencies.
9548
9549 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
9550
9551         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9552         (examine_prologue): Support looking through leaf functions, knowing
9553         they start with mov r2,r12.  Support skipping over indirect stores
9554         of the input registers.  Upon hitting a non-nop branch instruction
9555         or predicated instruction, bail out by setting lim_pc to the current
9556         pc value in the loop.  At the end, if the lim_pc value is still
9557         beyond our calculated value and we have trust_limit set,
9558         use the lim_pc value.
9559
9560 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9561
9562         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9563         generic_find_dummy_frame.
9564         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9565         (deprecated_generic_find_dummy_frame): Update.
9566         (deprecated_read_register_dummy): Update.
9567         * frame.c (deprecated_generic_get_saved_register): Update.
9568
9569 2003-05-15  Theodore A. Roth  <troth@openavr.org>
9570
9571         * avr-tdep.c (avr_breakpoint_from_pc): New function.
9572         (avr_gdbarch_init): Set breakpoint_from_pc method.
9573
9574 2003-05-15  Andrew Cagney  <cagney@redhat.com>
9575
9576         * regcache.c (build_regcache): Set deprecated_register_valid
9577         directly.
9578         (deprecated_grub_regcache_for_register_valid): Delete function.
9579         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9580         declaration.
9581
9582 2003-05-15  David Carlton  <carlton@bactrian.org>
9583
9584         Committed by Elena Zannoni <ezannoni@redhat.com>
9585         * symtab.c (lookup_symbol_aux): Delete calls to
9586         lookup_symbol_aux_minsyms.
9587         (lookup_symbol_aux_minsyms): Comment out function and
9588         prototype. Delete lookup by mangled name.
9589
9590 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
9591
9592         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9593         correctly indicate an empty stack and ``stack_allocated'' to the
9594         indicate the number of elements initially allocated.
9595         (dwarf_expr_grow_stack): Simplify method for computing new
9596         stack size.  Don't loop infinitely if ``stack_len'' is zero.
9597         (execute_stack_op): Move ``ctx->in_reg'' initialization
9598         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9599         be used in conjuction with DW_OP_piece.  Revise error message
9600         accordingly.
9601
9602 2003-05-14  Theodore A. Roth  <troth@openavr.org>
9603
9604         * MAINTAINERS: Update my email address.
9605         * avr-tdep.c: Ditto.
9606
9607 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
9608
9609         * symtab.h (enum domain_enum): Rename from namespace_enum.
9610         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9611         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9612         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9613         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9614         TYPES_NAMESPACE, METHODS_NAMESPACE.
9615         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9616         (struct symbol, struct partial_symbol): Rename field
9617         'namespace_enum namespace' to 'domain_enum domain'.
9618         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9619         Delete old define kludge for namespace.
9620
9621         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9622         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9623         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9624         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9625         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9626         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9627         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9628         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9629         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9630         occurrences of the above.
9631
9632 2003-05-14  Ian Lance Taylor  <ian@airs.com>
9633
9634         * Makefile.in (install-only): Use $(SHELL) when running
9635         mkinstalldirs.
9636
9637 2003-05-13  Ian Lance Taylor  <ian@airs.com>
9638
9639         * MAINTAINERS (write after approval): Add myself.
9640
9641         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9642         second and third arguments.
9643         * ser-tcp.c (_initialize_ser_tcp): Likewise.
9644         * ser-unix.c (_initialize_ser_hardwire): Likewise.
9645
9646 2003-05-13  Andrew Cagney  <cagney@redhat.com>
9647
9648         * defs.h (store_address): Delete declaration.
9649         findvar.c (store_address): Delete function.
9650         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9651         store_unsigned_integer.
9652         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9653         * v850-tdep.c (v850_push_arguments): Ditto.
9654         * sparc-tdep.c (sparc_get_saved_register): Ditto.
9655         * sh-tdep.c (sh64_get_saved_register): Ditto.
9656         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9657         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9658         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9659         (mips_get_saved_register): Ditto.
9660         * ia64-tdep.c (ia64_get_saved_register): Ditto.
9661         (find_func_descr, ia64_push_arguments): Ditto.
9662         * i386-tdep.c (i386_push_arguments): Ditto.
9663         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9664         * frv-tdep.c (frv_push_arguments): Ditto.
9665         * frame.c (legacy_saved_regs_prev_register): Ditto.
9666         (deprecated_generic_get_saved_register): Ditto.
9667         * findvar.c (unsigned_address_to_pointer): Ditto.
9668         * dwarf2read.c (dwarf2_const_value): Ditto.
9669         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9670         * alpha-tdep.c (alpha_push_arguments): Ditto.
9671
9672 2003-05-12  J. Brobecker  <brobecker@gnat.com>
9673
9674         * NEWS: Mention that the hppa-hpux port has been partially
9675         multiarched (32bit ABIT only, so far).
9676
9677 2003-05-11  Andrew Cagney  <cagney@redhat.com>
9678
9679         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9680         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9681         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9682         sim/testsuite/sim/arm/misaligned2.ms, and
9683         sim/testsuite/sim/arm/misaligned3.ms.
9684         * disasm.h (struct ui_file): Add opaque struct declaration.
9685         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9686         * frame.h (struct ui_file): Ditto.
9687
9688 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
9689
9690         * value.h: Pretty print.
9691
9692 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
9693
9694         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9695
9696 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9697
9698         * regcache.h (max_register_size): Delete declaration.
9699         * regcache.c (max_register_size): Delete function.
9700         (struct regcache_descr): Delete field "max_register_size".
9701         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9702         registers fit in MAX_REGISTER_SIZE.
9703         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9704         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9705         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9706         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9707         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9708         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9709         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9710         * dve3900-rom.c, hppa-tdep.c: Ditto.
9711
9712 2003-05-08  David Carlton  <carlton@math.stanford.edu>
9713
9714         * valops.c (push_word): Fix typo.
9715
9716 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9717
9718         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9719         * gdbarch.h: Re-generate.
9720         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9721         (legacy_max_register_raw_size): Delete declaration.
9722         * regcache.c (legacy_max_register_raw_size): Delete function.
9723         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9724         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9725         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9726         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9727         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9728         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9729         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9730         * findvar.c, dwarf2cfi.c: Ditto.
9731
9732 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9733
9734         * mips-tdep.c (read_signed_register): New function, moved to here
9735         from "regcache.c".
9736         (read_signed_register_pid): Ditto.
9737         * regcache.c (read_signed_register_pid): Delete function, moved to
9738         "mips-tdep.c".
9739         (read_signed_register): Ditto.
9740         * regcache.h (read_signed_register): Delete declaration.
9741         (read_signed_register_pid): Delete declaration.
9742
9743 2003-05-08  Andrew Cagney  <cagney@redhat.com>
9744
9745         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9746         * gdbarch.h: Re-generate.
9747         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9748         (legacy_max_register_virtual_size): Delete declaration.
9749         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9750         * d10v-tdep.c (d10v_print_registers_info): Ditto.
9751         * tracepoint.c (memrange_sortmerge): Ditto.
9752         * sparc-tdep.c (sparc_print_registers): Ditto.
9753         * regcache.c (legacy_max_register_virtual_size): Delete function.
9754
9755 2002-05-08  J. Brobecker  <brobecker@gnat.com>
9756
9757         * fork-child.c (escape_bang_in_quoted_argument): New function.
9758         (fork_inferior): Escape '!' characters in quoted arguments
9759         only when needed.
9760
9761 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9762
9763         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9764         the language of the CU is not currently supported by GDB.
9765
9766 2003-05-08  J. Brobecker  <brobecker@gnat.com>
9767
9768         * defs.h (language): Add language_minimal enum value.
9769         * c-lang.c (minimal_language_defn): New language definition.
9770         (_initialize_c_language): Add the new minimal language to the list
9771         of languages known to GDB.
9772
9773 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
9774
9775         * frame.c (get_frame_type): Don't attempt to lazily initialize
9776         frame's unwinder for legacy frames.
9777
9778 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9779
9780         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9781         and "regcache" parameters.
9782         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9783
9784 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9785
9786         * dwarf2read.c (dwarf_decode_lines): Only use output of
9787         check_cu_functions() when calling record_line().  Do not update
9788         the current address.
9789
9790 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9791
9792         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9793         code.
9794
9795 2003-05-07  Jim Blandy  <jimb@redhat.com>
9796
9797         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9798         'maint info symtabs' and 'maint info psymtabs'.
9799         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9800         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9801         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9802         Declarations updated.
9803         * maint.c (maintenance_list_command): Delete.
9804         (_initialize_maint_cmds): Update calls to add_cmd.
9805         * gdbcmd.h (maintenancelistlist): Delete declaration.
9806         * cli/cli-cmds.c (maintenancelistlist): Delete.
9807         (init_cmd_lists): Don't initialize it.
9808         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9809
9810 2003-05-07  Andrew Cagney  <cagney@redhat.com>
9811
9812         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9813         "regcache".
9814         (d10v_print_registers_info): Update.
9815         (d10v_dmap_register, d10v_imap_register): Delete functions.
9816         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9817         and "imap_register".
9818         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9819         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9820         * arch-utils.c (generic_remote_translate_xfer_address): Add
9821         "regcache" and "gdbarch" parameters.
9822         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9823         parameter.  Change class to multi-arch.
9824         * gdbarch.h, gdbarch.c: Re-generate.
9825         * remote.c (remote_xfer_memory): Use
9826         gdbarch_remote_translate_xfer_address.
9827
9828 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
9829
9830         * infrun.c (prev_pc): Move declaration ahead of proceed().
9831         (proceed): Refresh prev_pc value before resuming.
9832         (stop_stepping): Remove code to refresh prev_pc.
9833
9834 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9835
9836         * nto-tdep.c: Removed stray comment.
9837
9838 2003-05-06  Kris Warkentin <kewarken@qnx.com>
9839
9840         * i386-nto-tdep.c: Fix old K&R function definitions.
9841         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9842         Also change add_show_from_set() call to add_setshow_cmd().
9843         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9844
9845 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9846
9847         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9848         (fprint_dummy_frames): New function.
9849         (maintenance_print_dummy_frames): New function.
9850         (_initialize_dummy_frame): Add command "maint print dummy-frames".
9851         * frame.c (fprint_frame_id): Make global.
9852         * frame.h (fprint_frame_id): Declare.
9853         * Makefile.in (dummy-frame.o): Update dependencies.
9854
9855 2003-05-05  Andrew Cagney  <cagney@redhat.com>
9856
9857         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9858         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9859         SIZEOF_CALL_DUMMY_WORDS.
9860         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9861         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9862         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9863         CALL_DUMMY_BREAKPOINT_OFFSET.
9864         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9865         CALL_DUMMY_START_OFFSET.
9866         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9867         * gdbarch.h, gdbarch.c: Re-generate.
9868         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9869         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9870         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9871         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9872         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9873         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9874         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9875         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9876         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9877         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9878         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9879         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9880         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9881         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9882         * config/sparc/tm-sparc.h: Update.
9883
9884 2003-05-05  Kris Warkentin <kewarken@qnx.com>
9885
9886         * configure.tgt: Add i[3456]86-*-nto*.
9887         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
9888         * nto-tdep.c: New file. Neutrino target support routines.
9889         * nto-tdep.h: New file. Neutrino target header.
9890         * config/tm-qnxnto.h: New file.
9891         * config/i386/i386nto.mt: New file.
9892         * config/i386/tm-i386nto.h: New file.
9893
9894 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9895
9896         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9897         (load_infrun_state): Ditto.
9898         (struct thread_info): Drop "prev_func_name" field.
9899         * thread.c (load_infrun_state): Update.
9900         (save_infrun_state): Update.
9901         * infrun.c (prev_func_name): Delete variable.
9902         (init_wait_for_inferior): Do not clear prev_func_name.
9903         (stop_stepping, keep_going, context_switch): Do not swap
9904         prev_func_name.
9905         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9906         instead of PC_IN_SIGTRAMP.
9907
9908 2003-05-04  Andrew Cagney  <cagney@redhat.com>
9909
9910         * sentinel-frame.c (sentinel_frame_prev_register): Replace
9911         REGISTER_BYTE with register_offset_hack.
9912         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9913         that REGISTER_BYTE is consistent with the regcache.
9914         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9915         * gdbarch.h, gdbarch.c: Regenerate.
9916
9917 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
9918
9919         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9920         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9921
9922         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9923
9924 2003-05-03  J. Brobecker  <brobecker@gnat.com>
9925
9926         From Thierry Schneider <tpschneider1@yahoo.com>
9927         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9928         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9929         (mi-cmd-symbol.o): Add rule.
9930
9931 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9932
9933         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9934         comments noteing that it replaces the old FIX_CALL_DUMMY code.
9935         * gdbarch.h, gdbarch.c: Re-generate.
9936         * d10v-tdep.c (d10v_push_dummy_code): New function.
9937         (d10v_gdbarch_init): Set push_dummy_code.
9938         * infcall.c (legacy_push_dummy_code): New function.
9939         (generic_push_dummy_code): New function.
9940         (push_dummy_code): New function.
9941         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
9942         instead of dummy_addr, to push_dummy_call.  Move call to
9943         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9944         switch.
9945         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9946
9947 2003-05-03  Andrew Cagney  <cagney@redhat.com>
9948
9949         * disasm.h (print_insn): Declare.
9950         * disasm.c (init_gdb_disassemble_info): New function.
9951         (gdb_disassembly): Call init_gdb_disassemble_info.
9952         (gdb_print_insn): New function.
9953         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9954         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
9955         * mcore-tdep.c: Include "disasm.h"
9956         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9957         * d10v-tdep.c: Include "disasm.h".
9958         (display_trace): Call gdb_print_insn, instead of print_insn.
9959         (print_insn): Delete function.
9960         * printcmd.c: Include "disasm.h".
9961         (print_insn): Delete function.
9962         (print_formatted): Call gdb_print_insn, instead of print_insn.
9963         * Makefile.in (printcmd.o): Update dependencies.
9964         (mcore-tdep.o, d10v-tdep.o): Ditto.
9965
9966 2003-05-02  Andrew Cagney  <cagney@redhat.com>
9967
9968         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9969         PC_REGNUM, re-indent.
9970         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9971         PC_REGNUM isn't set.
9972
9973         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9974         * gdbarch.h, gdbarch.c: Re-generate.
9975         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9976         register_virtual_size, pc_regnum, or register_bytes.
9977         (D10V_PC_REGNUM): Rename _PC_REGNUM.
9978         (d10v_register_type): Use D10V_PC_REGNUM.
9979         (d10v_print_registers_info, d10v_read_pc): Ditto.
9980         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9981         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9982
9983 2003-05-02  David Carlton  <carlton@bactrian.org>
9984
9985         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9986         the name with mstrsave.
9987
9988 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
9989
9990         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9991         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9992         (host_charset_name, target_charset_name): New vars for use by
9993         set/show commands.
9994         (host_charset_enum, target_charset_enum): New enums for set/show
9995         commands.
9996         (set_charset_sfunc, set_host_charset_sfunc,
9997         set_target_charset_sfunc): New functions.
9998         (set_host_charset, set_target_charset): Make static.
9999         (list_charsets, set_host_charset_command,
10000         set_target_charset_command): Delete functions.
10001         (show_charset_command): Rewrite as....
10002         (show_charset): Hook this up with the set/show command mechanism.
10003         (_initialize_charset): Change names of charsets to match the
10004         set/show enums. Use host_charset_name and target_charset_name.
10005         Use set/show mechanism for charset, host-charset, target-charset
10006         commands. Do not make 'show host-charset' and 'show
10007         target-charset' be aliases of 'show charset'.
10008
10009         * charset.h (set_host_charset, set_target_charset): Don't export,
10010         they are not used outside the file.
10011
10012 2003-05-01  Andrew Cagney  <cagney@redhat.com>
10013
10014         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
10015         (gdb_disassembly): Make "di" non static, always initialize and
10016         cleanup.  Always use dis_asm_read_memory.
10017         (gdb_dis_asm_read_memory): Delete function.
10018
10019 2003-05-01  Andrew Cagney  <cagney@redhat.com>
10020
10021         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
10022         (d10v_gdbarch_init): Set frame_align instead of stack_align.
10023
10024 2003-04-30  Andrew Cagney  <cagney@redhat.com>
10025
10026         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
10027         "tm_print_insn_info".
10028         (TARGET_PRINT_INSN_INFO): Delete macro.
10029         (dis_asm_read_memory): Delete function declaration.
10030         (dis_asm_memory_error, dis_asm_print_address): Ditto.
10031         (tm_print_insn_info): Delete variable definition.
10032         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
10033         * gdbarch.h, gdbarch.c: Re-generate.
10034         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
10035         "deprecated_tm_print_insn_info".
10036         * mcore-tdep.c (mcore_dump_insn): Ditto.
10037         * mips-tdep.c (mips_gdbarch_init): Ditto.
10038         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
10039         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
10040         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
10041         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
10042         instead of TARGET_PRINT_INSN_INFO, add comment.
10043         * s390-tdep.c (s390_get_frame_info): Instead of
10044         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
10045         (s390_check_function_end, s390_is_sigreturn): Ditto.
10046         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
10047         (dis_asm_memory_error, dis_asm_print_address): Ditto.
10048         * disasm.c: Include "gdbcore.h".
10049         (_initialize_disasm): New function, initialize
10050         "deprecated_tm_print_insn_info".
10051         (deprecated_tm_print_insn_info): New variable.
10052         (dis_asm_read_memory): Moved from "corefile.c", made static.
10053         (dis_asm_print_address, dis_asm_memory_error): Ditto.
10054         * Makefile.in (disasm.o): Update dependencies.
10055
10056 2003-04-30  Andrew Cagney  <cagney@redhat.com>
10057
10058         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
10059
10060 2003-04-29  Adam Fedor  <fedor@gnu.org>
10061
10062         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
10063         * infcall.c (find_function_addr): Make non-static.
10064         * infcall.h (find_function_addr): Declare.
10065         * Makefile.in (eval.o): Update dependencies.
10066
10067 2003-04-28  Adam Fedor  <fedor@gnu.org>
10068
10069         * symtab.c (symbol_find_demangled_name): Check for and demangle
10070         ObjC symbols.
10071         (symbol_init_demangled_name): Init for language_objc as well.
10072
10073 2003-04-28  Andrew Cagney  <cagney@redhat.com>
10074
10075         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
10076         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
10077         * gdbarch.h, gdbarch.c: Re-generate.
10078         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
10079         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
10080         * inferior.h (deprecated_read_fp): Rename read_fp.
10081         (generic_target_read_fp): Delete declaration.
10082         * regcache.c (generic_target_read_fp): Delete function.
10083         (deprecated_read_fp): Replace read_fp, use
10084         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
10085         * d10v-tdep.c (d10v_read_fp): Delete function.
10086         (d10v_gdbarch_init): Do not set deprecated_read_fp.
10087
10088         * sparc-tdep.c (sparc_gdbarch_init): Do not set
10089         deprecated_target_read_fp to generic_target_read_fp.
10090         * sh-tdep.c (sh_gdbarch_init): Ditto.
10091         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10092         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10093         * frv-tdep.c (frv_gdbarch_init): Ditto.
10094
10095         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
10096         deprecated_fp_regnum.
10097         * x86-64-tdep.c (x86_64_init_abi): Ditto.
10098         * vax-tdep.c (vax_gdbarch_init): Ditto.
10099         * v850-tdep.c (v850_gdbarch_init): Ditto.
10100         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10101         * sh-tdep.c (sh_gdbarch_init): Ditto.
10102         * s390-tdep.c (s390_gdbarch_init): Ditto.
10103         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10104         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10105         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10106         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10107         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10108         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10109         * i386-tdep.c (i386_gdbarch_init): Ditto.
10110         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10111         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10112         * frv-tdep.c (frv_gdbarch_init): Ditto.
10113         * cris-tdep.c (cris_gdbarch_init): Ditto.
10114         * avr-tdep.c (avr_gdbarch_init): Ditto.
10115         * arm-tdep.c (arm_gdbarch_init): Ditto.
10116         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10117
10118         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
10119         * v850-tdep.c (v850_gdbarch_init): Ditto.
10120         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10121         * sh-tdep.c (sh_gdbarch_init): Ditto.
10122         * s390-tdep.c (s390_gdbarch_init): Ditto.
10123         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10124         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10125         * mips-tdep.c (mips_gdbarch_init): Ditto.
10126         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10127         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10128         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10129         * frv-tdep.c (frv_gdbarch_init): Ditto.
10130         * avr-tdep.c (avr_gdbarch_init): Ditto.
10131         * arm-tdep.c (arm_gdbarch_init): Ditto.
10132
10133         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
10134         DEPRECATED_FP_REGNUM.
10135         (vax_push_dummy_frame, vax_pop_frame): Ditto.
10136         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
10137         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
10138         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
10139         (sparc32_register_virtual_type): Ditto.
10140         * sh-tdep.c (sh64_frame_chain): Ditto.
10141         (sh64_get_saved_register, sh64_pop_frame): Ditto.
10142         (sh_nofp_frame_init_saved_regs): Ditto.
10143         (sh64_nofp_frame_init_saved_regs): Ditto.
10144         (sh_fp_frame_init_saved_regs): Ditto.
10145         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10146         * remote-e7000.c (fetch_regs_from_dump): Ditto.
10147         * procfs.c (procfs_fetch_registers): Ditto.
10148         (procfs_store_registers): Ditto.
10149         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
10150         (store_inferior_registers, fetch_core_registers): Ditto.
10151         (fetch_kcore_registers, clear_regs): Ditto.
10152         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
10153         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
10154         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
10155         * nlm/i386.c (do_status): Ditto.
10156         * mipsv4-nat.c (supply_gregset): Ditto.
10157         * mips-tdep.c: Ditto for comments.
10158         * mips-nat.c (fetch_inferior_registers): Ditto.
10159         (store_inferior_registers, fetch_core_registers): Ditto.
10160         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
10161         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
10162         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
10163         (i386_do_pop_frame, i386_register_type): Ditto.
10164         * hppa-tdep.c (hppa_frame_chain): Ditto.
10165         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
10166         (hppa_pop_frame, hppa_read_fp): Ditto.
10167         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
10168         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
10169         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
10170         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
10171         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
10172         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
10173         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
10174         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
10175         * blockframe.c: Ditto for comments.
10176         * arch-utils.h: Ditto for comments.
10177         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
10178         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
10179         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
10180         * alpha-tdep.h: Ditto for comments.
10181         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
10182         (alpha_cannot_store_register): Ditto.
10183         (alpha_push_dummy_frame): Ditto.
10184         * alpha-nat.c (supply_gregset): Ditto.
10185
10186         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
10187         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
10188         * config/sparc/tm-sparc.h: Update comment.
10189
10190         * hppa-tdep.c (hppa_init_extra_frame_info): Use
10191         deprecated_read_fp instead of TARGET_READ_FP.
10192         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
10193         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
10194         * sparc-tdep.c (sparc_init_extra_frame_info): Use
10195         deprecated_read_fp instead of read_fp.
10196         * s390-tdep.c (s390_push_arguments): Ditto.
10197         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10198         * frame.h: Ditto in comments.
10199         * frame.c (legacy_get_prev_frame): Ditto.
10200         * dummy-frame.c (dummy_frame_this_id): Ditto.
10201         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
10202
10203 2003-04-28  Andrew Cagney  <cagney@redhat.com>
10204
10205         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
10206         * gdbarch.h, gdbarch.c: Re-generate.
10207         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
10208         * vax-tdep.c (_initialize_vax_tdep): Update.
10209         * v850-tdep.c (_initialize_v850_tdep): Update.
10210         * sparc-tdep.c (_initialize_sparc_tdep): Update.
10211         * s390-tdep.c (_initialize_s390_tdep): Update.
10212         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
10213         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
10214         * mips-tdep.c (_initialize_mips_tdep): Update.
10215         * mcore-tdep.c (_initialize_mcore_tdep): Update.
10216         * m68k-tdep.c (_initialize_m68k_tdep): Update.
10217         * ia64-tdep.c (_initialize_ia64_tdep): Update.
10218         * hppa-tdep.c (_initialize_hppa_tdep): Update.
10219         * h8300-tdep.c (_initialize_h8300_tdep): Update.
10220         * frv-tdep.c (_initialize_frv_tdep): Update.
10221         * cris-tdep.c (cris_delayed_get_disassembler): Update.
10222         (_initialize_cris_tdep): Update.
10223         * arch-utils.c (legacy_print_insn): Update.
10224         * alpha-tdep.c (_initialize_alpha_tdep): Update.
10225
10226 2003-04-26  Adam Fedor  <fedor@gnu.org>
10227
10228         * linespec.c (decode_objc): New function to decode ObjC calls
10229         (decode_line_1): Check for ObjC calls (using decode_objc)
10230         * Makefile (linespec.o): Update dependencies.
10231
10232 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
10233
10234         * breakpoint.h (struct breakpoint_ops): New.
10235         (struct breakpoint): Add ops member.
10236
10237         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
10238         (mention): Use new breakpoint ops member.
10239         (set_raw_breakpoint): Initialize ops field to NULL.
10240         (print_exception_catchpoint, print_one_exception_catchpoint)
10241         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
10242         (gnu_v3_exception_catchpoint_ops): New.
10243         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
10244
10245 2003-04-25  Adam Fedor  <fedor@gnu.org>
10246
10247         * Makefile.in (COMMON_OBS): Add objc-lang.o
10248
10249 2003-04-25  Andrew Cagney  <cagney@redhat.com>
10250
10251         * d10v-tdep.c (print_insn): Delete function.
10252         (display_trace): Use TARGET_PRINT_INSN.
10253         (_initialize_d10v_tdep): Do not set tm_print_insn.
10254         (d10v_gdbarch_init): Set print_insn.
10255
10256 2003-04-25  Andrew Cagney  <cagney@redhat.com>
10257
10258         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
10259         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
10260         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
10261         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
10262         (nr_dmap_regs, a0_regnum): ... new functions.
10263         (d10v_print_registers_info): Use a0_regnum, use register_size.
10264         (d10v_register_byte): Delete function.
10265         (d10v_register_raw_size): Delete function.
10266         (d10v_register_type): Use a0_regnum.
10267         (d10v_print_registers_info): Use a0_regnum.
10268         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
10269         (d10v_gdbarch_init): Do not set register_byte or
10270         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
10271         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
10272         extract_address.
10273         (trace_command): Use XCALLOC.
10274         (print_insn): Delete reference to tm_print_insn.
10275         (saved_regs_unwinder): Use store_unsigned_integer instead of
10276         store_address.
10277         * frame.h (FRAME_OBSTACK_CALLOC): Define
10278
10279 2003-04-25  David Carlton  <carlton@bactrian.org>
10280
10281         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
10282
10283 2003-04-24  Adam Fedor  <fedor@gnu.org>
10284
10285         * objc-lang.c: Include "valprint.h"
10286         * Makefile.in (objc-lang.o): Update dependencies.
10287
10288 2003-04-24  Adam Fedor  <fedor@gnu.org>
10289
10290         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
10291         architecture dependant compilation and mark as unimplemented
10292         (until they get put in the gdbarch vector).
10293
10294 2003-04-23  David Carlton  <carlton@bactrian.org>
10295
10296         * cp-support.c (cp_find_first_component): Accept 'operator' in
10297         more locations.
10298
10299 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10300
10301         * infcall.c (call_function_by_hand): Eliminate redundant
10302         indentation.  Move "saved_async" and "old_cleanups" to where they
10303         are needed.
10304
10305 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10306
10307         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
10308         and "buffer".  Move the "name" code to where it is needed.
10309
10310 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10311
10312         * infcall.c (call_function_by_hand): Move variables "start_sp",
10313         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
10314         code to ON_STACK switch branch.
10315
10316 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10317
10318         * infcall.c (call_function_by_hand): Make declaration of "i",
10319         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
10320         lint.
10321
10322 2003-04-23  Andrew Cagney  <cagney@redhat.com>
10323
10324         * infcall.c (call_function_by_hand): Delete variable
10325         "n_method_args".  Localize "param_type"'s declaration to the loop
10326         that it is used.  Reinstate code assigning to said variable -
10327         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
10328         Rationalize code using "param_type".
10329
10330 2003-04-22  Andrew Cagney  <cagney@redhat.com>
10331
10332         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
10333         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
10334         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
10335         to DEPRECATED_PUSH_RETURN_ADDRESS.
10336
10337 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
10338
10339         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
10340         on the DWARF2 register number prior to fetching a register.
10341
10342 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10343
10344         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
10345         Update all the tests using SOFT_FLOAT considering the fact that
10346         this macro was always set to 0.
10347         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
10348         considering the fact that this macro was always set to 0.
10349         * hppa-tdep.h (hppa_store_return_value): Likewise.
10350         (hppa_extract_return_value): Likewise.
10351
10352 2003-04-22  J. Brobecker  <brobecker@gnat.com>
10353
10354         * config/pa/tm-hppa.h: Remove obsolete code, was used by
10355         the hppa-pro target only.
10356
10357 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10358
10359         Ongoing multi-arch conversion effort for HP/UX:
10360         * config/pa/tm-hppa.h: Move all macro that are no longer
10361         defined now that GDB_MULTI_ARCH is now set to 1 from here...
10362         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
10363
10364 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10365
10366         * config/pa/tm-hppa.h: Obsolete a section that was only used
10367         for hppa-pro.
10368
10369 2003-04-21  J. Brobecker  <brobecker@gnat.com>
10370
10371         Ongoing multi-arch conversion for HP/UX.
10372         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
10373         if already defined (allows hppa64 to stay non-multiarched for now).
10374         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
10375
10376 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10377
10378         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
10379
10380 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10381
10382         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
10383         "i386_num_mmx_regs".
10384
10385 2003-04-21  Andrew Cagney  <cagney@redhat.com>
10386
10387         * infcall.c: New file.
10388         * infcall.h: New file.
10389         * valarith.c: Include "infcall.h".
10390         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
10391         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
10392         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
10393         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
10394         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
10395         (SFILES): Add "infcall.c"
10396         (COMMON_OBS): Add "infcall.o".
10397         (infcall.o): Specify dependencies.
10398         * value.h (call_function_by_hand): Delete declaration.
10399         * inferior.h (run_stack_dummy): Delete declaration.
10400         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
10401         (run_stack_dummy): Move to "infcall.c", merged into
10402         call_function_by_hand.
10403         * valops.c (call_function_by_hand): Moved to "infcall.c".
10404         (find_function_addr, value_arg_coerce): Ditto.
10405         (unwindonsignal_p, coerce_float_to_double): Ditto.
10406         (_initialize_valops): Move "set/show coerce-float-to-double", and
10407         "set/show unwindonsignal" commands to "infcall.c".
10408         * v850-tdep.c, target.h: Update comments.
10409         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
10410         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
10411         (sh64_init_extra_frame_info): Update comments.
10412         * mn10300-tdep.c: Update comments.
10413         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
10414         * config/sparc/tm-sparc.h: Update comments.
10415         * breakpoint.h: Update comments.
10416         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
10417         * arm-tdep.c: Update comment.
10418
10419 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10420
10421         * i386-tdep.c (i386_num_register_names): New variable.
10422         (i386_num_mmx_regs): Renamed from mmx_num_regs.
10423         (MM0_REGNUM): Remove redundant parentheses in define.
10424         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
10425         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
10426         i386_mxcsr_regnum_p): Remove redundant parentheses.
10427         (i386_register_name): Use i386_num_register_names.
10428
10429         * i386-tdep.c (i386_extract_return_value,
10430         i386_store_return_value): Correct check for availability of
10431         floating-point registers.
10432
10433         * i386-tdep.c (i386_frame_num_args): Remove function.
10434         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
10435
10436         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
10437         mmx_regnum_to_fp_regnum.  Adjust all callers.
10438
10439         * i386-tdep.c (i386_get_longjmp_target): Use
10440         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
10441         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
10442         extract_address.
10443
10444 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
10445
10446         * core-regset.c: Update comments to reflect reality.  Re-order
10447         includes.
10448         (fetch_core_registers): Use switch instead of if.  Remove
10449         redundant prototype.
10450
10451 2003-04-18  Jim Blandy  <jimb@redhat.com>
10452
10453         * s390-tdep.c (s390_frame_align): New function.
10454         (s390_gdbarch_init): Register it with the gdbarch object.
10455
10456 2003-04-17  Richard Henderson  <rth@redhat.com>
10457
10458         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
10459
10460 2003-04-17  Michael Snyder  <msnyder@redhat.com>
10461             Karen Bennet  <bennet@redhat.com>
10462
10463         Committed by Elena Zannoni  <ezannoni@redhat.com>
10464         * gdb_gcore.sh: New script to create a core dump of a process.
10465
10466 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
10467
10468         * values.c (value_being_returned): Don't fetch the return
10469         value if the return type is void.
10470
10471 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10472
10473         * thread-db.c: Reindented.
10474
10475 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
10476
10477         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
10478         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
10479         as types.
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
10506
10507         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
10508         the size of ``long double'' to 16, instead of 8.
10509
10510 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
10511
10512         * i386-linux-nat.c: Add some whitespace to make things more
10513         readable.
10514         (fetch_register, store_register, fetch_inferior_registers,
10515         store_inferior_registers): Get rid of assignment in if-statement.
10516         (store_register): Fix typo in error message.
10517
10518 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10519
10520         * utils.c (xmmalloc): Always allocate something, matches
10521         libiberty/xmalloc's semantics.
10522         (xmrealloc, xmcalloc): Ditto.
10523
10524 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10525
10526         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10527         update comments.
10528         (get_frame_type): Initialize unwind and type when needed.
10529         (get_frame_id, frame_register_unwind): Ditto.
10530
10531 2003-04-16  Andrew Cagney  <cagney@redhat.com>
10532
10533         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10534         obsolete.
10535         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10536         * sparcl-stub.c: Obsolete file.
10537         * config/sparc/tm-sparclet.h: Obsolete file.
10538         * sparclet-stub.c: Obsolete file.
10539         * sparclet-rom.c: Obsolete file.
10540         * sparcl-tdep.c: Obsolete file.
10541         * config/sparc/tm-sparclite.h: Obsolete file.
10542         * config/sparc/sparclite.mt: Obsolete file.
10543         * config/sparc/sparclet.mt: Obsolete file.
10544         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10545         sparc86x-*-* obsolete.
10546
10547 2003-04-15  David Carlton  <carlton@math.stanford.edu>
10548
10549         * Makefile.in (SFILES): Add cp-namespace.c.
10550         (COMMON_OBS): Add cp-namespace.o.
10551         (block.o): Depend on gdb_obstack_h and cp_support_h.
10552         (buildsym.o): Depend on cp_support_h.
10553         (cp-namespace.o): New.
10554         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10555         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10556         (dwarf2read.o): Depend on cp_support_h.
10557         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10558         * dwarf2read.c (process_die): Set processing_has_namespace_info,
10559         processing_current_namespace.
10560         (read_namespace): Update processing_current_namespace; check for
10561         anonymous namespaces.
10562         (dwarf2_name): New function.
10563         (dwarf2_extension): Ditto.
10564         * cp-support.h: Update copyright, contributors.
10565         Add inclusion guards.
10566         Add opaque declaration for structs obstack, block, symbol.
10567         (struct using_direct): New struct.
10568         Add declarations for cp_find_first_component,
10569         cp_entire_prefix_len, processing_has_namespace_info,
10570         processing_current_namespace, cp_is_anonymous,
10571         cp_add_using_directive, cp_initialize_namespace,
10572         cp_finalize_namespace, cp_set_block_scope,
10573         cp_scan_for_anonymous_namespaces.
10574         * cp-namespace.c: New file.
10575         * cp-support.c: Update copyright.
10576         Include ctype.h, gdb_assert.h, gdbcmd.h.
10577         New variable maint_cplus_cmd_list.
10578         (cp_find_first_component): New function.
10579         (cp_entire_prefix_len, maint_cplus_command)
10580         (first_component_command, _initialize_cp_support): Ditto.
10581         * buildsym.c: Include cp-support.h.
10582         New variable using_list.
10583         (add_symbol_to_list): Check for anonymous namespaces.
10584         (finish_block): Set block's scope.
10585         (start_symtab): Initialize C++ namespace support.
10586         (end_symtab): Finalize C++ namespace support.
10587         * block.h: Add opaque declarations for structs
10588         block_namespace_info, using_direct, and obstack.
10589         Add declarations for block_set_scope and block_set_using.
10590         (struct block): Add 'language_specific' member.
10591         (BLOCK_NAMESPACE): New macro.
10592         * block.c: Include gdb_obstack.h and cp-support.h.
10593         (struct block_namespace_info): New struct.
10594         (block_set_scope): New function.
10595         (block_set_using, block_initialize_namespace): Ditto.
10596
10597 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
10598
10599         * solib-svr4.c (svr4_have_link_map_offsets): New function.
10600         (locate_base): Return early if there aren't any link map offsets.
10601         (svr4_solib_create_inferior_hook): Warn if shared library support
10602         is unavailable.
10603
10604 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10605
10606         * symtab.c (symbol_set_names): Add prefix when storing Java names
10607         in hash table.  Fix for PR java/1039.
10608
10609 2003-04-14  David Carlton  <carlton@math.stanford.edu>
10610
10611         * symtab.c (symbol_set_names): Rename 'name' arg to
10612         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10613         * symtab.h: Change 'name' argument in declaration of
10614         symbol_set_names to 'linkage_name'.
10615         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10616
10617 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10618
10619         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10620         return the fully sign-extended register value.
10621         (get_frame_pointer): Ditto.
10622         (mips_pop_frame): Initialize "proc_desc" after checking for a
10623         dummy frame.
10624
10625 2003-04-14  Andrew Cagney  <cagney@redhat.com>
10626
10627         * mips-tdep.c (mips_push_dummy_frame): Delete function.
10628         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10629         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10630         (mips_push_register): Delete function.
10631         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10632         PUSH_FP_REGNUM.
10633
10634 2003-04-14  Jim Blandy  <jimb@redhat.com>
10635
10636         * symmisc.c: #include "gdb_regex.h".
10637         (maintenance_list_symtabs, maintenance_list_psymtabs): New
10638         functions.
10639         * maint.c (maintenance_list_command): New function.
10640         (_initialize_maint_cmds): Register the above as commands.
10641         * symtab.h (maintenance_list_symtabs,
10642         maintenance_list_psymtabs): New declarations.
10643         * cli/cli-cmds.c (maintenancelistlist): New variable.
10644         (init_cmd_lists): Initialize it.
10645         * cli/cli-cmds.h (maintenancelistlist): New declaration.
10646         * gdbcmd.h (maintenancelistlist): New declaration.
10647         * Makefile.in (symmisc.o): Update dependencies.
10648
10649 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
10650
10651         * s390-nat.c: Include asm/types.h for addr_t.
10652
10653 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
10654
10655         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10656         actually incoming type.
10657
10658 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10659
10660         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10661         get_next_frame and get_frame_saved_regs.
10662
10663 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10664
10665         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10666         of gdbarch_num_regs.
10667
10668 2003-04-13  Andrew Cagney  <cagney@redhat.com>
10669
10670         * frame.h: Mention what replaced what in "struct frame_info".
10671         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10672         deprecated_update_frame_base_hack and
10673         deprecated_update_frame_pc_hack.
10674         * hppa-tdep.c: Ditto.
10675
10676 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10677
10678         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10679         to read_reg and update its comment.  Remove regnum member.
10680         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10681         Don't call read_reg when setting in_reg.  Call read_reg to get
10682         the frame base if it's in a register.  Return the register number
10683         on the stack instead of in the context.  Remove extra arguments
10684         to read_reg.
10685         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10686         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
10687         the register number on the expression stack.
10688         (needs_frame_read_reg): Remove extra arguments.
10689
10690 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10691
10692         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10693         made non-static.
10694         (execute_stack_op): All callers updated.
10695         * dwarf2expr.h: Add prototype for dwarf2_read_address.
10696         * dwarf2loc.c (find_location_expression): New function.
10697         (dwarf_expr_frame_base): Call it.
10698         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10699         (dwarf2_tracepoint_var_ref): New function, broken out from
10700         locexpr_tracepoint_var_ref.
10701         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10702         Make static.
10703         (loclist_read_variable, loclist_read_needs_frame): New functions.
10704         (loclist_describe_location, loclist_tracepoint_var_ref): New
10705         functions.
10706         (dwarf2_loclist_funcs): New struct location_funcs.
10707         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10708         (struct dwarf2_locexpr_baton): Add comments.
10709         (dwarf2_loclist_funcs): New extern.
10710         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10711         base_address and base_known.
10712         (dwarf_loc_buffer): New variable.
10713         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10714         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10715         (dwarf2_has_info): Initialize dwarf_loc_offset.
10716         (dwarf2_build_psymtabs): Read in .debug_loc.
10717         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10718         DWARF_LOC_SIZE.
10719         (psymtab_to_symtab_1): Likewise.  Move base address calculation
10720         here, from...
10721         (dwarf2_get_pc_bounds): ... here.  Use the base address from
10722         cu_header.
10723         (dwarf2_symbol_mark_computed): Handle location lists.
10724
10725 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
10726
10727         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10728         if the linkage name demangled successfully.
10729
10730 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10731
10732         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10733         disassmbly_flavour): Removed.
10734
10735         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10736
10737 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
10738
10739         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10740
10741 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10742
10743         * frame.h (struct frame_info): Move definition from here ...
10744         * frame.c (struct frame_info): ... to here.
10745
10746 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10747
10748         * gdbthread.h (save_infrun_state): Delete parameter
10749         "prev_func_start".
10750         (struct thread_info): Delete field "prev_func_start".
10751         (load_infrun_state): Ditto.
10752         * thread.c (load_infrun_state, save_infrun_state): Update.
10753         * infrun.c (prev_func_start): Delete variable.
10754         (context_switch, init_wait_for_inferior): Update.
10755         (stop_stepping, keep_going): Update.
10756
10757 2003-04-12  Andrew Cagney  <cagney@redhat.com>
10758
10759         * gdbarch.sh: Add missing opaque declarations.
10760         * gdbarch.h: Regnerate.
10761         * symtab.h: Add missing opaque declarations.
10762         * value.h, target.h, symfile.h, stabsread.h: Ditto.
10763         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10764         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10765         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10766         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10767         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10768         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10769         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10770         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10771         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10772         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10773         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10774         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10775
10776 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10777
10778         * frame.c (get_frame_id): Return this frame's "id".
10779         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10780         function start.
10781         (legacy_saved_regs_this_id): Replace function body with
10782         internal-error.
10783         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10784         FRAME_OBSTACK_ZALLOC.
10785         (create_new_frame): Mark the frame ID as valid.
10786
10787 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
10788
10789         * Makefile.in (libbfd_h): Added missing setting.
10790         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10791         according to the selected ABI.
10792
10793 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
10794
10795         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10796
10797 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10798
10799         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10800         SAVED_PC_AFTER_CALL.
10801         * gdbarch.h, gdbarch.c: Regenerate.
10802         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10803         * x86-64-tdep.c (x86_64_init_abi): Update.
10804         * vax-tdep.c (vax_gdbarch_init): Update.
10805         * v850-tdep.c (v850_gdbarch_init): Update.
10806         * sparc-tdep.c (sparc_gdbarch_init): Update.
10807         * sh-tdep.c (sh_gdbarch_init): Update.
10808         * s390-tdep.c (s390_gdbarch_init): Update.
10809         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10810         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10811         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10812         * mips-tdep.c (mips_gdbarch_init): Update.
10813         * mcore-tdep.c (mcore_gdbarch_init): Update.
10814         * m68k-tdep.c (m68k_gdbarch_init): Update.
10815         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10816         * ia64-tdep.c (ia64_gdbarch_init): Update.
10817         (ia64_saved_pc_after_call): Update declaration.
10818         * i386ly-tdep.c (i386lynx_init_abi): Update.
10819         * i386-tdep.c (i386_gdbarch_init): Update.
10820         * hppa-tdep.c (hppa_gdbarch_init): Update.
10821         * h8300-tdep.c (h8300_gdbarch_init): Update.
10822         * frv-tdep.c (frv_gdbarch_init): Update.
10823         * cris-tdep.c (cris_gdbarch_init): Update.
10824         * avr-tdep.c (avr_gdbarch_init): Update.
10825         * arm-tdep.c (arm_gdbarch_init): Update.
10826         * alpha-tdep.c (alpha_gdbarch_init): Update.
10827         * ns32knbsd-nat.c (frame_num_args): Update.
10828         * ns32k-tdep.c (umax_frame_num_args): Update.
10829         * mips-tdep.c (mips_init_frame_pc_first): Update.
10830         * infrun.c (step_over_function): Update.
10831         * i386-linux-tdep.c (skip_hurd_resolver): Update.
10832         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10833         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10834         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10835         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10836         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10837         * arm-linux-tdep.c (skip_hurd_resolver): Update.
10838         * arch-utils.c (init_frame_pc_default): Update.
10839         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10840         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10841         declaration.
10842
10843 2003-04-11  Andrew Cagney  <cagney@redhat.com>
10844
10845         * i387-tdep.c: Update copyright.
10846         (i387_to_double): Delete function.
10847         (double_to_i387): Delete function.
10848
10849 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10850
10851         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10852         frame's function's address.  Simplify.
10853         (d10v_frame_unwind_cache): Check that the frame's function is
10854         non-zero.
10855
10856 2003-04-10  Jim Blandy  <jimb@redhat.com>
10857
10858         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10859         call to set_gdbarch_deprecated_push_arguments.
10860
10861 2003-04-10  Andrew Cagney  <cagney@redhat.com>
10862
10863         * frame.c (fprint_frame_id): New function.
10864         (fprint_frame_type, fprint_frame): New function.
10865         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10866         (create_sentinel_frame, get_frame_id): Ditto.
10867         (frame_id_p, frame_id_eq): Ditto.
10868         (frame_id_inner, create_new_frame): Ditto.
10869         (legacy_get_prev_frame, get_prev_frame): Ditto.
10870         (deprecated_update_frame_pc_hack): Ditto.
10871         (frame_register_unwind): Ditto.
10872         (deprecated_update_frame_base_hack): Ditto.
10873
10874 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10875
10876         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10877         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10878         frame_chain function.
10879         * Makefile.in: Add dependencies due to above change.
10880
10881 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
10882
10883         * blockframe.c (legacy_frame_chain_valid): Move call to
10884         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10885         inside_entry_file.
10886
10887 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10888
10889         * frame.h (struct frame_id): Replace "pc" and "base" with
10890         "stack_addr" and "code_addr".  Update comments.
10891         (frame_id_build): Update parameter names and comment.
10892         (struct frame_info): Replace "id_p" and "id" with "this_id".
10893         * dummy-frame.c (dummy_frame_this_id): Update.
10894         * breakpoint.c (print_one_breakpoint): Update.
10895         * frame.c (get_frame_id): Update.
10896         (get_frame_base, frame_id_build): Update.
10897         (create_sentinel_frame, legacy_get_prev_frame): Update.
10898         (deprecated_update_frame_base_hack): Update.
10899         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10900         (frame_id_inner): Ditto.
10901
10902 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10903
10904         * defs.h (gdb_print_host_address): Make "addr" parameter a
10905         pointer constant.
10906         * utils.c (gdb_print_host_address): Update.
10907
10908 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
10909
10910         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10911         register number for R0 is 0.
10912
10913 2003-04-09  J. Brobecker  <brobecker@gnat.com>
10914
10915         * frame.h (struct gdbarch): Add opaque structure definition
10916         to avoid a compilation warning on LynxOS 4.0.
10917
10918 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10919
10920         * frame.h (struct frame_info): Delete field "pc".  Replace
10921         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10922         structure.
10923         * frame.c (frame_pc_unwind): Update.
10924         (create_sentinel_frame): Do not set "pc".
10925         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
10926         (get_frame_pc): Call frame_pc_unwind.
10927         (deprecated_update_frame_pc_hack): Update.
10928         (create_new_frame): Use "pc" not "->pc".
10929
10930 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10931
10932         * frame.c (get_frame_id): Eliminate code updating "frame".
10933         (legacy_get_prev_frame): Ditto.
10934         (get_frame_base): Return id.base directly.
10935         (deprecated_update_frame_base_hack): Update "id.base".
10936         * frame.h (struct frame_info): Delete field "frame".
10937
10938 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10939
10940         * NEWS: Mention that the "Sequent family" is obsolete.
10941         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10942         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10943         * configure.host: Obsolete i[3456]86-sequent-bsd*,
10944         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10945         * config/i386/tm-ptx4.h: Obsolete file.
10946         * config/i386/tm-ptx.h: Obsolete file.
10947         * symm-tdep.c: Obsolete file.
10948         * config/i386/symmetry.mt: Obsolete file.
10949         * config/i386/tm-symmetry.h: Obsolete file.
10950         * symm-nat.c: Obsolete file.
10951         * config/i386/nm-symmetry.h: Obsolete file.
10952         * config/i386/xm-symmetry.h: Obsolete file.
10953         * config/i386/symmetry.mh: Obsolete file.
10954         * config/i386/nm-ptx4.h: Obsolete file.
10955         * config/i386/ptx4.mh: Obsolete file.
10956         * config/i386/ptx.mt: Obsolete file.
10957         * config/i386/ptx.mh: Obsolete file.
10958         * config/i386/xm-ptx4.h: Obsolete file.
10959         * config/i386/xm-ptx.h: Obsolete file.
10960
10961 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10962
10963         Obsolete mips*-*-mach3*.
10964         * NEWS: Mention that mips*-*-mach3* is obsolete.
10965         * m3-nat.c: Obsolete file.
10966         * config/nm-m3.h: Obsolete file.
10967         * config/mips/tm-mipsm3.h: Obsolete file.
10968         * config/mips/mipsm3.mt: Obsolete file.
10969         * config/mips/mipsm3.mh: Obsolete file.
10970         * config/mips/xm-mipsm3.h: Obsolete file.
10971         * mipsm3-nat.c: Obsolete file.
10972         * configure.host: Obsolete mips-dec-mach3*.
10973         * configure.tgt: Obsolete mips*-*-mach3*.
10974
10975 2003-04-09  Andrew Cagney  <cagney@redhat.com>
10976
10977         * doublest.h: Update copyright.
10978         (deprecated_store_floating, deprecated_extract_floating): Rename
10979         store_floating and extract_floating.  Update comments.
10980         * doublest.c: Update copyright.
10981         (extract_floating_by_length): Replace extract_floating.
10982         (store_floating_by_length): Replace store_floating.
10983         (deprecated_extract_floating): New function.
10984         (deprecated_store_floating): New function.
10985         (extract_typed_floating): Call extract_floating_by_length.
10986         (store_typed_floating): Call store_floating_by_length.
10987         * x86-64-tdep.c (x86_64_store_return_value): Update.
10988         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10989         (sh64_extract_return_value): Update.
10990         (sh_sh4_register_convert_to_virtual): Update.
10991         (sh_sh64_register_convert_to_virtual): Update.
10992         (sh_sh4_register_convert_to_raw): Update.
10993         (sh_sh64_register_convert_to_raw): Update.
10994         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10995         (rs6000_register_convert_to_raw): Update.
10996         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10997         (ia64_register_convert_to_raw): Update.
10998         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10999         (REGISTER_CONVERT_TO_VIRTUAL): Update.
11000         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
11001         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
11002         (alpha_register_convert_to_raw): Update.
11003
11004 2003-04-08  Andrew Cagney  <cagney@redhat.com>
11005
11006         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
11007         * gdbarch.h, gdbarch.c: Re-generate.
11008         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
11009         (d10v_gdbarch_init): Do not set saved_pc_after_call.
11010         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
11011         conditionally, use frame_pc_unwind as an alternative.  Add
11012         comments.
11013         * arch-utils.c (init_frame_pc_default): Only call
11014         SAVED_PC_AFTER_CALL when available.
11015
11016 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
11017
11018         * infrun.c (stop_soon): Rename from stop_soon_quietly.
11019         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
11020         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
11021         (start_remote): Ditto.
11022         (handle_inferior_event): Ditto.
11023         (save_inferior_status): Ditto.
11024         (restore_inferior_status): Ditto.
11025         * infcmd.c (attach_command): Ditto.
11026         * fork-child.c (startup_inferior): Ditto.
11027         * inferior.h (stop_soon): Rename from stop_soon_quietly.
11028         * alpha-tdep.c (heuristic_proc_start): Ditto.
11029         * mips-tdep.c (heuristic_proc_start): Ditto.
11030         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
11031         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
11032         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
11033         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
11034         * remote-vx.c (vx_create_inferior): Ditto.
11035
11036 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
11037
11038         * infrun.c (stop_soon_quietly): Make it an enum, to better
11039         override the default behavior of handle_inferior_event.
11040         (clear_proceed_status): Update uses of stop_soon_quietly to
11041         reflect that it is now an enum.
11042         (start_remote): Ditto.
11043         (handle_inferior_event): Change logic a bit if stop_soon_quietly
11044         is set to handle the new GNU/Linux kernel behavior for
11045         attach/sigstop.  Update uses of stop_soon_quietly.
11046         * inferior.h (enum stop_kind): New enum.
11047         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
11048         Reset normal handle_inferior_event behavior, afterwards.
11049         * fork-child.c (startup_inferior): Update.
11050         * alpha-tdep.c (heuristic_proc_start): Update.
11051         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
11052         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
11053         * solib-osf.c (osf_solib_create_inferior_hook): Update.
11054         * solib-irix.c (irix_solib_create_inferior_hook): Update.
11055         * remote-vx.c (vx_create_inferior): Update.
11056         * mips-tdep.c (heuristic_proc_start): Update.
11057
11058 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
11059
11060         * disasm.c (dump_insns):  Move variables inside loop, or they will
11061         be freed more than once, causing wild memory corruptions.
11062         (gdb_disassembly): Look for the substring "-thread",
11063         instead of "-threads" in the target name, to make sure to find
11064         the 'multi-thread' target.  Also, make sure we do the right thing
11065         with the "core" target.
11066
11067 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
11068
11069         * mips-tdep.c (mips_print_fp_register): New function, created from
11070         do_fp_register_row().  Registers are now (also) printed as hex.
11071         Only one register is printed per row.
11072         (mips_print_register, do_fp_register_row): Print floating point
11073         registers with mips_print_fp_register().
11074
11075 2003-04-06  Andrew Cagney  <cagney@redhat.com>
11076
11077         * valprint.h (inspect_it): Add extern declaration.
11078         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
11079         (selectors_info, classes_info): Ditto.
11080         (find_objc_msgcall): Fix indentation.
11081         (objc_printstr): Delete extern declarations.
11082
11083         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
11084
11085 2003-04-06  Andrew Cagney  <cagney@redhat.com>
11086
11087         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
11088         Update comment.
11089         * frame.c (legacy_saved_regs_this_id): Update.
11090         (legacy_get_prev_frame): Update.
11091         * xstormy16-tdep.c: Update comment.
11092         * sparc-tdep.c (sparc_frame_chain): Update comment.
11093         * blockframe.c (legacy_frame_chain_valid): Update.
11094
11095 2003-04-06  Andrew Cagney  <cagney@redhat.com>
11096
11097         * valprint.c (val_print_type_code_int): Delete #ifdef
11098         PRINT_TYPELESS_INTEGER code.
11099
11100         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
11101         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
11102         multi-arch definition.
11103         * gdbarch.h: Re-generate.
11104
11105 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11106
11107         Eliminate FRAME_FIND_SAVED_REGS.
11108         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11109         Change FSR parameter to a pointer.
11110         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
11111         Assume FSR parameter is a pointer.
11112         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
11113         Make fsr a pointer.
11114         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
11115         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
11116         saved_regs a pointer.
11117         (hppa_frame_saved_pc): Ditto.
11118         (find_dummy_frame_regs): Make frame_saved_regs a pointer
11119         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
11120         pointer.
11121         (restore_pc_queue): Make fsr a pointer.
11122         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
11123         (hppa_frame_chain): Make saved_regs a pointer, call
11124         hppa_frame_init_saved_regs.
11125         * sparc-tdep.c: Include "gdb_assert.h".
11126         (sparc_frame_find_saved_regs): Replace internal_error with
11127         gdb_assert.
11128         * remote-vxsparc.c (vx_read_register): Delete reference to
11129         FRAME_FIND_SAVED_REGS.
11130         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
11131         * gdbarch.h: Regenerate.
11132         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
11133         (deprecated_get_frame_saved_regs): Delete declaration.
11134         (struct frame_saved_regs): Delete definition.
11135         * frame.c (deprecated_get_frame_saved_regs): Delete function.
11136         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
11137         (hppa_frame_find_saved_regs): Delete declaration.
11138         (FRAME_FIND_SAVED_REGS): Delete macro.
11139         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
11140         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
11141         FRAME_FIND_SAVED_REGS in comment.
11142
11143 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11144
11145         * frame.c (frame_func_unwind, get_frame_func): New functions.
11146         * frame.h (get_frame_func, frame_func_unwind): Declare.
11147         (struct frame_info): Add field "prev_func" for caching the
11148         previous frame's function address.
11149         * arm-tdep.c (arm_frameless_function_invocation): Combine
11150         get_pc_function_start and get_frame_pc into get_frame_func.
11151         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11152         (sh64_nofp_frame_init_saved_regs): Ditto.
11153         * s390-tdep.c (s390_function_start): Ditto.
11154         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
11155         (rs6000_frameless_function_invocation): Ditto.
11156         (rs6000_frame_saved_pc): Ditto.
11157         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
11158         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
11159         * i386-tdep.c (i386_frameless_signal_p): Ditto.
11160         (i386_frame_init_saved_regs): Ditto.
11161         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
11162         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
11163         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
11164         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
11165         * blockframe.c (frameless_look_for_prologue): Ditto.
11166
11167 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11168
11169         * frame.c (legacy_get_prev_frame): Link prev to next at the
11170         function start.  Update comments.
11171
11172 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11173
11174         * frame.c (get_frame_id): Update comment.
11175         (legacy_get_prev_frame): Update comment.
11176         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
11177         * gdbarch.h: Regenerate.
11178         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
11179         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
11180
11181 2003-04-05  Andrew Cagney  <cagney@redhat.com>
11182
11183         * stack.c (print_frame_info): Use get_frame_pc.
11184
11185 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11186
11187         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
11188         the frame's type from the unwinder.
11189         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
11190         (create_new_frame, legacy_get_prev_frame): When the unwinder's
11191         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
11192         (get_frame_base_address): Use get_frame_type.
11193         (get_frame_locals_address, get_frame_args_address): Ditto.
11194         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
11195         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
11196         (struct frame_info): Add comment explaining why the frame contains
11197         a "type" field.
11198         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
11199         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
11200         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
11201         NORMAL_FRAME.
11202         * frame-unwind.h: Include "frame.h".
11203         (struct frame_unwind): Add "type" field.
11204         * Makefile.in (frame_unwind_h): Add $(frame_h).
11205
11206 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11207
11208         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
11209         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
11210         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
11211         get_frame_base.
11212         (d10v_unwind_dummy_id): Use frame_id_build.
11213         * frame.c (find_frame_sal): Use get_frame_pc.
11214         (create_new_frame): Use deprecated_update_frame_pc_hack and
11215         deprecated_update_frame_base_hack.
11216         (create_sentinel_frame): Add comment about ->pc going away.
11217         (get_prev_frame): Add comment about ->pc going away.
11218         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
11219         frame_id_build, deprecated_update_frame_pc_hack and
11220         deprecated_update_frame_base_hack.
11221         (select_frame): Use get_frame_pc.
11222         (legacy_saved_regs_this_id): Use frame_id_build.
11223
11224 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
11225
11226         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
11227         signed integer case.
11228         (classify_argument): Handle enumerations and references.
11229
11230 2003-04-04  Andrew Cagney  <cagney@redhat.com>
11231
11232         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
11233         ID to NULL.
11234
11235 2003-04-01  Adam Fedor  <fedor@gnu.org>
11236
11237         * gdb/objc-lang.c (selectors_info): Replace calls to
11238         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
11239         SYMBOL_NATURAL_NAME.
11240         (classes_info, find_methods): Likewise.
11241
11242 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
11243
11244         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
11245         ``mach'' to the value determined by bfd_default_set_arch_mach().
11246
11247 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
11248
11249         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
11250         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
11251         (mi-cmd-file.o): Update dependencies.
11252
11253 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
11254
11255         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
11256         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
11257
11258 2003-04-01  Adam Fedor  <fedor@gnu.org>
11259
11260         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
11261         * language.h (struct language_defn): Add la_demangle.
11262         (language_demangle): Declare.
11263         * language.c (language_demangle): New function.
11264         (unk_lang_demangle): Likewise.
11265         (unknown_language_defn, auto_language_defn, local_language_defn):
11266         Add ukn_lang_demangle.
11267         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
11268         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
11269         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
11270         (cplus_language_defn): Add cplus_demangle for la_demangle element.
11271         * jv-lang.c (java_demangle): New function
11272         (java_language_defn): Use it for la_demangle element.
11273         * objc-lang.c (objc_demangle): Add options argument
11274         (objc_language_defn): Use objc_demangle for la_demangle element.
11275         * maint.c (maintenance_demangle): Replace switch with
11276         call to language_demangle.
11277         * utils.c (fprintf_symbol_filtered): Likewise.
11278
11279 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11280
11281         * printcmd.c (print_frame_nameless_args): Delete #ifdef
11282         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
11283         PRINT_TYPELESS_INTEGER.
11284         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
11285         PUSH_RETURN_ADDRESS.
11286
11287 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11288
11289         * Makefile.in (d10v-tdep.o): Update dependencies.
11290         * d10v-tdep.c: Include "frame-base.h".
11291         (d10v_frame_unwind): Make constant.
11292         (d10v_frame_base_address): New function.
11293         (d10v_frame_base): New variable.
11294         (d10v_gdbarch_init): Set frame_base default.
11295         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
11296         comment for base.
11297         (d10v_frame_unwind_cache): Set and use "prev_sp".
11298         (d10v_frame_this_id): Use the previous frame's inner most stack
11299         address and this frame's func address for the frame ID.  Use
11300         frame_id_build.  Don't analyze beyond the current instruction.
11301
11302 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11303
11304         * frame.h (get_frame_locals_address, get_frame_args_address):
11305         Refer to the base address, instead of the address of the first
11306         local or parameter.
11307
11308 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11309
11310         Add frame debug info addresses:
11311         * frame-base.c: New file.
11312         * frame-base.h: New file.
11313         * frame.h (struct frame_base): Add opaque declaration.
11314         (get_frame_base): Update comment.
11315         (get_frame_base_address): Declare.
11316         (get_frame_locals_address): Declare.
11317         (get_frame_args_address): Declare.
11318         (struct frame_info): Add "base" and "base_cache".  Update
11319         comments on the unwinder.
11320         * frame.c: Include "frame-base.h".
11321         (get_frame_locals_address): New function.
11322         (get_frame_base_address): New function.
11323         (get_frame_args_address): New function.
11324         * findvar.c (read_var_value): Use get_frame_locals_address and
11325         get_frame_args_address.
11326         * stack.c (frame_info): Use get_frame_locals_address and
11327         get_frame_args_address.
11328         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
11329         moved to "frame-base.c".
11330         * printcmd.c (print_frame_nameless_args): Ditto.
11331         * symtab.h (address_class): Update comments.
11332         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
11333         get_frame_base_address.
11334         * dwarf2expr.c (execute_stack_op): Ditto.
11335         * Makefile.in (frame_base_h): Define.
11336         (frame.o): Update dependencies.
11337         (frame-base.o): Add dependencies.
11338         (SFILES): Add frame-base.c.
11339         (COMMON_OBS): Add frame-base.o.
11340
11341 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11342
11343         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
11344         CALL_DUMMY_LENGTH): Ditto.
11345         * gdbarch.c: Re-generate.
11346         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
11347         (CALL_DUMMY_LENGTH): Delete macro.
11348         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
11349         * arm-tdep.c (arm_gdbarch_init): Ditto.
11350         * avr-tdep.c (avr_gdbarch_init): Ditto.
11351         * cris-tdep.c (cris_gdbarch_init): Ditto.
11352         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11353         * frv-tdep.c (frv_gdbarch_init): Ditto.
11354         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11355         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11356         * i386-tdep.c (i386_gdbarch_init): Ditto.
11357         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11358         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11359         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11360         * mips-tdep.c (mips_gdbarch_init): Ditto.
11361         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11362         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11363         * s390-tdep.c (s390_gdbarch_init): Ditto.
11364         * sh-tdep.c (sh_gdbarch_init): Ditto.
11365         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11366         * v850-tdep.c (v850_gdbarch_init): Ditto.
11367         * vax-tdep.c (vax_gdbarch_init): Ditto.
11368         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11369
11370 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
11371
11372         * frame.c (get_prev_frame): Disable call to inside_entry_file().
11373
11374 2003-04-01  Andrew Cagney  <cagney@redhat.com>
11375
11376         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
11377         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11378         * gdbarch.h, gdbarch.c: Re-generate.
11379         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11380         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11381         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11382         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11383         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11384         * infcmd.c (run_stack_dummy): Simplify assuming
11385         CALL_DUMMY_BREAKPOINT_OFFSET_P.
11386         * infrun.c (handle_inferior_event): Ditto.
11387         * alpha-tdep.c (alpha_gdbarch_init): Do not set
11388         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
11389         * arm-tdep.c (arm_gdbarch_init): Ditto.
11390         * avr-tdep.c (avr_gdbarch_init): Ditto.
11391         * cris-tdep.c (cris_gdbarch_init): Ditto.
11392         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11393         * frv-tdep.c (frv_gdbarch_init): Ditto.
11394         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11395         * i386-tdep.c (i386_gdbarch_init): Ditto.
11396         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11397         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11398         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11399         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11400         * mips-tdep.c (mips_gdbarch_init): Ditto.
11401         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11402         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11403         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11404         * s390-tdep.c (s390_gdbarch_init): Ditto.
11405         * sh-tdep.c (sh_gdbarch_init): Ditto.
11406         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11407         * v850-tdep.c (v850_gdbarch_init): Ditto.
11408         * vax-tdep.c (vax_gdbarch_init): Ditto.
11409         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11410
11411 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
11412
11413         * symfile.c (symfile_relocate_debug_section): Update call to
11414         bfd_simple_get_relocated_section_contents.
11415
11416 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11417
11418         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
11419         * gdbarch.h, gdbarch.c: Regenerate.
11420         * inferior.h (FIX_CALL_DUMMY): Delete macro.
11421         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
11422         available.
11423         * frame.h (generic_fix_call_dummy): Delete declaration.
11424         * dummy-frame.h: Update comment.
11425         * dummy-frame.c (generic_fix_call_dummy): Delete function.
11426         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11427         fix_call_dummy.
11428         * sh-tdep.c (sh_gdbarch_init): Ditto.
11429         * s390-tdep.c (s390_gdbarch_init): Ditto.
11430         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11431         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11432         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11433         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11434         * i386-tdep.c (i386_gdbarch_init): Ditto.
11435         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11436         * frv-tdep.c (frv_gdbarch_init): Ditto.
11437         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11438         * cris-tdep.c (cris_gdbarch_init): Ditto.
11439         * avr-tdep.c (avr_gdbarch_init): Ditto.
11440         * arm-tdep.c (arm_gdbarch_init): Ditto.
11441
11442 2003-03-31  J. Brobecker  <brobecker@gnat.com>
11443
11444         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
11445         (INIT_FRAME_AP): Likewise.
11446         (EXTRA_FRAME_INFO): Likewise.
11447
11448 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11449
11450         * gdbarch.sh: Include "symfile.h".
11451         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
11452         * gdbarch.h, gdbarch.c: Re-generate.
11453         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
11454         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11455         call_dummy_address, the default is at entry_point_address.
11456         * v850-tdep.c (v850_gdbarch_init): Ditto.
11457         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11458         * sh-tdep.c (sh_gdbarch_init): Ditto.
11459         * s390-tdep.c (s390_gdbarch_init): Ditto.
11460         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11461         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11462         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11463         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11464         * i386-tdep.c (i386_gdbarch_init): Ditto.
11465         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11466         * frv-tdep.c (frv_gdbarch_init): Ditto.
11467         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11468         * cris-tdep.c (cris_gdbarch_init): Ditto.
11469         * arm-tdep.c (arm_gdbarch_init): Ditto.
11470
11471 2003-03-31  Andrew Cagney  <cagney@redhat.com>
11472
11473         * gdbarch.sh (CALL_DUMMY_P): Delete.
11474         * gdbarch.h, gdbarch.c: Re-generate.
11475         * inferior.h (CALL_DUMMY_P): Delete macro.
11476         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11477         * vax-tdep.c (vax_gdbarch_init): Update.
11478         * v850-tdep.c (v850_gdbarch_init): Update.
11479         * sparc-tdep.c (sparc_gdbarch_init): Update.
11480         * sh-tdep.c (sh_gdbarch_init): Update.
11481         * s390-tdep.c (s390_gdbarch_init): Update.
11482         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11483         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11484         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11485         * mips-tdep.c (mips_gdbarch_init): Update.
11486         * mcore-tdep.c (mcore_gdbarch_init): Update.
11487         * m68k-tdep.c (m68k_gdbarch_init): Update.
11488         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11489         * ia64-tdep.c (ia64_gdbarch_init): Update.
11490         * i386-tdep.c (i386_gdbarch_init): Update.
11491         * h8300-tdep.c (h8300_gdbarch_init): Update.
11492         * frv-tdep.c (frv_gdbarch_init): Update.
11493         * d10v-tdep.c (d10v_gdbarch_init): Update.
11494         * cris-tdep.c (cris_gdbarch_init): Update.
11495         * breakpoint.c (deprecated_frame_in_dummy): Update.
11496         * avr-tdep.c (avr_gdbarch_init): Update.
11497         * alpha-tdep.c (alpha_gdbarch_init): Update.
11498         * arm-tdep.c (arm_gdbarch_init): Update.
11499         * dummy-frame.c (dummy_frame_this_id): Update comments.
11500         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
11501         * frame.c (legacy_get_prev_frame): Ditto.
11502         * valops.c (call_function_by_hand): Delete function.
11503         (hand_function_call): Rename to call_function_by_hand
11504
11505 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11506
11507         2002-11-10 Klee Dienes <kdienes@apple.com>
11508         * value.h (struct value): Update comment.
11509
11510 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11511
11512         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11513         D10V_FP_REGNUM.
11514         (d10v_gdbarch_init): Do not set fp_regnum.
11515
11516         * frame.c (get_frame_base): Force ID initialization.
11517         (get_prev_frame): Move computation of the frame ID from here ...
11518         (get_frame_id): ... to here.
11519         (legacy_get_prev_frame): Mark the frame ID as valid.
11520         * frame.h (struct frame_info): Add field "id_p".
11521
11522 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
11523
11524         * i386-tdep.c (i386_store_struct_return): Removed.
11525         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11526
11527 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11528
11529         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11530         * gdbarch.h, gdbarch.c: Regenerate.
11531         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11532         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11533         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11534         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11535         * i386-tdep.c (i386_gdbarch_init): Ditto.
11536         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11537         * cris-tdep.c (cris_gdbarch_init): Ditto.
11538         * vax-tdep.c (vax_gdbarch_init): Ditto.
11539         * s390-tdep.c (s390_gdbarch_init): Ditto.
11540         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11541         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11542         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11543         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11544         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11545         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11546         * sparc-tdep.c (sparc_gdbarch_init): Update.
11547         * sh-tdep.c (sh_gdbarch_init): Update.
11548         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11549         * mips-tdep.c (mips_gdbarch_init): Update.
11550         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11551         * ia64-tdep.c (ia64_gdbarch_init): Update.
11552         * frv-tdep.c (frv_gdbarch_init): Update.
11553         * avr-tdep.c (avr_gdbarch_init): Update.
11554         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11555         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
11556         instead of when push_dummy_call is not available.
11557
11558 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11559
11560         * infttrace.c: Include "gdbthread.h".
11561         (parent_attach_all): Fix function signature.
11562         (call_ptrace): Update call.
11563         * Makefile.in (infttrace.o): Update dependencies.
11564
11565 2003-03-30  Andrew Cagney  <cagney@redhat.com>
11566
11567         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11568         PUSH_RETURN_ADDRESS.
11569         * gdbarch.h, gdbarch.c: Regenerate.
11570         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11571         * x86-64-tdep.c (x86_64_init_abi): Update.
11572         * v850-tdep.c (v850_gdbarch_init): Update.
11573         * sparc-tdep.c (sparc_gdbarch_init): Update.
11574         * sh-tdep.c (sh_gdbarch_init): Update.
11575         * s390-tdep.c (s390_gdbarch_init): Update.
11576         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11577         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11578         * mips-tdep.c (mips_gdbarch_init): Update.
11579         * mcore-tdep.c (mcore_gdbarch_init): Update.
11580         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11581         * ia64-tdep.c (ia64_gdbarch_init): Update.
11582         * i386-tdep.c (i386_gdbarch_init): Update.
11583         * h8300-tdep.c (h8300_gdbarch_init): Update.
11584         * frv-tdep.c (frv_gdbarch_init): Update.
11585         * cris-tdep.c (cris_gdbarch_init): Update.
11586         * avr-tdep.c (avr_gdbarch_init): Update.
11587         * arm-tdep.c (arm_gdbarch_init): Update.
11588         * valops.c (hand_function_call): Update.
11589
11590 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11591
11592         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11593         sizeof_call_dummy_words.
11594         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11595         define.
11596         * gdbarch.h: Regenerate.
11597
11598 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11599
11600         * infttrace.h: New file.
11601         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11602         (hpread_get_textlow): Detect an uninitialized dn_bufp.
11603         (hpread_read_doc_function_type): Detect an initialized type1.
11604         (hpread_quick_traverse): Initialize mod_name_string.
11605         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11606         (som_solib_get_solib_by_pc): Declare.
11607         (so_lib_thread_start_addr): Declare.
11608         (no_shared_libraries): Declare.
11609         * somread.c (init_import_symbols): Make static.  Add forward
11610         declaration.
11611         * config/pa/nm-hppah.h: Include "infttrace.h" for
11612         parent_attach_all.
11613         (hppa_insert_hw_watchpoint): Declare.
11614         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11615         * hppah-nat.c: Include "gdb_string.h".
11616         (parent_attach_all): Delete extern declaration, moved to
11617         "infttrace.h".
11618         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11619         int.
11620         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11621         * Makefile.in (infttrace_h): Define.
11622         (hpread.o): Update dependencies.
11623         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11624         * hppa-hpux-tdep.c: Include "gdb_string.h".
11625         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11626         * infrun.c (handle_inferior_event): Always initialize
11627         stepped_after_stopped_by_watchpoint.  Add default and remove
11628         fallthrough in switch statement.
11629         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11630         parameter to int.
11631         (hppa_remove_hw_watchpoint): Ditto.
11632
11633 2003-03-29  Andrew Cagney  <cagney@redhat.com>
11634
11635         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11636         offset.
11637
11638 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
11639
11640         * arm-tdep.c (arm_push_arguments): Delete.
11641         (struct stack_item): New type.
11642         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11643         (arm_store_struct_return): Delte.
11644         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
11645         arm_push_arguments or arm_store_struct_return.
11646
11647 2003-03-28  Andrew Cagney  <cagney@redhat.com>
11648
11649         * Makefile.in (d10v-tdep.o): Update dependencies.
11650         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11651         * d10v-tdep.c: Include "remote.h".
11652         (target_resume_hook): Delete extern declaration.
11653         (target_wait_loop_hook): Ditto.
11654         (tdisassemble_command): Eliminate assignment in "if" conditional.
11655         (d10v_ts2_register_sim_regno): Eliminate call to
11656         legacy_register_sim_regno.
11657         (d10v_ts3_register_sim_regno): Ditto.
11658
11659 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
11660
11661         * thread.c: Reindented.
11662         * lin-lwp.c: Ditto.
11663         * linux-proc.c: Ditto.
11664
11665 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
11666
11667         * MAINTAINERS (write after approval): Add myself.
11668
11669 2003-03-27  Theodore A. Roth  <troth@openavr.org>
11670
11671         * objc-exp.y: Add missing semi-colons.
11672
11673 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11674
11675         * regcache.c (write_sp): Delete function and references.
11676         * inferior.h (write_sp): Delete declaration.
11677         * valops.c (hand_function_call): Replace write_sp with
11678         TARGET_WRITE_SP.
11679         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11680         (sparc_pop_frame): Ditto.
11681
11682 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11683
11684         * NEWS: Mention removal of support for hppa*-*-bsd* and
11685         hppa*-*-osf* natives, and hppa*-*-pro* target.
11686         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11687         * config/pa/xm-pa.h: Obsolete file.
11688         * config/pa/xm-hppab.h: Obsolete file.
11689         * config/pa/nm-hppab.h: Obsolete file.
11690         * config/pa/tm-hppab.h: Obsolete file.
11691         * config/pa/tm-hppao.h: Obsolete file.
11692         * config/pa/nm-hppao.h: Obsolete file.
11693         * config/pa/tm-pro.h: Obsolete file.
11694         * config/pa/hppaosf.mt: Obsolete file.
11695         * config/pa/hppaosf.mh: Obsolete file.
11696         * config/pa/hppapro.mt: Obsolete file.
11697         * config/pa/hppabsd.mt: Obsolete file.
11698         * config/pa/hppabsd.mh: Obsolete file.
11699         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11700         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11701         hppa*-*-osf*.
11702
11703 2003-03-27  Andrew Cagney  <cagney@redhat.com>
11704
11705         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11706         push_arguments.  Don't set push_return_address or write_sp.
11707         (d10v_push_dummy_call): Replace d10v_push_arguments.
11708         (d10v_push_return_address, d10v_write_sp): Delete function,
11709         handled by push_dummy_call.
11710
11711 2003-03-26  Andrew Cagney  <cagney@redhat.com>
11712
11713         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11714         (push_dummy_call): New pure multi-arch replacement with gdbarch,
11715         regcache and dummy_addr parameters.
11716         * gdbarch.h, gdbarch.c: Re-generate.
11717         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11718         available; assume it will handle stack alignment and return
11719         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
11720         legacy_push_arguments.
11721         (legacy_push_arguments): Rename default_push_arguments.
11722         * value.h (legacy_push_arguments): Rename default_push_arguments.
11723         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11724         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11725         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11726         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11727         * config/i386/tm-symmetry.h: Update.
11728         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11729         * x86-64-tdep.c (x86_64_init_abi): Update.
11730         * v850-tdep.c (v850_gdbarch_init): Update.
11731         * sparc-tdep.c (sparc_gdbarch_init): Update.
11732         * sh-tdep.c (sh_gdbarch_init): Update.
11733         * s390-tdep.c (s390_gdbarch_init): Update.
11734         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11735         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11736         * mips-tdep.c (mips_gdbarch_init): Update.
11737         * mcore-tdep.c (mcore_gdbarch_init): Update.
11738         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11739         * ia64-tdep.c (ia64_gdbarch_init): Update.
11740         * i386-tdep.c (i386_gdbarch_init): Update.
11741         * hppa-tdep.c (hppa_gdbarch_init): Update.
11742         * h8300-tdep.c (h8300_gdbarch_init): Update.
11743         * frv-tdep.c (frv_gdbarch_init): Update.
11744         * d10v-tdep.c (d10v_gdbarch_init): Update.
11745         * cris-tdep.c (cris_gdbarch_init): Update.
11746         * avr-tdep.c (avr_gdbarch_init): Update.
11747         * arm-tdep.c (arm_gdbarch_init): Update.
11748         * arm-linux-tdep.c (arm_linux_init_abi): Update.
11749         * alpha-tdep.c (alpha_gdbarch_init): Update.
11750
11751 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11752
11753         * signals/signals.c (do_target_signal_to_host): Correct realtime
11754         signal range test.
11755
11756 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11757
11758         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11759         (struct sal_chain, map_catch_names): Remove.
11760         (catch_exception_command_1): Don't call
11761         handle_gnu_4_16_catch_command.
11762
11763 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11764
11765         From Mark Dettinger <dettinge@de.ibm.com>:
11766         * dwarf2cfi.c (read_2u): Increment pointer by two.
11767
11768 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11769
11770         * signals/signals.c: Fix typos in last change.
11771
11772 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
11773
11774         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11775         not already defined.  Use __SIGRTMIN if available.
11776         (target_signal_from_host): Remove SIGRTMIN block.
11777         (do_target_signal_to_host): Remove SIGRTMIN block; check that
11778         the signal is within the realtime range.
11779
11780 2003-03-25  Adam Fedor  <fedor@gnu.org>
11781
11782         * Makefile.in (infrun.o): Add $(language_h)
11783         * infrun.c (handle_inferior_event): Use skip_language_trampoline
11784         for language specific trampolines.
11785         * language.h (struct language_defn): Add skip_trampoline.
11786         (skip_language_trampoline): Declare.
11787         * language.c (unk_lang_trampoline, skip_language_trampoline):
11788         New functions.
11789         (unknown_language_defn, auto_language_defn, local_language_defn):
11790         Add ukn_lang_trampoline.
11791         * ada-lang.c (ada_language_defn): Add NULL for language
11792         specific skip_trampoline.
11793         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11794         scm-lang.c: Likewise.
11795         * objc-lang.c (objc_skip_trampoline): New function.
11796         (objc_language_defn): Add objc_skip_trampoline.
11797
11798 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11799
11800         * frame.c (get_prev_frame): Delay validating a frame's ID -
11801         non-NULL, didn't go backwards - until an attempt to unwind it to
11802         the previous frame.
11803
11804 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11805
11806         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11807         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
11808         * gdbarch.h, gdbarch.c: Re-generate.
11809         * config/sparc/tm-sparc.h
11810         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11811         * sparc-tdep.c (sparc_gdbarch_init): Set
11812         deprecated_extra_stack_alignment_needed.
11813         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11814         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11815         extra_stack_alignment_needed.
11816         * v850-tdep.c (v850_gdbarch_init): Ditto.
11817         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11818         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11819         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11820         * cris-tdep.c (cris_gdbarch_init): Ditto.
11821         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11822         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11823
11824 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11825
11826         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11827         STORE_STRUCT_RETURN.
11828         * gdbarch.h, gdbarch.c: Regenerate.
11829         * d10v-tdep.c (d10v_store_struct_return): Delete function.
11830         (d10v_push_arguments): Set the struct return register.
11831         (d10v_gdbarch_init): Update.
11832         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11833         * x86-64-tdep.c (x86_64_init_abi): Update.
11834         * vax-tdep.c (vax_gdbarch_init): Update.
11835         * v850-tdep.c (v850_gdbarch_init): Update.
11836         * sparc-tdep.c (sparc_gdbarch_init): Update.
11837         * sh-tdep.c (sh_gdbarch_init): Update.
11838         * s390-tdep.c (s390_gdbarch_init): Update.
11839         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11840         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11841         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11842         * mips-tdep.c (mips_gdbarch_init): Update.
11843         * mcore-tdep.c (mcore_gdbarch_init): Update.
11844         * m68k-tdep.c (m68k_gdbarch_init): Update.
11845         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11846         * ia64-tdep.c (ia64_gdbarch_init): Update.
11847         * i386-tdep.c (i386_gdbarch_init): Update.
11848         * hppa-tdep.c (hppa_gdbarch_init): Update.
11849         * h8300-tdep.c (h8300_gdbarch_init): Update.
11850         * frv-tdep.c (frv_gdbarch_init): Update.
11851         * cris-tdep.c (cris_gdbarch_init): Update.
11852         * avr-tdep.c (avr_gdbarch_init): Update.
11853         * arm-tdep.c (arm_gdbarch_init): Update.
11854         * alpha-tdep.c (alpha_gdbarch_init): Update.
11855
11856 2003-03-25  Andrew Cagney  <cagney@redhat.com>
11857
11858         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11859         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11860         CALL_DUMMY_STACK_ADJUST with a predicate variable.
11861         * gdbarch.h, gdbarch.c: Regenerate.
11862         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11863         call_dummy_stack_adjust_p.
11864         * vax-tdep.c (vax_gdbarch_init): Ditto.
11865         * v850-tdep.c (v850_gdbarch_init): Ditto.
11866         * sh-tdep.c (sh_gdbarch_init): Ditto.
11867         * s390-tdep.c (s390_gdbarch_init): Ditto.
11868         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11869         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11870         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11871         * mips-tdep.c (mips_gdbarch_init): Ditto.
11872         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11873         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11874         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11875         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11876         * i386-tdep.c (i386_gdbarch_init): Ditto.
11877         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11878         * frv-tdep.c (frv_gdbarch_init): Ditto.
11879         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11880         * cris-tdep.c (cris_gdbarch_init): Ditto.
11881         * avr-tdep.c (avr_gdbarch_init): Ditto.
11882         * arm-tdep.c (arm_gdbarch_init): Ditto.
11883         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11884         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11885         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11886         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11887         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
11888         call_dummy_stack_adjust_p.
11889         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11890         (CALL_DUMMY_STACK_ADJUST): Delete macro.
11891         * sparc-tdep.c (sparc32_push_arguments): Update.
11892         * valops.c (hand_function_call): Update.
11893
11894 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
11895
11896         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11897         set_gdbarch_char_signed.
11898
11899 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11900
11901         PR cli/548
11902         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11903
11904 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
11905
11906         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11907         (_initialize_arm_tdep): Don't set tm_print_insn.
11908
11909 2003-03-24  Adam Fedor  <fedor@gnu.org>
11910
11911         * Makefile.in (YYOBJ): Add objc-exp.tab.o
11912         * objc-lang.h: Add multiple inclusion protection.
11913         (start_msglist, add_msglist, end_msglist): Additional declarations.
11914
11915 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
11916
11917         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11918         value was renamed to ARM_FLOAT_SOFT_FPA.
11919
11920 2003-03-23  Andrew Cagney  <cagney@redhat.com>
11921
11922         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11923         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11924         * gdbarch.h, gdbarch.c: Regenerate.
11925         * valops.c (hand_function_call): Update.
11926         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11927         * frame.c (legacy_saved_regs_this_id): Update.
11928         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11929         * dummy-frame.h: Update.
11930         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11931         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11932         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11933         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11934         * config/m68k/tm-sun3.h: Update.
11935         * blockframe.c (inside_main_func, frame_chain_valid): Update.
11936         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11937         * x86-64-tdep.c (x86_64_init_abi): Update.
11938         * vax-tdep.c (vax_gdbarch_init): Update.
11939         * v850-tdep.c (v850_gdbarch_init): Update.
11940         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11941         * sh-tdep.c (sh_gdbarch_init): Update.
11942         * s390-tdep.c (s390_gdbarch_init): Update.
11943         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11944         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11945         (frame_get_saved_regs): Update.
11946         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11947         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11948         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11949         * mips-tdep.c (mips_gdbarch_init): Update.
11950         * mcore-tdep.c (mcore_gdbarch_init): Update.
11951         * m68k-tdep.c (m68k_gdbarch_init): Update.
11952         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11953         * ia64-tdep.c (ia64_gdbarch_init): Update.
11954         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11955         * i386-interix-tdep.c (i386_interix_init_abi): Update.
11956         (i386_interix_back_one_frame): Update.
11957         * hppa-tdep.c (hppa_gdbarch_init): Update.
11958         (hppa_init_extra_frame_info): Update.
11959         * h8300-tdep.c (h8300_gdbarch_init): Update.
11960         * frv-tdep.c (frv_gdbarch_init): Update.
11961         * cris-tdep.c (cris_gdbarch_init): Update.
11962         * avr-tdep.c (avr_gdbarch_init): Update.
11963         * arm-tdep.c (arm_gdbarch_init): Update.
11964         * alpha-tdep.c (alpha_gdbarch_init): Update.
11965
11966 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11967
11968         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11969         (arm_get_fp_model): Declare.
11970         * arm-tdep.c (fp_model_strings): New string array.
11971         (arm_fp_model, current_fp_model): New variables.
11972         (arm_get_fp_model): New function.
11973         (arm_set_fp): New function.
11974         (set_fp_model_sfunc): New function.
11975         (show_fp_model): New function.
11976         (_initialize_arm_tdep): Add new command to set/show the FPU.
11977         (arm_extract_return_value): Use arm_get_fp_model.
11978         (arm_store_return_value): Likewise.
11979         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
11980         to initialize the floating-point data types.
11981         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11982         model is FPA.
11983
11984 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11985
11986         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
11987         the current setting of each value.
11988         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
11989         new_set and new_show.  Use add_setshow_cmd_full and
11990         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
11991         commands and add new version as subcommands of "set/show arm".
11992
11993 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
11994
11995         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11996         (set_arm_command, show_arm_command): New functions.
11997         (_initialize_arm_tdep): Add them.
11998         (num_disassembly_options): Renamed from num_flavor_options.
11999         (valid_disassembly_styles): Renamed from valid_flavors.
12000         (disassembly_style): Renamed from disassembly_flavor.
12001         (set_disassembly_style_sfunc): Renamed from
12002         set_disassembly_flavor_sfunc.
12003         (set_disassembly_style): Renamed from set_disassembly_flavor.
12004         (arm_othernames): Updated.
12005         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
12006         command.  Add "set/show arm disassembly" commands.  Deprecate
12007         "othernames" command.
12008
12009 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
12010
12011         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
12012         (arm-tdep.o): Depend on elf_arm_h.
12013
12014 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
12015
12016         * Makefile.in (coff_internal_h): Define.
12017         (arm-tdep.o): Update dependencies.
12018
12019 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
12020
12021         * arm-tdep.c (prologue_cache): Delete.
12022         (check_prologue_cache, save_prologue_cache): Delete.
12023         (arm_scan_prologue): Don't check or update the prologue_cache.
12024         (arm_gdb_arch_init): Don't initialize it.
12025         (_initialize_arm_tdep): Likewise.
12026
12027 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
12028
12029         * MAINTAINERS (tui): Maintainer of tui code.
12030
12031 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
12032
12033         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
12034         (i386-cygwin-tdep.o): Add dependencies.
12035         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
12036         * i386-cygwin-tdep.c: New file.
12037         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
12038         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
12039
12040 2003-03-20  Andrew Cagney  <cagney@redhat.com>
12041
12042         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
12043         (handle_inferior_event): Remove code calling
12044         DYNAMIC_TRAMPOLINE_NEXTPC.
12045
12046         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
12047         already has a full path.
12048
12049         * main.c (gdb_main): Return 1.
12050         (captured_main): Call error to report an invalid interpreter.
12051
12052         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
12053         * alpha-osf1-tdep.c: Include "gdb_string.h".
12054
12055 2003-03-19  J. Brobecker  <brobecker@gnat.com>
12056
12057         Continuing work to convert the hppa targets to multiarch partial.
12058
12059         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
12060         method, now that hppa_push_dummy_frame has a conformant prototype.
12061         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
12062         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
12063         for the switch to multiarch partial.
12064
12065 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
12066
12067         * mdebugread.c (parse_symbol): For stEnd, we're done counting
12068         when iss is issNull.
12069
12070 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
12071
12072         * mips-tdep.c (mips_register_name): Fix fencepost error involving
12073         NUM_REGS bounds check.
12074
12075 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
12076
12077         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
12078         * mips-tdep.c (gdb_assert.h): Include.
12079         (mips_generic_reg_names, mips_processor_reg_names): Make static.
12080         (mips_register_name): Handle integer registers explicitly.  Add
12081         bounds checking.
12082         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
12083         (mips_lsi33k_reg_names): Don't list integer registers; they're
12084         handled by mips_register_name() now.
12085         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
12086         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
12087         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
12088         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
12089         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
12090
12091 2003-03-18  Andrew Cagney  <cagney@redhat.com>
12092
12093         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
12094         a void pointer.
12095         * gdbtypes.h (print_scalar_formatted): Update declaration.
12096         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
12097
12098 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12099
12100         * infrun.c (observer.h): Add #include.
12101         (normal_stop): Add call to observer_notify_normal_stop.
12102         * Makefile.in (infrun.o): Add dependency on observer.h.
12103
12104 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12105
12106         Continuing work to convert the hppa targets to multiarch partial.
12107         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
12108         parameter. Reformat comment.
12109         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
12110         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
12111         to match new profile.
12112
12113 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12114
12115         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
12116         appear to be working in any case.
12117
12118 2003-03-18  J. Brobecker  <brobecker@gnat.com>
12119
12120         * observer.c (observer_test_first_observer): New static variable.
12121         (observer_test_second_observer): Likewise.
12122         (observer_test_third_observer): Likewise.
12123         (observer_test_first_notification_function): New static function.
12124         (observer_test_second_notification_function): Likewise.
12125         (observer_test_third_notification_function): Likewise.
12126
12127 2003-03-17  J. Brobecker  <brobecker@gnat.com>
12128
12129         * hppa-tdep.c (gdb_assert.h): Add missing #include.
12130         * somsolib.c (gdb_assert.h): Likewise.
12131         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
12132         (somsolib.o): Likewise.
12133
12134 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12135
12136         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
12137         BFD.  Simplify setting of di.endian.
12138
12139 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12140
12141         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
12142         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
12143
12144         From Elena Zannoni  <ezannoni@redhat.com>
12145         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
12146         vector and floating-point parameters.
12147         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
12148         convention.
12149         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
12150
12151 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
12152
12153         * MAINTAINERS: Remove my name from several maintainership roles.
12154
12155 2003-03-17  Andrew Cagney  <cagney@redhat.com>
12156
12157         Fix frame off-by-one bug.
12158         * frame-unwind.h (frame_this_id_ftype): Replace
12159         frame_unwind_id_ftype.
12160         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
12161         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
12162         with "prev_register".
12163         * frame-unwind.c (frame_unwind_find_by_pc): Return
12164         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
12165         comment.
12166         * dummy-frame.c (cached_find_dummy_frame): Delete function.
12167         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
12168         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
12169         (dummy_frame_unwind): Update.
12170         * sentinel-frame.c (sentinel_frame_prev_register): Replace
12171         sentinel_frame_register_unwind.
12172         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
12173         (sentinel_frame_unwinder): Update.
12174         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12175         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
12176         * frame.c (create_sentinel_frame): Update. Initialize
12177         "prologue_cache" instead of "unwind_cache".
12178         (frame_register_unwind): Call this frame's prev_register with the
12179         next frame and this frame's prologue cache.
12180         (get_prev_frame): Simplify.  Always call prev frame's this_id with
12181         this frame and prev frame's prologue cache.  Document that this
12182         call is shifted one to the left when compared to the
12183         frame_register_unwind call.
12184         (legacy_saved_regs_prev_register): Replace
12185         frame_saved_regs_register_unwind.
12186         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
12187         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
12188         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
12189         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
12190         (d10v_frame_unwind): Update.
12191         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
12192         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
12193         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
12194         "saved_regs" with "this_saved_regs".
12195
12196 2003-03-16  Andrew Cagney  <cagney@redhat.com>
12197
12198         * frame.c (frame_pop): Don't call target_store_registers.  Fix
12199         problem reported by Mark Kettenis.
12200
12201 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
12202
12203         * i386-tdep.c (i386_register_type): Renamed from
12204         i386_register_virtual_type.  Adjust function signature.
12205         (i386_gdbarch_init): Set register_type instead of
12206         deprecated_max_register_raw_size,
12207         deprecated_max_register_virtual_size and register_virtual_type.
12208
12209 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12210
12211         * frame.c (get_prev_frame): When a legacy frame, always call
12212         legacy_get_prev_frame.  Simplify unwind code using assumption that
12213         the unwinder is new.
12214         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
12215         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
12216         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
12217
12218 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12219
12220         * frame.c (get_saved_register): Delete function.
12221         * frame.h (get_saved_register): Delete declaration.
12222         * xstormy16-tdep.c: Update comment.
12223         * regcache.h: Update comments.
12224         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
12225         get_saved_register and extract_address, use
12226         frame_read_unsigned_register.
12227         (sparc_frame_saved_pc): Ditto.
12228         (sparc_get_saved_register): Instead of get_saved_register, use
12229         frame_register.
12230         (sparc_pop_frame): Ditto.
12231         * findvar.c: Update comments.
12232         (value_of_register): Call frame_register instead of
12233         get_saved_register.
12234         (value_from_register): Ditto.
12235         * config/sparc/tm-sparc.h: Update comment.
12236         * breakpoint.c: Update comment.
12237
12238 2003-03-14  Andrew Cagney  <cagney@redhat.com>
12239
12240         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
12241         GET_SAVED_REGISTER.
12242         * gdbarch.h, gdbarch.c: Re-generate.
12243         * frame.h: Update comments.
12244         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12245         * x86-64-tdep.c (x86_64_init_abi): Update.
12246         * sparc-tdep.c (sparc_gdbarch_init): Update.
12247         * sh-tdep.c (sh_gdbarch_init): Update.
12248         * mips-tdep.c (mips_gdbarch_init): Update.
12249         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12250         * cris-tdep.c (cris_gdbarch_init): Update.
12251         * ia64-tdep.c (ia64_gdbarch_init): Update.
12252         * frame.c (frame_register): Update.
12253         (get_saved_register): Update.
12254         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
12255
12256 2003-03-13  Andrew Cagney  <cagney@redhat.com>
12257
12258         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
12259         * gdbarch.h, gdbarch.c: Regenerate.
12260         * valops.c (hand_function_call): Update comment.
12261         * stack.c (return_command): Update comment.
12262         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
12263         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
12264         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12265         * x86-64-tdep.c (x86_64_init_abi): Update.
12266         * vax-tdep.c (vax_gdbarch_init): Update.
12267         * v850-tdep.c (v850_gdbarch_init): Update.
12268         * sparc-tdep.c (sparc_gdbarch_init): Update.
12269         * sh-tdep.c (sh_gdbarch_init): Update.
12270         * s390-tdep.c (s390_gdbarch_init): Update.
12271         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12272         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12273         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12274         * mips-tdep.c (mips_gdbarch_init): Update.
12275         * mcore-tdep.c (mcore_gdbarch_init): Update.
12276         * m68k-tdep.c (m68k_gdbarch_init): Update.
12277         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12278         * ia64-tdep.c (ia64_gdbarch_init): Update.
12279         * i386-tdep.c (i386_gdbarch_init): Update.
12280         * hppa-tdep.c (hppa_gdbarch_init): Update.
12281         * h8300-tdep.c (h8300_gdbarch_init): Update.
12282         * frv-tdep.c (frv_gdbarch_init): Update.
12283         * cris-tdep.c (cris_gdbarch_init): Update.
12284         * avr-tdep.c (avr_gdbarch_init): Update.
12285         * arm-tdep.c (arm_gdbarch_init): Update.
12286         * alpha-tdep.c (alpha_gdbarch_init): Update.
12287
12288 2003-03-13  Andrew Cagney  <cagney@redhat.com>
12289
12290         * frame.c (legacy_frame_p): New function.
12291         (get_prev_frame): Use legacy_frame_p.
12292         * frame.h (legacy_frame_p): Declare.
12293
12294 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12295
12296         * MAINTAINERS (write after approval): Alphabetically
12297         listing corrected.
12298
12299 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
12300
12301         * MAINTAINERS (write after approval): Add myself.
12302
12303 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12304
12305         * frame.c (get_prev_frame): Rename the frame parameter to
12306         "this_frame".
12307         (get_next_frame, legacy_get_prev_frame): Ditto.
12308
12309 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12310
12311         * frame.c (get_current_frame): Check target_has_registers before
12312         checking target_has_stack.
12313         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
12314         instead of deprecated_selected_frame.
12315         * findvar.c (value_of_register): Pass "frame", not
12316         deprecated_selected_frame, to value_of_builtin_reg.
12317
12318 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12319
12320         * regcache.c (regcache_cooked_write_signed): New function.
12321         (regcache_cooked_write_unsigned): New function.
12322         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
12323         (regcache_cooked_read_signed): Fix regnum in range assertion.
12324         * regcache.h (regcache_cooked_write_signed): Declare.
12325         (regcache_cooked_write_unsigned): Declare.
12326
12327 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12328
12329         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12330         * gdbarch.h, gdbarch.c: Re-generate.
12331         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12332         * x86-64-tdep.h: Update.
12333         * x86-64-tdep.c (x86_64_init_abi): Update.
12334         * v850-tdep.c (v850_gdbarch_init): Update.
12335         * sparc-tdep.c (sparc_gdbarch_init): Update.
12336         * sh-tdep.c (sh_gdbarch_init): Update.
12337         * s390-tdep.c (s390_gdbarch_init): Update.
12338         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12339         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12340         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12341         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12342         * mips-tdep.c (mips_gdbarch_init): Update.
12343         * mcore-tdep.c (mcore_gdbarch_init): Update.
12344         * m68k-tdep.c (m68k_gdbarch_init): Update.
12345         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12346         * ia64-tdep.c (ia64_gdbarch_init): Update.
12347         * i386-tdep.c (i386_gdbarch_init): Update.
12348         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12349         * hppa-tdep.c (hppa_gdbarch_init): Update.
12350         * h8300-tdep.c (h8300_gdbarch_init): Update.
12351         * frv-tdep.c (frv_gdbarch_init): Update.
12352         * cris-tdep.c (cris_gdbarch_init): Update.
12353         * avr-tdep.c (avr_gdbarch_init): Update.
12354         * arm-tdep.c (arm_gdbarch_init): Update.
12355         * alpha-tdep.c (alpha_gdbarch_init): Update.
12356         * sh-tdep.c (sh_init_extra_frame_info): Update.
12357         (sh64_init_extra_frame_info): Update.
12358         * ns32knbsd-nat.c (frame_num_args): Update.
12359         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12360         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12361         (xstormy16_frame_chain_valid): Update.
12362         * vax-tdep.c (vax_saved_pc_after_call): Update.
12363         * v850-tdep.c (v850_frame_chain): Update.
12364         (v850_pop_frame): Update.
12365         (v850_init_extra_frame_info): Update.
12366         * sparc-tdep.c (setup_arbitrary_frame): Update.
12367         * ns32k-tdep.c (umax_frame_num_args): Update.
12368         * s390-tdep.c (s390_pop_frame_regular): Update.
12369         * mn10300-tdep.c (mn10300_frame_chain): Update.
12370         (mn10300_pop_frame_regular): Update.
12371         (mn10300_init_extra_frame_info): Update.
12372         * mips-tdep.c (mips_init_frame_pc_first): Update.
12373         (mips_frame_chain): Update.
12374         (mips_pop_frame): Update.
12375         * mcore-tdep.c (mcore_frame_chain): Update.
12376         (mcore_pop_frame): Update.
12377         (mcore_init_extra_frame_info): Update.
12378         * arch-utils.c (init_frame_pc_default): Update.
12379         * m68k-tdep.c (isi_frame_num_args): Update.
12380         (delta68_frame_num_args): Update.
12381         (news_frame_num_args): Update.
12382         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12383         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12384         (alpha_frame_chain): Update.
12385         (alpha_pop_frame): Update.
12386         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12387         (hppa_init_extra_frame_info): Update.
12388         (hppa_frame_chain): Update.
12389         (hppa_frame_chain_valid): Update.
12390         * cris-tdep.c (cris_init_extra_frame_info): Update.
12391         * avr-tdep.c (avr_init_extra_frame_info): Update.
12392         * arm-tdep.c (arm_frame_chain_valid): Update.
12393         (arm_init_extra_frame_info): Update.
12394         (arm_pop_frame): Update.
12395         * frame.c (frame_pc_unwind): Update.
12396         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12397         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12398         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12399         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12400         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12401         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12402
12403 2003-03-12  Andrew Cagney  <cagney@redhat.com>
12404
12405         Eliminate the need for POP_FRAME.
12406         * frame.c (do_frame_unwind_register): New function.
12407         (frame_pop): When no POP_FRAME, pop the frame using register
12408         unwind and a scratch regcache.
12409         (frame_saved_regs_pop): Delete function.
12410         (trad_frame_unwinder): Update.
12411         * d10v-tdep.c (d10v_frame_pop): Delete function.
12412         (d10v_frame_unwind): Update.
12413         * sentinel-frame.c (sentinel_frame_pop): Delete function.
12414         (sentinel_frame_unwinder): Update.
12415         * dummy-frame.c (dummy_frame_pop): Delete function.
12416         (dummy_frame_unwind): Update.
12417         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
12418         (struct frame_unwind): Update.
12419
12420 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
12421
12422         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
12423         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
12424         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
12425         Do range checks on register number obtained from debugging info.
12426         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
12427         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
12428         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
12429         mapping function.
12430         (do_fp_register_row): Fix typo which caused double type to be
12431         used when attempting to unpack a float.
12432
12433 2003-03-11  J. Brobecker  <brobecker@gnat.com>
12434
12435         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
12436
12437 2003-03-11  Andrew Cagney  <cagney@redhat.com>
12438
12439         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
12440         frame.  Problem found by Corinna Vinschen.
12441
12442 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
12443
12444         * doublest.c (floatformat_from_length): Accept also
12445         the real size of 'long double' type.
12446
12447 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
12448
12449         From Klee Dienes <kdienes@apple.com>:
12450         * breakpoint.c (bpstat_copy): Copy the command lines as well
12451         as the old value, to match what is freed in bpstat_clear.
12452
12453 2003-03-10  David Carlton  <carlton@math.stanford.edu>
12454
12455         * minsyms.c (add_minsym_to_hash_table): Replace
12456         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
12457         (compare_minimal_symbols, compact_minimal_symbols)
12458         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
12459         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
12460         of DEPRECATED_SYMBOL_MATCHES_NAME.
12461         (lookup_minimal_symbol_solib_trampoline): Ditto.
12462
12463 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12464
12465         * regcache.h (regcache_cooked_read_ftype): Define.
12466         (regcache_save, regcache_restore): Add a cooked_read parameter.
12467         * regcache.c (regcache_save, regcache_restore): Update.
12468         (do_cooked_read): New function.
12469         (regcache_cpy): Pass do_cooked_read to regcache_save and
12470         regcache_restore.
12471
12472 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12473
12474         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
12475         * gdbarch.h, gdbarch.c: Re-generate.
12476         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12477         * x86-64-tdep.h: Update.
12478         * x86-64-tdep.c (x86_64_init_abi): Update.
12479         * v850-tdep.c (v850_gdbarch_init): Update.
12480         * sparc-tdep.c (sparc_gdbarch_init): Update.
12481         * sh-tdep.c (sh_gdbarch_init): Update.
12482         * s390-tdep.c (s390_gdbarch_init): Update.
12483         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12484         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12485         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12486         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12487         * mips-tdep.c (mips_gdbarch_init): Update.
12488         * mcore-tdep.c (mcore_gdbarch_init): Update.
12489         * m68k-tdep.c (m68k_gdbarch_init): Update.
12490         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12491         * ia64-tdep.c (ia64_gdbarch_init): Update.
12492         * i386-tdep.c (i386_gdbarch_init): Update.
12493         * i386-interix-tdep.c (i386_interix_init_abi): Update.
12494         * hppa-tdep.c (hppa_gdbarch_init): Update.
12495         * h8300-tdep.c (h8300_gdbarch_init): Update.
12496         * frv-tdep.c (frv_gdbarch_init): Update.
12497         * cris-tdep.c (cris_gdbarch_init): Update.
12498         * avr-tdep.c (avr_gdbarch_init): Update.
12499         * arm-tdep.c (arm_gdbarch_init): Update.
12500         * alpha-tdep.c (alpha_gdbarch_init): Update.
12501         * sh-tdep.c (sh_init_extra_frame_info): Update.
12502         (sh64_init_extra_frame_info): Update.
12503         * ns32knbsd-nat.c (frame_num_args): Update.
12504         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
12505         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
12506         (xstormy16_frame_chain_valid): Update.
12507         * vax-tdep.c (vax_saved_pc_after_call): Update.
12508         * v850-tdep.c (v850_frame_chain): Update.
12509         (v850_pop_frame): Update.
12510         (v850_init_extra_frame_info): Update.
12511         * sparc-tdep.c (setup_arbitrary_frame): Update.
12512         * ns32k-tdep.c (umax_frame_num_args): Update.
12513         * s390-tdep.c (s390_pop_frame_regular): Update.
12514         * mn10300-tdep.c (mn10300_frame_chain): Update.
12515         (mn10300_pop_frame_regular): Update.
12516         (mn10300_init_extra_frame_info): Update.
12517         * mips-tdep.c (mips_init_frame_pc_first): Update.
12518         (mips_frame_chain): Update.
12519         (mips_pop_frame): Update.
12520         * mcore-tdep.c (mcore_frame_chain): Update.
12521         (mcore_pop_frame): Update.
12522         (mcore_init_extra_frame_info): Update.
12523         * arch-utils.c (init_frame_pc_default): Update.
12524         * m68k-tdep.c (isi_frame_num_args): Update.
12525         (delta68_frame_num_args): Update.
12526         (news_frame_num_args): Update.
12527         * ia64-tdep.c (ia64_pop_frame_regular): Update.
12528         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12529         (alpha_frame_chain): Update.
12530         (alpha_pop_frame): Update.
12531         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12532         (hppa_init_extra_frame_info): Update.
12533         (hppa_frame_chain): Update.
12534         (hppa_frame_chain_valid): Update.
12535         * cris-tdep.c (cris_init_extra_frame_info): Update.
12536         * avr-tdep.c (avr_init_extra_frame_info): Update.
12537         * arm-tdep.c (arm_frame_chain_valid): Update.
12538         (arm_init_extra_frame_info): Update.
12539         (arm_pop_frame): Update.
12540         * frame.c (frame_pc_unwind): Update.
12541         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12542         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12543         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12544         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12545         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12546         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
12547
12548 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12549
12550         * gdbarch.sh (gdbarch_unwind_pc): New method.
12551         * gdbarch.h, gdbarch.c: Regenerate.
12552         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
12553         but use read_pc and FRAME_SAVED_PC as fall backs.
12554         (frame_saved_regs_pc_unwind): Delete function.
12555         (trad_frame_unwinder): Update.
12556         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12557         (struct frame_unwind): Update.
12558         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12559         (dummy_frame_unwind): Update.
12560         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12561         (sentinel_frame_unwinder): Update.
12562         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12563         (d10v_frame_unwind): Update.
12564         (d10v_unwind_pc): New function.
12565         (d10v_gdbarch_init): Set unwind_pc.
12566
12567 2003-03-10  Andrew Cagney  <cagney@redhat.com>
12568
12569         * gdbarch.h: Re-generate.
12570
12571         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12572         PC.
12573         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12574         the PC register.
12575
12576 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
12577
12578         * gdbarch.sh (save_dummy_frame_tos): Add comment.
12579
12580 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12581
12582         * cli-out.c: Update copyright.
12583         (cli_out_data): Define typedef.  Use instead of ui_out_data.
12584
12585 2003-03-08  Andrew Cagney  <cagney@redhat.com>
12586
12587         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12588         the result.
12589
12590 2003-03-07  Andrew Cagney  <cagney@redhat.com>
12591
12592         * gdbarch.sh: Don't generate two macro definitions when an
12593         undefined macro taking no arguments.
12594         * gdbarch.h: Regenerate.
12595
12596 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
12597
12598         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12599         (x86_64_unwind_dummy_id): New functions.
12600         (x86_64_init_abi): Register these two new functions.
12601
12602 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
12603
12604         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12605         (x86_64_skip_prologue): Move prologue detection to
12606         separate function.
12607         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12608
12609 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12610
12611         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12612         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12613         * frame.c (get_prev_frame): Restructure the frame ID unwind code
12614         to use unwind_dummy_id when a dummy frame.
12615         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12616         predicate.
12617         * gdbarch.h, gdbarch.c: Regneerate.
12618
12619 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12620
12621         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12622         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12623         Do not use d10v_read_sp or d10v_read_fp when obtaining register
12624         values.
12625
12626 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12627
12628         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12629         (struct d10v_unwind_cache): Delete field "frameless".  Replace
12630         "next_addr" with "sp_offset".  Add "r11_offset".
12631         (d10v_frame_unwind_cache): Update.
12632         (prologue_find_regs): Update.  When "mv r11, sp", save the
12633         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
12634         RN was saved in r11_offset.
12635
12636 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12637
12638         * frame.c (deprecated_update_frame_pc_hack): Also update the the
12639         cached PC value in the next frame.
12640
12641 2003-03-05  Andrew Cagney  <cagney@redhat.com>
12642
12643         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12644         "id_unwind_cache" with "id".
12645         (frame_id_unwind): Delete declaration.
12646         * frame.c (frame_id_unwind): Delete function.
12647         (get_prev_frame): Call the frame id unwind method directly.  Store
12648         the returned next frame's ID value in NEXT_FRAME.  Note that there
12649         is a problem with the wrong unwind ID being called with the wrong
12650         unwind cache.
12651
12652 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12653
12654         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12655
12656 2003-03-05  James Ingham <jingham@apple.com>
12657             Daniel Jacobowitz  <drow@mvista.com>
12658
12659         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12660         (auto_cp_abi): New variable.
12661         (current_cp_abi, num_cp_abis): Make static.
12662         (CP_ABI_MAX): Define.
12663         (cp_abis): Turn into an array.
12664         (value_virtual_fn_field): Fix formatting.
12665         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
12666         takes a pointer.
12667         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12668         (list_cp_abis, _initialize_cp_abi): New functions.
12669         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
12670         declarations for cp_abis, num_cp_abis, current_cp_abi, and
12671         switch_to_cp_abi.  Update prototype for register_cp_abi.
12672         * Makefile.in (cp-abi.o): Update dependencies.
12673         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12674         instead of switch_to_cp_abi.
12675         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
12676         register_cp_abi.
12677         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12678         register_cp_abi.
12679         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12680
12681 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
12682
12683         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12684         * dwarf2loc.c: Include "regcache.h".
12685         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
12686         register_size.
12687         * Makefile.in (dwarf2loc.o): Update dependencies.
12688
12689 2003-03-04  Theodore A. Roth  <troth@openavr.org>
12690
12691         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12692         number of io registers reported by remote target is not a multiple of
12693         step.
12694
12695 2003-03-04  David Carlton  <carlton@math.stanford.edu>
12696
12697         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12698         (lookup_symbol_aux_psymtabs): Update call to
12699         lookup_partial_symbol.
12700         (lookup_transparent_type, find_main_psymtab)
12701         (make_symbol_overload_list): Ditto.
12702
12703 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
12704
12705         * MAINTAINERS (Write after approval): Update my email address.
12706
12707 2003-03-03  Andrew Cagney  <cagney@redhat.com>
12708
12709         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12710         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12711         predicate.  Replace MAX_REGISTER_RAW_SIZE.
12712         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12713         MAX_REGISTER_VIRTUAL_SIZE.
12714         * regcache.c (legacy_max_register_raw_size): New function.
12715         (legacy_max_register_virtual_size): New function.
12716         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12717         (MAX_REGISTER_RAW_SIZE): Define.
12718         (legacy_max_register_raw_size): Declare.
12719         (legacy_max_register_virtual_size): Declare.
12720         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12721         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12722         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12723         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12724         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12725         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12726         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12727         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12728         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12729         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12730         * vax-tdep.c (vax_gdbarch_init): Update.
12731         * v850-tdep.c (v850_gdbarch_init): Update.
12732         * sparc-tdep.c (sparc_gdbarch_init): Update.
12733         * sh-tdep.c (sh_gdbarch_init): Update.
12734         * s390-tdep.c (s390_gdbarch_init): Update.
12735         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12736         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12737         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12738         * mips-tdep.c (mips_gdbarch_init): Update.
12739         * mcore-tdep.c (mcore_gdbarch_init): Update.
12740         * m68k-tdep.c (m68k_gdbarch_init): Update.
12741         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12742         * ia64-tdep.c (ia64_gdbarch_init): Update.
12743         * i386-tdep.c (i386_gdbarch_init): Update.
12744         * hppa-tdep.c (hppa_gdbarch_init): Update.
12745         * h8300-tdep.c (h8300_gdbarch_init): Update.
12746         * frv-tdep.c (frv_gdbarch_init): Update.
12747         * cris-tdep.c (cris_gdbarch_init): Update.
12748         * avr-tdep.c (avr_gdbarch_init): Update.
12749         * arm-tdep.c (arm_gdbarch_init): Update.
12750         * alpha-tdep.c (alpha_gdbarch_init): Update.
12751         * d10v-tdep.c (d10v_gdbarch_init): Do not set
12752         max_register_raw_size or max_register_virtual_size.
12753
12754 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12755
12756         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12757         SYMBOL_MATCHES_NAME, add comment.
12758         (SYMBOL_MATCHES_NATURAL_NAME): New.
12759         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12760         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12761         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12762         * symtab.c (lookup_partial_symbol): Use
12763         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
12764         unhelpful comment.
12765         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12766         SYMBOL_MATCHES_NAME.
12767         Fix for PR c++/33.
12768
12769 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12770
12771         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12772         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12773         by regexp matching against SYMBOL_NATURAL_NAME.
12774
12775 2003-03-03  David Carlton  <carlton@math.stanford.edu>
12776
12777         * linespec.c (find_method): Extract code into collect_methods.
12778         (collect_methods): New.
12779
12780 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
12781
12782         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12783         get_frame_base.
12784
12785         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12786         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12787
12788 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12789
12790         * arch-utils.c (generic_register_byte): Fix to use the loop index
12791         and not regnum when summing the size of all registers up to regnum.
12792
12793 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12794
12795         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12796         FRAME_INIT_SAVED_REGS.
12797         * gdbarch.h, gdbarch.c: Regenerate.
12798         * stack.c (frame_info): Update.
12799         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12800         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12801         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12802         * ns32k-tdep.c (ns32k_pop_frame): Update.
12803         * mips-tdep.c (mips_pop_frame): Update.
12804         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12805         * ia64-tdep.c (ia64_frame_chain): Update.
12806         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12807         (ia64_frameless_function_invocation): Update.
12808         (ia64_init_extra_frame_info): Update.
12809         (ia64_pop_frame_regular): Update.
12810         * frame.h (struct frame_info): Update comment.
12811         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12812         * frame.c (frame_saved_regs_register_unwind): Update.
12813         (frame_saved_regs_register_unwind): Update.
12814         (deprecated_generic_get_saved_register): Update.
12815         * cris-tdep.c: Update comment.
12816         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12817         Rename macro.
12818         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12819         * x86-64-tdep.c (x86_64_init_abi): Update.
12820         * vax-tdep.c (vax_gdbarch_init): Update.
12821         * v850-tdep.c (v850_gdbarch_init): Update.
12822         * sparc-tdep.c (sparc_gdbarch_init): Update.
12823         * sh-tdep.c (sh_gdbarch_init): Update.
12824         * s390-tdep.c (s390_gdbarch_init): Update.
12825         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12826         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12827         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12828         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12829         * mips-tdep.c (mips_gdbarch_init): Update.
12830         * mcore-tdep.c (mcore_gdbarch_init): Update.
12831         * m68k-tdep.c (m68k_gdbarch_init): Update.
12832         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12833         * ia64-tdep.c (ia64_gdbarch_init): Update.
12834         * i386-tdep.c (i386_gdbarch_init): Update.
12835         * frv-tdep.c (frv_gdbarch_init): Update.
12836         * avr-tdep.c (avr_gdbarch_init): Update.
12837         * arm-tdep.c (arm_gdbarch_init): Update.
12838         * alpha-tdep.c (alpha_gdbarch_init): Update.
12839
12840 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12841
12842         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12843         option enum and switch.  When no windows, set the interpreter to
12844         INTERP_CONSOLE.
12845
12846 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12847
12848         * main.c (captured_main): Replace magic option characters with an
12849         enum.
12850
12851 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12852
12853         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12854         INIT_EXTRA_FRAME_INFO.
12855         * gdbarch.h, gdbarch.c: Regenerate.
12856         * arm-tdep.c: Update comments.
12857         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12858         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12859         * frame.h, avr-tdep.c: Ditto.
12860         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12861         (create_new_frame, legacy_get_prev_frame): Ditto.
12862         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12863         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12864         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12865         deprecated_init_extra_frame_info instead of init_extra_frame_info.
12866         * x86-64-tdep.c (x86_64_init_abi): Ditto.
12867         * v850-tdep.c (v850_gdbarch_init): Ditto.
12868         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12869         * sh-tdep.c (sh_gdbarch_init): Ditto.
12870         * s390-tdep.c (s390_gdbarch_init): Ditto.
12871         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12872         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12873         * mips-tdep.c (mips_gdbarch_init): Ditto.
12874         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12875         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12876         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12877         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12878         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12879         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12880         * frv-tdep.c (frv_gdbarch_init): Ditto.
12881         * cris-tdep.c (cris_gdbarch_init): Ditto.
12882         * avr-tdep.c (avr_gdbarch_init): Ditto.
12883         * arm-tdep.c (arm_gdbarch_init): Ditto.
12884         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12885         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12886
12887 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12888
12889         * gdbarch.sh (register_type): New function with predicate.
12890         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12891         * gdbarch.h, gdbarch.c: Re-generate.
12892         * arch-utils.c (generic_register_byte): Use generic_register_size.
12893         (generic_register_size): When available, use
12894         gdbarch_register_type.
12895         * regcache.c (init_regcache_descr): When available, initialize the
12896         register type array using gdbarch_register_type.  If the
12897         architecture supplies gdbarch_register_type, do not use the legacy
12898         regcache layout.
12899         * d10v-tdep.c (d10v_register_type): Replace
12900         d10v_register_virtual_type.
12901         (d10v_gdbarch_init): Set register_type instead of
12902         register_virtual_type.
12903
12904 2003-03-01  Andrew Cagney  <cagney@redhat.com>
12905
12906         * Makefile.in (ax-gdb.o): Update dependencies.
12907         * ax-gdb.c: Include "regcache.h".
12908         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12909         * findvar.c (value_of_register): Ditto.
12910         * infcmd.c (default_print_registers_info): Ditto.
12911
12912 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12913
12914         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12915         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12916
12917 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
12918
12919         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12920         of STREQ.
12921
12922 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
12923
12924         * Makefile.in (dwarf2loc.o): Update dependencies.
12925         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12926         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12927         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12928         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12929         (locexpr_tracepoint_var_ref): New function.
12930         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12931
12932 2003-02-28  Andrew Cagney  <cagney@redhat.com>
12933
12934         * regcache.c (register_size): New function.
12935         * regcache.h (register_size): Declare
12936         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12937         max_register_size instead of MAX_REGISTER_RAW_SIZE.
12938
12939 2003-02-28  David Carlton  <carlton@math.stanford.edu>
12940
12941         * linespec.c (decode_compound): Extract code into find_method.
12942         (find_method): New.
12943
12944 2003-02-28  J. Brobecker  <brobecker@gnat.com>
12945
12946         * Makefile.in: Add rules to build and link in observer.o.
12947
12948 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12949
12950         * observer.c: Minor comments edits.
12951
12952 2003-02-27  J. Brobecker  <brobecker@gnat.com>
12953
12954         * observer.h, observer.c: New file.
12955
12956 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12957
12958         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12959
12960 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
12961
12962         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12963         (M6812_OP_STS_EXT): Likewise.
12964         (m6811_prologue): Use the above to recognize prologue.
12965         (m6812_prologue): Likewise.
12966
12967 2003-02-27  David Carlton  <carlton@math.stanford.edu>
12968
12969         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12970         SYMBOL_PRINT_NAME.
12971         (compare_psymbols): Ditto.
12972         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12973
12974 2003-02-27  Michael Snyder  <msnyder@redhat.com>
12975
12976         * f-lang.c (build_fortran_types): New function.
12977         (_initialize_f_language): Gdbarch-register built-in fortran types.
12978         * doublest.c (extract_floating): Fix warning text.
12979
12980 2003-02-27  Andrew Cagney  <cagney@redhat.com>
12981
12982         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12983         predicate.  Replaces PUSH_DUMMY_FRAME.
12984         * gdbarch.h, gdbarch.c: Regnerate.
12985         * valops.c (hand_function_call): Update.  Call
12986         generic_push_dummy_frame directly.
12987         * vax-tdep.c (vax_gdbarch_init): Update.
12988         * sparc-tdep.c (sparc_gdbarch_init): Update.
12989         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12990         * m68k-tdep.c (m68k_gdbarch_init): Update.
12991         * hppa-tdep.c (hppa_gdbarch_init): Update.
12992         * alpha-tdep.c (alpha_gdbarch_init): Update.
12993         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12994         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12995         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12996         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12997         push_dummy_frame to generic_push_dummy_frame.
12998         * v850-tdep.c (v850_gdbarch_init): Ditto.
12999         * sh-tdep.c (sh_gdbarch_init): Ditto.
13000         * s390-tdep.c (s390_gdbarch_init): Ditto.
13001         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
13002         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
13003         * mips-tdep.c (mips_gdbarch_init): Ditto.
13004         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
13005         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13006         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
13007         * i386-tdep.c (i386_gdbarch_init): Ditto.
13008         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
13009         * frv-tdep.c (frv_gdbarch_init): Ditto.
13010         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
13011         * cris-tdep.c (cris_gdbarch_init): Ditto.
13012         * avr-tdep.c (avr_gdbarch_init): Ditto.
13013         * arm-tdep.c (arm_gdbarch_init): Ditto.
13014
13015 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
13016
13017         * mips-tdep.c (show_mips_abi): New function.
13018         (_initialize_mips_tdep): Use show_mips_abi() to implement the
13019         command ``show mips abi''.
13020
13021 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
13022
13023         From Elena Zannoni  <ezannoni@redhat.com>
13024         * dbxread.c (process_one_symbol): Only record line 0 if one or
13025         more sline entries have been seen for the function.
13026
13027 2003-02-26  Michael Chastain  <mec@shout.net>
13028
13029         * configure: Regenerate with autoconf 000227.
13030
13031 2003-02-26  Michael Chastain  <mec@shout.net>
13032
13033         Close PR build/660.
13034         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
13035         for old libc5/glibc.
13036         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
13037
13038 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
13039
13040         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
13041         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
13042
13043 2003-02-26  Michael Chastain  <mec@shout.net>
13044
13045         * configure.in: New variable HAVE_UINTPTR_T.
13046         * configure, config.in: Regenerated.
13047
13048 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
13049
13050         Fix PR build/1097.
13051         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
13052
13053 2003-02-25  Andrew Cagney  <cagney@redhat.com>
13054
13055         * frame.c (get_prev_frame): Add comment on check for
13056         inside_entry_func. Only check for inside_entry_file when not a
13057         dummy and not a sentinel.  Check that the new frame is not inner
13058         to the old frame.
13059
13060 2003-02-25  Andrew Cagney  <cagney@redhat.com>
13061
13062         * frame.c (frame_debug): New variable.
13063         (_initialize_frame): Add "set/show debug frame" command.
13064         (get_prev_frame): When frame_debug, print reason why unwind
13065         failed.
13066
13067 2003-02-25  Michael Chastain  <mec@shout.net>
13068
13069         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
13070         to avoid uintptr_t definition problems.
13071
13072 2003-02-25  David Carlton  <carlton@math.stanford.edu>
13073
13074         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
13075         (SYMBOL_LINKAGE_NAME): Ditto.
13076         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
13077         SYMBOL_LINKAGE_NAME.
13078         (struct general_symbol_info): Expand comment.
13079         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
13080         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
13081         (SYMBOL_MATCHES_REGEXP): Ditto.
13082         * symtab.c (symbol_natural_name): New function.
13083         * objfiles.h: Replace all uses of SYMBOL_NAME by
13084         DEPRECATED_SYMBOL_NAME.
13085         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
13086         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
13087         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
13088         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
13089         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
13090         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
13091         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
13092         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
13093         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
13094         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
13095         * ada-exp.y: Ditto.
13096         * ada-exp.y: Update copyright.
13097         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
13098         * cp-valprint.c: Ditto.
13099
13100 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
13101
13102         * infptrace.c (detach): Do not flag error if ptrace detach fails
13103         and errno is set to ESRCH.
13104
13105 2003-02-24  Andrew Cagney  <cagney@redhat.com>
13106
13107         * infptrace.c (udot_info): Change type of udot_off to long.  Use
13108         paddr when printing udot_off's value.
13109
13110 2003-02-24  David Carlton  <carlton@math.stanford.edu>
13111
13112         * symtab.c (make_symbol_overload_list): Only read in partial
13113         symtabs containing a matching partial symbol.
13114
13115 2003-02-24  David Carlton  <carlton@math.stanford.edu>
13116
13117         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
13118         do the comparison, not strcmp.
13119         * symfile.c (compare_psymbols): Ditto.
13120         * defs.h: Declare strcmp_iw_ordered.
13121         * utils.c (strcmp_iw_ordered): New function.
13122
13123 2003-02-24  Jim Blandy  <jimb@redhat.com>
13124
13125         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
13126         support, shared libs): Remove my name from here, to better reflect
13127         reality.
13128
13129 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13130
13131         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
13132         (target_ops): Add to_have_continuable_watchpoint.
13133         * target.c (update_current_target): Add INHERIT line for
13134         to_have_continuable_watchpoint.
13135         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
13136         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
13137         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
13138         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
13139
13140 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
13141
13142         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
13143         maintainership.
13144
13145 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13146
13147         * solib.c (solib_open): Call target defined search function after
13148         failing with solib-search-path.
13149         * solist.h (target_so_ops): Add find_and_open_solib function hook and
13150         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
13151
13152 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
13153
13154         * MAINTAINERS: Add myself to Write After section.
13155
13156 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
13157
13158         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
13159
13160 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
13161
13162         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
13163         (m68hc11_add_reggroups): New function.
13164         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
13165         (m68hc11_gdbarch_init): Install the reggroups.
13166         (_initialize_m68hc11_tdep): Initialize them.
13167
13168 2003-02-21  James E Wilson  <wilson@tuliptree.org>
13169
13170         * MAINTAINERS: Update my email address.
13171
13172 2003-02-21  David Carlton  <carlton@math.stanford.edu>
13173
13174         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
13175
13176 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
13177
13178         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
13179         * symtab.h: Add opaque declarations of struct axs_value and
13180         struct agent_expr.
13181         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
13182         (struct location_funcs): New type.
13183         (struct symbol): Add "loc" to aux_value.
13184         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
13185         * dwarf2read.c: Include "dwarf2expr.h".
13186         (dwarf2_symbol_mark_computed): New function.
13187         (read_func_scope): Use it.
13188         (var_decode_location): New function.
13189         (new_symbol): Use it.
13190         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
13191
13192         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
13193         (dwarf2expr_h, dwarf2loc_h): New variables.
13194         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
13195         (dwarf2expr.o, dwarf2loc.o): New rules.
13196         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
13197         * buildsym.c (finish_block): Handle LOC_COMPUTED and
13198         LOC_COMPUTED_ARG.
13199         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
13200         * m2-exp.y (yylex): Likewise.
13201         * printcmd.c (address_info, print_frame_args): Likewise.
13202         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
13203         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
13204         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
13205         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
13206         * symtab.c (lookup_block_symbol): Likewise.
13207
13208 2003-02-20  Adam Fedor  <fedor@gnu.org>
13209
13210         * symtab.h: Remove objc_specific struct
13211         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
13212         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
13213         Have language_objc use cplus_specific struct.
13214
13215 2003-02-20  Tom Tromey  <tromey@redhat.com>
13216
13217         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
13218         TYPE_NAME, when printing a String value.  PR java/1075.
13219
13220 2003-02-20  Adam Fedor  <fedor@gnu.org>
13221
13222         * objc-lang.h (find_methods): Remove declaration.
13223         * objc-lang.c (find_methods): Make static.
13224
13225 2003-02-20  Christopher Faylor  <cgf@redhat.com>
13226
13227         * win32-nat.c (get_image_name): Check return value from
13228         ReadProcessMemory.
13229         (child_xfer_memory): Ditto.
13230
13231 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
13232
13233         * configure.in (TARGET_SYSTEM_ROOT): Set default to
13234         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
13235         '${exec_prefix}' (in addition to the expansion thereof) as
13236         relocatable.
13237         * configure: Rebuilt.
13238
13239 2003-02-20  David Carlton  <carlton@math.stanford.edu>
13240
13241         * symtab.c (search_symbols): Revert the search_symbols part of my
13242         2002-12-23 patch.  Add comment.
13243
13244 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
13245
13246         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
13247         * dbxread.c (elfstab_build_psymtabs): Don't call
13248         install_minimal_symbols.
13249         (stabsect_build_psymtabs): Likewise.
13250         * elfread.c (elf_symfile_read): Call install_minimal_symbols
13251         earlier.
13252         * somread.c (som_symfile_read): Call install_minimal_symbols
13253         and do_cleanups earlier.
13254         * nlmread.c (nlm_symfile_read): Likewise.
13255         * mdebugread.c (elfmdebug_build_psymtabs): Call
13256         install_minimal_symbols and make appropriate cleanups.
13257
13258 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13259
13260         * solib.c (reload_shared_libraries): New function.
13261         (_initialize_solib): Add callbacks for ``set solib-search-path''
13262         and ``set solib-absolute-prefix''.
13263
13264 2003-02-20  David Carlton  <carlton@math.stanford.edu>
13265
13266         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
13267         expand comment.
13268         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
13269         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
13270         * ada-typeprint.c (ada_typedef_print): Ditto.
13271         * ax-gdb.c (gen_var_ref): Ditto.
13272         * breakpoint.c (print_one_breakpoint): Ditto.
13273         * buildsym.c (finish_block): Ditto.
13274         * c-valprint.c (c_val_print): Ditto.
13275         * expprint.c (print_subexp): Ditto.
13276         * findvar.c (locate_var_value): Ditto.
13277         * infcmd.c (jump_command): Ditto.
13278         * linespec.c (decode_line_2, decode_compound): Ditto.
13279         * maint.c (maintenance_translate_address): Ditto.
13280         * objc-lang.c (compare_selectors, compare_classes): Ditto.
13281         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
13282         Ditto.
13283         * p-valprint.c (pascal_val_print): Ditto.
13284         * stabsread.c (define_symbol): Ditto.
13285         * stack.c (print_frame, frame_info, print_block_frame_locals)
13286         (print_frame_arg_vars, return_command): Ditto.
13287         * symfile.c (compare_symbols, compare_psymbols): Ditto.
13288         * symmisc.c (print_symbol): Ditto.
13289         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
13290         (compare_search_syms, print_symbol_info, print_msymbol_info)
13291         (rbreak_command): Ditto.
13292         * tracepoint.c (tracepoints_info): Ditto.
13293         * typeprint.c (typedef_print): Ditto.
13294         * valops.c (value_of_variable, hand_function_call): Ditto.
13295         * cli/cli-cmds.c (edit_command, list_command): Ditto.
13296         * ada-typeprint.c: Update Copyright.
13297         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
13298         * tracepoint.c, cli/cli-cmds.c: Ditto.
13299
13300 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
13301
13302         * frame.c (generic_unwind_get_saved_register): Make non-static.
13303         * frame.h (generic_unwind_get_saved_register): Declare.
13304         * mips-tdep.c (read_next_frame_reg): Fetch register from
13305         current regcache when frame is NULL.
13306         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
13307         that must be NULL.
13308         (mips_get_saved_register): Call generic_unwind_get_saved_register()
13309         instead of frame_register_unwind().
13310
13311 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13312
13313         * remote-sim.c (gdbsim_insert_breakpoint)
13314         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
13315         code.
13316
13317 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
13318
13319         * remote.c (_initialize_remote): Add commands "set/show remote
13320         hardware-watchpoint-limit" and "set/show remote
13321         hardware-breakpoint-limit".
13322         (remote_hw_watchpoint_limit): Initialize to -1.
13323         (remote_hw_breakpoint_limit): Ditto.
13324         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
13325
13326 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
13327
13328         * coff-pe-read.c: New file - support reading of minimal symbols from a
13329         portable executable using the export table.
13330         * coff-pe-read.h: New file.
13331         * coffread.c: Include coff-pe-read.h.
13332         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
13333         debugging symbols found.
13334         * Makefile.in (SFILES): Add coff-pe-read.o.
13335         (coff_pe_read_h): Define.
13336         (COMMON_OBS): Add coff-pe-read.o.
13337         (coffread.o): Add coff_pe_read_h dependency.
13338         (coff-pe-read.o): New target.
13339
13340 2003-02-19  David Carlton  <carlton@math.stanford.edu>
13341
13342         * Makefile.in (SFILES): Add block.c.
13343         (block_h): New.
13344         (COMMON_OBS): Add block.o.
13345         (block.o): New.
13346         (x86-64-tdep.o): Add $(block_h).
13347         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
13348         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
13349         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
13350         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
13351         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
13352         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
13353         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
13354         * value.h: Add opaque declaration for struct block.
13355         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
13356         * ada-lang.h: Ditto.
13357         * x86-64-tdep.c: #include "block.h"
13358         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
13359         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
13360         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
13361         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
13362         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
13363         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
13364         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
13365         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
13366         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
13367         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
13368         * symtab.c (block_function): Ditto.
13369         (contained_in): Ditto.
13370         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
13371         block.h.  Add opaque declaration for struct block.
13372         * symtab.h: Move block_function and contained_in declarations to
13373         block.h.  Add opaque declarations for struct block, struct
13374         blockvector.
13375         (struct block): Move to block.h.
13376         (struct blockvector): Ditto.
13377         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
13378         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
13379         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
13380         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
13381         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
13382         Ditto.
13383         * block.c: New file.
13384         * block.h: New file.
13385
13386 2003-02-19  Theodore A. Roth  <troth@openavr.org>
13387
13388         * avr-tdep.c (avr_extract_return_value): Remove function.
13389         (avr_store_return_value): Remove function.
13390         (avr_extract_struct_value_address): Remove function.
13391         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
13392
13393 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
13394
13395         * rs6000-tdep.c: Include "gdb_assert.h".
13396         (registers_e500): Add "acc" and "spefscr".
13397         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
13398         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
13399         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
13400         really is "r0".
13401         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
13402
13403 2003-02-18  Keith Seitz  <keiths@redhat.com>
13404
13405         * Makefile.in: Add gdbtk-interps.c.
13406
13407 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
13408
13409         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
13410         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
13411
13412 2003-02-18  Andrew Cagney  <cagney@redhat.com>
13413
13414         * symtab.h (struct objfile): Add opaque declaration.
13415
13416 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
13417
13418         From Jim Ingham   <jingham@apple.com>:
13419         * dbxread.c (process_one_symbol): Use last_function_start rather
13420         than function_start_offset to find the real beginning of the
13421         current function.  The latter is just the text section offset on
13422         some systems, the former is always the real function start.
13423
13424 2003-02-17  Andrew Cagney  <cagney@redhat.com>
13425
13426         * configure.in: Revert ${target} != ${host}.
13427
13428 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
13429
13430         * configure.in (Makefile): Use the test ${target} != ${host},
13431         instead of the absence of the "nm.h" file, to determine of the
13432         configuration non-native.
13433         * configure: Regenerate.
13434
13435 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
13436
13437         From Brian Ford  <ford@vss.fsi.com>
13438
13439         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
13440         conditionalize tui_active test.
13441         (lookup_cmd_1): Ditto.
13442
13443 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
13444
13445         * configure.in: Add check for _etext.
13446         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
13447         available.
13448         * config.in, configure: regenerated.
13449
13450 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
13451
13452         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
13453
13454 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
13455
13456         * main.c (tui_version): Delete variable.
13457         (captured_main): When --tui, set interpreter_p to "tui" instead of
13458         enabling tui_version.
13459         * printcmd.c (display_command) [TUI]: Test tui_active instead of
13460         tui_version.
13461         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
13462         * cli/cli-cmds.c (disassemble_command): Ditto.
13463         * defs.h (tui_version): Delete declaration.
13464         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
13465         (tui-interp.o): Add rules.
13466         (SUBDIR_TUI_OBS): Add "tui-interp.o".
13467
13468 2003-02-14  Christopher Faylor  <cgf@redhat.com>
13469
13470         * win32-nat.c (register_loaded_dll): Correctly set address range for
13471         just-loaded dll.
13472
13473 2003-02-12  Jason Molenda  (jmolenda@apple.com)
13474
13475         * symmisc.c (print_objfile_statistics): Include information about
13476         the number of psymtabs and symtabs in each object file.
13477
13478 2003-02-13  Keith R Seitz  <keiths@redhat.com>
13479
13480         * main.h (struct captured_main_args): Add interpreter_p.
13481         * main.c (captured_main): Initialize interpreter_p from context.
13482         * gdb.c (main): Set interpreter_p argument.
13483         * Makefile.in (gdb.o): Add dependency for interps.h.
13484
13485 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13486
13487         * event-top.c (cli_command_loop): Delete declaration.
13488         (_initialize_event_loop): Delete function setting event_loop_hook.
13489         * event-top.h (cli_command_loop): Declare.  Update copyright.
13490         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
13491         * interps.c (current_interp_command_loop): When event_loop_p, call
13492         cli_command_loop.
13493
13494 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
13495
13496         * interps.h (interp_command_loop_ftype): Change return type to
13497         void.
13498
13499 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
13500
13501         * x86-64-tdep.c (x86_64_extract_return_value)
13502         (x86_64_store_return_value): Use regcache instead of regbuf.
13503         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
13504         * x86-64-linux-nat.c (fill_gregset): Use regcache.
13505
13506 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
13507
13508         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
13509         * aclocal.m4: Regenerate.
13510         * configure: Regenerate.
13511
13512         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13513         TCL_LD_SEARCH_FLAGS.
13514
13515 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
13516
13517         * dwarf2cfi.c: Reindented.
13518
13519 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
13520
13521         * interps.c (clear_interpreter_hooks): Convert function definition
13522         to ISO C.
13523
13524 2003-02-07  David Carlton  <carlton@math.stanford.edu>
13525
13526         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13527
13528 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
13529
13530         * gdbtypes.h (struct main_type): Move ``length'' field from here...
13531         (struct type): ...to here.
13532         (TYPE_LENGTH): Adjust to reflect different location of ``length''
13533         field.
13534         * gdbtypes.c (make_qualified_type): Set length on newly created type.
13535         (replace_type): Set length on all type variants for a given type.
13536
13537 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
13538
13539         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13540         <sys/stat.h>.
13541         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13542
13543 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
13544
13545         * Makefile.in (symm-nat.o): Update dependencies.
13546         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13547         (lynx-nat.o, ia64-linux-nat.): Ditto.
13548         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13549         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13550         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13551
13552         * Makefile.in (inflow_h): Define.
13553         (procfs.o, inflow.o, procfs.o): Update dependencies.
13554         * inftarg.c (child_stop): Delete extern declaration of
13555         inferior_process_group.  Include "inflow.h".
13556         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
13557         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13558         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
13559         (our_process_group, inferior_process_group): Extern declarations.
13560
13561         * procfs.c: Include "gdb_assert.h".
13562
13563         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13564         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13565         * jv-typeprint.c (java_type_print_base): Ditto.
13566         * typeprint.c (typedef_print): Eliminate STREQ.
13567         * cli/cli-script.c (define_command, define_command): Ditto.
13568         * main.c (captured_main): Ditto.
13569         * values.c (lookup_internalvar): Ditto.
13570         * utils.c (safe_strerror, parse_escape): Eliminate assignment
13571         within `if' conditional.
13572         * linespec.c (decode_line_2): Ditto.
13573         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13574         (bfd_openw_with_cleanup): Ditto.
13575
13576 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
13577
13578         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13579         legacy_extract_return_value and store_return_value to
13580         legacy_return_value.
13581
13582 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
13583
13584         * win32-nat.c (get_relocated_section_addrs): New function.  Find
13585         section load addresses for symbol handling in relocated DLLs.
13586         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13587
13588 2003-02-05  Fred Fish  <fnf@intrinsity.com>
13589
13590         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13591         '=' and '!='.
13592         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13593         with '&' and '=='.
13594         (angel_RDI_info): Ditto.
13595         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13596         with '&' and '!='.
13597         (threads_continue_all_with_signals): Ditto.
13598
13599 2003-02-05  Jim Ingham <jingham@apple.com>
13600             Keith Seitz  <keiths@redhat.com>
13601             Elena Zannoni  <ezannoni@redhat.com>
13602             Andrew Cagney  <ac131313@redhat.com>
13603
13604         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13605         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13606         (SUBDIR_MI_OBS): Add "mi-interp.o".
13607         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13608         (SFILES): Add "interps.c".
13609         (COMMON_OBS): Add "interps.o".
13610         (interps_h, mi_main_h): Define.
13611         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13612         (mi-main.o, main.o, event-top.o): Update dependencies.
13613         * cli/cli-interp.c: New file.
13614         * interps.h, interps.c: New files.
13615         * top.c: (gdb_init): Don't install the default interpreter, handed
13616         by captured_main.
13617         * main.c: Include "interps.h".
13618         (interpreter_p): Note that it should malloc'ed.
13619         (captured_command_loop): Call current_interp_command_loop.
13620         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
13621         xfree and xstrdup when updating interpreter_p.  Install the
13622         default interpreter.  Add hack to stop mi1's copyright notice
13623         being encoded.
13624         * event-top.h (gdb_setup_readline): Declare.
13625         (gdb_disable_readline): Declare.
13626         * event-top.c: Include "interps.h".
13627         (display_gdb_prompt): Call current_interp_display_prompt_p.
13628         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13629         gdb_stdlog, and gdb_stdtarg.
13630         (_initialize_event_loop): Don't call gdb_setup_readline.
13631         * cli-out.c (cli_out_set_stream): New function.
13632         * cli-out.h (cli_out_set_stream): Declare.
13633
13634 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
13635
13636         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13637         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
13638         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13639         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13640         config/i386/i386v42mp.mt: Removed.
13641
13642 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
13643
13644         * configure.tgt (*-*-solaris*): Set gdb_osabi to
13645         GDB_OSABI_SOLARIS.
13646
13647 2003-02-05  Michael Chastain  <mec@shout.net>
13648
13649         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13650         2.12.1 and earlier versions.
13651
13652 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
13653
13654         Remove orphaned hosts, targets and files.
13655         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13656         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13657         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13658         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13659         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13660         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13661         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13662         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13663         * config/sparc/tm-sp64sim.h: Delete.
13664         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13665         hosts.
13666         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13667         mips*-dec-mach3* targets.
13668
13669 2003-02-04  Michael Chastain  <mec@shout.net>
13670
13671         * NEWS: Fix typo: sepcifying -> specifying.
13672
13673 2003-02-04  Michael Chastain  <mec@shout.net>
13674
13675         * dwarfread.c: Add documentation on the state of dwarf-1,
13676         looking towards obsoletion.
13677
13678 2003-02-03  Michael Chastain  <mec@shout.net>
13679
13680         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13681         gdb/testsuite/gdb.c++/pr-1023.exp.
13682
13683 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13684
13685         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13686         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13687
13688         * utils.c (init_page_info): Delete reference to MPW in comments.
13689         * main.c (captured_main): Delete #ifdef MPW.
13690
13691 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13692
13693         * NEWS: Note that the m32r-*-elf* is obsolete.
13694         * monitor.c (monitor_expect): Obsolete reference to m32r.
13695         * configure.tgt: Mark m32r-*-elf* as obsolete.
13696         * MAINTAINERS: Mark m32k as obsolete.
13697         * m32r-rom.c: Obsolete file.
13698         * config/m32r/m32r.mt: Obsolete file.
13699         * config/m32r/tm-m32r.h: Obsolete file.
13700         * m32r-stub.c: Obsolete file.
13701         * m32r-tdep.c: Obsolete file.
13702
13703 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13704
13705         * NEWS: Mention that the z8k-zilog-none is obsolete.
13706         * MAINTAINERS: Mark z8k as obsolete.
13707         * configure.tgt: Obsolete the z8k-*-coff* target.
13708         * config/z8k/z8k.mt: Obsolete file.
13709         * config/z8k/tm-z8k.h: Obsolete file.
13710         * z8k-tdep.c: Obsolete file.
13711
13712 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13713
13714         * NEWS: Mention that the mn10200-elf is obsolete.
13715         * configure.tgt: Obsolete mn10200-*-* target.
13716         * breakpoint.c (update_breakpoints_after_exec): Update comment to
13717         mention that the mn10200 is obsolete.
13718         * breakpoint.h: Ditto.
13719         * MAINTAINERS: Mark the mn10200-elf as obsolete.
13720         * config/mn10200/mn10200.mt: Obsolete file.
13721         * config/mn10200/tm-mn10200.h: Obsolete file.
13722         * mn10200-tdep.c: Obsolete file.
13723
13724 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
13725
13726         * MAINTAINERS: Mark h8500 as obsolete.
13727         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13728         * findvar.c (value_from_register): Ditto.
13729         * h8500-tdep.c: Mark file as obsolete.
13730         * config/h8500/h8500.mt: Ditto.
13731         * config/h8500/tm-h8500.h: Ditto.
13732         * NEWS: Mention that h8500 is obsolete.
13733
13734 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13735
13736         * objfiles.c (allocate_objfile): Always set name.  Add comment at
13737         start of function.
13738         * jv-lang.c (get_dynamics_objfile): Add comment.
13739
13740 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13741
13742         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13743         * printcmd.c (build_address_symbolic): Replace uses of
13744         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13745         SYMBOL_NAME, and asm_demangle.
13746         Update copyright.
13747
13748 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13749
13750         * linespec.c (decode_compound): Extract code into
13751         lookup_prefix_sym.
13752         (lookup_prefix_sym): New function.
13753
13754 2003-02-04  David Carlton  <carlton@math.stanford.edu>
13755
13756         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13757         FLOAT_COERCION_BADNESS.
13758         * gdbtypes.c (rank_one_type): Replace all uses of
13759         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13760
13761 2003-02-04  Jim Blandy  <jimb@redhat.com>
13762
13763         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13764         section, let dwarf_macinfo_section point to it, not
13765         dwarf_loc_section.
13766
13767 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13768
13769         Pointed out by Anton Blanchard <anton@samba.org>.
13770         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13771         (ppc_linux_at_sigtramp_return_path): Use it.
13772
13773 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
13774
13775         * defs.h (streq): Add prototype.
13776         * utils.c (streq): New function.
13777
13778         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13779         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13780         * mdebugread.c (new_symbol): Likewise.
13781         * stabsread.c (define_symbol): Likewise.
13782         * coffread.c (process_coff_symbol): Likewise.
13783         * dwarfread.c (new_symbol): Likewise.
13784
13785         * minsyms.c (prim_record_minimal_symbol_and_info): Use
13786         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
13787         here.
13788         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13789         SYMBOL_INIT_DEMANGLED_NAME.
13790         * objfiles.c: Include "hashtab.h".
13791         (allocate_objfile): Call htab_set_functions_ex for the
13792         demangled_names_hash.
13793         (free_objfile): Call htab_delete for the demangled_names_hash.
13794         * objfiles.h (struct htab): Add declaration.
13795         (struct objfile): Add demangled_names_hash.
13796         * symfile.c: Include "hashtab.h".
13797         (reread_symbols): Call htab_delete for the demangled_names_hash.
13798         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13799         SYMBOL_NAME in the bcache.
13800         * symtab.c: Include "hashtab.h".  Update comments.
13801         (create_demangled_names_hash, symbol_set_names): New functions.
13802         (symbol_find_demangled_name): New function, broken out from
13803         symbol_init_demangled_names.
13804         (symbol_init_demangled_names): Use it.
13805         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13806         (SYMBOL_SET_NAMES): New macro.
13807         (symbol_set_names): Add prototype.
13808
13809 2003-02-03  Jim Blandy  <jimb@redhat.com>
13810
13811         Use a single, consistent representation for an empty minimal
13812         symbol table in an objfile.
13813         * objfiles.c (terminate_minimal_symbol_table): New function.
13814         (allocate_objfile): Call it.
13815         * objfiles.h (terminate_minimal_symbol_table): New declaration.
13816         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
13817         non-NULL.
13818         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13819         objfile has minimal symbols, compare minimal_symbol_count to zero,
13820         instead of comparing msymbols with NULL.
13821         * objfiles.c (have_minimal_symbols): Same.
13822         * solib-sunos.c (solib_add_common_symbols): Call
13823         terminate_minimal_symbol_table.
13824         * symfile.c (reread_symbols): Same.
13825
13826 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
13827
13828         * s390-tdep.c (s390_address_class_type_flags)
13829         (s390_address_class_type_flags_to_name)
13830         (s390_address_class_name_to_type_flags): New functions.
13831         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13832         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13833
13834 2003-02-03  Michael Snyder  <msnyder@redhat.com>
13835
13836         * arm-tdep.c: Fix spell-o in comment.
13837
13838 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
13839
13840         * dwarf2cfi.c (pointer_encoding): Added new parameter.
13841         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13842         error messages to contain BFD filename.
13843
13844 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
13845
13846         Fix PR gdb/742 gdb/743 gdb/877
13847         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13848         (do_mixed_source_and_assembly): Use
13849         make_cleanup_ui_out_tuple_begin_end and
13850         make_cleanup_ui_out_tuple_begin_end.
13851         (do_mixed_source_and_assembly): Ditto.
13852         * thread.c (do_captured_list_thread_ids): Ditto.
13853         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13854         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13855         ui_out_tuple_end): Delete prototypes.
13856         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13857         ui_out_list_end, ui_out_tuple_end): Delete.
13858
13859         From Kevin Buettner  <kevinb@redhat.com>:
13860         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
13861         * ui-out.c (make_cleanup_ui_out_table_begin_end)
13862         (do_cleanup_table_end):  New functions.
13863         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13864         Use cleanups to invoke_ui_out_tuple_end().
13865         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
13866         * cli/cli-setshow.c (cmd_show_list): Use
13867         make_cleanup_ui_out_tuple_begin_end.
13868
13869 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13870
13871         * frame.c (frame_unwind_register): New function.
13872         (frame_unwind_unsigned_register): Use.
13873         (frame_unwind_signed_register): Use.
13874         (frame_read_register): New function.
13875         * frame.h (frame_unwind_register): Declare.
13876         (frame_read_register): Declare.
13877
13878         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13879         and frame_unwind_register instead of read_memory, write_register
13880         and deprecated_write_register_bytes.
13881
13882 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13883
13884         * frame.h: Note that namelen can be negative.
13885         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13886         NAME's length.
13887
13888         * NEWS: Mention that the d10v's `regs' command is deprecated.
13889         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13890         (d10v_print_registers_info): New function.
13891         (show_regs): Call d10v_print_registers_info.
13892         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13893
13894 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
13895
13896         * stack.c (print_frame_info): Restore call to annotate_frame_begin
13897         lost in the previous patch.
13898
13899 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13900
13901         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13902         * stack.c (print_frame_info_base): Output complete FRAME tuple
13903         for synthesized frames.
13904
13905 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
13906
13907         * mips-nat.c (zerobuf): Delete.
13908         (fetch_inferior_registers): Alloc local zerobuf.
13909         (fetch_core_registers): Alloc local zerobuf.
13910         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13911         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13912         * thread-db.c (thread_db_store_registers): Ditto.
13913         * sh-tdep.c (sh_do_register): Ditto.
13914         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13915         * remote-sim.c (gdbsim_store_register): Ditto.
13916         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13917         * remote-e7000.c (fetch_regs_from_dump): Ditto.
13918         * monitor.c (monitor_supply_register): Ditto.
13919         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13920         * mips-nat.c (fetch_inferior_registers): Ditto.
13921         * m68klinux-nat.c (fetch_register): Ditto.
13922         * lynx-nat.c (fetch_inferior_registers): Ditto.
13923         (fetch_inferior_registers): Ditto.
13924         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13925         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13926         (hpux_thread_store_registers): Ditto.
13927         * hppah-nat.c (fetch_register): Ditto.
13928         * hppab-nat.c (fetch_register): Ditto.
13929         * hppa-tdep.c (pa_register_look_aside): Ditto.
13930         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13931         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13932
13933 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13934
13935         * gdbarch.sh: Explictly specify all method levels.  When a
13936         variable with an empty level, provide a non-multi-arch default.
13937         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13938         * gdbarch.h: Re-generate.
13939         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
13940         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13941
13942 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13943
13944         * defs.h (host_pointer_to_address): Delete declaration.
13945         (address_to_host_pointer): Delete declaration.
13946         * utils.c (host_pointer_to_address): Delete function.
13947         (address_to_host_pointer): Delete function.
13948         * procfs.c (procfs_address_to_host_pointer): New function.
13949         * procfs.c (proc_set_watchpoint): Use.
13950         (procfs_can_use_hw_breakpoint): Update comments.
13951         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13952         (som_solib_add): Use.
13953         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13954         * hppa-tdep.c (unwind_command): Use.
13955
13956 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13957
13958         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13959         strlen d_name.
13960
13961         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13962         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13963         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13964         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13965         (define_symbol): Update.
13966         * symfile.c (generic_load): Remove references to nindy.
13967         * symtab.c: Remove references to nindy.
13968
13969 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
13970
13971         * infcmd.c (print_float_info): Delete code conditional on
13972         FLOAT_INFO.
13973         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
13974         * config/m68k/nm-apollo68b.h: Ditto.
13975         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
13976         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13977         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13978
13979 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
13980
13981         * config/i386/tm-i386os9k.h: Removed.
13982
13983         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13984         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13985         they're identical to i[3456]86-*-sysv* now.
13986         * config/i386/i386v32.mh: Removed.
13987         * config/i386/xm-i386v32.h: Removed.
13988         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13989
13990         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13991
13992         * config/i386/i386dgux.mh: Removed.
13993         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13994
13995         * configure.in: Fix typo.
13996         * configure: Regenerated.
13997
13998 2003-01-31  David Carlton  <carlton@math.stanford.edu>
13999
14000         * dwarf2read.c (dwarf2_locate_sections): Set
14001         dwarf_ranges_section.
14002
14003 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
14004
14005         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
14006         * utils.c: Update comments documenting legitimate uses of PTR.
14007
14008         * utils.c: Re-indent.
14009
14010         * config/djgpp/fnchange.lst: Delete nindy files.
14011         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
14012         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
14013         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
14014         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
14015         * nindy-share/README, nindy-share/Onindy.c: Delete files.
14016         * nindy-tdep.c, nindy-share/Makefile: Delete files.
14017         * Makefile.in (init.c): Remove nindy references.
14018         (saber_gdb): Delete rule.
14019         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
14020         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
14021         and a68v-nat.c.
14022         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
14023         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
14024         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
14025         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
14026         nindy-share/stop.h.
14027         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
14028         * saber.suppress: Delete file.
14029
14030 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
14031
14032         * dbxread.c (stabs_data): New static variable.
14033         (fill_symbuf): Support an in-memory buffer for stabs data.
14034         (stabs_seek): New function.
14035         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
14036         (read_ofile_symtab): Use stabs_seek.
14037         (elfstab_build_psymtabs): Take an asection* instead of
14038         an offset and size.  Relocate the stabs data if necessary.
14039         Save the section* for dbx_psymtab_to_symtab.
14040         * dwarf2read.c: Add section variables for each debug section.
14041         (dwarf2_locate_sections): Fill them in.
14042         (dwarf2_read_section): Take an asection* argument.
14043         Relocate the section contents if necessary.
14044         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
14045         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
14046         it to dwarf2_read_section.
14047         (dwarf2_build_frame_info): Update callers.
14048         * elfread.c (elf_symfile_read): Update call to
14049         elfstab_build_psymtabs.
14050         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
14051         (DBX_STAB_SECTION): New macro.
14052         * stabsread.h (elfstab_build_psymtabs): Update prototype.
14053         * symfile.c (symfile_dummy_outputs): New function.
14054         (symfile_relocate_debug_section): New function.
14055         * symfile.h (symfile_relocate_debug_section): Add prototype.
14056
14057 2003-01-31  Richard Henderson  <rth@redhat.com>
14058
14059         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
14060         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
14061         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
14062         * alpha-tdep.c (alpha_register_name): Add "unique".
14063         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
14064         (ALPHA_UNIQUE_REGNUM): New.
14065         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
14066
14067 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
14068
14069         * README: Remove reference to Ericsson 1800 monitor.
14070         * Makefile.in (remote-es.o): Delete rule.
14071         (ALLDEPFILES): Delete remote-es.c.
14072         * remote-es.c: Delete file.
14073         * config/m68k/es1800.mt: Delete file.
14074         * config/djgpp/fnchange.lst: Update.
14075         * configure.tgt: Delete m68*-ericsson-* target.
14076
14077 2003-01-31  Adam Fedor  <fedor@gnu.org>
14078
14079         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
14080         Remove duplicate/shadowing variable of same name.
14081
14082 2003-01-30  Jim Blandy  <jimb@redhat.com>
14083
14084         * symfile.c (find_separate_debug_file): Assert that the objfile's
14085         directory name we compute ends with a slash, and then assume that
14086         that's so everywhere we use it.
14087
14088 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
14089
14090         * valops.c (value_assign): Flush frame cache after stores to memory
14091         also.
14092
14093 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
14094
14095         * Makefile.in (mon960-rom.o): Delete rule.
14096         * mon960-rom.c: Delete file.
14097
14098 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
14099
14100         * d10v-tdep.c: Include "frame-unwind.h".
14101         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
14102         list.
14103         (next_addr, uses_frame): Delete.
14104         (struct d10v_unwind_cache): Define.
14105         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
14106         Use info instead of next_addr and uses_frame globals.
14107         (d10v_frame_init_saved_regs): Delete function.
14108         (d10v_init_extra_frame_info): Delete function.
14109         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
14110         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
14111         init_frame_pc or frame_saved_pc.
14112         (d10v_pop_frame): Delete function.
14113         (do_d10v_pop_frame): Delete function.
14114         (d10v_frame_chain): Delete function.
14115         (d10v_frame_chain_valid): Delete function.
14116         (d10v_frame_pc_unwind): New function.
14117         (d10v_frame_id_unwind): New function.
14118         (saved_regs_unwinder): New function.
14119         (d10v_frame_register_unwind): New function.
14120         (d10v_frame_pop): New function.
14121         (d10v_frame_unwind): New variable.
14122         (d10v_frame_p): New function.
14123         (d10v_frame_saved_pc): Delete function.
14124         * Makefile.in (d10v-tdep.o): Update dependencies.
14125
14126 2003-01-30  J. Brobecker  <brobecker@gnat.com>
14127
14128         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
14129         causing some regressions due to a change in the default value
14130         for this macro.
14131
14132 2003-01-29  Richard Henderson  <rth@redhat.com>
14133             Elena Zannoni  <ezannoni@redhat.com>
14134             Daniel Jacobowitz  <drow@mvista.com>
14135
14136         Fix PR gdb/961.
14137         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
14138         variables.
14139         (RANGES_SECTION): New.
14140         (dwarf_ranges_buffer): New variable.
14141         (struct comp_unit_head): Add member "die".
14142         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
14143         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
14144         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
14145         (dwarf2_locate_sections): Likewise.
14146         (dwarf2_build_psymtabs): Read .debug_ranges.
14147         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
14148         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
14149         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
14150         Look for DW_AT_ranges and return the bounding box.
14151
14152 2003-01-29  Brian Ford <ford@vss.fsi.com>
14153
14154         * win32-nat.c (cygwin_pid): Removed as unused.
14155         (child_attach): Try fall back to Cygwin pid.
14156
14157 2003-01-29  Jim Blandy  <jimb@redhat.com>
14158
14159         * objfiles.h (struct objfile): Doc fix.
14160
14161 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
14162
14163         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
14164         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
14165         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
14166         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
14167         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
14168         (FRAME_SAVED_PC): Change to a function with predicate.
14169         * gdbarch.h, gdbarch.c: Re-generate.
14170
14171 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
14172
14173         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
14174
14175         * complaints.c (complain): Delete function.
14176         * complaints.h (struct deprecated_complaint): Delete definition.
14177         (complain): Delete declaration.
14178
14179 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
14180
14181         * mips-tdep.c (mips_init_extra_frame_info): Return early for
14182         dummy frames.
14183
14184 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
14185
14186         * sentinel-frame.h, sentinel-frame.c: New files.
14187         * Makefile.in (frame.o): Update dependencies.
14188         (SFILES): Add sentinel-frame.c.
14189         (sentinel_frame_h): Define.
14190         (COMMON_OBS): Add sentinel-frame.o.
14191         (sentinel-frame.o): Specify dependencies.
14192         * frame.c: Include "sentinel-frame.h".
14193         (frame_register_unwind): Rewrite assuming that there is always a a
14194         ->next frame.
14195         (frame_register, generic_unwind_get_saved_register): Ditto.
14196         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
14197         (create_sentinel_frame, unwind_to_current_frame): New functions.
14198         (get_current_frame): Rewrite using create_sentinel_frame and
14199         unwind_to_current_frame.  When possible, always create a frame.
14200         (create_new_frame): Set next to the sentinel frame.
14201         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
14202         (deprecated_update_frame_pc_hack): Update the next frame's PC and
14203         ID cache when necessary.
14204         (frame_saved_regs_id_unwind): Use frame_relative_level.
14205         (deprecated_generic_get_saved_register): Use frame_relative_level,
14206         get_frame_saved_regs, get_frame_pc, get_frame_base and
14207         get_next_frame.
14208         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
14209         frame_register.
14210
14211 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14212
14213         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
14214
14215 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14216
14217         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
14218         (maintenance_set_profile_cmd): Use error () instead of warning ().
14219
14220 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
14221
14222         * configure.in: Check that -pg works if using --enable-profiling.
14223         Check for monstartup and _mcleanup regardless of --enable-profiling.
14224         * maint.c: Check for monstartup and _mcleanup before using them.
14225         * config.in: Regenerated.
14226         * configure: Regenerated.
14227
14228 2003-01-24  Nick Clifton  <nickc@redhat.com>
14229
14230         * Add sh2e support:
14231
14232         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
14233
14234                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
14235                 (sh2e_show_regs): New.
14236                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
14237                 * config/sh/tm-sh.h: Added sh2e to comments.
14238
14239 2003-01-23  Jim Blandy  <jimb@redhat.com>
14240
14241         * symfile.c (syms_from_objfile): Don't print the "(no debugging
14242         symbols found)" message here; we haven't checked for a separate
14243         debug info file yet, so we don't know yet.
14244         (symbol_file_add_with_addrs_or_offsets): Print it here, after
14245         we've looked everywhere.  Also, there's no need to print a special
14246         message when we're loading the separate debug info file: the one
14247         symbol_file_add prints is fine.
14248
14249 2003-01-23  Alexander Larsson <alexl@redhat.com>
14250             Jim Blandy  <jimb@redhat.com>
14251
14252         Add support for executables whose debug info has been separated
14253         out into a separate file, leaving only a link behind.
14254         * objfiles.h (struct objfile): New fields: separate_debug_objfile
14255         and separate_debug_objfile_backlink.
14256         (put_objfile_before): New declaration.
14257         * symfile.c: #include "filenames.h".
14258         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
14259         debug info in a separate file, read that, too. Save the addrs
14260         argument, so we can use it again to read the separated debug info;
14261         syms_from_objfile modifies the table we pass it.
14262         (reread_symbols): After re-reading an objfile, call
14263         reread_separate_symbols to refresh its separate debug info
14264         objfile, if it has one.
14265         (reread_separate_symbols, find_separate_debug_file,
14266         get_debug_link_info, separate_debug_file_exists): New functions.
14267         (debug_file_directory): New global var.
14268         (_initialize_symfile): Initialize debug_file_directory, and
14269         provide the new `set debug-file-directory' command to let the user
14270         change it.
14271         * objfiles.c (free_objfile): If this objfile has its debug info in
14272         a separate objfile, free that one too.  If this is itself a
14273         separate debug info objfile, clear our parent's backlink.
14274         (put_objfile_before): New function.
14275         * utils.c (gnu_debuglink_crc32): New function.
14276         * defs.h (gnu_debuglink_crc32): New declaration.
14277         * Makefile.in (symfile.o): Note dependency on "filenames.h".
14278         * configure.in: Handle --with-separate-debug-dir config option.
14279         * acinclude.m4 (AC_DEFINE_DIR): New macro.
14280         * acconfig.h (DEBUGDIR): New macro.
14281         * configure, aclocal.m4, config.in: Regenerated.
14282
14283 2003-01-22  Jim Blandy  <jimb@redhat.com>
14284
14285         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
14286         like the old symbol_file_add, but taking new arguments: you can
14287         now pass in either a `struct section_addr_info' list to say where
14288         each section is loaded, or a `struct section_offsets' table.  Pass
14289         these new arguments through to syms_from_objfile as appropriate.
14290         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
14291         with the appropriate quiescent values for the new arguments.
14292
14293         * symfile.c: #include "gdb_assert.h".
14294         (syms_from_objfile): Add the ability to pass in a section offset
14295         table directly, as an alternative to the section_addr_info table.
14296         Document arguments better.
14297         (symbol_file_add): Pass extra arguments to syms_from_objfile.
14298         * symfile.h (syms_from_objfile): Update declaration.
14299         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
14300         syms_from_objfile.
14301         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
14302
14303 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
14304
14305         Original patch by Tom Tromey <tromey@cygnus.com> and
14306         Jason Molenda <jmolenda@apple.com>.
14307         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
14308         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
14309         * NEWS: Mention profiling.
14310         * configure.in (--enable-gdbtk): Fix typo.
14311         (--enable-profiling): New.  Set PROFILE_CFLAGS.
14312         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
14313         Fill in function.
14314         (profiling_state): New variable.
14315         (mcleanup_wrapper): New function.
14316         (_initialize_maint): Remove NOTYET, fix call to
14317         add_setshow_boolean_cmd for "maint set profile".
14318         * configure: Regenerated.
14319
14320 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
14321
14322         * Makefile.in (install-gdbtk): Install PNG images too.
14323
14324 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14325
14326         * exec.c (text_start): Delete global variable.
14327         (exec_file_attach): Make text_start local to the function.
14328         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
14329         * valops.c (hand_function_call): Delete code that handles
14330         BEFORE_TEXT_END and AFTER_TEXT_END.
14331         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
14332         of CALL_DUMMY_LOCATION.
14333         * gdbarch.c: Regenerate.
14334         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
14335         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
14336         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
14337         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
14338         (text_end): Delete extern declaration.
14339
14340 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
14341
14342         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
14343         * blockframe.c (backtrace_below_main): Move to "frame.c".
14344         (frame_chain_valid): Delete check for backtrace_below_main.
14345         (_initialize_blockframe): Delete initialization, move ``set
14346         backtrace-below-main'' command to "frame.c".
14347         (do_flush_frames_sfunc): Delete function.
14348         * frame.c: Include "command.h" and "gdbcmd.h".
14349         (frame_type_from_pc): New function.
14350         (create_new_frame): Use frame_type_from_pc.
14351         (legacy_get_prev_frame): New function.
14352         (get_prev_frame): Rewrite.  When an old style frame, call
14353         legacy_get_prev_frame.  Otherwize, unwind the PC first.
14354         (_initialize_frame): Add ``set backtrace-below-main'' command.
14355         * Makefile.in (frame.o): Update dependencies.
14356
14357 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14358
14359         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
14360         DEPRECATED_REGISTERS_INFO.
14361
14362 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14363
14364         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
14365         Maintainers'.  Update `Various Maintainers'.
14366
14367 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14368
14369         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
14370         * gdbarch.sh (POP_FRAME): Change to function with predicate.
14371         Suppress actual parameters when `-'.
14372         * gdbarch.h, gdbarch.c: Regenerate.
14373
14374 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14375
14376         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
14377         code handling dummy frames.
14378
14379 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
14380
14381         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
14382         (struct frame_unwind): Add field pop.
14383         * frame.h (frame_pop): Declare.
14384         * frame.c (frame_saved_regs_pop): New function.
14385         (trad_frame_unwinder): Add frame_saved_regs_pop.
14386         (frame_pop): New function.
14387         * dummy-frame.c (dummy_frame_pop): New function.
14388         (discard_innermost_dummy): New function.
14389         (generic_pop_dummy_frame): Use discard_innermost_dummy.
14390         (dummy_frame_unwind): Add dummy_frame_pop.
14391         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
14392         * valops.c (hand_function_call): Ditto.
14393         * stack.c (return_command): Ditto.
14394
14395 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14396
14397         * cris-tdep.c: Fix function declaration indentation.
14398         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
14399         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
14400         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
14401         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
14402         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
14403         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
14404
14405 2003-01-18  Michael Chastain  <mec@shout.net>
14406
14407         * README (Unpacking and Installation -- quick overview):
14408         Warn against ".../gdb-5.3/gdb/configure".
14409
14410 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14411
14412         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
14413         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14414         (struct frame_unwind): Declare opaque.
14415         (dummy_frame_p): Declare function.
14416         * dummy-frame.c (dummy_frame_id_unwind): Make static.
14417         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
14418         * dummy-frame.c: Include "frame-unwind.h".
14419         (dummy_frame_p): New function.
14420         (dummy_frame_unwind): New variable.
14421         * frame.c: Include "frame-unwind.h".
14422         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
14423         to use the new unwind field.
14424         (set_unwind_by_pc): Delete function.
14425         (create_new_frame, get_prev_frame): Set unwind field using
14426         frame_unwind_find_by_pc.
14427         (trad_frame_unwind, trad_frame_unwinder): New variables.
14428         * frame.h (trad_frame_unwind): Declare variable.
14429         (frame_id_unwind_ftype): Delete declaration.
14430         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
14431         (struct frame_unwind): Declare opaque.
14432         (struct frame_info): Replace the fields id_unwind, pc_unwind and
14433         register_unwind with a single unwind pointer.
14434         * frame-unwind.h, frame-unwind.c: New files.
14435         * Makefile.in (SFILES): Add frame-unwind.c.
14436         (frame_unwind_h): Define.
14437         (COMMON_OBS): Add frame-unwind.o.
14438         (frame-unwind.o): Specify dependencies.
14439         (frame.o, dummy-frame.o): Update dependencies.
14440
14441 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
14442
14443         * ada-valprint.c: Eliminate PTR.
14444         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
14445         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
14446         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
14447         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
14448         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
14449         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
14450         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
14451
14452 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
14453
14454         * main.c (captured_main): Don't use PTR.
14455         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
14456         * gdbtypes.c (lookup_primitive_typename): Ditto.
14457         (lookup_struct_elt_type): Ditto.
14458         * f-valprint.c (info_common_command): Ditto.
14459         (list_all_visible_commons): Ditto.
14460         * jv-typeprint.c (java_type_print_base): Ditto.
14461
14462         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
14463         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
14464         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
14465         i386-interix-nat.c and i386-interix-tdep.c.  Rename
14466         m68klinux-nat.c and m68klinux-tdep.c.  Rename
14467         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
14468         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
14469         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
14470         * main.c (captured_main): Use xfree, not free.
14471
14472 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
14473
14474         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
14475         ID back using a parameter.
14476         * frame.c (frame_id_unwind): Update call.
14477         (frame_saved_regs_id_unwind): Update.
14478         * dummy-frame.c (dummy_frame_id_unwind): Update function.
14479         * dummy-frame.h (struct frame_id): Add opaque declaration.
14480         (dummy_frame_id_unwind): Update declaration.
14481
14482 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
14483
14484         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
14485
14486 2003-01-15  Stephen P. Smith <ischis2@cox.net>
14487
14488         * MAINTAINERS (Stephen P. Smith): Updated email address.
14489
14490 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
14491
14492         Fix PR gdb/898
14493         * breakpoint.c (until_break_command): Add new argument.  Use it to
14494         decide whether to stop only at the current frame or not.
14495         * breakpoint.h (until_break_command): Update prototype.
14496         * infcmd.c (until_command): Add new argument to until_break_command
14497         call.
14498         (advance_command): New function.
14499         (_initialize_infcmd): Update help string for 'until' command.
14500         Add new 'advance' command.
14501
14502 2003-01-14  David Carlton  <carlton@math.stanford.edu>
14503
14504         * linespec.c (decode_line_1): Normalize comments.
14505         (set_flags): Ditto.
14506         (locate_first_half): Ditto.
14507         (decode_compound): Ditto.
14508         (symtab_from_filename): Ditto.
14509         (decode_all_digits): Ditto.
14510         (decode_dollar): Ditto.
14511         (find_methods): Ditto.
14512         (find_toplevel_char): Ditto.
14513
14514 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14515
14516         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14517         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14518         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14519         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14520         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14521         * language.c, language.h, m32r-tdep.c: Update copyright.
14522         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14523         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14524         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14525         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14526         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14527         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14528
14529 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14530
14531         * stabsread.h (process_later, resolve_cfront_continuation):
14532         Obsolete.
14533         Update copyright years.
14534         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14535         Update copyright year.
14536         * dbxread.c(struct cont_elem): Obsolete.
14537         (process_later, process_now): Obsolete functions.
14538         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14539         Update copyright year.
14540         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14541         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14542         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14543         (parse_partial_symbols): Obsolete cfront support.
14544         * stabsread.c
14545         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14546         macros.
14547         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14548         read_cfront_baseclasses, read_cfront_member_functions,
14549         resolve_cfront_continuation,read_cfront_static_fields,
14550         copy_cfront_struct_fields): Obsolete functions.
14551         (define_symbol, read_one_struct_field): Obsolete cfront support.
14552         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14553         Update Copyright year.
14554
14555 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
14556
14557         * stack.c (print_frame_info, print_stack_frame_base_stub,
14558         print_stack_frame_base, show_and_print_stack_frame_stub,
14559         show_and_print_stack_frame, print_only_stack_frame_stub,
14560         print_only_stack_frame): Delete functions.
14561         (print_stack_frame_stub): Call print_frame_info instead of
14562         print_frame_info_base.
14563         (print_frame_info_base): Rename to print_frame_info.
14564         (backtrace_command_1): Call print_frame_info, instead of
14565         print_frame_info_base.
14566         (current_frame_command): Call print_stack_frame, instead of
14567         print_only_stack_frame.
14568         (frame_command): Call print_stack_frame, instead of
14569         show_and_print_stack_frame.
14570         (up_command): Ditto.
14571         (down_command): Ditto.
14572         * frame.h (print_only_stack_frame): Delete prototype.
14573         * infrun.c (normal_stop): Call print_stack_frame, instead of
14574         show_and_print_stack_frame.
14575         * thread.c (info_threads_command): Call print_stack_frame, instead
14576         of print_only_stack_frame.
14577
14578 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14579
14580         * README (Graphical interface to GDB): Update URL.  Point at
14581         gdb/links/.
14582
14583         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
14584         version match.
14585
14586 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14587
14588         * symtab.c (find_pc_sect_line): Don't consider end-of-function
14589         lines.
14590
14591 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14592
14593         * thread-db.c (attach_thread): Prototype.
14594         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
14595         thread information (ti), and valid flags (th_valid, ti_valid).
14596         (attach_thread): Move target_pid_to_str call to after the thread
14597         is added to GDB's list.  Initialize the cache.
14598         (thread_get_info_callback, thread_db_map_id2thr)
14599         (thread_db_get_info): New functions.
14600         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14601         (thread_db_store_registers, thread_db_thread_alive)
14602         (thread_db_get_thread_local_address): Use them.
14603         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
14604         of calling error() for threads in unknown state.
14605
14606         (clear_lwpid_callback): New function.
14607         (thread_db_resume): Use it to clear the cache.
14608
14609 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14610
14611         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14612         (resume_callback): Remove dead code.
14613
14614 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
14615
14616         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14617         predicate.
14618         * gdbarch.h, gdbarch.c: Regenerate.
14619         * stack.c (frame_info): Only initialize the saved registers when
14620         FRAME_INIT_SAVED_REGS_P.
14621         * frame.c (frame_saved_regs_register_unwind): Assert
14622         FRAME_INIT_SAVED_REGS_P.
14623         (deprecated_generic_get_saved_register): Ditto.
14624
14625 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14626
14627         * source.c (openp): Squelch warning about "filename".
14628
14629 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14630
14631         * source.c (openp): If the file does not exist don't necessarily
14632         search the path.
14633
14634 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14635
14636         Fix PR gdb/872.
14637         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14638         (integer_types_same_name_p): New function.
14639         (rank_one_type): Use it.
14640         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14641
14642 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
14643
14644         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14645         variables.
14646         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14647         * configure.in: Add --with-sysroot.
14648         * configure: Regenerated.
14649         * main.c (gdb_sysroot): New variable.
14650         (captured_main): Initialize gdb_sysroot.
14651         * defs.h (gdb_sysroot): New extern declaration.
14652         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14653
14654 2003-01-12  Michael Chastain  <mec@shout.net>
14655
14656         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14657
14658 2003-01-12  Michael Chastain  <mec@shout.net>
14659
14660         * top.c (print_gdb_version): Bump copyright year to 2003.
14661
14662 2003-01-12  David Carlton  <carlton@bactrian.org>
14663
14664         * linespec.c (symtab_from_filename): Rename variable 's' to
14665         'file_symtab'.
14666
14667 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14668
14669         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14670         dummy frame.
14671         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14672
14673 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
14674
14675         * d10v-tdep.c: Include "gdb_assert.h".
14676         (d10v_store_return_value): Rewrite to match current interface.
14677         (d10v_extract_struct_value_address): Ditto.
14678         (d10v_extract_return_value): Ditto.
14679         (d10v_gdbarch_init): Set store_restore_value,
14680         extract_struct_value_address and extract_return_value.
14681
14682 2003-01-12  J. Brobecker  <brobecker@gnat.com>
14683
14684         * hpread.c (set_namestring): New procedure replacing the
14685         SET_NAMESTRING macro.
14686         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14687         by calls to set_namestring.
14688
14689 2003-01-11  J. Brobecker  <brobecker@gnat.com>
14690
14691         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14692         a compilation warning.
14693         (hpread_process_one_debug_symbol): Likewise.
14694
14695 2003-01-10  David Carlton  <carlton@math.stanford.edu>
14696
14697         * linespec.c (decode_line_1): Rename variable 's' to
14698         'file_symtab'.
14699         (decode_all_digits): Rename argument 's' to 'file_symtab'.
14700         (decode_dollar): Ditto.
14701         (decode_variable): Ditto.
14702         (symbol_found): Ditto.
14703
14704 2003-01-09  Michael Chastain  <mec@shout.net>
14705
14706         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14707
14708 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
14709
14710         * win32-nat.c (set_process_privilege): New function.
14711         (child_attach): Call set_process_privilege() to enable the
14712         SE_DEBUG_NAME user privilege if available in process token.
14713
14714 2003-01-10  J. Brobecker  <brobecker@gnat.com>
14715
14716         * hpread.c (hpread_process_one_debug_symbol): Fix a small
14717         compilation error in the previous revision.
14718
14719 2003-01-09  David Carlton  <carlton@math.stanford.edu>
14720
14721         * linespec.c: Update copyright.
14722
14723 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
14724
14725         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14726         than inferior_ptid.
14727         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14728
14729 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
14730
14731         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14732         Update comments.
14733         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14734         (frame_saved_regs_zalloc): Update.
14735         (frame_saved_regs_register_unwind): Update.
14736         (create_new_frame): Update.
14737         (get_prev_frame): Update.
14738         (frame_extra_info_zalloc): Update.
14739         (deprecated_get_frame_saved_regs): Update.
14740         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14741         * cris-tdep.c: Update comment.
14742
14743         * somsolib.h: Fix function indentation.
14744         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14745         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14746         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14747         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14748         * somsolib.c, inftarg.c: Remove assignment in if conditional.
14749
14750         * infrun.c (follow_fork): Use ISO C definition.
14751         * expprint.c (print_subexp): Use xfree instead of free.
14752         * charset.c: Include "gdb_string.h" instead of <string.h>.
14753         (register_iconv_charsets): Use ISO C definition.
14754         (host_charset, target_charset): Ditto.
14755         * Makefile.in (charset.o): Update dependencies.
14756         (mi-cmd-env.o): Update dependencies.
14757
14758 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14759
14760         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14761         get_frame_base.
14762
14763 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14764
14765         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
14766         build directories.  Save edited gdb output in Mbuild.log.  If a
14767         build fails, remove any final GDB executable.
14768
14769 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14770
14771         * gdb_mbuild.sh: Edit the output of `maint print architecture'
14772         replacing hex constants with function names and stripping leading
14773         file name directory prefixes.
14774
14775 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14776
14777         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14778         get_frame_base.
14779
14780 2003-01-08  David Carlton  <carlton@math.stanford.edu>
14781
14782         * linespec.c (decode_line_1): Move code into decode_variable.
14783         (decode_variable): New function.
14784
14785 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
14786
14787         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14788
14789 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14790
14791         * cris-tdep.c (cris_frame_init_saved_regs): Use
14792         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14793         saved_regs buffer.
14794         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14795         (sh64_nofp_frame_init_saved_regs): Ditto.
14796         (sh_fp_frame_init_saved_regs): Ditto.
14797         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14798         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14799         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14800         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14801
14802 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
14803
14804         * minsyms.c (lookup_minimal_symbol): Update comment.
14805         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
14806         (lookup_minimal_symbol_solib_trampoline): Likewise.
14807
14808 2003-01-08  Andrew Cagney  <cagney@redhat.com>
14809
14810         * d10v-tdep.c (d10v_init_extra_frame_info): Use
14811         frame_relative_level.
14812
14813         * alpha-tdep.c: Use get_frame_extra_info.
14814         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14815         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14816         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14817         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14818
14819         * alpha-tdep.c: Use get_next_frame.
14820         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14821         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14822         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14823         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14824         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14825         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14826         * xstormy16-tdep.c: Ditto.
14827
14828 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14829
14830         * alpha-tdep.c: Use get_frame_base.
14831         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14832         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14833         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14834         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14835         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14836         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14837         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14838         * config/sparc/tm-sparc.h: Ditto.
14839
14840 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14841
14842         * frame.c (deprecated_get_frame_context): New function.
14843         (deprecated_set_frame_context): New function.
14844         * frame.h (deprecated_get_frame_context): Declare.
14845         (deprecated_set_frame_context): Declare.
14846         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14847         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
14848
14849 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14850
14851         * frame.c (deprecated_set_frame_next_hack): New function.
14852         (deprecated_set_frame_prev_hack): New function.
14853         * frame.h (deprecated_set_frame_next_hack): Declare.
14854         (deprecated_set_frame_prev_hack): Declare.
14855         * mcore-tdep.c (analyze_dummy_frame): Use
14856         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14857         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14858
14859 2003-01-07  David Carlton  <carlton@math.stanford.edu>
14860
14861         * linespec.c (decode_line_1): Move code into decode_dollar.
14862         (decode_dollar): New function.
14863
14864 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14865
14866         * arm-tdep.c (arm_init_extra_frame_info): Use
14867         deprecated_update_frame_base_hack.
14868         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14869         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14870         (fix_frame_pointer): Ditto.
14871         (mn10300_analyze_prologue): Ditto.
14872
14873 2003-01-07  Andrew Cagney  <cagney@redhat.com>
14874
14875         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14876         extra_info using frame_extra_info_zalloc.
14877         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14878         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14879         (sh64_init_extra_frame_info): Ditto.
14880         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14881         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14882         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14883         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14884         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14885         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14886         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14887         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14888         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14889         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14890         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14891         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14892
14893         * mn10300-tdep.c (analyze_dummy_frame): Use
14894         deprecated_set_frame_extra_info_hack.
14895         * mcore-tdep.c (analyze_dummy_frame): Ditto.
14896
14897 2003-01-07  J. Brobecker  <brobecker@gnat.com>
14898
14899         * mdebugread.c (parse_symbol): Skip stProc entries which storage
14900         class is not scText. These do not define "real" procedures.
14901         (parse_partial_symbols): Likewise.
14902
14903 2003-01-06  Michael Snyder  <msnyder@redhat.com>
14904
14905         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14906
14907 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
14908
14909         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14910         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14911         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14912         deprecated_frame_xmalloc_with_cleanup.
14913         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14914         deprecated_frame_xmalloc.
14915         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14916         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14917
14918 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14919
14920         * x86-64-linux-tdep.c: Include "osabi.h".
14921         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14922
14923         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14924
14925 2003-01-06  Andrew Cagney  <cagney@redhat.com>
14926
14927         * MAINTAINERS (Target Instruction Set Architectures): Update
14928         arm-elf.  Can be built with -Werror, has been multiarched.
14929
14930         * value.h (unpack_long): Make buffer parameter constant.
14931         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14932         * scm-lang.h (scm_parse): Ditto.
14933         * defs.h (extract_typed_address, extract_address): Ditto.
14934         (extract_long_unsigned_integer): Ditto.
14935         * inferior.h (unsigned_pointer_to_address): Ditto.
14936         (signed_pointer_to_address): Ditto.
14937         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14938         * gdbarch.h, gdbarch.c: Regenerate.
14939         * findvar.c (extract_long_unsigned_integer): Update.
14940         (extract_address): Update.
14941         (extract_typed_address): Update.
14942         (unsigned_pointer_to_address): Update.
14943         * values.c (unpack_long): Update.
14944         (unpack_double): Update.
14945         (unpack_pointer): Update.
14946         (unpack_field_as_long): Update.
14947         * d10v-tdep.c (d10v_pointer_to_address): Update.
14948         * avr-tdep.c (avr_pointer_to_address): Update.
14949         * scm-lang.c (scm_unpack): Update.
14950         * findvar.c (signed_pointer_to_address): Update.
14951
14952 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
14953
14954         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14955         since it is in i386-tdep.c.
14956
14957 2003-01-06  J. Brobecker  <brobecker@gnat.com>
14958
14959         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14960         failure introduced in the previous change.
14961
14962 2003-01-05  Michael Chastain  <mec@shout.net>
14963
14964         * README: Remove references to deleted remote-*.c files:
14965         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14966         remote-nrom.c, remote-os9k.c, remote-udi.c.
14967
14968 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
14969
14970         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14971         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14972         i386_get_longjmp_target.
14973
14974 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
14975
14976         * arm-tdep.c (prologue_cache): Change to a pointer.
14977         (_initialize_arm_tdep): Allocate prologue_cache.
14978         (check_prologue_cache): Update.
14979         (save_prologue_cache): Update.
14980         (arm_gdbarch_init): Update.
14981
14982 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14983
14984         * stabsread.c (update_method_name_from_physname): Call complaint()
14985         instead of error.
14986
14987 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
14988
14989         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
14990         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14991         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14992
14993         * blockframe.c: Include "gdbcmd.h" and "command.h".
14994         (backtrace_below_main): New variable.
14995         (file_frame_chain_valid, func_frame_chain_valid)
14996         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14997         (generic_func_frame_chain_valid): Remove functions.
14998         (frame_chain_valid, do_flush_frames_sfunc): New functions.
14999         (_initialize_blockframe): New function.
15000         * Makefile.in (blockframe.o): Update dependencies.
15001         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
15002         comment.  Call frame_chain_valid ().
15003         * frame.h: Remove old prototypes.  Add prototype for
15004         frame_chain_valid and update comments to match.
15005         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
15006         Remove old comment.
15007         * gdbarch.h: Regenerated.
15008         * gdbarch.c: Regenerated.
15009
15010         * alpha-tdep.c (alpha_gdbarch_init): Don't call
15011         set_gdbarch_frame_chain_valid.
15012         * avr-tdep.c (avr_gdbarch_init): Likewise.
15013         * cris-tdep.c (cris_gdbarch_init): Likewise.
15014         * frv-tdep.c (frv_gdbarch_init): Likewise.
15015         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
15016         * i386-tdep.c (i386_svr4_init_abi): Likewise.
15017         (i386_nw_init_abi): Likewise.
15018         (i386_gdbarch_init): Likewise.
15019         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
15020         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
15021         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
15022         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
15023         * mips-tdep.c (mips_gdbarch_init): Likewise.
15024         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
15025         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
15026         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
15027         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15028         * s390-tdep.c (s390_gdbarch_init): Likewise.
15029         * sh-tdep.c (sh_gdbarch_init): Likewise.
15030         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15031         * v850-tdep.c (v850_gdbarch_init): Likewise.
15032         * vax-tdep.c (vax_gdbarch_init): Likewise.
15033         * x86-64-tdep.c (x86_64_init_abi): Likewise.
15034
15035         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
15036         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
15037         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
15038         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
15039         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
15040         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
15041         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
15042         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
15043
15044 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
15045
15046         * Makefile.in (acconfig_h): Remove incorrect macro.
15047         (config_h): Define.
15048         (osabi.o): Update dependencies.
15049         * configure.tgt: Set gdb_osabi based on target triplet.
15050         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
15051         * configure: Regenerated.
15052         * config.in: Regenerated.
15053         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
15054         (GDB_OSABI_DEFAULT): Define if not already defined.
15055         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
15056         (set_osabi_string): New variables.
15057         (gdbarch_register_osabi): Add new OS ABI to
15058         gdb_osabi_available_names.
15059         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
15060         (set_osabi, show_osabi): New functions.
15061         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
15062
15063 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15064
15065         * arch-utils.c (gdbarch_info_init): Set osabi to
15066         GDB_OSABI_UNINITIALIZED.
15067         * gdbarch.sh: Add osabi to struct gdbarch and to struct
15068         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
15069         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
15070         * gdbarch.c: Regenerated.
15071         * gdbarch.h: Regenerated.
15072         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
15073         there's no BFD.
15074         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
15075         * osabi.h (enum gdb_osabi): Move to defs.h.
15076         (gdbarch_init_osabi): Update prototype.
15077         * defs.h (enum gdb_osabi): Moved here.
15078         * Makefile.in: Update dependencies.
15079
15080         * alpha-tdep.h: Don't include "osabi.h".
15081         (struct gdbarch_tdep): Remove osabi member.
15082         * alpha-tdep.c: Include "osabi.h".
15083         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15084         iterate over arches.  Update call to gdbarch_init_osabi.
15085         (alpha_dump_tdep): Don't dump osabi.
15086         * alpha-linux-tdep.c: Include "osabi.h".
15087         * alpha-osf1-tdep.c: Include "osabi.h".
15088         * alphafbsd-tdep.c: Include "osabi.h".
15089         * alphanbsd-tdep.c: Include "osabi.h".
15090
15091         * arm-tdep.h: Don't include "osabi.h".
15092         (struct gdbarch_tdep): Remove osabi member.
15093         * arm-tdep.c: Include "osabi.h".
15094         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15095         iterate over arches.  Update call to gdbarch_init_osabi.
15096         (arm_dump_tdep): Don't dump osabi.
15097         * arm-linux-tdep.c: Include "osabi.h".
15098         * armnbsd-tdep.c: Include "osabi.h".
15099
15100         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
15101         Update call to gdbarch_init_osabi.
15102
15103         * i386-tdep.h: Don't include "osabi.h".
15104         (struct gdbarch_tdep): Remove osabi member.
15105         * i386-tdep.c: Include "osabi.h".
15106         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15107         iterate over arches.  Update call to gdbarch_init_osabi.
15108         (i386_dump_tdep): Don't dump osabi.
15109         * i386-linux-tdep.c: Include "osabi.h".
15110         * i386-sol2-tdep.c: Include "osabi.h".
15111         * i386bsd-tdep.c: Include "osabi.h".
15112         * i386gnu-tdep.c: Include "osabi.h".
15113         * i386ly-tdep.c: Include "osabi.h".
15114         * i386nbsd-tdep.c: Include "osabi.h".
15115         * i386obsd-tdep.c: Include "osabi.h".
15116
15117         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
15118         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15119         check osabi when iterating over arches.  Update call to
15120         gdbarch_init_osabi.
15121         (mips_dump_tdep): Don't dump osabi.
15122
15123         * ns32k-tdep.h: Don't include "osabi.h".
15124         (struct gdbarch_tdep): Remove.
15125         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
15126         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
15127         allocate tdep.  Update call to gdbarch_init_osabi.
15128         (ns32k_dump_tdep): Remove.
15129         (_initialize_ns32k_tdep): Update call to gdbarch_register.
15130         * ns32knbsd-tdep.c: Include "osabi.h".
15131
15132         * ppc-tdep.h: Don't include "osabi.h".
15133         (struct gdbarch_tdep): Remove osabi member.
15134         * rs6000-tdep.c: Include "osabi.h".
15135         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
15136         osabi when iterating over arches.  Update call to
15137         gdbarch_init_osabi.
15138         (rs6000_dump_tdep): Don't dump osabi.
15139         * ppc-linux-tdep.c: Include "osabi.h".
15140         * ppcnbsd-tdep.c: Include "osabi.h".
15141
15142         * sh-tdep.h: Don't include "osabi.h".
15143         (struct gdbarch_tdep): Remove osabi member.
15144         * sh-tdep.c: Include "osabi.h".
15145         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15146         iterate over arches.  Update call to gdbarch_init_osabi.
15147         (sh_dump_tdep): Don't dump osabi.
15148         * shnbsd-tdep.c: Include "osabi.h".
15149
15150         * sparc-tdep.c: Include "osabi.h".
15151         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15152         iterate over arches.  Update call to gdbarch_init_osabi.
15153         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
15154         tdep structure.
15155
15156         * vax-tdep.h: Don't include "osabi.h".
15157         (struct gdbarch_tdep): Remove.
15158         * vax-tdep.c: Include "osabi.h".
15159         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
15160         iterate over arches.  Don't allocate tdep.  Update call
15161         to gdbarch_init_osabi.
15162         (vax_dump_tdep): Remove.
15163         (_initialize_vax_tdep): Update call to gdbarch_register.
15164
15165 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15166
15167         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
15168         entirely.
15169         (breakpoint_re_set_one): Don't fetch the value for a disabled
15170         watchpoint.
15171
15172 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15173
15174         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
15175         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
15176         (COERCE_FLOAT_TO_DOUBLE): Remove.
15177         * gdbarch.c: Regenerate.
15178         * gdbarch.h: Regenerate.
15179         * Makefile.in: Remove value_h from gdbarch_h.
15180         * valops.c (coerce_float_to_double): New variable.
15181         (default_coerce_float_to_double): Remove.
15182         (standard_coerce_float_to_double): Remove.
15183         (value_arg_coerce): Use coerce_float_to_double.
15184         (_initialize_valops): Add "set coerce-float-to-double".
15185         * value.h (default_coerce_float_to_double): Remove prototype.
15186         (standard_coerce_float_to_double): Remove prototype.
15187
15188         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
15189         prototyped.
15190         * mdebugread.c (parse_symbol): Likewise.
15191         * stabsread.c (define_symbol): Mark all functions as prototyped.
15192
15193         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
15194         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
15195         set_gdbarch_coerce_float_to_double.
15196         * arm-tdep.c (arm_gdbarch_init): Likewise.
15197         * frv-tdep.c (frv_gdbarch_init): Likewise.
15198         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
15199         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
15200         * mips-tdep.c (mips_gdbarch_init): Likewise.
15201         (mips_coerce_float_to_double): Remove.
15202         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
15203         (rs6000_coerce_float_to_double): Remove.
15204         * s390-tdep.c (s390_gdbarch_init): Likewise.
15205         * sh-tdep.c (sh_gdbarch_init): Likewise.
15206         (sh_coerce_float_to_double): Remove.
15207         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
15208         (sparc_coerce_float_to_double): Remove.
15209         * v850-tdep.c (v850_gdbarch_init): Likewise.
15210         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
15211         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15212         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
15213         (hppa_coerce_float_to_double): Remove prototype.
15214         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
15215
15216 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15217
15218         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
15219
15220 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
15221
15222         Suggested by Stewart Brown <sb24@avaya.com>:
15223         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
15224         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
15225         (c_type_print_varspec_suffix): Likewise.
15226
15227 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
15228
15229         * configure.in: Don't set and AC_SUBST SUBDIRS.
15230         * configure: Regenerated.
15231
15232         * configure.in: Remove code dealing with shared libraries.
15233         * Makefile.in: Remove HLDFLAGS and HLDENV.
15234         * configure: Regenerated.
15235
15236 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
15237
15238         * frame.c (deprecated_frame_xmalloc): New function.
15239         (deprecated_set_frame_saved_regs_hack): New function.
15240         (deprecated_set_frame_extra_info_hack): New function.
15241         * frame.h (deprecated_frame_xmalloc): Declare.
15242         (deprecated_set_frame_saved_regs_hack): Declare.
15243         (deprecated_set_frame_extra_info_hack): Declare.
15244
15245 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
15246
15247         * configure.in: Move code that provides the --enable-gdbtk option
15248         right after the code that handles the --enable-tui option, and
15249         polish it somewhat.
15250         * configure: Regenerated.
15251
15252         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
15253         AC_CHECK_FUNCS and remove the old check for pread64.
15254         * acinclude.m4 (AC_GNU_SOURCE): New macro.
15255         * acconfig.h (_GNU_SOURCE): Add.
15256         (HAVE_PREAD64): Remove.
15257         * configure, aclocal.m4, config.in: Regenerated.
15258
15259 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
15260
15261         * alpha-tdep.c: Use get_frame_saved_regs.
15262         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15263         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
15264         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
15265         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
15266         * vax-tdep.c, xstormy16-tdep.c: Ditto.
15267
15268 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15269
15270         * configure.in: Remove all use of the SUBDIRS variable; add
15271         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
15272         code providing the --enable-multi-ice option, and move it right in
15273         front of the code that checks whether gdbserver is supported.
15274         Polish that too.
15275         * configure: Regenerated.
15276         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
15277         @SUBDIRS@.
15278
15279 2003-01-03  Andrew Cagney  <cagney@redhat.com>
15280
15281         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15282         * avr-tdep.c, cris-tdep.c: Ditto.
15283         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
15284         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15285
15286 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15287
15288         * configure.in: Remove --enable-netrom option.
15289         * configure: Regenerated.
15290
15291 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
15292
15293         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
15294         declaration for `struct re_pattern_buffer' instead.
15295         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
15296
15297 2003-01-03  J. Brobecker  <brobecker@gnat.com>
15298
15299         * mdebugread.c (parse_symbol): Count until the stEnd matching
15300         the structure name.
15301
15302 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15303
15304         * configure.in: Remove --with-cpu option.
15305         subscripts.  Remove evil changequotes here.
15306         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
15307         * config.in, configure: Regenerated.
15308
15309         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
15310         * configure.in: Cleanup section that sources GDB and BFD configure
15311         subscripts.  Remove evil changequotes here.
15312         * config.in, configure: Regenerated.
15313
15314 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15315
15316         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
15317         frame accessor methods.
15318         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
15319         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
15320         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
15321         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
15322         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
15323         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
15324         * z8k-tdep.c: Ditto.
15325
15326 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15327
15328         * configure.in: Remove UI_OUT configuration code.
15329         * ada-lang.c: Update assuming UI_OUT is always true.
15330         * Makefile.in (UIOUT_CFLAGS): Remove.
15331         * configure: Regenerated.
15332         * TODO: Remove blurb about elimination of -DUI_OUT.
15333
15334         * configure.in: Move code that provides the --enable-gdbcli,
15335         --enable-gdbmi options right before the code that handles the
15336         --enable-tui option.  Polish a bit.
15337         * configure: Regenerated.
15338
15339         * configure.in: Rewrite check for GNU regex and the
15340         --without-included regex option, and move it into the "Checks for
15341         library functions" section.  This makes us use the system regex
15342         again by default on systems with version 2 of the GNU C library.
15343         This was apparently broken.
15344         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
15345         * acconfig.h (USE_INCLUDED_REGEX): Remove.
15346         * config.in, configure: Regenerated.
15347
15348         * configure.in: Move code that provides the --enable-tui option
15349         before the "Checks for libraries" section.  Polish the code
15350         somewhat and set need_curses to yes if we build the TUI.  Rewrite
15351         code that looks for a library providing termcap functionality to
15352         match more closely what's done in the Readline library, and move
15353         it into to the "Checks for libraries" section.
15354         * configure: Regenerated.
15355         * Makefile.in (TERMCAP): Remove variable.
15356         * config/i386/go32.mh (TERMCAP): Remove variable.
15357
15358 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15359
15360         * MAINTAINERS: Mention gdb_mbuild.sh.
15361         * gdb_mbuild.sh: Rewrite.
15362
15363 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15364
15365         * configure.in: Fix typo in last change.
15366         * config.in, configure: Regenerated.
15367
15368 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
15369
15370         * valarith.c (value_binop): Delete obsolete code and comments.
15371         * configure.host: Ditto.
15372         * buildsym.h (make_blockvector): Ditto.
15373         * buildsym.c (make_blockvector): Ditto.
15374         * defs.h (enum language): Ditto.
15375         (chill_demangle): Ditto.
15376         * elfread.c (elf_symtab_read): Ditto.
15377         * dwarfread.c (CHILL_PRODUCER): Ditto.
15378         (set_cu_language): Ditto.
15379         (handle_producer): Ditto.
15380         * expprint.c (print_subexp): Ditto.
15381         * gdbtypes.c (chill_varying_type): Ditto.
15382         * gdbtypes.h (builtin_type_chill_bool): Ditto.
15383         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
15384         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
15385         (chill_varying_type): Ditto.
15386         * language.h (_LANG_chill): Ditto.
15387         * language.c (binop_result_type, integral_type): Ditto.
15388         (character_type, string_type, structured_type): Ditto.
15389         (lang_bool_type, binop_type_check): Ditto.
15390         * stabsread.h (os9k_stabs): Ditto.
15391         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
15392         (define_symbol, read_type, read_struct_fields): Ditto.
15393         (read_array_type, read_enum_type, read_huge_number): Ditto.
15394         (read_range_type, start_stabs): Ditto.
15395         * symfile.c (init_filename_language_table): Ditto.
15396         (add_psymbol_with_dem_name_to_list): Ditto.
15397         * symtab.c (symbol_init_language_specific): Ditto.
15398         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
15399         * symtab.h (struct general_symbol_info): Ditto.
15400         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
15401         * typeprint.c (typedef_print): Ditto.
15402         * utils.c (fprintf_symbol_filtered): Ditto.
15403         * valops.c (value_cast, search_struct_field, value_slice): Delete
15404         obsolete code.
15405         (varying_to_slice): Delete function.
15406         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
15407         (varying_to_slice): Delete declaration.
15408         * MAINTAINERS: Update.
15409
15410 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
15411
15412         * configure.in: Reorganize "Checks for library functions section"
15413         a bit.  Remove check for `btowc' and `isascii' functions.
15414         * configure: Regenerated.
15415
15416         * acconfig.h (_MSE_INT_H): Remove.
15417         * configure.in: Create "Checks for header files" section, and move
15418         appropriate tests there.  Don't check for objlist.h, wchar.h,
15419         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
15420         misdetection fix.  Also add "Checks for types", "Checks for
15421         compiler characteristics" and "Checks for library functions"
15422         sections.
15423         * config.in, configure: Regenerated.
15424
15425         * configure.in: Create "Checks for programs" section, and move
15426         appropriate tests there.
15427
15428 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
15429
15430         * configure.in: Create "Checks for libraries" section, and move
15431         appropriate tests there.  Cleanup check for wctype in libw.  Use
15432         AC_SEARCH_LIBS to see whether we need libsocket.
15433         * configure: Regenerated.
15434
15435 For older changes see ChangeLog-2002
15436 \f
15437 Local Variables:
15438 mode: change-log
15439 left-margin: 8
15440 fill-column: 74
15441 version-control: never
15442 End: