26114e7af7169c79b03a6728a42f41d14f92bd26
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2003-10-22  Andrew Cagney  <cagney@redhat.com>
2
3         * target.c (target_close): New function.
4         (debug_to_close): Use "target_close".
5         (push_target): Use "target_close".
6         (unpush_target): Use "target_close".
7         (pop_target): Use "target_close".
8         * target.h (struct target_ops): Add "to_xclose".
9         (target_open): Delete macro.  Move comment to "to_open".
10         (target_close): Replace macro with function that takes a target.
11         * top.c (quit_target): Pass "current_target" to "target_close".
12
13 2003-10-21  Elena Zannoni  <ezannoni@redhat.com>
14
15         * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
16         Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
17         * symtab.h (lookup_minimal_symbol_text): Update.
18         * breakpoint.c (create_overlay_event_breakpoint,
19         create_longjmp_breakpoint): Update callers.
20         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
21         * symtab.c (find_pc_sect_line): Ditto.
22
23 2003-10-21  Andrew Cagney  <cagney@redhat.com>
24
25         * target.c (errno): Delete extern declaration.
26
27 2003-10-20  Jeff Johnston  <jjohnstn@redhat.com>
28
29         * ia64-tdep.c: Change all occurrences of
30         DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
31         (ia64_frame_prev_register): Minor whitespace change.
32
33 2003-10-20  Michael Chastain  <mec@shout.net>
34
35         * config/djgpp/fnchange.lst: Add lines for:
36         sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
37         sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
38         sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
39         sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
40         sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
41         sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
42         sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
43
44 2003-10-20  Andrew Cagney  <cagney@redhat.com>
45
46         * values.c (register_value_being_returned): Update comments.  Use
47         "gdbarch_return_value" when available.
48         (using_struct_return): Ditto.
49         (set_return_value): Ditto.  Use "gdbarch_return_value" when
50         available..  Print a warning, and not an error, when an unhandled
51         return type is encountered.
52         * infcmd.c: Include "gdb_assert.h".
53         (print_return_value): When gdbarch_return_value_p, and using
54         struct return, assume that the value is not available.
55         * defs.h (return_value_convention): Define.
56         * gdbarch.sh (gdbarch_return_value): New predicate method.
57         * gdbarch.h, gdbarch.c: Re-generate
58         * ppc-sysv-tdep.c (return_value_convention): Delete definition.
59
60 2003-10-20  Andrew Cagney  <cagney@redhat.com>
61
62         * symtab.c: Replace "struct sec" with "struct bfd_section".
63         * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
64
65 2003-10-19  Michael Chastain  <mec@shout.net>
66
67         * config/djgpp/fnchange.lst: Add lines for:
68         gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
69         gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
70         gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
71
72 2003-10-19  Mark Kettenis  <kettenis@gnu.org>
73
74         * amd64fbsd-nat.c (fetch_inferior_registers,
75         store_inferior_registers): Remove functions.
76         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
77
78 2003-10-18  Mark Kettenis  <kettenis@gnu.org>
79
80         Add NetBSD/amd64 native configuration:
81         * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
82         * amd64nbsd-tdep.c: New file.
83         * amd64nbsd-nat.c: New file.
84         * amd64bsd-nat.c: New file.
85         * config/i386/nbsd64.mh: New file.
86         * config/i386/nbsd64.mt: New file.
87         * configure.host: Add x86_64-*-netbsd*.
88         * configure.tgt: Add x86_64-*-netbsd*.
89         * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
90         New targets.
91         * NEWS (New native configurations): Mention NetBSD/amd64.
92
93 2003-10-17  Michael Chastain  <mec@shout.net>
94
95         * config/djgpp/fnchange.lst: Remove dead lines for:
96         bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
97         bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
98         bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
99         gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
100         gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
101         gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
102         gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
103         gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
104         gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
105         gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
106         gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
107         gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
108         gdb/config/sparc/tm-sparclite.h,
109         gdb/gdbtk/generic/ChangeLog-2001,
110         gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
111         gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
112         gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
113         gdb/sparclet-rom.c, gdb/sparclet-stub.c,
114         gdb/testsuite/gdb.mi/mi0-var-block.exp,
115         gdb/testsuite/gdb.mi/mi0-var-child.exp,
116         gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
117         gdb/testsuite/gdb.mi/mi0-var-display.exp,
118         itcl/iwidgets3.0.0/demos/extfileselectionbox,
119         itcl/iwidgets3.0.0/demos/extfileselectiondialog,
120         itcl/iwidgets3.0.0/demos/fileselectionbox,
121         itcl/iwidgets3.0.0/demos/fileselectiondialog,
122         itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
123         itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
124         itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
125         itcl/iwidgets3.0.0/demos/html/combobox.n.html,
126         itcl/iwidgets3.0.0/demos/html/dialog.n.html,
127         itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
128         itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
129         itcl/iwidgets3.0.0/demos/html/feedback.n.html,
130         itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
131         itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
132         itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
133         itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
134         itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
135         itcl/iwidgets3.0.0/demos/html/menubar.n.html,
136         itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
137         itcl/iwidgets3.0.0/demos/html/notebook.n.html,
138         itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
139         itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
140         itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
141         itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
142         itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
143         itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
144         itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
145         itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
146         itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
147         itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
148         itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
149         itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
150         itcl/iwidgets3.0.0/demos/html/shell.n.html,
151         itcl/iwidgets3.0.0/demos/html/spindate.n.html,
152         itcl/iwidgets3.0.0/demos/html/spinint.n.html,
153         itcl/iwidgets3.0.0/demos/html/spinner.n.html,
154         itcl/iwidgets3.0.0/demos/html/spintime.n.html,
155         itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
156         itcl/iwidgets3.0.0/demos/html/tabset.n.html,
157         itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
158         itcl/iwidgets3.0.0/demos/scrolledcanvas,
159         itcl/iwidgets3.0.0/demos/scrolledframe,
160         itcl/iwidgets3.0.0/demos/scrolledhtml,
161         itcl/iwidgets3.0.0/demos/scrolledlistbox,
162         itcl/iwidgets3.0.0/demos/scrolledtext,
163         itcl/iwidgets3.0.0/demos/selectionbox,
164         itcl/iwidgets3.0.0/demos/selectiondialog,
165         itcl/iwidgets3.0.0/doc/canvasprintbox.n,
166         itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
167         itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
168         itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
169         itcl/iwidgets3.0.0/doc/fileselectionbox.n,
170         itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
171         itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
172         itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
173         itcl/iwidgets3.0.0/doc/scrolledframe.n,
174         itcl/iwidgets3.0.0/doc/scrolledhtml.n,
175         itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
176         itcl/iwidgets3.0.0/doc/scrolledtext.n,
177         itcl/iwidgets3.0.0/doc/selectionbox.n,
178         itcl/iwidgets3.0.0/doc/selectiondialog.n,
179         itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
180         itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
181         itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
182         itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
183         itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
184         itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
185         itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
186         itcl/iwidgets3.0.0/generic/scrolledframe.itk,
187         itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
188         itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
189         itcl/iwidgets3.0.0/generic/scrolledtext.itk,
190         itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
191         itcl/iwidgets3.0.0/generic/selectionbox.itk,
192         itcl/iwidgets3.0.0/generic/selectiondialog.itk,
193         itcl/iwidgets3.0.0/tests/canvasprintbox.test,
194         itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
195         itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
196         itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
197         itcl/iwidgets3.0.0/tests/fileselectionbox.test,
198         itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
199         itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
200         itcl/iwidgets3.0.0/tests/scrolledframe.test,
201         itcl/iwidgets3.0.0/tests/scrolledhtml.test,
202         itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
203         itcl/iwidgets3.0.0/tests/scrolledtext.test,
204         itcl/iwidgets3.0.0/tests/selectionbox.test,
205         itcl/iwidgets3.0.0/tests/selectiondialog.test,
206         itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
207         itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
208         tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
209         tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
210         tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
211         tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
212         tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
213         tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
214         tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
215         tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
216         tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
217         tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
218         tk/mac/tkMacProjects.sit.hqx.
219
220 2003-10-17  Andrew Cagney  <cagney@redhat.com>
221
222         * target.c (target_section_by_addr): New function.
223         (do_xfer_memory): Use "target_section_by_addr".
224         * target.h (target_section_by_addr): Declare.
225
226         * target.h (struct target_ops): Add "to_read_partial" and
227         "to_write_partial", delete "to_query".
228         (target_read_partial, target_write_partial): Declare.
229         (target_read, target_write): Declare.
230         (target_query): Delete macro.
231         * target.c (target_read_partial): New function.
232         (target_write_partial, target_read, target_write): New function.
233         (update_current_target): Delete inheritance of "to_query".  Add
234         comments about "to_read_partial" and "to_write_partial".
235         (debug_to_partial_read, debug_to_partial_write): New functions.
236         (debug_to_query): Delete function.
237         (setup_target_debug): Set "to_read_partial" and "to_write_partial"
238         instead of "to_query".
239         * remote.c (remote_read_partial): Replace "remote_query".
240         (init_remote_ops): Set "to_read_partial" instead of "to_query".
241         (init_remote_async_ops): Ditto.
242         * kod.c (gdb_kod_query): Make "bufsize" a LONGEST.  Use
243         "target_read_partial" instead of "target_query".
244         * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
245         Use "target_read_partial" instead of "target_query".
246
247 2003-10-17  Jeff Johnston  <jjohnstn@redhat.com>
248
249         * frame.h (struct frame_id): Add new field: special_addr.
250         (frame_id_build_special): New prototype.
251         * frame.c (frame_id_build_special): New function.
252         (frame_id_build): Change to call frame_id_build_special().
253         (frame_id_eq): Change to also test special_addr field. 
254         (frame_id_inner): Update comment. 
255
256 2003-10-17  Andrew Cagney  <cagney@redhat.com>
257
258         * target.c (update_current_target): Perform the target cleanup.
259         Put the target stack beneath the squashed "current_target".
260         (add_target): Delete disabled call to "cleanup_target".
261         (cleanup_target): Delete function.
262         (push_target, unpush_target): Do not call "cleanup_target".
263
264 2003-10-17  Andrew Cagney  <cagney@redhat.com>
265
266         * target.c (target_stack): Change to a static target_ops.
267         (update_current_target): Walk the "struct target_ops" stack.
268         (pop_target, do_xfer_memory, target_info): Ditto.
269         (find_target_beneath): Ditto.
270         (push_target): Rewrite to use the "struct target_ops" stack.
271         (unpush_target): Ditto.
272         * target.h (struct target_stack_item): Delete definition.
273         (target_stack): Delete declaration.
274         (struct target_ops): Add field "beneath".
275
276 2003-10-17  Shrinivas Atre  <shrinivasa@KPITCummins.com>
277
278         * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
279         declaration.
280         * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
281         (h8300_examine_prologue): Use h8300_normal_mode flag
282         (h8300_gdbarch_init): Set architecture info for normal mode
283
284 2003-10-16  Daniel Jacobowitz  <drow@mvista.com>
285
286         * remote.c (remote_protocol_vcont): New variable.
287         (set_remote_protocol_vcont_packet_cmd): New function.
288         (show_remote_protocol_vcont_packet_cmd): New function.
289         (init_all_packet_configs): Handle remote_protocol_vcont.
290         (remote_vcont_probe): New function.
291         (remote_vcont_resume): New function.
292         (remote_resume): Use it.
293         (remote_async_resume): Call remote_resume.
294         (_initialize_remote): Add verbose-resume packet commands.
295
296 2003-10-16  Andrew Cagney  <cagney@redhat.com>
297
298         * infrun.c (handle_inferior_event): Add comment about
299         "frame_id_inner" being too weak.
300
301 2003-10-16  Elena Zannoni  <ezannoni@redhat.com>
302
303         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
304         second parameter, which is always null. Remove
305         SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
306         * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
307         accordingly.
308         * somsolib.c (som_solib_create_inferior_hook,
309         som_solib_desire_dynamic_linker_symbols): Update callers.
310         * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
311
312 2003-10-16  Kei Sakamoto  <sakamoto.kei@renesas.com>
313
314         * remote-m32r-sdi.c : New file, interface to m32r on-chip
315         debug interface, SDI (Scalable Debug Interface).
316         * NEWS: Mention m32r SDI protocol was supported.
317         * Makefile.in (remote-m32r-sdi.o): Add build rule.
318         * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
319
320 2003-10-15  Jeff Johnston  <jjohnstn@redhat.com>
321
322         * ia64-linux-tdep.c: Include gdbcore.h.
323         (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
324         (ia64_linux_sigcontext_register_addr): Find the address of the
325         sigcontext area stored in the sigframe instead of using
326         a magic offset constant. 
327
328 2003-10-15  Andrew Cagney  <cagney@redhat.com>
329
330         * remote.c (remote_search): Delete function.
331         * target.h (target_search): Delete disabled macro.
332         (struct target_ops): Delete disabled field "to_search".
333
334 2003-10-14  Kevin Buettner  <kevinb@redhat.com>
335
336         * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
337         instead of deprecated_inside_entry_file().
338
339 2003-10-14  Corinna Vinschen  <vinschen@redhat.com>
340
341         * sh-tdep.c: Fix copy/paste hangover in comment.
342         (sh_push_dummy_call_fpu): Accomodate double passing in little endian
343         mode.
344         (sh3e_sh4_extract_return_value): Ditto.
345
346 2003-10-13  Richard Henderson  <rth@redhat.com>
347
348         * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
349         * f-valprint.c (f_val_print): Likewise.  Tweak TYPE_CODE_PTR to
350         match c_val_print a bit closer.
351
352 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
353
354         * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
355         (frv_gdbarch_adjust_breakpoint_address): New function.
356         (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
357         method.
358
359 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
360
361         * breakpoint.h (struct breakpoint): Add new member
362         ``requested_address''.
363         * breakpoint.c (breakpoint_adjustment_warning)
364         (adjust_breakpoint_address): New static functions.
365         (print_it_typical): Issue warning if breakpoint's address is different
366         from its requested address.
367         (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
368         (breakpoint_re_set_one):  Set breakpoint's
369         ``requested_address'' field.  Set ``address'' field to the
370         result of calling adjust_breakpoint_address() on the requested
371         address.
372
373 2003-10-13  Kevin Buettner  <kevinb@redhat.com>
374
375         * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
376         * gdbarch.h, gdbarch.c: Regenerate.
377
378 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
379
380         * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
381         TDEP->sc_num_regs.
382
383         * i386fbsd-tdep.c: New file.
384         (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
385         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
386         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
387         i386bsd-tdep.c.
388         (_initialize_i386fbsd_tdep): New function.
389         (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
390         (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
391         TDEP->gregset_num_regs, TDEP->sizeof_gregset and
392         TDEP->sizeof_fpregset.  Use ARRAY_SIZE to initialize
393         TDEP->sc_num_regs.
394         (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
395         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
396         to initialize TDEP->sc_num_regs.
397         * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
398         i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
399         i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
400         (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
401         FreeBSD ELF OS/ABI's here.
402         * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
403         (i386fbsd-tdep.o): New target.
404         * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
405         * config/i386/fbsd64.mt (TDEPFILES):  Add i386fbsd-tdep.o.
406
407         * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
408         (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
409         TDEP->gregset_num_regs and TDEP->sizeof_gregset.  Use ARRAY_SIZE
410         in initialization of TDEP->sc_num_regs.
411
412         * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
413         (x86_64_init_abi): Initialize regset_from_core_section if
414         appropriate.
415
416         * i386-tdep.c (i386_regset_from_core_section): New function.
417         (i386_gdbarch_init): Initialize regset_from_core_section if
418         appropriate.
419         * i386-tdep.h (i386_regset_from_core_section): New declaration.
420
421         * i386-tdep.h (struct regset): Declare opaque.
422
423         * gdbarch.sh (regset_from_core_section): New method.
424         (struct regset): Declare opaque.
425         * gdbarch.c, gdbarch.h: Regenerated.
426
427 2003-10-11  Alan Modra  <amodra@bigpond.net.au>
428
429         * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
430         _cooked_size and vma;  Use bfd_section_size and bfd_get_section_vma.
431         Correct test for pc within section.
432
433 2003-10-11  Mark Kettenis  <kettenis@gnu.org>
434
435         * gdbarch.sh: Remove trailing whitepsace from comments.
436
437 2003-10-08  Roland McGrath  <roland@redhat.com>
438
439         * gcore.c (make_mem_sec): Function removed, folded into ...
440         (gcore_create_callback): ... here.  To omit a section, clear its
441         SEC_LOAD bit rather than zeroing its size.
442         Omit read-only sections only if they correspond to a known disk file.
443         (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
444
445 2003-10-10  Michael Snyder  <msnyder@redhat.com>
446
447         * d10v-tdep.c: Fix typo in comment.
448
449 2003-10-10  Andrew Cagney  <cagney@redhat.com>
450
451         * rs6000-tdep.c (e500_store_return_value): Delete function.
452         (e500_extract_return_value): Delete function.
453         (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
454         "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
455         "ppc_sysv_abi_restore_return_value" where applicable.
456         * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
457         (ppc_sysv_abi_extract_return_value): Declare.
458         (ppc_sysv_abi_broken_store_return_value): Declare.
459         (ppc_sysv_abi_broken_extract_return_value): Declare.
460         (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
461         * ppc-sysv-tdep.c (return_value_convention): Move definition to
462         start of file.
463         (do_ppc_sysv_return_value): New function.
464         (ppc_sysv_abi_extract_return_value): New function.
465         (ppc_sysv_abi_store_return_value): New function.
466         (ppc_sysv_abi_broken_extract_return_value): New function.
467         (ppc_sysv_abi_broken_store_return_value): New function.
468         (ppc_sysv_abi_use_struct_convention): Call
469         do_ppc_sysv_return_value.
470
471 2003-10-10  J. Brobecker  <brobecker@gnat.com>
472
473         * blockframe.c (inside_main_func): No longer use symbol_lookup()
474         to lookup the main function symbol.
475
476 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
477
478         * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
479         types correctly.
480         (sh_push_dummy_call_fpu): Fix argument passing rules.
481         (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
482         float types.
483         (sh3e_sh4_store_return_value): Ditto.
484
485 2003-10-10  Elena Zannoni  <ezannoni@redhat.com>
486
487         * sh-tdep.c (sh_use_struct_convention): Clarify one case in
488         comment.
489
490 2003-10-10  Corinna Vinschen  <vinschen@redhat.com>
491
492         * sh-tdep.c (sh_use_struct_convention): Clean up to have a
493         more readable code.  Accomodate passing of bitfields.
494
495 2003-10-10  Andrew Cagney  <cagney@redhat.com>
496
497         * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
498         * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
499         push_dummy_call to ppc64_sysv_abi_push_dummy_call.
500         * ppc-sysv-tdep.c: Include "gdb_assert.h".
501         (ppc64_sysv_abi_push_dummy_call): New function.
502         (ppc64_sysv_abi_broken_push_dummy_call): New function.
503         * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
504         (ppc64_sysv_abi_broken_push_dummy_call): Declare.
505
506 2003-10-10  Kei Sakamoto  <sakamoto.kei@renesas.com>
507
508         * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
509         * README: Ditto.
510         * d10v-tdep.c: Ditto.
511         * h8300-tdep.c: Ditto.
512         * remote-e7000.c: Ditto.
513         * remote-hms.c: Ditto.
514         * ser-e7kpc.c: Ditto.
515         * sh-stub.c: Ditto.
516         * sh-tdep.c: Ditto.
517         * sh-tdep.h: Ditto.
518         * sh3-rom.c: Ditto.
519         * sh64-tdep.c: Ditto.
520         * top.c: Ditto.
521         * wince.c: Ditto.
522         * config/d10v/d10v.mt: Ditto.
523         * config/sh/embed.mt: Ditto.
524         * config/sh/linux.mt: Ditto.
525         * config/sh/tm-linux.h: Ditto.
526         * config/sh/tm-sh.h: Ditto.
527         * config/sh/wince.mt: Ditto.
528
529 2003-10-09  Andrew Cagney  <cagney@redhat.com>
530
531         * ppc-tdep.h (struct type): Declare opaque.
532         * x86-64-tdep.h (struct regcache): Declare opaque.
533         * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
534         coding style.
535
536 2003-10-09  Andrew Cagney  <cagney@redhat.com>
537
538         Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
539         * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
540         (SOFTWARE_SINGLE_STEP_P): Ditto.
541         * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
542         * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
543         (SOFTWARE_SINGLE_STEP_P): Ditto.
544         * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
545         software_single_step to rs6000_software_single_step.
546
547 2003-10-09  Andrew Cagney  <cagney@redhat.com>
548
549         * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
550
551 2003-10-09  Michael Snyder  <msnyder@redhat.com>
552
553         * frame.h: Fix typo in comment.
554         * dummy-frame.c: Fix typo in comment.
555         * d10v-tdep.c: Random whitespace/comment tweaks.
556
557 2003-10-09  Elena Zannoni  <ezannoni@redhat.com>
558
559         * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
560         (sh_push_dummy_code): Delete function, it's only used for dummy calls
561         on stack.
562
563         Based on input by Stephen Clarke (stephen.clarke@superh.com):
564         * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
565         in detail.
566
567 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
568
569         * remote-mips.c (mips_initialize): Remove unneeded call to
570         get_selected_frame.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
571
572 2003-10-09  Daniel Jacobowitz  <drow@mvista.com>
573
574         * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
575         a memory pointer.
576
577 2003-10-08  Jeff Johnston  <jjohnstn@redhat.com>
578
579         * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
580         for any lwp we resume.
581         (running_callback): Add lwps that have pending status events
582         against them to be considered running.
583
584 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
585
586         * m32r-tdep.c : Include "dis-asm.h".
587         * Makefile.in (m32r-tdep.o): Update dependencies.
588
589 2003-10-06  J. Brobecker  <brobecker@gnat.com>
590
591         * completer.h (get_gdb_completer_word_break_characters): Delete.
592         * completer.c: include language.h.
593         (gdb_completer_word_break_characters): Delete.
594         (get_gdb_completer_word_break_characters): Delete.
595         (location_completer): Use the word break characters of the current
596         language.
597         (complete_line): Likewise.
598         (line_completion_function): Likewise.
599         (skip_quoted_chars): Likewise.
600         * Makefile.in (completer.o): Add dependency on language.h.
601         * top.c (init_main): Set the readline word break characters
602         to GDB's default word break characters.
603
604 2003-10-06  J. Brobecker  <brobecker@gnat.com>
605
606         * language.h (language_defn): new field, la_word_break_characters.
607         * language.c (unknown_language_defn): Set new field to
608         default_word_break_characters.
609         (auto_language_defn): Likewise.
610         (local_language_defn): Likewise.
611         * ada-lang.c (ada_language_defn): Likewise.
612         * c-lang.c (c_language_defn): Likewise.
613         (cplus_language_defn): Likewise.
614         (asm_language_defn): Likewise.
615         (minimal_language_defn): Likewise.
616         * f-lang.c (f_language_defn): Likewise.
617         * jv-lang.c (java_language_defn): Likewise.
618         * m2-lang.c (m2_language_defn): Likewise.
619         * objc-lang.c (objc_language_defn): Likewise.
620         * p-lang.c (pascal_language_defn): Likewise.
621         * scm-lang.c (scm_language_defn): Likewise.
622
623 2003-10-06  Andrew Cagney  <cagney@redhat.com>
624
625         * ppc-sysv-tdep.c: Re-indent.
626
627 2003-10-06  J. Brobecker  <brobecker@gnat.com>
628
629         * language.h (default_word_break_characters): Add prototype.
630         * language.c (default_word_break_characters): New function.
631
632 2003-10-06  Andreas Schwab  <schwab@suse.de>
633
634         * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
635         with %eax.
636
637 2003-10-06  Andrew Cagney  <cagney@redhat.com>
638
639         * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
640         "h8500-tdep.c".
641         (z8k-tdep.o): Delete custom build rule.
642
643 2003-10-06  Andrew Cagney  <cagney@redhat.com>
644
645         * Makefile.in: Update all dependencies.
646
647         * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
648         No longer list PA as as obsolete candidate.  List m32r as
649         broken instead of obsolete.
650
651         * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
652         * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
653         * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
654         * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
655         * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
656         * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
657         * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
658         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
659         * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
660         * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
661         * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
662         * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
663         * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
664         * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
665         * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
666         * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
667         * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
668         * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
669         * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
670         * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
671         * config/z8k/z8k.mt: Ditto.
672
673         * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
674         h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
675         mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
676         i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
677         sparclite were removed.
678         * configure.host, configure.tgt: Remove corresponding tuples.
679
680         * breakpoint.c, breakpoint.h: Remove obsolete code.
681         * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
682         * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
683         * stabsread.h, xcoffread.c: Ditto.
684
685         * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
686         * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
687         * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
688         * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
689
690 2003-10-06  David Lecomber  <dsl@sources.redhat.com>
691
692         * f-valprint.c: Reformatting
693
694 2003-10-06  Mark Kettenis  <kettenis@gnu.org>
695
696         * x86-64-tdep.c: Remove duplicate comment.
697
698         * x86-64-tdep.c (x86_64_store_return_value): Don't use
699         DEPRECATED_REGISTER_RAW_SIZE.  Use symbolic names for register
700         names for return values.  This fixes a bug since we looked at %rbx
701         instead of %rdx.
702
703 2003-10-05  Mark Kettenis  <kettenis@gnu.org>
704
705         * x86-64-tdep.c: Include "regset.h".
706
707         * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
708         gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
709         sizeof_fpregset.
710         * i386-tdep.c: Include "regset.h".
711         (i386_supply_gregset): New function.
712         (i386_supply_fpregset): New function.
713         (i386_gdbarch_init): Initialze register set-related members of
714         TDEP.
715         * x86-64-tdep.c (x86_64_supply_fpregset): New function.
716         (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
717
718 2003-10-03  Andrew Cagney  <cagney@redhat.com>
719
720         * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
721         set extract_return_value, store_return_value and
722         use_struct_convention to ppc64_sysv_abi_extract_return_value,
723         ppc64_sysv_abi_store_return_value and
724         ppc64_sysv_abi_use_struct_convention.
725         * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
726         (ppc64_sysv_abi_store_return_value): Declare.
727         (ppc64_sysv_abi_use_struct_convention): Declare.
728         * ppc-sysv-tdep.c (enum return_value_convention): Define.
729         (ppc64_sysv_abi_extract_return_value): New function.
730         (ppc64_sysv_abi_store_return_value): New function.
731         (ppc64_sysv_abi_use_struct_convention): New function.
732         (ppc64_sysv_abi_return_value): New function.
733
734 2003-10-03  Andrew Cagney  <cagney@redhat.com>
735
736         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
737         convert a descriptor to a function when it's in the ".opd"
738         section.
739
740 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
741
742         * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
743         reg_size to keep GCC silent.
744
745 2003-10-03  Corinna Vinschen  <vinschen@redhat.com>
746
747         * dwarf2-frame.c (struct comp_unit): Add tbase member to store
748         base for DW_EH_PE_textrel encodings.
749         (read_encoded_value): Add a DW_EH_PE_textrel case.
750         (dwarf2_build_frame_info): Set unit.tbase to beginning of text
751         section.
752
753 2003-10-03  Mark Kettenis  <kettenis@gnu.org>
754
755         * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
756
757 2003-10-02  Andrew Cagney  <cagney@redhat.com>
758
759         * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
760         REGISTER_RAW_SIZE.
761         * gdbarch.h, gdbarch.c: Re-generate.
762         * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
763         * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
764         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
765         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
766         * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
767         * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
768         * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
769         * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
770         * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
771         * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
772         * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
773         * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
774         * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
775         * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
776         * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
777         * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
778
779 2003-10-02  Jim Blandy  <jimb@redhat.com>
780
781         * dwarf2read.c (struct die_info): Doc fix.
782
783 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
784
785         * sh-tdep.c: Running thru gdb_indent.sh.
786
787 2003-10-02  Corinna Vinschen  <vinschen@redhat.com>
788
789         * sh-tdep.c (sh_justify_value_in_reg): New function.
790         (sh_stack_allocsize): Ditto.
791         (flt_argreg_array): New array used for floating point argument
792         passing.
793         (sh_init_flt_argreg): New function.
794         (sh_next_flt_argreg): Ditto.
795         (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
796         "pass_on_stack". Use new helper functions.  Accomodate Renesas ABI.
797         Fix argument passing strategy.
798         (sh_push_dummy_call_nofpu): Ditto.
799
800 2003-10-01  Andrew Cagney  <cagney@redhat.com>
801
802         * value.h (register_value_being_returned): Declare.  Replace
803         "value_being_returned".
804         * infcall.c (call_function_by_hand): Use
805         register_value_being_returned.
806         * infcmd.c (print_return_value): Call
807         "register_value_being_returned", handle struct return locally.
808         * values.c (register_value_being_returned): New function.  Replace
809         "value_being_returned".
810
811 2003-09-30  Elena Zannoni  <ezannoni@redhat.com>
812
813         * linux-proc.c (linux_do_registers): New function.
814         (linux_make_note_section): Use linux_do_registers in case of
815         single threaded inferior programs.
816
817 2003-10-01  Andrew Cagney  <cagney@redhat.com>
818
819         * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
820         use STRUCT_ADDR.  When not using "struct return convention", pass
821         "0" to "value_being_returned".  Add FIXMEs.
822         * infcmd.c (print_return_value): Pass an explicit 0/1 to
823         value_being_returned.  Add comments.
824         * values.c (value_being_returned): Add fixme.
825         * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
826         (hppa_value_returned_from_stack): Add FIXME.
827
828 2003-09-30  David Carlton  <carlton@kealia.com>
829
830         * dwarf2read.c (struct die_info): Add 'parent' field; replace
831         'has_children' and 'next' by 'child' and 'sibling'.
832         (read_comp_unit): Rework algorithm, breaking body into
833         read_die_and_children and read_die_and_siblings.
834         (read_die_and_children, read_die_and_siblings): New.
835         (read_full_die): Add 'has_children' argument; set it instead of
836         the die's 'has_children' field.  Minor formatting cleanup.
837         (free_die_list): Use die->child and die->sibling instead of
838         die->next.
839         (dump_die_list): Ditto.
840         (sibling_die): Use die->sibling.
841         (psymtab_to_symtab_1): Use die's 'child' field in place of its
842         'has_children' and 'next' fields.
843         (process_die, read_file_scope, read_func_scope)
844         (read_lexical_block_scope, read_structure_scope)
845         (read_enumeration, read_array_type, read_common_block)
846         (read_namespace, read_subroutine_type, dump_die): Ditto.
847
848 2003-09-30  Andrew Cagney  <cagney@redhat.com>
849
850         * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
851         to 224, not 220.
852
853 2003-09-30  Andrew Cagney  <cagney@redhat.com>
854
855         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
856         REGISTER_VIRTUAL_SIZE.
857         * gdbarch.h, gdbarch.c: Regenerate.
858         * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
859         * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
860         * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
861
862 2003-09-29  Andrew Cagney  <cagney@redhat.com>
863
864         * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
865         DEPRECATED_REGISTER_VIRTUAL_TYPE.
866         * gdbarch.h, gdbarch.c: Regenerate.
867         * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
868         * sh64-tdep.c, sparc-tdep.c: Update.
869
870         * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
871         * remote-vxmips.c (vx_read_register): Ditto.
872         * remote-vx68.c (vx_read_register): Ditto.
873         * gnu-nat.c (inf_validate_procs): Ditto.
874
875 2003-09-29  J. Brobecker  <brobecker@gnat.com>
876
877         * infcall.c (call_function_by_hand): Fix build failure
878         introduced in the previous change to this file.
879
880 2003-09-29  Andrew Cagney  <cagney@redhat.com>
881
882         * NEWS: Mention Objective-C.
883
884 2003-09-29  Jerome Guitton  <guitton@act-europe.fr>
885
886         * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
887         test if the register has been saved on the stack.
888         (arm_scan_prologue_cache): When analysing the instruction
889         "str lr, [sp, #-4]", save the address where lr has been stored.
890
891 2003-09-28  Andrew Cagney  <cagney@redhat.com>
892
893         * frame.c (frame_read_unsigned_register): Delete function.
894         * frame.h (frame_read_unsigned_register): Delete declaration.
895         * sparc-tdep.c (sparc_init_extra_frame_info): Use
896         get_frame_register_unsigned.
897         (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
898         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
899         * d10v-tdep.c (d10v_print_registers_info): Ditto.
900
901         * frame.h (frame_read_register): Delete declaration.
902         * frame.c (frame_read_register): Delete function.
903         * arch-utils.c (legacy_register_to_value): Use get_frame_register.
904         * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
905         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
906         * mips-tdep.c (mips_register_to_value): Ditto.
907         * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
908         * d10v-tdep.c (d10v_print_registers_info): Ditto.
909
910         * frame.c (frame_read_signed_register): Delete function.
911         (frame_read_unsigned_register): Update comments.
912         * frame.h (frame_read_signed_register): Delete declaration.
913         * h8300-tdep.c (h8300_print_register): Use
914         get_frame_register_signed.
915         * m68hc11-tdep.c (m68hc11_print_register): Ditto.
916
917         * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
918         Rename VALUE_RETURNED_FROM_STACK.
919         * infcmd.c (print_return_value): Update.
920         * infcall.c (call_function_by_hand): Update.
921
922 2003-09-28  Mark Kettenis  <kettenis@gnu.org>
923
924         * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
925         regcache argument and reverse the order of the other two
926         arguments.  Remove local regcache variable.  Determine
927         architecture from REGCACHE.  Update comments.
928         * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
929         reverse the order of the other two arguments.  Remove local
930         regcache variable.  Determine architecture from REGCACHE.  Update
931         comments.
932         * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
933         prototypes.  Update comments.
934         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype.  Adjust
935         comment.
936         * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
937         Update.
938         * go32-nat.c (fetch_register, go32_fetch_registers): Update.
939         * i386-interix-nat.c (supply_fpregset): Update.
940         * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
941         * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
942         * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
943         * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
944         * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
945         Update.
946         * i386obsd-tdep.c (fetch_core_registers): Update.
947         * i386v4-nat.c (supply_fpregset): Update.
948         * x86-64-linux-nat.c (supply_fpregset): Update.
949         * x86-64-linux-tdep.c (fetch_core_registers): Update.
950
951 2003-09-27  Mark Kettenis  <kettenis@gnu.org>
952
953         * i386-tdep.h: Put opaque declarations in alphabetical
954         order.  Remove spurious whitespace.
955         (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
956         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
957         * i386-tdep.c (MM0_REGNUM): Remove define.
958         (i386_mmx_regnum_p): Add gdbarch argument.
959         (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
960         Rewrite using new macro definitions for FPU/SSE registers.
961         (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
962         definitions from i387-tdep.h.
963         (i386_register_name): Update.
964         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
965         new macro definitions for FPU/SSE registers.
966         (i386_extract_return_value): Determine whether floating-point
967         registers are present by examining REGCACHE's architecture.
968         (i386_store_return_value): Likewise.  Use I386_MAX_REGISTER_SIZE
969         instead of FPU_REG_RAW_SIZE.  Use new macro definitions for
970         FPU/SSE registers.
971         (i386_register_type): Update.
972         (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
973         definitions for FPU registers.  Use REGCACHE's architecture to
974         determine the appropriate register numbers.
975         (i386_pseudo_register_read, i386_pseudo_register_write,
976         i386_register_reggroup_p): Update.
977         (i386_gdbarch_init): Initialize TDEP->st0_regnum and
978         TDEP->mm0_regnum.
979         * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
980         I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
981         I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
982         I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
983         (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
984         i387_fill_fxsave): Change type of fsave/fxsave argument from `char
985         *' to `void *'.
986         * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
987         i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
988         i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
989         definitions for FPU/SSE registers.
990         (FXSAVE_MXCSR_ADDR): New define.
991         * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
992         TDEP->mm0_regnum.
993         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
994         (I387_ST0_REGNUM): Define.
995
996         * regcache.h (get_regcache_arch): New prototype.
997         * regcache.c (get_regcache_arch): New function.
998
999         * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
1000         whitespace.
1001
1002         * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
1003         Initialize using ARRAY_SIZE.
1004
1005 2003-09-27  Andrew Cagney  <cagney@redhat.com>
1006
1007         * arch-utils.c (deprecated_init_frame_pc_default): Rename
1008         "init_frame_pc_default".
1009         * arch-utils.h (deprecated_init_frame_pc_default): Update.
1010         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1011         * vax-tdep.c (vax_gdbarch_init): Update.
1012         * v850-tdep.c (v850_gdbarch_init): Update.
1013         * sh64-tdep.c (sh64_gdbarch_init): Update.
1014         * s390-tdep.c (s390_gdbarch_init): Update.
1015         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1016         * mcore-tdep.c (mcore_gdbarch_init): Update.
1017         * h8300-tdep.c (h8300_gdbarch_init): Update.
1018         * cris-tdep.c (cris_gdbarch_init): Update.
1019         * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1020
1021 2003-09-26  Mark Kettenis  <kettenis@gnu.org>
1022
1023         * regset.h: New file.
1024         * Makefile.in (regset_h): Add.
1025
1026 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1027
1028         * frame.h (deprecated_frame_saved_regs): Rename
1029         get_frame_saved_regs.
1030         * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1031         * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1032         * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1033         * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1034         * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1035
1036 2003-09-25  Andrew Cagney  <cagney@redhat.com>
1037
1038         * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1039         file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1040         and Java.
1041         * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1042         arm*-*-* do not use the new frame code.
1043
1044 2003-09-25  David Carlton  <carlton@kealia.com>
1045
1046         * c-exp.y: Remove 'register' declarations.
1047         * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1048
1049 2003-09-25  David Carlton  <carlton@kealia.com>
1050
1051         * c-exp.y: Include cp-support.h.  Add qualified_type.
1052         (yylex): Delete nested type hack; add comments.
1053         * cp-namespace.c (cp_lookup_nested_type): New function.
1054         * cp-support.h: Declare cp_lookup_nested_type.
1055         * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1056         instead of value_struct_elt_for_reference.
1057         * valops.c: Include cp-support.h.
1058         (value_aggregate_elt): New function.
1059         (value_namespace_elt): Ditto.
1060         (value_struct_elt_for_reference): Make static.
1061         * value.h: Delete declaration of value_struct_elt_for_reference;
1062         add declaration for value_aggregate_elt.
1063         * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1064         (valops.o): Ditto.
1065
1066 2003-09-25  Daniel Jacobowitz  <drow@mvista.com>
1067
1068         * stack.c: Include "reggroups.h".
1069         (frame_info): Only display registers in all_reggroup.
1070         * Makefile.in (stack.o): Update dependencies.
1071
1072 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
1073
1074         * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1075         "add ip, sp #n" in the prologue.
1076         (arm_scan_prologue): Ditto.
1077
1078 2003-09-25  Jerome Guitton  <guitton@act-europe.fr>
1079
1080         * MAINTAINERS (write after approval): Add myself.
1081
1082 2003-09-25  Andreas Schwab  <schwab@suse.de>
1083
1084         * m68k-tdep.c: Include "dwarf2-frame.h".
1085         (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1086         * Makefile.in (m68k-tdep.o): Update dependencies.
1087
1088 2003-09-25  Corinna Vinschen  <vinschen@redhat.com>
1089
1090         * sh-tdep.c (struct frame_extra_info): Remove.
1091         (struct sh_frame_cache): New structure.
1092         (GET_SOURCE_REG): New macro extracting source register of an opcode.
1093         (GET_TARGET_REG): Ditto but target register.
1094         (GET_PUSHED_REG): Remove.
1095         (IS_MOV_ARG_TO_REG): New macro.
1096         (IS_MOV_ARG_TO_IND_R14): New macro.
1097         (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1098         (IS_MOVW_PCREL_TO_REG): New macro.
1099         (IS_MOVL_PCREL_TO_REG): New macro.
1100         (IS_SUB_REG_FROM_SP): New macro.
1101         (IS_ARG_MOV): Remove.
1102         (IS_MOV_TO_R14): Remove.
1103         (IS_RESTORE_FP): New macro.
1104         (IS_RTS): New macro.
1105         (IS_LDS): New macro.
1106         (IS_MOV_FP_SP): New macro.
1107         (IS_ADD_REG_TO_FP): New macro.
1108         (IS_ADD_IMM_FP): New macro.
1109         (sh_skip_prologue_hard_way): Remove.
1110         (sh_saved_pc_after_call): Remove.
1111         (sh_frame_chain): Remove.
1112         (sh_find_callers_reg): Remove.
1113         (sh_nofp_frame_init_saved_regs): Remove.
1114         (sh_fp_frame_init_saved_regs): Remove.
1115         (sh_init_extra_frame_info): Remove.
1116         (sh_analyze_prologue): New function.
1117         (sh_skip_prologue): Remove deprecated code.  Rely on new function
1118         sh_analyze_prologue when after_prologue fails.
1119         (sh_frame_saved_pc): Remove.
1120         (sh_alloc_frame_cache): New function.
1121         (sh_frame_cache): Ditto.
1122         (sh_frame_prev_register): Ditto.
1123         (sh_frame_this_id): Ditto.
1124         (sh_frame_unwind): New structure defining the heuristic frame
1125         sniffer interface.
1126         (sh_frame_sniffer): New function.
1127         (sh_unwind_sp): Ditto.
1128         (sh_unwind_pc): Ditto.
1129         (sh_unwind_dummy_id): Ditto.
1130         (sh_frame_base_address): Ditto.
1131         (sh_frame_base): New structure defining new frame base code.
1132         (sh_in_function_epilogue_p): New function.
1133         (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1134         code and to call all new code instead.  Initialize dwarf2 and
1135         heuristic frame sniffer.
1136
1137 2003-09-24  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
1138
1139         * parser-defs.h (struct exp_descriptor): New definition, containing
1140         language-specific info for printing, prefixifying, dumping, and
1141         evaluating expressions.
1142         (exp_descriptor_standard): Declare new variable.
1143         (print_subexp): Make global and declare here (from expprint.c).
1144         (dump_subexp): Ditto.
1145         (dump_subexp_body_standard): Declare.
1146         (operator_length_standard): Declare.
1147         (op_name_standard): Declare.
1148         (print_subexp): Declare.
1149         (print_subexp_standard): Declare.
1150
1151         * language.h (struct language_defn): Add la_exp_desc field to hold
1152         pointer to table for language-specific operators.
1153         Remove evaluate_exp field, which is now in struct exp_descriptor.
1154
1155         * parse.c (operator_length): Move most code to new
1156         operator_length_standard function.  Use language-specific information.
1157         (operator_length_standard): New function taking most code from
1158         operator_length.
1159         (exp_descriptor_standard): New constant.
1160
1161         * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1162         and OP_EXTENDED_LAST.
1163
1164         * expprint.c (print_subexp): Use language-specific print_subexp.
1165         Make global; remove static declaration.
1166         Move most code to print_subexp_standard.
1167         (print_subexp_standard): New function, containing code formerly in
1168         print_subexp.
1169         (op_name): Add expression to argument signature.
1170         Use langauge-specific op_name.
1171         Move most code to op_name_standard.
1172         (op_name_standard): New function, containing code formerly in op_name.
1173         (dump_subexp):  Use new version of op_name function.
1174         Use language-specific dump_subexp_body, and move most existing code to
1175         dump_subexp_body_standard.
1176         (dump_raw_expression): Use new op_name interface.
1177         (dump_subexp_body): Move most code to dump_subexp_body_standard.
1178         (dump_subexp_body_standard): New function, containing code formerly
1179         in dump_subexp_body.
1180
1181         * language.c (unknown_language): Add default la_exp_desc field and
1182         remove evaluate_exp field.
1183         (auto_language): Ditto.
1184         (local_language): Ditto.
1185         * f-lang.c (f_language_defn): Ditto.
1186         * c-lang.c (c_language_defn): Ditto.
1187         (cplus_language_defn): Ditto.
1188         (asm_language_defn): Ditto.
1189         (minimal_language_defn): Ditto.
1190         * p-lang.c (pascal_language_defn): Ditto.
1191         * m2-lang.c (m2_language_defn): Ditto.
1192         * objc-lang.c (objc_language_defn): Ditto.
1193
1194         * jv-lang.c (exp_descriptor_java): New variable, containing
1195         Java-specific expression evaluator.
1196         (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1197         field.
1198         * scm-lang.c (exp_descriptor_scm): New variable, containing
1199         Scheme-specific expression evaluator.
1200         (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1201         field.
1202         * objc-lang.c (print_object_command): Take evaluate_exp from the
1203         la_exp_desc field.
1204
1205         * Makefile.in (eval.o): Add dependency on parser-defs.h.
1206
1207         * eval.c: Include parser-defs.h for the full declaration of
1208         la_exp_desc's type.
1209         (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1210
1211 2003-09-23  Paul N. Hilfinger  <hilfingr@nile.gnat.com>
1212
1213         * parser-defs.h (operator_length): Declare.
1214
1215         * parse.c (length_of_subexp): Use operator_length to get operator
1216         lengths and arities for operators.
1217         Move most code to new operator_length function.
1218         (operator_length): New function absorbing most code from
1219         length_of_subexp.
1220         (prefixify_subexp): Remove large case and use operator_length instead.
1221         (parse_exp_1): Use renamings:
1222         dump_prefix_expression => dump_raw_expression and
1223         dump_postfix_expression => dump_prefix_expression.
1224
1225         * expression.h (dump_prefix_expression): Rename to ...
1226         (dump_raw_expression): New name.
1227         (dump_postfix_expression): Rename to ...
1228         (dump_prefix_expression): New name.
1229
1230         * expprint.c (dump_subexp): Make global.  Add comment.
1231         Move most existing code to dump_subexp_body.
1232         (dump_subexp_body): New function.
1233         (dump_prefix_expression): Rename to dump_raw_expression.
1234         Remove attempt to print the expression via print_expression: it can't
1235         work before the expression is prefixified.
1236         (dump_raw_expression): Renamed from dump_prefix_expression.
1237         (dump_postfix_expression): Rename to dump_prefix_expression, since
1238         that's what it does.
1239         Remove 'note' parameter, since this routine must be used on
1240         prefixified expression.
1241         (dump_prefix_expression): Renamed from dump_postfix_expression.
1242
1243 2003-09-22  Jim Blandy  <jimb@redhat.com>
1244
1245         * dwarf2read.c (read_array_type): When building the type for an
1246         array of unspecified length, make sure to choose the upper bound
1247         so that the array's total length comes out to be zero --- that's
1248         how we represent such arrays.
1249
1250 2003-09-22  Michael Chastain  <mec@shout.net>
1251
1252         * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1253
1254 2003-09-22  Jeff Johnston  <jjohnstn@redhat.com>
1255
1256         * top.c (quit_force): Fix indirect call to quit_target so
1257         a struct qt_args pointer is passed.
1258
1259 2003-09-22  Andrew Cagney  <cagney@redhat.com>
1260
1261         * arch-utils.h (init_frame_pc_noop): Delete declaration.
1262         * arch-utils.c (init_frame_pc_noop): Delete function.
1263         * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1264         "init_frame_pc".
1265         * mips-tdep.c (mips_gdbarch_init): Ditto.
1266         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1267         * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1268         declaration.
1269         (DEPRECATED_INIT_FRAME_PC): Delete macro.
1270         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1271         declaration.
1272         (DEPRECATED_INIT_FRAME_PC): Delete macro.
1273
1274 2003-09-22  Anthony Green  <green@redhat.com>
1275
1276         * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1277         declaration.
1278
1279 2003-09-20  Andrew Cagney  <cagney@redhat.com>
1280
1281         * breakpoint.c: Eliminate ARGSUSED.
1282         * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1283         * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1284         * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1285         * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1286         * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1287         * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1288         * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1289         * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1290         * wince.c, remote-vx.c: Ditto.
1291
1292         * cli/cli-script.c: Remove "register" attributes.
1293         * config/pa/tm-hppa.h: Ditto.
1294         * cli/cli-decode.c: Ditto.
1295         * cli/cli-cmds.c: Ditto.
1296
1297 2003-09-19  Andrew Cagney  <cagney@redhat.com>
1298
1299         * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1300         DEPRECATED_NPC_REGNUM.
1301         * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1302
1303 2003-09-19  Christopher Faylor  <cgf@redhat.com>
1304
1305         * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1306
1307 2003-09-19  Jim Blandy  <jimb@redhat.com>
1308
1309         * macrotab.c (macro_include): Use the correct comparison to find
1310         the appropriate place for this inclusion in the list.
1311
1312 2003-09-19  Andrew Cagney  <cagney@redhat.com>
1313
1314         * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1315         (DEPRECATED_HPUX_TEXT_END): Define.
1316         (deprecated_hpux_text_end): Declare.
1317         (struct target_ops): Declare opaque.
1318         * hppah-nat.c (text_end): Make static.
1319         (deprecated_hpux_text_end): New function.
1320         * exec.c (text_end): Delete global variable.
1321         (NEED_TEXT_START_END): Do not define.
1322         (exec_file_attach): Replace code computing "text_end" code with
1323         call to DEPRECATED_HPUX_TEXT_END.
1324
1325 2003-09-19  Andrew Cagney  <cagney@redhat.com>
1326
1327         * utils.c (align_up, align_down): New functions.
1328         * defs.h (align_up, align_down): Declare.
1329         * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1330         * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1331         and "align_down".
1332         (round_up, round_down): Delete functions.
1333         * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1334         "align_down".
1335         (ROUND_DOWN, ROUND_UP): Delete macros.
1336         (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1337         * h8300-tdep.c: Replace "round_up" and "round_down" with
1338         "align_up" and "align_down".
1339         (round_up, round_down): Delete macros.
1340         * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1341         "align_down".
1342         (ROUND_UP, ROUND_DOWN): Delete macros.
1343
1344 2003-09-18  J. Brobecker  <brobecker@gnat.com>
1345
1346         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1347         hard-coded constant. Use the proper machine name instead.
1348
1349 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1350
1351         * sparc-tdep.c (legacy_register_name): Delete function.
1352         * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1353         (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1354         * infcmd.c (gdb_register_name): Delete variable.
1355         * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1356         REGISTER_NAME and "tm.h".
1357         * gdbarch.h, gdbarch.c: Regenerate.
1358         * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1359         REGISTER_NAMES in comments.
1360         * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1361         * m68klinux-nat.c (regmap): Ditto.
1362
1363 2003-09-17  Jim Blandy  <jimb@redhat.com>
1364
1365         * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1366
1367 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1368
1369         * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1370         (ppcnbsd_init_abi): Set "use_struct_convention" to
1371         "ppcnbsd_use_struct_convention".
1372
1373 2003-09-17  Mark Kettenis  <kettenis@gnu.org>
1374
1375         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1376         * gdbarch.h, gdbarch.c: Regenerate.
1377         (stabs_argument_has_addr): New architecture method.
1378         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1379         * arch-utils.c: Include "buildsym.h".
1380         (default_stabs_argument_has_addr): New function.
1381         * stabsread.c (define_symbol): Use stabs_argument_has_addr
1382         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1383
1384 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1385
1386         * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1387         * gdbarch.h, gdbarch.c: Regenerate.
1388         * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1389         * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1390         * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1391         * sparcnbsd-tdep.c: Update.
1392
1393 2003-09-17  Andrew Cagney  <cagney@redhat.com>
1394
1395         * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1396         * gdbarch.h, gdbarch.c: Regenerate.
1397         * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1398         * d10v-tdep.c, frame.c: Update.
1399         * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1400         * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1401         * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1402         * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1403         * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1404         * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1405         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1406         * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1407         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1408         * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1409         * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1410         * config/pa/nm-hppah.h: Update.
1411
1412 2003-09-16  Andrew Cagney  <cagney@redhat.com>
1413
1414         * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1415         "use_struct_convention" to "ppc_linux_use_struct_convention".
1416         (ppc_linux_use_struct_convention): New function.
1417         * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1418         (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1419         "rs6000_use_struct_convention".
1420         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1421         declaration.
1422         * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1423         Delete function.
1424
1425 2003-09-16  Andrew Cagney  <cagney@redhat.com>
1426
1427         * buildsym.c: Remove more occurances of "register".
1428         * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1429         * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1430         * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1431         * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1432         * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1433         * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1434         * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1435         * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1436
1437 2003-09-16  Corinna Vinschen  <vinschen@redhat.com>
1438
1439         * sh-tdep.h (struct gdbarch_tdep): Remove.  Change all register
1440         numbers to enumeration values.
1441         * sh-tdep.c: Accomodate above change.
1442         (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1443         (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1444         (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1445         (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1446         (IS_FPUSH): Rename from IS_FMOV.
1447         (sh_extract_struct_value_address): Remove useless comment.
1448         (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1449         instead of own local values.
1450         (sh_dump_tdep): Remove.
1451         (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1452         * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1453
1454 2003-09-15  Andrew Cagney  <cagney@redhat.com>
1455
1456         * doublest.c (convert_floatformat_to_doublest): No longer need to
1457         cast "exp_bias" to an int.  Reverts 2002-12-04 change.
1458
1459 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
1460
1461         * values.c (unpack_double): Call floatformat_is_valid.
1462
1463 2003-09-15  Mark Kettenis  <kettenis@gnu.org>
1464
1465         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1466         ps_strings into a long.
1467
1468         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1469         _initialize_am64fbsd_nat.
1470
1471 2003-09-15  Kevin Buettner  <kevinb@redhat.com>
1472
1473         * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1474         associated with DW_AT_ranges attribute is out of bounds.
1475
1476 2003-09-15  David Lecomber  <dsl@sources.redhat.com>
1477
1478         * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1479
1480 2003-09-14  Michael Chastain  <mec@shout.net>
1481
1482         * config/m68k/nm-apollo68v.h: Delete.
1483         * config/m68k/xm-apollo68v.h: Delete.
1484
1485 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1486
1487         * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1488         * dcache.c: Update copyrights and descriptions.
1489         * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1490
1491 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1492
1493         * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1494         "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1495
1496 2003-09-14  Andrew Cagney  <cagney@redhat.com>
1497
1498         * alpha-nat.c: Remove some occurances of "register".
1499         * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1500         * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1501         * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1502         * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1503         * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1504         * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1505         * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1506         * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1507         * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1508         * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1509         * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1510         * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1511         * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1512         * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1513         * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1514         * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1515         * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1516         * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1517         * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1518         * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1519         * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1520         * values.c, vax-tdep.c, xcoffread.c: Ditto.
1521
1522 2003-09-13  Andrew Cagney  <cagney@redhat.com>
1523
1524         * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1525         * ppc-tdep.h (struct regcache): Declare opaque.
1526         * objfiles.h (struct objfile_data): Declare opaque.
1527         * cp-support.h (struct objfile): Declare opaque.
1528         * linux-nat.h (target_waitstatus): Declare opaque.
1529
1530 2003-09-14  Mark Kettenis  <kettenis@gnu.org>
1531
1532         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1533         (stabs_argument_has_addr): New architecture method.
1534         * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1535         * arch-utils.c: Include "buildsym.h".
1536         (default_stabs_argument_has_addr): New function.
1537         * stabsread.c (define_symbol): Use stabs_argument_has_addr
1538         instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1539
1540         * cris-tdep.c (cris_gdbarch_init): Set
1541         deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1542         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1543         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1544         * mips-tdep.c (mips_gdbarch_init): Likewise.
1545         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1546         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1547
1548 2003-09-13  Andrew Cagney  <cagney@redhat.com>
1549
1550         * values.c (using_struct_return): Delete "function" and "funcaddr"
1551         parameters.
1552         * value.h (using_struct_return): Update declaration.
1553         * infcmd.c (finish_command_continuation): Update.
1554         (finish_command): Update.
1555         * infcall.c (call_function_by_hand): Update.
1556         * eval.c (evaluate_subexp_standard): Update.
1557
1558 2003-09-13  Christopher Faylor  <cgf@redhat.com>
1559
1560         * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1561         SSE registers since gdb will not operate correctly without this.
1562         Restore include file ordering munged in previous change.
1563         * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1564
1565 2003-09-13  Mark Kettenis  <kettenis@gnu.org>
1566
1567         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1568         REG_STRUCT_HAS_ADDR.
1569         * gdbarch.c, gdbarch.h: Updated.
1570         * infcall.c (call_function_by_hand): Update.
1571         * stabsread.c (define_symbol): Updated.
1572
1573         * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1574
1575 2003-09-12  Christopher Faylor  <cgf@redhat.com>
1576
1577         * win32-nat.c: Reorganize so that defines used by target headers are
1578         actually defined by the system headers.
1579         * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1580         than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1581
1582 2003-09-12  Jim Blandy  <jimb@redhat.com>
1583
1584         * dbxread.c (read_dbx_symtab): Don't report an internal error if
1585         the file has no .data, .bss, or .rodata sections.  Instead wait
1586         until we see a variable alleged to live in one of those sections.
1587
1588         * dbxread.c (read_dbx_symtab): If we have no .data section and no
1589         .bss section, presume that any variables we find live in the
1590         .rodata section.
1591
1592         * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1593         offsets for global and static variables.
1594
1595         * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1596         symbol types are, by definition, in the .data section, so it is
1597         correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1598         If there is no .data section, there should be no N_DATA or N_DATA
1599         | N_EXT symbols.
1600
1601 2003-09-12  Mark Kettenis  <kettenis@gnu.org>
1602
1603         * amd64fbsd-tdep.c: Fix sigtramp recognition.
1604         (amd64fbsd_sigcontext_addr): Rewrite.
1605         (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1606         with correct values.
1607         (amd64fbsd_sc_reg_offset): Initialize with correct values.
1608         (amd64fbsd_init_abi): Fix typo.
1609
1610 2003-09-12  Andrew Cagney  <cagney@redhat.com>
1611
1612         * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1613         (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1614
1615 2003-09-12  Andrew Cagney  <cagney@redhat.com>
1616
1617         * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1618         "entry_file_highpc".  Update comments.
1619         * defs.h (deprecated_inside_entry_file): Rename
1620         "inside_entry_file".
1621         * blockframe.c (deprecated_inside_entry_file): Rename
1622         "inside_entry_file".
1623         * frame.c (get_prev_frame): Update.  Use if 0 instead of #if 0.
1624         * vax-tdep.c (vax_frame_chain): Update.
1625         * sh64-tdep.c (sh64_frame_chain): Update.
1626         * sh-tdep.c (sh_frame_chain): Update.
1627         * rs6000-tdep.c (rs6000_frame_chain): Update.
1628         * ns32k-tdep.c (ns32k_frame_chain): Update.
1629         * mips-tdep.c (mips_frame_chain): Update.
1630         * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1631         * m32r-tdep.c (m32r_frame_this_id): Update.
1632         * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1633         * frv-tdep.c (frv_frame_this_id): Update.
1634         * d10v-tdep.c (d10v_frame_this_id): Update.
1635         * cris-tdep.c (cris_frame_chain): Update.
1636         * blockframe.c (legacy_frame_chain_valid): Update.
1637         * avr-tdep.c (avr_frame_this_id): Update.
1638         * arm-tdep.c (arm_prologue_this_id): Update.
1639         * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1640         * objfiles.c (objfile_relocate): Update.
1641         * mipsread.c (mipscoff_symfile_read): Update.
1642         (mipscoff_symfile_read): Update.
1643         * mdebugread.c (parse_partial_symbols): Update.
1644         * dwarfread.c (read_file_scope): Update.
1645         * dwarf2read.c (read_file_scope): Update.
1646         * dbxread.c (read_dbx_symtab): Update.
1647         (read_dbx_symtab): Update.
1648         * coffread.c (complete_symtab): Update.
1649
1650 2003-09-12  Jeff Johnston  <jjohnstn@redhat.com>
1651
1652         * top.c (quit_target): New static helper function.
1653         (quit_force): Moved code to quit_target().  Call quit_target()
1654         via catch_errors() to catch errors during quit.
1655
1656 2003-09-11  David Carlton  <carlton@kealia.com>
1657
1658         * buildsym.c (finish_block): Use allocate_block to allocate the
1659         block.
1660         * mdebugread.c (new_block): Add FIXME.
1661
1662 2003-09-11  David Carlton  <carlton@kealia.com>
1663
1664         * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1665         * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1666         (recursive_dump_type): Ditto.
1667         * printcmd.c (print_formatted): Ditto.
1668         * typeprint.c (print_type_scalar): Ditto.
1669         * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1670         (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1671         * cp-support.h: Declare cp_check_possible_namespace_symbols,
1672         maint_cplus_cmd_list.
1673         * cp-support.c: Make maint_cplus_cmd_list extern.
1674         * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1675         command.h.
1676         (lookup_symbol_file): Look in possible namespace blocks when
1677         appropriate.
1678         (initialize_namespace_symtab): New.
1679         (get_possible_namespace_block, free_namespace_block)
1680         (check_possible_namespace_symbols)
1681         (check_possible_namespace_symbols_loop)
1682         (check_one_possible_namespace_symbol)
1683         (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1684         (_initialize_cp_namespace): Ditto.
1685         * block.h: Declare allocate_block.
1686         * block.c (allocate_block): New.
1687         * jv-lang.c (get_java_class_symtab): Allocate blocks via
1688         allocate_block.
1689         * symfile.h: Update declaration of add_psymbol_to_list.
1690         * symfile.c (add_psymbol_to_list): Return the partial symbol in
1691         question.
1692         * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1693         scan_partial_symbols_call.
1694         (scan_partial_symbols): Add NAMESPACE argument; update calls to
1695         helper functions.
1696         (add_partial_symbol): If necessary, scan mangled names for names
1697         of namespaces.
1698         (add_partial_namespace): Add NAMESPACE argument; generate partial
1699         symbols associated  to namespaces.
1700         (add_partial_enumeration): Add NAMESPACE argument.
1701         (new_symbol): Allow namespace syms.
1702         (read_namespace): Generate namespace syms.
1703         * objfiles.h: Add opaque declaration of struct symtab.
1704         (struct objfile): Add cp_namespace_symtab member.
1705         * objfiles.c (allocate_objfile): Set
1706         objfile->cp_namespace_symtab.
1707         * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1708         dictionary_h, command_h.
1709
1710 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1711
1712         * rs6000-tdep.c (rs6000_push_dummy_call): Use
1713         regcache_raw_write_signed to set SP_REGNUM, move the operation to
1714         near the function's end.
1715         (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1716         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1717         regcache_raw_write_signed to set SP_REGNUM.
1718
1719 2003-09-11  Elena Zannoni  <ezannoni@redhat.com>
1720
1721         * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1722         orig_addrs is set up properly.
1723
1724 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1725
1726         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1727         * gdbarch.h, gdbarch.c: Re-generate.
1728         * infcall.c (call_function_by_hand): Update.
1729         * hppa-tdep.c (hppa_push_arguments): Update.
1730         * ada-lang.c (place_on_stack): Update.
1731         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1732         * sparc-tdep.c (sparc_gdbarch_init): Update.
1733         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1734         * hppa-tdep.c (hppa_gdbarch_init): Update.
1735         * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1736         stack_align.
1737
1738 2003-09-11  Daniel Jacobowitz  <drow@mvista.com>
1739
1740         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1741         register do need a frame.
1742
1743 2003-09-11  Andrew Cagney  <cagney@redhat.com>
1744
1745         Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1746         buildable since GDB 5.0.
1747         * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1748         * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1749         * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1750         * irix4-nat.c: Delete file.
1751         * config/mips/irix4.mh: Delete file.
1752         * config/mips/irix3.mh: Delete file.
1753         * config/mips/irix3.mt: Delete file.
1754         * config/mips/tm-irix3.h: Delete file.
1755         * config/mips/nm-irix3.h: Delete file.
1756         * config/mips/xm-irix3.h: Delete file.
1757         * config/mips/nm-irix4.h: Delete file.
1758         * config/mips/xm-irix4.h: Delete file.
1759         * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1760
1761 2003-09-10  J. Brobecker  <brobecker@gnat.com>
1762
1763         * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1764         * Makefile.in (hppa-tdep.o): Update dependencies.
1765
1766 2003-09-10  James E Wilson  <wilson@specifixinc.com>
1767
1768         * MAINTAINERS: Change my e-mail address.  Move to paper trail
1769         section.
1770
1771 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
1772
1773         * MAINTAINERS (frv): New ISA entry.
1774
1775 2003-09-10  Kevin Buettner  <kevinb@redhat.com>
1776
1777         * frv-tdep.c (dis-asm.h): Include.
1778         * Makefile.in (frv-tdep.o): Update dependencies.
1779
1780 2003-09-09  Jeff Johnston  <jjohnstn@redhat.com>
1781
1782         * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1783         Fix typo for high range of floating registers.
1784
1785 2003-09-09  David Carlton  <carlton@kealia.com>
1786
1787         * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1788         highpc initialization here out of scan_partial_symbols.
1789         (scan_partial_symbols): Restructure into a recursive version,
1790         calling add_partial_namespace and add_partial_enumeration when
1791         appropriate.
1792         (add_partial_namespace): New.
1793         (add_partial_enumeration, locate_pdi_sibling): Ditto.
1794
1795 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1796
1797         * rs6000-tdep.c (ppc_push_return_address): Delete function.
1798         (rs6000_push_dummy_call): Set LR to BP_ADDR.
1799         (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1800         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1801
1802         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1803         (rs6000_push_dummy_call): Set the "TOC" register.
1804
1805         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1806         methods "max_register_raw_size", "max_register_virtual_size" or
1807         "register_virtual_size".
1808
1809 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
1810
1811         * MAINTAINERS: Update my e-mail address.
1812
1813 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1814
1815         * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1816         (rs6000_push_dummy_call): Store the struct return address.
1817         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1818
1819 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1820
1821         * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1822         "ppc_sysv_abi_push_arguments".
1823         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1824         "ppc_sysv_abi_push_arguments".
1825         * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1826         instead of "push_arguments".
1827         (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1828
1829 2003-09-09  Andrew Cagney  <cagney@redhat.com>
1830
1831         * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1832         instead of CALL_DUMMY_ADDRESS.
1833
1834 2003-09-09  Paul N. Hilfinger  <hilfingr@gnat.com>
1835
1836         * p-lang.c: Eliminate "register".
1837         * c-lang.c: Ditto.
1838         * expprint.c: Ditto.
1839         * f-lang.c: Ditto.
1840         * jv-lang.c: Ditto.
1841         * language.c: Ditto.
1842         * m2-lang.c: Ditto.
1843         * parse.c: Ditto.
1844         * scm-lang.c: Ditto.
1845         * objc-lang.c: Ditto.
1846
1847 2003-09-09  Nick Clifton  <nickc@redhat.com>
1848
1849         * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1850
1851 2003-09-04  Andrew Cagney  <cagney@redhat.com>
1852
1853         * avr-tdep.c: Include "dis-asm.h".
1854         * cris-tdep.c: Include "dis-asm.h".
1855         (cris_delayed_get_disassembler): Use "struct disassemble_info"
1856         instead of corresponding typedef.
1857         * h8300-tdep.c: Include "dis-asm.h".
1858         * ia64-tdep.c: Include "dis-asm.h".
1859         * i386-tdep.c: Include "dis-asm.h".
1860         (i386_print_insn): Use "struct disassemble_info" instead of
1861         corresponding typedef.
1862         * m68k-tdep.c: Include "dis-asm.h".
1863         * mcore-tdep.c: Include "dis-asm.h".
1864         * mips-tdep.c: Include "dis-asm.h".
1865         (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1866         instead of corresponding typedef.
1867         * ns32k-tdep.c: Include "dis-asm.h".
1868         * s390-tdep.c: Include "dis-asm.h".
1869         * sparc-tdep.c: Include "dis-asm.h".
1870         * vax-tdep.c: Include "dis-asm.h".
1871         * v850-tdep.c: Include "dis-asm.h".
1872         * mn10300-tdep.c: Include "dis-asm.h".
1873         * rs6000-tdep.c: Include "dis-asm.h".
1874         * xstormy16-tdep.c: Include "dis-asm.h".
1875         (_initialize_xstormy16_tdep): Delete "extern" declaration of
1876         print_insn_xstormy16.
1877         * Makefile.in (v850-tdep.o): Update dependencies.
1878         (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1879         (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1880         (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1881         (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1882         (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1883         (gdbarch_h): Remove $(dis_asm_h).
1884         * disasm.c: Include "dis-asm.h".
1885         (dis_asm_read_memory): Use "struct disassemble_info" instead of
1886         corresponding typedef.
1887         (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1888         (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1889         * gdbarch.sh: Do not include "dis-asm.h".
1890         (struct disassemble_info): Declare opaque.
1891         (TARGET_PRINT_INSN): Update declaration.
1892         * gdbarch.h, gdbarch.c: Re-generate.
1893
1894 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1895
1896         * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1897         CALL_DUMMY_ADDRESS, change to a predicate.
1898         * gdbarch.h, gdbarch.c: Re-generate.
1899         * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1900         Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1901         * infcall.c (call_function_by_hand): Ditto.
1902         * sparc-tdep.c (sparc_push_return_address): Ditto.
1903         (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1904         * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1905         CALL_DUMMY_ADDRESS with entry_point_address.
1906         * v850-tdep.c (v850_push_return_address): Ditto.
1907         * s390-tdep.c (s390_push_return_address): Ditto.
1908         * rs6000-tdep.c (ppc_push_return_address): Ditto.
1909         * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1910         * mcore-tdep.c (mcore_push_return_address): Ditto.
1911         * cris-tdep.c (cris_push_return_address): Ditto.
1912         * arm-tdep.c (arm_push_return_address): Ditto.
1913
1914 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1915
1916         * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1917         enum.  Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1918         and REG_UNMODIFIED to REG_SAME_VALUE.
1919         (execute_cfa_program): Update.
1920         (dwarf2_frame_cache): Update.  Initialize table to
1921         REG_UNSPECIFIED, complain if CFI fails to specify a register's
1922         location.
1923         (dwarf2_frame_prev_register): Update.  Handle REG_UNSPECIFIED.
1924
1925 2003-09-08  Andrew Cagney  <cagney@redhat.com>
1926
1927         * gnu-nat.c: Remove "inline" function attribute.
1928         * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1929
1930 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
1931
1932         * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1933         target.
1934
1935 2003-09-08  Kevin Buettner  <kevinb@redhat.com>
1936
1937         * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1938         (frame_extra_info): Rename this struct to frv_unwind_cache.
1939         Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1940         Add fields ``prev_sp'' and ``base''.
1941         (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1942         (frv_saved_pc_after_call, frv_init_extra_frame_info)
1943         (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1944         Delete.
1945         (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1946         Revise all callers.  Fill in the unwind cache argument and make
1947         other adjustments to account for new frame mechanisms.
1948         (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1949         (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1950         (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1951         (frv_frame_unwind, frv_frame_base): New structs.
1952         (frv_push_arguments): Change name to frv_push_dummy_call().  Add
1953         additional arguments expected by this method and adjust function
1954         body accordingly.
1955         (frv_gdbarch_init): Remove calls to the following functions:
1956         set_gdbarch_deprecated_init_frame_pc(),
1957         set_gdbarch_deprecated_saved_pc_after_call(),
1958         set_gdbarch_deprecated_frame_chain(),
1959         set_gdbarch_deprecated_frame_saved_pc(),
1960         set_gdbarch_deprecated_frame_init_saved_regs(),
1961         set_gdbarch_deprecated_push_arguments(),
1962         set_gdbarch_deprecated_push_return_address(),
1963         set_gdbarch_deprecated_pop_frame(),
1964         set_gdbarch_deprecated_call_dummy_words(),
1965         set_gdbarch_deprecated_sizeof_call_dummy_words(),
1966         set_gdbarch_deprecated_init_extra_frame_info(),
1967         set_gdbarch_deprecated_dummy_write_sp(), and
1968         set_gdbarch_deprecated_pc_in_call_dummy().
1969         Add calls to the following functions:
1970         set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1971         set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1972         frame_base_set_default().
1973         * Makefile.in (frv-tdep.o): Update dependencies.
1974
1975 2003-09-09  Mark Kettenis  <kettenis@gnu.org>
1976
1977         * dwarf2-frame.c (read_encoded_value): Add support for
1978         DW_EH_PE_aligned encoding.
1979
1980 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
1981
1982         * infrun.c (normal_stop): Don't print a message if the inferior
1983         has exited.
1984
1985 2003-09-08  Jim Blandy  <jimb@redhat.com>
1986
1987         * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1988         * dbxread.c: #include "gdb_assert.h".
1989         (read_dbx_symtab): If the objfile has no .data section, use the
1990         section index for the .bss section instead.
1991
1992 2003-09-08  Daniel Jacobowitz  <drow@mvista.com>
1993
1994         * frame.c (deprecated_safe_get_selected_frame): New function.
1995         * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1996         * findvar.c (read_var_value): Call it.
1997
1998 2003-09-08  Corinna Vinschen  <vinschen@redhat.com>
1999
2000         * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
2001         (sh64-tdep.o): Add dependencies.
2002         * configure.tgt: Add FIXME to sh-*-linux*.
2003         * sh-tdep.c: Move sh64 support to sh64-tdep.c.
2004         (sh_gdbarch_init): Always set correct sh_show_regs function
2005         pointer.  Call sh64_gdbarch_init() if machine type is sh5.
2006         * sh-tdep.h: Move sh64 support to sh64-tdep.c.
2007         * sh64-tdep.c: New file, containing all sh64 related code from
2008         sh-tdep.c.
2009         * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
2010         * config/sh/linux.mt (TDEPFILES): Ditto.
2011         * config/sh/nbsd.mt (TDEPFILES): Ditto.
2012         * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2013         * config/sh/wince.mt (TDEPFILES): Ditto.
2014
2015 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2016
2017         * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2018         (stop_wait_callback): Handle !lp->signalled also.
2019         (lin_lwp_has_pending, flush_callback): New functions.
2020         (lin_lwp_wait): Call flush_callback.
2021         * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2022         (linux_proc_pending_signals): New function.
2023         * linux-nat.h (linux_proc_pending_signals): Add prototype.
2024
2025 2003-09-07  Daniel Jacobowitz  <drow@mvista.com>
2026
2027         From Nick Kelsey <nickk@ubicom.com>:
2028         * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2029         when the stop PC is at the beginning of a function also.
2030
2031 2003-09-06  Daniel Jacobowitz  <drow@mvista.com>
2032
2033         * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2034         (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2035
2036 2003-09-06  Mark Kettenis  <kettenis@gnu.org>
2037
2038         * sol-thread.c: Include "gdb_string.h".
2039
2040 2003-09-03  Mark Kettenis  <m.kettenis@osp.nl>
2041
2042         * gcore.c: Reorder include files in alphabetical order.  Include
2043         "gdb_assert.h".  Various coding style fixes.
2044         (derive_stack_segment, derive_heap_segment): Replace check for
2045         non-null BOTTOM and TOP with gdb_assert.
2046         (derive_heap_segment): Replace check for successful creation of
2047         ZERO with gdb_assert.
2048         (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2049
2050 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2051
2052         * thread-db.c (verbose_dlsym): New function.
2053         (thread_db_load): Use verbose_dlsym
2054         (thread_db_new_objfile): Print that libthread_db was loaded, and
2055         that thread debugging was enabled.
2056
2057 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2058
2059         * configure.tgt: Add "mips64*-*-*" target.  Delete
2060         mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2061         mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2062         mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2063         mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2064         mips*-sony-*, and mips64*-*-elf* targets.
2065         * config/mips/embedl.mt: Delete file.
2066         * config/mips/embedl64.mt: Delete file.
2067         * config/mips/mips.mt: Delete file.
2068         * config/mips/mips64.mt: Delete file.
2069         * config/mips/tm-embed.h: Delete file.
2070         * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2071         * config/mips/embed64.mt: Delete out-of-date comment.
2072
2073 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2074
2075         * hppa-tdep.c (hppa_gdbarch_init): Set
2076         "have_nonsteppable_watchpoint".
2077         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2078         * mips-tdep.c (mips_dump_tdep): Do not print
2079         HAVE_NONSTEPPABLE_WATCHPOINT.
2080         (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2081         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2082         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2083         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2084
2085 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
2086
2087         * breakpoint.c (watchpoint_check): Remove accidentally checked in
2088         unused code.  Add comment.
2089
2090 2003-09-04  Corinna Vinschen  <vinschen@redhat.com>
2091
2092         * breakpoint.c (watchpoint_check): Check for pc being in an
2093         epilogue if watchpoint frame couldn't be found.
2094
2095 2003-09-04  Andrew Cagney  <cagney@redhat.com>
2096
2097         * Makefile.in: Re-generate all dependencies.
2098
2099 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2100
2101         * arch-utils.h (legacy_print_insn): Delete declaration.
2102         * arch-utils.c (legacy_print_insn): Delete function.
2103         * disasm.c (deprecated_tm_print_insn_info): Delete.
2104         (_initialize_disasm): Delete function, contained code initializing
2105         deprecated_tm_print_insn_info.
2106         * gdbarch.sh (deprecated_tm_print_insn): Delete.
2107         (deprecated_tm_print_insn_info): Delete.
2108         (TARGET_PRINT_INSN): Do not provide a default.
2109         * gdbarch.h, gdbarch.c: Re-generate.
2110
2111 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2112
2113         * disasm.c (fprintf_disasm): New function.
2114         (gdb_disassemble_info): Call "init_disassemble_info", instead of
2115         INIT_DISASSEMBLE_INFO_NO_ARCH.  Do not initialize "insn_sets",
2116         reverts 2003-08-14 change.
2117         (_initialize_disasm): Call "init_disassemble_info", instead of
2118         INIT_DISASSEMBLE_INFO_NO_ARCH.
2119
2120 2003-09-03  Michael Snyder  <msnyder@redhat.com>
2121
2122         * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2123
2124 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2125
2126         * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2127         * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2128         * symfile.c (syms_from_objfile): Update.
2129         (reread_symbols): `Update
2130         * exec.c (exec_file_attach): Update.
2131         (exec_file_attach): Update.
2132         * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2133         2003-08-29 change.
2134         * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2135
2136 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2137
2138         * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2139         trad-frame.h.
2140         (arm_get_cache): Delete macro.
2141         (struct arm_prologue_cache): Update comments.  Make saved_regs into
2142         a trad_frame_saved_reg pointer.  Remove unwound_pc; rename unwound_sp
2143         to prev_sp.
2144         (thumb_scan_prologue): Update for cache changes.  Don't call
2145         DEPRECATED_PC_IN_CALL_DUMMY.
2146         (arm_scan_prologue): Update for cache changes.  Take NEXT_FRAME
2147         argument and use it in desperation search for our prologue.  Do not
2148         search past the specified PC.
2149         (arm_make_prologue_cache): Simplify.
2150
2151         (arm_prologue_this_id, arm_prologue_prev_register)
2152         (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2153         (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2154         (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2155         (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2156         (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2157
2158         (arm_frame_chain_valid, arm_find_callers_reg)
2159         (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2160         (arm_pop_frame): Delete obsolete methods.
2161         (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2162
2163         (arm_gdbarch_init): Update for new frame methods.  Register prologue
2164         and sigtramp unwinders.  Set the default frame base method.
2165
2166         * Makefile.in (arm-tdep.o): Update dependencies.
2167         * varobj.c (find_frame_addr_in_frame_chain): Call
2168         get_frame_base_address.
2169         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2170
2171 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2172
2173         * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2174         arm_frame_chain.  Take NEXT_FRAME and CACHE arguments.
2175         Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2176         (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2177         Take NEXT_FRAME and CACHE arguments.  Call
2178         FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2179         Set unwound_pc in CACHE instead of modifying the frame argument.
2180         Don't bother checking the frame type when looking for sigtramp
2181         frames.
2182         (arm_make_prologue_cache, arm_frame_chain)
2183         (arm_init_extra_frame_info): New functions.
2184
2185 2003-09-03  Daniel Jacobowitz  <drow@mvista.com>
2186
2187         * arm-tdep.c (arm_get_cache): Define.
2188         (struct arm_prologue_cache): Renamed from frame_extra_info.  Add
2189         unwound_sp, unwound_pc, and saved_regs.
2190         (thumb_scan_prologue): Take a cache instead of the frame.
2191         (arm_scan_prologue): Likewise.
2192         (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2193         instead of a temporary frame.
2194         (arm_init_extra_frame_info): Allocate and use a cache.
2195         (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2196
2197 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2198
2199         * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2200         * config/mips/wince.mt (TM_CLIBS): Ditto.
2201         * config/sh/wince.mt (TM_CLIBS): Ditto.
2202         * config/pa/hppa64.mt (TM_CLIBS): Delete.
2203         * config/sparc/sp64.mt (CC): Delete.
2204
2205 2003-09-03  Andrew Cagney  <cagney@redhat.com>
2206
2207         * defs.h: Do not include "arch-utils.h".
2208         (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2209         GDB_MULTI_ARCH_PURE.
2210         * configure.in (GDB_MULTI_ARCH): Do not define.
2211         * configure, config.in: Regenerate.
2212         * configure.tgt: Do not set variable "gdb_multi_arch".
2213         * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2214         * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2215         * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2216         * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2217         * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2218         * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2219         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2220         * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2221         * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2222         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2223         * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2224         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2225         * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2226         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2227         * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2228         * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2229         * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2230         * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2231
2232 2003-08-30  Michael Chastain  <mec@shout.net>
2233
2234         * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2235         * config/m68k/nm-hp300hpux.h: Delete.
2236         * config/m68k/tm-hp300hpux.h: Delete.
2237         * config/m68k/xm-hp300hpux.h: Delete.
2238         * config/m68k/xm-hp300bsd.h: Delete.
2239         * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2240         tm-hp300hpux.h, xm-hp300hpux.h.
2241         * somsolib.c: Remove comment about hp300 shared libraries.
2242
2243 2003-08-31  Mark Kettenis  <kettenis@gnu.org>
2244
2245         * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2246         Only define PTRACE_GET_THREAD_AREA is not already defined.
2247         Various style fixes in code and comments and some additional
2248         spelling fixes in comments.  Move after functions dealing with
2249         debug registers.
2250         * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2251         Fix coding-style.
2252
2253         * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2254         frame_unwind_register_unsigned instead of
2255         frame_unwind_unsigned_register.
2256
2257 2003-08-30  Mark Kettenis  <kettenis@gnu.org>
2258
2259         * configure.in: Search for gethostbyname in libnsl.
2260         * configure: Regenerated.
2261
2262 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
2263
2264         * configure.in: Remove redundant AC_MSG_RESULT in check for
2265         uintptr_t in stdint.h.
2266         * configure: Regenerated.
2267
2268         * amd64-nat.h (struct regcache): Add opaque declaration.
2269
2270         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2271         * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2272         Change "register array" to "register cache" in comments.
2273         (x86_64_linux_gregset64_reg_offset): New variable.
2274         (GETREGS_SUPPLIES): Remove macro.
2275         (supply_gregset): Call amd64_supply_native_gregset instead of
2276         x86_64_linux_supply_gregset.
2277         (fill_gregset): Rename `regno' to `regnum'.  Call
2278         amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2279         (store_regs): Rename `regno' to `regnum'.
2280         (store_fpregs): Rename `regno' to `regnum'.
2281         (fetch_inferior_registers): Rename `regno' to `regnum'.  Use
2282         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2283         Reorganize function a bit.
2284         (store_inferior_registers): Rename `regno' to `regnum'.  Use
2285         amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2286         Reorganize function a bit.
2287         (_initialize_x86_64_linux_nat): New function.
2288         * config/i386/x86-64linux.mh.
2289
2290 2003-08-29  Andrew Cagney  <cagney@redhat.com>
2291
2292         * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2293         (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2294         (target_remove_watchpoint): Delete macro.
2295         (target_insert_watchpoint): Delete macro.
2296         (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2297         (remote_mips_stopped_by_watchpoint): Delete declaration.
2298         (remote_mips_remove_watchpoint): Delete declaration.
2299         (remote_mips_set_watchpoint): Delete declaration.
2300         (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2301         * remote-mips.c (_initialize_remote_mips): Set
2302         "to_insert_watchpoint", "to_stopped_by_watchpoint",
2303         "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2304         (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2305         (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2306         (mips_stopped_by_watchpoint): Rename
2307         remote_mips_stopped_by_watchpoint.
2308         (mips_can_hardware_watchpoint): Rename
2309         remote_mips_can_use_hardware_watchpoint, update function
2310         signature.
2311
2312 2003-08-29  Mark Kettenis  <kettenis@gnu.org>
2313
2314         * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2315         USER_DS.  We haven't given them a register number yet.
2316
2317         * amd64-nat.h: New file.
2318         * amd64-nat.c: New file.
2319         * amd64fbsd-nat.c: Include "amd64-nat.h".
2320         (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2321         (amd64fbsd32_r_reg_offset): New variable.
2322         (supply_gregset): Simply call amd64_supply_native_gregset.
2323         (fill_gregset): Rename `regno' to `regnum'.  Simply call
2324         amd64_collect_native_gregset.
2325         (fill_fpregset): Rename `regno' to `regnum'.
2326         (fetch_inferior_registers): Rename `regno' to `regnum'.  Replace
2327         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2328         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2329         `fpregset_t'.  Call amd64_supply_native_gregset instead of
2330         supply_gregset.  Call x86_64_supply_fxsave instead of
2331         supply_fpregset.
2332         (store_inferior_registers): Rename `regno' to `regnum'.  Replace
2333         usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2334         Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2335         `fpregset_t'.  Call amd64_collect_native_gregset instead of
2336         fill_gregset.  Call x86_64_collect_fxsave instead of
2337         fill_fpregset.
2338         (_initialize_am64fbsd_nat): Initialize
2339         amd64_native_gregset32_reg_offset and
2340         amd64_native_gregset64_reg_offset.
2341         * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2342
2343         * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2344         null pointer.  Fix typo in comment.
2345
2346         * regcache.c (supply_register): Reimplement to call
2347         regcache_raw_supply.
2348         (regcache_collect): Reimplement by calling regcache_raw_collect.
2349
2350 2003-08-28  Mark Kettenis  <kettenis@gnu.org>
2351
2352         * regcache.c (register_buffer): Consitify first argument.
2353         (regcache_raw_supply, regcache_raw_collect): New
2354         functions.
2355
2356 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
2357
2358         * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET.  Suggested
2359         by Nathan J. Williams.
2360
2361 2003-08-28  Daniel Jacobowitz  <drow@mvista.com>
2362
2363         * lin-lwp.c (wait_lwp): New function, copied from
2364         stop_wait_callback.  Clean up.
2365         (stop_wait_callback): Use wait_lwp.
2366
2367 2003-08-28  Andrew Cagney  <cagney@redhat.com>
2368
2369         * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2370         flavour and disassembler options.
2371         (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2372         (mips_gdbarch_init): Set "print_insn".  Delete initialization of
2373         deprecated_tm_print_insn_info.
2374
2375 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2376
2377         * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2378         Use target_read_memory.
2379         (s390_get_frame_info): Update.  Do not reference
2380         deprecated_tm_print_insn_info.
2381         (s390_check_function_end, s390_is_sigreturn): Ditto.
2382
2383 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2384
2385         * Makefile.in (cris-tdep.o): Update dependencies.
2386         * cris-tdep.c: Include "gdb_assert.h".
2387         (cris_gdbarch_init): Set print_insn.
2388         (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2389         (cris_delayed_get_disassembler): Simplify, directly call the
2390         disassembler returned by cris_get_disassembler.
2391         * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2392         (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2393         * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2394         (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2395         * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2396         (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2397         * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2398         (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2399         * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2400         (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2401         * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2402         (gdb_print_insn_sparc): Delete function.
2403         (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2404         deprecated_tm_print_insn_info.
2405         * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2406         (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2407         (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2408         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2409         (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2410         * s390-tdep.c (gdb_print_insn_s390): Delete function.
2411         (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2412         (s390_gdbarch_init): Set print_insn.
2413
2414 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2415
2416         * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2417         (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2418         * infcall.c (call_function_by_hand): Convert the entry point
2419         address into a code address.
2420
2421 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2422
2423         * dsrec.c: Include "gdb_string.h".
2424         * Makefile.in (dsrec.o): Update dependencies.
2425
2426 2003-08-27  Michael Chastain  <mec@shout.net>
2427
2428         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2429
2430 2003-08-27  Andrew Cagney  <cagney@redhat.com>
2431
2432         * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2433         (alpha_osf1_init_abi): Do not set call_dummy_address.
2434
2435 2003-08-27  David Carlton  <carlton@kealia.com>
2436
2437         From Randolph Chung  <tausq@debian.org>:
2438         * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2439         compiles with -Wformat-nonliteral -Werror.
2440
2441 2003-08-26  Jim Blandy  <jimb@redhat.com>
2442
2443         * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2444         (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2445         bfd_lookup_symbol, since we only want symbols in code sections.
2446         (look_for_base): Pass zero as the SECT_FLAGS argument to
2447         bfd_lookup_symbol, since we're not concerned about which section
2448         the symbol is in.
2449
2450 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
2451
2452         * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2453         we are frameless or the return address register is already known.
2454
2455 2003-08-26  Andrew Cagney  <cagney@redhat.com>
2456
2457         * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2458         in size.  Add comments.
2459
2460 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
2461
2462         * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2463         (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2464
2465 2003-08-26  Jason Merrill  <jason@redhat.com>
2466
2467         * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2468         case out of #ifdef MIPS block.
2469
2470 2003-08-25  Daniel Jacobowitz  <drow@mvista.com>
2471
2472         PR java/1322
2473         * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2474         available before calling SECT_OFF_TEXT.
2475         * PROBLEMS: Remove description of java/1322.
2476
2477 2003-08-25  Jeff Johnston  <jjohnstn@redhat.com>
2478
2479         * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2480         bof, and nat0-nat127 as pseudo-registers.
2481         (ia64_frame_cache): New struct used to cache frame info.
2482         (ia64_register_reggroup_p): New routine used to override default
2483         register grouping so registers without names are still saved and
2484         restored.
2485         (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2486         pseudo values.
2487         (ia64_pseudo_register_read): New routine to read pseudo-registers.
2488         (ia64_pseudo_register_write): New routine to write pseudo-registers.
2489         (ia64_alloc_frame_cache): New routine to create a new
2490         ia64_frame_cache.
2491         (examine_prologue): Change prototype to add next_frame pointer.
2492         Assume frameless until otherwise proven.  Verify that the cfm for
2493         current frame matches the cfm that should occur for the prologues
2494         alloc insn and if equal, mark as not frameless.  At end of routine,
2495         if not frameless, calculate registers for the previous frame and store
2496         in the cache, if a cache is provided.
2497         (ia64_skip_prologue):  Use new prototype when calling examine_prologue
2498         and pass 0 for next_frame.
2499         (ia64_store_return_value): Change to use convert_typed_floating()
2500         instead of calling ia64_convert_to_raw().
2501         (ia64_extract_return_value): Change to use convert_typed_floating()
2502         instead of calling ia64_convert_to_virtual().
2503         (ia64_frame_cache): New routine to support new frame model.
2504         (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2505         (ia64_frame_sniffer): Ditto.
2506         (ia64_sigtramp_frame_init_saved_regs): Ditto.
2507         (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2508         (ia64_sigtramp_frame_prev_register): Ditto.
2509         (ia64_sigtramp_frame_sniffer): Ditto.
2510         (ia64_frame_base_address): Ditto.
2511         (ia64_extract_struct_value_address): Change to issue error message.
2512         (ia64_frame_align): New routine to align sp.
2513         (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2514         (ia64_push_arguments): Removed.  Logic moved to
2515         ia64_push_dummy_call().
2516         (ia64_push_return_address): Ditto.
2517         (ia64_unwind_dummy_id): New function.
2518         (ia64_unwind_pc): Ditto.
2519         (ia64_convert_register_p): Ditto.
2520         (ia64_register_to_value): Ditto.
2521         (ia64_value_to_register): Ditto.
2522         (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2523         (ia64_register_byte, ia64_register_raw_size): Ditto.
2524         (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2525         (ia64_saved_pc_after_call): Ditto.
2526         (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2527         (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2528         (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2529         (ia64_register_convert_to_raw): Ditto.
2530         (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2531         (ia64_init_extra_frame_info): Ditto.
2532         (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2533         (ia64_gdbarch_init): Remove registering of deprecated functions that
2534         are no longer used.  Add registration of new gdbarch functions.
2535         Remove registering deprecated_write_sp.  Replace
2536         set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2537         Delete set_gdbarch_deprecated_register_convertible(),
2538         set_gdbarch_deprecated_register_convert_to_virtual(), and
2539         set_gdbarch_deprecated_register_convert_to_raw() calls.  Remove
2540         set_gdbarch_deprecated_register_size(),
2541         set_gdbarch_deprecated_register_bytes(),
2542         set_gdbarch_pcregnum(),
2543         set_gdbarch_deprecated_register_byte(),
2544         set_gdbarch_deprecated_register_raw_size(),
2545         set_gdbarch_deprecated_max_register_raw_size(),
2546         set_gdbarch_deprecated_register_virtual_size(),
2547         and set_gdbarch_deprecated_max_register_virtual_size() calls.
2548         Replace set_gdbarch_deprecated_extract_return_value() with
2549         set_gdbarch_extract_return_value().  Remove calls to:
2550         set_gdbarch_deprecated_saved_pc_after_call();
2551         set_gdbarch_deprecated_frame_chain(),
2552         set_gdbarch_deprecated_frame_saved_pc(),
2553         set_gdbarch_deprecated_frame_init_saved_regs(),
2554         set_gdbarch_deprecated_get_saved_register(),
2555         set_gdbarch_deprecated_call_dummy_words(),
2556         set_gdbarch_deprecated_sizeof_call_dummy_words(),
2557         set_gdbarch_deprecated_init_extra_frame_info(),
2558         set_gdbarch_deprecated_frame_args_address(),
2559         set_gdbarch_deprecated_frame_locals_address(),
2560         and set_gdbarch_deprecated_dummy_write_sp().
2561         Add set_gdbarch_convert_register_p(),
2562         set_gdbarch_register_to_value(),
2563         set_gdbarch_value_to_register(),
2564         set_gdbarch_push_dummy_call(),
2565         set_gdbarch_frame_align(),
2566         set_gdbarch_unwind_dummy_id(),
2567         set_gdbarch_unwind_pc(),
2568         frame_unwind_append_sniffer(),
2569         frame_unwind_append_sniffer(),
2570         and frame_base_set_default().
2571
2572 2003-08-25  Chris Demetriou  <cgd@broadcom.com>
2573
2574         * configure.tgt: Document need for special "mipsisa64" handling.
2575         (mipsisa64*-*-linux64): Handle as target linux64.
2576         (mipsisa64*-*-*): Handle as target embed64.
2577
2578 2003-08-18  Michael Chastain  <mec@shout.net>
2579
2580         * PROBLEMS: Document pr gdb/1322, the Java anonymous
2581         objfile bug.
2582
2583 2003-08-24  Mark Kettenis  <kettenis@gnu.org>
2584
2585         * i387-tdep.h: Update copyright date.
2586         (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2587
2588         * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2589         CFLAGS games to reflect reality.
2590
2591 2003-08-24  Andrew Cagney  <cagney@redhat.com>
2592
2593         * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2594         GDB_MULTI_ARCH is always non-zero.
2595         * osabi.c (_initialize_gdb_osabi): Ditto.
2596         (gdbarch_init_osabi): Ditto.
2597         * sparc-tdep.c: Ditto for #if code.
2598
2599 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
2600
2601         * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2602         Update comments.
2603         * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype.  Update
2604         comments.
2605         * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2606         x86_64_supply_fxsave.
2607         * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2608         x86_64_supply_fxsave.
2609         * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2610         x86_64_supply_fxsave.
2611
2612 2003-08-23  Andreas Jaeger  <aj@suse.de>
2613
2614         * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2615         i387_supply_fxsave.
2616
2617 2003-08-23  Mark Kettenis  <kettenis@gnu.org>
2618
2619         * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2620         i387_supply_register.
2621         (go32_fetch_registers): Adjust call to i387_supply_fsave.
2622         * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2623         i387_supply_fsave.
2624         (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2625         i387_supply_fxsave.
2626         * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2627         i387_supply_fsave.
2628         * i386bsd-nat.c (supply_fpregset): Adjust call to
2629         i387_supply_fsave.
2630         (fetch_inferior_registers): Remove extraneous whitespace.  Adjust
2631         call to i387_supply_fxsave.  Call i387_supply_fsave instead of
2632         supply_fpregset.
2633         (store_inferior_registers): Remove extraneous whitespace.  Call
2634         i387_fill_fsave instead of fill_fpregset.
2635         * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2636         (supply_fpregset): Likewise.
2637         * i386v4-nat.c (supply_fpregset): Adjust call to
2638         i387_supply_fsave.
2639         * i386-interix-nat.c (supply_fpregset): Adjust call to
2640         i387_supply_fsave.
2641         * i386-linux-nat.c (supply_fpregset): Adjust call to
2642         i387_supply_fsave.
2643         (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2644         * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2645         i387supply_fsave and i387_supply_fxsave.
2646         * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2647         Incorporate code from `i387_supply_register.
2648         (i387_supply_register): Remove.
2649         (i387_supply_fxsave): Add `regnum' argument.
2650         Update comments.
2651         * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2652         prototype.
2653         (i387_supply_register): remove prototype.
2654         Update comments.
2655
2656 2003-08-22  Michael Chastain  <mec@shout.net>
2657
2658         * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2659         Add lines for files in gdb/testsuite/gdb.cp/* that are
2660         still not 8.3 unique.
2661
2662 2003-08-22  Daniel Jacobowitz  <drow@mvista.com>
2663
2664         * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2665         TYPE_VPTR_FIELDNO is valid.
2666
2667 2003-08-19  Mark Kettenis  <kettenis@gnu.org>
2668
2669         * utils.c (set_width_command): Remove prototypes.
2670         (set_screen_size): New prototype.
2671         (init_page_info): Simplify by fetching the screen size from
2672         Readline.  Call set_screen_size.
2673         (set_screen_size): New function.
2674         (set_width): Add missing whitespace in comment.
2675         (set_width_command): Call set_screen_size.
2676         (set_height_command): New function.
2677         (initialize_utils): Fix formatting.  Make "set height" command
2678         call set_height_command.  Remove redundant code that turns off
2679         pagination if output isn't a terminal.  Remove redundant call to
2680         set_width_command.
2681
2682 2003-08-22  Mark Kettenis  <kettenis@gnu.org>
2683
2684         * sparc64-tdep.h (sparc64_regnum): Fix comment.
2685         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2686         (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2687         * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2688         `case' keyword.
2689         (sparc64_register_info): Give the reister with number
2690         SPARC64_STATE_REGNUM a name.
2691         (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2692         %asi and %ccr.
2693         (sparc64_push_dummy_call): Take BIAS into account when checking
2694         stcak alignment.
2695         (sparc_software_single_step): Remove assertions that check whether
2696         NPC and NNPC were zero.
2697         (sparc_supply_rwindow): Make public.  Merge functionality with
2698         sparc64_supply_rwindow.
2699         (sparc_fill_rwindow): Make public.  Merge functionality with
2700         sparc64_fill_rwindow.
2701         (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2702         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2703         SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2704         * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2705         sparc_supply_rwindow instead of sparc64_supply_rwindow.
2706
2707         * reggroups.c: Add whitespace after declarations of local
2708         variables in functions.
2709
2710 2003-08-21  Michael Chastain  <mec@shout.net>
2711
2712         * gdbtypes.h: Change array bound type from an int to enum.
2713
2714 2003-08-21  Andrew Cagney  <cagney@redhat.com>
2715
2716         * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2717         * config/sparc/tm-sparc.h: Ditto.
2718         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2719         unconditionally.
2720         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2721
2722 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
2723
2724         * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2725         (register_objfile_data, set_objfile_data, objfile_data): New
2726         prototypes.
2727         * objfiles.c (objfile_alloc_data, objfile_free_data): New
2728         prototypes.
2729         (allocate_objfile): Call objfile_alloc_data.
2730         (free_objfile): Call objfile_free_data.
2731         (struct objfile_data): New.
2732         (struct objfile_data_registration): New.
2733         (struct objfile_data_registry): New.
2734         (objfile_data_registry): New variable.
2735         (register_objfile_data): New function.
2736         (objfile_alloc_data, objfile_free_data): New functions.
2737         (set_objfile_data, objfile_data): New functions.
2738         * dwarf2-frame.c (dwarf2_frame_data): New variable.
2739         (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2740         (_initialize_dwarf2_frame): New function and prototype.
2741
2742 2003-08-21  Andrew Cagney  <cagney@redhat.com>
2743
2744         * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2745         a specific architecture.
2746         * arch-utils.h (set_architecture_from_arch_mach): Delete
2747         declaration.
2748         (target_architecture_hook): Delete declaration.
2749         * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2750         (default_float_format): Assume GDB_MULTI_ARCH.
2751         (default_double_format): Assume GDB_MULTI_ARCH.
2752         (set_endian_from_file): Delete function.
2753         (arch_ok): Delete function.
2754         (set_arch): Delete function.
2755         (set_architecture_from_arch_mach): Delete function.
2756         (set_architecture_from_file): Delete function.
2757         (set_architecture): Assume GDB_MULTI_ARCH.
2758         (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2759
2760 2003-08-21  Mark Kettenis  <kettenis@gnu.org>
2761
2762         Rewrite FreeBSD/sparc64 native configuration.
2763         * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2764         * sparc64fbsd-nat.c: New file.
2765         * sparc64fbsd-tdep.c: New file.
2766         * sparc64-tdep.c sparc64-tdep.h: New files.
2767         * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2768         sparc64fbsd-tdep.o): New dependencies.
2769         (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2770         and sparc64fbsd-tdep.c.
2771         (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2772         * config/sparc/fbsd.mh: Remove copyright notice.
2773         (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2774         sparcbsd-nat.o.
2775         * config/sparc/fbsd.mt: Remove copyright notice.
2776         (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2777         solib-legacy.o.  Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2778         * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2779         (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2780         PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2781         regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2782         fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2783         * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2784         "sparc/tm-sp64.h".
2785         (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2786         (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2787
2788 2003-08-21  Michael Chastain  <mec@shout.net>
2789
2790         * symtab.h: Add doco on the space critical structures and
2791         some measurements of space usage.
2792
2793 2003-08-21  Michael Snyder  <msnyder@redhat.com>
2794
2795         * tracepoint.c (trace_dump_command): Trace break address
2796         is subject to DECR_PC_AFTER_BREAK.
2797         (set_traceframe_context): Make "trace_line" an int.
2798         Fixes suggested by Mark Newman  <mark.newman@lmco.com>
2799
2800 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2801
2802         * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2803         * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2804         FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2805         argument passing.
2806         (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2807         functions, replace sh_push_dummy_call.
2808         (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2809
2810 2003-08-20  Michael Chastain  <mec@shout.net>
2811
2812         * gdbtypes.h (struct main_type): Rearrange to save space.
2813
2814 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2815
2816         * trad-frame.c: Comment typo fix.
2817
2818 2003-08-20  Michael Snyder  <msnyder@redhat.com>
2819             Kevin Buettner  <kevinb@redhat.com>
2820
2821         * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2822         (frv_frame_init_saved_regs): Add declaration.
2823         (frame_extra_info): Add new field ``saved_regs''.
2824         (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2825         (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2826         Update frame related code.
2827         (frv_extract_struct_value_address): Adjust formatting.
2828         * Makefile.in (frv-tdep.o): Update dependencies.
2829         * config/frv/tm-frv.h (target_insert_watchpoint)
2830         (target_remove_watchpoint, target_insert_hw_breakpoint)
2831         (target_remove_hw_breakpoint): Delete these macros.
2832         (remote_insert_watchpoint, remote_remove_watchpoint)
2833         (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2834         these declarations.
2835
2836 2003-08-20  Michael Chastain  <mec@shout.net>
2837
2838         * defs.h (ENUM_BITFIELD): New macro.
2839         * symtab.h (ENUM_BITFIELD): Use it.
2840         (BYTE_BITFIELD): Remove old macro, which was already disabled.
2841
2842 2003-08-19  Shrinivas Atre <shrinivasa@kpitcummins.com>
2843
2844         * MAINTAINERS (write after approval): Add myself.
2845
2846 2003-08-18  Andrew Cagney  <cagney@redhat.com>
2847
2848         * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2849         * gdbarch.h, gdbarch.c: Re-generate.
2850         * infcall.c (call_function_by_hand): Adjust the SP by
2851         frame_red_zone_size before allocating any stack space.
2852         * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2853         * x86-64-tdep.c (x86_64_frame_align): New function.
2854         (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2855
2856         * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2857         Remove code adjusting SP so that it skips over the Red Zone.
2858
2859 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2860
2861         * NEWS (New native configurations): Mention FreeBSD/amd64.
2862
2863 2003-08-18  Andrew Cagney  <cagney@redhat.com>
2864
2865         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2866         "dwarf2_build_frame_info".  Append "m68k_frame_sniffer" instead of
2867         "m68k_frame_p".
2868         (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2869
2870 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2871
2872         * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2873
2874 2003-08-18  Michal Ludvig  <mludvig@suse.cz>
2875
2876         * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2877         Define.
2878         * i386-linux-nat.c: Include "linux-nat.h".
2879         (child_post_startup_inferior): New function.
2880
2881 2003-08-18  Mark Kettenis  <kettenis@gnu.org>
2882
2883         * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2884         at the start of a frameless function.  This probably fixes PR
2885         backtrace/1338.
2886
2887 2003-08-17  Michael Chastain  <mec@shout.net>
2888
2889         * symfile.c (find_sym_fns): Remove special case for apollo target.
2890
2891 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2892
2893         * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2894         (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2895         (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2896         (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2897         (linux_supports_tracevforkdone): New function.
2898         (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2899         TRACEVFORKDONE.
2900         (child_follow_fork): Handle vfork.
2901         (linux_handle_extended_wait): Likewise.  Also handle exec.
2902         (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2903         * NEWS: Mention fork tracing.
2904
2905 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2906
2907         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2908
2909 2003-08-17  Daniel Jacobowitz  <drow@mvista.com>
2910
2911         * Makefile.in (i386-linux-nat.o): Update dependencies.
2912         * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2913         * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2914         (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2915         * i386-linux-nat.c: Include "linux-nat.h".
2916         (child_post_startup_inferior): New function.
2917         * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2918         * infptrace.c (kill_inferior): Wrap in #ifdef.
2919         * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2920         attaching to each LWP.
2921         (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2922         (init_lin_lwp_ops): Fill in some more operations.
2923         * linux-nat.h (linux_enable_event_reporting)
2924         (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2925         prototypes.
2926         * linux-nat.c (linux_enable_event_reporting): New function.
2927         (child_post_attach, linux_child_post_startup_inferior)
2928         (child_post_startup_inferior, child_follow_fork)
2929         (linux_handle_extended_wait, kill_inferior): New functions.
2930
2931 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2932
2933         * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2934         * gdbarch.h, gdbarch.c: Re-generate.
2935
2936 2003-08-16  Mark Kettenis  <kettenis@gnu.org>
2937
2938         * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2939
2940 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2941
2942         * NEWS: Mention that "set prompt-escape-char" was deleted.
2943         * top.c (get_prompt_1): Delete function.
2944         (gdb_prompt_escape):
2945         (init_main): Do not clear "gdb_prompt_escape".  Delete "set
2946         prompt-escape-char" command.
2947         (MAX_PROMPT_SIZE): Delete macro.
2948         (get_prompt): Simplify, do not call get_prompt_1.
2949
2950 2003-08-16  Andrew Cagney  <cagney@redhat.com>
2951
2952         * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2953         -Werror.  -Wformat-nonliteral problems.
2954
2955 2003-08-15  J. Brobecker  <brobecker@gnat.com>
2956
2957         Further multiarching work mostly for hppa64-*-hpux11:
2958         * hppa-tdep.h: New file.
2959         * hppa-tdep.c: #include hppa-tdep.c.
2960         (hppa32_num_regs): Renamed from hppa_num_regs.
2961         (hppa64_num_regs): New constant.
2962         (hppa64_call_dummy_breakpoint_offset): New constant.
2963         (hppa32_call_dummy_length): New constant.
2964         (hppa64_call_dummy_length): New constant.
2965         (hppa32_stack_align): Make name 32bit explicit.
2966         (hppa32_register_virtual_type): Likewise.
2967         (hppa32_extract_return_value): Likewise.
2968         (hppa32_use_struct_convention): Likewise.
2969         (hppa32_store_return_value): Likewise.
2970         (hppa64_register_virtual_type): New function.
2971         (hppa64_extract_return_value): New function.
2972         (hppa64_use_struct_convention): New function.
2973         (hppa64_store_return_value): New function.
2974         (hppa_frame_locals_address): Remove declaration, function does
2975         not exist anymore.
2976         (hppa_register_byte): Add support for PA64 ABI.
2977         (hppa_gdbarch_init): Add support for PA64 ABI.
2978         * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2979         Make name 32bit explicit.
2980         (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2981         (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2982         (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2983         (hppa64_hpux_frame_base_before_sigtramp): New function.
2984         (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2985         * config/pa/tm-hppa64.h: Remove macros that are no longer
2986         necessary now that the gdbarch vector is properly setup.
2987         Transform some macros into function calls. Some minor cleanup.
2988         * config/pa/tm-hppah.h: Update function calls in macros
2989         following the function renaming in hppa-hpux-tdep.c.
2990         * Makefile.in (hppa_tdep_h): New variable.
2991         (hppa-tdep.o): Add dependency over hppa_tdep_h.
2992
2993 2003-08-14  Michael Snyder  <msnyder@redhat.com>
2994
2995         * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2996
2997 2003-08-13  J. Brobecker  <brobecker@gnat.com>
2998
2999         * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
3000         bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
3001         routine.
3002
3003 2003-08-13  Michael Snyder  <msnyder@redhat.com>
3004
3005         * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
3006         (frv_saved_pc_after_call): Use deprecated ftype.
3007         (stupid_useless_init_extra_frame_info): Remove orphan prototype.
3008         (frv_remote_translate_xfer_address): Remove.
3009         (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
3010
3011 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3012
3013         * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3014         initialization after the common gdbarch initialization, not before.
3015
3016 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3017
3018         * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3019         (ADDR_BITS_REMOVE): Remove, redundant.
3020
3021 2003-08-13  J. Brobecker  <brobecker@gnat.com>
3022
3023         * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3024         gdbarch method to clear the 2 low bits of text addresses.
3025
3026 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3027
3028         * Makefile.in (dsrec.o): Update dependencies.
3029         * dsrec.c: Include "gdb_assert.h".
3030         (make_srec): Use snprintf instead of sprintf, use a literal format
3031         string.
3032
3033 2003-08-12  Andrew Cagney  <cagney@redhat.com>
3034
3035         * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3036         FRAME_OBSTACK_ZALLOC.
3037
3038 2003-08-12  Kevin Buettner  <kevinb@redhat.com>
3039
3040         * i386-tdep.c (i386_gdbarch_init): Enable default support for
3041         SSE registers.
3042
3043 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3044
3045         * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3046         amd64fbsd_sc_reg_offset): Add extern declarations.
3047         * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3048         declarations.
3049
3050 2003-08-11  Ben Elliston  <bje@wasabisystems.com>
3051
3052         * MAINTAINERS (write after approval): Update my mail address.
3053
3054 2003-08-10  Andrew Cagney  <cagney@redhat.com>
3055
3056         * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3057
3058 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3059
3060         * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3061         i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3062         i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3063         i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3064         i386bsd_sc_reg_offset): Add extern declarations.
3065         * i386obsd-nat.c: Include "i386-tdep.h"
3066         (_initialize_i386obsd_nat): Remove extern declarations.
3067         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3068         declarations.
3069         * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3070         declarations.
3071
3072         * i386-tdep.c (i386_register_to_value): Use get_frame_register
3073         instead of frame_read_register.
3074         (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3075         instead of frame_read_register.  Use I386_ESP_REGNUM instead of
3076         SP_REGNUM.
3077         (i386_frame_prev_register): Use frame_unwind_register_unsigned
3078         instead of frame_unwind_unsigned_register.  Use
3079         I386_EFLAGS_REGISTER instead of PS_REGNUM.
3080         (i386_get_longjmp_target): Use regcache_read_unsigned_register
3081         instead of read_register.  Use builtin_type_void_data_ptr instead
3082         of builtin_type_void_func_ptr when extracting the address of the
3083         jmp_buf.
3084         (i386_extract_return_value, i386_store_return_value,
3085         i386_pseudo_register_read, i386_pseudo_register_write): Use
3086         register_size instead REGISTER_RAW_SIZE.
3087
3088 2003-08-10  Andrew Cagney  <cagney@redhat.com>
3089
3090         * infcall.c (call_function_by_hand): Use xstrprintf instead of
3091         sprintf.  Make "name" constant.
3092
3093 2003-08-10  Mark Kettenis  <kettenis@gnu.org>
3094
3095         * i387-tdep.c (i387_register_to_value): Use get_frame_register
3096         instead of frame_read_register.
3097         (i387_print_float_info): Use get_frame_register and
3098         get_frame_register_unsigned instead of frame_register_read.
3099
3100         * i386fbsd-nat.c: Include "i386-tdep.h".
3101         (child_resume): Make `eflags' an ULONGEST.  Use
3102         regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3103         instead of register_read and register_write.
3104
3105         * i386bsd-nat.c (fetch_inferior_registers,
3106         store_inferior_registers): Don't use && at the end of a line.
3107         (_initialize_i386bsd_nat): Fix typo.
3108
3109         * frame.c (_initialize_frame): Add missing backslash.
3110
3111         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3112         * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3113         and supply_register instead of manipulating the register buffer
3114         directly.
3115
3116         From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3117         * config/i386/nm-i386sol2.h
3118         (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3119
3120         Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3121         * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3122         instructions that GCC likes to mingle into the prologue.  Fixes
3123         gdb/1253 and gdb/1255.
3124
3125 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3126
3127         Fix GDB PR cli/926.
3128         * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3129         * command.h (add_setshow_uinteger_cmd): Declare.
3130         * frame.c (set_backtrace_cmd): New function.
3131         (show_backtrace_cmd): New function.
3132         * frame.c (_initialize_frame): Replace "set/show
3133         backtrace-below-main" with "set/show backtrace past-main".  Add
3134         command "set/show backtrace limit".
3135         (backtrace_past_main): Rename "backtrace_below_main".
3136         (backtrace_limit): New variable.
3137         (get_prev_frame): Update.  Check the backtrace_limit.
3138
3139 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3140
3141         * defs.h (xstrprintf): Declare.
3142         * utils.c (xstrprintf): New function.
3143         * breakpoint.c (insert_breakpoints): Replace sprintf and
3144         non-literal format strings, with xstrprintf and cleanups.
3145         (delete_breakpoint,breakpoint_re_set): Ditto.
3146         (commands_command, insert_breakpoints): Ditto.
3147         (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3148         (break_at_finish_command_1): Ditto.
3149
3150 2003-08-09  Andrew Cagney  <cagney@redhat.com>
3151
3152         * MAINTAINERS (language support): List Adam Fedor as Objective C
3153         maintainer.
3154
3155 2003-08-08  J. Brobecker  <brobecker@gnat.com>
3156
3157         * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3158         are now multiarched.
3159
3160 2003-08-08  J. Brobecker  <brobecker@gnat.com>
3161
3162         * config/pa/tm-hppa64.h: Remove lots of macros that are no
3163         longer necessary now that hppa64 is partially multiarch'ed.
3164
3165 2003-08-08  Andrew Cagney  <cagney@redhat.com>
3166
3167         * interps.c (interp_set): Check for a NULL "old_interp".
3168
3169 2003-08-08  H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3172         (install-only): Support DESTDIR.
3173         (uninstall): Likewise.
3174         (install-gdbtk): Likewise.
3175
3176 2003-08-08  Elena Zannoni  <ezannoni@redhat.com>
3177
3178         * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3179         contains something meaningful at all times.
3180
3181 Fri Aug  8 00:28:46 UTC 2003  Brendan Conoboy  <blc@redhat.com>
3182
3183         * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3184
3185 Fri Aug  8 00:28:38 UTC 2003  Brendan Conoboy  <blc@redhat.com>
3186
3187         * MAINTAINERS (write after approval): Added self.
3188
3189 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3190
3191         * inferior.h (AT_SYMBOL): Define.
3192         * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3193         * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3194         * mips-tdep.c (mips_call_dummy_address): Delete function.
3195         (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3196         set call_dummy_address.
3197
3198 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3199
3200         * language.c (op_error): Delete function.
3201         (binop_type_check): Delete function.
3202         * language.h (type_op_error, range_op_error): Delete macros.
3203         (op_error): Delete declaration.
3204
3205 2003-08-07  Andrew Cagney  <cagney@redhat.com>
3206
3207         * interps.h (INTERP_MI2, INTERP_MI3): Define.
3208
3209 2003-08-07  Michal Ludvig  <mludvig@suse.cz>
3210
3211         * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3212         (x86_64_push_arguments): Skip the red zone.
3213
3214 2003-08-05  Andrew Cagney  <cagney@redhat.com>
3215
3216         * reggroups.c (reggroup_next): Check for the final entry.
3217
3218 2003-08-04  Andrew Cagney  <cagney@redhat.com>
3219
3220         * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3221         * cli/cli-script.c (define_command): Call query directly, instead
3222         of passing it a buffer.
3223         * ocd.c (ocd_error): Pass error a constant format string.
3224         * remote-mips.c (mips_error): Use fputs_filtered.
3225
3226         * solib-svr4.c (_initialize_svr4_solib): Update
3227         register_gdbarch_data call.
3228         * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3229
3230         * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3231         (register_gdbarch_data): Delete "free" parameter.  Update
3232         comments.
3233         * gdbarch.h, gdbarch.c: Re-generate.
3234         * reggroups.c (_initialize_reggroup): Update.
3235         * gnu-v3-abi.c (init_gnuv3_ops): Update.
3236         * frame-base.c (_initialize_frame_base): Update.
3237         * frame-unwind.c (_initialize_frame_unwind): Update.
3238         * user-regs.c (_initialize_user_regs): Update.
3239         * remote.c (_initialize_remote): Update.
3240         * regcache.c (_initialize_regcache): Update.
3241
3242         * regcache.c (xfree_regcache_descr): Delete function.
3243         (_initialize_regcache): Update call to register_gdbarch_data.
3244         (init_regcache_descr, init_legacy_regcache_descr): Use
3245         GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3246
3247         * remote.c (free_remote_state): Delete function.
3248         (_initialize_remote): Update register_gdbarch_data.
3249         (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3250         GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3251
3252 2003-08-04  Andrew Cagney  <cagney@redhat.com>
3253
3254         * reggroups.c (struct reggroup_el): Define.
3255         (struct reggroups): Delete field "nr_group".  Replace array
3256         "group" with a "first" to "last" linked list.
3257         (reggroups_init): Update.  Allocate using gdbarch's obstack.
3258         (reggroups_free): Delete function.
3259         (add_group): Update.  Add "el" parameter.
3260         (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3261         (default_groups): Update.
3262         (reggroup_next): Replace reggroups.
3263         (reggroups_dump): Update.
3264         (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3265         * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3266         * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3267
3268 2003-08-04  Daniel Jacobowitz  <drow@mvista.com>
3269
3270         * Makefile.in (tui-interp.o): Update dependencies.
3271
3272 2003-08-04  David Carlton  <carlton@kealia.com>
3273
3274         * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3275         to internal_error call.
3276         * source.c (forward_search_command): Add "%s" format argument.
3277         (reverse_search_command): Ditto.
3278         * top.c (quit_confirm): Ditto.
3279         * cli/cli-setshow.c (do_setshow_command): Ditto.
3280         * cp-valprint.c (cp_print_class_method): Replace
3281         {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3282         (cp_print_class_member): Ditto.
3283         * event-top.c (command_line_handler): Ditto.
3284         * linux-proc.c (linux_info_proc_cmd): Ditto.
3285         * p-typeprint.c (pascal_type_print_base): Ditto.
3286         * p-valprint.c (pascal_object_print_class_method): Ditto.
3287         (pascal_object_print_class_member): Ditto.
3288         * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3289         * remote.c (remote_cisco_section_offsets): Ditto.
3290         * top.c (command_line_input): Ditto.
3291         * utils.c (vwarning,error_stream,quit): Ditto.
3292         * valprint.c (print_floating,print_binary_chars)
3293         (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3294
3295 2003-08-04  Andrew Cagney  <cagney@redhat.com>
3296
3297         * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3298
3299 2003-08-02  Andrew Cagney  <cagney@redhat.com>
3300
3301         * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3302         gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3303         amd64fbsd-nat.c.
3304
3305 2003-08-02  Andrew Cagney  <cagney@redhat.com>
3306
3307         * Makefile.in: Update all dependencies and definitions.
3308
3309 2003-08-02  Adam Fedor  <fedor@gnu.org>
3310
3311         * linespec.c (is_objc_method_format): New function
3312         (decode_line_1, locate_first_half): Use it.
3313         Fixes PR objc/1298
3314
3315 2003-08-01  Andrew Cagney  <cagney@redhat.com>
3316
3317         * NEWS: Mention that m32r is multi-arch.
3318         From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3319         * configure.tgt: Recognize m32r-*-*.
3320         * config/m32r/tm-m32r.h: Delete file.
3321         * config/m32r/m32r.mt: New file.
3322         * m32r-rom.c (m32r_upload_command): Use hostent only when
3323         gethostname succeeds, in order to avoid a compilation
3324         warning.
3325         * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3326         compiler warning.
3327
3328 2003-08-01  Michael Snyder  <msnyder@redhat.com>
3329
3330         * sh-tdep.c (sh_frame_align): New gdbarch method.
3331         (sh_gdbarch_init): Set up frame_align method.
3332
3333 2003-07-31  Michael Snyder  <msnyder@redhat.com>
3334
3335         * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3336         which is already covered by the new frames infrastructure.
3337
3338 2003-07-31  Andrew Cagney  <cagney@redhat.com>
3339
3340         * user-regs.c (struct user_reg): Add "next" link.
3341         (struct user_regs): Replace "user" with "first" and "last" links.
3342         (append_user_reg): Add pre-allocated "reg" parameter.
3343         (builtin_user_regs): Provide initial value for "last".
3344         (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3345         (user_regs_init): Allocate memory from the gdbarch obstack.
3346         (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3347         (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3348         linked list.
3349         (usernum_to_user_reg): New function.
3350         (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3351         (value_of_user_reg): Use usernum_to_user_reg.
3352         (user_regs_free): Delete function.
3353         (_initialize_user_regs): Update register_gdbarch_data call.
3354
3355 2003-07-31  Daniel Jacobowitz  <drow@mvista.com>
3356
3357         * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3358
3359 2003-07-30  Michael Snyder  <msnyder@redhat.com>
3360
3361         * value.h (value_being_returned): Add a struct_addr argument.
3362         * infcall.c (call_function_by_hand): Pass struct_addr to
3363         value_being_returned.
3364         * infcmd.c (print_return_value): Pass zero as struct_addr.
3365         * values.c (value_being_returned): If struct_addr is passed,
3366         use it instead of trying to recover it from the inferior.
3367
3368 2003-07-30  Kevin Buettner  <kevinb@redhat.com>
3369
3370         * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3371         the prologue analyzer won't need to attempt to extract the pc
3372         value from the woefully incomplete dummy frame.
3373         (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3374         possible.  Disable code which modifies the frame.
3375
3376 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3377
3378         * annotate.c (annotate_breakpoints_headers): Restrict annotation
3379         to level 2.
3380         (annotate_breakpoints_table, annotate_record): Ditto.
3381         (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3382         (annotate_field_name_end, annotate_field_value): Ditto.
3383         (annotate_field_end, annotate_frame_source_begin): Ditto.
3384         (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3385         (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3386         (annotate_frame_begin, annotate_frame_function_name): Ditto.
3387         (annotate_frame_address_end, annotate_frame_address): Ditto.
3388         (annotate_frame_args, annotate_frame_end): Ditto.
3389         (annotate_frame_where, annotate_arg_begin): Ditto.
3390         (annotate_arg_name_end, annotate_arg_value): Ditto.
3391         (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3392         (annotate_function_call, annotate_signal_name): Ditto.
3393         (annotate_signal_string, annotate_signal_name_end): Ditto.
3394         (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3395         (annotate_value_begin, annotate_value_history_value): Ditto.
3396         (annotate_value_history_end, annotate_value_end): Ditto.
3397         (annotate_display_begin, annotate_display_number_end): Ditto.
3398         (annotate_display_format, annotate_display_expression): Ditto.
3399         (annotate_display_expression_end, annotate_display_value): Ditto.
3400         (annotate_display_end, annotate_array_section_begin): Ditto.
3401         (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3402         (annotate_elt, annotate_array_section_end): Ditto.
3403
3404 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3405
3406         * regcache.c (struct regcache_descr): Update comments on
3407         nr_raw_registers.
3408         (init_legacy_regcache_descr): Don't set nr_raw_registers or
3409         sizeof_raw_register_valid_p.
3410         (init_regcache_descr): Set nr_raw_registers and
3411         sizeof_raw_register_valid_p before calling
3412         init_legacy_regcache_descr.
3413
3414 2003-07-28  Andrew Cagney  <cagney@redhat.com>
3415
3416         * mips-tdep.c (print_gp_register_row): Print the GPR's register
3417         MOD NUM_REGS.
3418
3419 2003-07-28  Daniel Jacobowitz  <drow@mvista.com>
3420
3421         * thread.c (info_threads_command): Use get_selected_frame ().
3422         Check that there is at least one non-sentinel frame.
3423
3424 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3425
3426         * m68hc11-tdep.c (struct frame_extra_info): Remove.
3427         (m68hc11_pop_frame): Remove.
3428         (m68hc11_frame_saved_pc): Remove.
3429         (m68hc11_frame_chain): Remove.
3430         (m68hc11_frame_init_saved_regs): Remove.
3431         (m68hc11_init_extra_frame_info): Remove.
3432         (m68hc11_store_struct_return): Remove.
3433         (m68hc11_saved_pc_after_call): Remove.
3434
3435 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3436
3437         * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3438         frame unwind information.
3439         (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3440         and adapted for frame unwinding.
3441         (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3442         (m68hc11_unwind_pc): New function.
3443         (m68hc11_frame_unwind_cache): New function to analyze frames.
3444         (m68hc11_frame_this_id): New function to create new frame struct.
3445         (m68hc11_frame_prev_register): New function to unwind a register from
3446         the frame.
3447         (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3448         (m68hc11_frame_p): New function for the above.
3449         (m68hc11_frame_base_address): New function to return fp of frame.
3450         (m68hc11_frame_args_address): Update for frame.
3451         (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3452         (m68hc11_unwind_sp): New function.
3453         (m68hc11_unwind_dummy_id): New function.
3454         (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3455         calls.
3456
3457 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3458
3459         * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3460         (m68hc11_guess_from_prologue): Advance the pc and frame size only
3461         when we are beyond the current pc.
3462
3463 2003-07-27  Stephane Carrez  <stcarrez@nerim.fr>
3464
3465         * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3466         from m68hc11_push_arguments.
3467         (m68hc11_push_arguments): Remove.
3468         (m68hc11_push_return_address): Remove.
3469         (m68hc11_gdbarch_init): Install the above; remove above deprecated
3470         handlers; remove deprecated_extra_stack_alignment_needed.
3471
3472 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3473
3474         * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3475         * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3476         REAL_PC and not the pointer.
3477         * hppa-hpux-tdep.c: Include frame.h
3478
3479 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3480
3481         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3482         GDB_MULTI_ACH_PARTIAL.
3483
3484 2003-07-27  Andrew Cagney  <cagney@redhat.com>
3485
3486         Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3487         * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3488         operator at start and not end of line.
3489         (decode_prologue): Ditto.
3490         (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3491         frame_unwind_register_unsigned instead of
3492         frame_unwind_unsigned_register.
3493         (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3494         read_register.
3495         (m32r_push_dummy_call): Use register_size instead of
3496         REGISTER_RAW_SIZE.
3497         (m32r_frame_sniffer): Replace m32r_frame_p.
3498         (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3499         * m32r-rom.c (report_transfer_performance): Delete extern
3500         declaration.
3501         (m32r_load, m32r_upload_command): Use print_transfer_performance
3502         instead of report_transfer_performance.
3503         (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3504         / add_show_from_set.
3505
3506 2003-07-26  Andrew Cagney  <cagney@redhat.com>
3507
3508         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3509         store_return_value and extract_struct_value_address.
3510
3511 2003-07-26  Daniel Jacobowitz  <drow@mvista.com>
3512
3513         PR c++/1267
3514         * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3515         NULL, default to the section containing PC.
3516
3517 2003-07-24  Stephane Carrez  <stcarrez@nerim.fr>
3518
3519         * NEWS: Mention "regs" deprecated for m68hc11 too.
3520
3521         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3522         (m68hc11_print_register): New function to print out one register.
3523         (m68hc11_print_registers_info): New function to print registers.
3524         (show_regs): Deprecate and use the above.
3525         (m68hc11_gdbarch_init): Install the print_registers_info.
3526
3527 2003-07-24  Jeff Johnston  <jjohnstn@redhat.com>
3528
3529         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3530         that we have a SIGTRAP before returning non-zero.
3531
3532 2003-07-23  Michal Ludvig  <mludvig@suse.cz>
3533             Elena Zannoni  <ezannoni@redhat.com>
3534
3535         * linespec.c (decode_line_2): Avoid crash if
3536         find_function_start_sal() returns empty record.
3537
3538 2003-07-23  Andreas Schwab  <schwab@suse.de>
3539
3540         * ia64-tdep.c (ia64_print_insn): New function.
3541         (ia64_gdbarch_init): Set print_insn to it.
3542         (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3543         deprecated_tm_print_insn_info.
3544
3545 2003-07-22  Michael Snyder  <msnyder@redhat.com>
3546
3547         * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3548         handle 8-bit returns (long long).
3549         (h8300h_extract_return_value): Ditto.
3550         (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3551
3552 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3553
3554         * gdbarch.c Include "gdb_obstack.h".
3555         (struct gdbarch): Add an "obstack".
3556         (alloc_gdbarch_data): Allocate the gdbarch data using
3557         GDBARCH_OBSTACK_CALLOC.
3558         (free_gdbarch_data): Delete function.
3559         (gdbarch_obstack_zalloc): New function.
3560         (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3561         Assert that the architecture is not initialized.
3562         (gdbarch_alloc): Allocate an obstack, allocate the architecture
3563         vector from the obstack.
3564         (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3565         architecture obstack.
3566         (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3567         (set_gdbarch_data): Assert that the data is not initialized.
3568         (struct gdbarch_data): Delete member "free".
3569         (register_gdbarch_data): Do not initialize "free".
3570         * gdbarch.h, gdbarch.c: Re-generate.
3571
3572 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3573
3574         * configure.in (build_warnings): Add -Wformat-nonliteral.
3575         * configure: Re-generate.
3576
3577 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
3578
3579         * dwarf2loc.c (locexpr_describe_location): Fix typos.
3580
3581 2003-07-22  Elena Zannoni  <ezannoni@redhat.com>
3582
3583         * findvar.c (read_var_value): Remove case for thread local storage
3584         variables.  It is now entirely handled by the dwarf2 location
3585         expression code.
3586         * printcmd.c (address_info): Ditto.
3587         * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3588         enumeration value.
3589         (struct symbol): Remove objfile field, which was used by
3590         LOC_THREAD_LOCAL_STATIC only.
3591         * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3592         * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3593         usage of objfile pointer.
3594         * dwarf2loc.c (locexpr_describe_location): Add case to handle
3595         thread local variables.
3596         Add include of objfiles.h.
3597         * dwarf2expr.c (execute_stack_op): Add comments about thread local
3598         storage variables.
3599         * Makefile.in (dwarf2loc.o): Update dependencies.
3600
3601 2003-07-22  Andrew Cagney  <cagney@redhat.com>
3602
3603         * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3604         get_frame_base.
3605         (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3606         (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3607         (struct value): Add opaque declaration.
3608         (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3609
3610 2003-07-21  Andrew Cagney  <cagney@redhat.com>
3611
3612         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3613         * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3614
3615 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
3616
3617         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3618         regcache_cooked_read_unsigned instead of read_register.
3619         (m68hc11_saved_pc_after_call): Likewise.
3620         (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3621         instead of write_register.
3622         (m68hc11_register_type): New function.
3623         (m68hc11_register_virtual_type): Remove.
3624         (m68hc11_store_return_value): Convert to use the regcache.
3625         (m68hc11_extract_struct_value_address): Likewise.
3626         (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3627         m68hc11_register_type; undeprecate store_return_value and
3628         extract_struct_value_address.
3629
3630 2003-07-20  Stephane Carrez  <stcarrez@nerim.fr>
3631
3632         * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3633         and translate to use regcache.
3634         (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3635
3636 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3637
3638         * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3639         * gdbarch.h, gdbarch.c: Re-generate.
3640         * i386-tdep.c (i386_gdbarch_init): Do not set
3641         DWARF2_BUILD_FRAME_INFO.
3642         * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3643         unconditionally.
3644         * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3645         DWARF2_BUILD_FRAME_INFO.
3646
3647 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3648
3649         From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3650         * disasm.c (gdb_disassemble_info): Initilize di.arch.
3651
3652 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3653
3654         * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3655         frame_unwind_address_in_block, instead of frame_pc_unwind.
3656         (dwarf2_frame_cache): Ditto.
3657
3658 2003-07-18  Andrew Cagney  <cagney@redhat.com>
3659
3660         * user-regs.h (struct gdbarch): Declare opaque.
3661         * ui-out.h (struct ui_file): Declare opaque.
3662         * dwarf2-frame.h (struct frame_info): Declare opaque.
3663
3664 2003-07-18  Kris Warkentin  <kewarken@qnx.com>
3665
3666         * nto-procfs.c: Clean ARI hits.  Change #include <..> to
3667         #include "...".
3668         (procfs_meminfo): Change strerror to safe_strerror.
3669         (procfs_can_run): Remove K&R badness.
3670
3671 2003-07-17  Michael Snyder  <msnyder@redhat.com>
3672
3673         * remote-sim.c: Comment typo fix.
3674
3675 2003-07-17  Andrew Cagney  <cagney@redhat.com>
3676
3677         * defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
3678         configure.
3679         * sparc-tdep.c (sparc_intreg_size): Make non-static.
3680         * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3681         GDB_MULTI_ARCH_PARTIAL.
3682
3683 2003-07-17  Elena Zannoni  <ezannoni@redhat.com>
3684
3685         * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3686         * x86-64-linux-nat.c (ps_get_thread_area): New function.  Add
3687         include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3688
3689 2003-07-16  Theodore A. Roth  <troth@openavr.org>
3690
3691         * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3692         found.
3693         (avr_frame_unwind_cache): Don't unwind FP for main.
3694         Update a comment.
3695         Save the computed prev_sp.
3696         (avr_saved_regs_unwinder): Remove function.
3697         (avr_frame_prev_register): Use PC unwind logic from
3698         avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3699
3700 2003-07-16  Andrew Cagney  <cagney@redhat.com>
3701
3702         * frame-base.h (frame_base_p_ftype): Delete definition.
3703         (frame_base_append_predicate): Delete declaration.
3704         * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3705         (frame_unwind_append_predicate): Delete declaration.
3706         * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3707         (append_predicate): Delete parameter "p".
3708         (frame_unwind_append_predicate): Delete function.
3709         (frame_unwind_append_sniffer): Update call to append_predicate.
3710         (frame_unwind_free): Delete function.
3711         (_initialize_frame_unwind): Pass NULL as "free" to
3712         register_gdbarch_data.
3713         (frame_unwind_init): Append the dummy_frame_sniffer.
3714         (frame_unwind_find_by_frame): Simplify.
3715         * frame-base.c (struct frame_base_table): Delete field "p".
3716         (append_predicate): Delete parameter "p".
3717         (frame_base_append_predicate): Delete function.
3718         (frame_base_append_sniffer): Update call to append_predicate.
3719         (frame_base_free): Delete function.
3720         (frame_base_find_by_frame): Simplify.
3721         (_initialize_frame_base): Pass NULL as "free" to
3722         register_gdbarch_data.
3723         * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3724         (x86_64_sigtramp_frame_sniffer): Replace
3725         "x86_64_sigtramp_frame_p".
3726         (x86_64_init_abi): Set the frame unwind sniffers.
3727         * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3728         (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3729         (m68k_gdbarch_init): Set the frame unwind sniffers.
3730         * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3731         "i386_sigtramp_frame_p".
3732         (i386_frame_sniffer): Replace "i386_frame_p".
3733         (i386_gdbarch_init): Set the frame unwind sniffers.
3734         * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3735         (avr_gdbarch_init): Set the frame unwind sniffers.
3736         * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3737         "alpha_sigtramp_frame_p"
3738         (alpha_heuristic_frame_sniffer): Replace
3739         "alpha_heuristic_frame_p".
3740         (alpha_gdbarch_init): Set the frame unwind sniffers.
3741         (alpha_dwarf2_init_abi): Ditto.
3742         * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3743         "alpha_debug_frame_p".
3744         (alpha_mdebug_frame_base_sniffer): Replace
3745         "alpha_mdebug_frame_base_p".
3746         (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3747         * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3748         (d10v_gdbarch_init): Set the frame unwind sniffer.
3749         * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3750         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3751         * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3752         (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3753         * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3754         * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3755
3756 2003-07-16  Michael Snyder  <msnyder@redhat.com>
3757
3758         * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3759         should go thru sh_dsp_register_sim_regno, else the dsp regs
3760         will not get the right values.
3761
3762 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3763
3764         * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3765         deprecated_store_floating by call to store_typed_floating.
3766         (sh_sh4_register_convert_to_raw): Substitute call to
3767         deprecated_extract_floating by call to extract_typed_floating.
3768
3769 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3770
3771         * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3772
3773 2003-07-16  Corinna Vinschen  <vinschen@redhat.com>
3774
3775         * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3776         register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3777         gdbarch_register_type in 32 bit code throughout.  Avoid current_gdbarch
3778         as possible.
3779         (do_pseudo_register): Remove.
3780         (sh_push_dummy_code): New function.
3781         (sh64_store_struct_return): Rename from sh_store_struct_return.
3782         Only called for sh64 now.
3783         (sh_extract_struct_value_address): Regcache'ify.
3784         (sh_push_dummy_call): Rename from sh_push_arguments.  Regcache'ify
3785         and accomodate new tasks.
3786         (sh64_push_return_address): Rename from sh_push_return_address.
3787         Only called for sh64 now.
3788         (sh_default_extract_return_value): Rename from sh_extract_return_value.
3789         Regcache'ify.
3790         (sh3e_sh4_extract_return_value): Regcache'ify.
3791         (sh_default_store_return_value): Ditto.
3792         (sh3e_sh4_store_return_value): Ditto.
3793         (sh_default_register_byte): Remove.
3794         (sh_sh4_register_byte): Remove.
3795         (sh_default_register_raw_size): Remove.
3796         (sh_sh4_register_raw_size): Remove.
3797         (sh_register_virtual_size): Remove.
3798         (sh_sh3e_register_virtual_type): Remove.
3799         (sh_sh3e_register_type): New function.
3800         (sh_sh4_register_virtual_type): Remove.
3801         (sh_sh4_register_type): New function.
3802         (sh_default_register_virtual_type): Remove.
3803         (sh_default_register_type): New function.
3804         (do_fv_register_info): Add parameters to accomodate call from
3805         sh_print_registers_info.
3806         (do_dr_register_info): Ditto.
3807         (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3808         Add parameters to accomodate call from sh_print_registers_info.
3809         (sh_do_fp_register): Ditto.
3810         (sh64_do_pseudo_register): Call do_dr_register_info,
3811         do_fv_register_info and sh_do_fp_register with default parameters.
3812         (sh_do_register): Add parameters to accomodate call from
3813         sh_print_registers_info.
3814         (sh_print_register): Ditto.
3815         (sh_print_registers_info): Rename from sh_do_registers_info.
3816         Add parameters to be used as gdbarch_print_registers_info
3817         implementation.  Accomodate removed do_pseudo_register function
3818         pointer.
3819         (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3820         function pointer. Call sh_print_register with default parameters.
3821         (sh64_do_registers_info): Call sh_print_registers_info instead of
3822         sh_do_registers_info.
3823         (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3824         detection of deprecated vs. non-deprecated functionality.
3825         Rename sh_call_dummy_words to sh64_call_dummy_words.  Remove
3826         function pointer assignments by direct function calls.
3827
3828 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3829
3830         * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3831         (frame_register_unwind, create_new_frame): Ditto.
3832         (legacy_get_prev_frame, get_frame_type): Ditto.
3833         (get_frame_base_address): Use frame_base_find_by_frame.
3834         (get_frame_locals_address): Use frame_base_find_by_frame.
3835         (get_frame_args_address): Use frame_base_find_by_frame.
3836         * frame-base.h (frame_base_sniffer_ftype): Declare.
3837         (frame_base_append_sniffer): Declare.
3838         (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3839         * frame-base.c (append_predicate): Add a "sniffer" parameter.
3840         (frame_base_append_sniffer): New function.
3841         (frame_base_append_predicate): Add a NULL sniffer.
3842         (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3843         (struct frame_base_table): Add "sniffer".
3844         (frame_base_free): Free the "sniffer" table.
3845         * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3846         (frame_unwind_append_sniffer): Declare.
3847         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3848         * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3849         (struct frame_unwind_table): Add "sniffer", delete "middle".
3850         (append_predicate): Add "sniffer" parameter, append the sniffer.
3851         (frame_unwind_init): Update append_predicate call.
3852         (frame_unwind_append_sniffer): New function.
3853         (frame_unwind_append_predicate): Update append_predicate call.
3854         (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3855
3856 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3857
3858         * frame.c (get_prev_frame): Move disabled inside_entry_func to
3859         before code inhibiting repeated unwind attempts.  Add to
3860         commentary on that test's problems.
3861         * blockframe.c (inside_main_func): Look for "main" in the minimal
3862         symbol table.
3863         * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3864         identical.
3865
3866 2003-07-15  Andrew Cagney  <cagney@redhat.com>
3867
3868         * complaints.c (struct explanation): Define.
3869         (struct complaints): Change type of "explanation" to "struct
3870         explanation".
3871         (symfile_explanations): Convert to a "struct explanation" table.
3872         (vcomplaint): Update.
3873
3874 2003-07-15  Michal Ludvig  <mludvig@suse.cz>
3875
3876         * x86-64-linux-nat.c (regmap): Removed.
3877         (supply_gregset, fill_gregset): Call
3878         x86_64_linux_(fill,supply)_gregset functions.
3879         * x86-64-linux-tdep.c (USER_*): New defines.
3880         (user_to_gdb_regmap, x86_64_core_fns): New structure.
3881         (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3882         New functions.
3883         (fetch_core_registers): Ditto.
3884         (_initialize_x86_64_linux_tdep): Call add_core_fns().
3885         * x86-64-linux-tdep.h: New file.
3886         * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3887         and core-regset.o.
3888         * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3889
3890 2003-07-13  Mark Kettenis  <kettenis@gnu.org>
3891
3892         * x86-64-tdep.c (x86_64_store_return_value): Use
3893         regcache_cooked_write_part instead of regcache_cooked_write.
3894
3895         * configure.host: Add x86_64-*-freebsd*.
3896         * configure.tgt: Add x86_64-*-freebsd*.
3897         * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3898         * amd64fbsd-nat.c: New file.
3899         * amd64fbsd-tdep.c: New file.
3900         * config/i386/nm-fbsd64.h: New file.
3901         * config/i386/fbsd64.mh: New file.
3902         * config/i386/fbsd64.mt: New file.
3903
3904 2003-07-11  Mark Kettenis  <kettenis@gnu.org>
3905
3906         * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3907         `sc_regs_offset' and `sc_fpregs_offset'.
3908         * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3909         SIGFRAME_FPREGSAVE_OFF): Remove defines.
3910         (alpha_sigtramp_register_address): Rewrite to use new members of
3911         `struct gdbarch_tdep'.
3912         (alpha_gdbarch_init): Initialize new members of struct
3913         gdbarch_tdep'.
3914         * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3915         ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3916         (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3917         (alphafbsd_pc_in_sigtramp): Implement.
3918         (alphafbsd_sigtramp_offset): New function.
3919         (alphafbsd_sigcontext_addr): New function.
3920         (alphafbsd_init_abi): Initialize signal trampoline related members
3921         of `struct gdbarch_tdep'.
3922         (_initialize_alphafbsd_tdep): Add prototype.
3923
3924 2003-07-11  Theodore A. Roth  <troth@openavr.org>
3925
3926         * Makefile.in (install-only): Quote sed expression when generating
3927         transformed_name.
3928
3929 2003-07-11  Richard Henderson  <rth@redhat.com>
3930
3931         * Makefile.in (dwarf2-frame.o): Add complaints_h.
3932         * dwarf2-frame.c: Include complaints.h.
3933         (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3934         variable initialization; return NULL on error.
3935         (decode_frame_entry): New.
3936
3937 2003-07-11  Andrew Cagney  <cagney@redhat.com>
3938
3939         * frame.h (frame_address_in_block): Delete declaration.
3940         * blockframe.c (frame_address_in_block): Delete function.
3941         (get_frame_block): Use get_frame_address_in_block.
3942         (block_innermost_frame): Ditto.
3943         * stack.c (print_frame, backtrace_command_1): Ditto.
3944
3945         * frame.h (get_frame_address_in_block): Declare.
3946         (frame_unwind_address_in_block): Declare.
3947         * frame.c (frame_unwind_address_in_block): New function.
3948         (get_frame_address_in_block): New function.
3949
3950 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3951
3952         * gdbarch.sh: Simplify predicate methods.  Remove need to provide
3953         pre-default.   Note: re-generate has no effect.
3954
3955 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3956
3957         * gdbarch.sh: When a variable, but not a function, compare against
3958         0.  Fix problem in previous patch.
3959         * gdbarch.c: Re-generate.
3960
3961 2003-07-10  Andrew Cagney  <cagney@redhat.com>
3962
3963         * gdbarch.sh: Use gdb_assert instead of internal_error.  Compare
3964         functions against NULL, not 0.
3965         * gdbarch.c: Re-generate.
3966
3967 2003-07-10  Fred Fish  <fnf@ninemoons.com>
3968
3969         * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3970         null string instead of a null pointer.
3971         * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3972
3973 2003-07-09  Michael Snyder  <msnyder@redhat.com>
3974
3975         * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3976
3977 2003-07-09  Mark Kettenis  <kettenis@gnu.org>
3978
3979         * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3980         X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3981         X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3982         X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3983         * x86-64-tdep.c: ... from here.
3984
3985 2003-07-09  Andreas Schwab  <schwab@suse.de>
3986
3987         * m68k-tdep.h (enum struct_return): Define.
3988         (struct gdbarch_tdep): Add struct_return.
3989         * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3990         bytes are padded to the right, not to the left.  Pass struct value
3991         address in register %a1, not on stack.
3992         (m68k_use_struct_convention): New function.
3993         (m68k_gdbarch_init): Set use_struct_convention.  Initialize
3994         struct_return in tdep to pcc_struct_return.
3995         * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3996         reg_struct_return.
3997
3998 2003-07-09  Joel Brobecker  <brobecker@gnat.com>
3999
4000         * somread.c (som_symfile_offsets): Fix compilation error.
4001
4002 2003-07-09  Andrew Cagney  <cagney@redhat.com>
4003
4004         * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
4005         Add comments about the checks.
4006
4007 2003-07-08  Andrew Cagney  <cagney@redhat.com>
4008
4009         * Makefile.in: Make dependency section headers consistent.
4010         (config_h): Move to $BUILD headers section.
4011         (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4012         (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4013         (ada-exp.tab.c): Move to YACC/LEX section.
4014         (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4015         (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4016
4017 2003-07-08  Kris Warkentin  <kewarken@qnx.com>
4018
4019         * nto-procfs.c: Cleaned up a bunch of ARI hits.
4020         Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4021         of strerror with safe_strerror, use ISO C function definitions,
4022         and replace instances of sprintf with snprintf.
4023
4024 2003-07-07  Andrew Cagney  <cagney@redhat.com>
4025
4026         * frame.c (get_prev_frame): Enable check for identical frames.
4027         Update comments.  Update error messages.
4028
4029 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4030
4031         * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4032
4033 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4034
4035         * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4036         sort_symtab_syms, no longer necessary.
4037
4038 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4039
4040         * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4041
4042 2003-07-07  Joel Brobecker  <brobecker@gnat.com>
4043
4044         * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4045         (mips_register_byte): Likewise.
4046
4047 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4048
4049         * Makefile.in (sparc_tdep_h): New.
4050         (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4051         (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4052         * sparc-linux-nat.c: Include "sparc-tdep.h".
4053         * sparc-nat.c: Likewise.
4054         * sparc-tdep.c: Likewise.
4055         * sparc64nbsd-nat.c: Likewise.
4056         * sparcnbsd-nat.c: Likewise.
4057         * sparcnbsd-tdep.c: Likewise.
4058         * sparc-tdep.h: New file.
4059         * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4060         and sparc_npc_regnum.
4061
4062 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4063
4064         * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4065         (mips_linux_cannot_store_register): List supported instead of
4066         unsupported registers.
4067
4068 2003-07-07  Daniel Jacobowitz  <drow@mvista.com>
4069
4070         * disasm.c (dump_insns): Separate instructions from addresses.
4071
4072 2003-07-07  Andreas Schwab  <schwab@suse.de>
4073
4074         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4075         dependencies.
4076         * m68k-tdep.c (NUM_FREGS): Delete.
4077         (SIG_PC_FP_OFFSET): Delete.
4078         (TARGET_M68K): Delete.
4079         (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4080         P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4081         P_MOVEL_SP, P_MOVEML_SP): Define.
4082         (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4083         P_TRAP): Delete.
4084         (m68k_register_raw_size): Delete.
4085         (m68k_register_virtual_size): Delete.
4086         (m68k_register_type): Renamed from m68k_register_virtual_type and
4087         add gdbarch argument.
4088         (m68k_store_struct_return): Delete.
4089         (m68k_deprecated_extract_return_value): Delete.
4090         (m68k_deprecated_extract_struct_value_address): Delete.
4091         (m68k_frame_chain): Delete.
4092         (m68k_frame_saved_pc): Delete.
4093         (m68k_fix_call_dummy): Delete.
4094         (m68k_push_dummy_frame): Delete.
4095         (m68k_pop_frame): Delete.
4096         (m68k_extract_return_value): New function.
4097         (m68k_store_return_value): Rewrite using regcache.
4098         (m68k_extract_struct_value_address): Rewrite using regcache.
4099         (m68k_push_dummy_call): New function.
4100         (struct m68k_frame_cache): Define.
4101         (m68k_alloc_frame_cache): New function.
4102         (m68k_analyze_frame_setup): New function.
4103         (m68k_analyze_register_saves): New function.
4104         (m68k_analyze_prologue): New function.
4105         (m68k_skip_prologue): Rewrite using above functions.
4106         (m68k_unwind_pc): New function.
4107         (m68k_frame_cache): New function.
4108         (m68k_frame_this_id): New function.
4109         (m68k_frame_prev_register): New function.
4110         (m68k_frame_unwind): New variable.
4111         (m68k_frame_p): New function.
4112         (m68k_sigtramp_frame_cache): New function.
4113         (m68k_sigtramp_frame_this_id): New function.
4114         (m68k_sigtramp_frame_prev_register): New function.
4115         (m68k_sigtramp_frame_unwind): New variable.
4116         (m68k_sigtramp_frame_p): New function.
4117         (m68k_frame_base_address): New function.
4118         (m68k_frame_base): New function.
4119         (m68k_unwind_dummy_id): New function.
4120         (fill_gregset): Use regcache_collect.
4121         (fill_fpregset): Likewise.
4122         (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4123         defined.
4124         (m68k_gdbarch_init): Don't define call_dummy_words.  Don't set
4125         deprecated_init_frame_pc, deprecated_store_struct_return,
4126         deprecated_extract_return_value, deprecated_store_return_value,
4127         deprecated_frame_chain, deprecated_frame_saved_pc,
4128         deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4129         deprecated_register_virtual_size,
4130         deprecated_max_register_raw_size,
4131         deprecated_max_register_virtual_size,
4132         deprecated_register_virtual_type, deprecated_register_size,
4133         deprecated_register_byte, deprecated_register_bytes,
4134         deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4135         call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4136         deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4137         deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4138         deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4139         deprecated_push_dummy_frame, deprecated_pop_frame,
4140         deprecated_dummy_write_sp.  Set deprecated_saved_pc_after_call
4141         only if SYSCALL_TRAP is defined.  Set extract_return_value,
4142         store_return_value, extract_struct_value_address, register_type,
4143         push_dummy_call, unwind_dummy_id, unwind_pc.  Add two frame unwind
4144         predicates.
4145         * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4146         M68K_MAX_REGISTER_SIZE): Define.
4147         (struct m68k_sigtramp_info): Define.
4148         (struct gdbarch_tdep): Add get_sigtramp_info.
4149         * m68klinux-nat.c (fetch_register): Use register_size instead of
4150         REGISTER_RAW_SIZE.  Don't put assignment in if.
4151         (store_register): Likewise.
4152         (fetch_inferior_registers): Likewise.
4153         (store_inferior_registers): Likewise.
4154         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4155         (m68k_linux_frame_saved_pc): Delete.
4156         (m68k_linux_sigcontext_reg_offset,
4157         m68k_linux_ucontext_reg_offset): Define.
4158         (m68k_linux_get_sigtramp_info): New function.
4159         (m68k_linux_extract_return_value): Rewrite using regcache.
4160         (m68k_linux_store_return_value): Likewise.
4161         (m68k_linux_extract_struct_value_address): Likewise.
4162         (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4163         Don't set deprecated_frame_saved_pc,
4164         deprecated_extract_return_value, deprecated_store_return_value,
4165         deprecated_extract_struct_value_address.  Set
4166         extract_return_value, store_return_value,
4167         extract_struct_value_address.
4168
4169 2003-07-07  Andrew Cagney  <cagney@redhat.com>
4170
4171         * expprint.c: Include "user-regs.h" instead of "frame.h".
4172         (print_subexp): Use user_reg_map_regnum_to_name, instead of
4173         frame_map_regnum_to_name.
4174         * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4175         (frame_map_name_to_regnum): Simplify, call
4176         user_reg_map_name_to_regnum.
4177         (frame_map_regnum_to_name): Simplify, call
4178         user_reg_map_regnum_to_name.
4179         (frame_register_unwind): Update.
4180         * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4181         (_initialize_frame_reg): Call user_reg_add_builtin.
4182         * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4183         (value_of_register): Use value_of_user_reg.
4184         * eval.c (evaluate_subexp_standard): Update.
4185         * parse.c (write_dollar_variable): Update.
4186         * d10v-tdep.c (d10v_print_registers_info): Update.
4187         * infcmd.c (registers_info): Update.
4188         * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4189         (builtin_regs_h): Delete macro.
4190         (user_regs_h): Define.
4191         (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4192         (builtin-regs.o): Delete target.
4193         (user-regs.o): Specify dependencies.
4194         (expprint.o): Update dependencies.
4195         (findvar.o): Update dependencies.
4196         (frame.o): Update dependencies.
4197         (std-regs.o): Update dependencies.
4198
4199 2003-07-06  Christopher Faylor  <cgf@redhat.com>
4200
4201         * win32-nat.c (solib_symbols_add): Use one variable for all section
4202         address stuff.  Pass variable rather than address of variable to
4203         safe_symbol_file_add.
4204
4205 2003-07-06  Andreas Schwab  <schwab@suse.de>
4206
4207         * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4208
4209 2003-07-04  Joel Brobecker  <brobecker@gnat.com>
4210
4211         * rs6000-nat.c (vmap_symtab): Fix compilation error.
4212
4213 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
4214
4215         * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4216
4217 2003-07-04  Kris Warkentin  <kewarken@qnx.com>
4218
4219         * nto-procfs.c: New file.  Native procfs support for QNX Neutrino.
4220         * config/i386/nto.mh: New file.
4221         * config/i386/nm-nto.h: New file.
4222         * configure.host: Add i[3456]86-*-nto*.
4223
4224 2003-07-03  Joel Brobecker  <brobecker@gnat.com>
4225
4226         * remote-vx.c (vx_add_symbols): Fix compilation error.
4227
4228 2003-07-03  Andrew Cagney  <cagney@redhat.com>
4229
4230         * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4231         * gdbarch.h, gdbarch.c: Re-generate.
4232         * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4233         (legacy_register_name): Declare.
4234         * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4235         (REGISTER_NAME): Define.
4236         * sparc-tdep.c (legacy_register_name): New function.
4237         * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4238         (REGISTER_NAME): Define.
4239         (hppa64_register_name): Declare.
4240         * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4241         * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4242         (hppa64_register_name): New function.
4243         (hppa_register_name): New function.
4244         * arch-utils.c (legacy_register_name): Delete.
4245         * arch-utils.h (legacy_register_name): Delete.
4246
4247 2003-07-03  Daniel Jacobowitz  <drow@mvista.com>
4248
4249         * cli/cli-interp.c (cli_interpreter_resume): Update the
4250         cli_uiout's stream to gdb_stdout.
4251
4252 2003-07-03  Andrew Cagney  <cagney@redhat.com>
4253
4254         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4255         predicate.
4256         * gdbarch.h, gdbarch.c: Re-generate.
4257         * regcache.c (init_regcache_descr): Use legacy code when either
4258         REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4259
4260 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
4261
4262         * NEWS: Move "set logging" entry into GDB 6.0 section.
4263
4264 2003-07-02  Jim Blandy  <jimb@redhat.com>
4265
4266         * s390-tdep.c (struct frame_extra_info): new member:
4267         'stack_bought_valid'.
4268         (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4269         initialize fextra_info->stack_bought.
4270         (s390_frameless_function_invocation): Don't trust the value of
4271         fextra_info_ptr->stack_bought unless
4272         fextra_info->stack_bought_valid is set.
4273
4274         New S390 prologue analyzer.
4275         * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4276         (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4277         pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4278         pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4279         compute_x_addr, s390_on_stack, s390_store,
4280         s390_get_signal_frame_info): New functions.
4281         (S390_NUM_SPILL_SLOTS): New macro.
4282         (s390_get_frame_info): Rewritten.
4283         (is_arg_reg): Deleted.
4284
4285         Break out the decoding of S/390 instructions into separate
4286         functions, to make it more legible, and easier to check
4287         against the spec.
4288         * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4289         is_rx, is_rxe): New functions.
4290         (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4291         op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4292         op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4293         op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4294         enums for opcode values.  (Is this an improvement?)
4295
4296 2003-07-02  Andrew Cagney  <cagney@redhat.com>
4297
4298         * i386-tdep.c: Revert change committed as part of trad-frame code
4299         below.
4300
4301 2003-07-02  Daniel Jacobowitz  <drow@mvista.com>
4302
4303         * breakpoint.c (insert_catchpoint): Make static.
4304
4305 2003-07-02  Andreas Schwab  <schwab@suse.de>
4306
4307         * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4308         former ia64_push_arguments and ia64_push_return_address, and use
4309         regcache functions instead of read/write_register.
4310         (ia64_gdbarch_init): Set push_dummy_call instead of
4311         deprecated_push_arguments and deprecated_push_return_address.
4312
4313 2003-07-01  Andreas Jaeger  <aj@suse.de>
4314
4315         * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4316         before the call.
4317         Set %rax only to number of SSE registers used.
4318
4319 2003-07-01  Andrew Cagney  <cagney@redhat.com>
4320
4321         * trad-frame.h: Update comments, a -1 .addr is reserved.
4322         (trad_frame_value_p, trad_frame_addr_p): Declare.
4323         (trad_frame_reg_p): Declare.
4324         (trad_frame_set_value): Rename trad_frame_register_value.
4325         (trad_frame_set_unknown): Declare.
4326         * trad-frame.c (trad_frame_realreg_p): New function.
4327         (trad_frame_addr_p, trad_frame_value_p): New function.
4328         (trad_frame_set_unknown): New function.
4329         (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4330         (trad_frame_prev_register): Use trad_frame_realreg_p,
4331         trad_frame_addr_p and trad_frame_value_p.
4332         (trad_frame_set_value): Rename trad_frame_register_value.
4333         * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4334         and trad_frame_set_value.
4335
4336 2003-06-30  Jim Blandy  <jimb@redhat.com>
4337
4338         Patch from IBM (authors unspecified, probably Ulrich Weigand and
4339         Gerhard Tonn) for argument passing on the S/390 and S/390x:
4340         * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4341         for 16 registers, and then 32 more bytes.
4342         (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4343         New macros.
4344         (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4345         Move up in the file, since it's now used by is_simple_arg.
4346         (is_simple_arg): Don't assume registers are four bytes long.
4347         Exclude all double arguments.  Extended floats are not simple
4348         args.
4349         (is_power_of_two): New function.
4350         (pass_by_copy_ref): Call is_power_of_two, and check that the
4351         length fits in a register, rather than listing all the acceptable
4352         sizes.  Extended floats are not passed by reference.
4353         (s390_push_arguments): Don't assume registers are four bytes long.
4354         Reserve an argument register to point to the buffer for structures
4355         returned by value.  Use S390_NUM_FP_PARAMETER_REGISTERS and
4356         S390_STACK_FRAME_OVERHEAD.
4357
4358 2003-06-30  Andreas Schwab  <schwab@suse.de>
4359
4360         * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4361         format error message.
4362
4363 2003-06-30  Joel Brobecker  <brobecker@gnat.com>
4364
4365         * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4366
4367 2003-06-30  David Carlton  <carlton@kealia.com>
4368
4369         Band-aid for PR c++/1245.
4370         * Makefile.in (cp-support.o): Depend on complaints_h.
4371         * cp-support.c: Include complaints.h.  Add declaration for
4372         find_last_component.
4373         (cp_find_first_component): Separate code into
4374         cp_find_first_component_aux.
4375         (cp_find_first_component_aux): Call demangled_name_complaint.
4376         (demangled_name_complaint): New.
4377
4378 2003-06-30  Andrew Cagney  <cagney@redhat.com>
4379
4380         * remote.c (remote_write_bytes): Explicitly compute and then use
4381         the payload size.  Update comments to reflect.  Fixes problem of
4382         GDB not sending small packets as found by Fred Fish.
4383
4384 2003-06-30  Andrew Cagney  <cagney@redhat.com>
4385
4386         * remote.c (remote_async_wait): Fix -Wformat problem.
4387
4388 2003-06-29  Andrew Cagney  <cagney@redhat.com>
4389
4390         * remote.c (remote_wait): Call error, and not warning, when the
4391         packet is corrupt.
4392         (remote_async_wait): Ditto.
4393
4394 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
4395
4396         * sparc-tdep.c (sparc_y_regnum): Make external again.
4397
4398 2003-06-29  Daniel Jacobowitz  <drow@mvista.com>
4399
4400         * cli/cli-logging.c (pop_output_files): Add void to function
4401         definition.
4402
4403 2003-06-29  Andrew Cagney  <cagney@redhat.com>
4404
4405         * frame.c (frame_register_unwind): Use unsigned char when dumping
4406         the buffer contents.
4407
4408 2003-06-28  Daniel Jacobowitz  <drow@mvista.com>
4409
4410         * cli/cli-logging.c: New file.
4411         * cli-out.c (struct ui_out_data): Add original_stream.
4412         (cli_redirect): New function.
4413         (cli_ui_out_impl): Add cli_redirect.
4414         (cli_out_new): Initialize original_stream.
4415         * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4416         (uo_redirect, ui_out_redirect): New.
4417         * ui-out.h (struct ui_out_impl): Add redirect member.
4418         (redirect_ftype): New.
4419         (ui_out_redirect): Add prototype.
4420         * Makefile.in: Add rules for cli-logging.c.
4421         * NEWS: Mention "set logging".
4422
4423 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4424
4425         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4426
4427 2003-06-27  Andrew Cagney  <cagney@redhat.com>
4428
4429         * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4430         (m68hc11_gdbarch_init): Do not set call_dummy_address.
4431         * avr-tdep.c (avr_call_dummy_address): Delete function.
4432         (avr_gdbarch_init): Do not set call_dummy_address.
4433
4434 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4435
4436         * symfile.c (syms_from_objfile): Move variables to inner block.
4437         Move the checks for the non-mainline case a bit earlier to avoid
4438         doing some useless computations.
4439
4440 2003-06-27  Elena Zannoni  <ezannoni@redhat.com>
4441
4442         * dwarfread.c (decode_modified_type): Gag new compiler warning.
4443
4444 2003-06-26  Elena Zannoni  <ezannoni@redhat.com>
4445
4446         * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4447         sections.
4448
4449 2003-06-26  Michael Chastain  <mec@shout.net>
4450
4451         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4452         gdb/testsuite/gdb.c++/pr-1210.exp.
4453
4454 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4455
4456         * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4457         altivec_expression.h and altivec_registers.h.
4458
4459 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4460
4461         * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4462         info->mach when MIPS16.  Patch suggested by Fred Fish.
4463
4464 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4465
4466         * utils.c (internal_vproblem): Print the problem to a reason
4467         buffer and then pass to query.  Make the msg variable more local.
4468
4469 2003-06-26  Andrew Cagney  <cagney@redhat.com>
4470
4471         * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate.  Deprecate.
4472         (FRAME_LOCALS_ADDRESS): Add predicate.  Deprecate.
4473         * gdbarch.h, gdbarch.c: Re-generate.
4474         * frame-base.c (default_frame_args_address): Update.  Use
4475         default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4476         not available.
4477         (default_frame_locals_address): Ditto for
4478         DEPRECATED_FRAME_LOCALS_ADDRESS.
4479         * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4480         (vax_frame_num_args): Update.
4481         (vax_gdbarch_init): Update.
4482         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4483         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4484         * mcore-tdep.c (mcore_gdbarch_init): Update.
4485         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4486         * ia64-tdep.c (ia64_gdbarch_init): Update.
4487         * symtab.h (address_class): Update comments.
4488         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4489         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4490         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4491         * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4492         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4493         (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4494         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4495         * alpha-mdebug-tdep.c: Update.
4496         * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4497
4498 2003-06-26  Andreas Jaeger  <aj@suse.de>
4499
4500         * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4501         of SSE registers so that varargs functions work.  Rework handling
4502         of passing arguments on the stack.
4503         (x86_64_store_return_value): Return double and float values in SSE
4504         register.
4505
4506 2003-06-24  Michael Chastain  <mec@shout.net>
4507
4508         * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4509         the "constructor breakpoints ignored" bug.
4510
4511 2003-06-25  David Carlton  <carlton@kealia.com>
4512
4513         * MAINTAINERS: Update e-mail address.
4514
4515 2003-06-24  Jim Blandy  <jimb@redhat.com>
4516
4517         * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4518
4519         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4520         function.
4521         (ppc_linux_init_abi): Register it as the
4522         CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4523
4524         * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4525         (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4526         method.
4527
4528         * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4529         (ppc64_standard_linkage_target): Use it.
4530
4531 2003-06-23  Andrew Cagney  <cagney@redhat.com>
4532
4533         * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4534         for 0 "int0" and 4 "int32" sized registers.
4535         * gdbtypes.c (builtin_type_int0): Define.
4536         (build_gdbtypes): Initialize builtin_type_int0.
4537         * gdbtypes.h (builtin_type_int0): Declare.
4538
4539 2003-06-23  Stephane Carrez  <stcarrez@nerim.fr>
4540
4541         * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4542         as characters are unsigned.
4543
4544 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4545
4546         PR gdb/1179
4547         * dwarfread.c (struct_type): Skip static fields without crashing.
4548
4549 2003-06-22  Andrew Cagney  <cagney@redhat.com>
4550
4551         GDB 6.0 branch created.
4552         * README: Update.
4553         * PROBLEMS: Update.  Empty.
4554         * NEWS: Update.
4555
4556 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4557
4558         * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4559         Suggested by Nick Hibma <n_hibma@webweaving.org>.
4560
4561 2003-06-22  Andrew Cagney  <cagney@redhat.com>
4562
4563         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4564         GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD.  Suggested by Momchil
4565         Velikov.
4566
4567 2003-06-22  Daniel Jacobowitz  <drow@mvista.com>
4568
4569         * cli/cli-cmds.c (shell_escape): Silence warnings from old
4570         compilers.
4571
4572 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
4573
4574         * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4575         argument of val_print.
4576         * cp-valprint.c (cp_print_value): Don't add the offset parameter
4577         to the address argument of baseclass_offset or target_read_memory.
4578         Do add it to the argument of cp_print_value_fields.
4579
4580 2003-06-21  Andrew Cagney  <cagney@redhat.com>
4581
4582         * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4583         (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4584         instead of 0..NUM_REGS.
4585         (mips_register_reggroup_p): New function.
4586         (mips_pseudo_register_write): New function.
4587         (mips_pseudo_register_read): New function.
4588         (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4589         based on the register's type.
4590         (read_next_frame_reg): Simplify.  Assert that REGNO is a pseudo /
4591         cooked.
4592         (mips_get_saved_register): Simplify.  Assert that REGNO is a
4593         pseudo / cooked.
4594         (mips_register_byte): New function.  Use MIPS_REGISTER_BYTE.
4595         (mips_register_type): Replace mips_register_virtual_type.  Map
4596         NUM_REGS..2*NUM_REGS onto 0..NUM_REGS.  Use MIPS_REGISTER_TYPE
4597         when available.
4598         (read_next_frame_reg): Simplify, but handle SP_REGNUM.  Assert
4599         that the register is cooked / virtual.
4600         (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4601         Only get the extra info when needed.
4602         (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4603         (mips32_heuristic_proc_desc): Fetch the cooked register.
4604         (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4605         (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4606         (mips_print_register): Use gdbarch_register_type, instead of
4607         REGISTER_VIRTUAL_TYPE.
4608         (print_gp_register_row): Use gdbarch_register_type, instead of
4609         REGISTER_VIRTUAL_TYPE.  Allow for a pseudo / cooked REGNUM.
4610         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4611         Print the pseudo / cooked registers.
4612         (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4613         Print the pseudo / cooked registers.
4614         (mips_xfer_register): Use regcache_cooked_read_part.  Assert that
4615         REG_NUM is pseudo / cooked.
4616         (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4617         (mips_n32n64_xfer_return_value): Ditto.
4618         (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4619         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4620         (mips_register_sim_regno): New function.
4621         (mips_gdbarch_init): Set deprecated_register_byte,
4622         register_group_p, pseudo_register_write, pseudo_register_read,
4623         register_sim_regno, and num_pseudo_regs.  Set register_type,
4624         instead of register_virtual_type.
4625         * Makefile.in (mips-tdep.o): Update dependencies.
4626         * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4627         REGISTER_VIRTUAL_TYPE.
4628         * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4629         * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4630         * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4631         * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4632         * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4633
4634 2003-06-21  Daniel Jacobowitz  <drow@mvista.com>
4635
4636         * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4637         * cli/cli-cmds.c: Include "gdb_vfork.h".
4638         (shell_escape): Use vfork.
4639
4640 2003-06-21  Andrew Cagney  <cagney@redhat.com>
4641
4642         * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4643         32 bit floating-point register saves.
4644
4645         * frame.h (deprecated_unwind_get_saved_register): Delete.
4646         * frame.c (deprecated_unwind_get_saved_register): Delete function.
4647         * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4648         and deprecated_get_next_frame_hack instead of
4649         deprecated_unwind_get_saved_register.
4650
4651         * mips-tdep.c (mips_dump_tdep): Do not print
4652         REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4653
4654         * frame.c (get_frame_register): New function.
4655         (frame_unwind_register_signed): New function.
4656         (get_frame_register_signed): New function.
4657         (frame_unwind_register_unsigned): New function.
4658         (get_frame_register_unsigned): New function.
4659         * frame.h: Add comments on naming schema.
4660         (get_frame_register, frame_unwind_register_signed): Declare.
4661         (get_frame_register_signed, get_frame_register_signed): Declare.
4662         (frame_unwind_register_unsigned): Declare.
4663         (get_frame_register_unsigned): Declare.
4664
4665 2003-06-20  Theodore A. Roth  <troth@openavr.org>
4666
4667         * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4668
4669 2003-06-20  Theodore A. Roth  <troth@openavr.org>
4670
4671         * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4672         (avr_read_sp): Ditto.
4673
4674 2003-06-20  Daniel Jacobowitz  <drow@mvista.com>
4675
4676         * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4677         * config/arm/nm-linux.h: Likewise.
4678         * config/arm/tm-linux.h: Likewise.
4679         * config/ia64/nm-linux.h: Likewise.
4680         * config/ia64/tm-ia64.h: Likewise.
4681         * config/s390/tm-linux.h: Likewise.
4682         * config/s390/tm-s390.h: Likewise.
4683         * s390-nat.c: Likewise.
4684         * s390-tdep.c: Likewise.
4685
4686         * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4687         * config/ia64/linux.mt: Likewise.
4688         * config/m68k/linux.mh: Likewise.
4689         * config/mips/linux.mt: Likewise.
4690         * config/powerpc/linux.mh: Likewise.
4691         * config/sh/linux.mt: Likewise.
4692
4693 2003-06-19  Kris Warkentin  <kewarken@qnx.com>
4694
4695         * solib.c (solib_open): Change tests for whether to search
4696         LD_LIBRARY_PATH and PATH to better deal with remotes.  Update
4697         comments.
4698
4699 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4700
4701         * avr-tdep.c (avr_frame_address): Delete function.
4702         (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4703         set_gdbarch_frame_args_address.
4704
4705 2003-06-19  Andrew Cagney  <cagney@redhat.com>
4706
4707         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4708         (REGISTER_CONVERT_FROM_TYPE): Delete.
4709         (mips_register_convert_to_type): Delete declaration.
4710         (mips_register_convert_from_type): Delete declaration.
4711         * linux-nat.h (struct target_ops): Declare opaque.  s/Linux/Linux
4712         kernel/.
4713
4714 2003-06-19  Michael Snyder  <msnyder@redhat.com>
4715
4716         * linux-nat.h: New file.
4717         * linux-nat.c: Include linux-nat.h.
4718         * lin-lwp.c: Include linux-nat.h.
4719         Move struct lwp_info def to linux-nat.h.
4720         * linux-proc.c: Include linux-nat.h.
4721         (linux_make_note_section): Iterate over lwps instead of threads.
4722         (linux_do_thread_registers): Use lwp instead of merged pid.
4723         * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4724         * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4725         Add dependency on linux_nat_h.
4726
4727 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4728
4729         * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4730
4731 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4732
4733         * varobj.c (get_type, get_target_type): Use check_typedef.
4734
4735 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4736
4737         * breakpoint.c (insert_catchpoint): Call internal_error.
4738
4739 2003-06-19  Theodore A. Roth  <troth@openavr.org>
4740
4741         * avr-tdep.c (avr_push_dummy_code): Delete function.
4742         (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4743
4744 2003-06-19  Daniel Jacobowitz  <drow@mvista.com>
4745
4746         * arch-utils.c (default_prepare_to_proceed): Remove.
4747         (generic_prepare_to_proceed): Remove.
4748         * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4749         (generic_prepare_to_proceed): Remove prototype.
4750         * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4751         * gdbarch.c: Regenerate.
4752         * gdbarch.h: Regenerate.
4753         * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4754         * hppah-nat.c (hppa_switched_threads): Remove.
4755         * infrun.c (prepare_to_proceed): New static function, copied from
4756         generic_prepare_to_proceed.  Remove select_it argument.
4757         (proceed): Call prepare_to_proceed.
4758         * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4759         variables.
4760         (ptrace_wait): Don't set the removed variables.
4761         (hppa_switched_threads): Remove.
4762         * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4763         * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4764         (lin_lwp_prepare_to_proceed): Remove prototype.
4765         * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4766         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4767
4768 2003-06-18  Theodore A. Roth  <troth@openavr.org>
4769
4770         * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4771         trad-frame.h.
4772         (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4773         (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4774         (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4775         (AVR_PROLOGUE_*): Enumerate prologue types.
4776         (struct frame_extra_info): Remove.
4777         (struct avr_unwind_cache): Define.
4778         (avr_write_sp): Delete function.
4779         (avr_read_fp): Ditto.
4780         (avr_init_extra_frame_info): Ditto.
4781         (avr_pop_frame): Ditto.
4782         (avr_frame_saved_pc): Ditto.
4783         (avr_saved_pc_after_call): Ditto.
4784         (avr_push_return_address): Ditto.
4785         (avr_frame_chain): Ditto.
4786         (avr_store_struct_return): Ditto.
4787         (avr_push_arguments): Ditto.
4788         (avr_scan_prologue): Update comments. Changed to set up the info for
4789         cache unwinding. Now returns end of prologue PC.
4790         (avr_skip_prologue): Better handling of functions lacking a prologue
4791         by using avr_scan_prologue.
4792         (avr_scan_arg_moves): New function.
4793         (avr_saved_regs_unwinder): Ditto.
4794         (avr_frame_unwind_cache): Ditto.
4795         (avr_unwind_pc): Ditto.
4796         (avr_frame_this_id): Ditto.
4797         (avr_frame_prev_register): Ditto.
4798         (avr_frame_p): Ditto.
4799         (avr_frame_base_address ): Ditto.
4800         (avr_unwind_dummy_id): Ditto.
4801         (avr_push_dummy_code): Ditto.
4802         (push_stack_item): Ditto.
4803         (pop_stack_item): Ditto.
4804         (avr_push_dummy_call): Ditto.
4805         (struct stack_item): Define.
4806         (avr_frame_unwind): Declare structure.
4807         (avr_frame_base): Ditto.
4808         (avr_gdbarch_init): Remove calls to
4809         set_gdbarch_deprecated_init_frame_pc,
4810         set_gdbarch_deprecated_target_read_fp,
4811         set_gdbarch_deprecated_dummy_write_sp,
4812         set_gdbarch_deprecated_fp_regnum,
4813         set_gdbarch_deprecated_push_arguments,
4814         set_gdbarch_deprecated_push_return_address,
4815         set_gdbarch_deprecated_pop_frame,
4816         set_gdbarch_deprecated_store_struct_return,
4817         set_gdbarch_deprecated_frame_init_saved_regs,
4818         set_gdbarch_deprecated_init_extra_frame_info,
4819         set_gdbarch_deprecated_frame_chain,
4820         set_gdbarch_deprecated_frame_saved_pc,
4821         set_gdbarch_deprecated_saved_pc_after_call.
4822         Add calls to set_gdbarch_push_dummy_call,
4823         set_gdbarch_push_dummy_code,
4824         frame_unwind_append_predicate,
4825         frame_base_set_default,
4826         set_gdbarch_unwind_dummy_id,
4827         set_gdbarch_unwind_pc.
4828         Wrap a long line.
4829
4830 2003-06-18  Corinna Vinschen  <vinschen@redhat.com>
4831
4832         * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4833         registers for H8/300S.
4834         (h8300_print_registers_info): Ditto.
4835         (h8300_gdbarch_init): Accommodate register count for H8/300S.
4836
4837 2003-06-18  Daniel Jacobowitz  <drow@mvista.com>
4838
4839         * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4840         * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4841         (lin_lwp_wait): Likewise.  Update comments.
4842         * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4843         (pull_pid_from_list, linux_record_stopped_pid): New.
4844
4845 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
4846
4847         * ada-lang.c (scan_discrim_bound): Name first argument.
4848         (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4849         declared by ALL_BLOCK_SYMBOLS.
4850
4851 2003-06-17  Stephane Carrez  <stcarrez@nerim.fr>
4852
4853         * ada-tasks.c (find_function_in_inferior): Don't declare it.
4854         ("regcache.h"): Include it.
4855         * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4856
4857 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4858
4859         * NEWS: Mention gdbserver detach change and "disconnect" command.
4860         * infcmd.c (disconnect_command): New function.
4861         (_initialize_infcmd): Add ``disconnect'' command.
4862         * remote.c (remote_async_detach): Delete.
4863         (remote_detach): Merge remote_async_detach.
4864         (remote_disconnect): New.
4865         (init_remote_ops): Set to_disconnect.
4866         (init_remote_cisco_ops): Likewise.
4867         (init_remote_async_ops): Likewise.  Use remote_detach.
4868         * target.c (cleanup_target): Default to_disconnect.
4869         (update_current_target): Inherit to_disconnect.
4870         (target_disconnect, debug_to_disconnect): New functions.
4871         (setup_target_debug): Set to_disconnect.
4872         * target.h (struct target_ops): Add to_disconnect.
4873         (target_disconnect): Add prototype.
4874
4875 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4876
4877         * breakpoint.c (insert_catchpoint): New function.
4878         (insert_breakpoints): Use catch_exceptions to call
4879         insert_catchpoint.  Disable catchpoints if they fail to insert.
4880
4881 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4882
4883         * symfile.c (reread_symbols): Clear sym_private.
4884
4885 2003-06-17  Andrew Cagney  <cagney@redhat.com>
4886
4887         * trad-frame.h (struct frame_info): Add opaque declaration.
4888         * remote-fileio.h (struct cmd_list_element): Add opaque
4889         declaration.
4890         * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4891         comments.
4892
4893 2003-06-17  Daniel Jacobowitz  <drow@mvista.com>
4894
4895         * remote.c (remote_prepare_to_store): Replace call to
4896         deprecated_read_register_bytes with multiple regcache_raw_read
4897         calls.
4898
4899 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4900
4901         * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4902         (nto_find_and_open_solib): Likewise.
4903         (nto_init_solib_absolute_prefix): Likewise.
4904         (_initialize_nto_tdep): Fix indentation.
4905
4906 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4907
4908         * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4909
4910 2003-06-17  Kris Warkentin  <kewarken@qnx.com>
4911
4912         * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4913
4914 2003-06-17  Jim Blandy  <jimb@redhat.com>
4915
4916         * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4917
4918 2003-06-16  Theodore A. Roth  <troth@openavr.org>
4919
4920         * avr-tdep.c (avr_extract_return_value): New function.
4921         (avr_gdbarch_init): Set extract_return_value method.
4922
4923 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4924
4925         * frame.h (deprecated_get_next_frame_hack): Declare.
4926         * frame.c (legacy_saved_regs_prev_register): Only require
4927         DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed.  Assert that
4928         there are always saved regs.
4929         (deprecated_generic_get_saved_register): Do not require
4930         DEPRECATED_FRAME_INIT_SAVED_REGS.
4931         (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4932         use frame ID unwind instead.
4933         (deprecated_get_next_frame_hack): New function.
4934
4935 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
4936
4937         * h8300-tdep.c (h8300_push_arguments): Remove.  Substitute by...
4938         (h8300_push_dummy_call): ...this function.  Some minor optimization.
4939         (h8300_push_return_address): Remove.
4940         (h8300_gdbarch_init): Remove calls to
4941         set_gdbarch_deprecated_dummy_write_sp,
4942         set_gdbarch_deprecated_push_arguments and
4943         set_gdbarch_deprecated_push_return_address.
4944         Add call to set_gdbarch_push_dummy_call.
4945
4946 2003-06-16  Corinna Vinschen  <vinschen@redhat.com>
4947
4948         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4949         (E_PSEUDO_EXR_REGNUM): Ditto.
4950         (h8300_is_argument_spill): Check for instructions moving argument
4951         registers into safe registers.
4952         (h8300_skip_prologue): Check for stm instruction to push registers
4953         used for register variables onto stack.
4954         (gdb_print_insn_h8300): Remove.
4955         (h8300_examine_prologue): Add a comment.
4956         (h8300_register_name): Take pseudo registers into account.
4957         (h8300s_register_name): Ditto.
4958         (h8300sx_register_name): Ditto.
4959         (h8300_print_register): Ditto.
4960         (h8300_print_registers_info): Define "nice" printing order.
4961         (h8300_saved_pc_after_call): Take pseudo registers into account.
4962         (h8300_register_type): Ditto.  Return type used for remote connection
4963         when requesting real CCR or EXR register, return actual type when
4964         requesting pseudo CCR or EXR.
4965         (h8300_pseudo_register_read): New function.
4966         (h8300_pseudo_register_write): Ditto.
4967         (h8300_dbg_reg_to_regnum): Ditto.
4968         (h8300s_dbg_reg_to_regnum): Ditto.
4969         (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4970         set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4971         set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4972         set_gdbarch_print_insn architecture dependent.
4973         Call set_gdbarch_pseudo_register_read and
4974         set_gdbarch_pseudo_register_write.
4975         (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4976
4977 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4978
4979         * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4980         * gdbarch.h, gdbarch.c: Re-generate.
4981         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4982         * s390-tdep.c (s390_gdbarch_init): Update.
4983         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4984         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4985         * mips-tdep.c (mips_gdbarch_init): Update.
4986         * mcore-tdep.c (mcore_gdbarch_init): Update.
4987         * cris-tdep.c (cris_gdbarch_init): Update.
4988         * infcall.c (call_function_by_hand): Update.
4989         * ia64-tdep.c (ia64_push_arguments): Update comment.
4990         * frame.c (legacy_get_prev_frame): Do not assume
4991         SAVE_DUMMY_FRAME_TOS_P.
4992         * dummy-frame.c (find_dummy_frame): Update comment.
4993
4994 2003-06-16  Andrew Cagney  <cagney@redhat.com>
4995
4996         * regcache.c (do_cooked_read): Do not use register_valid_p.
4997
4998 2003-06-15  Theodore A. Roth  <troth@openavr.org>
4999
5000         * avr-tdep.c (avr_register_type): Remove a blank line.
5001         (avr_scan_prologue): Correct some comments.
5002
5003 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5004
5005         * avr-tdep.c (avr_scan_prologue): Update comment describing the various
5006         prologue types.
5007         Properly scan prologues generated by gcc with the -mcall-prologues
5008         option.
5009         Add code to scan -mcall-prologues for mega devices.
5010
5011 2003-06-15  Theodore A. Roth  <troth@openavr.org>
5012
5013         * avr-tdep.c (avr_register_byte): Delete function.
5014         (avr_register_raw_size): Delete function.
5015         (avr_register_virtual_size): Delete function.
5016         (avr_register_virtual_type): Delete function.
5017         (avr_register_type): New function.
5018         (avr_address_to_pointer): Remove unused code.
5019         (avr_read_fp): Need to read FP as two separate bytes due to change to
5020         avr_register_type() usage.
5021         (avr_gdbarch_init): Don't set deprecated_register_size.
5022         Don't set deprecated_register_bytes.
5023         Don't set deprecated_register_byte.
5024         Don't set deprecated_register_raw_size.
5025         Don't set deprecated_max_register_raw_size.
5026         Don't set deprecated_register_virtual_size.
5027         Don't set deprecated_max_register_virtual_size.
5028         Don't set deprecated_register_virtual_type.
5029         Set register_type method.
5030
5031 2003-06-15  Daniel Jacobowitz  <drow@mvista.com>
5032
5033         * Makefile.in (linux-nat.o): Add rule.
5034         * linux-nat.c: New file.
5035         * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5036         (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5037         (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5038         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5039         * config/arm/linux.mh (NATDEPFILES): Likewise.
5040         * config/i386/linux.mh (NATDEPFILES): Likewise.
5041         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5042         * config/ia64/linux.mh (NATDEPFILES): Likewise.
5043         * config/m68k/linux.mh (NATDEPFILES): Likewise.
5044         * config/mips/linux.mh (NATDEPFILES): Likewise.
5045         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5046         * config/s390/s390.mh (NATDEPFILES): Likewise.
5047         * config/sparc/linux.mh (NATDEPFILES): Likewise.
5048
5049 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5050
5051         * i387-tdep.c: Reorder includes, fix some whitespace issues and
5052         replace out-of-date comment.
5053
5054 2003-06-15  Andrew Cagney  <cagney@redhat.com>
5055
5056         * rdi-share/host.h (Fail): Change to a varargs function.
5057         * remote-rdi.c (Fail): Update.
5058
5059 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5060
5061         * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5062         (i386_convert_register_p, i386_register_to_value,
5063         i386_register_from_value): Handle types longer than 8 bytes.
5064
5065 2003-06-15  Mark Kettenis  <kettenis@gnu.org>
5066
5067         * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5068         Move floating-point code to new function in i387-tdep.c.
5069         * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5070         New functions containing code moved here from i386-tdep.c.
5071         * i387-tdep.h: Add opaque declaration for `struct type'.
5072         (i387_register_to_value, i387_value_to_register): New prototypes.
5073         * x86-64-tdep.c (x86_64_convert_register_p): New function.
5074         (x86_64_init_abi): Set convert_register_p, register_to_value and
5075         value_to_register here.
5076
5077 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5078
5079         * mips-tdep.c (mips_register_to_value): Make static.
5080         (mips_value_to_register): Make static.
5081         * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5082         * ia64-tdep.c (ia64_register_raw_size): Make static.
5083         (ia64_register_virtual_size): Make static.
5084         (ia64_register_byte): Make static.
5085         * i387-tdep.c: Include "i387-tdep.h".
5086         (print_387_control_word): Delete function.
5087         (print_387_status_word): Delete function.
5088         (print_387_status_bits): Delete function.
5089         (print_387_control_bits): Delete function.
5090         * Makefile.in (i387-tdep.o): Update dependencies.
5091         * rdi-share/host.h (Fail): Declare.
5092         * remote-rdi.c (Fail): Update to match declaration.
5093
5094 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5095
5096         * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5097         * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5098         * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5099         * config/djgpp/fnchange.lst: Delete "remote-array.c".
5100         * README: Delete reference to remote-array.
5101         * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5102         (remote-array.o): Delete target.
5103         * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5104         * remote-array.c: Delete file.
5105
5106 2003-06-14  Andrew Cagney  <cagney@redhat.com>
5107             Mark Kettenis  <kettenis@gnu.org>
5108
5109         * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5110         (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5111         parameter with "frame".
5112         * gdbarch.h, gdbarch.c: Re-generate.
5113         * frame.h (put_frame_register): Declare.
5114         * frame.c (put_frame_register): New function.
5115         * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5116         (legacy_register_to_value): Rewrite, use "frame" to get the
5117         register value.
5118         (legacy_value_to_register): Rewrite, use "frame" to find the
5119         register's location before storing.
5120         * arch-utils.h (legacy_convert_register_p): Update.
5121         (legacy_register_to_value, legacy_value_to_register): Update.
5122         * findvar.c (value_from_register): Rewrite, eliminate use of
5123         REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5124         "frame" to REGISTER_TO_VALUE.
5125         * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5126         lval_reg_frame_relative + lval_register branch of the switch.  Do
5127         not use REGISTER_CONVERT_FROM_TYPE.  Use put_frame_register.
5128         * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5129         I386_EDI_REGNUM): New defines.
5130         (i386_next_regnum, i386_convert_register_p,
5131         i386_register_to_value, i386_value_to_register): New functions.
5132         (i386_register_convertible, i386_register_convert_to_virtual,
5133         i386_convert_to_raw): Remove functions.
5134         (i386_gdbarch_init): Set convert_register_p, register_to_value and
5135         value_to_register instead of register_convertible,
5136         register_convert_to_virtual and register_convert_to_raw.
5137         * mips-tdep.c (mips_convert_register_p): New function.
5138         (mips_value_to_register): Replace mips_register_convert_from_type.
5139         (mips_register_to_value): Replace mips_register_convert_to_type.
5140         (mips_gdbarch_init): Set conver_register_p, value_to_register and
5141         register_to_value.
5142         * alpha-tdep.c (alpha_convert_register_p): Update.
5143         (alpha_value_to_register): Update, store the register.
5144         (alpha_register_to_value): Update, fetch the register.
5145
5146 2003-06-14  Theodore A. Roth  <troth@openavr.org>
5147
5148         * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5149         (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5150         Don't set deprecated_call_dummy_words.
5151         Remove commented out set_gdbarch_believe_pcc_promotion() call.
5152         Don't set remote_translate_xfer_address.
5153         (avr_io_reg_read_command): Remove commented out debug printf.
5154         Wrap a long line.
5155
5156 2003-06-14  Theodore A. Roth  <troth@openavr.org>
5157
5158         * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5159         causes gdb to seg fault.
5160
5161 2003-06-14  Daniel Jacobowitz  <drow@mvista.com>
5162
5163         * sparc-nat.c (fetch_inferior_registers): Correct
5164         a reference to "registers".
5165
5166 2003-06-14  Jeroen Dekkers  <jeroen@dekkers.cx>
5167
5168         * Makefile.in (exc_request_U_h): Define
5169         (exc_request_S_h): Likewise.
5170         (msg_reply_S_h): Likewise.
5171         (msg_U_h): Likewise.
5172         (notify_S_h): Likewise.
5173         (process_reply_S_h): Likewise.
5174         (gnu-nat.o): Depend on gdb_obstack_h
5175         * gnu-nat.c: Include "gdb_obstack.h".
5176
5177 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5178
5179         * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5180         * gdbarch.h, gdbarch.c: Re-generate.
5181
5182 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5183
5184         * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces.  Clarify
5185         when deprecated REGISTER macros can be deleted.
5186         * gdbarch.h, gdbarch.c: Re-generate.
5187
5188 2003-06-13  Jim Blandy  <jimb@redhat.com>
5189
5190         * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5191         Linux entry point symbols for _dl_debug_state, too.
5192
5193 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5194
5195         * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5196         available, do not use the FP register, and always save the TOS.
5197         * dummy-frame.c (dummy_frame_this_id): Do not assert
5198         SAVE_DUMMY_FRAME_TOS.
5199         * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5200         (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5201         (i386_push_dummy_call): Add 8 to the returned SP.
5202         * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5203         * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5204         (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5205         * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5206         (x86_64_push_dummy_call): Return "sp + 16".
5207         (x86_64_init_abi): Do not set save_dummy_frame_tos.
5208         * alpha-tdep.c (alpha_gdbarch_init): Do not set
5209         save_dummy_frame_tos.
5210
5211 2003-06-13  Jim Blandy  <jimb@redhat.com>
5212
5213         * frv-tdep.c (frv_use_struct_convention): Delete static
5214         declaration for function deleted in my change of 2003-06-12.
5215
5216 2003-06-13  Theodore A. Roth  <troth@openavr.org>
5217
5218         * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5219         (avr_pointer_to_address): Shift code addrs left 1 bit.
5220         (avr_convert_from_func_ptr_addr): Delete function since operation is
5221         better handled by avr_address_to_pointer and avr_pointer_to_address.
5222         (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5223
5224 2003-06-13  Mark Kettenis  <kettenis@gnu.org>
5225
5226         From Kelley Cook  <kelleycook@wideopenwest.com>:
5227         * configure.host: Accept i[34567]86 variants.
5228         * configure.tgt: Likewise.
5229         * nlm/configure.in: Likewise.
5230         * nlm/configure: Regenerated.
5231
5232 2003-06-13  Richard Earnshaw  <rearnsha@arm.com>
5233
5234         * arm-tdep.c (solib-svr4.h): Dont' include it.
5235         (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5236         * arm-linux-tdep.c: ... here.  Make static.
5237         (arm_linux_init_abi): Register it.
5238         (solib-svr4.h): Include it.
5239         * Makefile.in: Update dependencies.
5240         * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5241         (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5242
5243 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
5244
5245         * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5246         indicate registers used for return values.
5247         (struct frame_extra_info): Drop args_pointer and locals_pointer.
5248         (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5249         members.
5250         (h8300_init_extra_frame_info): Ditto.
5251         (h8300_frame_locals_address): Removed.
5252         (h8300_frame_args_address): Removed.
5253         (h8300_extract_return_value): Use new regcache structure. Only care
5254         for 16 bit CPUs.
5255         (h8300h_extract_return_value): Same function for 32 bit CPUs.
5256         (h8300_store_return_value): Use new regcache structure. Only care
5257         for 16 bit CPUs.
5258         (h8300h_store_return_value): Same function for 32 bit CPUs.
5259         (h8300_store_struct_return): Removed.
5260         (h8300_extract_struct_value_address): Use new regcache structure.
5261         (h8300h_extract_struct_value_address): Removed.
5262         (h8300_push_dummy_code): New function.
5263         (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5264         Remove call_dummy_words.  Call set_gdbarch_extract_return_value and
5265         set_gdbarch_store_return_value architecture dependent.
5266         Call set_gdbarch_push_dummy_code and
5267         set_gdbarch_extract_struct_value_address.
5268         Remove calls to set_gdbarch_frame_args_address,
5269         set_gdbarch_frame_locals_address,
5270         set_gdbarch_deprecated_store_struct_return,
5271         set_gdbarch_deprecated_extract_return_value,
5272         set_gdbarch_deprecated_extract_struct_value_address,
5273         set_gdbarch_deprecated_call_dummy_words and
5274         set_gdbarch_deprecated_sizeof_call_dummy_words.
5275
5276 2003-06-13  Corinna Vinschen  <vinschen@redhat.com>
5277
5278         * h8300-tdep.c (h8300_register_byte): Remove.
5279         (h8300h_register_byte): Remove.
5280         (h8300_register_virtual_type): Remove.  Substitute by...
5281         (h8300_register_type): New function.
5282         (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5283         (h8300h_extract_struct_value_address): Ditto.
5284         (h8300_gdbarch_init): Drop calls to
5285         set_gdbarch_deprecated_register_byte and
5286         set_gdbarch_deprecated_register_virtual_type.
5287         Add call to set_gdbarch_register_type.
5288
5289 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5290
5291         * gdbarch.sh: Update comments on registers.
5292         (deprecated_register_byte): Rename register_byte.
5293         (deprecated_register_raw_size): Rename register_raw_size.
5294         (deprecated_register_virtual_size): Rename register_virtual_size.
5295         (deprecated_register_virtual_type): Rename register_virtual_type.
5296         * gdbarch.h, gdbarch.c: Re-generate.
5297         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5298         * vax-tdep.c (vax_gdbarch_init): Update.
5299         * v850-tdep.c (v850_gdbarch_init): Update.
5300         * sparc-tdep.c (sparc_gdbarch_init): Update.
5301         * sh-tdep.c (sh_gdbarch_init): Update.
5302         * s390-tdep.c (s390_gdbarch_init): Update.
5303         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5304         * ns32k-tdep.c: Update.
5305         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5306         * mips-tdep.c (mips_gdbarch_init): Update.
5307         * mcore-tdep.c (mcore_gdbarch_init): Update.
5308         * m68k-tdep.c (m68k_gdbarch_init): Update.
5309         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5310         * ia64-tdep.c (ia64_gdbarch_init): Update.
5311         * hppa-tdep.c (hppa_gdbarch_init): Update.
5312         * h8300-tdep.c (h8300_gdbarch_init): Update.
5313         * frv-tdep.c (frv_gdbarch_init): Update.
5314         * cris-tdep.c (cris_gdbarch_init): Update.
5315         * avr-tdep.c (avr_gdbarch_init): Update.
5316         * alpha-tdep.c (alpha_gdbarch_init): Update.
5317         * arm-tdep.c (arm_gdbarch_init): Update.
5318
5319 2003-06-13  Andrew Cagney  <cagney@redhat.com>
5320
5321         * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5322         mips_o32_use_struct_convention with always_use_struct_convention.
5323
5324 2003-06-12  David Carlton  <carlton@kealia.com>
5325
5326         * cp-namespace.c (cp_set_block_scope): Comment out
5327         processing_has_namespace_info branch.
5328
5329 2003-06-12  Jim Blandy  <jimb@redhat.com>
5330
5331         Recognize and skip 64-bit PowerPC Linux linkage functions.
5332         * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5333         insn_pattern, insns_match_pattern, d_field, ds_field): New
5334         functions, macros, and types for working with PPC instructions.
5335         (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5336         ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5337         ppc64_skip_trampoline_code): New functions, variables, and macros
5338         for recognizing and skipping linkage functions.
5339         (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5340         ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5341
5342         * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5343         register offsets for both the 32- and 64-bit interfaces.
5344
5345         Actually finish the job started by my change of 2003-05-29.
5346         * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5347         other #definition of this.
5348         (ppc_linux_skip_trampoline_code): Remove declaration.
5349         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5350         static.
5351         (ppc_linux_init_abi): Register it as the skip_trampoline_code
5352         method for GDBARCH.
5353
5354         * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5355         'long' on ppc64-*-linux*.
5356
5357         * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5358         isn't #defined, assume the register doesn't exist: act as if
5359         tdep->ppc_mq_regnum were -1.
5360
5361         * configure.host, configure.tgt: Add entries for
5362         powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5363         powerpc/linux.mt.
5364         * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5365         New files.
5366
5367         * arch-utils.c (always_use_struct_convention): New function.
5368         * arch-utils.h (always_use_struct_convention): New prototype.
5369         * alpha-tdep.c (alpha_use_struct_convention): Delete.
5370         (alpha_gdbarch_init): Register always_use_struct_convention,
5371         instead of alpha_use_struct_convention.
5372         * cris-tdep.c (cris_use_struct_convention): Delete.
5373         (cris_gdbarch_init): Register always_use_struct_convention,
5374         instead of cris_use_struct_convention.
5375         * frv-tdep.c (frv_use_struct_convention): Delete.
5376         (frv_gdbarch_init): Register always_use_struct_convention,
5377         instead of frv_use_struct_convention.
5378         * h8300-tdep.c (h8300_use_struct_convention): Delete.
5379         (h8300_gdbarch_init): Register always_use_struct_convention,
5380         instead of h8300_use_struct_convention.
5381         * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5382         (mips_o32_gdbarch_init): Register always_use_struct_convention,
5383         instead of mips_o32_use_struct_convention.
5384
5385 2003-06-12  Andrew Cagney  <cagney@redhat.com>
5386
5387         * wince.c: Include "mips-tdep.h".
5388         * mips-tdep.h (mips_next_pc): Declare.
5389         * mcore-tdep.c: Make more local functions static.
5390         * Makefile.in (wince.o): Update dependencies.
5391
5392 2003-06-12  David Carlton  <carlton@kealia.com>
5393
5394         * symtab.c (lookup_symbol_aux_minsyms): Replace
5395         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5396         (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5397         (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5398         SYMBOL_NATURAL_NAME.
5399
5400 2003-06-12  Andreas Schwab  <schwab@suse.de>
5401
5402         * Makefile.in (tuiDisassem.o): Update dependencies.
5403
5404 2003-06-12  David Carlton  <carlton@bactrian.org>
5405
5406         * symtab.h: Delete declaration of make_symbol_overload_list.
5407         Add declaration of lookup_partial_symbol.
5408         * symtab.c (remove_params): Move to cp-support.c.
5409         (overload_list_add_symbol, make_symbol_overload_list)
5410         (sym_return_val_size, sym_return_val_index): Ditto.
5411         (lookup_partial_symbol): Make extern.
5412         * cp-support.h: Add declaration of make_symbol_overload_list.
5413         * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5414         symtab.h, and block.h.
5415         (remove_params): Move here from symtab.c.
5416         (overload_list_add_symbol, make_symbol_overload_list)
5417         (sym_return_val_size, sym_return_val_index): Ditto.
5418         * valops.c: Include cp-support.h.
5419         * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5420         frame_h, and block_h.
5421         (valops.o): Depend on cp_support_h.
5422
5423 2003-06-12  Corinna Vinschen  <vinschen@redhat.com>
5424
5425         * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5426         substitute by NUM_REGS throughout.
5427         (h8300_register_name): Only care for H8/300 and H8/300H registers.
5428         (h8300s_register_name): New function for H8S registers.
5429         (h8300sx_register_name): Ditto for H8SX registers.
5430         (h8300_print_register): Revise register printing, avoid depending
5431         on 32 bit long.
5432         (h8300_register_byte): Only care for H8/300 registers.
5433         (h8300h_register_byte): New function for any other architecture.
5434         (h8300_register_raw_size): Remove.
5435         (h8300_register_virtual_type): Revise to return actually useful
5436         type.
5437         (h8300_extract_struct_value_address): Only care for H8/300 registers.
5438         (h8300h_extract_struct_value_address): New function for any other
5439         architecture.
5440         (h8300_gdbarch_init): Add h8300sxn.  Call set_gdbarch_num_regs,
5441         set_gdbarch_register_name, set_gdbarch_register_byte,
5442         set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5443         Remove calls to set_gdbarch_deprecated_register_size,
5444         set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5445         set_gdbarch_deprecated_max_register_raw_size,
5446         set_gdbarch_register_virtual_size and
5447         set_gdbarch_deprecated_max_register_virtual_size entirely.
5448         Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5449         set_gdbarch_long_double_bit.
5450
5451 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
5452
5453         * doublest.c (convert_doublest_to_floatformat): When dealing
5454         with the implied integer bit, only alter mant_bits if we are
5455         processing a full 32 bits of mantissa.
5456
5457 2003-06-11  David Carlton  <carlton@bactrian.org>
5458
5459         * dictionary.h: New.
5460         * dictionary.c: New.
5461         * block.h: Add opaque declaration for struct dictionary.
5462         (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5463         'sym' members.
5464         (BLOCK_DICT): New macro.
5465         Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5466         BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5467         BLOCK_SHOULD_SORT.
5468         (ALL_BLOCK_SYMBOLS): Update definition.
5469         * Makefile.in (SFILES): Add dictionary.c.
5470         (dictionary_h): New.
5471         (COMMON_OBS): Add dictionary.o.
5472         (dictionary.o): New.
5473         (ada-lang.o): Depend on dictionary_h.
5474         (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5475         (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5476         (mi-cmd-stack.o): Ditto.
5477         (gdbtk-cmds.o): Update dependencies.
5478         (gdbtk-stack.o): Ditto.
5479         * ada-lang.c: Include dictionary.h.
5480         (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5481         (fill_in_ada_prototype, debug_print_block): Ditto.
5482         (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5483         explicit iteration by use of ALL_BLOCK_SYMBOLS.  Delete variable
5484         'is_sorted'.
5485         * mdebugread.c: Include dictionary.h.
5486         (struct parse_stack): Delete 'maxsyms' member.
5487         (parse_symbol): Update calls to new_block.  Delete calls to
5488         shrink_block.  Use dictionary methods.
5489         (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5490         Update calls to new_symtab.  Don't maintain maxsyms data.
5491         (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5492         (add_symbol): Just call dict_add_symbol.
5493         (new_symtab): Delete 'maxsyms' argument.
5494         (new_symtab): Update calls to new_block.
5495         (new_block): Delete 'maxsyms' argument; add 'function' argument.
5496         (shrink_block): Delete function.
5497         (fixup_sigtramp): Update call to new_block.  Add symbol via
5498         dict_add_symbol.
5499         * jv-lang.c: Include dictionary.h.
5500         (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5501         appropriately.  Set class_symtab->free_func.  Make sure the
5502         blockvector is big enough to hold two blocks.
5503         (add_class_symtab_symbol): Use dictionary methods.
5504         (free_class_block): New function.
5505         (type_from_class): Replace explicit iteration by
5506         ALL_BLOCK_SYMBOLS.
5507         * symtab.h (struct symtab): Replace 'free_ptr' method by
5508         'free_func'.
5509         * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5510         sort_symtab_syms.
5511         * dwarfread.c (psymtab_to_symtab_1): Delete call to
5512         sort_symtab_syms.
5513         * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5514         Include dictionary.h.
5515         (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5516         * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5517         sort_symtab_syms.
5518         * objfiles.c: Include dictionary.h.
5519         (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5520         * buildsym.c: Include dictionary.h.
5521         (finish_block): Use dictionary methods.
5522         (end_symtab): Set free_func to NULL, not free_ptr.
5523         * tracepoint.c: Include dictionary.h.
5524         (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5525         (scope_info): Ditto.
5526         * stack.c: Include dictionary.h.
5527         (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5528         (print_block_frame_labels, print_frame_arg_vars)
5529         (print_frame_args): Ditto.
5530         * symmisc.c (free_symtab_block): Use dictionary methods.
5531         (dump_symtab): Ditto.
5532         (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5533         Include dictionary.h.
5534         * symfile.h: Delete declarations of sort_block_syms,
5535         sort_symtab_syms.
5536         * symfile.c (sort_block_syms): Delete.
5537         (sort_symtab_syms): Delete.
5538         * symtab.c: Include dictionary.h.
5539         (lookup_block_symbol): Use dictionary iterators.
5540         (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5541         (search_symbols, make_symbol_completion_list): Ditto.
5542         (make_symbol_overload_list): Ditto.
5543         * valops.c (value_of_local): Use dict_empty.
5544         Include dictionary.h.
5545
5546 2003-06-11  J. Brobecker  <brobecker@gnat.com>
5547
5548         * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5549
5550 2003-06-11  David Carlton  <carlton@bactrian.org>
5551
5552         * block.h (BLOCK_SHOULD_SORT): Delete.
5553         * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5554         blocks.
5555         * ada-lang.c (ada_add_block_symbols): Ditto.
5556         * symfile.c (sort_block_syms): Delete.
5557         (sort_symtab_syms): Ditto.
5558         * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5559         declarations.
5560         * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5561         * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5562         * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5563         * dwarfread.c (psymtab_to_symtab_1): Ditto.
5564         * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5565         * mdebugread.c (psymtab_to_symtab_1): Ditto.
5566         * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5567
5568 2003-06-11  Jeff Johnston  <jjohnstn@redhat.com>
5569
5570         * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5571         bits to 128.
5572
5573 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5574
5575         * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5576         REGISTER_CONVERTIBLE.
5577         (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5578         (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5579         * gdbarch.h, gdbarch.c: Re-generate.
5580         * arch-utils.h (deprecated_register_convertible_not): Rename
5581         generic_register_convertible_not.
5582         * arch-utils.c (deprecated_register_convertible_not): Rename
5583         generic_register_convertible.
5584         (legacy_convert_register_p, legacy_register_to_value): Update.
5585         * sh-tdep.c (sh64_push_arguments): Update.
5586         * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5587         * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5588         * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5589         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5590         * arch-utils.c (legacy_value_to_register): Update.
5591         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5592         (rs6000_register_convert_to_raw): Make parameter "from" const.
5593         * mips-tdep.c (mips_gdbarch_init): Update.
5594         (mips_register_convert_to_raw): Make  parameter"virt_buf" const.
5595         * infcmd.c (default_print_registers_info): Update.
5596         * ia64-tdep.c (ia64_gdbarch_init): Update.
5597         (ia64_register_convert_to_raw): Make parameter "from" const.
5598         * i386-tdep.c (i386_gdbarch_init): Update.
5599         (i386_register_convert_to_raw): Update.
5600
5601 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5602
5603         * remote-fileio.c: Include "remote-fileio.h".
5604         * Makefile.in (remote-fileio.o): Update dependencies.
5605         (remote_fileio_h): Fix typo.
5606
5607 2003-06-11  Andrew Cagney  <cagney@redhat.com>
5608
5609         * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5610         (xstormy16_save_dummy_frame_tos): Make static.
5611         (_initialize_xstormy16_tdep): Add declaration.
5612         * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5613         * v850-tdep.c: Make local functions static.
5614         (_initialize_v850_tdep): Add declaration.
5615         * sparc-tdep.c: Make local functions static.
5616         (_initialize_sparc_tdep): Add declaration.
5617         * sh-tdep.c: Make local functions static.
5618         (_initialize_sh_tdep): Add declaration.
5619         * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5620         * s390-tdep.c: Make local functions static.
5621         (_initialize_s390_tdep): Add declaration.
5622         * dbxread.c (find_stab_function_addr): Make static.
5623         * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5624         * ocd.c (_initialize_remote_ocd): Add declaration.
5625         * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5626         * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5627         * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5628         * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5629         * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5630         * remote-array.c (_initialize_array): Add declaration.
5631         (_initialize_remote_monitors): Add declaration.
5632         * remote-mips.c: Make local functions static.
5633         (_initialize_remote_mips): Add declaration.
5634         * mcore-tdep.c: Make all local functions static.
5635         (_initialize_mcore_tdep): Add declaration.
5636         * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5637         * abug-rom.c (_initialize_abug_rom): Add declaration.
5638         * rom68k-rom.c (_initialize_rom68k): Add declaration.
5639         * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5640         * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5641         * remote-est.c (_initialize_est): Add declaration.
5642         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5643         (m68hc11_call_dummy_address): Make static.
5644         * ia64-tdep.c: Make local functions static.
5645         (_initialize_ia64_tdep): Add declaration.
5646         * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5647         * monitor.c (monitor_wait_filter): Make static.
5648         (_initialize_remote_monitors): Add declaration.
5649         * remote-hms.c (_initialize_remote_hms): Add declaration.
5650         * remote-e7000.c (fetch_regs_from_dump): Make static.
5651         (expect_n): Make static.
5652         (_initialize_remote_e7000): Add declaration.
5653         * ser-e7kpc.c: Always include "defs.h".
5654         (_initialize_ser_e7000pc): Add declaration.
5655         * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5656         * cris-tdep.c: Make all but one function static.
5657         (_initialize_cris_tdep): Add declaration.
5658         * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5659         * solib.c (update_solib_list): Make static.
5660         (_initialize_solib): Add declaration.
5661         * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5662         (_initialize_avr_tdep): Add declaration.
5663         * remote-rdi.c (voiddummy): Make static.
5664         (_initialize_remote_rdi): Add declaration.
5665         * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5666         * remote-rdp.c (send_rdp): Make static.
5667         (_initialize_remote_rdp): Add declaration.
5668         * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5669
5670 2003-06-11  Corinna Vinschen  <vinschen@redhat.com>
5671
5672         * remote-fileio.c: Make ari happy.
5673
5674 2003-06-10  J. Brobecker  <brobecker@gnat.com>
5675
5676         * rs6000-nat.c (child_xfer_memory): Compute the right address when
5677         fetching the trailing bytes of the buffer we are about to write.
5678
5679 2003-06-10  Andrew Cagney  <cagney@redhat.com>
5680
5681         * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5682         * Makefile.in (remote-fileio.o): Update dependencies.
5683         * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h".  Do not
5684         include <setjmp.h>, or <sys/types.h> conditional on USG.
5685         (remote_fio_jmp_buf): Delete global variable.
5686
5687 2003-06-10  Corinna Vinschen  <vinschen@redhat.com>
5688             Martin M. Hunt  <hunt@redhat.com>
5689
5690         * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5691         (SFILES): Add remote-fileio.c.
5692         Add dependencies for building remote-fileio.o.  Add remote-fileio.h to
5693         dependencies for building remote.o.
5694         * remote-fileio.c: New file implementing the remote File-I/O protocol.
5695         * remote-fileio.h: New header file defining remote File-I/O interface.
5696         * remote.c (remote_write_bytes, remote_read_bytes): Remove
5697         static storage class.
5698         (remote_wait, remote_async_wait): Call remote_fileio_request() on
5699         'F' packet.
5700         (_initialize_remote): Call initialize_remote_fileio().
5701         * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5702         * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5703         * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5704         (captured_main): Initialize new ui_files.
5705         * ui-file.c: Add read and fgets input functions.
5706         (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5707         (null_file_read): New function.
5708         (ui_file_read): New function.
5709         (set_ui_file_read): New function.
5710         (stdio_file_read): New function.
5711         * ui-file.h: New type ui_file_read_ftype.
5712         (set_ui_file_read): Declare.
5713         (ui_file_read): Declare.
5714
5715 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5716
5717         * frame.h (deprecated_unwind_get_saved_register): Rename
5718         generic_unwind_get_saved_register, update comments.
5719         * mips-tdep.c (mips_get_saved_register): Update.
5720         * frame.c (deprecated_unwind_get_saved_register): Update.
5721
5722 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5723
5724         * vax-tdep.c (vax_frame_locals_address): Delete function.
5725         (vax_gdbarch_init): Do not set frame_locals_address.
5726         * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5727         (m68hc11_gdbarch_init): Do not set frame_locals_address.
5728         * s390-tdep.c (s390_frame_args_address): Delete function.
5729         (s390_gdbarch_init): Do not set frame_args_address or
5730         frame_locals_address.
5731         * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5732         (ns32k_gdbarch_init): Do not set frame_locals_address.
5733         * hppa-tdep.c (hppa_frame_args_address): Delete function.
5734         (hppa_frame_locals_address): Delete function.
5735         (hppa_gdbarch_init): Do not set frame_args_address, or
5736         frame_locals_address.
5737         * arm-tdep.c (arm_frame_args_address): Delete.
5738         (arm_frame_locals_address): Delete.
5739         (arm_gdbarch_init): Do not set frame_args_address, or
5740         frame_locals_address.
5741
5742 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5743
5744         * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5745         * gdbarch.h, gdbarch.c: Re-generate.
5746         * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5747         * arch-utils.c (frame_num_args_unknown): Delete function.
5748         * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5749         (frame_info): Use FRAME_NUM_ARGS_P.
5750         * arm-tdep.c (arm_frame_num_args): Delete function.
5751         (arm_gdbarch_init): Do not set frame_num_args.
5752         * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5753         * hppa-tdep.c (hppa_frame_num_args): Delete function.
5754         (hppa_gdbarch_init): Do not set frame_num_args.
5755         * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5756         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5757         frame_num_args to default frame_num_args_unknown.
5758         * v850-tdep.c (v850_gdbarch_init): Ditto.
5759         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5760         * sh-tdep.c (sh_gdbarch_init): Ditto.
5761         * s390-tdep.c (s390_gdbarch_init): Ditto.
5762         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5763         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5764         * mips-tdep.c (mips_gdbarch_init): Ditto.
5765         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5766         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5767         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5768         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5769         * i386-tdep.c (i386_gdbarch_init): Ditto.
5770         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5771         * frv-tdep.c (frv_gdbarch_init): Ditto.
5772         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5773         * cris-tdep.c (cris_gdbarch_init): Ditto.
5774         * avr-tdep.c (avr_gdbarch_init): Ditto.
5775         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5776
5777 2003-06-09  Andrew Cagney  <cagney@redhat.com>
5778
5779         * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5780         (print_frame_args): Moved to "stack.c".
5781         * stack.c: Include "gdb_assert.h".
5782         (print_frame_nameless_args): Moved from "printcmd.c", made static.
5783         (print_frame_args): Moved from "printcmd.c".
5784         * frame.h (print_frame_args): Delete declaration.
5785         * Makefile.in (stack.o): Update dependencies.
5786
5787 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5788
5789         * frame.c (get_prev_frame): Remove reference to
5790         frame_args_address_correct in comments.
5791         * frame-base.c (default_frame_args_address): Delete code
5792         conditional on FRAME_ARGS_ADDRESS_CORRECT.
5793         * vax-tdep.c (vax_frame_args_address_correct): Delete.
5794         (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5795         * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5796         (vax_frame_args_address_correct): Delete declaration.
5797
5798 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5799
5800         * gdbarch.sh (UNWIND_SP): Add.
5801         * gdbarch.h, gdbarch.c: Re-generate.
5802         * frame.c (frame_sp_unwind): New function.
5803         (get_frame_sp): New function.
5804         * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5805         * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5806         gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5807         value.
5808         * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5809         (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5810
5811 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5812
5813         Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5814         REMOTE_BREAKPOINT.
5815         * remote.c: Update.
5816         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5817         (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5818         * config/m68k/tm-sun3.h: Update.
5819         * config/m68k/tm-m68klynx.h: Update.
5820         * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5821
5822         * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5823         trad_frame".  Update comments.
5824         * d10v-tdep.c (struct d10v_unwind_cache): Update.
5825         * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5826         (trad_frame_register_value, trad_frame_prev_register): Update.
5827
5828 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5829
5830         * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5831         from GCC's acinclude.m4.
5832         * configure.in: Check for getopt's delcaration.
5833         * aclocal.m4, config.in, configure: Re-generate.
5834         * main.c (error_init): Delete declaration.
5835         * defs.h (error_init): Declare.
5836         * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5837         (rs6000_convert_from_func_ptr_addr): Make static.
5838         (_initialize_rs6000_tdep): Add declaration.
5839         * cli/cli-cmds.c (dont_repeat): Delete declaration.
5840         (show_commands, set_verbose, show_history): Delete declaration.
5841         * top.h (set_verbose): Add declaration.
5842         (show_history, set_history, show_commands): Add declaration.
5843         (do_restore_instream_cleanup): Add declaration.
5844         * objc-lang.c (specialcmp): Make static.
5845         (print_object_command): Make static.
5846         (find_objc_msgsend): Make static.
5847         (find_objc_msgcall_submethod_helper): Make static.
5848         (find_objc_msgcall_submethod): Make static.
5849         (_initialize_objc_language): Add declaration.
5850         (find_implementation_from_class): Make static.
5851         (find_implementation): Make static.
5852         * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5853         * objc-lang.h (lookup_struct_typedef): Add declaration.
5854         * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5855         * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5856         (do_restore_user_call_depth): Make static.
5857         (do_restore_instream_cleanup): Delete declaration.
5858         (dont_repeat): Delete declaration.
5859         * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5860         * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5861         * reggroups.c (_initialize_reggroup): Add declaration.
5862         * cp-support.c (_initialize_cp_support): Add declaration.
5863         * cp-abi.c (_initialize_cp_abi): Add declaration.
5864         * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5865         * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5866         (_initialize_gnu_v3_abi): Add declaration.
5867         * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5868         (_initialize_gnu_v2_abi): Add declaration.
5869         * frame-base.c (_initialize_frame_base): Add declaration.
5870         * doublest.c (floatformat_from_length): Make static.
5871         * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5872         * frame.c (create_sentinel_frame): Make static.
5873         (_initialize_frame): Add declaration.
5874         * top.c (do_catch_errors): Make static.
5875         (gdb_rl_operate_and_get_next_completion): Make static.
5876         * typeprint.c: Include "typeprint.h".
5877         * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5878         (sentinel_frame_this_id): Make static.
5879         * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5880         * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5881         * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5882         * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5883         * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5884         * maint.c (maintenance_print_architecture): Make static.
5885         * signals/signals.c (_initialize_signals): Add declaration.
5886         * std-regs.c (_initialize_frame_reg): Add declaration.
5887         * jv-exp.y (push_variable): ISO C definition.
5888         (push_qualified_expression_name): Ditto.
5889         * memattr.c (_initialize_mem): Add declaration.
5890         * remote.c (remote_check_watch_resources): Make static.
5891         (remote_stopped_by_watchpoint): Make static.
5892         (remote_stopped_data_address): Make static.
5893         * d10v-tdep.c (nr_dmap_regs): Make static.
5894         (a0_regnum): Make static.
5895         (d10v_frame_unwind_cache): Make static.
5896         (d10v_frame_p): Make static.
5897         * osabi.c (show_osabi): Make static.
5898         (_initialize_gdb_osabi): Add extern declaration.
5899         * gdbtypes.c (make_qualified_type): Make static.
5900         (safe_parse_type): Make static.
5901         * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5902         * macrotab.c (macro_bcache_free): Make static.
5903         * interps.c (interp_set_quiet): Make static.
5904         (interpreter_exec_cmd): Make static.
5905         * stack.h (select_frame_command): New file.
5906         * stack.c: Include "stack.h".
5907         (select_frame_command_wrapper): Delete function.
5908         (select_frame_command): Make global.
5909         * infcall.c: Include "infcall.h".
5910         * linespec.c: Include "linespec.h".
5911         * symfile.c (sections_overlap): Make static.
5912         * cp-support.h (cp_initialize_namespace): ISO C declaration.
5913         * charset.c (_initialize_charset): Add missing prototype.
5914         * regcache.c (init_legacy_regcache_descr): Make static.
5915         (do_regcache_xfree): Make static.
5916         (regcache_xfer_part): Make static.
5917         (_initialize_regcache): Add missing prototype.
5918         * breakpoint.c (parse_breakpoint_sals): Make static.
5919         (breakpoint_sals_to_pc): Make static.
5920         * interps.h (clear_interpreter_hooks): ISO C declaration.
5921         * Makefile.in (stack_h): Define.
5922         (stack.o, typeprint.o, mi-main.o): Update dependencies.
5923         (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5924
5925 2003-06-08  Andrew Cagney  <cagney@redhat.com>
5926
5927         * Makefile.in (d10v-tdep.o): Update dependencies.
5928         (SFILES): Add trad-frame.c.
5929         (trad_frame_h): Define.
5930         (COMMON_OBS): Add trad-frame.o.
5931         (trad-frame.o): Specify dependencies.
5932         * d10v-tdep.c: Include "trad-frame.h".
5933         (saved_regs_unwinder): Delete function.
5934         (d10v_frame_prev_register): Use trad_frame_prev_register.
5935         (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5936         trad_frame", delete "regs" and "prev_sp".
5937         (prologue_find_regs): Use trad-frame.
5938         * trad-frame.h, trad-frame.c: New files.
5939
5940 2003-06-08  Mark Kettenis  <kettenis@gnu.org>
5941
5942         * dwarf2cfi.c, dwarf2cfi.h: Remove.
5943
5944 2003-06-07  Adam Fedor  <fedor@gnu.org>
5945
5946         * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5947         (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5948         using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5949         (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5950         resolve_msgsend_super, resolve_msgsend_super_stret):
5951         Use it.
5952
5953 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5954
5955         * symfile.h: Re-indent, clean up comments.
5956
5957 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5958
5959         * inferior.h (deprecated_write_sp): Replace
5960         generic_target_write_sp.
5961         * regcache.c (deprecated_write_sp): Replace
5962         generic_target_write_sp.
5963         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5964         * vax-tdep.c (vax_gdbarch_init): Update.
5965         * v850-tdep.c (v850_gdbarch_init): Update.
5966         * sparc-tdep.c (sparc_gdbarch_init): Update.
5967         * sh-tdep.c (sh_gdbarch_init): Update.
5968         * s390-tdep.c (s390_gdbarch_init): Update.
5969         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5970         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5971         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5972         * mcore-tdep.c (mcore_gdbarch_init): Update.
5973         * m68k-tdep.c (m68k_gdbarch_init): Update.
5974         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5975         * ia64-tdep.c (ia64_gdbarch_init): Update.
5976         * h8300-tdep.c (h8300_gdbarch_init): Update.
5977         * frv-tdep.c (frv_gdbarch_init): Update.
5978         * cris-tdep.c (cris_gdbarch_init): Update.
5979         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5980
5981 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5982
5983         * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5984         Assert that PC_REGNUM is valid.
5985         (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5986
5987 2003-06-07  Andrew Cagney  <cagney@redhat.com>
5988
5989         * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5990         * gdbarch.h, gdbarch.c: Regenerate.
5991         * mn10300-tdep.c: Include "gdb_assert.h".
5992         (mn10300_read_fp): New function.
5993         (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5994         mn10300_read_fp.  Do not set read_sp to generic_target_read_sp.
5995         * ia64-tdep.c: Include "gdb_assert.h".
5996         (ia64_read_fp): New function.
5997         (ia64_gdbarch_init): Set deprecated_target_read_fp to
5998         ia64_read_sp.  Do not set read_sp to generic_target_read_sp.
5999         * regcache.c (generic_target_read_sp): Delete function.
6000         (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
6001         * inferior.h (generic_target_read_sp): Delete declaration.
6002         * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
6003         generic_target_read_sp.
6004         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6005         * sparc-tdep.c (sparc_gdbarch_init): Ditto
6006         * sh-tdep.c (sh_gdbarch_init): Ditto.
6007         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6008         * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
6009
6010 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6011
6012         * gdbarch.sh: Comment each field of startup_gdbarch.
6013         * gdbarch.h, gdbarch.c: Re-generate.
6014
6015 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6016
6017         * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6018         * gdbarch.h, gdbarch.c: Re-generate.
6019         * regcache.c: Update comments on read_pc et.al.
6020         (generic_target_read_pc): Delete function.
6021         (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6022         * inferior.h (generic_target_read_pc): Delete declaration.
6023         * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6024         generic_target_read_pc.
6025         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6026         * sh-tdep.c (sh_gdbarch_init): Ditto.
6027         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6028         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6029
6030 2003-06-07  Andrew Cagney  <cagney@redhat.com>
6031
6032         * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6033         "index" with "special_local_sect".  Use strcmp instead of STREQ.
6034         Append period to coments.
6035
6036 2003-06-06  Mark Mitchell  <mark@codesourcery.com>
6037
6038         * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6039         (elfstab_offset_sections): Likewise.
6040         * gdb-stabs.h (stab_section_info): Likewise.
6041         * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6042         * objfiles.c (objfile_relocate): Likewise.
6043         * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6044         * remote.c (get_offsets): Likewise.
6045         (remote_cisco_objfile_relocate): Likewise.
6046         * somread.c (som_symfile_offsets): Likewise.
6047         * symfile.c (alloc_section_addr_info): New function.
6048         (build_section_addr_info_from_section_tab): Use it.
6049         (free_section_addr_info): Adjust.
6050         (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6051         (syms_from_objfile): Allocate local_addr dynamically.
6052         (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6053         dynamically.
6054         (add_symbol_file_command): Allocate sect_opts dynamically.
6055         (reread_symbols): Avoid use of SECT_OFF_MAX.
6056         * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6057         (alloc_section_addr_info): Declare it.
6058         * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6059         * win32-nat.c (solib_symbols_add): Allocate section_addrs
6060         dynamically.
6061         * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6062
6063 2003-06-06  Andrew Cagney  <cagney@redhat.com>
6064
6065         * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6066         (d10v_frame_unwind_cache): Do not set "return_pc".
6067
6068 2003-06-06  Michael Snyder  <msnyder@redhat.com>
6069
6070         * h8300-tdep.c: Make tidy (long lines).
6071
6072 2003-06-06  Michal Ludvig  <mludvig@suse.cz>
6073
6074         * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6075         to regcache_collect().
6076
6077 2003-06-05  J. Brobecker  <brobecker@gnat.com>
6078
6079         * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6080         pc_in_sigtramp multiarch method.
6081         (hppa_hpux_som_init_abi): Use it.
6082         (hppa_hpux_elf_init_abi): Likewise.
6083         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6084         macro has been multiarched.
6085         * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6086         macro here, as hppa64 isn't multiarched yet.
6087
6088 2003-06-05  Andrew Cagney  <cagney@redhat.com>
6089
6090         * Makefile.in (value_h): Add $(frame_h).
6091         * value.h: Include "frame.h".
6092         (struct value): Replace "frame_addr" with "frame_id".
6093         (VALUE_FRAME_ID): Replace VALUE_FRAME.
6094         * values.c (allocate_value): Use VALUE_FRAME_ID.
6095         (value_copy): Use VALUE_FRAME_ID.
6096         * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6097         * valops.c (value_assign): Update.  Use frame_find_by_id.
6098
6099 2003-06-05  Michal Ludvig  <mludvig@suse.cz>
6100
6101         * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6102         in each pass.
6103
6104 2003-06-05  Jeff Johnston  <jjohnstn@redhat.com>
6105
6106         * thread-db.c (check_event): For create/death event breakpoints,
6107         loop through all messages to ensure that we read the message
6108         corresponding to the breakpoint we are at.
6109
6110 2003-06-04  Michael Snyder  <msnyder@redhat.com>
6111
6112         * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6113
6114 2003-06-04  Mark Kettenis  <kettenis@gnu.org>
6115
6116         * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6117         (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6118         (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6119         when handling .eh_frame sections.
6120
6121 2003-06-04  J. Brobecker  <brobecker@gnat.com>
6122
6123         * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6124         prepare_to_proceed procedure instead of the hppa-specific one.
6125         * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6126
6127 2003-06-04  Jeff Johnston  <jjohnstn@redhat.com>
6128
6129         * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6130         * config.in: Regenerated.
6131         * configure.in: Add test for syscall function and check for
6132         __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6133         * configure: Regenerated.
6134         * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6135         <sys/syscall.h>.
6136         (kill_lwp): New function that uses tkill syscall or
6137         uses kill, depending on whether threading model is nptl or not.
6138         All callers of kill() changed to use kill_lwp().
6139         (lin_lwp_wait): Make special check when WIFEXITED occurs to
6140         see if all threads have already exited in the nptl model.
6141         (stop_and_resume_callback): New callback function used by the
6142         lin_lwp_wait thread exit handling code.
6143         (stop_wait_callback): Check for threads already having exited and
6144         delete such threads fromt the lwp list when discovered.
6145         (stop_callback): Don't assert retcode of kill call.
6146
6147         Roland McGrath  <roland@redhat.com>
6148         * i386-linux-nat.c (ps_get_thread_area): New function needed by
6149         nptl libthread_db.
6150
6151 2003-06-03  Richard Henderson  <rth@redhat.com>
6152
6153         * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6154         (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6155         (alpha_sigtramp_frame_prev_register): Likewise.
6156         (alpha_heuristic_frame_prev_register): Likewise.
6157         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6158
6159         * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6160         alpha-specific register id names.
6161         (alpha_mdebug_frame_unwind_cache): Likewise.
6162         (alpha_mdebug_frame_prev_register): Likewise.
6163
6164 2003-06-03  Richard Henderson  <rth@redhat.com>
6165
6166         * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6167         * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6168         * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6169         * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6170         unwind routines.
6171         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6172         * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6173         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6174
6175         * alpha-linux-tdep.c: Remove unnecessary includes.
6176         * Makefile.in (alpha-linux-tdep.o): Update.
6177
6178 2003-06-03  Richard Henderson  <rth@redhat.com>
6179
6180         * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6181         (alphabsd_fill_fpreg): Likewise.
6182
6183 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6184
6185         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr):  Replace
6186         references to struct frame_info fields by calls to the equivalent
6187         accessors. Necessary now that frame_info is opaque.
6188
6189 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6190
6191         * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6192         (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6193         structure, field no longer exists.
6194
6195 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6196
6197         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6198         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6199
6200 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6201
6202         * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6203         references to struct frame_info fields by calls to the equivalent
6204         accessors. Necessary now that frame_info is opaque.
6205
6206 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6207
6208         * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6209         (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6210         structure, field no longer exists.
6211
6212 2003-06-03  Theodore A. Roth  <troth@openavr.org>
6213
6214         * remote.c (init_remote_state): Compute sizeof_g_packet by
6215         accumulation of the size of all registers instead of blindly using
6216         DEPRECATED_REGISTER_BYTES.
6217
6218 2003-06-03  Michael Snyder  <msnyder@redhat.com>
6219
6220         * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6221         * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6222         for h8300sx.
6223
6224 2003-06-03  J. Brobecker  <brobecker@gnat.com>
6225
6226         * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6227         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6228
6229 2003-06-03  Andrew Cagney  <cagney@redhat.com>
6230
6231         * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6232         (sparc_convert_to_raw): Delete function.
6233         (sparc_gdbarch_init): Do not set register_convert_to_raw or
6234         register_convert_to_virtual.
6235
6236 2003-06-03  Jeff Johnston  <jjohnstn@redhat.com>
6237
6238         * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6239         layer if not dealing with a statically-linked threaded program.
6240
6241 2003-06-03  Kris Warkentin  <kewarken@qnx.com>
6242
6243         * solib.c (solib_open): Update comment to reflect actual search order.
6244
6245 2003-06-03  Andrew Cagney  <cagney@redhat.com>
6246
6247         * frame.c (get_frame_memory_signed): New function.
6248         (get_frame_memory, get_frame_memory_unsigned): New function.
6249         (get_frame_arch): New function.
6250         * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6251         (get_frame_memory, get_frame_unsigned_memory): Declare.
6252         * d10v-tdep.c (d10v_frame_unwind_cache): Use
6253         get_frame_memory_unsigned and get_frame_arch.
6254         (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6255
6256 2003-06-03  Raoul Gough  <RaoulGough@yahoo.co.uk>
6257
6258         * MAINTAINERS (write after approval): Add myself.
6259
6260 2003-06-03  Jim Blandy  <jimb@redhat.com>
6261
6262         * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6263         elements of gregset_t are 64 bits each, but access registers
6264         are still 32 bits, so they're packed two per gregset_t
6265         element.  Unpack/pack them properly.
6266
6267 2003-06-02  David Carlton  <carlton@bactrian.org>
6268
6269         * linespec.c (find_methods): Break out code into
6270         add_matching_methods and add_constructors.
6271         (add_matching_methods): New.
6272         (add_constructors): Ditto.
6273
6274 2003-06-02  Andrew Cagney  <cagney@redhat.com>
6275
6276         * sparc-tdep.c (sparc_print_registers): Delete call to
6277         REGISTER_CONVERTIBLE.
6278         (sparc_gdbarch_init): Do not set register_convertible.
6279         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6280         * frv-tdep.c (frv_gdbarch_init): Ditto.
6281         * cris-tdep.c (cris_gdbarch_init): Ditto.
6282
6283 2003-06-02  Elena Zannoni  <ezannoni@redhat.com>
6284
6285         * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6286         * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6287         (syms_from_objfile): Ditto.
6288
6289 2003-06-03  Andreas Schwab  <schwab@suse.de>
6290
6291         * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6292         (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6293
6294 2003-06-02  Richard Henderson  <rth@redhat.com>
6295
6296         * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6297         a member of all_reggroup.
6298
6299 2003-06-02  Richard Henderson  <rth@redhat.com>
6300
6301         * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6302         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6303         (alpha_lds, alpha_sts): New.
6304         (alpha_convert_register_p): Change from _register_convertible.
6305         (alpha_register_to_value): Change from _convert_to_virtual;
6306         restructure and fail for type sizes other than 4 or 8.
6307         (alpha_value_to_register): Similarly.
6308         (alpha_extract_return_value): Use alpha_sts.
6309         (alpha_store_return_value): Use alpha_lds.
6310         (alpha_gdbarch_init): Update hooks.
6311
6312 2003-06-02  Richard Henderson  <rth@redhat.com>
6313
6314         * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6315         regnum identifiers.
6316         (alpha_sigtramp_register_address): Likewise.
6317
6318 2003-06-02  Richard Henderson  <rth@redhat.com>
6319
6320         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6321         (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6322         * alpha-tdep.h: Declare them.
6323
6324         * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6325         Remove zerobuf.  Don't error on UNIQUE.
6326         (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6327         (ALPHA_REGSET_UNIQUE): Provide default.
6328         (supply_gregset): Use alpha_supply_int_regs.
6329         (fill_gregset): Use alpha_fill_int_regs.
6330         (supply_fpregset): Use alpha_supply_fp_regs.
6331         (fill_fpregset): Use alpha_fill_fp_regs.
6332         * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6333         (alphabsd_supply_reg): Use alpha_supply_int_regs.
6334         (alphabsd_fill_reg): Use alpha_fill_int_regs.
6335         (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6336         (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6337         * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6338
6339 2003-06-02  Richard Henderson  <rth@redhat.com>
6340
6341         * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6342
6343         * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6344         (alpha_store_return_value): Likewise.
6345
6346 2003-06-02  David Carlton  <carlton@math.stanford.edu>
6347
6348         * block.c (contained_in): Add 'const' to arguments.
6349         (block_function): Ditto.
6350         * block.h: Update declarations for block_function and
6351         contained_in.
6352
6353 2003-06-02  David Carlton  <carlton@math.stanford.edu>
6354
6355         * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6356         * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6357         * p-valprint.c (pascal_val_print): Ditto.
6358         * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6359
6360 2003-06-02  Richard Henderson  <rth@redhat.com>
6361
6362         * alpha-tdep.c (alpha_push_dummy_call): Use
6363         builtin_type_ieee_double_little instead of builtin_type_double.
6364
6365         * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6366         sign-extension of 32-bit values.
6367         (alpha_store_return_value): Similarly.
6368
6369         * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6370         (alpha_extract_return_value): Likewise.
6371         (alpha_store_return_value): Likewise.
6372
6373         * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6374         (alpha_store_return_value): Error on IEEE Quad floats.
6375
6376         * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6377         (alpha_extract_struct_value_address): Likewise.
6378         (alpha_store_return_value): Likewise.
6379         (alpha_store_struct_return): Remove.
6380         (alpha_gdbarch_init): Update hook registration to match.
6381
6382         * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6383         deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6384         macros where appropriate.
6385         (alpha_register_convert_to_raw): Similarly.  Use unpack_long.
6386         (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6387
6388         * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6389         for SP, GP; void_func_ptr for PC; non-language-specific types
6390         for all others.
6391         * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6392
6393 2003-06-02  Richard Henderson  <rth@redhat.com>
6394
6395         * top.h (lim_at_start): Declare.
6396         * main.c (captured_main): Set it.
6397         * top.c (lim_at_start): Define.
6398         (command_loop): Use it instead of &environ.
6399         * event-top.c (command_handler): Likewise.
6400
6401 2003-06-01  Jason Thorpe  <thorpej@wasabisystems.com>
6402
6403         * mipsnbsd-tdep.c: Update copyright years.
6404         (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6405
6406 2003-06-01  Richard Henderson  <rth@redhat.com>
6407
6408         * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6409         (alpha-linux-tdep.o): Update dependencies.
6410         (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6411         * alpha-mdebug-tdep.c: Remove unneeded includes.
6412
6413 2003-06-01  Richard Henderson  <rth@redhat.com>
6414
6415         * alpha-tdep.c (alpha_register_reggroup_p): New.
6416         (alpha_gdbarch_init): Register it.
6417
6418 2003-06-02  Andrew Cagney  <cagney@redhat.com>
6419
6420         * dwarfread.c: Eliminate "register"
6421         (decode_die_type): Eliminate assignment within "if".
6422         (struct_type, decode_array_element_type): Ditto.
6423         (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6424         (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6425         (decode_modified_type, completedieinfo): Ditto.
6426         * block.c: Eliminate "register".
6427         (blockvector_for_pc_sect): Eliminate assignment within "if".
6428         * cp-support.h (struct symbol): Opaque declaration.
6429         * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6430
6431 2003-06-01  Richard Henderson  <rth@redhat.com>
6432
6433         * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6434         (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6435
6436 2003-06-01  Adam Fedor  <fedor@gnu.org>
6437
6438         * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6439         * gdbarch.[ch]: Regenerate.
6440         * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6441         (hppa_gdbarch_init): Set it in the gdbarch vector.
6442         * i386-tdep.c (i386_fetch_pointer_argument): New
6443         (i386_gdbarch_init): Set it into gdbarch.
6444         * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6445         (rs6000_gdbarch_init): Set it in gdbarch.
6446         * sparc-tdep.c (sparc_fetch_pointer_argument): New
6447         (sparc_gdbarch_init): Set it in gdbarch.
6448
6449 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6450
6451         * defs.h (extract_address): Delete declaration.
6452         * findvar.c (extract_address): Delete function.
6453         * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6454         extract_address with the inline equivalent,
6455         extract_unsigned_integer.
6456         (xstormy16_extract_struct_value_address): Ditto.
6457         (xstormy16_pointer_to_address): Ditto.
6458         * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6459         * v850-tdep.c (v850_push_arguments): Ditto.
6460         (v850_extract_return_value): Ditto.
6461         (v850_extract_struct_value_address): Ditto.
6462         * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6463         (sparcnbsd_get_longjmp_target_64): Ditto.
6464         * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6465         (get_longjmp_target): Ditto.
6466         * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6467         (sh64_extract_struct_value_address): Ditto.
6468         (sh_push_arguments): Ditto.
6469         (sh64_push_arguments): Ditto.
6470         * remote-vxsparc.c (vx_read_register): Ditto.
6471         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6472         * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6473         * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6474         * mipsv4-nat.c (get_longjmp_target): Ditto.
6475         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6476         * mips-nat.c (get_longjmp_target): Ditto.
6477         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6478         * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6479         * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6480         * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6481         * irix5-nat.c (get_longjmp_target): Ditto.
6482         * irix4-nat.c (get_longjmp_target): Ditto.
6483         * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6484         (ia64_push_arguments): Ditto.
6485         * hpux-thread.c (hpux_thread_store_registers): Ditto.
6486         * h8300-tdep.c (h8300_push_arguments): Ditto.
6487         (h8300_store_return_value): Ditto.
6488         (h8300_extract_struct_value_address): Ditto.
6489         * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6490         (frv_push_arguments): Ditto.
6491         * avr-tdep.c (avr_pointer_to_address): Ditto.
6492         (avr_push_arguments): Ditto.
6493         * arm-tdep.c (arm_push_dummy_call): Ditto.
6494         (arm_get_longjmp_target): Ditto.
6495         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6496         * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6497         (alpha_get_longjmp_target): Ditto.
6498
6499         * solib-irix.c (extract_mips_address): Inline extract_address,
6500         replacing it with extract_signed_integer.
6501         * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6502         (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6503         (first_link_map_member, open_symbol_file_object): Ditto.
6504         (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6505         * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6506         (LM_NEXT, LM_NAME): Ditto.
6507
6508 2003-06-01  Richard Henderson  <rth@redhat.com>
6509
6510         * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6511         * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6512         (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6513         (alpha_cannot_store_register): Likewise.
6514         * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6515         * alpha-nat.c (supply_gregset): Likewise.
6516         * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6517
6518 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6519
6520         * infcall.c (call_function_by_hand): Update comment on
6521         DEPRECATED_DUMMY_WRITE_SP.
6522
6523         * mips-tdep.c (mips_gdbarch_init): Do not set
6524         deprecated_dummy_write_sp.
6525         (mips_eabi_push_dummy_call): Set the SP register.
6526         (mips_o64_push_dummy_call): Set the SP register.
6527         (mips_o32_push_dummy_call): Set the SP register.
6528         (mips_n32n64_push_dummy_call): Set the SP register.
6529
6530 2003-06-01  Richard Henderson  <rth@redhat.com>
6531
6532         * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6533         instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6534         (supply_gregset): Likewise.
6535         * alpha-tdep.c (alpha_store_return_value): Likewise.
6536         (alpha_get_longjmp_target): Likewise.
6537         (alpha_register_name): Constify array.
6538         (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6539         deprecated_register_size, deprecated_register_bytes,
6540         deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6541         * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6542         (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6543
6544 2003-06-01  Richard Henderson  <rth@redhat.com>
6545
6546         * alpha-tdep.c (alpha_push_dummy_call): Store sp.  Tidy copies
6547         from arg_reg_buffer to regcache to avoid double conversion.
6548
6549 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
6550
6551         * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6552         SP_REGNUM.
6553         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6554         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6555
6556 2003-06-01  Richard Henderson  <rth@redhat.com>
6557
6558         * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6559         (decode_frame_entry): Set it.  Skip FDE augmentation.
6560
6561 2003-06-01  Richard Henderson  <rth@redhat.com>
6562
6563         * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6564         not overlapping PC_REGNUM.
6565
6566 2003-06-01  Richard Henderson  <rth@redhat.com>
6567
6568         * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6569         alpha_push_arguments.  Don't dump argument register data to
6570         the target stack.  Fix float and 128-bit long double semantics.
6571         Store $t12 and $ra as specified by the ABI.  Use regcache everywhere.
6572         (alpha_fix_call_dummy): Remove.
6573         (alpha_call_dummy_words): Remove.
6574         (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6575
6576 2003-06-01  Richard Henderson  <rth@redhat.com>
6577
6578         * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6579
6580 2003-06-01  Andrew Cagney  <cagney@redhat.com>
6581
6582         * mips-tdep.c (is_mips16_addr): New function.
6583         (make_mips16_addr, unmake_mips16_addr): New functions.
6584         (pc_is_mips16, mips_fetch_instruction): Use.
6585         (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6586         (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6587         (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6588         UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6589         TARGET_MIPS.
6590         * config/mips/tm-mips.h: Update copyright.
6591         (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6592         (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6593         (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6594         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6595         (TM_PRINT_INSN_MACH): Delete.
6596         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6597
6598         * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6599         mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6600         mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6601         mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6602         mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*.  Delete
6603         mips*tx39*el*-elf*.  Map mips*-sony-* and mips64*-big-* onto
6604         mips64.  Map mips*-dec-*, mips*-big-*, mips*-little-*,
6605         mips*-*-riscos* and mips*-*-sysv* onto mips.
6606         * config/mips/mips64.mt: New file.
6607         * config/mips/mips.mt: New file.
6608         * config/mips/littlemips.mt: Delete file.
6609         * config/mips/decstation.mt: Delete file.
6610         * config/mips/vr4300el.mt: Delete file.
6611         * config/mips/vr5000el.mt: Delete file.
6612         * config/mips/vr5000.mt: Delete file.
6613         * config/mips/vr4100.mt: Delete file.
6614         * config/mips/vr4xxxel.mt: Delete file.
6615         * config/mips/vr4300.mt: Delete file.
6616         * config/mips/vr4xxx.mt: Delete file.
6617         * config/mips/bigmips.mt: Delete file.
6618         * config/mips/bigmips64.mt: Delete file.
6619         * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6620         * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6621         * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6622         * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6623         * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6624         "tm-bigmips.h".
6625         * config/mips/tm-irix3.h: Ditto.
6626         * config/mips/tm-mipsv4.h: Ditto.
6627         * config/mips/tm-embed.h: Ditto.
6628         * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6629         "tm-bigmips64.h".
6630         * config/mips/tm-vr5000el.h: Delete file.
6631         * config/mips/tm-tx39l.h: Delete file.
6632         * config/mips/tm-vr4300el.h: Delete file.
6633         * config/mips/tm-vr4xxxel.h: Delete file.
6634         * config/mips/tm-vr4300.h: Delete file.
6635         * config/mips/tm-vr4100.h: Delete file.
6636         * config/mips/tm-vr4xxx.h: Delete file.
6637         * config/mips/tm-vr5000.h: Delete file.
6638         * config/mips/tm-embedl64.h: Delete file.
6639         * config/mips/tm-embedl.h: Delete file.
6640         * config/mips/tm-embed64.h: Delete file.
6641         * config/mips/tm-bigmips64.h: Delete file.
6642         * config/mips/tm-bigmips.h: Delete file.
6643
6644 2003-06-01  Mark Kettenis  <kettenis@gnu.org>
6645
6646         Fix gdb/1216.
6647         * shnbsd-nat.c: Include "sh-tdep.h".
6648
6649         From Richard Henderson  <rth@redhat.com>:
6650         * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6651
6652 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6653
6654         * mips-tdep.c (set_reg_offset): Add saved_regs parameter.  Add
6655         forward declaration.
6656         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6657         (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6658         (mips_find_saved_regs): Use set_reg_offset.
6659         (mips_frame_init_saved_regs): Delete function.
6660         (mips_pop_frame): Call mips_find_saved_regs instead of
6661         DEPRECATED_FRAME_INIT_SAVED_REGS.
6662
6663 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6664
6665         * mips-tdep.c (mips_gdbarch_init): Do not set
6666         deprecated_max_register_raw_size, register_virtual_size, and
6667         deprecated_max_register_virtual_size.
6668
6669 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6670
6671         * i386-tdep.c: Include "dwarf2-frame.h".
6672         (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6673         * Makefile.in (i386-tdep.o): Update dependencies.
6674
6675         * dwarf2-frame.c, dwarf2-frame.h: New files.
6676         * Makefile.in (SFILES): Add dwarf2-frame.c.
6677         (dwarf2_frame_h): Define.
6678         (COMMON_OBS): Add dwarf2-frame.o.
6679         (dwarf2-frame.o): Add dependencies.
6680
6681 2003-05-31  Andreas Jaeger  <aj@suse.de>
6682
6683         * x86-64-linux-nat.c: Fix comment.
6684
6685 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6686
6687         * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6688         function signature.
6689
6690         * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6691         have a sigcontext_addr handler.
6692         * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6693         sigcontext_addr handler.
6694
6695 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6696
6697         * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6698         (print_fp_register_row): Replace do_fp_register_row.
6699         (mips_print_fp_register): Add "file" and "frame" parameters.
6700         (mips_print_register): Add "file" and "frame" parameters.
6701         (mips_print_registers_info): Replace mips_do_registers_info.
6702         (mips_gdbarch_init): Set print_registers_info instead of
6703         deprecated_do_registers_info.
6704         (mips_read_fp_register_single): Add "frame" parameter.
6705         (mips_read_fp_register_double): Add "frame" parameter.
6706
6707 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6708
6709         * i386-tdep.c (i386_register_name): Check for MMX registers first.
6710         Fixes a bug where GDB would print the wrong register names for
6711         targets without SSE.
6712
6713         * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6714         (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6715         registers.
6716
6717         * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6718         (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6719         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6720         TDEP->sc_sp_offset.
6721
6722         From Michal Ludvig  <mludvig@suse.cz>:
6723         * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6724         and `sc_num_regs'.
6725         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6726         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6727         I386_ST0_REGNUM): Move here from...
6728         * i386-tdep.c: ... here.
6729         (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6730         (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6731         registers if possible.
6732         (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6733         * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6734         Remove variables.
6735         (i386bsd_sc_reg_offset): New variable.
6736         (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6737         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6738         TDEP->sc_sp_offset.
6739         (i386fbsd_sc_reg_offset): New variable.
6740         (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6741         TDEP->sc_num_regs.
6742         (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6743         variables.
6744         (i386fbsd4_sc_reg_offset): New variable.
6745         (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6746         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6747         TDEP->sc_sp_offset.
6748         * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6749         (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6750         * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6751         Remove variables.
6752         (i386nbsd_sc_reg_offset): New variable.
6753         (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6754         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6755         TDEP->sc_sp_offset.
6756         * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6757         Remove variables.
6758         (i386obsd_sc_reg_offset): New variable.
6759         (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6760         TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6761         TDEP->sc_sp_offset.
6762         * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6763         i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c.  Add check
6764         for frame pointer offset in `struct sigcontext'.
6765
6766 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6767
6768         * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6769         architecture methods call_dummy_words, sizeof_call_dummy_words,
6770         push_return_address, store_struct_return, and fix_call_dummy.  Set
6771         push_dummy_call instead of deprecated_push_arguments.
6772         (mips_store_struct_return): Delete function.
6773         (mips_fix_call_dummy): Delete function.
6774         (mips_push_return_address): Delete function.
6775         (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6776         RA_REGNUM and T9_REGNUM.
6777         (mips_n32n64_push_dummy_call): Ditto for
6778         mips_n32n64_push_arguments.
6779         (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6780         (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6781
6782 2003-05-31  Andrew Cagney  <cagney@redhat.com>
6783
6784         * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter.  Rename
6785         "dummy_addr" to "bp_addr".
6786         * infcall.c (call_function_by_hand): Pass "funaddr" to
6787         gdbarch_push_dummy_call.
6788         * gdbarch.h, gdbarch.c: Re-generate.
6789         * i386-tdep.c (i386_push_dummy_call): Update.
6790         * arm-tdep.c (arm_push_dummy_call): Update.
6791         * d10v-tdep.c (d10v_push_dummy_call): Update.
6792
6793 2003-05-31  Mark Kettenis  <kettenis@gnu.org>
6794
6795         * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6796         variable declarations.
6797         (x86_64_register_number, x86_64_register_name): Remove prototypes.
6798         (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6799         x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6800         x86_64_init_frame_pc, x86_64_init_frame_pc,
6801         x86_64_function_has_prologue): Remove prototypes.
6802         (X86_64_NUM_GREGS): New define.
6803         (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6804         * x86-64-tdep.c: Don't include "dwarf2cfi.h".  Include
6805         "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6806         (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6807         XMM1_REGNUM): Remove defines.
6808         (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6809         X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6810         X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6811         X86_64_XMM1_REGNUM): New defines.
6812         (struct x86_64_register_info): Renamed from `struct
6813         register_info'.  Remove `size' member.
6814         (x86_64_register_info_table): Remove variable.
6815         (x86_64_register_info): New variable.
6816         (X86_64_NUM_REGS): New define.
6817         (X86_64_NUM_GREGS): Remove define.
6818         (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6819         (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6820         Remove variables.
6821         (x86_54_dwarf2_reg_to_regnum): Remove function.
6822         (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6823         (x86_64_dwarf_reg_to_regnum): New function.
6824         (x86_64_register_name): Rewrite.
6825         (x86_64_register_raw_size): Remove function.
6826         (x86_64_register_byte_table): Remove variable.
6827         (x86_64_register_byte): Remove function.
6828         (x86_64_register_virtual_type): Remove function.
6829         (x86_64_register_type): New function.
6830         (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6831         x86_64_register_convert_to_raw): Remove functions.
6832         (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6833         (x86_64_use_struct_convention): Make static.  Adjust for renamed
6834         defines.
6835         (x86_64_frame_init_saved_regs): Remove function.
6836         (x86_64_push_arguments): Make static.  Change to accept a regcache
6837         as argument.
6838         (x86_64_store_return_value, x86_64_extract_return_value): Make
6839         static.  Rewrite based on i386 counterparts.
6840         (x86_64_push_dummy_call): New function.
6841         (X86_64_NUM_SAVED_REGS): New define.
6842         (x86_64_register_number): Remove function.
6843         (x86_64_store_struct_return): Remove function.
6844         (x86_64_frameless_function_invocation,
6845         x86_64_function_has_prologue): Remove functions.
6846         (PROLOG_BUFSIZE): Remove define.
6847         (struct x86_64_frame_cache): New structure.
6848         (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6849         x86_64_frame_cache, x86_64_frame_this_id,
6850         x86_64_frame_prev_register, x86_64_frame_p,
6851         x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6852         x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6853         functions.
6854         (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6855         variables.
6856         (x86_64_skip_prologue): Rewrite in terms of
6857         x86_64_analyze_prologue.
6858         (x86_64_frame_base_address): New function.
6859         (x86_64_frame_base): New variable.
6860         (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6861         (x86_64_init_abi): Set register_type and push_dummy_call.  Don't
6862         set deprecated_fp_regnum, deprecated_register_size,
6863         deprecated_register_bytes, register_raw_size, register_byte,
6864         register_virtual_type, register_convertiable,
6865         register_convert_to_virtual, convert_to_raw,
6866         deprecated_get_saved_register, deprecated_target_read_fp,
6867         deprecated_push_arguments, deprecated_push_return_address,
6868         deprecated_pop_frame, deprecated_store_struct_return,
6869         deprecated_frame_init_saved_regs, deprecated_frame_chain,
6870         frameless_function_invocation, deprecated_frame_saved_pc,
6871         deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6872         dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6873         deprecated_init_frame_pc and virtual_frame_pointer.  Call
6874         frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6875         and x86_64_frame_p.  Call frame_base_set_default to register
6876         x86_64_frame_base.
6877         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6878         (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6879         (_initialize_x86_64_tdep): Remove function.
6880         * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6881         (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6882         LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6883         define.
6884         (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6885         (x86_64_linux_sigcontext_addr): Rewrite.
6886         (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6887         x86_64_linux_frame_saved_pc): Remove functions.
6888         (x86_64_linux_pc_in_sigtramp): Renamed from
6889         x86_64_linux_in_sigtramp.  Try harder to recognize a signal
6890         trampoline.
6891         (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6892         Remove_functions.
6893         (x86_64_linux_init_abi): Set pc_in_sigtramp.  Initialize
6894         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6895         * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6896         (x86_64_regmap): Rename to regmap.
6897         (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6898         x86_64_num_gregs.
6899         (supply_gregset, fill_gregset): Likewise.  Use regmap instead of
6900         x86_64_regmap.
6901         (x86_64_fxsave_offset): Remove function.
6902         (supply_fpregset): Simply call x86_64_supply_fxsave.
6903         (fill_fpregset): Simply call x86_64_fill_fxsave.
6904         (fetch_inferior_registers, store_inferior_registers): Avoid
6905         asignment in if-statement.
6906         (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6907         SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6908         LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6909         (fetch_core_registers): Remove function.
6910         (linux_elf_core_fns): Remove.
6911         (offsetoff): Don't define.
6912         (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6913         * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6914         * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6915         add core-regset.o.
6916         * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6917         protection against multiple includes instead of NM_X86_64_h.  Add
6918         various comments.  Include "config/nm-linux.h".  Don't include
6919         <signal.h>.
6920         (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6921         GET_THREAD_SIGNALS): Remove defines.
6922         (x86_64_register_u_addr, kernel_u_size,
6923         lin_thread_get_thread_signals): Remove prototypes.
6924         (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6925         [HAVE_LINK_H]: Don't include "solib.h".
6926         [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6927         * config/i386/tm-x86-64linux.h: Fix comments.
6928         * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6929         x86-64-tdep.o): Update dependencies.
6930
6931 2003-05-30  Andrew Cagney  <cagney@redhat.com>
6932
6933         * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6934         Change parameter type to a "struct regcache *".
6935
6936         * gdbarch.sh: Regardless of the multi-arch level, always define
6937         the macro when not already defined.
6938         * gdbarch.h, gdbarch.c: Re-generate.
6939
6940 2003-05-30  Richard Henderson  <rth@redhat.com>
6941
6942         * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6943         (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6944         (alpha_mdebug_frame_this_id): Likewise.
6945         (alpha_mdebug_frame_prev_register): Likewise.
6946         (alpha_mdebug_frame_base_address): Likewise.
6947         (alpha_mdebug_frame_locals_address): Likewise.
6948         (alpha_mdebug_frame_args_address): Likewise.
6949         (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6950         * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6951         (alpha_heuristic_frame_unwind_cache): Make static; add missing
6952         loop increment.
6953         (alpha_heuristic_frame_this_id): Make static.
6954         (alpha_heuristic_frame_prev_register): Likewise.
6955         (alpha_heuristic_frame_base_address): Likewise.
6956         * alpha-tdep.h: Update.
6957
6958 2003-05-30  Mark Kettenis  <kettenis@gnu.org>
6959
6960         * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6961         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6962         defenitions.
6963         (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6964         * i386-tdep.c: Mark functions that are 64-bit safe as such.
6965         (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6966         I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6967         I386_ST0_REGNUM): New defines.
6968         (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6969         codestream_get): Remove define.
6970         (codestream_next_addr, condestream_addr, condestream_buf,
6971         codestream_off, codestream_cnt): Remove variables.
6972         (codestream_fill, codestream_seek, codestream_read): Remove
6973         functions.
6974         (i386_follow_jump): Rewrite to avoid usage of removed codestream
6975         functionality.
6976         (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6977         i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6978         i386_frame_saved_pc, i386_saved_pc_after_call,
6979         i386_frame_num_args, i386_frame_init_saved_regs,
6980         i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6981         i386_push_arguments): Remove functions.
6982         (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6983         functionality.  Use i386_analyze_prologue instead of
6984         i386_get_frame_setup.
6985         (I386_NUM_SAVED_REGS): New define.
6986         (struct i386_frame_cache): New structure.
6987         (i386_alloc_frame_cache, i386_analyze_struct_return,
6988         i386_skip_probe, i386_analyze_frame_setup,
6989         i386_analyze_register_saves, i386_analyze_prologue,
6990         i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6991         i386_frame_prev_register, i386_sigtramp_frame_cache,
6992         i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6993         i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6994         i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6995         New functions.
6996         (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6997         New variables.
6998         (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6999         I386_EAX_REGNUM and I386_EDX_REGNUM.
7000         (i386_extract_return_value, i386_store_return_value): Use
7001         I386_ST0_REGNUM where appropriate.
7002         (i386_extract_struct_value_address): Rewrite to use extract_address.
7003         (i386_svr4_pc_in_sigtramp): Add comment.
7004         (i386_svr4_sigcontext_addr): Rewrite.
7005         (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
7006         TDEP->sc_sp_offset.
7007         (i386_gdbarch_init): Don't set deprecated_init_frame_pc.  Set
7008         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
7009         of new defines.  Set push_dummy_call, don't set
7010         deprecated_push_arguments, deprecated_push_return_address,
7011         deprecated_pop_frame.  Don't set parm_boundary.  Don't set
7012         deprecated_frame_chain, deprecated_frame_saved_pc,
7013         deprecated_saved_pc_after_call.  Set unwind_dummy_id,
7014         save_dummy_frame_tos, unwind_pc.  Call
7015         frame_unwind_append_predicate and frame_base_set_default.  Don't
7016         set deprecated_dummy_write_pc.  Don't set deprecated_fp_regnum.
7017         Don't set frameless_function_invocation.  Don't set
7018         deprecated_register_bytes, deprecated_register_size,
7019         deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7020         * i386-linux-tdep.c: Fix formatting in some comments.
7021         (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7022         LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7023         LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7024         LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7025         LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7026         redundant parentheses.
7027         (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7028         (i386_linux_sigcontext_addr): Use it.  Rewrite.
7029         (find_minsym_and_objfile): Change name of second argument.
7030         (skip_gnu_resolver): Renamed from skip_hurd_resolver.  All callers
7031         changed.  Use frame_pc_unwind instead of
7032         DEPRECATED_SAVED_PC_AFTER_CALL.
7033         (i386_linux_init_abi): Don't set deprecated_register_bytes.
7034         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7035         * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7036         unwinder.
7037         * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7038         "dummy-frame.h".
7039         (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7040         (_initialize_i386_cygwin_tdep): New prototype.
7041         (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7042         deprecated_frame_chain_valid.
7043         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7044         TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7045         Rely on the SVR4 defaults.
7046         * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7047         * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7048
7049 2003-05-30  Andrew Cagney  <cagney@redhat.com>
7050
7051         * infcall.c (call_function_by_hand): Always call
7052         DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7053
7054 2003-05-30  Richard Henderson  <rth@redhat.com>
7055
7056         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7057         increment.
7058
7059 2003-05-29  Jim Blandy  <jimb@redhat.com>
7060
7061         Use gdbarch methods for solib stuff on PowerPC Linux.
7062         * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7063         SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7064         show through.
7065         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7066         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7067         giving the same effect as the #definitions above.
7068
7069 2003-05-29  Adam Fedor  <fedor@gnu.org>
7070
7071         * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7072         (find_implementation_from_class): Replace it with the standard
7073         case i.e. do nothing.
7074
7075 2003-05-29  Richard Henderson  <rth@redhat.com>
7076
7077         * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7078         (alpha_linux_sigtramp_offset): Use it.  Make static.
7079         (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7080         update for new frame model.
7081         * alpha-mdebug-tdep.c: New file.
7082         * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7083         (alpha_osf1_init_abi): Install it.
7084         * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7085         (linked_proc_desc_table): Remove.
7086         (alpha_frame_past_sigtramp_frame): Remove.
7087         (alpha_dynamic_sigtramp_offset): Remove.
7088         (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7089         (alpha_proc_desc_is_dyn_sigtramp): Remove.
7090         (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7091         (push_sigtramp_desc): Remove.
7092         (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7093         (alpha_cannot_store_register): Likewise.
7094         (alpha_sigcontext_addr): Remove.
7095         (alpha_find_saved_regs): Remove.
7096         (alpha_frame_init_saved_regs): Remove.
7097         (alpha_init_frame_pc_first): Remove.
7098         (read_next_frame_reg): Remove.
7099         (alpha_frame_saved_pc): Remove.
7100         (alpha_saved_pc_after_call): Remove.
7101         (temp_proc_desc, temp_saved_regs): Remove.
7102         (alpha_about_to_return): Remove.
7103         (cached_proc_desc): Remove.
7104         (alpha_frame_chain): Remove.
7105         (alpha_print_extra_frame_info): Remove.
7106         (alpha_init_extra_frame_info): Remove.
7107         (alpha_frame_locals_address): Remove.
7108         (alpha_frame_args_address): Remove.
7109         (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7110         (alpha_push_dummy_frame): Remove.
7111         (alpha_pop_frame): Remove.
7112         (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7113         (alpha_read_insn): New.
7114         (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7115         for different insn encodings.
7116         (alpha_in_lenient_prologue): Remove.
7117         (struct alpha_sigtramp_unwind_cache): New.
7118         (alpha_sigtramp_frame_unwind_cache): New.
7119         (alpha_sigtramp_register_address): New.
7120         (alpha_sigtramp_frame_this_id): New.
7121         (alpha_sigtramp_frame_prev_register): New.
7122         (alpha_sigtramp_frame_unwind): New.
7123         (alpha_sigtramp_frame_p): New.
7124         (struct alpha_heuristic_unwind_cache): New.
7125         (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7126         don't count nop insns that occur between functions.
7127         (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7128         heuristic_proc_desc, but without the mdebug wrapping.
7129         (alpha_heuristic_frame_this_id): New.
7130         (alpha_heuristic_frame_prev_register): New.
7131         (alpha_heuristic_frame_unwind): New.
7132         (alpha_heuristic_frame_p): New.
7133         (alpha_heuristic_frame_base_address): New.
7134         (alpha_heuristic_frame_base): New.
7135         (alpha_unwind_dummy_id): New.
7136         (alpha_unwind_pc): New.
7137         (alpha_gdbarch_init): Don't set skip_sigtramp_frame.  Kill use of
7138         frame related deprecated initializations; install replacements.
7139         (alpha_dump_tdep): Remove.
7140         * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7141         (alpha_read_insn, alpha_after_prologue,
7142         alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7143         alpha_heuristic_frame_prev_register,
7144         alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7145         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7146         * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7147         * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7148
7149 2003-05-29  Andrew Cagney  <cagney@redhat.com>
7150
7151         * gdb_assert.h (gdb_assert_fail): Provide different definitions
7152         dependant on the availability of ASSERT_FUNCTION.
7153         (ASSERT_FUNCTION): Do not define when there is no function name.
7154
7155 2003-05-29  Kevin Buettner  <kevinb@redhat.com>
7156
7157         From Jimi X <jimix@watson.ibm.com>:
7158         * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7159
7160 2003-05-28  Jim Blandy  <jimb@redhat.com>
7161
7162         * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7163         argument to ptrace to int; the system headers should give it the
7164         right type, and pointers don't fit in ints on powerpc64-*-*.
7165
7166 2003-05-28  H.J. Lu <hongjiu.lu@intel.com>
7167
7168         * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7169         DW_TAG_catch_block.
7170
7171 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
7172
7173         * stabsread.c (dbx_lookup_type): Make static.
7174         (read_type): Ditto.
7175         (add_undefined_type): Ditto.
7176         * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7177         not export.
7178
7179 2003-05-26  Elena Zannoni  <ezannoni@redhat.com>
7180
7181         * hpread.c (hpread_has_name): Make static.
7182         (hpread_psymtab_to_symtab): Ditto.
7183         (file_exists): Ditto.
7184         (hpread_call_pxdb): Ditto.
7185         (hpread_pxdb_needed): Ditto.
7186         (hpread_quick_traverse): Ditto.
7187         (hpread_get_header): Ditto.
7188         (hpread_get_lntt): Ditto.
7189         (hpread_get_slt): Ditto.
7190         (class_of): Ditto.
7191
7192 2003-05-25  Andreas Schwab  <schwab@suse.de>
7193
7194         * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7195         stack_align and deprecated_extra_stack_alignment_needed.
7196         (m68k_stack_align): Delete.
7197
7198         * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7199         (m68k_register_virtual_size): Likewise.
7200         (altos_skip_prologue): Remove obsolete function.
7201         (isi_frame_num_args): Likewise.
7202         (news_frame_num_args): Likewise.
7203         (m68k_fix_call_dummy): Make static.
7204         (m68k_push_dummy_frame): Likewise.
7205         (m68k_pop_frame): Likewise.
7206         (m68k_skip_prologue): Likewise.
7207         (m68k_frame_init_saved_regs): Likewise.
7208         (m68k_saved_pc_after_call): Likewise.
7209         (m68k_get_longjmp_target): Make multi-arch.
7210         (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7211         structure.  Register m68k_get_longjmp_target if enabled.
7212         * m68k-tdep.h (struct gdbarch_tdep): Define.
7213         * config/m68k/tm-m68k.h: Don't include "regcache.h".
7214
7215         * Makefile.in (config.status): Also depend on configure.tgt
7216         and configure.host.
7217         (m68klinux-tdep.o): Update dependencies.
7218         * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7219         * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7220         (M68K_LINUX_JB_PC): Define.
7221         (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7222         and take additional parameter.
7223         (m68k_linux_sigtramp_saved_pc): Update.
7224         (m68k_linux_init_abi): Set jb_pc and jb_elt_size.  Register
7225         m68k_linux_pc_in_sigtramp, in_plt_section,
7226         find_solib_trampoline_target.
7227         * config/m68k/tm-linux.h: Don't include any tm headers.
7228         (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7229         (JB_ELEMENT_SIZE): Likewise.
7230         (JB_PC): Likewise.
7231         (GET_LONGJMP_TARGET): Likewise.
7232         (IN_SIGTRAMP): Likewise.
7233         (SVR4_SHARED_LIBS): Define this and include "solib.h".
7234
7235 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
7236
7237         * sparc-tdep.c (sparc32_do_push_arguments): New function.
7238         (sparc32_push_arguments): Re-implement by calling
7239         sparc32_do_push_arguments.
7240
7241 2003-05-25  Mark Kettenis  <kettenis@gnu.org>
7242
7243         * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7244         SPARC_O1_REGNUM): New defines.
7245         (sparc32_extract_return_value): Rewrite to operate on a regcache.
7246         (sparc32_store_return_value): New function.
7247         (sparc_extract_struct_value_address): Rewrite to operate on a
7248         regcache.
7249         (sparc_gdbarch_init): Don't set
7250         deprecated_extract_struct_value_address.  Set
7251         extract_struct_value_address instead. Don't set
7252         deprecated_extract_return_value and deprecated_store_return_value
7253         for 32-bit targets.  Set extract_return_value and
7254         store_return_value instead.
7255         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7256         DEPRECTAED_EXTRACT_RETURN_VALUE,
7257         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7258         (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7259         EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7260         (sparc_store_return_value): Remove prototype.
7261         (sparc32_store_return_value): New prototype.
7262         (sparc32_extract_return_value, sparc_extract_struct_value_address):
7263         Adjust prototypes.
7264
7265 2003-05-24  Mark Kettenis  <kettenis@gnu.org>
7266
7267         * sparcnbsd-tdep.c: Include "gdb_string.h".
7268
7269 2003-05-23  Andrew Cagney  <cagney@redhat.com>
7270
7271         * p-valprint.c (pascal_val_print): Replace extract_address with
7272         the inline equivalent extract_unsigned_integer.
7273         * jv-valprint.c (java_value_print): Ditto.
7274         * ada-valprint.c (ada_val_print_1): Ditto.
7275         * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7276
7277 2003-05-23  Theodore A. Roth  <troth@openavr.org>
7278
7279         * blockframe.c (frameless_look_for_prologue): Remove unused
7280         after_prologue variable.
7281
7282 2003-05-23  Mark Kettenis  <kettenis@gnu.org>
7283
7284         * blockframe.c (get_pc_function_start): Rewrite to avoid
7285         asignments in if-statements.
7286
7287 2003-05-23  Raoul Gough  <RaoulGough@yahoo.co.uk>
7288
7289         Committed by Elena Zannoni  <ezannoni@redhat.com>.
7290         * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7291         files, don't relocate absolute symbols (and do use mst_abs).
7292
7293 2003-05-23  Andrew Cagney  <cagney@redhat.com>
7294
7295         * objc-lang.c: Include "gdb_assert.h".
7296         (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7297         (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7298         (gdb_check, gdb_check_fatal): Delete functions.
7299         (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7300         gdb_assert.
7301         (parse_selector, parse_method, find_methods, find_imps): Ditto.
7302         * Makefile.in (objc-lang.o): Update dependencies.
7303
7304 2003-05-22  Ian Lance Taylor  <ian@airs.com>
7305
7306         * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7307         with fprintf_filtered, not fprintf_unfiltered.
7308
7309 2003-05-22  Andrew Cagney  <cagney@redhat.com>
7310
7311         * stack.c (frame_info): Inline extract_address, replacing it with
7312         extract_unsigned_integer.
7313         * findvar.c (unsigned_pointer_to_address): Ditto.
7314         * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7315         * dwarf2expr.c (dwarf2_read_address): Ditto.
7316         * frame.c (frame_pc_unwind): Update comment.
7317         * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7318
7319 2003-05-22  Jeff Johnston  <jjohnstn@redhat.com>
7320
7321         * infptrace.c (detach): Call print_sys_errmsg rather than
7322         perror_with_name to issue warning message when errno is non-zero
7323         after calling ptrace detach.
7324
7325 2003-05-21  J. Brobecker  <brobecker@gnat.com>
7326
7327         * config/pa/tm-hppa.h: Delete some unused macros. Move some
7328         macro definitions from here...
7329         * hppa-tdep.c: ...to there.
7330
7331 2003-05-20  Kevin Buettner  <kevinb@redhat.com>
7332
7333         * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7334         register_ptrace_addr().  Fix all callers.
7335
7336 2003-05-21  Andreas Schwab  <schwab@suse.de>
7337
7338         * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7339         dependencies.
7340         * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7341         end.
7342         * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7343         (_initialize_m68k_linux_tdep): New function.
7344         (m68k_linux_frame_saved_pc): Make static.
7345         (m68k_linux_extract_return_value): Likewise.
7346         (m68k_linux_store_return_value): Likewise.
7347         (m68k_linux_extract_struct_value_address): Likewise.
7348         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7349         Remove.
7350         (DEPRECATED_STORE_RETURN_VALUE): Remove.
7351         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7352         (DEPRECATED_FRAME_SAVED_PC): Remove.
7353
7354 2003-05-20  Kris Warkentin  <kewarken@qnx.com>
7355
7356         * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7357         regset numbering rather than our own.
7358
7359 2003-05-19  David Carlton  <carlton@bactrian.org>
7360
7361         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7362
7363 2003-05-19  David Carlton  <carlton@bactrian.org>
7364
7365         Partial fix for PR c++/827.
7366         * cp-support.h: Include symtab.h.
7367         Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7368         * cp-namespace.c: Update contributors.
7369         (cp_lookup_symbol_nonlocal): New.
7370         (lookup_namespace_scope, cp_lookup_symbol_namespace)
7371         (lookup_symbol_file): Ditto.
7372         * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7373         * block.h: Declare block_scope, block_using, block_global_block.
7374         * block.c (block_scope): New.
7375         (block_using, block_global_block): Ditto.
7376         * Makefile.in (cp_support_h): Depend on symtab_h.
7377         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7378
7379 2003-05-19  David Carlton  <carlton@bactrian.org>
7380
7381         * language.h (struct language_defn): Add 'la_value_of_this'
7382         and 'la_lookup_symbol_nonlocal' members.
7383         * symtab.h: Declare basic_lookup_symbol_nonlocal,
7384         lookup_symbol_static, lookup_symbol_global,
7385         lookup_symbol_aux_block.
7386         * symtab.c (lookup_symbol_aux): Call language hooks to determine
7387         if we should search fields of this and how to do static/global
7388         lookup.
7389         (lookup_symbol_aux_block): Make extern.
7390         (basic_lookup_symbol_nonlocal): New.
7391         (lookup_symbol_static, lookup_symbol_global): Ditto.
7392         * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7393         'la_lookup_symbol_nonlocal' members.
7394         * c-lang.c (c_language_defn, cplus_language_defn)
7395         (asm_language_defn, minimal_language_defn): Ditto.
7396         * jv-lang.c (java_language_defn): Ditto.
7397         * language.c (unknown_language_defn, auto_language_defn)
7398         (local_language_defn): Ditto.
7399         * m2-lang.c (m2_language_defn): Ditto.
7400         * objc-lang.c (objc_language_defn): Ditto.
7401         * scm-lang.c (scm_language_defn): Ditto.
7402         * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7403         * p-lang.c (pascal_language_defn): Ditto for both.
7404         * Makefile.in (f-lang.o): Depend on value_h.
7405         (p-lang.o): Ditto.
7406
7407 2003-05-19  David Carlton  <carlton@bactrian.org>
7408
7409         * block.h: Declare block_static_block.
7410         * block.c (block_static_block): New.
7411         * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7412         lookup_symbol_aux_local, calling block_static_block instead.
7413         (lookup_symbol_aux_local): Delete 'static_block' argument.
7414
7415 2003-05-19  David Carlton  <carlton@bactrian.org>
7416
7417         * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7418
7419 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
7420
7421         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7422         register numbers mapping.
7423
7424 2003-05-18  Adam Fedor  <fedor@gnu.org>
7425
7426         * symtab.c (completion_list_objc_symbol): New function.
7427         (make_symbol_completion_list): Use it to add ObjC symbols
7428         when looking though the list.
7429         (language_search_unquoted_string): New function.
7430         (make_file_symbol_completion_list): Use it.
7431
7432 2003-05-18  Andreas Schwab  <schwab@suse.de>
7433
7434         * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7435         dependencies.
7436         * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7437         as m68k_linux_extract_return_value.
7438         (DEPRECATED_STORE_RETURN_VALUE): Define as
7439         m68k_linux_store_return_value.
7440         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7441         m68k_linux_extract_struct_value_address.
7442         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7443         get_next_frame, get_frame_base, get_frame_pc.
7444         (m68k_linux_frame_saved_pc): Use get_frame_base.
7445         (m68k_linux_extract_return_value): New function.
7446         (m68k_linux_store_return_value): New function.
7447         (m68k_linux_extract_struct_value_address): New function.
7448         * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7449
7450         * c-exp.y (typebase): Remove duplicate occurence of
7451         `SIGNED_KEYWORD LONG LONG'.  Use builtin_type_long_long instead
7452         of lookup_signed_typename.
7453
7454 2003-05-18  Mark Kettenis  <kettenis@gnu.org>
7455
7456         * dwarf2loc.c (find_location_expression): Change type of second
7457         argument to `size_t *'.
7458         (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7459         for size variable.
7460
7461 2003-05-18  David Carlton  <carlton@bactrian.org>
7462
7463         * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7464         'linkage_name'.  Add comment.
7465         (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7466         'linkage_name'.
7467         (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7468         (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7469         (lookup_block_symbol): Ditto.
7470
7471 2003-05-16  Andrew Cagney  <cagney@redhat.com>
7472
7473         * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7474         * gdbarch.h, gdbarch.c: Re-generate.
7475         * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7476         * TODO (REGISTER_BYTES): Delete reference.
7477         * alpha-tdep.c (alpha_gdbarch_init): Update.
7478         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7479         * x86-64-tdep.c (x86_64_init_abi): Update.
7480         * vax-tdep.c (vax_gdbarch_init): Update.
7481         * v850-tdep.c (v850_gdbarch_init): Update.
7482         * sparc-tdep.c (sparc_gdbarch_init): Update.
7483         * sh-tdep.c (sh_gdbarch_init): Update.
7484         * s390-tdep.c (s390_gdbarch_init): Update.
7485         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7486         * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7487         (ns32k_gdbarch_init_32382): Update.
7488         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7489         * mcore-tdep.c (mcore_gdbarch_init): Update.
7490         * m68k-tdep.c (m68k_gdbarch_init): Update.
7491         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7492         * ia64-tdep.c (ia64_gdbarch_init): Update.
7493         * i386-tdep.c (i386_gdbarch_init): Update.
7494         * i386-linux-tdep.c (i386_linux_init_abi): Update.
7495         * hppa-tdep.c (hppa_gdbarch_init): Update.
7496         * h8300-tdep.c (h8300_gdbarch_init): Update.
7497         * frv-tdep.c (frv_gdbarch_init): Update.
7498         * cris-tdep.c (cris_gdbarch_init): Update.
7499         * avr-tdep.c (avr_gdbarch_init): Update.
7500         * arm-tdep.c (arm_gdbarch_init): Update.
7501         * sparc-tdep.c (sparc_pop_frame): Update.
7502         * rs6000-tdep.c (rs6000_pop_frame): Update.
7503         * remote.c (init_remote_state): Update.
7504         (remote_prepare_to_store): Update.
7505         * remote-vx.c (vx_prepare_to_store): Update.
7506         * remote-sds.c (sds_fetch_registers): Update.
7507         (sds_prepare_to_store): Update.
7508         * remote-array.c: Update.
7509         * regcache.c (init_legacy_regcache_descr): Update.
7510         (init_regcache_descr): Update.
7511         * mips-tdep.c (mips_eabi_extract_return_value): Update.
7512         (mips_o64_extract_return_value): Update.
7513         * irix5-nat.c (fetch_core_registers): Update.
7514         * irix4-nat.c (fetch_core_registers): Update.
7515         * i386-tdep.h: Update.
7516         * hppa-tdep.c (pa_do_registers_info): Update.
7517         (pa_do_strcat_registers_info): Update.
7518         * cris-tdep.c (cris_register_bytes_ok): Update.
7519         * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7520         * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7521         * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7522         * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7523         * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7524         * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7525         * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7526         * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7527         * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7528         * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7529         * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7530         * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7531         (REGISTER_BYTES_OK): Update.
7532         * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7533         * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7534
7535 2003-05-16  Ian Lance Taylor  <ian@airs.com>
7536
7537         * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7538         (vax_print_insn, print_insn_arg): Remove static functions.
7539         (vax_gdbarch_init): Call set_gdbarch_print_insn with
7540         print_insn_vax from opcodes library.
7541         (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7542
7543 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7544
7545         * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7546         * target.h (memory_breakpoint_from_pc): Delete declaration.
7547         * mem-break.c (memory_breakpoint_from_pc): Delete function.
7548         * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7549         * monitor.c (monitor_insert_breakpoint): Use
7550         gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7551         * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7552         * gdbarch.h, gdbarch.c: Re-generate.
7553         * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7554         (sparc_gdbarch_init): Set breakpoint_from_pc to
7555         sparc_breakpoint_from_pc.
7556         * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7557         (BREAKPOINT_FROM_PC): Define.
7558         (sparc_breakpoint_from_pc): Declare.
7559         * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7560         * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7561         (BREAKPOINT_FROM_PC): Define.
7562         (BREAKPOINT): Delete macro.
7563         * target.h: Update comment.
7564         * s390-tdep.c (s390_gdbarch_init): Update comments.
7565         * remote.c: Update comments.
7566         * remote-mips.c: Update comments.
7567         * proc-api.c (write_with_trace): Do not check for a breakpoint.
7568         * mem-break.c: Update comment.
7569         * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7570         (ia64_memory_insert_breakpoint): Update.
7571         * config/sparc/tm-sparc.h: Update comment.
7572         * config/pa/tm-hppa64.h: Update comment.
7573         * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7574         (rs6000_breakpoint_from_pc): Update.
7575         * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7576         (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7577         (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7578         (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7579         (mips_breakpoint_from_pc): Update.
7580         (mips_dump_tdep): Update.
7581
7582         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7583         * minsyms.c (lookup_minimal_symbol): Inline
7584         DEPRECATED_SYMBOL_MATCHES_NAME.  Replace STREQ with strcmp.
7585
7586         * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7587         * p-valprint.c (pascal_object_print_value_fields): Ditto.
7588         * p-lang.c (pascal_printstr): Ditto.
7589         * objc-lang.c (objc_printstr): Ditto.
7590         * m2-lang.c (m2_printstr): Ditto.
7591         * jv-valprint.c (java_print_value_fields): Ditto.
7592         * f-lang.c (f_printstr): Ditto.
7593         * cp-valprint.c (cp_print_value_fields): Ditto.  Include "valprint.h".
7594         * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7595         for repeat_count_threshold.
7596         * Makefile.in (cp-valprint.o): Update dependencies.
7597
7598 2003-05-15  Jeff Johnston  <jjohnstn@redhat.com>
7599
7600         * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7601         (examine_prologue): Support looking through leaf functions, knowing
7602         they start with mov r2,r12.  Support skipping over indirect stores
7603         of the input registers.  Upon hitting a non-nop branch instruction
7604         or predicated instruction, bail out by setting lim_pc to the current
7605         pc value in the loop.  At the end, if the lim_pc value is still
7606         beyond our calculated value and we have trust_limit set,
7607         use the lim_pc value.
7608
7609 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7610
7611         * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7612         generic_find_dummy_frame.
7613         * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7614         (deprecated_generic_find_dummy_frame): Update.
7615         (deprecated_read_register_dummy): Update.
7616         * frame.c (deprecated_generic_get_saved_register): Update.
7617
7618 2003-05-15  Theodore A. Roth  <troth@openavr.org>
7619
7620         * avr-tdep.c (avr_breakpoint_from_pc): New function.
7621         (avr_gdbarch_init): Set breakpoint_from_pc method.
7622
7623 2003-05-15  Andrew Cagney  <cagney@redhat.com>
7624
7625         * regcache.c (build_regcache): Set deprecated_register_valid
7626         directly.
7627         (deprecated_grub_regcache_for_register_valid): Delete function.
7628         * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7629         declaration.
7630
7631 2003-05-15  David Carlton  <carlton@bactrian.org>
7632
7633         Committed by Elena Zannoni <ezannoni@redhat.com>
7634         * symtab.c (lookup_symbol_aux): Delete calls to
7635         lookup_symbol_aux_minsyms.
7636         (lookup_symbol_aux_minsyms): Comment out function and
7637         prototype. Delete lookup by mangled name.
7638
7639 2003-05-14  Kevin Buettner  <kevinb@redhat.com>
7640
7641         * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7642         correctly indicate an empty stack and ``stack_allocated'' to the
7643         indicate the number of elements initially allocated.
7644         (dwarf_expr_grow_stack): Simplify method for computing new
7645         stack size.  Don't loop infinitely if ``stack_len'' is zero.
7646         (execute_stack_op): Move ``ctx->in_reg'' initialization
7647         out of loop.  Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7648         be used in conjuction with DW_OP_piece.  Revise error message
7649         accordingly.
7650
7651 2003-05-14  Theodore A. Roth  <troth@openavr.org>
7652
7653         * MAINTAINERS: Update my email address.
7654         * avr-tdep.c: Ditto.
7655
7656 2003-05-14  Elena Zannoni  <ezannoni@redhat.com>
7657
7658         * symtab.h (enum domain_enum): Rename from namespace_enum.
7659         (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7660         VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7661         Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7662         LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7663         TYPES_NAMESPACE, METHODS_NAMESPACE.
7664         (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7665         (struct symbol, struct partial_symbol): Rename field
7666         'namespace_enum namespace' to 'domain_enum domain'.
7667         (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7668         Delete old define kludge for namespace.
7669
7670         * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7671         blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7672         dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7673         gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7674         language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7675         mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7676         p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7677         stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7678         valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7679         occurrences of the above.
7680
7681 2003-05-14  Ian Lance Taylor  <ian@airs.com>
7682
7683         * Makefile.in (install-only): Use $(SHELL) when running
7684         mkinstalldirs.
7685
7686 2003-05-13  Ian Lance Taylor  <ian@airs.com>
7687
7688         * MAINTAINERS (write after approval): Add myself.
7689
7690         * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7691         second and third arguments.
7692         * ser-tcp.c (_initialize_ser_tcp): Likewise.
7693         * ser-unix.c (_initialize_ser_hardwire): Likewise.
7694
7695 2003-05-13  Andrew Cagney  <cagney@redhat.com>
7696
7697         * defs.h (store_address): Delete declaration.
7698         findvar.c (store_address): Delete function.
7699         * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7700         store_unsigned_integer.
7701         * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7702         * v850-tdep.c (v850_push_arguments): Ditto.
7703         * sparc-tdep.c (sparc_get_saved_register): Ditto.
7704         * sh-tdep.c (sh64_get_saved_register): Ditto.
7705         * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7706         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7707         * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7708         (mips_get_saved_register): Ditto.
7709         * ia64-tdep.c (ia64_get_saved_register): Ditto.
7710         (find_func_descr, ia64_push_arguments): Ditto.
7711         * i386-tdep.c (i386_push_arguments): Ditto.
7712         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7713         * frv-tdep.c (frv_push_arguments): Ditto.
7714         * frame.c (legacy_saved_regs_prev_register): Ditto.
7715         (deprecated_generic_get_saved_register): Ditto.
7716         * findvar.c (unsigned_address_to_pointer): Ditto.
7717         * dwarf2read.c (dwarf2_const_value): Ditto.
7718         * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7719         * alpha-tdep.c (alpha_push_arguments): Ditto.
7720
7721 2003-05-12  J. Brobecker  <brobecker@gnat.com>
7722
7723         * NEWS: Mention that the hppa-hpux port has been partially
7724         multiarched (32bit ABIT only, so far).
7725
7726 2003-05-11  Andrew Cagney  <cagney@redhat.com>
7727
7728         * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7729         * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7730         include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7731         sim/testsuite/sim/arm/misaligned2.ms, and
7732         sim/testsuite/sim/arm/misaligned3.ms.
7733         * disasm.h (struct ui_file): Add opaque struct declaration.
7734         * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7735         * frame.h (struct ui_file): Ditto.
7736
7737 2003-05-11  Mark Kettenis  <kettenis@gnu.org>
7738
7739         * value.h: Pretty print.
7740
7741 2003-05-10  Mark Kettenis  <kettenis@gnu.org>
7742
7743         * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7744
7745 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7746
7747         * regcache.h (max_register_size): Delete declaration.
7748         * regcache.c (max_register_size): Delete function.
7749         (struct regcache_descr): Delete field "max_register_size".
7750         (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7751         registers fit in MAX_REGISTER_SIZE.
7752         (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7753         (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7754         * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7755         * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7756         * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7757         * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7758         * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7759         * dve3900-rom.c, hppa-tdep.c: Ditto.
7760
7761 2003-05-08  David Carlton  <carlton@math.stanford.edu>
7762
7763         * valops.c (push_word): Fix typo.
7764
7765 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7766
7767         * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7768         * gdbarch.h: Re-generate.
7769         * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7770         (legacy_max_register_raw_size): Delete declaration.
7771         * regcache.c (legacy_max_register_raw_size): Delete function.
7772         * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7773         * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7774         * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7775         * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7776         * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7777         * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7778         * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7779         * findvar.c, dwarf2cfi.c: Ditto.
7780
7781 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7782
7783         * mips-tdep.c (read_signed_register): New function, moved to here
7784         from "regcache.c".
7785         (read_signed_register_pid): Ditto.
7786         * regcache.c (read_signed_register_pid): Delete function, moved to
7787         "mips-tdep.c".
7788         (read_signed_register): Ditto.
7789         * regcache.h (read_signed_register): Delete declaration.
7790         (read_signed_register_pid): Delete declaration.
7791
7792 2003-05-08  Andrew Cagney  <cagney@redhat.com>
7793
7794         * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7795         * gdbarch.h: Re-generate.
7796         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7797         (legacy_max_register_virtual_size): Delete declaration.
7798         * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7799         * d10v-tdep.c (d10v_print_registers_info): Ditto.
7800         * tracepoint.c (memrange_sortmerge): Ditto.
7801         * sparc-tdep.c (sparc_print_registers): Ditto.
7802         * regcache.c (legacy_max_register_virtual_size): Delete function.
7803
7804 2002-05-08  J. Brobecker  <brobecker@gnat.com>
7805
7806         * fork-child.c (escape_bang_in_quoted_argument): New function.
7807         (fork_inferior): Escape '!' characters in quoted arguments
7808         only when needed.
7809
7810 2003-05-08  J. Brobecker  <brobecker@gnat.com>
7811
7812         * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7813         the language of the CU is not currently supported by GDB.
7814
7815 2003-05-08  J. Brobecker  <brobecker@gnat.com>
7816
7817         * defs.h (language): Add language_minimal enum value.
7818         * c-lang.c (minimal_language_defn): New language definition.
7819         (_initialize_c_language): Add the new minimal language to the list
7820         of languages known to GDB.
7821
7822 2003-05-08  Kevin Buettner  <kevinb@redhat.com>
7823
7824         * frame.c (get_frame_type): Don't attempt to lazily initialize
7825         frame's unwinder for legacy frames.
7826
7827 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7828
7829         * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7830         and "regcache" parameters.
7831         * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7832
7833 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
7834
7835         * dwarf2read.c (dwarf_decode_lines): Only use output of
7836         check_cu_functions() when calling record_line().  Do not update
7837         the current address.
7838
7839 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7840
7841         * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7842         code.
7843
7844 2003-05-07  Jim Blandy  <jimb@redhat.com>
7845
7846         Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7847         'maint info symtabs' and 'maint info psymtabs'.
7848         * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7849         Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7850         * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7851         Declarations updated.
7852         * maint.c (maintenance_list_command): Delete.
7853         (_initialize_maint_cmds): Update calls to add_cmd.
7854         * gdbcmd.h (maintenancelistlist): Delete declaration.
7855         * cli/cli-cmds.c (maintenancelistlist): Delete.
7856         (init_cmd_lists): Don't initialize it.
7857         * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7858
7859 2003-05-07  Andrew Cagney  <cagney@redhat.com>
7860
7861         * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7862         "regcache".
7863         (d10v_print_registers_info): Update.
7864         (d10v_dmap_register, d10v_imap_register): Delete functions.
7865         (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7866         and "imap_register".
7867         (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7868         (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7869         * arch-utils.c (generic_remote_translate_xfer_address): Add
7870         "regcache" and "gdbarch" parameters.
7871         * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7872         parameter.  Change class to multi-arch.
7873         * gdbarch.h, gdbarch.c: Re-generate.
7874         * remote.c (remote_xfer_memory): Use
7875         gdbarch_remote_translate_xfer_address.
7876
7877 2003-05-07  Jeff Johnston  <jjohnstn@redhat.com>
7878
7879         * infrun.c (prev_pc): Move declaration ahead of proceed().
7880         (proceed): Refresh prev_pc value before resuming.
7881         (stop_stepping): Remove code to refresh prev_pc.
7882
7883 2003-05-06  Kris Warkentin <kewarken@qnx.com>
7884
7885         * nto-tdep.c: Removed stray comment.
7886
7887 2003-05-06  Kris Warkentin <kewarken@qnx.com>
7888
7889         * i386-nto-tdep.c: Fix old K&R function definitions.
7890         * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7891         Also change add_show_from_set() call to add_setshow_cmd().
7892         * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7893
7894 2003-05-05  Andrew Cagney  <cagney@redhat.com>
7895
7896         * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7897         (fprint_dummy_frames): New function.
7898         (maintenance_print_dummy_frames): New function.
7899         (_initialize_dummy_frame): Add command "maint print dummy-frames".
7900         * frame.c (fprint_frame_id): Make global.
7901         * frame.h (fprint_frame_id): Declare.
7902         * Makefile.in (dummy-frame.o): Update dependencies.
7903
7904 2003-05-05  Andrew Cagney  <cagney@redhat.com>
7905
7906         * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7907         (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7908         SIZEOF_CALL_DUMMY_WORDS.
7909         (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7910         (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7911         (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7912         CALL_DUMMY_BREAKPOINT_OFFSET.
7913         (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7914         CALL_DUMMY_START_OFFSET.
7915         (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7916         * gdbarch.h, gdbarch.c: Re-generate.
7917         * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7918         * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7919         * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7920         * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7921         * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7922         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7923         * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7924         * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7925         * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7926         * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7927         * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7928         * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7929         * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7930         * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7931         * config/sparc/tm-sparc.h: Update.
7932
7933 2003-05-05  Kris Warkentin <kewarken@qnx.com>
7934
7935         * configure.tgt: Add i[3456]86-*-nto*.
7936         * i386-nto-tdep.c: New file.  i386 specific support for QNX Neutrino.
7937         * nto-tdep.c: New file. Neutrino target support routines.
7938         * nto-tdep.h: New file. Neutrino target header.
7939         * config/tm-qnxnto.h: New file.
7940         * config/i386/i386nto.mt: New file.
7941         * config/i386/tm-i386nto.h: New file.
7942
7943 2003-05-04  Andrew Cagney  <cagney@redhat.com>
7944
7945         * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7946         (load_infrun_state): Ditto.
7947         (struct thread_info): Drop "prev_func_name" field.
7948         * thread.c (load_infrun_state): Update.
7949         (save_infrun_state): Update.
7950         * infrun.c (prev_func_name): Delete variable.
7951         (init_wait_for_inferior): Do not clear prev_func_name.
7952         (stop_stepping, keep_going, context_switch): Do not swap
7953         prev_func_name.
7954         (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7955         instead of PC_IN_SIGTRAMP.
7956
7957 2003-05-04  Andrew Cagney  <cagney@redhat.com>
7958
7959         * sentinel-frame.c (sentinel_frame_prev_register): Replace
7960         REGISTER_BYTE with register_offset_hack.
7961         * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7962         that REGISTER_BYTE is consistent with the regcache.
7963         * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7964         * gdbarch.h, gdbarch.c: Regenerate.
7965
7966 2003-05-04  Mark Kettenis  <kettenis@gnu.org>
7967
7968         * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7969         (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7970
7971         * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7972
7973 2003-05-03  J. Brobecker  <brobecker@gnat.com>
7974
7975         From Thierry Schneider <tpschneider1@yahoo.com>
7976         * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7977         (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7978         (mi-cmd-symbol.o): Add rule.
7979
7980 2003-05-03  Andrew Cagney  <cagney@redhat.com>
7981
7982         * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7983         comments noteing that it replaces the old FIX_CALL_DUMMY code.
7984         * gdbarch.h, gdbarch.c: Re-generate.
7985         * d10v-tdep.c (d10v_push_dummy_code): New function.
7986         (d10v_gdbarch_init): Set push_dummy_code.
7987         * infcall.c (legacy_push_dummy_code): New function.
7988         (generic_push_dummy_code): New function.
7989         (push_dummy_code): New function.
7990         (call_function_by_hand): Call push_dummy_code.  Pass bp_addr,
7991         instead of dummy_addr, to push_dummy_call.  Move call to
7992         generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7993         switch.
7994         * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7995
7996 2003-05-03  Andrew Cagney  <cagney@redhat.com>
7997
7998         * disasm.h (print_insn): Declare.
7999         * disasm.c (init_gdb_disassemble_info): New function.
8000         (gdb_disassembly): Call init_gdb_disassemble_info.
8001         (gdb_print_insn): New function.
8002         * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
8003         of TARGET_PRINT_INSN.  Send debug info to "gdb_stdlog".
8004         * mcore-tdep.c: Include "disasm.h"
8005         (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
8006         * d10v-tdep.c: Include "disasm.h".
8007         (display_trace): Call gdb_print_insn, instead of print_insn.
8008         (print_insn): Delete function.
8009         * printcmd.c: Include "disasm.h".
8010         (print_insn): Delete function.
8011         (print_formatted): Call gdb_print_insn, instead of print_insn.
8012         * Makefile.in (printcmd.o): Update dependencies.
8013         (mcore-tdep.o, d10v-tdep.o): Ditto.
8014
8015 2003-05-02  Andrew Cagney  <cagney@redhat.com>
8016
8017         * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8018         PC_REGNUM, re-indent.
8019         * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8020         PC_REGNUM isn't set.
8021
8022         * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8023         * gdbarch.h, gdbarch.c: Re-generate.
8024         * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8025         register_virtual_size, pc_regnum, or register_bytes.
8026         (D10V_PC_REGNUM): Rename _PC_REGNUM.
8027         (d10v_register_type): Use D10V_PC_REGNUM.
8028         (d10v_print_registers_info, d10v_read_pc): Ditto.
8029         (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8030         (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8031
8032 2003-05-02  David Carlton  <carlton@bactrian.org>
8033
8034         * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8035         the name with mstrsave.
8036
8037 2003-05-02  Elena Zannoni  <ezannoni@redhat.com>
8038
8039         * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8040         GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8041         (host_charset_name, target_charset_name): New vars for use by
8042         set/show commands.
8043         (host_charset_enum, target_charset_enum): New enums for set/show
8044         commands.
8045         (set_charset_sfunc, set_host_charset_sfunc,
8046         set_target_charset_sfunc): New functions.
8047         (set_host_charset, set_target_charset): Make static.
8048         (list_charsets, set_host_charset_command,
8049         set_target_charset_command): Delete functions.
8050         (show_charset_command): Rewrite as....
8051         (show_charset): Hook this up with the set/show command mechanism.
8052         (_initialize_charset): Change names of charsets to match the
8053         set/show enums. Use host_charset_name and target_charset_name.
8054         Use set/show mechanism for charset, host-charset, target-charset
8055         commands. Do not make 'show host-charset' and 'show
8056         target-charset' be aliases of 'show charset'.
8057
8058         * charset.h (set_host_charset, set_target_charset): Don't export,
8059         they are not used outside the file.
8060
8061 2003-05-01  Andrew Cagney  <cagney@redhat.com>
8062
8063         * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8064         (gdb_disassembly): Make "di" non static, always initialize and
8065         cleanup.  Always use dis_asm_read_memory.
8066         (gdb_dis_asm_read_memory): Delete function.
8067
8068 2003-05-01  Andrew Cagney  <cagney@redhat.com>
8069
8070         * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8071         (d10v_gdbarch_init): Set frame_align instead of stack_align.
8072
8073 2003-04-30  Andrew Cagney  <cagney@redhat.com>
8074
8075         * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8076         "tm_print_insn_info".
8077         (TARGET_PRINT_INSN_INFO): Delete macro.
8078         (dis_asm_read_memory): Delete function declaration.
8079         (dis_asm_memory_error, dis_asm_print_address): Ditto.
8080         (tm_print_insn_info): Delete variable definition.
8081         (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8082         * gdbarch.h, gdbarch.c: Re-generate.
8083         * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8084         "deprecated_tm_print_insn_info".
8085         * mcore-tdep.c (mcore_dump_insn): Ditto.
8086         * mips-tdep.c (mips_gdbarch_init): Ditto.
8087         * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8088         * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8089         * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8090         * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8091         instead of TARGET_PRINT_INSN_INFO, add comment.
8092         * s390-tdep.c (s390_get_frame_info): Instead of
8093         "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8094         (s390_check_function_end, s390_is_sigreturn): Ditto.
8095         * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8096         (dis_asm_memory_error, dis_asm_print_address): Ditto.
8097         * disasm.c: Include "gdbcore.h".
8098         (_initialize_disasm): New function, initialize
8099         "deprecated_tm_print_insn_info".
8100         (deprecated_tm_print_insn_info): New variable.
8101         (dis_asm_read_memory): Moved from "corefile.c", made static.
8102         (dis_asm_print_address, dis_asm_memory_error): Ditto.
8103         * Makefile.in (disasm.o): Update dependencies.
8104
8105 2003-04-30  Andrew Cagney  <cagney@redhat.com>
8106
8107         * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8108
8109 2003-04-29  Adam Fedor  <fedor@gnu.org>
8110
8111         * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8112         * infcall.c (find_function_addr): Make non-static.
8113         * infcall.h (find_function_addr): Declare.
8114         * Makefile.in (eval.o): Update dependencies.
8115
8116 2003-04-28  Adam Fedor  <fedor@gnu.org>
8117
8118         * symtab.c (symbol_find_demangled_name): Check for and demangle
8119         ObjC symbols.
8120         (symbol_init_demangled_name): Init for language_objc as well.
8121
8122 2003-04-28  Andrew Cagney  <cagney@redhat.com>
8123
8124         * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8125         (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8126         * gdbarch.h, gdbarch.c: Re-generate.
8127         * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8128         DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8129         * inferior.h (deprecated_read_fp): Rename read_fp.
8130         (generic_target_read_fp): Delete declaration.
8131         * regcache.c (generic_target_read_fp): Delete function.
8132         (deprecated_read_fp): Replace read_fp, use
8133         DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8134         * d10v-tdep.c (d10v_read_fp): Delete function.
8135         (d10v_gdbarch_init): Do not set deprecated_read_fp.
8136
8137         * sparc-tdep.c (sparc_gdbarch_init): Do not set
8138         deprecated_target_read_fp to generic_target_read_fp.
8139         * sh-tdep.c (sh_gdbarch_init): Ditto.
8140         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8141         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8142         * frv-tdep.c (frv_gdbarch_init): Ditto.
8143
8144         * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8145         deprecated_fp_regnum.
8146         * x86-64-tdep.c (x86_64_init_abi): Ditto.
8147         * vax-tdep.c (vax_gdbarch_init): Ditto.
8148         * v850-tdep.c (v850_gdbarch_init): Ditto.
8149         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8150         * sh-tdep.c (sh_gdbarch_init): Ditto.
8151         * s390-tdep.c (s390_gdbarch_init): Ditto.
8152         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8153         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8154         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8155         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8156         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8157         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8158         * i386-tdep.c (i386_gdbarch_init): Ditto.
8159         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8160         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8161         * frv-tdep.c (frv_gdbarch_init): Ditto.
8162         * cris-tdep.c (cris_gdbarch_init): Ditto.
8163         * avr-tdep.c (avr_gdbarch_init): Ditto.
8164         * arm-tdep.c (arm_gdbarch_init): Ditto.
8165         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8166
8167         * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8168         * v850-tdep.c (v850_gdbarch_init): Ditto.
8169         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8170         * sh-tdep.c (sh_gdbarch_init): Ditto.
8171         * s390-tdep.c (s390_gdbarch_init): Ditto.
8172         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8173         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8174         * mips-tdep.c (mips_gdbarch_init): Ditto.
8175         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8176         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8177         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8178         * frv-tdep.c (frv_gdbarch_init): Ditto.
8179         * avr-tdep.c (avr_gdbarch_init): Ditto.
8180         * arm-tdep.c (arm_gdbarch_init): Ditto.
8181
8182         * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8183         DEPRECATED_FP_REGNUM.
8184         (vax_push_dummy_frame, vax_pop_frame): Ditto.
8185         * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8186         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8187         (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8188         (sparc32_register_virtual_type): Ditto.
8189         * sh-tdep.c (sh64_frame_chain): Ditto.
8190         (sh64_get_saved_register, sh64_pop_frame): Ditto.
8191         (sh_nofp_frame_init_saved_regs): Ditto.
8192         (sh64_nofp_frame_init_saved_regs): Ditto.
8193         (sh_fp_frame_init_saved_regs): Ditto.
8194         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8195         * remote-e7000.c (fetch_regs_from_dump): Ditto.
8196         * procfs.c (procfs_fetch_registers): Ditto.
8197         (procfs_store_registers): Ditto.
8198         * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8199         (store_inferior_registers, fetch_core_registers): Ditto.
8200         (fetch_kcore_registers, clear_regs): Ditto.
8201         * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8202         (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8203         * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8204         * nlm/i386.c (do_status): Ditto.
8205         * mipsv4-nat.c (supply_gregset): Ditto.
8206         * mips-tdep.c: Ditto for comments.
8207         * mips-nat.c (fetch_inferior_registers): Ditto.
8208         (store_inferior_registers, fetch_core_registers): Ditto.
8209         * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8210         (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8211         * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8212         (i386_do_pop_frame, i386_register_type): Ditto.
8213         * hppa-tdep.c (hppa_frame_chain): Ditto.
8214         (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8215         (hppa_pop_frame, hppa_read_fp): Ditto.
8216         (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8217         * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8218         * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8219         * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8220         * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8221         * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8222         * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8223         * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8224         * blockframe.c: Ditto for comments.
8225         * arch-utils.h: Ditto for comments.
8226         * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8227         * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8228         * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8229         * alpha-tdep.h: Ditto for comments.
8230         * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8231         (alpha_cannot_store_register): Ditto.
8232         (alpha_push_dummy_frame): Ditto.
8233         * alpha-nat.c (supply_gregset): Ditto.
8234
8235         * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8236         * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8237         * config/sparc/tm-sparc.h: Update comment.
8238
8239         * hppa-tdep.c (hppa_init_extra_frame_info): Use
8240         deprecated_read_fp instead of TARGET_READ_FP.
8241         (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8242         (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8243         * sparc-tdep.c (sparc_init_extra_frame_info): Use
8244         deprecated_read_fp instead of read_fp.
8245         * s390-tdep.c (s390_push_arguments): Ditto.
8246         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8247         * frame.h: Ditto in comments.
8248         * frame.c (legacy_get_prev_frame): Ditto.
8249         * dummy-frame.c (dummy_frame_this_id): Ditto.
8250         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8251
8252 2003-04-28  Andrew Cagney  <cagney@redhat.com>
8253
8254         * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8255         * gdbarch.h, gdbarch.c: Re-generate.
8256         * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8257         * vax-tdep.c (_initialize_vax_tdep): Update.
8258         * v850-tdep.c (_initialize_v850_tdep): Update.
8259         * sparc-tdep.c (_initialize_sparc_tdep): Update.
8260         * s390-tdep.c (_initialize_s390_tdep): Update.
8261         * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8262         * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8263         * mips-tdep.c (_initialize_mips_tdep): Update.
8264         * mcore-tdep.c (_initialize_mcore_tdep): Update.
8265         * m68k-tdep.c (_initialize_m68k_tdep): Update.
8266         * ia64-tdep.c (_initialize_ia64_tdep): Update.
8267         * hppa-tdep.c (_initialize_hppa_tdep): Update.
8268         * h8300-tdep.c (_initialize_h8300_tdep): Update.
8269         * frv-tdep.c (_initialize_frv_tdep): Update.
8270         * cris-tdep.c (cris_delayed_get_disassembler): Update.
8271         (_initialize_cris_tdep): Update.
8272         * arch-utils.c (legacy_print_insn): Update.
8273         * alpha-tdep.c (_initialize_alpha_tdep): Update.
8274
8275 2003-04-26  Adam Fedor  <fedor@gnu.org>
8276
8277         * linespec.c (decode_objc): New function to decode ObjC calls
8278         (decode_line_1): Check for ObjC calls (using decode_objc)
8279         * Makefile (linespec.o): Update dependencies.
8280
8281 2003-04-26  Daniel Jacobowitz  <drow@mvista.com>
8282
8283         * breakpoint.h (struct breakpoint_ops): New.
8284         (struct breakpoint): Add ops member.
8285
8286         * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8287         (mention): Use new breakpoint ops member.
8288         (set_raw_breakpoint): Initialize ops field to NULL.
8289         (print_exception_catchpoint, print_one_exception_catchpoint)
8290         (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8291         (gnu_v3_exception_catchpoint_ops): New.
8292         (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8293
8294 2003-04-25  Adam Fedor  <fedor@gnu.org>
8295
8296         * Makefile.in (COMMON_OBS): Add objc-lang.o
8297
8298 2003-04-25  Andrew Cagney  <cagney@redhat.com>
8299
8300         * d10v-tdep.c (print_insn): Delete function.
8301         (display_trace): Use TARGET_PRINT_INSN.
8302         (_initialize_d10v_tdep): Do not set tm_print_insn.
8303         (d10v_gdbarch_init): Set print_insn.
8304
8305 2003-04-25  Andrew Cagney  <cagney@redhat.com>
8306
8307         * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8308         (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8309         (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8310         (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8311         (nr_dmap_regs, a0_regnum): ... new functions.
8312         (d10v_print_registers_info): Use a0_regnum, use register_size.
8313         (d10v_register_byte): Delete function.
8314         (d10v_register_raw_size): Delete function.
8315         (d10v_register_type): Use a0_regnum.
8316         (d10v_print_registers_info): Use a0_regnum.
8317         (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8318         (d10v_gdbarch_init): Do not set register_byte or
8319         register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8320         (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8321         extract_address.
8322         (trace_command): Use XCALLOC.
8323         (print_insn): Delete reference to tm_print_insn.
8324         (saved_regs_unwinder): Use store_unsigned_integer instead of
8325         store_address.
8326         * frame.h (FRAME_OBSTACK_CALLOC): Define
8327
8328 2003-04-25  David Carlton  <carlton@bactrian.org>
8329
8330         * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8331
8332 2003-04-24  Adam Fedor  <fedor@gnu.org>
8333
8334         * objc-lang.c: Include "valprint.h"
8335         * Makefile.in (objc-lang.o): Update dependencies.
8336
8337 2003-04-24  Adam Fedor  <fedor@gnu.org>
8338
8339         * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8340         architecture dependant compilation and mark as unimplemented
8341         (until they get put in the gdbarch vector).
8342
8343 2003-04-23  David Carlton  <carlton@bactrian.org>
8344
8345         * cp-support.c (cp_find_first_component): Accept 'operator' in
8346         more locations.
8347
8348 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8349
8350         * infcall.c (call_function_by_hand): Eliminate redundant
8351         indentation.  Move "saved_async" and "old_cleanups" to where they
8352         are needed.
8353
8354 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8355
8356         * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8357         and "buffer".  Move the "name" code to where it is needed.
8358
8359 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8360
8361         * infcall.c (call_function_by_hand): Move variables "start_sp",
8362         "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8363         code to ON_STACK switch branch.
8364
8365 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8366
8367         * infcall.c (call_function_by_hand): Make declaration of "i",
8368         "sal", "bpt" and "old_sp" more local to their use.  Delete #if
8369         lint.
8370
8371 2003-04-23  Andrew Cagney  <cagney@redhat.com>
8372
8373         * infcall.c (call_function_by_hand): Delete variable
8374         "n_method_args".  Localize "param_type"'s declaration to the loop
8375         that it is used.  Reinstate code assigning to said variable -
8376         deleted on 2002-06-14.  Rationalize calls to value_args_coerce.
8377         Rationalize code using "param_type".
8378
8379 2003-04-22  Andrew Cagney  <cagney@redhat.com>
8380
8381         * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8382         compute the breakpoint address.  Only call FIX_CALL_DUMMY when
8383         ON_STACK.  Eliminate the variable "addr".  Do not pass "real_pc"
8384         to DEPRECATED_PUSH_RETURN_ADDRESS.
8385
8386 2003-04-22  Kevin Buettner  <kevinb@redhat.com>
8387
8388         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8389         on the DWARF2 register number prior to fetching a register.
8390
8391 2003-04-22  J. Brobecker  <brobecker@gnat.com>
8392
8393         * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8394         Update all the tests using SOFT_FLOAT considering the fact that
8395         this macro was always set to 0.
8396         * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8397         considering the fact that this macro was always set to 0.
8398         * hppa-tdep.h (hppa_store_return_value): Likewise.
8399         (hppa_extract_return_value): Likewise.
8400
8401 2003-04-22  J. Brobecker  <brobecker@gnat.com>
8402
8403         * config/pa/tm-hppa.h: Remove obsolete code, was used by
8404         the hppa-pro target only.
8405
8406 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8407
8408         Ongoing multi-arch conversion effort for HP/UX:
8409         * config/pa/tm-hppa.h: Move all macro that are no longer
8410         defined now that GDB_MULTI_ARCH is now set to 1 from here...
8411         * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8412
8413 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8414
8415         * config/pa/tm-hppa.h: Obsolete a section that was only used
8416         for hppa-pro.
8417
8418 2003-04-21  J. Brobecker  <brobecker@gnat.com>
8419
8420         Ongoing multi-arch conversion for HP/UX.
8421         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8422         if already defined (allows hppa64 to stay non-multiarched for now).
8423         * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8424
8425 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8426
8427         * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8428
8429 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8430
8431         * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8432         "i386_num_mmx_regs".
8433
8434 2003-04-21  Andrew Cagney  <cagney@redhat.com>
8435
8436         * infcall.c: New file.
8437         * infcall.h: New file.
8438         * valarith.c: Include "infcall.h".
8439         * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8440         * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8441         * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8442         (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8443         (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8444         (SFILES): Add "infcall.c"
8445         (COMMON_OBS): Add "infcall.o".
8446         (infcall.o): Specify dependencies.
8447         * value.h (call_function_by_hand): Delete declaration.
8448         * inferior.h (run_stack_dummy): Delete declaration.
8449         * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8450         (run_stack_dummy): Move to "infcall.c", merged into
8451         call_function_by_hand.
8452         * valops.c (call_function_by_hand): Moved to "infcall.c".
8453         (find_function_addr, value_arg_coerce): Ditto.
8454         (unwindonsignal_p, coerce_float_to_double): Ditto.
8455         (_initialize_valops): Move "set/show coerce-float-to-double", and
8456         "set/show unwindonsignal" commands to "infcall.c".
8457         * v850-tdep.c, target.h: Update comments.
8458         * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8459         * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8460         (sh64_init_extra_frame_info): Update comments.
8461         * mn10300-tdep.c: Update comments.
8462         * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8463         * config/sparc/tm-sparc.h: Update comments.
8464         * breakpoint.h: Update comments.
8465         * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8466         * arm-tdep.c: Update comment.
8467
8468 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
8469
8470         * i386-tdep.c (i386_num_register_names): New variable.
8471         (i386_num_mmx_regs): Renamed from mmx_num_regs.
8472         (MM0_REGNUM): Remove redundant parentheses in define.
8473         (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8474         (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8475         i386_mxcsr_regnum_p): Remove redundant parentheses.
8476         (i386_register_name): Use i386_num_register_names.
8477
8478         * i386-tdep.c (i386_extract_return_value,
8479         i386_store_return_value): Correct check for availability of
8480         floating-point registers.
8481
8482         * i386-tdep.c (i386_frame_num_args): Remove function.
8483         (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8484
8485         * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8486         mmx_regnum_to_fp_regnum.  Adjust all callers.
8487
8488         * i386-tdep.c (i386_get_longjmp_target): Use
8489         TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8490         and TARGET_CHAR_BIT.  Use extract_typed_address instead of
8491         extract_address.
8492
8493 2003-04-19  Mark Kettenis  <kettenis@gnu.org>
8494
8495         * core-regset.c: Update comments to reflect reality.  Re-order
8496         includes.
8497         (fetch_core_registers): Use switch instead of if.  Remove
8498         redundant prototype.
8499
8500 2003-04-18  Jim Blandy  <jimb@redhat.com>
8501
8502         * s390-tdep.c (s390_frame_align): New function.
8503         (s390_gdbarch_init): Register it with the gdbarch object.
8504
8505 2003-04-17  Richard Henderson  <rth@redhat.com>
8506
8507         * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8508
8509 2003-04-17  Michael Snyder  <msnyder@redhat.com>
8510             Karen Bennet  <bennet@redhat.com>
8511
8512         Committed by Elena Zannoni  <ezannoni@redhat.com>
8513         * gdb_gcore.sh: New script to create a core dump of a process.
8514
8515 2003-04-17  Elena Zannoni  <ezannoni@redhat.com>
8516
8517         * values.c (value_being_returned): Don't fetch the return
8518         value if the return type is void.
8519
8520 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
8521
8522         * thread-db.c: Reindented.
8523
8524 2003-04-17  Jeff Johnston  <jjohnstn@redhat.com>
8525
8526         * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8527         td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8528         as types.
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 2003-04-16  Kevin Buettner  <kevinb@redhat.com>
8555
8556         * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8557         the size of ``long double'' to 16, instead of 8.
8558
8559 2003-04-16  Mark Kettenis  <kettenis@gnu.org>
8560
8561         * i386-linux-nat.c: Add some whitespace to make things more
8562         readable.
8563         (fetch_register, store_register, fetch_inferior_registers,
8564         store_inferior_registers): Get rid of assignment in if-statement.
8565         (store_register): Fix typo in error message.
8566
8567 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8568
8569         * utils.c (xmmalloc): Always allocate something, matches
8570         libiberty/xmalloc's semantics.
8571         (xmrealloc, xmcalloc): Ditto.
8572
8573 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8574
8575         * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8576         update comments.
8577         (get_frame_type): Initialize unwind and type when needed.
8578         (get_frame_id, frame_register_unwind): Ditto.
8579
8580 2003-04-16  Andrew Cagney  <cagney@redhat.com>
8581
8582         * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8583         obsolete.
8584         * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8585         * sparcl-stub.c: Obsolete file.
8586         * config/sparc/tm-sparclet.h: Obsolete file.
8587         * sparclet-stub.c: Obsolete file.
8588         * sparclet-rom.c: Obsolete file.
8589         * sparcl-tdep.c: Obsolete file.
8590         * config/sparc/tm-sparclite.h: Obsolete file.
8591         * config/sparc/sparclite.mt: Obsolete file.
8592         * config/sparc/sparclet.mt: Obsolete file.
8593         * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8594         sparc86x-*-* obsolete.
8595
8596 2003-04-15  David Carlton  <carlton@math.stanford.edu>
8597
8598         * Makefile.in (SFILES): Add cp-namespace.c.
8599         (COMMON_OBS): Add cp-namespace.o.
8600         (block.o): Depend on gdb_obstack_h and cp_support_h.
8601         (buildsym.o): Depend on cp_support_h.
8602         (cp-namespace.o): New.
8603         (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8604         gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8605         (dwarf2read.o): Depend on cp_support_h.
8606         * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8607         * dwarf2read.c (process_die): Set processing_has_namespace_info,
8608         processing_current_namespace.
8609         (read_namespace): Update processing_current_namespace; check for
8610         anonymous namespaces.
8611         (dwarf2_name): New function.
8612         (dwarf2_extension): Ditto.
8613         * cp-support.h: Update copyright, contributors.
8614         Add inclusion guards.
8615         Add opaque declaration for structs obstack, block, symbol.
8616         (struct using_direct): New struct.
8617         Add declarations for cp_find_first_component,
8618         cp_entire_prefix_len, processing_has_namespace_info,
8619         processing_current_namespace, cp_is_anonymous,
8620         cp_add_using_directive, cp_initialize_namespace,
8621         cp_finalize_namespace, cp_set_block_scope,
8622         cp_scan_for_anonymous_namespaces.
8623         * cp-namespace.c: New file.
8624         * cp-support.c: Update copyright.
8625         Include ctype.h, gdb_assert.h, gdbcmd.h.
8626         New variable maint_cplus_cmd_list.
8627         (cp_find_first_component): New function.
8628         (cp_entire_prefix_len, maint_cplus_command)
8629         (first_component_command, _initialize_cp_support): Ditto.
8630         * buildsym.c: Include cp-support.h.
8631         New variable using_list.
8632         (add_symbol_to_list): Check for anonymous namespaces.
8633         (finish_block): Set block's scope.
8634         (start_symtab): Initialize C++ namespace support.
8635         (end_symtab): Finalize C++ namespace support.
8636         * block.h: Add opaque declarations for structs
8637         block_namespace_info, using_direct, and obstack.
8638         Add declarations for block_set_scope and block_set_using.
8639         (struct block): Add 'language_specific' member.
8640         (BLOCK_NAMESPACE): New macro.
8641         * block.c: Include gdb_obstack.h and cp-support.h.
8642         (struct block_namespace_info): New struct.
8643         (block_set_scope): New function.
8644         (block_set_using, block_initialize_namespace): Ditto.
8645
8646 2003-04-14  Kevin Buettner  <kevinb@redhat.com>
8647
8648         * solib-svr4.c (svr4_have_link_map_offsets): New function.
8649         (locate_base): Return early if there aren't any link map offsets.
8650         (svr4_solib_create_inferior_hook): Warn if shared library support
8651         is unavailable.
8652
8653 2003-04-14  David Carlton  <carlton@math.stanford.edu>
8654
8655         * symtab.c (symbol_set_names): Add prefix when storing Java names
8656         in hash table.  Fix for PR java/1039.
8657
8658 2003-04-14  David Carlton  <carlton@math.stanford.edu>
8659
8660         * symtab.c (symbol_set_names): Rename 'name' arg to
8661         'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8662         * symtab.h: Change 'name' argument in declaration of
8663         symbol_set_names to 'linkage_name'.
8664         (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8665
8666 2003-04-14  Andrew Cagney  <cagney@redhat.com>
8667
8668         * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8669         return the fully sign-extended register value.
8670         (get_frame_pointer): Ditto.
8671         (mips_pop_frame): Initialize "proc_desc" after checking for a
8672         dummy frame.
8673
8674 2003-04-14  Andrew Cagney  <cagney@redhat.com>
8675
8676         * mips-tdep.c (mips_push_dummy_frame): Delete function.
8677         (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8678         (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8679         (mips_push_register): Delete function.
8680         (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8681         PUSH_FP_REGNUM.
8682
8683 2003-04-14  Jim Blandy  <jimb@redhat.com>
8684
8685         * symmisc.c: #include "gdb_regex.h".
8686         (maintenance_list_symtabs, maintenance_list_psymtabs): New
8687         functions.
8688         * maint.c (maintenance_list_command): New function.
8689         (_initialize_maint_cmds): Register the above as commands.
8690         * symtab.h (maintenance_list_symtabs,
8691         maintenance_list_psymtabs): New declarations.
8692         * cli/cli-cmds.c (maintenancelistlist): New variable.
8693         (init_cmd_lists): Initialize it.
8694         * cli/cli-cmds.h (maintenancelistlist): New declaration.
8695         * gdbcmd.h (maintenancelistlist): New declaration.
8696         * Makefile.in (symmisc.o): Update dependencies.
8697
8698 2003-04-14  Elena Zannoni  <ezannoni@redhat.com>
8699
8700         * s390-nat.c: Include asm/types.h for addr_t.
8701
8702 2003-04-14  Corinna Vinschen  <vinschen@redhat.com>
8703
8704         * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8705         actually incoming type.
8706
8707 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8708
8709         * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8710         get_next_frame and get_frame_saved_regs.
8711
8712 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8713
8714         * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8715         of gdbarch_num_regs.
8716
8717 2003-04-13  Andrew Cagney  <cagney@redhat.com>
8718
8719         * frame.h: Mention what replaced what in "struct frame_info".
8720         * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8721         deprecated_update_frame_base_hack and
8722         deprecated_update_frame_pc_hack.
8723         * hppa-tdep.c: Ditto.
8724
8725 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8726
8727         * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8728         to read_reg and update its comment.  Remove regnum member.
8729         * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8730         Don't call read_reg when setting in_reg.  Call read_reg to get
8731         the frame base if it's in a register.  Return the register number
8732         on the stack instead of in the context.  Remove extra arguments
8733         to read_reg.
8734         * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8735         (dwarf2_evaluate_loc_desc): Call value_from_register.  Expect
8736         the register number on the expression stack.
8737         (needs_frame_read_reg): Remove extra arguments.
8738
8739 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8740
8741         * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8742         made non-static.
8743         (execute_stack_op): All callers updated.
8744         * dwarf2expr.h: Add prototype for dwarf2_read_address.
8745         * dwarf2loc.c (find_location_expression): New function.
8746         (dwarf_expr_frame_base): Call it.
8747         (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8748         (dwarf2_tracepoint_var_ref): New function, broken out from
8749         locexpr_tracepoint_var_ref.
8750         (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8751         Make static.
8752         (loclist_read_variable, loclist_read_needs_frame): New functions.
8753         (loclist_describe_location, loclist_tracepoint_var_ref): New
8754         functions.
8755         (dwarf2_loclist_funcs): New struct location_funcs.
8756         * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8757         (struct dwarf2_locexpr_baton): Add comments.
8758         (dwarf2_loclist_funcs): New extern.
8759         * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8760         base_address and base_known.
8761         (dwarf_loc_buffer): New variable.
8762         (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8763         (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8764         (dwarf2_has_info): Initialize dwarf_loc_offset.
8765         (dwarf2_build_psymtabs): Read in .debug_loc.
8766         (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8767         DWARF_LOC_SIZE.
8768         (psymtab_to_symtab_1): Likewise.  Move base address calculation
8769         here, from...
8770         (dwarf2_get_pc_bounds): ... here.  Use the base address from
8771         cu_header.
8772         (dwarf2_symbol_mark_computed): Handle location lists.
8773
8774 2003-04-13  Daniel Jacobowitz  <drow@mvista.com>
8775
8776         * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8777         if the linkage name demangled successfully.
8778
8779 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
8780
8781         * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8782         disassmbly_flavour): Removed.
8783
8784         * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8785
8786 2003-04-13  Mark Kettenis  <kettenis@gnu.org>
8787
8788         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8789
8790 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8791
8792         * frame.h (struct frame_info): Move definition from here ...
8793         * frame.c (struct frame_info): ... to here.
8794
8795 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8796
8797         * gdbthread.h (save_infrun_state): Delete parameter
8798         "prev_func_start".
8799         (struct thread_info): Delete field "prev_func_start".
8800         (load_infrun_state): Ditto.
8801         * thread.c (load_infrun_state, save_infrun_state): Update.
8802         * infrun.c (prev_func_start): Delete variable.
8803         (context_switch, init_wait_for_inferior): Update.
8804         (stop_stepping, keep_going): Update.
8805
8806 2003-04-12  Andrew Cagney  <cagney@redhat.com>
8807
8808         * gdbarch.sh: Add missing opaque declarations.
8809         * gdbarch.h: Regnerate.
8810         * symtab.h: Add missing opaque declarations.
8811         * value.h, target.h, symfile.h, stabsread.h: Ditto.
8812         * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8813         * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8814         * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8815         * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8816         * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8817         * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8818         * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8819         * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8820         * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8821         * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8822         * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8823         * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8824
8825 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8826
8827         * frame.c (get_frame_id): Return this frame's "id".
8828         (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8829         function start.
8830         (legacy_saved_regs_this_id): Replace function body with
8831         internal-error.
8832         (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8833         FRAME_OBSTACK_ZALLOC.
8834         (create_new_frame): Mark the frame ID as valid.
8835
8836 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
8837
8838         * Makefile.in (libbfd_h): Added missing setting.
8839         * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8840         according to the selected ABI.
8841
8842 2003-04-11  Jeff Johnston  <jjohnstn@redhat.com>
8843
8844         * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8845
8846 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8847
8848         * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8849         SAVED_PC_AFTER_CALL.
8850         * gdbarch.h, gdbarch.c: Regenerate.
8851         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8852         * x86-64-tdep.c (x86_64_init_abi): Update.
8853         * vax-tdep.c (vax_gdbarch_init): Update.
8854         * v850-tdep.c (v850_gdbarch_init): Update.
8855         * sparc-tdep.c (sparc_gdbarch_init): Update.
8856         * sh-tdep.c (sh_gdbarch_init): Update.
8857         * s390-tdep.c (s390_gdbarch_init): Update.
8858         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8859         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8860         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8861         * mips-tdep.c (mips_gdbarch_init): Update.
8862         * mcore-tdep.c (mcore_gdbarch_init): Update.
8863         * m68k-tdep.c (m68k_gdbarch_init): Update.
8864         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8865         * ia64-tdep.c (ia64_gdbarch_init): Update.
8866         (ia64_saved_pc_after_call): Update declaration.
8867         * i386ly-tdep.c (i386lynx_init_abi): Update.
8868         * i386-tdep.c (i386_gdbarch_init): Update.
8869         * hppa-tdep.c (hppa_gdbarch_init): Update.
8870         * h8300-tdep.c (h8300_gdbarch_init): Update.
8871         * frv-tdep.c (frv_gdbarch_init): Update.
8872         * cris-tdep.c (cris_gdbarch_init): Update.
8873         * avr-tdep.c (avr_gdbarch_init): Update.
8874         * arm-tdep.c (arm_gdbarch_init): Update.
8875         * alpha-tdep.c (alpha_gdbarch_init): Update.
8876         * ns32knbsd-nat.c (frame_num_args): Update.
8877         * ns32k-tdep.c (umax_frame_num_args): Update.
8878         * mips-tdep.c (mips_init_frame_pc_first): Update.
8879         * infrun.c (step_over_function): Update.
8880         * i386-linux-tdep.c (skip_hurd_resolver): Update.
8881         * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8882         * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8883         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8884         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8885         * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8886         * arm-linux-tdep.c (skip_hurd_resolver): Update.
8887         * arch-utils.c (init_frame_pc_default): Update.
8888         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8889         * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8890         declaration.
8891
8892 2003-04-11  Andrew Cagney  <cagney@redhat.com>
8893
8894         * i387-tdep.c: Update copyright.
8895         (i387_to_double): Delete function.
8896         (double_to_i387): Delete function.
8897
8898 2003-04-10  Andrew Cagney  <cagney@redhat.com>
8899
8900         * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8901         frame's function's address.  Simplify.
8902         (d10v_frame_unwind_cache): Check that the frame's function is
8903         non-zero.
8904
8905 2003-04-10  Jim Blandy  <jimb@redhat.com>
8906
8907         * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8908         call to set_gdbarch_deprecated_push_arguments.
8909
8910 2003-04-10  Andrew Cagney  <cagney@redhat.com>
8911
8912         * frame.c (fprint_frame_id): New function.
8913         (fprint_frame_type, fprint_frame): New function.
8914         (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8915         (create_sentinel_frame, get_frame_id): Ditto.
8916         (frame_id_p, frame_id_eq): Ditto.
8917         (frame_id_inner, create_new_frame): Ditto.
8918         (legacy_get_prev_frame, get_prev_frame): Ditto.
8919         (deprecated_update_frame_pc_hack): Ditto.
8920         (frame_register_unwind): Ditto.
8921         (deprecated_update_frame_base_hack): Ditto.
8922
8923 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
8924
8925         * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8926         (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8927         frame_chain function.
8928         * Makefile.in: Add dependencies due to above change.
8929
8930 2003-04-10  Corinna Vinschen  <vinschen@redhat.com>
8931
8932         * blockframe.c (legacy_frame_chain_valid): Move call to
8933         DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8934         inside_entry_file.
8935
8936 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8937
8938         * frame.h (struct frame_id): Replace "pc" and "base" with
8939         "stack_addr" and "code_addr".  Update comments.
8940         (frame_id_build): Update parameter names and comment.
8941         (struct frame_info): Replace "id_p" and "id" with "this_id".
8942         * dummy-frame.c (dummy_frame_this_id): Update.
8943         * breakpoint.c (print_one_breakpoint): Update.
8944         * frame.c (get_frame_id): Update.
8945         (get_frame_base, frame_id_build): Update.
8946         (create_sentinel_frame, legacy_get_prev_frame): Update.
8947         (deprecated_update_frame_base_hack): Update.
8948         (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8949         (frame_id_inner): Ditto.
8950
8951 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8952
8953         * defs.h (gdb_print_host_address): Make "addr" parameter a
8954         pointer constant.
8955         * utils.c (gdb_print_host_address): Update.
8956
8957 2003-04-09  Kevin Buettner  <kevinb@redhat.com>
8958
8959         * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8960         register number for R0 is 0.
8961
8962 2003-04-09  J. Brobecker  <brobecker@gnat.com>
8963
8964         * frame.h (struct gdbarch): Add opaque structure definition
8965         to avoid a compilation warning on LynxOS 4.0.
8966
8967 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8968
8969         * frame.h (struct frame_info): Delete field "pc".  Replace
8970         "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8971         structure.
8972         * frame.c (frame_pc_unwind): Update.
8973         (create_sentinel_frame): Do not set "pc".
8974         (get_prev_frame): Do not set "pc".  Use frame_pc_unwind.
8975         (get_frame_pc): Call frame_pc_unwind.
8976         (deprecated_update_frame_pc_hack): Update.
8977         (create_new_frame): Use "pc" not "->pc".
8978
8979 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8980
8981         * frame.c (get_frame_id): Eliminate code updating "frame".
8982         (legacy_get_prev_frame): Ditto.
8983         (get_frame_base): Return id.base directly.
8984         (deprecated_update_frame_base_hack): Update "id.base".
8985         * frame.h (struct frame_info): Delete field "frame".
8986
8987 2003-04-09  Andrew Cagney  <cagney@redhat.com>
8988
8989         * NEWS: Mention that the "Sequent family" is obsolete.
8990         * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8991         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8992         * configure.host: Obsolete i[3456]86-sequent-bsd*,
8993         i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8994         * config/i386/tm-ptx4.h: Obsolete file.
8995         * config/i386/tm-ptx.h: Obsolete file.
8996         * symm-tdep.c: Obsolete file.
8997         * config/i386/symmetry.mt: Obsolete file.
8998         * config/i386/tm-symmetry.h: Obsolete file.
8999         * symm-nat.c: Obsolete file.
9000         * config/i386/nm-symmetry.h: Obsolete file.
9001         * config/i386/xm-symmetry.h: Obsolete file.
9002         * config/i386/symmetry.mh: Obsolete file.
9003         * config/i386/nm-ptx4.h: Obsolete file.
9004         * config/i386/ptx4.mh: Obsolete file.
9005         * config/i386/ptx.mt: Obsolete file.
9006         * config/i386/ptx.mh: Obsolete file.
9007         * config/i386/xm-ptx4.h: Obsolete file.
9008         * config/i386/xm-ptx.h: Obsolete file.
9009
9010 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9011
9012         Obsolete mips*-*-mach3*.
9013         * NEWS: Mention that mips*-*-mach3* is obsolete.
9014         * m3-nat.c: Obsolete file.
9015         * config/nm-m3.h: Obsolete file.
9016         * config/mips/tm-mipsm3.h: Obsolete file.
9017         * config/mips/mipsm3.mt: Obsolete file.
9018         * config/mips/mipsm3.mh: Obsolete file.
9019         * config/mips/xm-mipsm3.h: Obsolete file.
9020         * mipsm3-nat.c: Obsolete file.
9021         * configure.host: Obsolete mips-dec-mach3*.
9022         * configure.tgt: Obsolete mips*-*-mach3*.
9023
9024 2003-04-09  Andrew Cagney  <cagney@redhat.com>
9025
9026         * doublest.h: Update copyright.
9027         (deprecated_store_floating, deprecated_extract_floating): Rename
9028         store_floating and extract_floating.  Update comments.
9029         * doublest.c: Update copyright.
9030         (extract_floating_by_length): Replace extract_floating.
9031         (store_floating_by_length): Replace store_floating.
9032         (deprecated_extract_floating): New function.
9033         (deprecated_store_floating): New function.
9034         (extract_typed_floating): Call extract_floating_by_length.
9035         (store_typed_floating): Call store_floating_by_length.
9036         * x86-64-tdep.c (x86_64_store_return_value): Update.
9037         * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9038         (sh64_extract_return_value): Update.
9039         (sh_sh4_register_convert_to_virtual): Update.
9040         (sh_sh64_register_convert_to_virtual): Update.
9041         (sh_sh4_register_convert_to_raw): Update.
9042         (sh_sh64_register_convert_to_raw): Update.
9043         * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9044         (rs6000_register_convert_to_raw): Update.
9045         * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9046         (ia64_register_convert_to_raw): Update.
9047         * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9048         (REGISTER_CONVERT_TO_VIRTUAL): Update.
9049         * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9050         * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9051         (alpha_register_convert_to_raw): Update.
9052
9053 2003-04-08  Andrew Cagney  <cagney@redhat.com>
9054
9055         * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9056         * gdbarch.h, gdbarch.c: Re-generate.
9057         * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9058         (d10v_gdbarch_init): Do not set saved_pc_after_call.
9059         * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9060         conditionally, use frame_pc_unwind as an alternative.  Add
9061         comments.
9062         * arch-utils.c (init_frame_pc_default): Only call
9063         SAVED_PC_AFTER_CALL when available.
9064
9065 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
9066
9067         * infrun.c (stop_soon): Rename from stop_soon_quietly.
9068         (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9069         (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9070         (start_remote): Ditto.
9071         (handle_inferior_event): Ditto.
9072         (save_inferior_status): Ditto.
9073         (restore_inferior_status): Ditto.
9074         * infcmd.c (attach_command): Ditto.
9075         * fork-child.c (startup_inferior): Ditto.
9076         * inferior.h (stop_soon): Rename from stop_soon_quietly.
9077         * alpha-tdep.c (heuristic_proc_start): Ditto.
9078         * mips-tdep.c (heuristic_proc_start): Ditto.
9079         * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9080         * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9081         * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9082         * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9083         * remote-vx.c (vx_create_inferior): Ditto.
9084
9085 2003-04-08  Elena Zannoni  <ezannoni@redhat.com>
9086
9087         * infrun.c (stop_soon_quietly): Make it an enum, to better
9088         override the default behavior of handle_inferior_event.
9089         (clear_proceed_status): Update uses of stop_soon_quietly to
9090         reflect that it is now an enum.
9091         (start_remote): Ditto.
9092         (handle_inferior_event): Change logic a bit if stop_soon_quietly
9093         is set to handle the new GNU/Linux kernel behavior for
9094         attach/sigstop.  Update uses of stop_soon_quietly.
9095         * inferior.h (enum stop_kind): New enum.
9096         * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9097         Reset normal handle_inferior_event behavior, afterwards.
9098         * fork-child.c (startup_inferior): Update.
9099         * alpha-tdep.c (heuristic_proc_start): Update.
9100         * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9101         * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9102         * solib-osf.c (osf_solib_create_inferior_hook): Update.
9103         * solib-irix.c (irix_solib_create_inferior_hook): Update.
9104         * remote-vx.c (vx_create_inferior): Update.
9105         * mips-tdep.c (heuristic_proc_start): Update.
9106
9107 2003-04-07  Elena Zannoni  <ezannoni@redhat.com>
9108
9109         * disasm.c (dump_insns):  Move variables inside loop, or they will
9110         be freed more than once, causing wild memory corruptions.
9111         (gdb_disassembly): Look for the substring "-thread",
9112         instead of "-threads" in the target name, to make sure to find
9113         the 'multi-thread' target.  Also, make sure we do the right thing
9114         with the "core" target.
9115
9116 2003-04-07  Kevin Buettner  <kevinb@redhat.com>
9117
9118         * mips-tdep.c (mips_print_fp_register): New function, created from
9119         do_fp_register_row().  Registers are now (also) printed as hex.
9120         Only one register is printed per row.
9121         (mips_print_register, do_fp_register_row): Print floating point
9122         registers with mips_print_fp_register().
9123
9124 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9125
9126         * valprint.h (inspect_it): Add extern declaration.
9127         * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9128         (selectors_info, classes_info): Ditto.
9129         (find_objc_msgcall): Fix indentation.
9130         (objc_printstr): Delete extern declarations.
9131
9132         * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9133
9134 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9135
9136         * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9137         Update comment.
9138         * frame.c (legacy_saved_regs_this_id): Update.
9139         (legacy_get_prev_frame): Update.
9140         * xstormy16-tdep.c: Update comment.
9141         * sparc-tdep.c (sparc_frame_chain): Update comment.
9142         * blockframe.c (legacy_frame_chain_valid): Update.
9143
9144 2003-04-06  Andrew Cagney  <cagney@redhat.com>
9145
9146         * valprint.c (val_print_type_code_int): Delete #ifdef
9147         PRINT_TYPELESS_INTEGER code.
9148
9149         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9150         (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9151         multi-arch definition.
9152         * gdbarch.h: Re-generate.
9153
9154 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9155
9156         Eliminate FRAME_FIND_SAVED_REGS.
9157         * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9158         Change FSR parameter to a pointer.
9159         * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9160         Assume FSR parameter is a pointer.
9161         * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9162         Make fsr a pointer.
9163         * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9164         (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs.  Make
9165         saved_regs a pointer.
9166         (hppa_frame_saved_pc): Ditto.
9167         (find_dummy_frame_regs): Make frame_saved_regs a pointer
9168         (hppa_pop_frame): Call hppa_frame_init_saved_regs.  Make fsr a
9169         pointer.
9170         (restore_pc_queue): Make fsr a pointer.
9171         (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9172         (hppa_frame_chain): Make saved_regs a pointer, call
9173         hppa_frame_init_saved_regs.
9174         * sparc-tdep.c: Include "gdb_assert.h".
9175         (sparc_frame_find_saved_regs): Replace internal_error with
9176         gdb_assert.
9177         * remote-vxsparc.c (vx_read_register): Delete reference to
9178         FRAME_FIND_SAVED_REGS.
9179         * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9180         * gdbarch.h: Regenerate.
9181         * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9182         (deprecated_get_frame_saved_regs): Delete declaration.
9183         (struct frame_saved_regs): Delete definition.
9184         * frame.c (deprecated_get_frame_saved_regs): Delete function.
9185         * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9186         (hppa_frame_find_saved_regs): Delete declaration.
9187         (FRAME_FIND_SAVED_REGS): Delete macro.
9188         (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9189         * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9190         FRAME_FIND_SAVED_REGS in comment.
9191
9192 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9193
9194         * frame.c (frame_func_unwind, get_frame_func): New functions.
9195         * frame.h (get_frame_func, frame_func_unwind): Declare.
9196         (struct frame_info): Add field "prev_func" for caching the
9197         previous frame's function address.
9198         * arm-tdep.c (arm_frameless_function_invocation): Combine
9199         get_pc_function_start and get_frame_pc into get_frame_func.
9200         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9201         (sh64_nofp_frame_init_saved_regs): Ditto.
9202         * s390-tdep.c (s390_function_start): Ditto.
9203         * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9204         (rs6000_frameless_function_invocation): Ditto.
9205         (rs6000_frame_saved_pc): Ditto.
9206         * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9207         * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9208         * i386-tdep.c (i386_frameless_signal_p): Ditto.
9209         (i386_frame_init_saved_regs): Ditto.
9210         * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9211         * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9212         get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9213         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9214         * blockframe.c (frameless_look_for_prologue): Ditto.
9215
9216 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9217
9218         * frame.c (legacy_get_prev_frame): Link prev to next at the
9219         function start.  Update comments.
9220
9221 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9222
9223         * frame.c (get_frame_id): Update comment.
9224         (legacy_get_prev_frame): Update comment.
9225         * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9226         * gdbarch.h: Regenerate.
9227         * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9228         * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9229
9230 2003-04-05  Andrew Cagney  <cagney@redhat.com>
9231
9232         * stack.c (print_frame_info): Use get_frame_pc.
9233
9234 2003-04-04  Andrew Cagney  <cagney@redhat.com>
9235
9236         * frame.c (get_prev_frame): Do not call frame_type_from_pc.  Set
9237         the frame's type from the unwinder.
9238         (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9239         (create_new_frame, legacy_get_prev_frame): When the unwinder's
9240         type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9241         (get_frame_base_address): Use get_frame_type.
9242         (get_frame_locals_address, get_frame_args_address): Ditto.
9243         (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9244         * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9245         (struct frame_info): Add comment explaining why the frame contains
9246         a "type" field.
9247         * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9248         * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9249         * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9250         NORMAL_FRAME.
9251         * frame-unwind.h: Include "frame.h".
9252         (struct frame_unwind): Add "type" field.
9253         * Makefile.in (frame_unwind_h): Add $(frame_h).
9254
9255 2003-04-04  Andrew Cagney  <cagney@redhat.com>
9256
9257         * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9258         * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9259         * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9260         get_frame_base.
9261         (d10v_unwind_dummy_id): Use frame_id_build.
9262         * frame.c (find_frame_sal): Use get_frame_pc.
9263         (create_new_frame): Use deprecated_update_frame_pc_hack and
9264         deprecated_update_frame_base_hack.
9265         (create_sentinel_frame): Add comment about ->pc going away.
9266         (get_prev_frame): Add comment about ->pc going away.
9267         (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9268         frame_id_build, deprecated_update_frame_pc_hack and
9269         deprecated_update_frame_base_hack.
9270         (select_frame): Use get_frame_pc.
9271         (legacy_saved_regs_this_id): Use frame_id_build.
9272
9273 2003-04-04  Elena Zannoni  <ezannoni@redhat.com>
9274
9275         * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9276         signed integer case.
9277         (classify_argument): Handle enumerations and references.
9278
9279 2003-04-04  Andrew Cagney  <cagney@redhat.com>
9280
9281         * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9282         ID to NULL.
9283
9284 2003-04-01  Adam Fedor  <fedor@gnu.org>
9285
9286         * gdb/objc-lang.c (selectors_info): Replace calls to
9287         SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9288         SYMBOL_NATURAL_NAME.
9289         (classes_info, find_methods): Likewise.
9290
9291 2003-04-03  Kevin Buettner  <kevinb@redhat.com>
9292
9293         * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9294         ``mach'' to the value determined by bfd_default_set_arch_mach().
9295
9296 2003-04-02  Bob Rossi  <bob_rossi@cox.net>
9297
9298         * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9299         (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9300         (mi-cmd-file.o): Update dependencies.
9301
9302 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
9303
9304         * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9305         (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9306
9307 2003-04-01  Adam Fedor  <fedor@gnu.org>
9308
9309         * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9310         * language.h (struct language_defn): Add la_demangle.
9311         (language_demangle): Declare.
9312         * language.c (language_demangle): New function.
9313         (unk_lang_demangle): Likewise.
9314         (unknown_language_defn, auto_language_defn, local_language_defn):
9315         Add ukn_lang_demangle.
9316         * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9317         * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9318         * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9319         (cplus_language_defn): Add cplus_demangle for la_demangle element.
9320         * jv-lang.c (java_demangle): New function
9321         (java_language_defn): Use it for la_demangle element.
9322         * objc-lang.c (objc_demangle): Add options argument
9323         (objc_language_defn): Use objc_demangle for la_demangle element.
9324         * maint.c (maintenance_demangle): Replace switch with
9325         call to language_demangle.
9326         * utils.c (fprintf_symbol_filtered): Likewise.
9327
9328 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9329
9330         * printcmd.c (print_frame_nameless_args): Delete #ifdef
9331         NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9332         PRINT_TYPELESS_INTEGER.
9333         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9334         PUSH_RETURN_ADDRESS.
9335
9336 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9337
9338         * Makefile.in (d10v-tdep.o): Update dependencies.
9339         * d10v-tdep.c: Include "frame-base.h".
9340         (d10v_frame_unwind): Make constant.
9341         (d10v_frame_base_address): New function.
9342         (d10v_frame_base): New variable.
9343         (d10v_gdbarch_init): Set frame_base default.
9344         (struct d10v_unwind_cache): Add the field "prev_sp".  Update
9345         comment for base.
9346         (d10v_frame_unwind_cache): Set and use "prev_sp".
9347         (d10v_frame_this_id): Use the previous frame's inner most stack
9348         address and this frame's func address for the frame ID.  Use
9349         frame_id_build.  Don't analyze beyond the current instruction.
9350
9351 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9352
9353         * frame.h (get_frame_locals_address, get_frame_args_address):
9354         Refer to the base address, instead of the address of the first
9355         local or parameter.
9356
9357 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9358
9359         Add frame debug info addresses:
9360         * frame-base.c: New file.
9361         * frame-base.h: New file.
9362         * frame.h (struct frame_base): Add opaque declaration.
9363         (get_frame_base): Update comment.
9364         (get_frame_base_address): Declare.
9365         (get_frame_locals_address): Declare.
9366         (get_frame_args_address): Declare.
9367         (struct frame_info): Add "base" and "base_cache".  Update
9368         comments on the unwinder.
9369         * frame.c: Include "frame-base.h".
9370         (get_frame_locals_address): New function.
9371         (get_frame_base_address): New function.
9372         (get_frame_args_address): New function.
9373         * findvar.c (read_var_value): Use get_frame_locals_address and
9374         get_frame_args_address.
9375         * stack.c (frame_info): Use get_frame_locals_address and
9376         get_frame_args_address.
9377         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9378         moved to "frame-base.c".
9379         * printcmd.c (print_frame_nameless_args): Ditto.
9380         * symtab.h (address_class): Update comments.
9381         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9382         get_frame_base_address.
9383         * dwarf2expr.c (execute_stack_op): Ditto.
9384         * Makefile.in (frame_base_h): Define.
9385         (frame.o): Update dependencies.
9386         (frame-base.o): Add dependencies.
9387         (SFILES): Add frame-base.c.
9388         (COMMON_OBS): Add frame-base.o.
9389
9390 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9391
9392         * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9393         CALL_DUMMY_LENGTH): Ditto.
9394         * gdbarch.c: Re-generate.
9395         * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9396         (CALL_DUMMY_LENGTH): Delete macro.
9397         * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9398         * arm-tdep.c (arm_gdbarch_init): Ditto.
9399         * avr-tdep.c (avr_gdbarch_init): Ditto.
9400         * cris-tdep.c (cris_gdbarch_init): Ditto.
9401         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9402         * frv-tdep.c (frv_gdbarch_init): Ditto.
9403         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9404         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9405         * i386-tdep.c (i386_gdbarch_init): Ditto.
9406         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9407         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9408         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9409         * mips-tdep.c (mips_gdbarch_init): Ditto.
9410         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9411         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9412         * s390-tdep.c (s390_gdbarch_init): Ditto.
9413         * sh-tdep.c (sh_gdbarch_init): Ditto.
9414         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9415         * v850-tdep.c (v850_gdbarch_init): Ditto.
9416         * vax-tdep.c (vax_gdbarch_init): Ditto.
9417         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9418
9419 2003-04-01  Corinna Vinschen  <vinschen@redhat.com>
9420
9421         * frame.c (get_prev_frame): Disable call to inside_entry_file().
9422
9423 2003-04-01  Andrew Cagney  <cagney@redhat.com>
9424
9425         * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9426         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9427         * gdbarch.h, gdbarch.c: Re-generate.
9428         * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9429         (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9430         * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9431         * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9432         (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9433         * infcmd.c (run_stack_dummy): Simplify assuming
9434         CALL_DUMMY_BREAKPOINT_OFFSET_P.
9435         * infrun.c (handle_inferior_event): Ditto.
9436         * alpha-tdep.c (alpha_gdbarch_init): Do not set
9437         call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9438         * arm-tdep.c (arm_gdbarch_init): Ditto.
9439         * avr-tdep.c (avr_gdbarch_init): Ditto.
9440         * cris-tdep.c (cris_gdbarch_init): Ditto.
9441         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9442         * frv-tdep.c (frv_gdbarch_init): Ditto.
9443         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9444         * i386-tdep.c (i386_gdbarch_init): Ditto.
9445         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9446         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9447         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9448         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9449         * mips-tdep.c (mips_gdbarch_init): Ditto.
9450         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9451         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9452         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9453         * s390-tdep.c (s390_gdbarch_init): Ditto.
9454         * sh-tdep.c (sh_gdbarch_init): Ditto.
9455         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9456         * v850-tdep.c (v850_gdbarch_init): Ditto.
9457         * vax-tdep.c (vax_gdbarch_init): Ditto.
9458         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9459
9460 2003-04-01  Daniel Jacobowitz  <drow@mvista.com>
9461
9462         * symfile.c (symfile_relocate_debug_section): Update call to
9463         bfd_simple_get_relocated_section_contents.
9464
9465 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9466
9467         * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9468         * gdbarch.h, gdbarch.c: Regenerate.
9469         * inferior.h (FIX_CALL_DUMMY): Delete macro.
9470         * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9471         available.
9472         * frame.h (generic_fix_call_dummy): Delete declaration.
9473         * dummy-frame.h: Update comment.
9474         * dummy-frame.c (generic_fix_call_dummy): Delete function.
9475         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9476         fix_call_dummy.
9477         * sh-tdep.c (sh_gdbarch_init): Ditto.
9478         * s390-tdep.c (s390_gdbarch_init): Ditto.
9479         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9480         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9481         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9482         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9483         * i386-tdep.c (i386_gdbarch_init): Ditto.
9484         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9485         * frv-tdep.c (frv_gdbarch_init): Ditto.
9486         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9487         * cris-tdep.c (cris_gdbarch_init): Ditto.
9488         * avr-tdep.c (avr_gdbarch_init): Ditto.
9489         * arm-tdep.c (arm_gdbarch_init): Ditto.
9490
9491 2003-03-31  J. Brobecker  <brobecker@gnat.com>
9492
9493         * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9494         (INIT_FRAME_AP): Likewise.
9495         (EXTRA_FRAME_INFO): Likewise.
9496
9497 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9498
9499         * gdbarch.sh: Include "symfile.h".
9500         (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9501         * gdbarch.h, gdbarch.c: Re-generate.
9502         * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9503         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9504         call_dummy_address, the default is at entry_point_address.
9505         * v850-tdep.c (v850_gdbarch_init): Ditto.
9506         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9507         * sh-tdep.c (sh_gdbarch_init): Ditto.
9508         * s390-tdep.c (s390_gdbarch_init): Ditto.
9509         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9510         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9511         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9512         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9513         * i386-tdep.c (i386_gdbarch_init): Ditto.
9514         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9515         * frv-tdep.c (frv_gdbarch_init): Ditto.
9516         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9517         * cris-tdep.c (cris_gdbarch_init): Ditto.
9518         * arm-tdep.c (arm_gdbarch_init): Ditto.
9519
9520 2003-03-31  Andrew Cagney  <cagney@redhat.com>
9521
9522         * gdbarch.sh (CALL_DUMMY_P): Delete.
9523         * gdbarch.h, gdbarch.c: Re-generate.
9524         * inferior.h (CALL_DUMMY_P): Delete macro.
9525         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9526         * vax-tdep.c (vax_gdbarch_init): Update.
9527         * v850-tdep.c (v850_gdbarch_init): Update.
9528         * sparc-tdep.c (sparc_gdbarch_init): Update.
9529         * sh-tdep.c (sh_gdbarch_init): Update.
9530         * s390-tdep.c (s390_gdbarch_init): Update.
9531         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9532         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9533         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9534         * mips-tdep.c (mips_gdbarch_init): Update.
9535         * mcore-tdep.c (mcore_gdbarch_init): Update.
9536         * m68k-tdep.c (m68k_gdbarch_init): Update.
9537         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9538         * ia64-tdep.c (ia64_gdbarch_init): Update.
9539         * i386-tdep.c (i386_gdbarch_init): Update.
9540         * h8300-tdep.c (h8300_gdbarch_init): Update.
9541         * frv-tdep.c (frv_gdbarch_init): Update.
9542         * d10v-tdep.c (d10v_gdbarch_init): Update.
9543         * cris-tdep.c (cris_gdbarch_init): Update.
9544         * breakpoint.c (deprecated_frame_in_dummy): Update.
9545         * avr-tdep.c (avr_gdbarch_init): Update.
9546         * alpha-tdep.c (alpha_gdbarch_init): Update.
9547         * arm-tdep.c (arm_gdbarch_init): Update.
9548         * dummy-frame.c (dummy_frame_this_id): Update comments.
9549         * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9550         * frame.c (legacy_get_prev_frame): Ditto.
9551         * valops.c (call_function_by_hand): Delete function.
9552         (hand_function_call): Rename to call_function_by_hand
9553
9554 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9555
9556         2002-11-10 Klee Dienes <kdienes@apple.com>
9557         * value.h (struct value): Update comment.
9558
9559 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9560
9561         * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9562         D10V_FP_REGNUM.
9563         (d10v_gdbarch_init): Do not set fp_regnum.
9564
9565         * frame.c (get_frame_base): Force ID initialization.
9566         (get_prev_frame): Move computation of the frame ID from here ...
9567         (get_frame_id): ... to here.
9568         (legacy_get_prev_frame): Mark the frame ID as valid.
9569         * frame.h (struct frame_info): Add field "id_p".
9570
9571 2003-03-30  Mark Kettenis  <kettenis@gnu.org>
9572
9573         * i386-tdep.c (i386_store_struct_return): Removed.
9574         (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9575
9576 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9577
9578         * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9579         * gdbarch.h, gdbarch.c: Regenerate.
9580         * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9581         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9582         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9583         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9584         * i386-tdep.c (i386_gdbarch_init): Ditto.
9585         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9586         * cris-tdep.c (cris_gdbarch_init): Ditto.
9587         * vax-tdep.c (vax_gdbarch_init): Ditto.
9588         * s390-tdep.c (s390_gdbarch_init): Ditto.
9589         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9590         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9591         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9592         * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9593         * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9594         * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9595         * sparc-tdep.c (sparc_gdbarch_init): Update.
9596         * sh-tdep.c (sh_gdbarch_init): Update.
9597         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9598         * mips-tdep.c (mips_gdbarch_init): Update.
9599         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9600         * ia64-tdep.c (ia64_gdbarch_init): Update.
9601         * frv-tdep.c (frv_gdbarch_init): Update.
9602         * avr-tdep.c (avr_gdbarch_init): Update.
9603         * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9604         DEPRECATED_DUMMY_WRITE_SP.  Call when the method is available,
9605         instead of when push_dummy_call is not available.
9606
9607 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9608
9609         * infttrace.c: Include "gdbthread.h".
9610         (parent_attach_all): Fix function signature.
9611         (call_ptrace): Update call.
9612         * Makefile.in (infttrace.o): Update dependencies.
9613
9614 2003-03-30  Andrew Cagney  <cagney@redhat.com>
9615
9616         * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9617         PUSH_RETURN_ADDRESS.
9618         * gdbarch.h, gdbarch.c: Regenerate.
9619         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9620         * x86-64-tdep.c (x86_64_init_abi): Update.
9621         * v850-tdep.c (v850_gdbarch_init): Update.
9622         * sparc-tdep.c (sparc_gdbarch_init): Update.
9623         * sh-tdep.c (sh_gdbarch_init): Update.
9624         * s390-tdep.c (s390_gdbarch_init): Update.
9625         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9626         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9627         * mips-tdep.c (mips_gdbarch_init): Update.
9628         * mcore-tdep.c (mcore_gdbarch_init): Update.
9629         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9630         * ia64-tdep.c (ia64_gdbarch_init): Update.
9631         * i386-tdep.c (i386_gdbarch_init): Update.
9632         * h8300-tdep.c (h8300_gdbarch_init): Update.
9633         * frv-tdep.c (frv_gdbarch_init): Update.
9634         * cris-tdep.c (cris_gdbarch_init): Update.
9635         * avr-tdep.c (avr_gdbarch_init): Update.
9636         * arm-tdep.c (arm_gdbarch_init): Update.
9637         * valops.c (hand_function_call): Update.
9638
9639 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9640
9641         * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9642         sizeof_call_dummy_words.
9643         * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9644         define.
9645         * gdbarch.h: Regenerate.
9646
9647 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9648
9649         * infttrace.h: New file.
9650         * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9651         (hpread_get_textlow): Detect an uninitialized dn_bufp.
9652         (hpread_read_doc_function_type): Detect an initialized type1.
9653         (hpread_quick_traverse): Initialize mod_name_string.
9654         * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9655         (som_solib_get_solib_by_pc): Declare.
9656         (so_lib_thread_start_addr): Declare.
9657         (no_shared_libraries): Declare.
9658         * somread.c (init_import_symbols): Make static.  Add forward
9659         declaration.
9660         * config/pa/nm-hppah.h: Include "infttrace.h" for
9661         parent_attach_all.
9662         (hppa_insert_hw_watchpoint): Declare.
9663         (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9664         * hppah-nat.c: Include "gdb_string.h".
9665         (parent_attach_all): Delete extern declaration, moved to
9666         "infttrace.h".
9667         (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9668         int.
9669         (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9670         * Makefile.in (infttrace_h): Define.
9671         (hpread.o): Update dependencies.
9672         (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9673         * hppa-hpux-tdep.c: Include "gdb_string.h".
9674         * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9675         * infrun.c (handle_inferior_event): Always initialize
9676         stepped_after_stopped_by_watchpoint.  Add default and remove
9677         fallthrough in switch statement.
9678         * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9679         parameter to int.
9680         (hppa_remove_hw_watchpoint): Ditto.
9681
9682 2003-03-29  Andrew Cagney  <cagney@redhat.com>
9683
9684         * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9685         offset.
9686
9687 2003-03-29  Richard Earnshaw  <rearnsha@arm.com>
9688
9689         * arm-tdep.c (arm_push_arguments): Delete.
9690         (struct stack_item): New type.
9691         (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9692         (arm_store_struct_return): Delte.
9693         (arm_gdbarch_init): Register arm_push_dummy_call.  Don't register
9694         arm_push_arguments or arm_store_struct_return.
9695
9696 2003-03-28  Andrew Cagney  <cagney@redhat.com>
9697
9698         * Makefile.in (d10v-tdep.o): Update dependencies.
9699         * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9700         * d10v-tdep.c: Include "remote.h".
9701         (target_resume_hook): Delete extern declaration.
9702         (target_wait_loop_hook): Ditto.
9703         (tdisassemble_command): Eliminate assignment in "if" conditional.
9704         (d10v_ts2_register_sim_regno): Eliminate call to
9705         legacy_register_sim_regno.
9706         (d10v_ts3_register_sim_regno): Ditto.
9707
9708 2003-03-28  Jeff Johnston  <jjohnstn@redhat.com>
9709
9710         * thread.c: Reindented.
9711         * lin-lwp.c: Ditto.
9712         * linux-proc.c: Ditto.
9713
9714 2003-03-28  Bob Rossi  <bob_rossi@cox.net>
9715
9716         * MAINTAINERS (write after approval): Add myself.
9717
9718 2003-03-27  Theodore A. Roth  <troth@openavr.org>
9719
9720         * objc-exp.y: Add missing semi-colons.
9721
9722 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9723
9724         * regcache.c (write_sp): Delete function and references.
9725         * inferior.h (write_sp): Delete declaration.
9726         * valops.c (hand_function_call): Replace write_sp with
9727         TARGET_WRITE_SP.
9728         * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9729         (sparc_pop_frame): Ditto.
9730
9731 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9732
9733         * NEWS: Mention removal of support for hppa*-*-bsd* and
9734         hppa*-*-osf* natives, and hppa*-*-pro* target.
9735         * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9736         * config/pa/xm-pa.h: Obsolete file.
9737         * config/pa/xm-hppab.h: Obsolete file.
9738         * config/pa/nm-hppab.h: Obsolete file.
9739         * config/pa/tm-hppab.h: Obsolete file.
9740         * config/pa/tm-hppao.h: Obsolete file.
9741         * config/pa/nm-hppao.h: Obsolete file.
9742         * config/pa/tm-pro.h: Obsolete file.
9743         * config/pa/hppaosf.mt: Obsolete file.
9744         * config/pa/hppaosf.mh: Obsolete file.
9745         * config/pa/hppapro.mt: Obsolete file.
9746         * config/pa/hppabsd.mt: Obsolete file.
9747         * config/pa/hppabsd.mh: Obsolete file.
9748         * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9749         * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9750         hppa*-*-osf*.
9751
9752 2003-03-27  Andrew Cagney  <cagney@redhat.com>
9753
9754         * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9755         push_arguments.  Don't set push_return_address or write_sp.
9756         (d10v_push_dummy_call): Replace d10v_push_arguments.
9757         (d10v_push_return_address, d10v_write_sp): Delete function,
9758         handled by push_dummy_call.
9759
9760 2003-03-26  Andrew Cagney  <cagney@redhat.com>
9761
9762         * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9763         (push_dummy_call): New pure multi-arch replacement with gdbarch,
9764         regcache and dummy_addr parameters.
9765         * gdbarch.h, gdbarch.c: Re-generate.
9766         * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9767         available; assume it will handle stack alignment and return
9768         address issues.  Fall back to DEPRECATED_PUSH_ARGUMENTS and
9769         legacy_push_arguments.
9770         (legacy_push_arguments): Rename default_push_arguments.
9771         * value.h (legacy_push_arguments): Rename default_push_arguments.
9772         * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9773         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9774         * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9775         * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9776         * config/i386/tm-symmetry.h: Update.
9777         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9778         * x86-64-tdep.c (x86_64_init_abi): Update.
9779         * v850-tdep.c (v850_gdbarch_init): Update.
9780         * sparc-tdep.c (sparc_gdbarch_init): Update.
9781         * sh-tdep.c (sh_gdbarch_init): Update.
9782         * s390-tdep.c (s390_gdbarch_init): Update.
9783         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9784         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9785         * mips-tdep.c (mips_gdbarch_init): Update.
9786         * mcore-tdep.c (mcore_gdbarch_init): Update.
9787         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9788         * ia64-tdep.c (ia64_gdbarch_init): Update.
9789         * i386-tdep.c (i386_gdbarch_init): Update.
9790         * hppa-tdep.c (hppa_gdbarch_init): Update.
9791         * h8300-tdep.c (h8300_gdbarch_init): Update.
9792         * frv-tdep.c (frv_gdbarch_init): Update.
9793         * d10v-tdep.c (d10v_gdbarch_init): Update.
9794         * cris-tdep.c (cris_gdbarch_init): Update.
9795         * avr-tdep.c (avr_gdbarch_init): Update.
9796         * arm-tdep.c (arm_gdbarch_init): Update.
9797         * arm-linux-tdep.c (arm_linux_init_abi): Update.
9798         * alpha-tdep.c (alpha_gdbarch_init): Update.
9799
9800 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9801
9802         * signals/signals.c (do_target_signal_to_host): Correct realtime
9803         signal range test.
9804
9805 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9806
9807         * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9808         (struct sal_chain, map_catch_names): Remove.
9809         (catch_exception_command_1): Don't call
9810         handle_gnu_4_16_catch_command.
9811
9812 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9813
9814         From Mark Dettinger <dettinge@de.ibm.com>:
9815         * dwarf2cfi.c (read_2u): Increment pointer by two.
9816
9817 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9818
9819         * signals/signals.c: Fix typos in last change.
9820
9821 2003-03-26  Daniel Jacobowitz  <drow@mvista.com>
9822
9823         * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9824         not already defined.  Use __SIGRTMIN if available.
9825         (target_signal_from_host): Remove SIGRTMIN block.
9826         (do_target_signal_to_host): Remove SIGRTMIN block; check that
9827         the signal is within the realtime range.
9828
9829 2003-03-25  Adam Fedor  <fedor@gnu.org>
9830
9831         * Makefile.in (infrun.o): Add $(language_h)
9832         * infrun.c (handle_inferior_event): Use skip_language_trampoline
9833         for language specific trampolines.
9834         * language.h (struct language_defn): Add skip_trampoline.
9835         (skip_language_trampoline): Declare.
9836         * language.c (unk_lang_trampoline, skip_language_trampoline):
9837         New functions.
9838         (unknown_language_defn, auto_language_defn, local_language_defn):
9839         Add ukn_lang_trampoline.
9840         * ada-lang.c (ada_language_defn): Add NULL for language
9841         specific skip_trampoline.
9842         * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9843         scm-lang.c: Likewise.
9844         * objc-lang.c (objc_skip_trampoline): New function.
9845         (objc_language_defn): Add objc_skip_trampoline.
9846
9847 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9848
9849         * frame.c (get_prev_frame): Delay validating a frame's ID -
9850         non-NULL, didn't go backwards - until an attempt to unwind it to
9851         the previous frame.
9852
9853 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9854
9855         * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9856         EXTRA_STACK_ALIGNMENT_NEEDED.  Default to 0 not 1.
9857         * gdbarch.h, gdbarch.c: Re-generate.
9858         * config/sparc/tm-sparc.h
9859         (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9860         * sparc-tdep.c (sparc_gdbarch_init): Set
9861         deprecated_extra_stack_alignment_needed.
9862         * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9863         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9864         extra_stack_alignment_needed.
9865         * v850-tdep.c (v850_gdbarch_init): Ditto.
9866         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9867         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9868         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9869         * cris-tdep.c (cris_gdbarch_init): Ditto.
9870         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9871         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9872
9873 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9874
9875         * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9876         STORE_STRUCT_RETURN.
9877         * gdbarch.h, gdbarch.c: Regenerate.
9878         * d10v-tdep.c (d10v_store_struct_return): Delete function.
9879         (d10v_push_arguments): Set the struct return register.
9880         (d10v_gdbarch_init): Update.
9881         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9882         * x86-64-tdep.c (x86_64_init_abi): Update.
9883         * vax-tdep.c (vax_gdbarch_init): Update.
9884         * v850-tdep.c (v850_gdbarch_init): Update.
9885         * sparc-tdep.c (sparc_gdbarch_init): Update.
9886         * sh-tdep.c (sh_gdbarch_init): Update.
9887         * s390-tdep.c (s390_gdbarch_init): Update.
9888         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9889         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9890         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9891         * mips-tdep.c (mips_gdbarch_init): Update.
9892         * mcore-tdep.c (mcore_gdbarch_init): Update.
9893         * m68k-tdep.c (m68k_gdbarch_init): Update.
9894         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9895         * ia64-tdep.c (ia64_gdbarch_init): Update.
9896         * i386-tdep.c (i386_gdbarch_init): Update.
9897         * hppa-tdep.c (hppa_gdbarch_init): Update.
9898         * h8300-tdep.c (h8300_gdbarch_init): Update.
9899         * frv-tdep.c (frv_gdbarch_init): Update.
9900         * cris-tdep.c (cris_gdbarch_init): Update.
9901         * avr-tdep.c (avr_gdbarch_init): Update.
9902         * arm-tdep.c (arm_gdbarch_init): Update.
9903         * alpha-tdep.c (alpha_gdbarch_init): Update.
9904
9905 2003-03-25  Andrew Cagney  <cagney@redhat.com>
9906
9907         * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9908         (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9909         CALL_DUMMY_STACK_ADJUST with a predicate variable.
9910         * gdbarch.h, gdbarch.c: Regenerate.
9911         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9912         call_dummy_stack_adjust_p.
9913         * vax-tdep.c (vax_gdbarch_init): Ditto.
9914         * v850-tdep.c (v850_gdbarch_init): Ditto.
9915         * sh-tdep.c (sh_gdbarch_init): Ditto.
9916         * s390-tdep.c (s390_gdbarch_init): Ditto.
9917         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9918         * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9919         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9920         * mips-tdep.c (mips_gdbarch_init): Ditto.
9921         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9922         * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9923         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9924         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9925         * i386-tdep.c (i386_gdbarch_init): Ditto.
9926         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9927         * frv-tdep.c (frv_gdbarch_init): Ditto.
9928         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9929         * cris-tdep.c (cris_gdbarch_init): Ditto.
9930         * avr-tdep.c (avr_gdbarch_init): Ditto.
9931         * arm-tdep.c (arm_gdbarch_init): Ditto.
9932         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9933         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9934         * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9935         * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9936         * sparc-tdep.c (sparc_gdbarch_init): Update.  Do not set
9937         call_dummy_stack_adjust_p.
9938         * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9939         (CALL_DUMMY_STACK_ADJUST): Delete macro.
9940         * sparc-tdep.c (sparc32_push_arguments): Update.
9941         * valops.c (hand_function_call): Update.
9942
9943 2003-03-25  Corinna Vinschen  <vinschen@redhat.com>
9944
9945         * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9946         set_gdbarch_char_signed.
9947
9948 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
9949
9950         PR cli/548
9951         * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9952
9953 2003-03-25  Richard Earnshaw  <rearnsha@arm.com>
9954
9955         * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9956         (_initialize_arm_tdep): Don't set tm_print_insn.
9957
9958 2003-03-24  Adam Fedor  <fedor@gnu.org>
9959
9960         * Makefile.in (YYOBJ): Add objc-exp.tab.o
9961         * objc-lang.h: Add multiple inclusion protection.
9962         (start_msglist, add_msglist, end_msglist): Additional declarations.
9963
9964 2003-03-24  Richard Earnshaw  <rearnsha@arm.com>
9965
9966         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9967         value was renamed to ARM_FLOAT_SOFT_FPA.
9968
9969 2003-03-23  Andrew Cagney  <cagney@redhat.com>
9970
9971         * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9972         (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9973         * gdbarch.h, gdbarch.c: Regenerate.
9974         * valops.c (hand_function_call): Update.
9975         * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9976         * frame.c (legacy_saved_regs_this_id): Update.
9977         (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9978         * dummy-frame.h: Update.
9979         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9980         * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9981         * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9982         * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9983         * config/m68k/tm-sun3.h: Update.
9984         * blockframe.c (inside_main_func, frame_chain_valid): Update.
9985         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9986         * x86-64-tdep.c (x86_64_init_abi): Update.
9987         * vax-tdep.c (vax_gdbarch_init): Update.
9988         * v850-tdep.c (v850_gdbarch_init): Update.
9989         * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9990         * sh-tdep.c (sh_gdbarch_init): Update.
9991         * s390-tdep.c (s390_gdbarch_init): Update.
9992         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9993         (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9994         (frame_get_saved_regs): Update.
9995         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9996         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9997         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9998         * mips-tdep.c (mips_gdbarch_init): Update.
9999         * mcore-tdep.c (mcore_gdbarch_init): Update.
10000         * m68k-tdep.c (m68k_gdbarch_init): Update.
10001         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10002         * ia64-tdep.c (ia64_gdbarch_init): Update.
10003         * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
10004         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10005         (i386_interix_back_one_frame): Update.
10006         * hppa-tdep.c (hppa_gdbarch_init): Update.
10007         (hppa_init_extra_frame_info): Update.
10008         * h8300-tdep.c (h8300_gdbarch_init): Update.
10009         * frv-tdep.c (frv_gdbarch_init): Update.
10010         * cris-tdep.c (cris_gdbarch_init): Update.
10011         * avr-tdep.c (avr_gdbarch_init): Update.
10012         * arm-tdep.c (arm_gdbarch_init): Update.
10013         * alpha-tdep.c (alpha_gdbarch_init): Update.
10014
10015 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10016
10017         * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10018         (arm_get_fp_model): Declare.
10019         * arm-tdep.c (fp_model_strings): New string array.
10020         (arm_fp_model, current_fp_model): New variables.
10021         (arm_get_fp_model): New function.
10022         (arm_set_fp): New function.
10023         (set_fp_model_sfunc): New function.
10024         (show_fp_model): New function.
10025         (_initialize_arm_tdep): Add new command to set/show the FPU.
10026         (arm_extract_return_value): Use arm_get_fp_model.
10027         (arm_store_return_value): Likewise.
10028         (arm_gdbarch_init): Default fpa model is softfpa.  Call arm_set_fp
10029         to initialize the floating-point data types.
10030         * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10031         model is FPA.
10032
10033 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10034
10035         * arm-tdep.c (show_arm_command): Don't print out help.  Instead, show
10036         the current setting of each value.
10037         (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10038         new_set and new_show.  Use add_setshow_cmd_full and
10039         add_setshow_boolean_cmd as appropriate.  Deprecate "set/show apcs32"
10040         commands and add new version as subcommands of "set/show arm".
10041
10042 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10043
10044         * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10045         (set_arm_command, show_arm_command): New functions.
10046         (_initialize_arm_tdep): Add them.
10047         (num_disassembly_options): Renamed from num_flavor_options.
10048         (valid_disassembly_styles): Renamed from valid_flavors.
10049         (disassembly_style): Renamed from disassembly_flavor.
10050         (set_disassembly_style_sfunc): Renamed from
10051         set_disassembly_flavor_sfunc.
10052         (set_disassembly_style): Renamed from set_disassembly_flavor.
10053         (arm_othernames): Updated.
10054         (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10055         command.  Add "set/show arm disassembly" commands.  Deprecate
10056         "othernames" command.
10057
10058 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10059
10060         * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10061         (arm-tdep.o): Depend on elf_arm_h.
10062
10063 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10064
10065         * Makefile.in (coff_internal_h): Define.
10066         (arm-tdep.o): Update dependencies.
10067
10068 2003-03-22  Richard Earnshaw  <rearnsha@arm.com>
10069
10070         * arm-tdep.c (prologue_cache): Delete.
10071         (check_prologue_cache, save_prologue_cache): Delete.
10072         (arm_scan_prologue): Don't check or update the prologue_cache.
10073         (arm_gdb_arch_init): Don't initialize it.
10074         (_initialize_arm_tdep): Likewise.
10075
10076 2003-03-21  Stephane Carrez  <stcarrez@nerim.fr>
10077
10078         * MAINTAINERS (tui): Maintainer of tui code.
10079
10080 2003-03-21  Corinna Vinschen  <vinschen@redhat.com>
10081
10082         * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10083         (i386-cygwin-tdep.o): Add dependencies.
10084         * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10085         * i386-cygwin-tdep.c: New file.
10086         * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10087         * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10088
10089 2003-03-20  Andrew Cagney  <cagney@redhat.com>
10090
10091         * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10092         (handle_inferior_event): Remove code calling
10093         DYNAMIC_TRAMPOLINE_NEXTPC.
10094
10095         * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10096         already has a full path.
10097
10098         * main.c (gdb_main): Return 1.
10099         (captured_main): Call error to report an invalid interpreter.
10100
10101         * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10102         * alpha-osf1-tdep.c: Include "gdb_string.h".
10103
10104 2003-03-19  J. Brobecker  <brobecker@gnat.com>
10105
10106         Continuing work to convert the hppa targets to multiarch partial.
10107
10108         * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10109         method, now that hppa_push_dummy_frame has a conformant prototype.
10110         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10111         inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10112         for the switch to multiarch partial.
10113
10114 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
10115
10116         * mdebugread.c (parse_symbol): For stEnd, we're done counting
10117         when iss is issNull.
10118
10119 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
10120
10121         * mips-tdep.c (mips_register_name): Fix fencepost error involving
10122         NUM_REGS bounds check.
10123
10124 2003-03-18  Kevin Buettner  <kevinb@redhat.com>
10125
10126         * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10127         * mips-tdep.c (gdb_assert.h): Include.
10128         (mips_generic_reg_names, mips_processor_reg_names): Make static.
10129         (mips_register_name): Handle integer registers explicitly.  Add
10130         bounds checking.
10131         (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10132         (mips_lsi33k_reg_names): Don't list integer registers; they're
10133         handled by mips_register_name() now.
10134         * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10135         * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10136         * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10137         * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10138         * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10139
10140 2003-03-18  Andrew Cagney  <cagney@redhat.com>
10141
10142         * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10143         a void pointer.
10144         * gdbtypes.h (print_scalar_formatted): Update declaration.
10145         * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10146
10147 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10148
10149         * infrun.c (observer.h): Add #include.
10150         (normal_stop): Add call to observer_notify_normal_stop.
10151         * Makefile.in (infrun.o): Add dependency on observer.h.
10152
10153 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10154
10155         Continuing work to convert the hppa targets to multiarch partial.
10156         * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10157         parameter. Reformat comment.
10158         * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10159         (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10160         to match new profile.
10161
10162 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10163
10164         * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10165         appear to be working in any case.
10166
10167 2003-03-18  J. Brobecker  <brobecker@gnat.com>
10168
10169         * observer.c (observer_test_first_observer): New static variable.
10170         (observer_test_second_observer): Likewise.
10171         (observer_test_third_observer): Likewise.
10172         (observer_test_first_notification_function): New static function.
10173         (observer_test_second_notification_function): Likewise.
10174         (observer_test_third_notification_function): Likewise.
10175
10176 2003-03-17  J. Brobecker  <brobecker@gnat.com>
10177
10178         * hppa-tdep.c (gdb_assert.h): Add missing #include.
10179         * somsolib.c (gdb_assert.h): Likewise.
10180         * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10181         (somsolib.o): Likewise.
10182
10183 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10184
10185         * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10186         BFD.  Simplify setting of di.endian.
10187
10188 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10189
10190         * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10191         * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10192
10193         From Elena Zannoni  <ezannoni@redhat.com>
10194         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10195         vector and floating-point parameters.
10196         (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10197         convention.
10198         (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10199
10200 2003-03-17  Fernando Nasser  <fnasser@redhat.com>
10201
10202         * MAINTAINERS: Remove my name from several maintainership roles.
10203
10204 2003-03-17  Andrew Cagney  <cagney@redhat.com>
10205
10206         Fix frame off-by-one bug.
10207         * frame-unwind.h (frame_this_id_ftype): Replace
10208         frame_unwind_id_ftype.
10209         (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10210         (struct frame_unwind): Replace "id" with "this_id".  Replace "reg"
10211         with "prev_register".
10212         * frame-unwind.c (frame_unwind_find_by_pc): Return
10213         legacy_saved_regs_unwind instead of trad_frame_unwind.  Update
10214         comment.
10215         * dummy-frame.c (cached_find_dummy_frame): Delete function.
10216         (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10217         (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10218         (dummy_frame_unwind): Update.
10219         * sentinel-frame.c (sentinel_frame_prev_register): Replace
10220         sentinel_frame_register_unwind.
10221         (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10222         (sentinel_frame_unwinder): Update.
10223         * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10224         (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10225         * frame.c (create_sentinel_frame): Update. Initialize
10226         "prologue_cache" instead of "unwind_cache".
10227         (frame_register_unwind): Call this frame's prev_register with the
10228         next frame and this frame's prologue cache.
10229         (get_prev_frame): Simplify.  Always call prev frame's this_id with
10230         this frame and prev frame's prologue cache.  Document that this
10231         call is shifted one to the left when compared to the
10232         frame_register_unwind call.
10233         (legacy_saved_regs_prev_register): Replace
10234         frame_saved_regs_register_unwind.
10235         (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10236         (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10237         (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10238         * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10239         (d10v_frame_unwind): Update.
10240         (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10241         (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10242         (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10243         "saved_regs" with "this_saved_regs".
10244
10245 2003-03-16  Andrew Cagney  <cagney@redhat.com>
10246
10247         * frame.c (frame_pop): Don't call target_store_registers.  Fix
10248         problem reported by Mark Kettenis.
10249
10250 2003-03-16  Mark Kettenis  <kettenis@gnu.org>
10251
10252         * i386-tdep.c (i386_register_type): Renamed from
10253         i386_register_virtual_type.  Adjust function signature.
10254         (i386_gdbarch_init): Set register_type instead of
10255         deprecated_max_register_raw_size,
10256         deprecated_max_register_virtual_size and register_virtual_type.
10257
10258 2003-03-14  Andrew Cagney  <cagney@redhat.com>
10259
10260         * frame.c (get_prev_frame): When a legacy frame, always call
10261         legacy_get_prev_frame.  Simplify unwind code using assumption that
10262         the unwinder is new.
10263         (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10264         (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10265         SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10266
10267 2003-03-14  Andrew Cagney  <cagney@redhat.com>
10268
10269         * frame.c (get_saved_register): Delete function.
10270         * frame.h (get_saved_register): Delete declaration.
10271         * xstormy16-tdep.c: Update comment.
10272         * regcache.h: Update comments.
10273         * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10274         get_saved_register and extract_address, use
10275         frame_read_unsigned_register.
10276         (sparc_frame_saved_pc): Ditto.
10277         (sparc_get_saved_register): Instead of get_saved_register, use
10278         frame_register.
10279         (sparc_pop_frame): Ditto.
10280         * findvar.c: Update comments.
10281         (value_of_register): Call frame_register instead of
10282         get_saved_register.
10283         (value_from_register): Ditto.
10284         * config/sparc/tm-sparc.h: Update comment.
10285         * breakpoint.c: Update comment.
10286
10287 2003-03-14  Andrew Cagney  <cagney@redhat.com>
10288
10289         * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10290         GET_SAVED_REGISTER.
10291         * gdbarch.h, gdbarch.c: Re-generate.
10292         * frame.h: Update comments.
10293         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10294         * x86-64-tdep.c (x86_64_init_abi): Update.
10295         * sparc-tdep.c (sparc_gdbarch_init): Update.
10296         * sh-tdep.c (sh_gdbarch_init): Update.
10297         * mips-tdep.c (mips_gdbarch_init): Update.
10298         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10299         * cris-tdep.c (cris_gdbarch_init): Update.
10300         * ia64-tdep.c (ia64_gdbarch_init): Update.
10301         * frame.c (frame_register): Update.
10302         (get_saved_register): Update.
10303         * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10304
10305 2003-03-13  Andrew Cagney  <cagney@redhat.com>
10306
10307         * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10308         * gdbarch.h, gdbarch.c: Regenerate.
10309         * valops.c (hand_function_call): Update comment.
10310         * stack.c (return_command): Update comment.
10311         * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10312         * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10313         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10314         * x86-64-tdep.c (x86_64_init_abi): Update.
10315         * vax-tdep.c (vax_gdbarch_init): Update.
10316         * v850-tdep.c (v850_gdbarch_init): Update.
10317         * sparc-tdep.c (sparc_gdbarch_init): Update.
10318         * sh-tdep.c (sh_gdbarch_init): Update.
10319         * s390-tdep.c (s390_gdbarch_init): Update.
10320         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10321         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10322         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10323         * mips-tdep.c (mips_gdbarch_init): Update.
10324         * mcore-tdep.c (mcore_gdbarch_init): Update.
10325         * m68k-tdep.c (m68k_gdbarch_init): Update.
10326         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10327         * ia64-tdep.c (ia64_gdbarch_init): Update.
10328         * i386-tdep.c (i386_gdbarch_init): Update.
10329         * hppa-tdep.c (hppa_gdbarch_init): Update.
10330         * h8300-tdep.c (h8300_gdbarch_init): Update.
10331         * frv-tdep.c (frv_gdbarch_init): Update.
10332         * cris-tdep.c (cris_gdbarch_init): Update.
10333         * avr-tdep.c (avr_gdbarch_init): Update.
10334         * arm-tdep.c (arm_gdbarch_init): Update.
10335         * alpha-tdep.c (alpha_gdbarch_init): Update.
10336
10337 2003-03-13  Andrew Cagney  <cagney@redhat.com>
10338
10339         * frame.c (legacy_frame_p): New function.
10340         (get_prev_frame): Use legacy_frame_p.
10341         * frame.h (legacy_frame_p): Declare.
10342
10343 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10344
10345         * MAINTAINERS (write after approval): Alphabetically
10346         listing corrected.
10347
10348 2003-03-13  D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10349
10350         * MAINTAINERS (write after approval): Add myself.
10351
10352 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10353
10354         * frame.c (get_prev_frame): Rename the frame parameter to
10355         "this_frame".
10356         (get_next_frame, legacy_get_prev_frame): Ditto.
10357
10358 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10359
10360         * frame.c (get_current_frame): Check target_has_registers before
10361         checking target_has_stack.
10362         * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10363         instead of deprecated_selected_frame.
10364         * findvar.c (value_of_register): Pass "frame", not
10365         deprecated_selected_frame, to value_of_builtin_reg.
10366
10367 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10368
10369         * regcache.c (regcache_cooked_write_signed): New function.
10370         (regcache_cooked_write_unsigned): New function.
10371         (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10372         (regcache_cooked_read_signed): Fix regnum in range assertion.
10373         * regcache.h (regcache_cooked_write_signed): Declare.
10374         (regcache_cooked_write_unsigned): Declare.
10375
10376 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10377
10378         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10379         * gdbarch.h, gdbarch.c: Re-generate.
10380         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10381         * x86-64-tdep.h: Update.
10382         * x86-64-tdep.c (x86_64_init_abi): Update.
10383         * v850-tdep.c (v850_gdbarch_init): Update.
10384         * sparc-tdep.c (sparc_gdbarch_init): Update.
10385         * sh-tdep.c (sh_gdbarch_init): Update.
10386         * s390-tdep.c (s390_gdbarch_init): Update.
10387         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10388         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10389         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10390         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10391         * mips-tdep.c (mips_gdbarch_init): Update.
10392         * mcore-tdep.c (mcore_gdbarch_init): Update.
10393         * m68k-tdep.c (m68k_gdbarch_init): Update.
10394         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10395         * ia64-tdep.c (ia64_gdbarch_init): Update.
10396         * i386-tdep.c (i386_gdbarch_init): Update.
10397         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10398         * hppa-tdep.c (hppa_gdbarch_init): Update.
10399         * h8300-tdep.c (h8300_gdbarch_init): Update.
10400         * frv-tdep.c (frv_gdbarch_init): Update.
10401         * cris-tdep.c (cris_gdbarch_init): Update.
10402         * avr-tdep.c (avr_gdbarch_init): Update.
10403         * arm-tdep.c (arm_gdbarch_init): Update.
10404         * alpha-tdep.c (alpha_gdbarch_init): Update.
10405         * sh-tdep.c (sh_init_extra_frame_info): Update.
10406         (sh64_init_extra_frame_info): Update.
10407         * ns32knbsd-nat.c (frame_num_args): Update.
10408         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10409         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10410         (xstormy16_frame_chain_valid): Update.
10411         * vax-tdep.c (vax_saved_pc_after_call): Update.
10412         * v850-tdep.c (v850_frame_chain): Update.
10413         (v850_pop_frame): Update.
10414         (v850_init_extra_frame_info): Update.
10415         * sparc-tdep.c (setup_arbitrary_frame): Update.
10416         * ns32k-tdep.c (umax_frame_num_args): Update.
10417         * s390-tdep.c (s390_pop_frame_regular): Update.
10418         * mn10300-tdep.c (mn10300_frame_chain): Update.
10419         (mn10300_pop_frame_regular): Update.
10420         (mn10300_init_extra_frame_info): Update.
10421         * mips-tdep.c (mips_init_frame_pc_first): Update.
10422         (mips_frame_chain): Update.
10423         (mips_pop_frame): Update.
10424         * mcore-tdep.c (mcore_frame_chain): Update.
10425         (mcore_pop_frame): Update.
10426         (mcore_init_extra_frame_info): Update.
10427         * arch-utils.c (init_frame_pc_default): Update.
10428         * m68k-tdep.c (isi_frame_num_args): Update.
10429         (delta68_frame_num_args): Update.
10430         (news_frame_num_args): Update.
10431         * ia64-tdep.c (ia64_pop_frame_regular): Update.
10432         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10433         (alpha_frame_chain): Update.
10434         (alpha_pop_frame): Update.
10435         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10436         (hppa_init_extra_frame_info): Update.
10437         (hppa_frame_chain): Update.
10438         (hppa_frame_chain_valid): Update.
10439         * cris-tdep.c (cris_init_extra_frame_info): Update.
10440         * avr-tdep.c (avr_init_extra_frame_info): Update.
10441         * arm-tdep.c (arm_frame_chain_valid): Update.
10442         (arm_init_extra_frame_info): Update.
10443         (arm_pop_frame): Update.
10444         * frame.c (frame_pc_unwind): Update.
10445         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10446         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10447         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10448         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10449         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10450         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10451
10452 2003-03-12  Andrew Cagney  <cagney@redhat.com>
10453
10454         Eliminate the need for POP_FRAME.
10455         * frame.c (do_frame_unwind_register): New function.
10456         (frame_pop): When no POP_FRAME, pop the frame using register
10457         unwind and a scratch regcache.
10458         (frame_saved_regs_pop): Delete function.
10459         (trad_frame_unwinder): Update.
10460         * d10v-tdep.c (d10v_frame_pop): Delete function.
10461         (d10v_frame_unwind): Update.
10462         * sentinel-frame.c (sentinel_frame_pop): Delete function.
10463         (sentinel_frame_unwinder): Update.
10464         * dummy-frame.c (dummy_frame_pop): Delete function.
10465         (dummy_frame_unwind): Update.
10466         * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10467         (struct frame_unwind): Update.
10468
10469 2003-03-11  Kevin Buettner  <kevinb@redhat.com>
10470
10471         * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10472         mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10473         (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10474         Do range checks on register number obtained from debugging info.
10475         (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10476         set_gdbarch_dwarf2_reg_to_regnum().  Adjust call of
10477         set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10478         mapping function.
10479         (do_fp_register_row): Fix typo which caused double type to be
10480         used when attempting to unpack a float.
10481
10482 2003-03-11  J. Brobecker  <brobecker@gnat.com>
10483
10484         * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10485
10486 2003-03-11  Andrew Cagney  <cagney@redhat.com>
10487
10488         * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10489         frame.  Problem found by Corinna Vinschen.
10490
10491 2003-03-11  Pierre Muller  <muller@ics.u-strasbg.fr>
10492
10493         * doublest.c (floatformat_from_length): Accept also
10494         the real size of 'long double' type.
10495
10496 2003-03-10  Daniel Jacobowitz  <drow@mvista.com>
10497
10498         From Klee Dienes <kdienes@apple.com>:
10499         * breakpoint.c (bpstat_copy): Copy the command lines as well
10500         as the old value, to match what is freed in bpstat_clear.
10501
10502 2003-03-10  David Carlton  <carlton@math.stanford.edu>
10503
10504         * minsyms.c (add_minsym_to_hash_table): Replace
10505         DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10506         (compare_minimal_symbols, compact_minimal_symbols)
10507         (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10508         (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10509         of DEPRECATED_SYMBOL_MATCHES_NAME.
10510         (lookup_minimal_symbol_solib_trampoline): Ditto.
10511
10512 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10513
10514         * regcache.h (regcache_cooked_read_ftype): Define.
10515         (regcache_save, regcache_restore): Add a cooked_read parameter.
10516         * regcache.c (regcache_save, regcache_restore): Update.
10517         (do_cooked_read): New function.
10518         (regcache_cpy): Pass do_cooked_read to regcache_save and
10519         regcache_restore.
10520
10521 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10522
10523         * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10524         * gdbarch.h, gdbarch.c: Re-generate.
10525         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10526         * x86-64-tdep.h: Update.
10527         * x86-64-tdep.c (x86_64_init_abi): Update.
10528         * v850-tdep.c (v850_gdbarch_init): Update.
10529         * sparc-tdep.c (sparc_gdbarch_init): Update.
10530         * sh-tdep.c (sh_gdbarch_init): Update.
10531         * s390-tdep.c (s390_gdbarch_init): Update.
10532         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10533         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10534         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10535         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10536         * mips-tdep.c (mips_gdbarch_init): Update.
10537         * mcore-tdep.c (mcore_gdbarch_init): Update.
10538         * m68k-tdep.c (m68k_gdbarch_init): Update.
10539         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10540         * ia64-tdep.c (ia64_gdbarch_init): Update.
10541         * i386-tdep.c (i386_gdbarch_init): Update.
10542         * i386-interix-tdep.c (i386_interix_init_abi): Update.
10543         * hppa-tdep.c (hppa_gdbarch_init): Update.
10544         * h8300-tdep.c (h8300_gdbarch_init): Update.
10545         * frv-tdep.c (frv_gdbarch_init): Update.
10546         * cris-tdep.c (cris_gdbarch_init): Update.
10547         * avr-tdep.c (avr_gdbarch_init): Update.
10548         * arm-tdep.c (arm_gdbarch_init): Update.
10549         * alpha-tdep.c (alpha_gdbarch_init): Update.
10550         * sh-tdep.c (sh_init_extra_frame_info): Update.
10551         (sh64_init_extra_frame_info): Update.
10552         * ns32knbsd-nat.c (frame_num_args): Update.
10553         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10554         * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10555         (xstormy16_frame_chain_valid): Update.
10556         * vax-tdep.c (vax_saved_pc_after_call): Update.
10557         * v850-tdep.c (v850_frame_chain): Update.
10558         (v850_pop_frame): Update.
10559         (v850_init_extra_frame_info): Update.
10560         * sparc-tdep.c (setup_arbitrary_frame): Update.
10561         * ns32k-tdep.c (umax_frame_num_args): Update.
10562         * s390-tdep.c (s390_pop_frame_regular): Update.
10563         * mn10300-tdep.c (mn10300_frame_chain): Update.
10564         (mn10300_pop_frame_regular): Update.
10565         (mn10300_init_extra_frame_info): Update.
10566         * mips-tdep.c (mips_init_frame_pc_first): Update.
10567         (mips_frame_chain): Update.
10568         (mips_pop_frame): Update.
10569         * mcore-tdep.c (mcore_frame_chain): Update.
10570         (mcore_pop_frame): Update.
10571         (mcore_init_extra_frame_info): Update.
10572         * arch-utils.c (init_frame_pc_default): Update.
10573         * m68k-tdep.c (isi_frame_num_args): Update.
10574         (delta68_frame_num_args): Update.
10575         (news_frame_num_args): Update.
10576         * ia64-tdep.c (ia64_pop_frame_regular): Update.
10577         * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10578         (alpha_frame_chain): Update.
10579         (alpha_pop_frame): Update.
10580         * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10581         (hppa_init_extra_frame_info): Update.
10582         (hppa_frame_chain): Update.
10583         (hppa_frame_chain_valid): Update.
10584         * cris-tdep.c (cris_init_extra_frame_info): Update.
10585         * avr-tdep.c (avr_init_extra_frame_info): Update.
10586         * arm-tdep.c (arm_frame_chain_valid): Update.
10587         (arm_init_extra_frame_info): Update.
10588         (arm_pop_frame): Update.
10589         * frame.c (frame_pc_unwind): Update.
10590         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10591         (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10592         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10593         * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10594         * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10595         * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10596
10597 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10598
10599         * gdbarch.sh (gdbarch_unwind_pc): New method.
10600         * gdbarch.h, gdbarch.c: Regenerate.
10601         * frame.c (frame_pc_unwind): Rewrite.  Prefer gdbarch_unwind_pc,
10602         but use read_pc and FRAME_SAVED_PC as fall backs.
10603         (frame_saved_regs_pc_unwind): Delete function.
10604         (trad_frame_unwinder): Update.
10605         * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10606         (struct frame_unwind): Update.
10607         * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10608         (dummy_frame_unwind): Update.
10609         * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10610         (sentinel_frame_unwinder): Update.
10611         * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10612         (d10v_frame_unwind): Update.
10613         (d10v_unwind_pc): New function.
10614         (d10v_gdbarch_init): Set unwind_pc.
10615
10616 2003-03-10  Andrew Cagney  <cagney@redhat.com>
10617
10618         * gdbarch.h: Re-generate.
10619
10620         * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10621         PC.
10622         (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10623         the PC register.
10624
10625 2003-03-08  Mark Kettenis  <kettenis@gnu.org>
10626
10627         * gdbarch.sh (save_dummy_frame_tos): Add comment.
10628
10629 2003-03-08  Andrew Cagney  <cagney@redhat.com>
10630
10631         * cli-out.c: Update copyright.
10632         (cli_out_data): Define typedef.  Use instead of ui_out_data.
10633
10634 2003-03-08  Andrew Cagney  <cagney@redhat.com>
10635
10636         * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10637         the result.
10638
10639 2003-03-07  Andrew Cagney  <cagney@redhat.com>
10640
10641         * gdbarch.sh: Don't generate two macro definitions when an
10642         undefined macro taking no arguments.
10643         * gdbarch.h: Regenerate.
10644
10645 2002-03-07  Michal Ludvig  <mludvig@suse.cz>
10646
10647         * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10648         (x86_64_unwind_dummy_id): New functions.
10649         (x86_64_init_abi): Register these two new functions.
10650
10651 2003-03-07  Michal Ludvig  <mludvig@suse.cz>
10652
10653         * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10654         (x86_64_skip_prologue): Move prologue detection to
10655         separate function.
10656         * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10657
10658 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10659
10660         * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10661         (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10662         * frame.c (get_prev_frame): Restructure the frame ID unwind code
10663         to use unwind_dummy_id when a dummy frame.
10664         * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10665         predicate.
10666         * gdbarch.h, gdbarch.c: Regneerate.
10667
10668 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10669
10670         * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10671         (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10672         Do not use d10v_read_sp or d10v_read_fp when obtaining register
10673         values.
10674
10675 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10676
10677         * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10678         (struct d10v_unwind_cache): Delete field "frameless".  Replace
10679         "next_addr" with "sp_offset".  Add "r11_offset".
10680         (d10v_frame_unwind_cache): Update.
10681         (prologue_find_regs): Update.  When "mv r11, sp", save the
10682         "sp_offset" in "r11_offset".  Recognize "st rn, @r11", note that
10683         RN was saved in r11_offset.
10684
10685 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10686
10687         * frame.c (deprecated_update_frame_pc_hack): Also update the the
10688         cached PC value in the next frame.
10689
10690 2003-03-05  Andrew Cagney  <cagney@redhat.com>
10691
10692         * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10693         "id_unwind_cache" with "id".
10694         (frame_id_unwind): Delete declaration.
10695         * frame.c (frame_id_unwind): Delete function.
10696         (get_prev_frame): Call the frame id unwind method directly.  Store
10697         the returned next frame's ID value in NEXT_FRAME.  Note that there
10698         is a problem with the wrong unwind ID being called with the wrong
10699         unwind cache.
10700
10701 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
10702
10703         * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10704
10705 2003-03-05  James Ingham <jingham@apple.com>
10706             Daniel Jacobowitz  <drow@mvista.com>
10707
10708         * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10709         (auto_cp_abi): New variable.
10710         (current_cp_abi, num_cp_abis): Make static.
10711         (CP_ABI_MAX): Define.
10712         (cp_abis): Turn into an array.
10713         (value_virtual_fn_field): Fix formatting.
10714         (switch_to_cp_abi, register_cp_abi): Update.  register_cp_abi now
10715         takes a pointer.
10716         (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10717         (list_cp_abis, _initialize_cp_abi): New functions.
10718         * cp-abi.h: Add prototype for set_cp_abi_as_auto_default.  Remove
10719         declarations for cp_abis, num_cp_abis, current_cp_abi, and
10720         switch_to_cp_abi.  Update prototype for register_cp_abi.
10721         * Makefile.in (cp-abi.o): Update dependencies.
10722         * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10723         instead of switch_to_cp_abi.
10724         * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise.  Update call to
10725         register_cp_abi.
10726         * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10727         register_cp_abi.
10728         * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10729
10730 2003-03-05  Daniel Jacobowitz  <drow@mvista.com>
10731
10732         * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10733         * dwarf2loc.c: Include "regcache.h".
10734         (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum.  Use
10735         register_size.
10736         * Makefile.in (dwarf2loc.o): Update dependencies.
10737
10738 2003-03-04  Theodore A. Roth  <troth@openavr.org>
10739
10740         * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10741         number of io registers reported by remote target is not a multiple of
10742         step.
10743
10744 2003-03-04  David Carlton  <carlton@math.stanford.edu>
10745
10746         * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10747         (lookup_symbol_aux_psymtabs): Update call to
10748         lookup_partial_symbol.
10749         (lookup_transparent_type, find_main_psymtab)
10750         (make_symbol_overload_list): Ditto.
10751
10752 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
10753
10754         * MAINTAINERS (Write after approval): Update my email address.
10755
10756 2003-03-03  Andrew Cagney  <cagney@redhat.com>
10757
10758         Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10759         * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10760         predicate.  Replace MAX_REGISTER_RAW_SIZE.
10761         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10762         MAX_REGISTER_VIRTUAL_SIZE.
10763         * regcache.c (legacy_max_register_raw_size): New function.
10764         (legacy_max_register_virtual_size): New function.
10765         * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10766         (MAX_REGISTER_RAW_SIZE): Define.
10767         (legacy_max_register_raw_size): Declare.
10768         (legacy_max_register_virtual_size): Declare.
10769         * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10770         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10771         * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10772         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10773         * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10774         (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10775         * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10776         * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10777         * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10778         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10779         * vax-tdep.c (vax_gdbarch_init): Update.
10780         * v850-tdep.c (v850_gdbarch_init): Update.
10781         * sparc-tdep.c (sparc_gdbarch_init): Update.
10782         * sh-tdep.c (sh_gdbarch_init): Update.
10783         * s390-tdep.c (s390_gdbarch_init): Update.
10784         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10785         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10786         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10787         * mips-tdep.c (mips_gdbarch_init): Update.
10788         * mcore-tdep.c (mcore_gdbarch_init): Update.
10789         * m68k-tdep.c (m68k_gdbarch_init): Update.
10790         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10791         * ia64-tdep.c (ia64_gdbarch_init): Update.
10792         * i386-tdep.c (i386_gdbarch_init): Update.
10793         * hppa-tdep.c (hppa_gdbarch_init): Update.
10794         * h8300-tdep.c (h8300_gdbarch_init): Update.
10795         * frv-tdep.c (frv_gdbarch_init): Update.
10796         * cris-tdep.c (cris_gdbarch_init): Update.
10797         * avr-tdep.c (avr_gdbarch_init): Update.
10798         * arm-tdep.c (arm_gdbarch_init): Update.
10799         * alpha-tdep.c (alpha_gdbarch_init): Update.
10800         * d10v-tdep.c (d10v_gdbarch_init): Do not set
10801         max_register_raw_size or max_register_virtual_size.
10802
10803 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10804
10805         * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10806         SYMBOL_MATCHES_NAME, add comment.
10807         (SYMBOL_MATCHES_NATURAL_NAME): New.
10808         * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10809         SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10810         (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10811         * symtab.c (lookup_partial_symbol): Use
10812         SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME.  Delete
10813         unhelpful comment.
10814         (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10815         SYMBOL_MATCHES_NAME.
10816         Fix for PR c++/33.
10817
10818 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10819
10820         * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10821         * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10822         by regexp matching against SYMBOL_NATURAL_NAME.
10823
10824 2003-03-03  David Carlton  <carlton@math.stanford.edu>
10825
10826         * linespec.c (find_method): Extract code into collect_methods.
10827         (collect_methods): New.
10828
10829 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
10830
10831         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10832         get_frame_base.
10833
10834         * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10835         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10836
10837 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
10838
10839         * arch-utils.c (generic_register_byte): Fix to use the loop index
10840         and not regnum when summing the size of all registers up to regnum.
10841
10842 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10843
10844         * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10845         FRAME_INIT_SAVED_REGS.
10846         * gdbarch.h, gdbarch.c: Regenerate.
10847         * stack.c (frame_info): Update.
10848         * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10849         (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10850         (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10851         * ns32k-tdep.c (ns32k_pop_frame): Update.
10852         * mips-tdep.c (mips_pop_frame): Update.
10853         * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10854         * ia64-tdep.c (ia64_frame_chain): Update.
10855         (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10856         (ia64_frameless_function_invocation): Update.
10857         (ia64_init_extra_frame_info): Update.
10858         (ia64_pop_frame_regular): Update.
10859         * frame.h (struct frame_info): Update comment.
10860         (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10861         * frame.c (frame_saved_regs_register_unwind): Update.
10862         (frame_saved_regs_register_unwind): Update.
10863         (deprecated_generic_get_saved_register): Update.
10864         * cris-tdep.c: Update comment.
10865         * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10866         Rename macro.
10867         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10868         * x86-64-tdep.c (x86_64_init_abi): Update.
10869         * vax-tdep.c (vax_gdbarch_init): Update.
10870         * v850-tdep.c (v850_gdbarch_init): Update.
10871         * sparc-tdep.c (sparc_gdbarch_init): Update.
10872         * sh-tdep.c (sh_gdbarch_init): Update.
10873         * s390-tdep.c (s390_gdbarch_init): Update.
10874         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10875         * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10876         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10877         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10878         * mips-tdep.c (mips_gdbarch_init): Update.
10879         * mcore-tdep.c (mcore_gdbarch_init): Update.
10880         * m68k-tdep.c (m68k_gdbarch_init): Update.
10881         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10882         * ia64-tdep.c (ia64_gdbarch_init): Update.
10883         * i386-tdep.c (i386_gdbarch_init): Update.
10884         * frv-tdep.c (frv_gdbarch_init): Update.
10885         * avr-tdep.c (avr_gdbarch_init): Update.
10886         * arm-tdep.c (arm_gdbarch_init): Update.
10887         * alpha-tdep.c (alpha_gdbarch_init): Update.
10888
10889 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10890
10891         * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10892         option enum and switch.  When no windows, set the interpreter to
10893         INTERP_CONSOLE.
10894
10895 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10896
10897         * main.c (captured_main): Replace magic option characters with an
10898         enum.
10899
10900 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10901
10902         * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10903         INIT_EXTRA_FRAME_INFO.
10904         * gdbarch.h, gdbarch.c: Regenerate.
10905         * arm-tdep.c: Update comments.
10906         * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10907         * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10908         * frame.h, avr-tdep.c: Ditto.
10909         * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10910         (create_new_frame, legacy_get_prev_frame): Ditto.
10911         * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10912         * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10913         * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10914         deprecated_init_extra_frame_info instead of init_extra_frame_info.
10915         * x86-64-tdep.c (x86_64_init_abi): Ditto.
10916         * v850-tdep.c (v850_gdbarch_init): Ditto.
10917         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10918         * sh-tdep.c (sh_gdbarch_init): Ditto.
10919         * s390-tdep.c (s390_gdbarch_init): Ditto.
10920         * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10921         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10922         * mips-tdep.c (mips_gdbarch_init): Ditto.
10923         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10924         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10925         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10926         * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10927         * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10928         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10929         * frv-tdep.c (frv_gdbarch_init): Ditto.
10930         * cris-tdep.c (cris_gdbarch_init): Ditto.
10931         * avr-tdep.c (avr_gdbarch_init): Ditto.
10932         * arm-tdep.c (arm_gdbarch_init): Ditto.
10933         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10934         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10935
10936 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10937
10938         * gdbarch.sh (register_type): New function with predicate.
10939         (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10940         * gdbarch.h, gdbarch.c: Re-generate.
10941         * arch-utils.c (generic_register_byte): Use generic_register_size.
10942         (generic_register_size): When available, use
10943         gdbarch_register_type.
10944         * regcache.c (init_regcache_descr): When available, initialize the
10945         register type array using gdbarch_register_type.  If the
10946         architecture supplies gdbarch_register_type, do not use the legacy
10947         regcache layout.
10948         * d10v-tdep.c (d10v_register_type): Replace
10949         d10v_register_virtual_type.
10950         (d10v_gdbarch_init): Set register_type instead of
10951         register_virtual_type.
10952
10953 2003-03-01  Andrew Cagney  <cagney@redhat.com>
10954
10955         * Makefile.in (ax-gdb.o): Update dependencies.
10956         * ax-gdb.c: Include "regcache.h".
10957         (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10958         * findvar.c (value_of_register): Ditto.
10959         * infcmd.c (default_print_registers_info): Ditto.
10960
10961 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
10962
10963         * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10964         DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10965
10966 2003-03-01  Mark Kettenis  <kettenis@gnu.org>
10967
10968         * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10969         of STREQ.
10970
10971 2003-02-28  Daniel Jacobowitz  <drow@mvista.com>
10972
10973         * Makefile.in (dwarf2loc.o): Update dependencies.
10974         * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10975         * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10976         * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10977         * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10978         (locexpr_tracepoint_var_ref): New function.
10979         (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10980
10981 2003-02-28  Andrew Cagney  <cagney@redhat.com>
10982
10983         * regcache.c (register_size): New function.
10984         * regcache.h (register_size): Declare
10985         * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10986         max_register_size instead of MAX_REGISTER_RAW_SIZE.
10987
10988 2003-02-28  David Carlton  <carlton@math.stanford.edu>
10989
10990         * linespec.c (decode_compound): Extract code into find_method.
10991         (find_method): New.
10992
10993 2003-02-28  J. Brobecker  <brobecker@gnat.com>
10994
10995         * Makefile.in: Add rules to build and link in observer.o.
10996
10997 2003-02-27  J. Brobecker  <brobecker@gnat.com>
10998
10999         * observer.c: Minor comments edits.
11000
11001 2003-02-27  J. Brobecker  <brobecker@gnat.com>
11002
11003         * observer.h, observer.c: New file.
11004
11005 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11006
11007         * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
11008
11009 2003-02-27  Stephane Carrez  <stcarrez@nerim.fr>
11010
11011         * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11012         (M6812_OP_STS_EXT): Likewise.
11013         (m6811_prologue): Use the above to recognize prologue.
11014         (m6812_prologue): Likewise.
11015
11016 2003-02-27  David Carlton  <carlton@math.stanford.edu>
11017
11018         * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11019         SYMBOL_PRINT_NAME.
11020         (compare_psymbols): Ditto.
11021         * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11022
11023 2003-02-27  Michael Snyder  <msnyder@redhat.com>
11024
11025         * f-lang.c (build_fortran_types): New function.
11026         (_initialize_f_language): Gdbarch-register built-in fortran types.
11027         * doublest.c (extract_floating): Fix warning text.
11028
11029 2003-02-27  Andrew Cagney  <cagney@redhat.com>
11030
11031         * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11032         predicate.  Replaces PUSH_DUMMY_FRAME.
11033         * gdbarch.h, gdbarch.c: Regnerate.
11034         * valops.c (hand_function_call): Update.  Call
11035         generic_push_dummy_frame directly.
11036         * vax-tdep.c (vax_gdbarch_init): Update.
11037         * sparc-tdep.c (sparc_gdbarch_init): Update.
11038         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11039         * m68k-tdep.c (m68k_gdbarch_init): Update.
11040         * hppa-tdep.c (hppa_gdbarch_init): Update.
11041         * alpha-tdep.c (alpha_gdbarch_init): Update.
11042         * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11043         * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11044         * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11045         * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11046         push_dummy_frame to generic_push_dummy_frame.
11047         * v850-tdep.c (v850_gdbarch_init): Ditto.
11048         * sh-tdep.c (sh_gdbarch_init): Ditto.
11049         * s390-tdep.c (s390_gdbarch_init): Ditto.
11050         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11051         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11052         * mips-tdep.c (mips_gdbarch_init): Ditto.
11053         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11054         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11055         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11056         * i386-tdep.c (i386_gdbarch_init): Ditto.
11057         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11058         * frv-tdep.c (frv_gdbarch_init): Ditto.
11059         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11060         * cris-tdep.c (cris_gdbarch_init): Ditto.
11061         * avr-tdep.c (avr_gdbarch_init): Ditto.
11062         * arm-tdep.c (arm_gdbarch_init): Ditto.
11063
11064 2003-02-26  Kevin Buettner  <kevinb@redhat.com>
11065
11066         * mips-tdep.c (show_mips_abi): New function.
11067         (_initialize_mips_tdep): Use show_mips_abi() to implement the
11068         command ``show mips abi''.
11069
11070 2003-02-26  Jeff Johnston  <jjohnstn@redhat.com>
11071
11072         From Elena Zannoni  <ezannoni@redhat.com>
11073         * dbxread.c (process_one_symbol): Only record line 0 if one or
11074         more sline entries have been seen for the function.
11075
11076 2003-02-26  Michael Chastain  <mec@shout.net>
11077
11078         * configure: Regenerate with autoconf 000227.
11079
11080 2003-02-26  Michael Chastain  <mec@shout.net>
11081
11082         Close PR build/660.
11083         * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11084         for old libc5/glibc.
11085         * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11086
11087 2003-02-26  Kris Warkentin  <kewarken@qnx.com>
11088
11089         * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11090         * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11091
11092 2003-02-26  Michael Chastain  <mec@shout.net>
11093
11094         * configure.in: New variable HAVE_UINTPTR_T.
11095         * configure, config.in: Regenerated.
11096
11097 2003-02-26  Daniel Jacobowitz  <drow@mvista.com>
11098
11099         Fix PR build/1097.
11100         * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11101
11102 2003-02-25  Andrew Cagney  <cagney@redhat.com>
11103
11104         * frame.c (get_prev_frame): Add comment on check for
11105         inside_entry_func. Only check for inside_entry_file when not a
11106         dummy and not a sentinel.  Check that the new frame is not inner
11107         to the old frame.
11108
11109 2003-02-25  Andrew Cagney  <cagney@redhat.com>
11110
11111         * frame.c (frame_debug): New variable.
11112         (_initialize_frame): Add "set/show debug frame" command.
11113         (get_prev_frame): When frame_debug, print reason why unwind
11114         failed.
11115
11116 2003-02-25  Michael Chastain  <mec@shout.net>
11117
11118         * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11119         to avoid uintptr_t definition problems.
11120
11121 2003-02-25  David Carlton  <carlton@math.stanford.edu>
11122
11123         * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11124         (SYMBOL_LINKAGE_NAME): Ditto.
11125         (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11126         SYMBOL_LINKAGE_NAME.
11127         (struct general_symbol_info): Expand comment.
11128         (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11129         (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11130         (SYMBOL_MATCHES_REGEXP): Ditto.
11131         * symtab.c (symbol_natural_name): New function.
11132         * objfiles.h: Replace all uses of SYMBOL_NAME by
11133         DEPRECATED_SYMBOL_NAME.
11134         * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11135         * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11136         * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11137         * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11138         * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11139         * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11140         * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11141         * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11142         * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11143         * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11144         * ada-exp.y: Ditto.
11145         * ada-exp.y: Update copyright.
11146         * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11147         * cp-valprint.c: Ditto.
11148
11149 2003-02-25  Jeff Johnston  <jjohnstn@redhat.com>
11150
11151         * infptrace.c (detach): Do not flag error if ptrace detach fails
11152         and errno is set to ESRCH.
11153
11154 2003-02-24  Andrew Cagney  <cagney@redhat.com>
11155
11156         * infptrace.c (udot_info): Change type of udot_off to long.  Use
11157         paddr when printing udot_off's value.
11158
11159 2003-02-24  David Carlton  <carlton@math.stanford.edu>
11160
11161         * symtab.c (make_symbol_overload_list): Only read in partial
11162         symtabs containing a matching partial symbol.
11163
11164 2003-02-24  David Carlton  <carlton@math.stanford.edu>
11165
11166         * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11167         do the comparison, not strcmp.
11168         * symfile.c (compare_psymbols): Ditto.
11169         * defs.h: Declare strcmp_iw_ordered.
11170         * utils.c (strcmp_iw_ordered): New function.
11171
11172 2003-02-24  Jim Blandy  <jimb@redhat.com>
11173
11174         * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11175         support, shared libs): Remove my name from here, to better reflect
11176         reality.
11177
11178 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11179
11180         * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11181         (target_ops): Add to_have_continuable_watchpoint.
11182         * target.c (update_current_target): Add INHERIT line for
11183         to_have_continuable_watchpoint.
11184         * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11185         * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11186         config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11187         config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11188
11189 2003-02-24  Elena Zannoni  <ezannoni@redhat.com>
11190
11191         * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11192         maintainership.
11193
11194 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11195
11196         * solib.c (solib_open): Call target defined search function after
11197         failing with solib-search-path.
11198         * solist.h (target_so_ops): Add find_and_open_solib function hook and
11199         create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11200
11201 2003-02-24  Kris Warkentin  <kewarken@qnx.com>
11202
11203         * MAINTAINERS: Add myself to Write After section.
11204
11205 2003-02-23  Stephane Carrez  <stcarrez@nerim.fr>
11206
11207         * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11208
11209 2003-02-22  Stephane Carrez  <stcarrez@nerim.fr>
11210
11211         * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11212         (m68hc11_add_reggroups): New function.
11213         (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11214         (m68hc11_gdbarch_init): Install the reggroups.
11215         (_initialize_m68hc11_tdep): Initialize them.
11216
11217 2003-02-21  James E Wilson  <wilson@tuliptree.org>
11218
11219         * MAINTAINERS: Update my email address.
11220
11221 2003-02-21  David Carlton  <carlton@math.stanford.edu>
11222
11223         * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11224
11225 2003-02-21  Daniel Jacobowitz  <drow@mvista.com>
11226
11227         Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11228         * symtab.h: Add opaque declarations of struct axs_value and
11229         struct agent_expr.
11230         (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11231         (struct location_funcs): New type.
11232         (struct symbol): Add "loc" to aux_value.
11233         (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11234         * dwarf2read.c: Include "dwarf2expr.h".
11235         (dwarf2_symbol_mark_computed): New function.
11236         (read_func_scope): Use it.
11237         (var_decode_location): New function.
11238         (new_symbol): Use it.
11239         * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11240
11241         * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11242         (dwarf2expr_h, dwarf2loc_h): New variables.
11243         (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11244         (dwarf2expr.o, dwarf2loc.o): New rules.
11245         (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11246         * buildsym.c (finish_block): Handle LOC_COMPUTED and
11247         LOC_COMPUTED_ARG.
11248         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11249         * m2-exp.y (yylex): Likewise.
11250         * printcmd.c (address_info, print_frame_args): Likewise.
11251         * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11252         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11253         * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11254         (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11255         * symtab.c (lookup_block_symbol): Likewise.
11256
11257 2003-02-20  Adam Fedor  <fedor@gnu.org>
11258
11259         * symtab.h: Remove objc_specific struct
11260         (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11261         * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11262         Have language_objc use cplus_specific struct.
11263
11264 2003-02-20  Tom Tromey  <tromey@redhat.com>
11265
11266         * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11267         TYPE_NAME, when printing a String value.  PR java/1075.
11268
11269 2003-02-20  Adam Fedor  <fedor@gnu.org>
11270
11271         * objc-lang.h (find_methods): Remove declaration.
11272         * objc-lang.c (find_methods): Make static.
11273
11274 2003-02-20  Christopher Faylor  <cgf@redhat.com>
11275
11276         * win32-nat.c (get_image_name): Check return value from
11277         ReadProcessMemory.
11278         (child_xfer_memory): Ditto.
11279
11280 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
11281
11282         * configure.in (TARGET_SYSTEM_ROOT): Set default to
11283         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
11284         '${exec_prefix}' (in addition to the expansion thereof) as
11285         relocatable.
11286         * configure: Rebuilt.
11287
11288 2003-02-20  David Carlton  <carlton@math.stanford.edu>
11289
11290         * symtab.c (search_symbols): Revert the search_symbols part of my
11291         2002-12-23 patch.  Add comment.
11292
11293 2002-02-20  Daniel Jacobowitz  <drow@mvista.com>
11294
11295         * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11296         * dbxread.c (elfstab_build_psymtabs): Don't call
11297         install_minimal_symbols.
11298         (stabsect_build_psymtabs): Likewise.
11299         * elfread.c (elf_symfile_read): Call install_minimal_symbols
11300         earlier.
11301         * somread.c (som_symfile_read): Call install_minimal_symbols
11302         and do_cleanups earlier.
11303         * nlmread.c (nlm_symfile_read): Likewise.
11304         * mdebugread.c (elfmdebug_build_psymtabs): Call
11305         install_minimal_symbols and make appropriate cleanups.
11306
11307 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
11308
11309         * solib.c (reload_shared_libraries): New function.
11310         (_initialize_solib): Add callbacks for ``set solib-search-path''
11311         and ``set solib-absolute-prefix''.
11312
11313 2003-02-20  David Carlton  <carlton@math.stanford.edu>
11314
11315         * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11316         expand comment.
11317         * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11318         SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11319         * ada-typeprint.c (ada_typedef_print): Ditto.
11320         * ax-gdb.c (gen_var_ref): Ditto.
11321         * breakpoint.c (print_one_breakpoint): Ditto.
11322         * buildsym.c (finish_block): Ditto.
11323         * c-valprint.c (c_val_print): Ditto.
11324         * expprint.c (print_subexp): Ditto.
11325         * findvar.c (locate_var_value): Ditto.
11326         * infcmd.c (jump_command): Ditto.
11327         * linespec.c (decode_line_2, decode_compound): Ditto.
11328         * maint.c (maintenance_translate_address): Ditto.
11329         * objc-lang.c (compare_selectors, compare_classes): Ditto.
11330         * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11331         Ditto.
11332         * p-valprint.c (pascal_val_print): Ditto.
11333         * stabsread.c (define_symbol): Ditto.
11334         * stack.c (print_frame, frame_info, print_block_frame_locals)
11335         (print_frame_arg_vars, return_command): Ditto.
11336         * symfile.c (compare_symbols, compare_psymbols): Ditto.
11337         * symmisc.c (print_symbol): Ditto.
11338         * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11339         (compare_search_syms, print_symbol_info, print_msymbol_info)
11340         (rbreak_command): Ditto.
11341         * tracepoint.c (tracepoints_info): Ditto.
11342         * typeprint.c (typedef_print): Ditto.
11343         * valops.c (value_of_variable, hand_function_call): Ditto.
11344         * cli/cli-cmds.c (edit_command, list_command): Ditto.
11345         * ada-typeprint.c: Update Copyright.
11346         * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11347         * tracepoint.c, cli/cli-cmds.c: Ditto.
11348
11349 2003-02-20  Kevin Buettner  <kevinb@redhat.com>
11350
11351         * frame.c (generic_unwind_get_saved_register): Make non-static.
11352         * frame.h (generic_unwind_get_saved_register): Declare.
11353         * mips-tdep.c (read_next_frame_reg): Fetch register from
11354         current regcache when frame is NULL.
11355         (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11356         that must be NULL.
11357         (mips_get_saved_register): Call generic_unwind_get_saved_register()
11358         instead of frame_register_unwind().
11359
11360 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
11361
11362         * remote-sim.c (gdbsim_insert_breakpoint)
11363         (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11364         code.
11365
11366 2003-02-20  Andrew Cagney  <ac131313@redhat.com>
11367
11368         * remote.c (_initialize_remote): Add commands "set/show remote
11369         hardware-watchpoint-limit" and "set/show remote
11370         hardware-breakpoint-limit".
11371         (remote_hw_watchpoint_limit): Initialize to -1.
11372         (remote_hw_breakpoint_limit): Ditto.
11373         (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11374
11375 2003-02-19  Raoul Gough  <RaoulGough@yahoo.co.uk>
11376
11377         * coff-pe-read.c: New file - support reading of minimal symbols from a
11378         portable executable using the export table.
11379         * coff-pe-read.h: New file.
11380         * coffread.c: Include coff-pe-read.h.
11381         (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11382         debugging symbols found.
11383         * Makefile.in (SFILES): Add coff-pe-read.o.
11384         (coff_pe_read_h): Define.
11385         (COMMON_OBS): Add coff-pe-read.o.
11386         (coffread.o): Add coff_pe_read_h dependency.
11387         (coff-pe-read.o): New target.
11388
11389 2003-02-19  David Carlton  <carlton@math.stanford.edu>
11390
11391         * Makefile.in (SFILES): Add block.c.
11392         (block_h): New.
11393         (COMMON_OBS): Add block.o.
11394         (block.o): New.
11395         (x86-64-tdep.o): Add $(block_h).
11396         (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11397         (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11398         (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11399         (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11400         (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11401         (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11402         (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11403         * value.h: Add opaque declaration for struct block.
11404         * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11405         * ada-lang.h: Ditto.
11406         * x86-64-tdep.c: #include "block.h"
11407         * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11408         * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11409         * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11410         * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11411         * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11412         * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11413         * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11414         * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11415         * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11416         (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11417         * symtab.c (block_function): Ditto.
11418         (contained_in): Ditto.
11419         * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11420         block.h.  Add opaque declaration for struct block.
11421         * symtab.h: Move block_function and contained_in declarations to
11422         block.h.  Add opaque declarations for struct block, struct
11423         blockvector.
11424         (struct block): Move to block.h.
11425         (struct blockvector): Ditto.
11426         (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11427         (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11428         (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11429         (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11430         (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11431         Ditto.
11432         * block.c: New file.
11433         * block.h: New file.
11434
11435 2003-02-19  Theodore A. Roth  <troth@openavr.org>
11436
11437         * avr-tdep.c (avr_extract_return_value): Remove function.
11438         (avr_store_return_value): Remove function.
11439         (avr_extract_struct_value_address): Remove function.
11440         (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11441
11442 2003-02-19  Andrew Cagney  <ac131313@redhat.com>
11443
11444         * rs6000-tdep.c: Include "gdb_assert.h".
11445         (registers_e500): Add "acc" and "spefscr".
11446         (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11447         (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11448         ppc_gplast_regnum, sp_regnum and fp_regnum.  Check that gp0_regnum
11449         really is "r0".
11450         (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11451
11452 2003-02-18  Keith Seitz  <keiths@redhat.com>
11453
11454         * Makefile.in: Add gdbtk-interps.c.
11455
11456 2003-02-18  Kevin Buettner  <kevinb@redhat.com>
11457
11458         * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11459         * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11460
11461 2003-02-18  Andrew Cagney  <cagney@redhat.com>
11462
11463         * symtab.h (struct objfile): Add opaque declaration.
11464
11465 2003-02-18  Elena Zannoni  <ezannoni@redhat.com>
11466
11467         From Jim Ingham   <jingham@apple.com>:
11468         * dbxread.c (process_one_symbol): Use last_function_start rather
11469         than function_start_offset to find the real beginning of the
11470         current function.  The latter is just the text section offset on
11471         some systems, the former is always the real function start.
11472
11473 2003-02-17  Andrew Cagney  <cagney@redhat.com>
11474
11475         * configure.in: Revert ${target} != ${host}.
11476
11477 2003-02-17  Andrew Cagney  <ac131313@redhat.com>
11478
11479         * configure.in (Makefile): Use the test ${target} != ${host},
11480         instead of the absence of the "nm.h" file, to determine of the
11481         configuration non-native.
11482         * configure: Regenerate.
11483
11484 2003-02-14  Elena Zannoni  <ezannoni@redhat.com>
11485
11486         From Brian Ford  <ford@vss.fsi.com>
11487
11488         * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11489         conditionalize tui_active test.
11490         (lookup_cmd_1): Ditto.
11491
11492 2003-02-14  Mark Kettenis  <kettenis@gnu.org>
11493
11494         * configure.in: Add check for _etext.
11495         * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11496         available.
11497         * config.in, configure: regenerated.
11498
11499 2003-02-14  Daniel Jacobowitz  <drow@mvista.com>
11500
11501         * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11502
11503 2003-02-14  Andrew Cagney  <ac131313@redhat.com>
11504
11505         * main.c (tui_version): Delete variable.
11506         (captured_main): When --tui, set interpreter_p to "tui" instead of
11507         enabling tui_version.
11508         * printcmd.c (display_command) [TUI]: Test tui_active instead of
11509         tui_version.
11510         * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11511         * cli/cli-cmds.c (disassemble_command): Ditto.
11512         * defs.h (tui_version): Delete declaration.
11513         * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11514         (tui-interp.o): Add rules.
11515         (SUBDIR_TUI_OBS): Add "tui-interp.o".
11516
11517 2003-02-14  Christopher Faylor  <cgf@redhat.com>
11518
11519         * win32-nat.c (register_loaded_dll): Correctly set address range for
11520         just-loaded dll.
11521
11522 2003-02-12  Jason Molenda  (jmolenda@apple.com)
11523
11524         * symmisc.c (print_objfile_statistics): Include information about
11525         the number of psymtabs and symtabs in each object file.
11526
11527 2003-02-13  Keith R Seitz  <keiths@redhat.com>
11528
11529         * main.h (struct captured_main_args): Add interpreter_p.
11530         * main.c (captured_main): Initialize interpreter_p from context.
11531         * gdb.c (main): Set interpreter_p argument.
11532         * Makefile.in (gdb.o): Add dependency for interps.h.
11533
11534 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
11535
11536         * event-top.c (cli_command_loop): Delete declaration.
11537         (_initialize_event_loop): Delete function setting event_loop_hook.
11538         * event-top.h (cli_command_loop): Declare.  Update copyright.
11539         (EVENT_TOP_H): Define.  Wrap header in #ifdef EVENT_TOP_H.
11540         * interps.c (current_interp_command_loop): When event_loop_p, call
11541         cli_command_loop.
11542
11543 2003-02-12  Andrew Cagney  <ac131313@redhat.com>
11544
11545         * interps.h (interp_command_loop_ftype): Change return type to
11546         void.
11547
11548 2003-02-12  Michal Ludvig  <mludvig@suse.cz>
11549
11550         * x86-64-tdep.c (x86_64_extract_return_value)
11551         (x86_64_store_return_value): Use regcache instead of regbuf.
11552         (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11553         * x86-64-linux-nat.c (fill_gregset): Use regcache.
11554
11555 2003-02-11  Andrew Cagney  <ac131313@redhat.com>
11556
11557         * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11558         * aclocal.m4: Regenerate.
11559         * configure: Regenerate.
11560
11561         * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11562         TCL_LD_SEARCH_FLAGS.
11563
11564 2003-02-10  Michal Ludvig  <mludvig@suse.cz>
11565
11566         * dwarf2cfi.c: Reindented.
11567
11568 2003-02-09  Andrew Cagney  <ac131313@redhat.com>
11569
11570         * interps.c (clear_interpreter_hooks): Convert function definition
11571         to ISO C.
11572
11573 2003-02-07  David Carlton  <carlton@math.stanford.edu>
11574
11575         * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11576
11577 2003-02-07  Kevin Buettner  <kevinb@redhat.com>
11578
11579         * gdbtypes.h (struct main_type): Move ``length'' field from here...
11580         (struct type): ...to here.
11581         (TYPE_LENGTH): Adjust to reflect different location of ``length''
11582         field.
11583         * gdbtypes.c (make_qualified_type): Set length on newly created type.
11584         (replace_type): Set length on all type variants for a given type.
11585
11586 2003-02-07  Andrew Cagney  <ac131313@redhat.com>
11587
11588         * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11589         <sys/stat.h>.
11590         * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11591
11592 2003-02-06  Andrew Cagney  <ac131313@redhat.com>
11593
11594         * Makefile.in (symm-nat.o): Update dependencies.
11595         (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11596         (lynx-nat.o, ia64-linux-nat.): Ditto.
11597         * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11598         "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11599         * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11600
11601         * Makefile.in (inflow_h): Define.
11602         (procfs.o, inflow.o, procfs.o): Update dependencies.
11603         * inftarg.c (child_stop): Delete extern declaration of
11604         inferior_process_group.  Include "inflow.h".
11605         * procfs.c (procfs_stop): Ditto.  Include "inflow.h".
11606         * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11607         * inflow.h (PROCESS_GROUP_TYPE): ... to here.  New file.
11608         (our_process_group, inferior_process_group): Extern declarations.
11609
11610         * procfs.c: Include "gdb_assert.h".
11611
11612         * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11613         * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11614         * jv-typeprint.c (java_type_print_base): Ditto.
11615         * typeprint.c (typedef_print): Eliminate STREQ.
11616         * cli/cli-script.c (define_command, define_command): Ditto.
11617         * main.c (captured_main): Ditto.
11618         * values.c (lookup_internalvar): Ditto.
11619         * utils.c (safe_strerror, parse_escape): Eliminate assignment
11620         within `if' conditional.
11621         * linespec.c (decode_line_2): Ditto.
11622         * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11623         (bfd_openw_with_cleanup): Ditto.
11624
11625 2003-02-07  Mark Kettenis  <kettenis@gnu.org>
11626
11627         * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11628         legacy_extract_return_value and store_return_value to
11629         legacy_return_value.
11630
11631 2003-02-06  Raoul Gough  <RaoulGough@yahoo.co.uk>
11632
11633         * win32-nat.c (get_relocated_section_addrs): New function.  Find
11634         section load addresses for symbol handling in relocated DLLs.
11635         (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11636
11637 2003-02-05  Fred Fish  <fnf@intrinsity.com>
11638
11639         * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11640         '=' and '!='.
11641         * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11642         with '&' and '=='.
11643         (angel_RDI_info): Ditto.
11644         * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11645         with '&' and '!='.
11646         (threads_continue_all_with_signals): Ditto.
11647
11648 2003-02-05  Jim Ingham <jingham@apple.com>
11649             Keith Seitz  <keiths@redhat.com>
11650             Elena Zannoni  <ezannoni@redhat.com>
11651             Andrew Cagney  <ac131313@redhat.com>
11652
11653         * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11654         (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11655         (SUBDIR_MI_OBS): Add "mi-interp.o".
11656         (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11657         (SFILES): Add "interps.c".
11658         (COMMON_OBS): Add "interps.o".
11659         (interps_h, mi_main_h): Define.
11660         (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11661         (mi-main.o, main.o, event-top.o): Update dependencies.
11662         * cli/cli-interp.c: New file.
11663         * interps.h, interps.c: New files.
11664         * top.c: (gdb_init): Don't install the default interpreter, handed
11665         by captured_main.
11666         * main.c: Include "interps.h".
11667         (interpreter_p): Note that it should malloc'ed.
11668         (captured_command_loop): Call current_interp_command_loop.
11669         (captured_main): Initialize interpreter_p to INTERP_CONSOLE.  Use
11670         xfree and xstrdup when updating interpreter_p.  Install the
11671         default interpreter.  Add hack to stop mi1's copyright notice
11672         being encoded.
11673         * event-top.h (gdb_setup_readline): Declare.
11674         (gdb_disable_readline): Declare.
11675         * event-top.c: Include "interps.h".
11676         (display_gdb_prompt): Call current_interp_display_prompt_p.
11677         (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11678         gdb_stdlog, and gdb_stdtarg.
11679         (_initialize_event_loop): Don't call gdb_setup_readline.
11680         * cli-out.c (cli_out_set_stream): New function.
11681         * cli-out.h (cli_out_set_stream): Declare.
11682
11683 2003-02-06  Mark Kettenis  <kettenis@gnu.org>
11684
11685         * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11686         i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove.  These are all
11687         handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11688         * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11689         config/i386/i386v42mp.mt: Removed.
11690
11691 2003-02-05  Mark Kettenis  <kettenis@gnu.org>
11692
11693         * configure.tgt (*-*-solaris*): Set gdb_osabi to
11694         GDB_OSABI_SOLARIS.
11695
11696 2003-02-05  Michael Chastain  <mec@shout.net>
11697
11698         * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11699         2.12.1 and earlier versions.
11700
11701 2003-02-05  Andrew Cagney  <ac131313@redhat.com>
11702
11703         Remove orphaned hosts, targets and files.
11704         * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11705         * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11706         * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11707         * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11708         * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11709         * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11710         * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11711         * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11712         * config/sparc/tm-sp64sim.h: Delete.
11713         * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11714         hosts.
11715         * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11716         mips*-dec-mach3* targets.
11717
11718 2003-02-04  Michael Chastain  <mec@shout.net>
11719
11720         * NEWS: Fix typo: sepcifying -> specifying.
11721
11722 2003-02-04  Michael Chastain  <mec@shout.net>
11723
11724         * dwarfread.c: Add documentation on the state of dwarf-1,
11725         looking towards obsoletion.
11726
11727 2003-02-03  Michael Chastain  <mec@shout.net>
11728
11729         * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11730         gdb/testsuite/gdb.c++/pr-1023.exp.
11731
11732 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11733
11734         * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11735         * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11736
11737         * utils.c (init_page_info): Delete reference to MPW in comments.
11738         * main.c (captured_main): Delete #ifdef MPW.
11739
11740 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11741
11742         * NEWS: Note that the m32r-*-elf* is obsolete.
11743         * monitor.c (monitor_expect): Obsolete reference to m32r.
11744         * configure.tgt: Mark m32r-*-elf* as obsolete.
11745         * MAINTAINERS: Mark m32k as obsolete.
11746         * m32r-rom.c: Obsolete file.
11747         * config/m32r/m32r.mt: Obsolete file.
11748         * config/m32r/tm-m32r.h: Obsolete file.
11749         * m32r-stub.c: Obsolete file.
11750         * m32r-tdep.c: Obsolete file.
11751
11752 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11753
11754         * NEWS: Mention that the z8k-zilog-none is obsolete.
11755         * MAINTAINERS: Mark z8k as obsolete.
11756         * configure.tgt: Obsolete the z8k-*-coff* target.
11757         * config/z8k/z8k.mt: Obsolete file.
11758         * config/z8k/tm-z8k.h: Obsolete file.
11759         * z8k-tdep.c: Obsolete file.
11760
11761 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11762
11763         * NEWS: Mention that the mn10200-elf is obsolete.
11764         * configure.tgt: Obsolete mn10200-*-* target.
11765         * breakpoint.c (update_breakpoints_after_exec): Update comment to
11766         mention that the mn10200 is obsolete.
11767         * breakpoint.h: Ditto.
11768         * MAINTAINERS: Mark the mn10200-elf as obsolete.
11769         * config/mn10200/mn10200.mt: Obsolete file.
11770         * config/mn10200/tm-mn10200.h: Obsolete file.
11771         * mn10200-tdep.c: Obsolete file.
11772
11773 2003-02-04  Andrew Cagney  <ac131313@redhat.com>
11774
11775         * MAINTAINERS: Mark h8500 as obsolete.
11776         * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11777         * findvar.c (value_from_register): Ditto.
11778         * h8500-tdep.c: Mark file as obsolete.
11779         * config/h8500/h8500.mt: Ditto.
11780         * config/h8500/tm-h8500.h: Ditto.
11781         * NEWS: Mention that h8500 is obsolete.
11782
11783 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11784
11785         * objfiles.c (allocate_objfile): Always set name.  Add comment at
11786         start of function.
11787         * jv-lang.c (get_dynamics_objfile): Add comment.
11788
11789 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11790
11791         * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11792         * printcmd.c (build_address_symbolic): Replace uses of
11793         SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11794         SYMBOL_NAME, and asm_demangle.
11795         Update copyright.
11796
11797 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11798
11799         * linespec.c (decode_compound): Extract code into
11800         lookup_prefix_sym.
11801         (lookup_prefix_sym): New function.
11802
11803 2003-02-04  David Carlton  <carlton@math.stanford.edu>
11804
11805         * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11806         FLOAT_COERCION_BADNESS.
11807         * gdbtypes.c (rank_one_type): Replace all uses of
11808         INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11809
11810 2003-02-04  Jim Blandy  <jimb@redhat.com>
11811
11812         * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11813         section, let dwarf_macinfo_section point to it, not
11814         dwarf_loc_section.
11815
11816 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
11817
11818         Pointed out by Anton Blanchard <anton@samba.org>.
11819         * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11820         (ppc_linux_at_sigtramp_return_path): Use it.
11821
11822 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
11823
11824         * defs.h (streq): Add prototype.
11825         * utils.c (streq): New function.
11826
11827         * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11828         SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11829         * mdebugread.c (new_symbol): Likewise.
11830         * stabsread.c (define_symbol): Likewise.
11831         * coffread.c (process_coff_symbol): Likewise.
11832         * dwarfread.c (new_symbol): Likewise.
11833
11834         * minsyms.c (prim_record_minimal_symbol_and_info): Use
11835         SYMBOL_SET_NAMES instead of setting SYMBOL_NAME.  Set the language
11836         here.
11837         (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11838         SYMBOL_INIT_DEMANGLED_NAME.
11839         * objfiles.c: Include "hashtab.h".
11840         (allocate_objfile): Call htab_set_functions_ex for the
11841         demangled_names_hash.
11842         (free_objfile): Call htab_delete for the demangled_names_hash.
11843         * objfiles.h (struct htab): Add declaration.
11844         (struct objfile): Add demangled_names_hash.
11845         * symfile.c: Include "hashtab.h".
11846         (reread_symbols): Call htab_delete for the demangled_names_hash.
11847         (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11848         SYMBOL_NAME in the bcache.
11849         * symtab.c: Include "hashtab.h".  Update comments.
11850         (create_demangled_names_hash, symbol_set_names): New functions.
11851         (symbol_find_demangled_name): New function, broken out from
11852         symbol_init_demangled_names.
11853         (symbol_init_demangled_names): Use it.
11854         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11855         (SYMBOL_SET_NAMES): New macro.
11856         (symbol_set_names): Add prototype.
11857
11858 2003-02-03  Jim Blandy  <jimb@redhat.com>
11859
11860         Use a single, consistent representation for an empty minimal
11861         symbol table in an objfile.
11862         * objfiles.c (terminate_minimal_symbol_table): New function.
11863         (allocate_objfile): Call it.
11864         * objfiles.h (terminate_minimal_symbol_table): New declaration.
11865         (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11866         non-NULL.
11867         * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11868         objfile has minimal symbols, compare minimal_symbol_count to zero,
11869         instead of comparing msymbols with NULL.
11870         * objfiles.c (have_minimal_symbols): Same.
11871         * solib-sunos.c (solib_add_common_symbols): Call
11872         terminate_minimal_symbol_table.
11873         * symfile.c (reread_symbols): Same.
11874
11875 2003-02-03  Kevin Buettner  <kevinb@redhat.com>
11876
11877         * s390-tdep.c (s390_address_class_type_flags)
11878         (s390_address_class_type_flags_to_name)
11879         (s390_address_class_name_to_type_flags): New functions.
11880         (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11881         ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11882
11883 2003-02-03  Michael Snyder  <msnyder@redhat.com>
11884
11885         * arm-tdep.c: Fix spell-o in comment.
11886
11887 2003-02-03  Michal Ludvig  <mludvig@suse.cz>
11888
11889         * dwarf2cfi.c (pointer_encoding): Added new parameter.
11890         * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11891         error messages to contain BFD filename.
11892
11893 2003-02-02  Elena Zannoni  <ezannoni@redhat.com>
11894
11895         Fix PR gdb/742 gdb/743 gdb/877
11896         * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11897         (do_mixed_source_and_assembly): Use
11898         make_cleanup_ui_out_tuple_begin_end and
11899         make_cleanup_ui_out_tuple_begin_end.
11900         (do_mixed_source_and_assembly): Ditto.
11901         * thread.c (do_captured_list_thread_ids): Ditto.
11902         * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11903         ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11904         ui_out_tuple_end): Delete prototypes.
11905         * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11906         ui_out_list_end, ui_out_tuple_end): Delete.
11907
11908         From Kevin Buettner  <kevinb@redhat.com>:
11909         * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11910         * ui-out.c (make_cleanup_ui_out_table_begin_end)
11911         (do_cleanup_table_end):  New functions.
11912         * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11913         Use cleanups to invoke_ui_out_tuple_end().
11914         (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11915         * cli/cli-setshow.c (cmd_show_list): Use
11916         make_cleanup_ui_out_tuple_begin_end.
11917
11918 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11919
11920         * frame.c (frame_unwind_register): New function.
11921         (frame_unwind_unsigned_register): Use.
11922         (frame_unwind_signed_register): Use.
11923         (frame_read_register): New function.
11924         * frame.h (frame_unwind_register): Declare.
11925         (frame_read_register): Declare.
11926
11927         * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11928         and frame_unwind_register instead of read_memory, write_register
11929         and deprecated_write_register_bytes.
11930
11931 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11932
11933         * frame.h: Note that namelen can be negative.
11934         * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11935         NAME's length.
11936
11937         * NEWS: Mention that the d10v's `regs' command is deprecated.
11938         * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11939         (d10v_print_registers_info): New function.
11940         (show_regs): Call d10v_print_registers_info.
11941         (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11942
11943 2003-02-02  Mark Kettenis  <kettenis@gnu.org>
11944
11945         * stack.c (print_frame_info): Restore call to annotate_frame_begin
11946         lost in the previous patch.
11947
11948 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11949
11950         From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11951         * stack.c (print_frame_info_base): Output complete FRAME tuple
11952         for synthesized frames.
11953
11954 2003-02-02  Andrew Cagney  <ac131313@redhat.com>
11955
11956         * mips-nat.c (zerobuf): Delete.
11957         (fetch_inferior_registers): Alloc local zerobuf.
11958         (fetch_core_registers): Alloc local zerobuf.
11959         * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11960         MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11961         * thread-db.c (thread_db_store_registers): Ditto.
11962         * sh-tdep.c (sh_do_register): Ditto.
11963         * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11964         * remote-sim.c (gdbsim_store_register): Ditto.
11965         * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11966         * remote-e7000.c (fetch_regs_from_dump): Ditto.
11967         * monitor.c (monitor_supply_register): Ditto.
11968         * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11969         * mips-nat.c (fetch_inferior_registers): Ditto.
11970         * m68klinux-nat.c (fetch_register): Ditto.
11971         * lynx-nat.c (fetch_inferior_registers): Ditto.
11972         (fetch_inferior_registers): Ditto.
11973         * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11974         * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11975         (hpux_thread_store_registers): Ditto.
11976         * hppah-nat.c (fetch_register): Ditto.
11977         * hppab-nat.c (fetch_register): Ditto.
11978         * hppa-tdep.c (pa_register_look_aside): Ditto.
11979         (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11980         * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11981
11982 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11983
11984         * gdbarch.sh: Explictly specify all method levels.  When a
11985         variable with an empty level, provide a non-multi-arch default.
11986         (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11987         * gdbarch.h: Re-generate.
11988         * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete.  Always defined.
11989         * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11990
11991 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
11992
11993         * defs.h (host_pointer_to_address): Delete declaration.
11994         (address_to_host_pointer): Delete declaration.
11995         * utils.c (host_pointer_to_address): Delete function.
11996         (address_to_host_pointer): Delete function.
11997         * procfs.c (procfs_address_to_host_pointer): New function.
11998         * procfs.c (proc_set_watchpoint): Use.
11999         (procfs_can_use_hw_breakpoint): Update comments.
12000         * somsolib.c (hpux_address_to_host_pointer_hack): New function.
12001         (som_solib_add): Use.
12002         * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
12003         * hppa-tdep.c (unwind_command): Use.
12004
12005 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12006
12007         * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
12008         strlen d_name.
12009
12010         * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
12011         ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12012         (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12013         * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12014         (define_symbol): Update.
12015         * symfile.c (generic_load): Remove references to nindy.
12016         * symtab.c: Remove references to nindy.
12017
12018 2003-02-01  Andrew Cagney  <ac131313@redhat.com>
12019
12020         * infcmd.c (print_float_info): Delete code conditional on
12021         FLOAT_INFO.
12022         * config/nm-lynx.h: Delete #undef FLOAT_INFO.  Update copyright.
12023         * config/m68k/nm-apollo68b.h: Ditto.
12024         * config/i386/tm-ptx.h (FLOAT_INFO): Delete.  Update copyright.
12025         * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12026         * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12027
12028 2003-02-01  Mark Kettenis  <kettenis@gnu.org>
12029
12030         * config/i386/tm-i386os9k.h: Removed.
12031
12032         * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12033         Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12034         they're identical to i[3456]86-*-sysv* now.
12035         * config/i386/i386v32.mh: Removed.
12036         * config/i386/xm-i386v32.h: Removed.
12037         * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12038
12039         * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12040
12041         * config/i386/i386dgux.mh: Removed.
12042         * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12043
12044         * configure.in: Fix typo.
12045         * configure: Regenerated.
12046
12047 2003-01-31  David Carlton  <carlton@math.stanford.edu>
12048
12049         * dwarf2read.c (dwarf2_locate_sections): Set
12050         dwarf_ranges_section.
12051
12052 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
12053
12054         * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12055         * utils.c: Update comments documenting legitimate uses of PTR.
12056
12057         * utils.c: Re-indent.
12058
12059         * config/djgpp/fnchange.lst: Delete nindy files.
12060         * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12061         * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12062         * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12063         * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12064         * nindy-share/README, nindy-share/Onindy.c: Delete files.
12065         * nindy-tdep.c, nindy-share/Makefile: Delete files.
12066         * Makefile.in (init.c): Remove nindy references.
12067         (saber_gdb): Delete rule.
12068         (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12069         nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12070         and a68v-nat.c.
12071         (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12072         (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12073         (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12074         nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12075         nindy-share/stop.h.
12076         * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12077         * saber.suppress: Delete file.
12078
12079 2003-01-31  Daniel Jacobowitz  <drow@mvista.com>
12080
12081         * dbxread.c (stabs_data): New static variable.
12082         (fill_symbuf): Support an in-memory buffer for stabs data.
12083         (stabs_seek): New function.
12084         (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12085         (read_ofile_symtab): Use stabs_seek.
12086         (elfstab_build_psymtabs): Take an asection* instead of
12087         an offset and size.  Relocate the stabs data if necessary.
12088         Save the section* for dbx_psymtab_to_symtab.
12089         * dwarf2read.c: Add section variables for each debug section.
12090         (dwarf2_locate_sections): Fill them in.
12091         (dwarf2_read_section): Take an asection* argument.
12092         Relocate the section contents if necessary.
12093         (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12094         * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12095         it to dwarf2_read_section.
12096         (dwarf2_build_frame_info): Update callers.
12097         * elfread.c (elf_symfile_read): Update call to
12098         elfstab_build_psymtabs.
12099         * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12100         (DBX_STAB_SECTION): New macro.
12101         * stabsread.h (elfstab_build_psymtabs): Update prototype.
12102         * symfile.c (symfile_dummy_outputs): New function.
12103         (symfile_relocate_debug_section): New function.
12104         * symfile.h (symfile_relocate_debug_section): Add prototype.
12105
12106 2003-01-31  Richard Henderson  <rth@redhat.com>
12107
12108         * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12109         (register_addr): ... here.  Support ALPHA_UNIQUE_REGNUM.
12110         (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12111         * alpha-tdep.c (alpha_register_name): Add "unique".
12112         * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12113         (ALPHA_UNIQUE_REGNUM): New.
12114         * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12115
12116 2003-01-31  Andrew Cagney  <ac131313@redhat.com>
12117
12118         * README: Remove reference to Ericsson 1800 monitor.
12119         * Makefile.in (remote-es.o): Delete rule.
12120         (ALLDEPFILES): Delete remote-es.c.
12121         * remote-es.c: Delete file.
12122         * config/m68k/es1800.mt: Delete file.
12123         * config/djgpp/fnchange.lst: Update.
12124         * configure.tgt: Delete m68*-ericsson-* target.
12125
12126 2003-01-31  Adam Fedor  <fedor@gnu.org>
12127
12128         * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12129         Remove duplicate/shadowing variable of same name.
12130
12131 2003-01-30  Jim Blandy  <jimb@redhat.com>
12132
12133         * symfile.c (find_separate_debug_file): Assert that the objfile's
12134         directory name we compute ends with a slash, and then assume that
12135         that's so everywhere we use it.
12136
12137 2003-01-30  Daniel Jacobowitz  <drow@mvista.com>
12138
12139         * valops.c (value_assign): Flush frame cache after stores to memory
12140         also.
12141
12142 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
12143
12144         * Makefile.in (mon960-rom.o): Delete rule.
12145         * mon960-rom.c: Delete file.
12146
12147 2003-01-30  Andrew Cagney  <ac131313@redhat.com>
12148
12149         * d10v-tdep.c: Include "frame-unwind.h".
12150         (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12151         list.
12152         (next_addr, uses_frame): Delete.
12153         (struct d10v_unwind_cache): Define.
12154         (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12155         Use info instead of next_addr and uses_frame globals.
12156         (d10v_frame_init_saved_regs): Delete function.
12157         (d10v_init_extra_frame_info): Delete function.
12158         (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12159         frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12160         init_frame_pc or frame_saved_pc.
12161         (d10v_pop_frame): Delete function.
12162         (do_d10v_pop_frame): Delete function.
12163         (d10v_frame_chain): Delete function.
12164         (d10v_frame_chain_valid): Delete function.
12165         (d10v_frame_pc_unwind): New function.
12166         (d10v_frame_id_unwind): New function.
12167         (saved_regs_unwinder): New function.
12168         (d10v_frame_register_unwind): New function.
12169         (d10v_frame_pop): New function.
12170         (d10v_frame_unwind): New variable.
12171         (d10v_frame_p): New function.
12172         (d10v_frame_saved_pc): Delete function.
12173         * Makefile.in (d10v-tdep.o): Update dependencies.
12174
12175 2003-01-30  J. Brobecker  <brobecker@gnat.com>
12176
12177         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12178         causing some regressions due to a change in the default value
12179         for this macro.
12180
12181 2003-01-29  Richard Henderson  <rth@redhat.com>
12182             Elena Zannoni  <ezannoni@redhat.com>
12183             Daniel Jacobowitz  <drow@mvista.com>
12184
12185         Fix PR gdb/961.
12186         * dwarf2read.c  (dwarf_ranges_offset, dwarf_ranges_size): New
12187         variables.
12188         (RANGES_SECTION): New.
12189         (dwarf_ranges_buffer): New variable.
12190         (struct comp_unit_head): Add member "die".
12191         (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12192         (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12193         (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12194         (dwarf2_locate_sections): Likewise.
12195         (dwarf2_build_psymtabs): Read .debug_ranges.
12196         (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12197         (psymtab_to_symtab_1): Swap dwarf_ranges in.  Set cu_header.die.
12198         (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12199         Look for DW_AT_ranges and return the bounding box.
12200
12201 2003-01-29  Brian Ford <ford@vss.fsi.com>
12202
12203         * win32-nat.c (cygwin_pid): Removed as unused.
12204         (child_attach): Try fall back to Cygwin pid.
12205
12206 2003-01-29  Jim Blandy  <jimb@redhat.com>
12207
12208         * objfiles.h (struct objfile): Doc fix.
12209
12210 2003-01-29  Andrew Cagney  <ac131313@redhat.com>
12211
12212         * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12213         (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12214         (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12215         (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12216         * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12217         (FRAME_SAVED_PC): Change to a function with predicate.
12218         * gdbarch.h, gdbarch.c: Re-generate.
12219
12220 2003-01-28  Andrew Cagney  <ac131313@redhat.com>
12221
12222         * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12223
12224         * complaints.c (complain): Delete function.
12225         * complaints.h (struct deprecated_complaint): Delete definition.
12226         (complain): Delete declaration.
12227
12228 2003-01-28  Kevin Buettner  <kevinb@redhat.com>
12229
12230         * mips-tdep.c (mips_init_extra_frame_info): Return early for
12231         dummy frames.
12232
12233 2003-01-27  Andrew Cagney  <ac131313@redhat.com>
12234
12235         * sentinel-frame.h, sentinel-frame.c: New files.
12236         * Makefile.in (frame.o): Update dependencies.
12237         (SFILES): Add sentinel-frame.c.
12238         (sentinel_frame_h): Define.
12239         (COMMON_OBS): Add sentinel-frame.o.
12240         (sentinel-frame.o): Specify dependencies.
12241         * frame.c: Include "sentinel-frame.h".
12242         (frame_register_unwind): Rewrite assuming that there is always a a
12243         ->next frame.
12244         (frame_register, generic_unwind_get_saved_register): Ditto.
12245         (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12246         (create_sentinel_frame, unwind_to_current_frame): New functions.
12247         (get_current_frame): Rewrite using create_sentinel_frame and
12248         unwind_to_current_frame.  When possible, always create a frame.
12249         (create_new_frame): Set next to the sentinel frame.
12250         (get_next_frame): Rewrite.  Don't go below the level 0 frame.
12251         (deprecated_update_frame_pc_hack): Update the next frame's PC and
12252         ID cache when necessary.
12253         (frame_saved_regs_id_unwind): Use frame_relative_level.
12254         (deprecated_generic_get_saved_register): Use frame_relative_level,
12255         get_frame_saved_regs, get_frame_pc, get_frame_base and
12256         get_next_frame.
12257         (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12258         frame_register.
12259
12260 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
12261
12262         * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12263
12264 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
12265
12266         * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12267         (maintenance_set_profile_cmd): Use error () instead of warning ().
12268
12269 2003-01-27  Daniel Jacobowitz  <drow@mvista.com>
12270
12271         * configure.in: Check that -pg works if using --enable-profiling.
12272         Check for monstartup and _mcleanup regardless of --enable-profiling.
12273         * maint.c: Check for monstartup and _mcleanup before using them.
12274         * config.in: Regenerated.
12275         * configure: Regenerated.
12276
12277 2003-01-24  Nick Clifton  <nickc@redhat.com>
12278
12279         * Add sh2e support:
12280
12281         2002-04-02  Elena Zannoni  <ezannoni@redhat.com>
12282
12283                 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12284                 (sh2e_show_regs): New.
12285                 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12286                 * config/sh/tm-sh.h: Added sh2e to comments.
12287
12288 2003-01-23  Jim Blandy  <jimb@redhat.com>
12289
12290         * symfile.c (syms_from_objfile): Don't print the "(no debugging
12291         symbols found)" message here; we haven't checked for a separate
12292         debug info file yet, so we don't know yet.
12293         (symbol_file_add_with_addrs_or_offsets): Print it here, after
12294         we've looked everywhere.  Also, there's no need to print a special
12295         message when we're loading the separate debug info file: the one
12296         symbol_file_add prints is fine.
12297
12298 2003-01-23  Alexander Larsson <alexl@redhat.com>
12299             Jim Blandy  <jimb@redhat.com>
12300
12301         Add support for executables whose debug info has been separated
12302         out into a separate file, leaving only a link behind.
12303         * objfiles.h (struct objfile): New fields: separate_debug_objfile
12304         and separate_debug_objfile_backlink.
12305         (put_objfile_before): New declaration.
12306         * symfile.c: #include "filenames.h".
12307         (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12308         debug info in a separate file, read that, too. Save the addrs
12309         argument, so we can use it again to read the separated debug info;
12310         syms_from_objfile modifies the table we pass it.
12311         (reread_symbols): After re-reading an objfile, call
12312         reread_separate_symbols to refresh its separate debug info
12313         objfile, if it has one.
12314         (reread_separate_symbols, find_separate_debug_file,
12315         get_debug_link_info, separate_debug_file_exists): New functions.
12316         (debug_file_directory): New global var.
12317         (_initialize_symfile): Initialize debug_file_directory, and
12318         provide the new `set debug-file-directory' command to let the user
12319         change it.
12320         * objfiles.c (free_objfile): If this objfile has its debug info in
12321         a separate objfile, free that one too.  If this is itself a
12322         separate debug info objfile, clear our parent's backlink.
12323         (put_objfile_before): New function.
12324         * utils.c (gnu_debuglink_crc32): New function.
12325         * defs.h (gnu_debuglink_crc32): New declaration.
12326         * Makefile.in (symfile.o): Note dependency on "filenames.h".
12327         * configure.in: Handle --with-separate-debug-dir config option.
12328         * acinclude.m4 (AC_DEFINE_DIR): New macro.
12329         * acconfig.h (DEBUGDIR): New macro.
12330         * configure, aclocal.m4, config.in: Regenerated.
12331
12332 2003-01-22  Jim Blandy  <jimb@redhat.com>
12333
12334         * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12335         like the old symbol_file_add, but taking new arguments: you can
12336         now pass in either a `struct section_addr_info' list to say where
12337         each section is loaded, or a `struct section_offsets' table.  Pass
12338         these new arguments through to syms_from_objfile as appropriate.
12339         (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12340         with the appropriate quiescent values for the new arguments.
12341
12342         * symfile.c: #include "gdb_assert.h".
12343         (syms_from_objfile): Add the ability to pass in a section offset
12344         table directly, as an alternative to the section_addr_info table.
12345         Document arguments better.
12346         (symbol_file_add): Pass extra arguments to syms_from_objfile.
12347         * symfile.h (syms_from_objfile): Update declaration.
12348         * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12349         syms_from_objfile.
12350         * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12351
12352 2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
12353
12354         Original patch by Tom Tromey <tromey@cygnus.com> and
12355         Jason Molenda <jmolenda@apple.com>.
12356         * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12357         (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12358         * NEWS: Mention profiling.
12359         * configure.in (--enable-gdbtk): Fix typo.
12360         (--enable-profiling): New.  Set PROFILE_CFLAGS.
12361         * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12362         Fill in function.
12363         (profiling_state): New variable.
12364         (mcleanup_wrapper): New function.
12365         (_initialize_maint): Remove NOTYET, fix call to
12366         add_setshow_boolean_cmd for "maint set profile".
12367         * configure: Regenerated.
12368
12369 2003-01-21  Martin M. Hunt  <hunt@redhat.com>
12370
12371         * Makefile.in (install-gdbtk): Install PNG images too.
12372
12373 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
12374
12375         * exec.c (text_start): Delete global variable.
12376         (exec_file_attach): Make text_start local to the function.
12377         * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12378         * valops.c (hand_function_call): Delete code that handles
12379         BEFORE_TEXT_END and AFTER_TEXT_END.
12380         * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12381         of CALL_DUMMY_LOCATION.
12382         * gdbarch.c: Regenerate.
12383         * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12384         (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12385         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12386         (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12387         (text_end): Delete extern declaration.
12388
12389 2003-01-21  Andrew Cagney  <ac131313@redhat.com>
12390
12391         * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12392         * blockframe.c (backtrace_below_main): Move to "frame.c".
12393         (frame_chain_valid): Delete check for backtrace_below_main.
12394         (_initialize_blockframe): Delete initialization, move ``set
12395         backtrace-below-main'' command to "frame.c".
12396         (do_flush_frames_sfunc): Delete function.
12397         * frame.c: Include "command.h" and "gdbcmd.h".
12398         (frame_type_from_pc): New function.
12399         (create_new_frame): Use frame_type_from_pc.
12400         (legacy_get_prev_frame): New function.
12401         (get_prev_frame): Rewrite.  When an old style frame, call
12402         legacy_get_prev_frame.  Otherwize, unwind the PC first.
12403         (_initialize_frame): Add ``set backtrace-below-main'' command.
12404         * Makefile.in (frame.o): Update dependencies.
12405
12406 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12407
12408         * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12409         DEPRECATED_REGISTERS_INFO.
12410
12411 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12412
12413         * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12414         Maintainers'.  Update `Various Maintainers'.
12415
12416 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12417
12418         * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12419         * gdbarch.sh (POP_FRAME): Change to function with predicate.
12420         Suppress actual parameters when `-'.
12421         * gdbarch.h, gdbarch.c: Regenerate.
12422
12423 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12424
12425         * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12426         code handling dummy frames.
12427
12428 2003-01-19  Andrew Cagney  <ac131313@redhat.com>
12429
12430         * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12431         (struct frame_unwind): Add field pop.
12432         * frame.h (frame_pop): Declare.
12433         * frame.c (frame_saved_regs_pop): New function.
12434         (trad_frame_unwinder): Add frame_saved_regs_pop.
12435         (frame_pop): New function.
12436         * dummy-frame.c (dummy_frame_pop): New function.
12437         (discard_innermost_dummy): New function.
12438         (generic_pop_dummy_frame): Use discard_innermost_dummy.
12439         (dummy_frame_unwind): Add dummy_frame_pop.
12440         * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12441         * valops.c (hand_function_call): Ditto.
12442         * stack.c (return_command): Ditto.
12443
12444 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12445
12446         * cris-tdep.c: Fix function declaration indentation.
12447         * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12448         * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12449         * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12450         * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12451         * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12452         * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12453
12454 2003-01-18  Michael Chastain  <mec@shout.net>
12455
12456         * README (Unpacking and Installation -- quick overview):
12457         Warn against ".../gdb-5.3/gdb/configure".
12458
12459 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12460
12461         * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12462         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12463         (struct frame_unwind): Declare opaque.
12464         (dummy_frame_p): Declare function.
12465         * dummy-frame.c (dummy_frame_id_unwind): Make static.
12466         (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12467         * dummy-frame.c: Include "frame-unwind.h".
12468         (dummy_frame_p): New function.
12469         (dummy_frame_unwind): New variable.
12470         * frame.c: Include "frame-unwind.h".
12471         (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12472         to use the new unwind field.
12473         (set_unwind_by_pc): Delete function.
12474         (create_new_frame, get_prev_frame): Set unwind field using
12475         frame_unwind_find_by_pc.
12476         (trad_frame_unwind, trad_frame_unwinder): New variables.
12477         * frame.h (trad_frame_unwind): Declare variable.
12478         (frame_id_unwind_ftype): Delete declaration.
12479         (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12480         (struct frame_unwind): Declare opaque.
12481         (struct frame_info): Replace the fields id_unwind, pc_unwind and
12482         register_unwind with a single unwind pointer.
12483         * frame-unwind.h, frame-unwind.c: New files.
12484         * Makefile.in (SFILES): Add frame-unwind.c.
12485         (frame_unwind_h): Define.
12486         (COMMON_OBS): Add frame-unwind.o.
12487         (frame-unwind.o): Specify dependencies.
12488         (frame.o, dummy-frame.o): Update dependencies.
12489
12490 2003-01-18  Andrew Cagney  <ac131313@redhat.com>
12491
12492         * ada-valprint.c: Eliminate PTR.
12493         * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12494         * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12495         * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12496         * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12497         * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12498         * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12499         * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12500
12501 2003-01-17  Andrew Cagney  <ac131313@redhat.com>
12502
12503         * main.c (captured_main): Don't use PTR.
12504         * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12505         * gdbtypes.c (lookup_primitive_typename): Ditto.
12506         (lookup_struct_elt_type): Ditto.
12507         * f-valprint.c (info_common_command): Ditto.
12508         (list_all_visible_commons): Ditto.
12509         * jv-typeprint.c (java_type_print_base): Ditto.
12510
12511         * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12512         mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12513         Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c.  Rename
12514         i386-interix-nat.c and i386-interix-tdep.c.  Rename
12515         m68klinux-nat.c and m68klinux-tdep.c.  Rename
12516         config/mips/tm-linux.h and config/mips/tm-linux64.h.  Rename
12517         bfd/po/.cvsignore and opcodes/po/.cvsignore.  Rename
12518         gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12519         * main.c (captured_main): Use xfree, not free.
12520
12521 2003-01-16  Andrew Cagney  <ac131313@redhat.com>
12522
12523         * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12524         ID back using a parameter.
12525         * frame.c (frame_id_unwind): Update call.
12526         (frame_saved_regs_id_unwind): Update.
12527         * dummy-frame.c (dummy_frame_id_unwind): Update function.
12528         * dummy-frame.h (struct frame_id): Add opaque declaration.
12529         (dummy_frame_id_unwind): Update declaration.
12530
12531 2003-01-15  Andrew Cagney  <ac131313@redhat.com>
12532
12533         * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12534
12535 2003-01-15  Stephen P. Smith <ischis2@cox.net>
12536
12537         * MAINTAINERS (Stephen P. Smith): Updated email address.
12538
12539 2003-01-14  Elena Zannoni  <ezannoni@redhat.com>
12540
12541         Fix PR gdb/898
12542         * breakpoint.c (until_break_command): Add new argument.  Use it to
12543         decide whether to stop only at the current frame or not.
12544         * breakpoint.h (until_break_command): Update prototype.
12545         * infcmd.c (until_command): Add new argument to until_break_command
12546         call.
12547         (advance_command): New function.
12548         (_initialize_infcmd): Update help string for 'until' command.
12549         Add new 'advance' command.
12550
12551 2003-01-14  David Carlton  <carlton@math.stanford.edu>
12552
12553         * linespec.c (decode_line_1): Normalize comments.
12554         (set_flags): Ditto.
12555         (locate_first_half): Ditto.
12556         (decode_compound): Ditto.
12557         (symtab_from_filename): Ditto.
12558         (decode_all_digits): Ditto.
12559         (decode_dollar): Ditto.
12560         (find_methods): Ditto.
12561         (find_toplevel_char): Ditto.
12562
12563 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12564
12565         * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12566         * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12567         * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12568         * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12569         * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12570         * language.c, language.h, m32r-tdep.c: Update copyright.
12571         * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12572         * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12573         * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12574         * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12575         * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12576         * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12577
12578 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
12579
12580         * stabsread.h (process_later, resolve_cfront_continuation):
12581         Obsolete.
12582         Update copyright years.
12583         * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12584         Update copyright year.
12585         * dbxread.c(struct cont_elem): Obsolete.
12586         (process_later, process_now): Obsolete functions.
12587         (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12588         Update copyright year.
12589         * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12590         (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12591         * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12592         (parse_partial_symbols): Obsolete cfront support.
12593         * stabsread.c
12594         (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12595         macros.
12596         (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12597         read_cfront_baseclasses, read_cfront_member_functions,
12598         resolve_cfront_continuation,read_cfront_static_fields,
12599         copy_cfront_struct_fields): Obsolete functions.
12600         (define_symbol, read_one_struct_field): Obsolete cfront support.
12601         * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12602         Update Copyright year.
12603
12604 2003-01-13  Elena Zannoni  <ezannoni@redhat.com>
12605
12606         * stack.c (print_frame_info, print_stack_frame_base_stub,
12607         print_stack_frame_base, show_and_print_stack_frame_stub,
12608         show_and_print_stack_frame, print_only_stack_frame_stub,
12609         print_only_stack_frame): Delete functions.
12610         (print_stack_frame_stub): Call print_frame_info instead of
12611         print_frame_info_base.
12612         (print_frame_info_base): Rename to print_frame_info.
12613         (backtrace_command_1): Call print_frame_info, instead of
12614         print_frame_info_base.
12615         (current_frame_command): Call print_stack_frame, instead of
12616         print_only_stack_frame.
12617         (frame_command): Call print_stack_frame, instead of
12618         show_and_print_stack_frame.
12619         (up_command): Ditto.
12620         (down_command): Ditto.
12621         * frame.h (print_only_stack_frame): Delete prototype.
12622         * infrun.c (normal_stop): Call print_stack_frame, instead of
12623         show_and_print_stack_frame.
12624         * thread.c (info_threads_command): Call print_stack_frame, instead
12625         of print_only_stack_frame.
12626
12627 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12628
12629         * README (Graphical interface to GDB): Update URL.  Point at
12630         gdb/links/.
12631
12632         * gdb_indent.sh: Update to version 2.2.9.  Warn when not exact
12633         version match.
12634
12635 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12636
12637         * symtab.c (find_pc_sect_line): Don't consider end-of-function
12638         lines.
12639
12640 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12641
12642         * thread-db.c (attach_thread): Prototype.
12643         (struct private_thread_info): Remove lwpid.  Add thread handle (th),
12644         thread information (ti), and valid flags (th_valid, ti_valid).
12645         (attach_thread): Move target_pid_to_str call to after the thread
12646         is added to GDB's list.  Initialize the cache.
12647         (thread_get_info_callback, thread_db_map_id2thr)
12648         (thread_db_get_info): New functions.
12649         (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12650         (thread_db_store_registers, thread_db_thread_alive)
12651         (thread_db_get_thread_local_address): Use them.
12652         (thread_db_pid_to_str): Likewise.  Return "Missing" instead
12653         of calling error() for threads in unknown state.
12654
12655         (clear_lwpid_callback): New function.
12656         (thread_db_resume): Use it to clear the cache.
12657
12658 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12659
12660         * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12661         (resume_callback): Remove dead code.
12662
12663 2003-01-13  Andrew Cagney  <ac131313@redhat.com>
12664
12665         * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12666         predicate.
12667         * gdbarch.h, gdbarch.c: Regenerate.
12668         * stack.c (frame_info): Only initialize the saved registers when
12669         FRAME_INIT_SAVED_REGS_P.
12670         * frame.c (frame_saved_regs_register_unwind): Assert
12671         FRAME_INIT_SAVED_REGS_P.
12672         (deprecated_generic_get_saved_register): Ditto.
12673
12674 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12675
12676         * source.c (openp): Squelch warning about "filename".
12677
12678 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12679
12680         * source.c (openp): If the file does not exist don't necessarily
12681         search the path.
12682
12683 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12684
12685         Fix PR gdb/872.
12686         * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12687         (integer_types_same_name_p): New function.
12688         (rank_one_type): Use it.
12689         * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12690
12691 2003-01-13  Daniel Jacobowitz  <drow@mvista.com>
12692
12693         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12694         variables.
12695         (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12696         * configure.in: Add --with-sysroot.
12697         * configure: Regenerated.
12698         * main.c (gdb_sysroot): New variable.
12699         (captured_main): Initialize gdb_sysroot.
12700         * defs.h (gdb_sysroot): New extern declaration.
12701         * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12702
12703 2003-01-12  Michael Chastain  <mec@shout.net>
12704
12705         * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12706
12707 2003-01-12  Michael Chastain  <mec@shout.net>
12708
12709         * top.c (print_gdb_version): Bump copyright year to 2003.
12710
12711 2003-01-12  David Carlton  <carlton@bactrian.org>
12712
12713         * linespec.c (symtab_from_filename): Rename variable 's' to
12714         'file_symtab'.
12715
12716 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
12717
12718         * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12719         dummy frame.
12720         (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12721
12722 2003-01-12  Andrew Cagney  <ac131313@redhat.com>
12723
12724         * d10v-tdep.c: Include "gdb_assert.h".
12725         (d10v_store_return_value): Rewrite to match current interface.
12726         (d10v_extract_struct_value_address): Ditto.
12727         (d10v_extract_return_value): Ditto.
12728         (d10v_gdbarch_init): Set store_restore_value,
12729         extract_struct_value_address and extract_return_value.
12730
12731 2003-01-12  J. Brobecker  <brobecker@gnat.com>
12732
12733         * hpread.c (set_namestring): New procedure replacing the
12734         SET_NAMESTRING macro.
12735         (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12736         by calls to set_namestring.
12737
12738 2003-01-11  J. Brobecker  <brobecker@gnat.com>
12739
12740         * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12741         a compilation warning.
12742         (hpread_process_one_debug_symbol): Likewise.
12743
12744 2003-01-10  David Carlton  <carlton@math.stanford.edu>
12745
12746         * linespec.c (decode_line_1): Rename variable 's' to
12747         'file_symtab'.
12748         (decode_all_digits): Rename argument 's' to 'file_symtab'.
12749         (decode_dollar): Ditto.
12750         (decode_variable): Ditto.
12751         (symbol_found): Ditto.
12752
12753 2003-01-09  Michael Chastain  <mec@shout.net>
12754
12755         * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12756
12757 2003-01-07  Corinna Vinschen  <vinschen@redhat.com>
12758
12759         * win32-nat.c (set_process_privilege): New function.
12760         (child_attach): Call set_process_privilege() to enable the
12761         SE_DEBUG_NAME user privilege if available in process token.
12762
12763 2003-01-10  J. Brobecker  <brobecker@gnat.com>
12764
12765         * hpread.c (hpread_process_one_debug_symbol): Fix a small
12766         compilation error in the previous revision.
12767
12768 2003-01-09  David Carlton  <carlton@math.stanford.edu>
12769
12770         * linespec.c: Update copyright.
12771
12772 2003-01-09  Daniel Jacobowitz  <drow@mvista.com>
12773
12774         * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12775         than inferior_ptid.
12776         (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12777
12778 2003-01-09  Andrew Cagney  <ac131313@redhat.com>
12779
12780         * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12781         Update comments.
12782         * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12783         (frame_saved_regs_zalloc): Update.
12784         (frame_saved_regs_register_unwind): Update.
12785         (create_new_frame): Update.
12786         (get_prev_frame): Update.
12787         (frame_extra_info_zalloc): Update.
12788         (deprecated_get_frame_saved_regs): Update.
12789         * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12790         * cris-tdep.c: Update comment.
12791
12792         * somsolib.h: Fix function indentation.
12793         * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12794         * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12795         * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12796         * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12797         * somsolib.c, inftarg.c: Remove assignment in if conditional.
12798
12799         * infrun.c (follow_fork): Use ISO C definition.
12800         * expprint.c (print_subexp): Use xfree instead of free.
12801         * charset.c: Include "gdb_string.h" instead of <string.h>.
12802         (register_iconv_charsets): Use ISO C definition.
12803         (host_charset, target_charset): Ditto.
12804         * Makefile.in (charset.o): Update dependencies.
12805         (mi-cmd-env.o): Update dependencies.
12806
12807 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12808
12809         * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12810         get_frame_base.
12811
12812 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12813
12814         * gdb_mbuild.sh: Add --keep option.  When specified, keep the
12815         build directories.  Save edited gdb output in Mbuild.log.  If a
12816         build fails, remove any final GDB executable.
12817
12818 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12819
12820         * gdb_mbuild.sh: Edit the output of `maint print architecture'
12821         replacing hex constants with function names and stripping leading
12822         file name directory prefixes.
12823
12824 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12825
12826         * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12827         get_frame_base.
12828
12829 2003-01-08  David Carlton  <carlton@math.stanford.edu>
12830
12831         * linespec.c (decode_line_1): Move code into decode_variable.
12832         (decode_variable): New function.
12833
12834 2003-01-08  Andrew Cagney  <ac131313@redhat.com>
12835
12836         * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12837
12838 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12839
12840         * cris-tdep.c (cris_frame_init_saved_regs): Use
12841         get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12842         saved_regs buffer.
12843         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12844         (sh64_nofp_frame_init_saved_regs): Ditto.
12845         (sh_fp_frame_init_saved_regs): Ditto.
12846         * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12847         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12848         * mcore-tdep.c (analyze_dummy_frame): Ditto.
12849         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12850
12851 2003-01-08  Daniel Jacobowitz  <drow@mvista.com>
12852
12853         * minsyms.c (lookup_minimal_symbol): Update comment.
12854         (lookup_minimal_symbol_text): Update comment.  Use the hash table.
12855         (lookup_minimal_symbol_solib_trampoline): Likewise.
12856
12857 2003-01-08  Andrew Cagney  <cagney@redhat.com>
12858
12859         * d10v-tdep.c (d10v_init_extra_frame_info): Use
12860         frame_relative_level.
12861
12862         * alpha-tdep.c: Use get_frame_extra_info.
12863         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12864         * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12865         * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12866         * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12867
12868         * alpha-tdep.c: Use get_next_frame.
12869         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12870         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12871         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12872         * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12873         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12874         * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12875         * xstormy16-tdep.c: Ditto.
12876
12877 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12878
12879         * alpha-tdep.c: Use get_frame_base.
12880         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12881         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12882         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12883         * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12884         * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12885         * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12886         * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12887         * config/sparc/tm-sparc.h: Ditto.
12888
12889 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12890
12891         * frame.c (deprecated_get_frame_context): New function.
12892         (deprecated_set_frame_context): New function.
12893         * frame.h (deprecated_get_frame_context): Declare.
12894         (deprecated_set_frame_context): Declare.
12895         * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12896         (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12897
12898 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12899
12900         * frame.c (deprecated_set_frame_next_hack): New function.
12901         (deprecated_set_frame_prev_hack): New function.
12902         * frame.h (deprecated_set_frame_next_hack): Declare.
12903         (deprecated_set_frame_prev_hack): Declare.
12904         * mcore-tdep.c (analyze_dummy_frame): Use
12905         deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12906         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12907
12908 2003-01-07  David Carlton  <carlton@math.stanford.edu>
12909
12910         * linespec.c (decode_line_1): Move code into decode_dollar.
12911         (decode_dollar): New function.
12912
12913 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12914
12915         * arm-tdep.c (arm_init_extra_frame_info): Use
12916         deprecated_update_frame_base_hack.
12917         * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12918         * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12919         (fix_frame_pointer): Ditto.
12920         (mn10300_analyze_prologue): Ditto.
12921
12922 2003-01-07  Andrew Cagney  <cagney@redhat.com>
12923
12924         * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12925         extra_info using frame_extra_info_zalloc.
12926         * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12927         * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12928         (sh64_init_extra_frame_info): Ditto.
12929         * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12930         * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12931         * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12932         * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12933         * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12934         * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12935         * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12936         * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12937         * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12938         * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12939         * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12940         * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12941
12942         * mn10300-tdep.c (analyze_dummy_frame): Use
12943         deprecated_set_frame_extra_info_hack.
12944         * mcore-tdep.c (analyze_dummy_frame): Ditto.
12945
12946 2003-01-07  J. Brobecker  <brobecker@gnat.com>
12947
12948         * mdebugread.c (parse_symbol): Skip stProc entries which storage
12949         class is not scText. These do not define "real" procedures.
12950         (parse_partial_symbols): Likewise.
12951
12952 2003-01-06  Michael Snyder  <msnyder@redhat.com>
12953
12954         * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12955
12956 2003-01-06  Andrew Cagney  <ac131313@redhat.com>
12957
12958         * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12959         * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12960         * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12961         deprecated_frame_xmalloc_with_cleanup.
12962         * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12963         deprecated_frame_xmalloc.
12964         * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12965         * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12966
12967 2003-01-06  Andrew Cagney  <cagney@redhat.com>
12968
12969         * x86-64-linux-tdep.c: Include "osabi.h".
12970         * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12971
12972         * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12973
12974 2003-01-06  Andrew Cagney  <cagney@redhat.com>
12975
12976         * MAINTAINERS (Target Instruction Set Architectures): Update
12977         arm-elf.  Can be built with -Werror, has been multiarched.
12978
12979         * value.h (unpack_long): Make buffer parameter constant.
12980         (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12981         * scm-lang.h (scm_parse): Ditto.
12982         * defs.h (extract_typed_address, extract_address): Ditto.
12983         (extract_long_unsigned_integer): Ditto.
12984         * inferior.h (unsigned_pointer_to_address): Ditto.
12985         (signed_pointer_to_address): Ditto.
12986         * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12987         * gdbarch.h, gdbarch.c: Regenerate.
12988         * findvar.c (extract_long_unsigned_integer): Update.
12989         (extract_address): Update.
12990         (extract_typed_address): Update.
12991         (unsigned_pointer_to_address): Update.
12992         * values.c (unpack_long): Update.
12993         (unpack_double): Update.
12994         (unpack_pointer): Update.
12995         (unpack_field_as_long): Update.
12996         * d10v-tdep.c (d10v_pointer_to_address): Update.
12997         * avr-tdep.c (avr_pointer_to_address): Update.
12998         * scm-lang.c (scm_unpack): Update.
12999         * findvar.c (signed_pointer_to_address): Update.
13000
13001 2003-01-06  Michal Ludvig  <mludvig@suse.cz>
13002
13003         * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
13004         since it is in i386-tdep.c.
13005
13006 2003-01-06  J. Brobecker  <brobecker@gnat.com>
13007
13008         * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
13009         failure introduced in the previous change.
13010
13011 2003-01-05  Michael Chastain  <mec@shout.net>
13012
13013         * README: Remove references to deleted remote-*.c files:
13014         remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13015         remote-nrom.c, remote-os9k.c, remote-udi.c.
13016
13017 2003-01-05  Mark Kettenis  <kettenis@gnu.org>
13018
13019         * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13020         * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13021         i386_get_longjmp_target.
13022
13023 2003-01-05  Andrew Cagney  <ac131313@redhat.com>
13024
13025         * arm-tdep.c (prologue_cache): Change to a pointer.
13026         (_initialize_arm_tdep): Allocate prologue_cache.
13027         (check_prologue_cache): Update.
13028         (save_prologue_cache): Update.
13029         (arm_gdbarch_init): Update.
13030
13031 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13032
13033         * stabsread.c (update_method_name_from_physname): Call complaint()
13034         instead of error.
13035
13036 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13037
13038         * arm-tdep.c (arm_frame_chain_valid):  Remove unnecessary test.
13039         * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13040         * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13041
13042         * blockframe.c: Include "gdbcmd.h" and "command.h".
13043         (backtrace_below_main): New variable.
13044         (file_frame_chain_valid, func_frame_chain_valid)
13045         (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13046         (generic_func_frame_chain_valid): Remove functions.
13047         (frame_chain_valid, do_flush_frames_sfunc): New functions.
13048         (_initialize_blockframe): New function.
13049         * Makefile.in (blockframe.o): Update dependencies.
13050         * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13051         comment.  Call frame_chain_valid ().
13052         * frame.h: Remove old prototypes.  Add prototype for
13053         frame_chain_valid and update comments to match.
13054         * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13055         Remove old comment.
13056         * gdbarch.h: Regenerated.
13057         * gdbarch.c: Regenerated.
13058
13059         * alpha-tdep.c (alpha_gdbarch_init): Don't call
13060         set_gdbarch_frame_chain_valid.
13061         * avr-tdep.c (avr_gdbarch_init): Likewise.
13062         * cris-tdep.c (cris_gdbarch_init): Likewise.
13063         * frv-tdep.c (frv_gdbarch_init): Likewise.
13064         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13065         * i386-tdep.c (i386_svr4_init_abi): Likewise.
13066         (i386_nw_init_abi): Likewise.
13067         (i386_gdbarch_init): Likewise.
13068         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13069         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13070         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13071         * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13072         * mips-tdep.c (mips_gdbarch_init): Likewise.
13073         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13074         * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13075         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13076         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13077         * s390-tdep.c (s390_gdbarch_init): Likewise.
13078         * sh-tdep.c (sh_gdbarch_init): Likewise.
13079         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13080         * v850-tdep.c (v850_gdbarch_init): Likewise.
13081         * vax-tdep.c (vax_gdbarch_init): Likewise.
13082         * x86-64-tdep.c (x86_64_init_abi): Likewise.
13083
13084         * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13085         * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13086         * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13087         * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13088         * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13089         * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13090         * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13091         * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13092
13093 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
13094
13095         * Makefile.in (acconfig_h): Remove incorrect macro.
13096         (config_h): Define.
13097         (osabi.o): Update dependencies.
13098         * configure.tgt: Set gdb_osabi based on target triplet.
13099         * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13100         * configure: Regenerated.
13101         * config.in: Regenerated.
13102         * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13103         (GDB_OSABI_DEFAULT): Define if not already defined.
13104         (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13105         (set_osabi_string): New variables.
13106         (gdbarch_register_osabi): Add new OS ABI to
13107         gdb_osabi_available_names.
13108         (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13109         (set_osabi, show_osabi): New functions.
13110         (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13111
13112 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13113
13114         * arch-utils.c (gdbarch_info_init): Set osabi to
13115         GDB_OSABI_UNINITIALIZED.
13116         * gdbarch.sh: Add osabi to struct gdbarch and to struct
13117         gdbarch_info.  Include "osabi.h" in gdbarch.c.  Check osabi
13118         in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13119         * gdbarch.c: Regenerated.
13120         * gdbarch.h: Regenerated.
13121         * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13122         there's no BFD.
13123         (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13124         * osabi.h (enum gdb_osabi): Move to defs.h.
13125         (gdbarch_init_osabi): Update prototype.
13126         * defs.h (enum gdb_osabi): Moved here.
13127         * Makefile.in: Update dependencies.
13128
13129         * alpha-tdep.h: Don't include "osabi.h".
13130         (struct gdbarch_tdep): Remove osabi member.
13131         * alpha-tdep.c: Include "osabi.h".
13132         (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13133         iterate over arches.  Update call to gdbarch_init_osabi.
13134         (alpha_dump_tdep): Don't dump osabi.
13135         * alpha-linux-tdep.c: Include "osabi.h".
13136         * alpha-osf1-tdep.c: Include "osabi.h".
13137         * alphafbsd-tdep.c: Include "osabi.h".
13138         * alphanbsd-tdep.c: Include "osabi.h".
13139
13140         * arm-tdep.h: Don't include "osabi.h".
13141         (struct gdbarch_tdep): Remove osabi member.
13142         * arm-tdep.c: Include "osabi.h".
13143         (arm_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13144         iterate over arches.  Update call to gdbarch_init_osabi.
13145         (arm_dump_tdep): Don't dump osabi.
13146         * arm-linux-tdep.c: Include "osabi.h".
13147         * armnbsd-tdep.c: Include "osabi.h".
13148
13149         * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13150         Update call to gdbarch_init_osabi.
13151
13152         * i386-tdep.h: Don't include "osabi.h".
13153         (struct gdbarch_tdep): Remove osabi member.
13154         * i386-tdep.c: Include "osabi.h".
13155         (i386_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13156         iterate over arches.  Update call to gdbarch_init_osabi.
13157         (i386_dump_tdep): Don't dump osabi.
13158         * i386-linux-tdep.c: Include "osabi.h".
13159         * i386-sol2-tdep.c: Include "osabi.h".
13160         * i386bsd-tdep.c: Include "osabi.h".
13161         * i386gnu-tdep.c: Include "osabi.h".
13162         * i386ly-tdep.c: Include "osabi.h".
13163         * i386nbsd-tdep.c: Include "osabi.h".
13164         * i386obsd-tdep.c: Include "osabi.h".
13165
13166         * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13167         (mips_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13168         check osabi when iterating over arches.  Update call to
13169         gdbarch_init_osabi.
13170         (mips_dump_tdep): Don't dump osabi.
13171
13172         * ns32k-tdep.h: Don't include "osabi.h".
13173         (struct gdbarch_tdep): Remove.
13174         * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13175         gdbarch_lookup_osabi.  Don't iterate over arches.  Don't
13176         allocate tdep.  Update call to gdbarch_init_osabi.
13177         (ns32k_dump_tdep): Remove.
13178         (_initialize_ns32k_tdep): Update call to gdbarch_register.
13179         * ns32knbsd-tdep.c: Include "osabi.h".
13180
13181         * ppc-tdep.h: Don't include "osabi.h".
13182         (struct gdbarch_tdep): Remove osabi member.
13183         * rs6000-tdep.c: Include "osabi.h".
13184         (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't check
13185         osabi when iterating over arches.  Update call to
13186         gdbarch_init_osabi.
13187         (rs6000_dump_tdep): Don't dump osabi.
13188         * ppc-linux-tdep.c: Include "osabi.h".
13189         * ppcnbsd-tdep.c: Include "osabi.h".
13190
13191         * sh-tdep.h: Don't include "osabi.h".
13192         (struct gdbarch_tdep): Remove osabi member.
13193         * sh-tdep.c: Include "osabi.h".
13194         (sh_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13195         iterate over arches.  Update call to gdbarch_init_osabi.
13196         (sh_dump_tdep): Don't dump osabi.
13197         * shnbsd-tdep.c: Include "osabi.h".
13198
13199         * sparc-tdep.c: Include "osabi.h".
13200         (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13201         iterate over arches.  Update call to gdbarch_init_osabi.
13202         (sparc_dump_tdep): Don't dump osabi.  Do dump the rest of the
13203         tdep structure.
13204
13205         * vax-tdep.h: Don't include "osabi.h".
13206         (struct gdbarch_tdep): Remove.
13207         * vax-tdep.c: Include "osabi.h".
13208         (vax_gdbarch_init): Don't call gdbarch_lookup_osabi.  Don't
13209         iterate over arches.  Don't allocate tdep.  Update call
13210         to gdbarch_init_osabi.
13211         (vax_dump_tdep): Remove.
13212         (_initialize_vax_tdep): Update call to gdbarch_register.
13213
13214 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13215
13216         * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13217         entirely.
13218         (breakpoint_re_set_one): Don't fetch the value for a disabled
13219         watchpoint.
13220
13221 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13222
13223         * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13224         * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13225         (COERCE_FLOAT_TO_DOUBLE): Remove.
13226         * gdbarch.c: Regenerate.
13227         * gdbarch.h: Regenerate.
13228         * Makefile.in: Remove value_h from gdbarch_h.
13229         * valops.c (coerce_float_to_double): New variable.
13230         (default_coerce_float_to_double): Remove.
13231         (standard_coerce_float_to_double): Remove.
13232         (value_arg_coerce): Use coerce_float_to_double.
13233         (_initialize_valops): Add "set coerce-float-to-double".
13234         * value.h (default_coerce_float_to_double): Remove prototype.
13235         (standard_coerce_float_to_double): Remove prototype.
13236
13237         * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13238         prototyped.
13239         * mdebugread.c (parse_symbol): Likewise.
13240         * stabsread.c (define_symbol): Mark all functions as prototyped.
13241
13242         * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13243         * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13244         set_gdbarch_coerce_float_to_double.
13245         * arm-tdep.c (arm_gdbarch_init): Likewise.
13246         * frv-tdep.c (frv_gdbarch_init): Likewise.
13247         * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13248         * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13249         * mips-tdep.c (mips_gdbarch_init): Likewise.
13250         (mips_coerce_float_to_double): Remove.
13251         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13252         (rs6000_coerce_float_to_double): Remove.
13253         * s390-tdep.c (s390_gdbarch_init): Likewise.
13254         * sh-tdep.c (sh_gdbarch_init): Likewise.
13255         (sh_coerce_float_to_double): Remove.
13256         * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13257         (sparc_coerce_float_to_double): Remove.
13258         * v850-tdep.c (v850_gdbarch_init): Likewise.
13259         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13260         * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13261         * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13262         (hppa_coerce_float_to_double): Remove prototype.
13263         * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13264
13265 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13266
13267         * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13268
13269 2003-01-04  Daniel Jacobowitz  <drow@mvista.com>
13270
13271         Suggested by Stewart Brown <sb24@avaya.com>:
13272         * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13273         in recursive calls.  Handle TYPE_CODE_TYPEDEF.
13274         (c_type_print_varspec_suffix): Likewise.
13275
13276 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
13277
13278         * configure.in: Don't set and AC_SUBST SUBDIRS.
13279         * configure: Regenerated.
13280
13281         * configure.in: Remove code dealing with shared libraries.
13282         * Makefile.in: Remove HLDFLAGS and HLDENV.
13283         * configure: Regenerated.
13284
13285 2003-01-04  Andrew Cagney  <ac131313@redhat.com>
13286
13287         * frame.c (deprecated_frame_xmalloc): New function.
13288         (deprecated_set_frame_saved_regs_hack): New function.
13289         (deprecated_set_frame_extra_info_hack): New function.
13290         * frame.h (deprecated_frame_xmalloc): Declare.
13291         (deprecated_set_frame_saved_regs_hack): Declare.
13292         (deprecated_set_frame_extra_info_hack): Declare.
13293
13294 2003-01-04  Mark Kettenis  <kettenis@gnu.org>
13295
13296         * configure.in: Move code that provides the --enable-gdbtk option
13297         right after the code that handles the --enable-tui option, and
13298         polish it somewhat.
13299         * configure: Regenerated.
13300
13301         * configure.in: Call AC_GNU_SOURCE.  Check for pread64 using
13302         AC_CHECK_FUNCS and remove the old check for pread64.
13303         * acinclude.m4 (AC_GNU_SOURCE): New macro.
13304         * acconfig.h (_GNU_SOURCE): Add.
13305         (HAVE_PREAD64): Remove.
13306         * configure, aclocal.m4, config.in: Regenerated.
13307
13308 2003-01-03  Andrew Cagney  <ac131313@redhat.com>
13309
13310         * alpha-tdep.c: Use get_frame_saved_regs.
13311         * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13312         * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13313         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13314         * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13315         * vax-tdep.c, xstormy16-tdep.c: Ditto.
13316
13317 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
13318
13319         * configure.in: Remove all use of the SUBDIRS variable; add
13320         directories using the AC_CONFIG_SUBDIRS macro instead.  Polish
13321         code providing the --enable-multi-ice option, and move it right in
13322         front of the code that checks whether gdbserver is supported.
13323         Polish that too.
13324         * configure: Regenerated.
13325         * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13326         @SUBDIRS@.
13327
13328 2003-01-03  Andrew Cagney  <cagney@redhat.com>
13329
13330         * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13331         * avr-tdep.c, cris-tdep.c: Ditto.
13332         * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13333         * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13334
13335 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
13336
13337         * configure.in: Remove --enable-netrom option.
13338         * configure: Regenerated.
13339
13340 2003-01-03  Mark Kettenis  <kettenis@gnu.org>
13341
13342         * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13343         declaration for `struct re_pattern_buffer' instead.
13344         * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13345
13346 2003-01-03  J. Brobecker  <brobecker@gnat.com>
13347
13348         * mdebugread.c (parse_symbol): Count until the stEnd matching
13349         the structure name.
13350
13351 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13352
13353         * configure.in: Remove --with-cpu option.
13354         subscripts.  Remove evil changequotes here.
13355         * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13356         * config.in, configure: Regenerated.
13357
13358         * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13359         * configure.in: Cleanup section that sources GDB and BFD configure
13360         subscripts.  Remove evil changequotes here.
13361         * config.in, configure: Regenerated.
13362
13363 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
13364
13365         * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13366         frame accessor methods.
13367         * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13368         * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13369         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13370         * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13371         * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13372         * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13373         * z8k-tdep.c: Ditto.
13374
13375 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13376
13377         * configure.in: Remove UI_OUT configuration code.
13378         * ada-lang.c: Update assuming UI_OUT is always true.
13379         * Makefile.in (UIOUT_CFLAGS): Remove.
13380         * configure: Regenerated.
13381         * TODO: Remove blurb about elimination of -DUI_OUT.
13382
13383         * configure.in: Move code that provides the --enable-gdbcli,
13384         --enable-gdbmi options right before the code that handles the
13385         --enable-tui option.  Polish a bit.
13386         * configure: Regenerated.
13387
13388         * configure.in: Rewrite check for GNU regex and the
13389         --without-included regex option, and move it into the "Checks for
13390         library functions" section.  This makes us use the system regex
13391         again by default on systems with version 2 of the GNU C library.
13392         This was apparently broken.
13393         * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13394         * acconfig.h (USE_INCLUDED_REGEX): Remove.
13395         * config.in, configure: Regenerated.
13396
13397         * configure.in: Move code that provides the --enable-tui option
13398         before the "Checks for libraries" section.  Polish the code
13399         somewhat and set need_curses to yes if we build the TUI.  Rewrite
13400         code that looks for a library providing termcap functionality to
13401         match more closely what's done in the Readline library, and move
13402         it into to the "Checks for libraries" section.
13403         * configure: Regenerated.
13404         * Makefile.in (TERMCAP): Remove variable.
13405         * config/i386/go32.mh (TERMCAP): Remove variable.
13406
13407 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
13408
13409         * MAINTAINERS: Mention gdb_mbuild.sh.
13410         * gdb_mbuild.sh: Rewrite.
13411
13412 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13413
13414         * configure.in: Fix typo in last change.
13415         * config.in, configure: Regenerated.
13416
13417 2003-01-02  Andrew Cagney  <ac131313@redhat.com>
13418
13419         * valarith.c (value_binop): Delete obsolete code and comments.
13420         * configure.host: Ditto.
13421         * buildsym.h (make_blockvector): Ditto.
13422         * buildsym.c (make_blockvector): Ditto.
13423         * defs.h (enum language): Ditto.
13424         (chill_demangle): Ditto.
13425         * elfread.c (elf_symtab_read): Ditto.
13426         * dwarfread.c (CHILL_PRODUCER): Ditto.
13427         (set_cu_language): Ditto.
13428         (handle_producer): Ditto.
13429         * expprint.c (print_subexp): Ditto.
13430         * gdbtypes.c (chill_varying_type): Ditto.
13431         * gdbtypes.h (builtin_type_chill_bool): Ditto.
13432         (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13433         (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13434         (chill_varying_type): Ditto.
13435         * language.h (_LANG_chill): Ditto.
13436         * language.c (binop_result_type, integral_type): Ditto.
13437         (character_type, string_type, structured_type): Ditto.
13438         (lang_bool_type, binop_type_check): Ditto.
13439         * stabsread.h (os9k_stabs): Ditto.
13440         * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13441         (define_symbol, read_type, read_struct_fields): Ditto.
13442         (read_array_type, read_enum_type, read_huge_number): Ditto.
13443         (read_range_type, start_stabs): Ditto.
13444         * symfile.c (init_filename_language_table): Ditto.
13445         (add_psymbol_with_dem_name_to_list): Ditto.
13446         * symtab.c (symbol_init_language_specific): Ditto.
13447         (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13448         * symtab.h (struct general_symbol_info): Ditto.
13449         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13450         * typeprint.c (typedef_print): Ditto.
13451         * utils.c (fprintf_symbol_filtered): Ditto.
13452         * valops.c (value_cast, search_struct_field, value_slice): Delete
13453         obsolete code.
13454         (varying_to_slice): Delete function.
13455         * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13456         (varying_to_slice): Delete declaration.
13457         * MAINTAINERS: Update.
13458
13459 2003-01-02  Mark Kettenis  <kettenis@gnu.org>
13460
13461         * configure.in: Reorganize "Checks for library functions section"
13462         a bit.  Remove check for `btowc' and `isascii' functions.
13463         * configure: Regenerated.
13464
13465         * acconfig.h (_MSE_INT_H): Remove.
13466         * configure.in: Create "Checks for header files" section, and move
13467         appropriate tests there.  Don't check for objlist.h, wchar.h,
13468         wctype.h and asm/debugreg.h.  Rewrite Solaris 2.[78] <curses.h>
13469         misdetection fix.  Also add "Checks for types", "Checks for
13470         compiler characteristics" and "Checks for library functions"
13471         sections.
13472         * config.in, configure: Regenerated.
13473
13474         * configure.in: Create "Checks for programs" section, and move
13475         appropriate tests there.
13476
13477 2003-01-01  Mark Kettenis  <kettenis@gnu.org>
13478
13479         * configure.in: Create "Checks for libraries" section, and move
13480         appropriate tests there.  Cleanup check for wctype in libw.  Use
13481         AC_SEARCH_LIBS to see whether we need libsocket.
13482         * configure: Regenerated.
13483
13484 For older changes see ChangeLog-2002
13485 \f
13486 Local Variables:
13487 mode: change-log
13488 left-margin: 8
13489 fill-column: 74
13490 version-control: never
13491 End: