fd9b2576736fe1b45ea5ca121711f959eeaa2c91
[binutils-gdb.git] / gdb / ChangeLog
1 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
2
3 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
4 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
5 * symtab.h (lookup_minimal_symbol_text): Update.
6 * breakpoint.c (create_overlay_event_breakpoint,
7 create_longjmp_breakpoint): Update callers.
8 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
9 * symtab.c (find_pc_sect_line): Ditto.
10
11 2003-10-21 Andrew Cagney <cagney@redhat.com>
12
13 * target.c (errno): Delete extern declaration.
14
15 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
16
17 * ia64-tdep.c: Change all occurrences of
18 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
19 (ia64_frame_prev_register): Minor whitespace change.
20
21 2003-10-20 Michael Chastain <mec@shout.net>
22
23 * config/djgpp/fnchange.lst: Add lines for:
24 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
25 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
26 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
27 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
28 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
29 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
30 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
31
32 2003-10-20 Andrew Cagney <cagney@redhat.com>
33
34 * values.c (register_value_being_returned): Update comments. Use
35 "gdbarch_return_value" when available.
36 (using_struct_return): Ditto.
37 (set_return_value): Ditto. Use "gdbarch_return_value" when
38 available.. Print a warning, and not an error, when an unhandled
39 return type is encountered.
40 * infcmd.c: Include "gdb_assert.h".
41 (print_return_value): When gdbarch_return_value_p, and using
42 struct return, assume that the value is not available.
43 * defs.h (return_value_convention): Define.
44 * gdbarch.sh (gdbarch_return_value): New predicate method.
45 * gdbarch.h, gdbarch.c: Re-generate
46 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
47
48 2003-10-20 Andrew Cagney <cagney@redhat.com>
49
50 * symtab.c: Replace "struct sec" with "struct bfd_section".
51 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
52
53 2003-10-19 Michael Chastain <mec@shout.net>
54
55 * config/djgpp/fnchange.lst: Add lines for:
56 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
57 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
58 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
59
60 2003-10-19 Mark Kettenis <kettenis@gnu.org>
61
62 * amd64fbsd-nat.c (fetch_inferior_registers,
63 store_inferior_registers): Remove functions.
64 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
65
66 2003-10-18 Mark Kettenis <kettenis@gnu.org>
67
68 Add NetBSD/amd64 native configuration:
69 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
70 * amd64nbsd-tdep.c: New file.
71 * amd64nbsd-nat.c: New file.
72 * amd64bsd-nat.c: New file.
73 * config/i386/nbsd64.mh: New file.
74 * config/i386/nbsd64.mt: New file.
75 * configure.host: Add x86_64-*-netbsd*.
76 * configure.tgt: Add x86_64-*-netbsd*.
77 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
78 New targets.
79 * NEWS (New native configurations): Mention NetBSD/amd64.
80
81 2003-10-17 Michael Chastain <mec@shout.net>
82
83 * config/djgpp/fnchange.lst: Remove dead lines for:
84 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
85 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
86 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
87 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
88 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
89 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
90 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
91 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
92 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
93 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
94 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
95 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
96 gdb/config/sparc/tm-sparclite.h,
97 gdb/gdbtk/generic/ChangeLog-2001,
98 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
99 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
100 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
101 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
102 gdb/testsuite/gdb.mi/mi0-var-block.exp,
103 gdb/testsuite/gdb.mi/mi0-var-child.exp,
104 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
105 gdb/testsuite/gdb.mi/mi0-var-display.exp,
106 itcl/iwidgets3.0.0/demos/extfileselectionbox,
107 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
108 itcl/iwidgets3.0.0/demos/fileselectionbox,
109 itcl/iwidgets3.0.0/demos/fileselectiondialog,
110 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
111 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
112 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
113 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
114 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
115 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
116 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
117 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
118 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
119 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
120 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
121 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
122 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
123 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
124 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
125 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
126 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
127 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
128 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
129 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
130 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
131 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
132 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
133 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
134 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
135 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
136 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
137 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
138 itcl/iwidgets3.0.0/demos/html/shell.n.html,
139 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
140 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
141 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
142 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
143 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
144 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
145 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
146 itcl/iwidgets3.0.0/demos/scrolledcanvas,
147 itcl/iwidgets3.0.0/demos/scrolledframe,
148 itcl/iwidgets3.0.0/demos/scrolledhtml,
149 itcl/iwidgets3.0.0/demos/scrolledlistbox,
150 itcl/iwidgets3.0.0/demos/scrolledtext,
151 itcl/iwidgets3.0.0/demos/selectionbox,
152 itcl/iwidgets3.0.0/demos/selectiondialog,
153 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
154 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
155 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
156 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
157 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
158 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
159 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
160 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
161 itcl/iwidgets3.0.0/doc/scrolledframe.n,
162 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
163 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
164 itcl/iwidgets3.0.0/doc/scrolledtext.n,
165 itcl/iwidgets3.0.0/doc/selectionbox.n,
166 itcl/iwidgets3.0.0/doc/selectiondialog.n,
167 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
168 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
169 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
170 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
171 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
172 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
173 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
174 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
175 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
176 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
177 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
178 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
179 itcl/iwidgets3.0.0/generic/selectionbox.itk,
180 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
181 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
182 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
183 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
184 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
185 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
186 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
187 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
188 itcl/iwidgets3.0.0/tests/scrolledframe.test,
189 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
190 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
191 itcl/iwidgets3.0.0/tests/scrolledtext.test,
192 itcl/iwidgets3.0.0/tests/selectionbox.test,
193 itcl/iwidgets3.0.0/tests/selectiondialog.test,
194 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
195 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
196 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
197 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
198 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
199 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
200 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
201 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
202 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
203 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
204 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
205 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
206 tk/mac/tkMacProjects.sit.hqx.
207
208 2003-10-17 Andrew Cagney <cagney@redhat.com>
209
210 * target.c (target_section_by_addr): New function.
211 (do_xfer_memory): Use "target_section_by_addr".
212 * target.h (target_section_by_addr): Declare.
213
214 * target.h (struct target_ops): Add "to_read_partial" and
215 "to_write_partial", delete "to_query".
216 (target_read_partial, target_write_partial): Declare.
217 (target_read, target_write): Declare.
218 (target_query): Delete macro.
219 * target.c (target_read_partial): New function.
220 (target_write_partial, target_read, target_write): New function.
221 (update_current_target): Delete inheritance of "to_query". Add
222 comments about "to_read_partial" and "to_write_partial".
223 (debug_to_partial_read, debug_to_partial_write): New functions.
224 (debug_to_query): Delete function.
225 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
226 instead of "to_query".
227 * remote.c (remote_read_partial): Replace "remote_query".
228 (init_remote_ops): Set "to_read_partial" instead of "to_query".
229 (init_remote_async_ops): Ditto.
230 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
231 "target_read_partial" instead of "target_query".
232 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
233 Use "target_read_partial" instead of "target_query".
234
235 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
236
237 * frame.h (struct frame_id): Add new field: special_addr.
238 (frame_id_build_special): New prototype.
239 * frame.c (frame_id_build_special): New function.
240 (frame_id_build): Change to call frame_id_build_special().
241 (frame_id_eq): Change to also test special_addr field.
242 (frame_id_inner): Update comment.
243
244 2003-10-17 Andrew Cagney <cagney@redhat.com>
245
246 * target.c (update_current_target): Perform the target cleanup.
247 Put the target stack beneath the squashed "current_target".
248 (add_target): Delete disabled call to "cleanup_target".
249 (cleanup_target): Delete function.
250 (push_target, unpush_target): Do not call "cleanup_target".
251
252 2003-10-17 Andrew Cagney <cagney@redhat.com>
253
254 * target.c (target_stack): Change to a static target_ops.
255 (update_current_target): Walk the "struct target_ops" stack.
256 (pop_target, do_xfer_memory, target_info): Ditto.
257 (find_target_beneath): Ditto.
258 (push_target): Rewrite to use the "struct target_ops" stack.
259 (unpush_target): Ditto.
260 * target.h (struct target_stack_item): Delete definition.
261 (target_stack): Delete declaration.
262 (struct target_ops): Add field "beneath".
263
264 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
265
266 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
267 declaration.
268 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
269 (h8300_examine_prologue): Use h8300_normal_mode flag
270 (h8300_gdbarch_init): Set architecture info for normal mode
271
272 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
273
274 * remote.c (remote_protocol_vcont): New variable.
275 (set_remote_protocol_vcont_packet_cmd): New function.
276 (show_remote_protocol_vcont_packet_cmd): New function.
277 (init_all_packet_configs): Handle remote_protocol_vcont.
278 (remote_vcont_probe): New function.
279 (remote_vcont_resume): New function.
280 (remote_resume): Use it.
281 (remote_async_resume): Call remote_resume.
282 (_initialize_remote): Add verbose-resume packet commands.
283
284 2003-10-16 Andrew Cagney <cagney@redhat.com>
285
286 * infrun.c (handle_inferior_event): Add comment about
287 "frame_id_inner" being too weak.
288
289 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
290
291 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
292 second parameter, which is always null. Remove
293 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
294 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
295 accordingly.
296 * somsolib.c (som_solib_create_inferior_hook,
297 som_solib_desire_dynamic_linker_symbols): Update callers.
298 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
299
300 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
301
302 * remote-m32r-sdi.c : New file, interface to m32r on-chip
303 debug interface, SDI (Scalable Debug Interface).
304 * NEWS: Mention m32r SDI protocol was supported.
305 * Makefile.in (remote-m32r-sdi.o): Add build rule.
306 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
307
308 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
309
310 * ia64-linux-tdep.c: Include gdbcore.h.
311 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
312 (ia64_linux_sigcontext_register_addr): Find the address of the
313 sigcontext area stored in the sigframe instead of using
314 a magic offset constant.
315
316 2003-10-15 Andrew Cagney <cagney@redhat.com>
317
318 * remote.c (remote_search): Delete function.
319 * target.h (target_search): Delete disabled macro.
320 (struct target_ops): Delete disabled field "to_search".
321
322 2003-10-14 Kevin Buettner <kevinb@redhat.com>
323
324 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
325 instead of deprecated_inside_entry_file().
326
327 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
328
329 * sh-tdep.c: Fix copy/paste hangover in comment.
330 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
331 mode.
332 (sh3e_sh4_extract_return_value): Ditto.
333
334 2003-10-13 Richard Henderson <rth@redhat.com>
335
336 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
337 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
338 match c_val_print a bit closer.
339
340 2003-10-13 Kevin Buettner <kevinb@redhat.com>
341
342 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
343 (frv_gdbarch_adjust_breakpoint_address): New function.
344 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
345 method.
346
347 2003-10-13 Kevin Buettner <kevinb@redhat.com>
348
349 * breakpoint.h (struct breakpoint): Add new member
350 ``requested_address''.
351 * breakpoint.c (breakpoint_adjustment_warning)
352 (adjust_breakpoint_address): New static functions.
353 (print_it_typical): Issue warning if breakpoint's address is different
354 from its requested address.
355 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
356 (breakpoint_re_set_one): Set breakpoint's
357 ``requested_address'' field. Set ``address'' field to the
358 result of calling adjust_breakpoint_address() on the requested
359 address.
360
361 2003-10-13 Kevin Buettner <kevinb@redhat.com>
362
363 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
364 * gdbarch.h, gdbarch.c: Regenerate.
365
366 2003-10-11 Mark Kettenis <kettenis@gnu.org>
367
368 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
369 TDEP->sc_num_regs.
370
371 * i386fbsd-tdep.c: New file.
372 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
373 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
374 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
375 i386bsd-tdep.c.
376 (_initialize_i386fbsd_tdep): New function.
377 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
378 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
379 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
380 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
381 TDEP->sc_num_regs.
382 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
383 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
384 to initialize TDEP->sc_num_regs.
385 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
386 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
387 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
388 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
389 FreeBSD ELF OS/ABI's here.
390 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
391 (i386fbsd-tdep.o): New target.
392 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
393 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
394
395 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
396 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
397 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
398 in initialization of TDEP->sc_num_regs.
399
400 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
401 (x86_64_init_abi): Initialize regset_from_core_section if
402 appropriate.
403
404 * i386-tdep.c (i386_regset_from_core_section): New function.
405 (i386_gdbarch_init): Initialize regset_from_core_section if
406 appropriate.
407 * i386-tdep.h (i386_regset_from_core_section): New declaration.
408
409 * i386-tdep.h (struct regset): Declare opaque.
410
411 * gdbarch.sh (regset_from_core_section): New method.
412 (struct regset): Declare opaque.
413 * gdbarch.c, gdbarch.h: Regenerated.
414
415 2003-10-11 Alan Modra <amodra@bigpond.net.au>
416
417 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
418 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
419 Correct test for pc within section.
420
421 2003-10-11 Mark Kettenis <kettenis@gnu.org>
422
423 * gdbarch.sh: Remove trailing whitepsace from comments.
424
425 2003-10-08 Roland McGrath <roland@redhat.com>
426
427 * gcore.c (make_mem_sec): Function removed, folded into ...
428 (gcore_create_callback): ... here. To omit a section, clear its
429 SEC_LOAD bit rather than zeroing its size.
430 Omit read-only sections only if they correspond to a known disk file.
431 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
432
433 2003-10-10 Michael Snyder <msnyder@redhat.com>
434
435 * d10v-tdep.c: Fix typo in comment.
436
437 2003-10-10 Andrew Cagney <cagney@redhat.com>
438
439 * rs6000-tdep.c (e500_store_return_value): Delete function.
440 (e500_extract_return_value): Delete function.
441 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
442 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
443 "ppc_sysv_abi_restore_return_value" where applicable.
444 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
445 (ppc_sysv_abi_extract_return_value): Declare.
446 (ppc_sysv_abi_broken_store_return_value): Declare.
447 (ppc_sysv_abi_broken_extract_return_value): Declare.
448 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
449 * ppc-sysv-tdep.c (return_value_convention): Move definition to
450 start of file.
451 (do_ppc_sysv_return_value): New function.
452 (ppc_sysv_abi_extract_return_value): New function.
453 (ppc_sysv_abi_store_return_value): New function.
454 (ppc_sysv_abi_broken_extract_return_value): New function.
455 (ppc_sysv_abi_broken_store_return_value): New function.
456 (ppc_sysv_abi_use_struct_convention): Call
457 do_ppc_sysv_return_value.
458
459 2003-10-10 J. Brobecker <brobecker@gnat.com>
460
461 * blockframe.c (inside_main_func): No longer use symbol_lookup()
462 to lookup the main function symbol.
463
464 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
465
466 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
467 types correctly.
468 (sh_push_dummy_call_fpu): Fix argument passing rules.
469 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
470 float types.
471 (sh3e_sh4_store_return_value): Ditto.
472
473 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
474
475 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
476 comment.
477
478 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
479
480 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
481 more readable code. Accomodate passing of bitfields.
482
483 2003-10-10 Andrew Cagney <cagney@redhat.com>
484
485 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
486 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
487 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
488 * ppc-sysv-tdep.c: Include "gdb_assert.h".
489 (ppc64_sysv_abi_push_dummy_call): New function.
490 (ppc64_sysv_abi_broken_push_dummy_call): New function.
491 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
492 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
493
494 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
495
496 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
497 * README: Ditto.
498 * d10v-tdep.c: Ditto.
499 * h8300-tdep.c: Ditto.
500 * remote-e7000.c: Ditto.
501 * remote-hms.c: Ditto.
502 * ser-e7kpc.c: Ditto.
503 * sh-stub.c: Ditto.
504 * sh-tdep.c: Ditto.
505 * sh-tdep.h: Ditto.
506 * sh3-rom.c: Ditto.
507 * sh64-tdep.c: Ditto.
508 * top.c: Ditto.
509 * wince.c: Ditto.
510 * config/d10v/d10v.mt: Ditto.
511 * config/sh/embed.mt: Ditto.
512 * config/sh/linux.mt: Ditto.
513 * config/sh/tm-linux.h: Ditto.
514 * config/sh/tm-sh.h: Ditto.
515 * config/sh/wince.mt: Ditto.
516
517 2003-10-09 Andrew Cagney <cagney@redhat.com>
518
519 * ppc-tdep.h (struct type): Declare opaque.
520 * x86-64-tdep.h (struct regcache): Declare opaque.
521 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
522 coding style.
523
524 2003-10-09 Andrew Cagney <cagney@redhat.com>
525
526 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
527 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
528 (SOFTWARE_SINGLE_STEP_P): Ditto.
529 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
530 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
531 (SOFTWARE_SINGLE_STEP_P): Ditto.
532 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
533 software_single_step to rs6000_software_single_step.
534
535 2003-10-09 Andrew Cagney <cagney@redhat.com>
536
537 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
538
539 2003-10-09 Michael Snyder <msnyder@redhat.com>
540
541 * frame.h: Fix typo in comment.
542 * dummy-frame.c: Fix typo in comment.
543 * d10v-tdep.c: Random whitespace/comment tweaks.
544
545 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
546
547 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
548 (sh_push_dummy_code): Delete function, it's only used for dummy calls
549 on stack.
550
551 Based on input by Stephen Clarke (stephen.clarke@superh.com):
552 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
553 in detail.
554
555 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
556
557 * remote-mips.c (mips_initialize): Remove unneeded call to
558 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
559
560 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
561
562 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
563 a memory pointer.
564
565 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
566
567 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
568 for any lwp we resume.
569 (running_callback): Add lwps that have pending status events
570 against them to be considered running.
571
572 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
573
574 * m32r-tdep.c : Include "dis-asm.h".
575 * Makefile.in (m32r-tdep.o): Update dependencies.
576
577 2003-10-06 J. Brobecker <brobecker@gnat.com>
578
579 * completer.h (get_gdb_completer_word_break_characters): Delete.
580 * completer.c: include language.h.
581 (gdb_completer_word_break_characters): Delete.
582 (get_gdb_completer_word_break_characters): Delete.
583 (location_completer): Use the word break characters of the current
584 language.
585 (complete_line): Likewise.
586 (line_completion_function): Likewise.
587 (skip_quoted_chars): Likewise.
588 * Makefile.in (completer.o): Add dependency on language.h.
589 * top.c (init_main): Set the readline word break characters
590 to GDB's default word break characters.
591
592 2003-10-06 J. Brobecker <brobecker@gnat.com>
593
594 * language.h (language_defn): new field, la_word_break_characters.
595 * language.c (unknown_language_defn): Set new field to
596 default_word_break_characters.
597 (auto_language_defn): Likewise.
598 (local_language_defn): Likewise.
599 * ada-lang.c (ada_language_defn): Likewise.
600 * c-lang.c (c_language_defn): Likewise.
601 (cplus_language_defn): Likewise.
602 (asm_language_defn): Likewise.
603 (minimal_language_defn): Likewise.
604 * f-lang.c (f_language_defn): Likewise.
605 * jv-lang.c (java_language_defn): Likewise.
606 * m2-lang.c (m2_language_defn): Likewise.
607 * objc-lang.c (objc_language_defn): Likewise.
608 * p-lang.c (pascal_language_defn): Likewise.
609 * scm-lang.c (scm_language_defn): Likewise.
610
611 2003-10-06 Andrew Cagney <cagney@redhat.com>
612
613 * ppc-sysv-tdep.c: Re-indent.
614
615 2003-10-06 J. Brobecker <brobecker@gnat.com>
616
617 * language.h (default_word_break_characters): Add prototype.
618 * language.c (default_word_break_characters): New function.
619
620 2003-10-06 Andreas Schwab <schwab@suse.de>
621
622 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
623 with %eax.
624
625 2003-10-06 Andrew Cagney <cagney@redhat.com>
626
627 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
628 "h8500-tdep.c".
629 (z8k-tdep.o): Delete custom build rule.
630
631 2003-10-06 Andrew Cagney <cagney@redhat.com>
632
633 * Makefile.in: Update all dependencies.
634
635 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
636 No longer list PA as as obsolete candidate. List m32r as
637 broken instead of obsolete.
638
639 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
640 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
641 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
642 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
643 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
644 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
645 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
646 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
647 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
648 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
649 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
650 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
651 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
652 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
653 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
654 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
655 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
656 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
657 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
658 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
659 * config/z8k/z8k.mt: Ditto.
660
661 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
662 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
663 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
664 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
665 sparclite were removed.
666 * configure.host, configure.tgt: Remove corresponding tuples.
667
668 * breakpoint.c, breakpoint.h: Remove obsolete code.
669 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
670 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
671 * stabsread.h, xcoffread.c: Ditto.
672
673 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
674 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
675 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
676 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
677
678 2003-10-06 David Lecomber <dsl@sources.redhat.com>
679
680 * f-valprint.c: Reformatting
681
682 2003-10-06 Mark Kettenis <kettenis@gnu.org>
683
684 * x86-64-tdep.c: Remove duplicate comment.
685
686 * x86-64-tdep.c (x86_64_store_return_value): Don't use
687 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
688 names for return values. This fixes a bug since we looked at %rbx
689 instead of %rdx.
690
691 2003-10-05 Mark Kettenis <kettenis@gnu.org>
692
693 * x86-64-tdep.c: Include "regset.h".
694
695 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
696 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
697 sizeof_fpregset.
698 * i386-tdep.c: Include "regset.h".
699 (i386_supply_gregset): New function.
700 (i386_supply_fpregset): New function.
701 (i386_gdbarch_init): Initialze register set-related members of
702 TDEP.
703 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
704 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
705
706 2003-10-03 Andrew Cagney <cagney@redhat.com>
707
708 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
709 set extract_return_value, store_return_value and
710 use_struct_convention to ppc64_sysv_abi_extract_return_value,
711 ppc64_sysv_abi_store_return_value and
712 ppc64_sysv_abi_use_struct_convention.
713 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
714 (ppc64_sysv_abi_store_return_value): Declare.
715 (ppc64_sysv_abi_use_struct_convention): Declare.
716 * ppc-sysv-tdep.c (enum return_value_convention): Define.
717 (ppc64_sysv_abi_extract_return_value): New function.
718 (ppc64_sysv_abi_store_return_value): New function.
719 (ppc64_sysv_abi_use_struct_convention): New function.
720 (ppc64_sysv_abi_return_value): New function.
721
722 2003-10-03 Andrew Cagney <cagney@redhat.com>
723
724 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
725 convert a descriptor to a function when it's in the ".opd"
726 section.
727
728 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
729
730 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
731 reg_size to keep GCC silent.
732
733 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
734
735 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
736 base for DW_EH_PE_textrel encodings.
737 (read_encoded_value): Add a DW_EH_PE_textrel case.
738 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
739 section.
740
741 2003-10-03 Mark Kettenis <kettenis@gnu.org>
742
743 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
744
745 2003-10-02 Andrew Cagney <cagney@redhat.com>
746
747 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
748 REGISTER_RAW_SIZE.
749 * gdbarch.h, gdbarch.c: Re-generate.
750 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
751 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
752 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
753 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
754 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
755 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
756 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
757 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
758 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
759 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
760 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
761 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
762 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
763 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
764 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
765 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
766
767 2003-10-02 Jim Blandy <jimb@redhat.com>
768
769 * dwarf2read.c (struct die_info): Doc fix.
770
771 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
772
773 * sh-tdep.c: Running thru gdb_indent.sh.
774
775 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
776
777 * sh-tdep.c (sh_justify_value_in_reg): New function.
778 (sh_stack_allocsize): Ditto.
779 (flt_argreg_array): New array used for floating point argument
780 passing.
781 (sh_init_flt_argreg): New function.
782 (sh_next_flt_argreg): Ditto.
783 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
784 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
785 Fix argument passing strategy.
786 (sh_push_dummy_call_nofpu): Ditto.
787
788 2003-10-01 Andrew Cagney <cagney@redhat.com>
789
790 * value.h (register_value_being_returned): Declare. Replace
791 "value_being_returned".
792 * infcall.c (call_function_by_hand): Use
793 register_value_being_returned.
794 * infcmd.c (print_return_value): Call
795 "register_value_being_returned", handle struct return locally.
796 * values.c (register_value_being_returned): New function. Replace
797 "value_being_returned".
798
799 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
800
801 * linux-proc.c (linux_do_registers): New function.
802 (linux_make_note_section): Use linux_do_registers in case of
803 single threaded inferior programs.
804
805 2003-10-01 Andrew Cagney <cagney@redhat.com>
806
807 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
808 use STRUCT_ADDR. When not using "struct return convention", pass
809 "0" to "value_being_returned". Add FIXMEs.
810 * infcmd.c (print_return_value): Pass an explicit 0/1 to
811 value_being_returned. Add comments.
812 * values.c (value_being_returned): Add fixme.
813 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
814 (hppa_value_returned_from_stack): Add FIXME.
815
816 2003-09-30 David Carlton <carlton@kealia.com>
817
818 * dwarf2read.c (struct die_info): Add 'parent' field; replace
819 'has_children' and 'next' by 'child' and 'sibling'.
820 (read_comp_unit): Rework algorithm, breaking body into
821 read_die_and_children and read_die_and_siblings.
822 (read_die_and_children, read_die_and_siblings): New.
823 (read_full_die): Add 'has_children' argument; set it instead of
824 the die's 'has_children' field. Minor formatting cleanup.
825 (free_die_list): Use die->child and die->sibling instead of
826 die->next.
827 (dump_die_list): Ditto.
828 (sibling_die): Use die->sibling.
829 (psymtab_to_symtab_1): Use die's 'child' field in place of its
830 'has_children' and 'next' fields.
831 (process_die, read_file_scope, read_func_scope)
832 (read_lexical_block_scope, read_structure_scope)
833 (read_enumeration, read_array_type, read_common_block)
834 (read_namespace, read_subroutine_type, dump_die): Ditto.
835
836 2003-09-30 Andrew Cagney <cagney@redhat.com>
837
838 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
839 to 224, not 220.
840
841 2003-09-30 Andrew Cagney <cagney@redhat.com>
842
843 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
844 REGISTER_VIRTUAL_SIZE.
845 * gdbarch.h, gdbarch.c: Regenerate.
846 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
847 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
848 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
849
850 2003-09-29 Andrew Cagney <cagney@redhat.com>
851
852 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
853 DEPRECATED_REGISTER_VIRTUAL_TYPE.
854 * gdbarch.h, gdbarch.c: Regenerate.
855 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
856 * sh64-tdep.c, sparc-tdep.c: Update.
857
858 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
859 * remote-vxmips.c (vx_read_register): Ditto.
860 * remote-vx68.c (vx_read_register): Ditto.
861 * gnu-nat.c (inf_validate_procs): Ditto.
862
863 2003-09-29 J. Brobecker <brobecker@gnat.com>
864
865 * infcall.c (call_function_by_hand): Fix build failure
866 introduced in the previous change to this file.
867
868 2003-09-29 Andrew Cagney <cagney@redhat.com>
869
870 * NEWS: Mention Objective-C.
871
872 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
873
874 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
875 test if the register has been saved on the stack.
876 (arm_scan_prologue_cache): When analysing the instruction
877 "str lr, [sp, #-4]", save the address where lr has been stored.
878
879 2003-09-28 Andrew Cagney <cagney@redhat.com>
880
881 * frame.c (frame_read_unsigned_register): Delete function.
882 * frame.h (frame_read_unsigned_register): Delete declaration.
883 * sparc-tdep.c (sparc_init_extra_frame_info): Use
884 get_frame_register_unsigned.
885 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
886 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
887 * d10v-tdep.c (d10v_print_registers_info): Ditto.
888
889 * frame.h (frame_read_register): Delete declaration.
890 * frame.c (frame_read_register): Delete function.
891 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
892 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
893 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
894 * mips-tdep.c (mips_register_to_value): Ditto.
895 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
896 * d10v-tdep.c (d10v_print_registers_info): Ditto.
897
898 * frame.c (frame_read_signed_register): Delete function.
899 (frame_read_unsigned_register): Update comments.
900 * frame.h (frame_read_signed_register): Delete declaration.
901 * h8300-tdep.c (h8300_print_register): Use
902 get_frame_register_signed.
903 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
904
905 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
906 Rename VALUE_RETURNED_FROM_STACK.
907 * infcmd.c (print_return_value): Update.
908 * infcall.c (call_function_by_hand): Update.
909
910 2003-09-28 Mark Kettenis <kettenis@gnu.org>
911
912 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
913 regcache argument and reverse the order of the other two
914 arguments. Remove local regcache variable. Determine
915 architecture from REGCACHE. Update comments.
916 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
917 reverse the order of the other two arguments. Remove local
918 regcache variable. Determine architecture from REGCACHE. Update
919 comments.
920 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
921 prototypes. Update comments.
922 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
923 comment.
924 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
925 Update.
926 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
927 * i386-interix-nat.c (supply_fpregset): Update.
928 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
929 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
930 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
931 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
932 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
933 Update.
934 * i386obsd-tdep.c (fetch_core_registers): Update.
935 * i386v4-nat.c (supply_fpregset): Update.
936 * x86-64-linux-nat.c (supply_fpregset): Update.
937 * x86-64-linux-tdep.c (fetch_core_registers): Update.
938
939 2003-09-27 Mark Kettenis <kettenis@gnu.org>
940
941 * i386-tdep.h: Put opaque declarations in alphabetical
942 order. Remove spurious whitespace.
943 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
944 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
945 * i386-tdep.c (MM0_REGNUM): Remove define.
946 (i386_mmx_regnum_p): Add gdbarch argument.
947 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
948 Rewrite using new macro definitions for FPU/SSE registers.
949 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
950 definitions from i387-tdep.h.
951 (i386_register_name): Update.
952 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
953 new macro definitions for FPU/SSE registers.
954 (i386_extract_return_value): Determine whether floating-point
955 registers are present by examining REGCACHE's architecture.
956 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
957 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
958 FPU/SSE registers.
959 (i386_register_type): Update.
960 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
961 definitions for FPU registers. Use REGCACHE's architecture to
962 determine the appropriate register numbers.
963 (i386_pseudo_register_read, i386_pseudo_register_write,
964 i386_register_reggroup_p): Update.
965 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
966 TDEP->mm0_regnum.
967 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
968 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
969 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
970 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
971 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
972 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
973 *' to `void *'.
974 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
975 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
976 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
977 definitions for FPU/SSE registers.
978 (FXSAVE_MXCSR_ADDR): New define.
979 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
980 TDEP->mm0_regnum.
981 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
982 (I387_ST0_REGNUM): Define.
983
984 * regcache.h (get_regcache_arch): New prototype.
985 * regcache.c (get_regcache_arch): New function.
986
987 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
988 whitespace.
989
990 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
991 Initialize using ARRAY_SIZE.
992
993 2003-09-27 Andrew Cagney <cagney@redhat.com>
994
995 * arch-utils.c (deprecated_init_frame_pc_default): Rename
996 "init_frame_pc_default".
997 * arch-utils.h (deprecated_init_frame_pc_default): Update.
998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
999 * vax-tdep.c (vax_gdbarch_init): Update.
1000 * v850-tdep.c (v850_gdbarch_init): Update.
1001 * sh64-tdep.c (sh64_gdbarch_init): Update.
1002 * s390-tdep.c (s390_gdbarch_init): Update.
1003 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1004 * mcore-tdep.c (mcore_gdbarch_init): Update.
1005 * h8300-tdep.c (h8300_gdbarch_init): Update.
1006 * cris-tdep.c (cris_gdbarch_init): Update.
1007 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
1008
1009 2003-09-26 Mark Kettenis <kettenis@gnu.org>
1010
1011 * regset.h: New file.
1012 * Makefile.in (regset_h): Add.
1013
1014 2003-09-25 Andrew Cagney <cagney@redhat.com>
1015
1016 * frame.h (deprecated_frame_saved_regs): Rename
1017 get_frame_saved_regs.
1018 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1019 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1020 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1021 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1022 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1023
1024 2003-09-25 Andrew Cagney <cagney@redhat.com>
1025
1026 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1027 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1028 and Java.
1029 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1030 arm*-*-* do not use the new frame code.
1031
1032 2003-09-25 David Carlton <carlton@kealia.com>
1033
1034 * c-exp.y: Remove 'register' declarations.
1035 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1036
1037 2003-09-25 David Carlton <carlton@kealia.com>
1038
1039 * c-exp.y: Include cp-support.h. Add qualified_type.
1040 (yylex): Delete nested type hack; add comments.
1041 * cp-namespace.c (cp_lookup_nested_type): New function.
1042 * cp-support.h: Declare cp_lookup_nested_type.
1043 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1044 instead of value_struct_elt_for_reference.
1045 * valops.c: Include cp-support.h.
1046 (value_aggregate_elt): New function.
1047 (value_namespace_elt): Ditto.
1048 (value_struct_elt_for_reference): Make static.
1049 * value.h: Delete declaration of value_struct_elt_for_reference;
1050 add declaration for value_aggregate_elt.
1051 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1052 (valops.o): Ditto.
1053
1054 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1055
1056 * stack.c: Include "reggroups.h".
1057 (frame_info): Only display registers in all_reggroup.
1058 * Makefile.in (stack.o): Update dependencies.
1059
1060 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1061
1062 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1063 "add ip, sp #n" in the prologue.
1064 (arm_scan_prologue): Ditto.
1065
1066 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1067
1068 * MAINTAINERS (write after approval): Add myself.
1069
1070 2003-09-25 Andreas Schwab <schwab@suse.de>
1071
1072 * m68k-tdep.c: Include "dwarf2-frame.h".
1073 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1074 * Makefile.in (m68k-tdep.o): Update dependencies.
1075
1076 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1077
1078 * sh-tdep.c (struct frame_extra_info): Remove.
1079 (struct sh_frame_cache): New structure.
1080 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1081 (GET_TARGET_REG): Ditto but target register.
1082 (GET_PUSHED_REG): Remove.
1083 (IS_MOV_ARG_TO_REG): New macro.
1084 (IS_MOV_ARG_TO_IND_R14): New macro.
1085 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1086 (IS_MOVW_PCREL_TO_REG): New macro.
1087 (IS_MOVL_PCREL_TO_REG): New macro.
1088 (IS_SUB_REG_FROM_SP): New macro.
1089 (IS_ARG_MOV): Remove.
1090 (IS_MOV_TO_R14): Remove.
1091 (IS_RESTORE_FP): New macro.
1092 (IS_RTS): New macro.
1093 (IS_LDS): New macro.
1094 (IS_MOV_FP_SP): New macro.
1095 (IS_ADD_REG_TO_FP): New macro.
1096 (IS_ADD_IMM_FP): New macro.
1097 (sh_skip_prologue_hard_way): Remove.
1098 (sh_saved_pc_after_call): Remove.
1099 (sh_frame_chain): Remove.
1100 (sh_find_callers_reg): Remove.
1101 (sh_nofp_frame_init_saved_regs): Remove.
1102 (sh_fp_frame_init_saved_regs): Remove.
1103 (sh_init_extra_frame_info): Remove.
1104 (sh_analyze_prologue): New function.
1105 (sh_skip_prologue): Remove deprecated code. Rely on new function
1106 sh_analyze_prologue when after_prologue fails.
1107 (sh_frame_saved_pc): Remove.
1108 (sh_alloc_frame_cache): New function.
1109 (sh_frame_cache): Ditto.
1110 (sh_frame_prev_register): Ditto.
1111 (sh_frame_this_id): Ditto.
1112 (sh_frame_unwind): New structure defining the heuristic frame
1113 sniffer interface.
1114 (sh_frame_sniffer): New function.
1115 (sh_unwind_sp): Ditto.
1116 (sh_unwind_pc): Ditto.
1117 (sh_unwind_dummy_id): Ditto.
1118 (sh_frame_base_address): Ditto.
1119 (sh_frame_base): New structure defining new frame base code.
1120 (sh_in_function_epilogue_p): New function.
1121 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1122 code and to call all new code instead. Initialize dwarf2 and
1123 heuristic frame sniffer.
1124
1125 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1126
1127 * parser-defs.h (struct exp_descriptor): New definition, containing
1128 language-specific info for printing, prefixifying, dumping, and
1129 evaluating expressions.
1130 (exp_descriptor_standard): Declare new variable.
1131 (print_subexp): Make global and declare here (from expprint.c).
1132 (dump_subexp): Ditto.
1133 (dump_subexp_body_standard): Declare.
1134 (operator_length_standard): Declare.
1135 (op_name_standard): Declare.
1136 (print_subexp): Declare.
1137 (print_subexp_standard): Declare.
1138
1139 * language.h (struct language_defn): Add la_exp_desc field to hold
1140 pointer to table for language-specific operators.
1141 Remove evaluate_exp field, which is now in struct exp_descriptor.
1142
1143 * parse.c (operator_length): Move most code to new
1144 operator_length_standard function. Use language-specific information.
1145 (operator_length_standard): New function taking most code from
1146 operator_length.
1147 (exp_descriptor_standard): New constant.
1148
1149 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1150 and OP_EXTENDED_LAST.
1151
1152 * expprint.c (print_subexp): Use language-specific print_subexp.
1153 Make global; remove static declaration.
1154 Move most code to print_subexp_standard.
1155 (print_subexp_standard): New function, containing code formerly in
1156 print_subexp.
1157 (op_name): Add expression to argument signature.
1158 Use langauge-specific op_name.
1159 Move most code to op_name_standard.
1160 (op_name_standard): New function, containing code formerly in op_name.
1161 (dump_subexp): Use new version of op_name function.
1162 Use language-specific dump_subexp_body, and move most existing code to
1163 dump_subexp_body_standard.
1164 (dump_raw_expression): Use new op_name interface.
1165 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1166 (dump_subexp_body_standard): New function, containing code formerly
1167 in dump_subexp_body.
1168
1169 * language.c (unknown_language): Add default la_exp_desc field and
1170 remove evaluate_exp field.
1171 (auto_language): Ditto.
1172 (local_language): Ditto.
1173 * f-lang.c (f_language_defn): Ditto.
1174 * c-lang.c (c_language_defn): Ditto.
1175 (cplus_language_defn): Ditto.
1176 (asm_language_defn): Ditto.
1177 (minimal_language_defn): Ditto.
1178 * p-lang.c (pascal_language_defn): Ditto.
1179 * m2-lang.c (m2_language_defn): Ditto.
1180 * objc-lang.c (objc_language_defn): Ditto.
1181
1182 * jv-lang.c (exp_descriptor_java): New variable, containing
1183 Java-specific expression evaluator.
1184 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1185 field.
1186 * scm-lang.c (exp_descriptor_scm): New variable, containing
1187 Scheme-specific expression evaluator.
1188 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1189 field.
1190 * objc-lang.c (print_object_command): Take evaluate_exp from the
1191 la_exp_desc field.
1192
1193 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1194
1195 * eval.c: Include parser-defs.h for the full declaration of
1196 la_exp_desc's type.
1197 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1198
1199 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1200
1201 * parser-defs.h (operator_length): Declare.
1202
1203 * parse.c (length_of_subexp): Use operator_length to get operator
1204 lengths and arities for operators.
1205 Move most code to new operator_length function.
1206 (operator_length): New function absorbing most code from
1207 length_of_subexp.
1208 (prefixify_subexp): Remove large case and use operator_length instead.
1209 (parse_exp_1): Use renamings:
1210 dump_prefix_expression => dump_raw_expression and
1211 dump_postfix_expression => dump_prefix_expression.
1212
1213 * expression.h (dump_prefix_expression): Rename to ...
1214 (dump_raw_expression): New name.
1215 (dump_postfix_expression): Rename to ...
1216 (dump_prefix_expression): New name.
1217
1218 * expprint.c (dump_subexp): Make global. Add comment.
1219 Move most existing code to dump_subexp_body.
1220 (dump_subexp_body): New function.
1221 (dump_prefix_expression): Rename to dump_raw_expression.
1222 Remove attempt to print the expression via print_expression: it can't
1223 work before the expression is prefixified.
1224 (dump_raw_expression): Renamed from dump_prefix_expression.
1225 (dump_postfix_expression): Rename to dump_prefix_expression, since
1226 that's what it does.
1227 Remove 'note' parameter, since this routine must be used on
1228 prefixified expression.
1229 (dump_prefix_expression): Renamed from dump_postfix_expression.
1230
1231 2003-09-22 Jim Blandy <jimb@redhat.com>
1232
1233 * dwarf2read.c (read_array_type): When building the type for an
1234 array of unspecified length, make sure to choose the upper bound
1235 so that the array's total length comes out to be zero --- that's
1236 how we represent such arrays.
1237
1238 2003-09-22 Michael Chastain <mec@shout.net>
1239
1240 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1241
1242 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1243
1244 * top.c (quit_force): Fix indirect call to quit_target so
1245 a struct qt_args pointer is passed.
1246
1247 2003-09-22 Andrew Cagney <cagney@redhat.com>
1248
1249 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1250 * arch-utils.c (init_frame_pc_noop): Delete function.
1251 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1252 "init_frame_pc".
1253 * mips-tdep.c (mips_gdbarch_init): Ditto.
1254 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1255 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1256 declaration.
1257 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1258 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1259 declaration.
1260 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1261
1262 2003-09-22 Anthony Green <green@redhat.com>
1263
1264 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1265 declaration.
1266
1267 2003-09-20 Andrew Cagney <cagney@redhat.com>
1268
1269 * breakpoint.c: Eliminate ARGSUSED.
1270 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1271 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1272 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1273 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1274 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1275 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1276 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1277 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1278 * wince.c, remote-vx.c: Ditto.
1279
1280 * cli/cli-script.c: Remove "register" attributes.
1281 * config/pa/tm-hppa.h: Ditto.
1282 * cli/cli-decode.c: Ditto.
1283 * cli/cli-cmds.c: Ditto.
1284
1285 2003-09-19 Andrew Cagney <cagney@redhat.com>
1286
1287 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1288 DEPRECATED_NPC_REGNUM.
1289 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1290
1291 2003-09-19 Christopher Faylor <cgf@redhat.com>
1292
1293 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1294
1295 2003-09-19 Jim Blandy <jimb@redhat.com>
1296
1297 * macrotab.c (macro_include): Use the correct comparison to find
1298 the appropriate place for this inclusion in the list.
1299
1300 2003-09-19 Andrew Cagney <cagney@redhat.com>
1301
1302 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1303 (DEPRECATED_HPUX_TEXT_END): Define.
1304 (deprecated_hpux_text_end): Declare.
1305 (struct target_ops): Declare opaque.
1306 * hppah-nat.c (text_end): Make static.
1307 (deprecated_hpux_text_end): New function.
1308 * exec.c (text_end): Delete global variable.
1309 (NEED_TEXT_START_END): Do not define.
1310 (exec_file_attach): Replace code computing "text_end" code with
1311 call to DEPRECATED_HPUX_TEXT_END.
1312
1313 2003-09-19 Andrew Cagney <cagney@redhat.com>
1314
1315 * utils.c (align_up, align_down): New functions.
1316 * defs.h (align_up, align_down): Declare.
1317 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1318 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1319 and "align_down".
1320 (round_up, round_down): Delete functions.
1321 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1322 "align_down".
1323 (ROUND_DOWN, ROUND_UP): Delete macros.
1324 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1325 * h8300-tdep.c: Replace "round_up" and "round_down" with
1326 "align_up" and "align_down".
1327 (round_up, round_down): Delete macros.
1328 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1329 "align_down".
1330 (ROUND_UP, ROUND_DOWN): Delete macros.
1331
1332 2003-09-18 J. Brobecker <brobecker@gnat.com>
1333
1334 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1335 hard-coded constant. Use the proper machine name instead.
1336
1337 2003-09-17 Andrew Cagney <cagney@redhat.com>
1338
1339 * sparc-tdep.c (legacy_register_name): Delete function.
1340 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1341 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1342 * infcmd.c (gdb_register_name): Delete variable.
1343 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1344 REGISTER_NAME and "tm.h".
1345 * gdbarch.h, gdbarch.c: Regenerate.
1346 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1347 REGISTER_NAMES in comments.
1348 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1349 * m68klinux-nat.c (regmap): Ditto.
1350
1351 2003-09-17 Jim Blandy <jimb@redhat.com>
1352
1353 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1354
1355 2003-09-17 Andrew Cagney <cagney@redhat.com>
1356
1357 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1358 (ppcnbsd_init_abi): Set "use_struct_convention" to
1359 "ppcnbsd_use_struct_convention".
1360
1361 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1362
1363 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1364 * gdbarch.h, gdbarch.c: Regenerate.
1365 (stabs_argument_has_addr): New architecture method.
1366 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1367 * arch-utils.c: Include "buildsym.h".
1368 (default_stabs_argument_has_addr): New function.
1369 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1370 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1371
1372 2003-09-17 Andrew Cagney <cagney@redhat.com>
1373
1374 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1375 * gdbarch.h, gdbarch.c: Regenerate.
1376 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1377 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1378 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1379 * sparcnbsd-tdep.c: Update.
1380
1381 2003-09-17 Andrew Cagney <cagney@redhat.com>
1382
1383 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1384 * gdbarch.h, gdbarch.c: Regenerate.
1385 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1386 * d10v-tdep.c, frame.c: Update.
1387 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1388 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1389 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1390 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1391 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1392 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1393 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1394 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1395 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1396 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1397 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1398 * config/pa/nm-hppah.h: Update.
1399
1400 2003-09-16 Andrew Cagney <cagney@redhat.com>
1401
1402 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1403 "use_struct_convention" to "ppc_linux_use_struct_convention".
1404 (ppc_linux_use_struct_convention): New function.
1405 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1406 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1407 "rs6000_use_struct_convention".
1408 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1409 declaration.
1410 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1411 Delete function.
1412
1413 2003-09-16 Andrew Cagney <cagney@redhat.com>
1414
1415 * buildsym.c: Remove more occurances of "register".
1416 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1417 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1418 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1419 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1420 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1421 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1422 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1423 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1424
1425 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1426
1427 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1428 numbers to enumeration values.
1429 * sh-tdep.c: Accomodate above change.
1430 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1431 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1432 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1433 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1434 (IS_FPUSH): Rename from IS_FMOV.
1435 (sh_extract_struct_value_address): Remove useless comment.
1436 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1437 instead of own local values.
1438 (sh_dump_tdep): Remove.
1439 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1440 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1441
1442 2003-09-15 Andrew Cagney <cagney@redhat.com>
1443
1444 * doublest.c (convert_floatformat_to_doublest): No longer need to
1445 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1446
1447 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1448
1449 * values.c (unpack_double): Call floatformat_is_valid.
1450
1451 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1452
1453 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1454 ps_strings into a long.
1455
1456 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1457 _initialize_am64fbsd_nat.
1458
1459 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1460
1461 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1462 associated with DW_AT_ranges attribute is out of bounds.
1463
1464 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1465
1466 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1467
1468 2003-09-14 Michael Chastain <mec@shout.net>
1469
1470 * config/m68k/nm-apollo68v.h: Delete.
1471 * config/m68k/xm-apollo68v.h: Delete.
1472
1473 2003-09-14 Andrew Cagney <cagney@redhat.com>
1474
1475 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1476 * dcache.c: Update copyrights and descriptions.
1477 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1478
1479 2003-09-14 Andrew Cagney <cagney@redhat.com>
1480
1481 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1482 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1483
1484 2003-09-14 Andrew Cagney <cagney@redhat.com>
1485
1486 * alpha-nat.c: Remove some occurances of "register".
1487 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1488 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1489 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1490 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1491 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1492 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1493 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1494 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1495 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1496 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1497 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1498 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1499 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1500 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1501 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1502 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1503 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1504 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1505 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1506 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1507 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1508 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1509
1510 2003-09-13 Andrew Cagney <cagney@redhat.com>
1511
1512 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1513 * ppc-tdep.h (struct regcache): Declare opaque.
1514 * objfiles.h (struct objfile_data): Declare opaque.
1515 * cp-support.h (struct objfile): Declare opaque.
1516 * linux-nat.h (target_waitstatus): Declare opaque.
1517
1518 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1519
1520 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1521 (stabs_argument_has_addr): New architecture method.
1522 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1523 * arch-utils.c: Include "buildsym.h".
1524 (default_stabs_argument_has_addr): New function.
1525 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1526 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1527
1528 * cris-tdep.c (cris_gdbarch_init): Set
1529 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1530 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1531 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1532 * mips-tdep.c (mips_gdbarch_init): Likewise.
1533 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1534 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1535
1536 2003-09-13 Andrew Cagney <cagney@redhat.com>
1537
1538 * values.c (using_struct_return): Delete "function" and "funcaddr"
1539 parameters.
1540 * value.h (using_struct_return): Update declaration.
1541 * infcmd.c (finish_command_continuation): Update.
1542 (finish_command): Update.
1543 * infcall.c (call_function_by_hand): Update.
1544 * eval.c (evaluate_subexp_standard): Update.
1545
1546 2003-09-13 Christopher Faylor <cgf@redhat.com>
1547
1548 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1549 SSE registers since gdb will not operate correctly without this.
1550 Restore include file ordering munged in previous change.
1551 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1552
1553 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1554
1555 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1556 REG_STRUCT_HAS_ADDR.
1557 * gdbarch.c, gdbarch.h: Updated.
1558 * infcall.c (call_function_by_hand): Update.
1559 * stabsread.c (define_symbol): Updated.
1560
1561 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1562
1563 2003-09-12 Christopher Faylor <cgf@redhat.com>
1564
1565 * win32-nat.c: Reorganize so that defines used by target headers are
1566 actually defined by the system headers.
1567 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1568 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1569
1570 2003-09-12 Jim Blandy <jimb@redhat.com>
1571
1572 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1573 the file has no .data, .bss, or .rodata sections. Instead wait
1574 until we see a variable alleged to live in one of those sections.
1575
1576 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1577 .bss section, presume that any variables we find live in the
1578 .rodata section.
1579
1580 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1581 offsets for global and static variables.
1582
1583 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1584 symbol types are, by definition, in the .data section, so it is
1585 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1586 If there is no .data section, there should be no N_DATA or N_DATA
1587 | N_EXT symbols.
1588
1589 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1590
1591 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1592 (amd64fbsd_sigcontext_addr): Rewrite.
1593 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1594 with correct values.
1595 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1596 (amd64fbsd_init_abi): Fix typo.
1597
1598 2003-09-12 Andrew Cagney <cagney@redhat.com>
1599
1600 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1601 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1602
1603 2003-09-12 Andrew Cagney <cagney@redhat.com>
1604
1605 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1606 "entry_file_highpc". Update comments.
1607 * defs.h (deprecated_inside_entry_file): Rename
1608 "inside_entry_file".
1609 * blockframe.c (deprecated_inside_entry_file): Rename
1610 "inside_entry_file".
1611 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1612 * vax-tdep.c (vax_frame_chain): Update.
1613 * sh64-tdep.c (sh64_frame_chain): Update.
1614 * sh-tdep.c (sh_frame_chain): Update.
1615 * rs6000-tdep.c (rs6000_frame_chain): Update.
1616 * ns32k-tdep.c (ns32k_frame_chain): Update.
1617 * mips-tdep.c (mips_frame_chain): Update.
1618 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1619 * m32r-tdep.c (m32r_frame_this_id): Update.
1620 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1621 * frv-tdep.c (frv_frame_this_id): Update.
1622 * d10v-tdep.c (d10v_frame_this_id): Update.
1623 * cris-tdep.c (cris_frame_chain): Update.
1624 * blockframe.c (legacy_frame_chain_valid): Update.
1625 * avr-tdep.c (avr_frame_this_id): Update.
1626 * arm-tdep.c (arm_prologue_this_id): Update.
1627 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1628 * objfiles.c (objfile_relocate): Update.
1629 * mipsread.c (mipscoff_symfile_read): Update.
1630 (mipscoff_symfile_read): Update.
1631 * mdebugread.c (parse_partial_symbols): Update.
1632 * dwarfread.c (read_file_scope): Update.
1633 * dwarf2read.c (read_file_scope): Update.
1634 * dbxread.c (read_dbx_symtab): Update.
1635 (read_dbx_symtab): Update.
1636 * coffread.c (complete_symtab): Update.
1637
1638 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1639
1640 * top.c (quit_target): New static helper function.
1641 (quit_force): Moved code to quit_target(). Call quit_target()
1642 via catch_errors() to catch errors during quit.
1643
1644 2003-09-11 David Carlton <carlton@kealia.com>
1645
1646 * buildsym.c (finish_block): Use allocate_block to allocate the
1647 block.
1648 * mdebugread.c (new_block): Add FIXME.
1649
1650 2003-09-11 David Carlton <carlton@kealia.com>
1651
1652 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1653 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1654 (recursive_dump_type): Ditto.
1655 * printcmd.c (print_formatted): Ditto.
1656 * typeprint.c (print_type_scalar): Ditto.
1657 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1658 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1659 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1660 maint_cplus_cmd_list.
1661 * cp-support.c: Make maint_cplus_cmd_list extern.
1662 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1663 command.h.
1664 (lookup_symbol_file): Look in possible namespace blocks when
1665 appropriate.
1666 (initialize_namespace_symtab): New.
1667 (get_possible_namespace_block, free_namespace_block)
1668 (check_possible_namespace_symbols)
1669 (check_possible_namespace_symbols_loop)
1670 (check_one_possible_namespace_symbol)
1671 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1672 (_initialize_cp_namespace): Ditto.
1673 * block.h: Declare allocate_block.
1674 * block.c (allocate_block): New.
1675 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1676 allocate_block.
1677 * symfile.h: Update declaration of add_psymbol_to_list.
1678 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1679 question.
1680 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1681 scan_partial_symbols_call.
1682 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1683 helper functions.
1684 (add_partial_symbol): If necessary, scan mangled names for names
1685 of namespaces.
1686 (add_partial_namespace): Add NAMESPACE argument; generate partial
1687 symbols associated to namespaces.
1688 (add_partial_enumeration): Add NAMESPACE argument.
1689 (new_symbol): Allow namespace syms.
1690 (read_namespace): Generate namespace syms.
1691 * objfiles.h: Add opaque declaration of struct symtab.
1692 (struct objfile): Add cp_namespace_symtab member.
1693 * objfiles.c (allocate_objfile): Set
1694 objfile->cp_namespace_symtab.
1695 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1696 dictionary_h, command_h.
1697
1698 2003-09-11 Andrew Cagney <cagney@redhat.com>
1699
1700 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1701 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1702 near the function's end.
1703 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1704 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1705 regcache_raw_write_signed to set SP_REGNUM.
1706
1707 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1708
1709 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1710 orig_addrs is set up properly.
1711
1712 2003-09-11 Andrew Cagney <cagney@redhat.com>
1713
1714 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1715 * gdbarch.h, gdbarch.c: Re-generate.
1716 * infcall.c (call_function_by_hand): Update.
1717 * hppa-tdep.c (hppa_push_arguments): Update.
1718 * ada-lang.c (place_on_stack): Update.
1719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1720 * sparc-tdep.c (sparc_gdbarch_init): Update.
1721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1722 * hppa-tdep.c (hppa_gdbarch_init): Update.
1723 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1724 stack_align.
1725
1726 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1727
1728 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1729 register do need a frame.
1730
1731 2003-09-11 Andrew Cagney <cagney@redhat.com>
1732
1733 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1734 buildable since GDB 5.0.
1735 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1736 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1737 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1738 * irix4-nat.c: Delete file.
1739 * config/mips/irix4.mh: Delete file.
1740 * config/mips/irix3.mh: Delete file.
1741 * config/mips/irix3.mt: Delete file.
1742 * config/mips/tm-irix3.h: Delete file.
1743 * config/mips/nm-irix3.h: Delete file.
1744 * config/mips/xm-irix3.h: Delete file.
1745 * config/mips/nm-irix4.h: Delete file.
1746 * config/mips/xm-irix4.h: Delete file.
1747 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1748
1749 2003-09-10 J. Brobecker <brobecker@gnat.com>
1750
1751 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1752 * Makefile.in (hppa-tdep.o): Update dependencies.
1753
1754 2003-09-10 James E Wilson <wilson@specifixinc.com>
1755
1756 * MAINTAINERS: Change my e-mail address. Move to paper trail
1757 section.
1758
1759 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1760
1761 * MAINTAINERS (frv): New ISA entry.
1762
1763 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1764
1765 * frv-tdep.c (dis-asm.h): Include.
1766 * Makefile.in (frv-tdep.o): Update dependencies.
1767
1768 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1769
1770 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1771 Fix typo for high range of floating registers.
1772
1773 2003-09-09 David Carlton <carlton@kealia.com>
1774
1775 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1776 highpc initialization here out of scan_partial_symbols.
1777 (scan_partial_symbols): Restructure into a recursive version,
1778 calling add_partial_namespace and add_partial_enumeration when
1779 appropriate.
1780 (add_partial_namespace): New.
1781 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1782
1783 2003-09-09 Andrew Cagney <cagney@redhat.com>
1784
1785 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1786 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1787 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1788 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1789
1790 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1791 (rs6000_push_dummy_call): Set the "TOC" register.
1792
1793 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1794 methods "max_register_raw_size", "max_register_virtual_size" or
1795 "register_virtual_size".
1796
1797 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1798
1799 * MAINTAINERS: Update my e-mail address.
1800
1801 2003-09-09 Andrew Cagney <cagney@redhat.com>
1802
1803 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1804 (rs6000_push_dummy_call): Store the struct return address.
1805 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1806
1807 2003-09-09 Andrew Cagney <cagney@redhat.com>
1808
1809 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1810 "ppc_sysv_abi_push_arguments".
1811 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1812 "ppc_sysv_abi_push_arguments".
1813 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1814 instead of "push_arguments".
1815 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1816
1817 2003-09-09 Andrew Cagney <cagney@redhat.com>
1818
1819 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1820 instead of CALL_DUMMY_ADDRESS.
1821
1822 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1823
1824 * p-lang.c: Eliminate "register".
1825 * c-lang.c: Ditto.
1826 * expprint.c: Ditto.
1827 * f-lang.c: Ditto.
1828 * jv-lang.c: Ditto.
1829 * language.c: Ditto.
1830 * m2-lang.c: Ditto.
1831 * parse.c: Ditto.
1832 * scm-lang.c: Ditto.
1833 * objc-lang.c: Ditto.
1834
1835 2003-09-09 Nick Clifton <nickc@redhat.com>
1836
1837 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1838
1839 2003-09-04 Andrew Cagney <cagney@redhat.com>
1840
1841 * avr-tdep.c: Include "dis-asm.h".
1842 * cris-tdep.c: Include "dis-asm.h".
1843 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1844 instead of corresponding typedef.
1845 * h8300-tdep.c: Include "dis-asm.h".
1846 * ia64-tdep.c: Include "dis-asm.h".
1847 * i386-tdep.c: Include "dis-asm.h".
1848 (i386_print_insn): Use "struct disassemble_info" instead of
1849 corresponding typedef.
1850 * m68k-tdep.c: Include "dis-asm.h".
1851 * mcore-tdep.c: Include "dis-asm.h".
1852 * mips-tdep.c: Include "dis-asm.h".
1853 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1854 instead of corresponding typedef.
1855 * ns32k-tdep.c: Include "dis-asm.h".
1856 * s390-tdep.c: Include "dis-asm.h".
1857 * sparc-tdep.c: Include "dis-asm.h".
1858 * vax-tdep.c: Include "dis-asm.h".
1859 * v850-tdep.c: Include "dis-asm.h".
1860 * mn10300-tdep.c: Include "dis-asm.h".
1861 * rs6000-tdep.c: Include "dis-asm.h".
1862 * xstormy16-tdep.c: Include "dis-asm.h".
1863 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1864 print_insn_xstormy16.
1865 * Makefile.in (v850-tdep.o): Update dependencies.
1866 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1867 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1868 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1869 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1870 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1871 (gdbarch_h): Remove $(dis_asm_h).
1872 * disasm.c: Include "dis-asm.h".
1873 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1874 corresponding typedef.
1875 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1876 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1877 * gdbarch.sh: Do not include "dis-asm.h".
1878 (struct disassemble_info): Declare opaque.
1879 (TARGET_PRINT_INSN): Update declaration.
1880 * gdbarch.h, gdbarch.c: Re-generate.
1881
1882 2003-09-08 Andrew Cagney <cagney@redhat.com>
1883
1884 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1885 CALL_DUMMY_ADDRESS, change to a predicate.
1886 * gdbarch.h, gdbarch.c: Re-generate.
1887 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1888 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1889 * infcall.c (call_function_by_hand): Ditto.
1890 * sparc-tdep.c (sparc_push_return_address): Ditto.
1891 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1892 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1893 CALL_DUMMY_ADDRESS with entry_point_address.
1894 * v850-tdep.c (v850_push_return_address): Ditto.
1895 * s390-tdep.c (s390_push_return_address): Ditto.
1896 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1897 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1898 * mcore-tdep.c (mcore_push_return_address): Ditto.
1899 * cris-tdep.c (cris_push_return_address): Ditto.
1900 * arm-tdep.c (arm_push_return_address): Ditto.
1901
1902 2003-09-08 Andrew Cagney <cagney@redhat.com>
1903
1904 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1905 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1906 and REG_UNMODIFIED to REG_SAME_VALUE.
1907 (execute_cfa_program): Update.
1908 (dwarf2_frame_cache): Update. Initialize table to
1909 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1910 location.
1911 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1912
1913 2003-09-08 Andrew Cagney <cagney@redhat.com>
1914
1915 * gnu-nat.c: Remove "inline" function attribute.
1916 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1917
1918 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1919
1920 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1921 target.
1922
1923 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1924
1925 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1926 (frame_extra_info): Rename this struct to frv_unwind_cache.
1927 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1928 Add fields ``prev_sp'' and ``base''.
1929 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1930 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1931 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1932 Delete.
1933 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1934 Revise all callers. Fill in the unwind cache argument and make
1935 other adjustments to account for new frame mechanisms.
1936 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1937 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1938 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1939 (frv_frame_unwind, frv_frame_base): New structs.
1940 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1941 additional arguments expected by this method and adjust function
1942 body accordingly.
1943 (frv_gdbarch_init): Remove calls to the following functions:
1944 set_gdbarch_deprecated_init_frame_pc(),
1945 set_gdbarch_deprecated_saved_pc_after_call(),
1946 set_gdbarch_deprecated_frame_chain(),
1947 set_gdbarch_deprecated_frame_saved_pc(),
1948 set_gdbarch_deprecated_frame_init_saved_regs(),
1949 set_gdbarch_deprecated_push_arguments(),
1950 set_gdbarch_deprecated_push_return_address(),
1951 set_gdbarch_deprecated_pop_frame(),
1952 set_gdbarch_deprecated_call_dummy_words(),
1953 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1954 set_gdbarch_deprecated_init_extra_frame_info(),
1955 set_gdbarch_deprecated_dummy_write_sp(), and
1956 set_gdbarch_deprecated_pc_in_call_dummy().
1957 Add calls to the following functions:
1958 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1959 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1960 frame_base_set_default().
1961 * Makefile.in (frv-tdep.o): Update dependencies.
1962
1963 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1964
1965 * dwarf2-frame.c (read_encoded_value): Add support for
1966 DW_EH_PE_aligned encoding.
1967
1968 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1969
1970 * infrun.c (normal_stop): Don't print a message if the inferior
1971 has exited.
1972
1973 2003-09-08 Jim Blandy <jimb@redhat.com>
1974
1975 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1976 * dbxread.c: #include "gdb_assert.h".
1977 (read_dbx_symtab): If the objfile has no .data section, use the
1978 section index for the .bss section instead.
1979
1980 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1981
1982 * frame.c (deprecated_safe_get_selected_frame): New function.
1983 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1984 * findvar.c (read_var_value): Call it.
1985
1986 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1987
1988 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1989 (sh64-tdep.o): Add dependencies.
1990 * configure.tgt: Add FIXME to sh-*-linux*.
1991 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1992 (sh_gdbarch_init): Always set correct sh_show_regs function
1993 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1994 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1995 * sh64-tdep.c: New file, containing all sh64 related code from
1996 sh-tdep.c.
1997 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1998 * config/sh/linux.mt (TDEPFILES): Ditto.
1999 * config/sh/nbsd.mt (TDEPFILES): Ditto.
2000 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
2001 * config/sh/wince.mt (TDEPFILES): Ditto.
2002
2003 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
2006 (stop_wait_callback): Handle !lp->signalled also.
2007 (lin_lwp_has_pending, flush_callback): New functions.
2008 (lin_lwp_wait): Call flush_callback.
2009 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
2010 (linux_proc_pending_signals): New function.
2011 * linux-nat.h (linux_proc_pending_signals): Add prototype.
2012
2013 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2014
2015 From Nick Kelsey <nickk@ubicom.com>:
2016 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2017 when the stop PC is at the beginning of a function also.
2018
2019 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2020
2021 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2022 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2023
2024 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2025
2026 * sol-thread.c: Include "gdb_string.h".
2027
2028 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2029
2030 * gcore.c: Reorder include files in alphabetical order. Include
2031 "gdb_assert.h". Various coding style fixes.
2032 (derive_stack_segment, derive_heap_segment): Replace check for
2033 non-null BOTTOM and TOP with gdb_assert.
2034 (derive_heap_segment): Replace check for successful creation of
2035 ZERO with gdb_assert.
2036 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2037
2038 2003-09-04 Andrew Cagney <cagney@redhat.com>
2039
2040 * thread-db.c (verbose_dlsym): New function.
2041 (thread_db_load): Use verbose_dlsym
2042 (thread_db_new_objfile): Print that libthread_db was loaded, and
2043 that thread debugging was enabled.
2044
2045 2003-09-04 Andrew Cagney <cagney@redhat.com>
2046
2047 * configure.tgt: Add "mips64*-*-*" target. Delete
2048 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2049 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2050 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2051 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2052 mips*-sony-*, and mips64*-*-elf* targets.
2053 * config/mips/embedl.mt: Delete file.
2054 * config/mips/embedl64.mt: Delete file.
2055 * config/mips/mips.mt: Delete file.
2056 * config/mips/mips64.mt: Delete file.
2057 * config/mips/tm-embed.h: Delete file.
2058 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2059 * config/mips/embed64.mt: Delete out-of-date comment.
2060
2061 2003-09-04 Andrew Cagney <cagney@redhat.com>
2062
2063 * hppa-tdep.c (hppa_gdbarch_init): Set
2064 "have_nonsteppable_watchpoint".
2065 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2066 * mips-tdep.c (mips_dump_tdep): Do not print
2067 HAVE_NONSTEPPABLE_WATCHPOINT.
2068 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2069 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2070 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2071 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2072
2073 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2074
2075 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2076 unused code. Add comment.
2077
2078 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2079
2080 * breakpoint.c (watchpoint_check): Check for pc being in an
2081 epilogue if watchpoint frame couldn't be found.
2082
2083 2003-09-04 Andrew Cagney <cagney@redhat.com>
2084
2085 * Makefile.in: Re-generate all dependencies.
2086
2087 2003-09-03 Andrew Cagney <cagney@redhat.com>
2088
2089 * arch-utils.h (legacy_print_insn): Delete declaration.
2090 * arch-utils.c (legacy_print_insn): Delete function.
2091 * disasm.c (deprecated_tm_print_insn_info): Delete.
2092 (_initialize_disasm): Delete function, contained code initializing
2093 deprecated_tm_print_insn_info.
2094 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2095 (deprecated_tm_print_insn_info): Delete.
2096 (TARGET_PRINT_INSN): Do not provide a default.
2097 * gdbarch.h, gdbarch.c: Re-generate.
2098
2099 2003-09-03 Andrew Cagney <cagney@redhat.com>
2100
2101 * disasm.c (fprintf_disasm): New function.
2102 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2103 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2104 reverts 2003-08-14 change.
2105 (_initialize_disasm): Call "init_disassemble_info", instead of
2106 INIT_DISASSEMBLE_INFO_NO_ARCH.
2107
2108 2003-09-03 Michael Snyder <msnyder@redhat.com>
2109
2110 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2111
2112 2003-09-03 Andrew Cagney <cagney@redhat.com>
2113
2114 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2115 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2116 * symfile.c (syms_from_objfile): Update.
2117 (reread_symbols): `Update
2118 * exec.c (exec_file_attach): Update.
2119 (exec_file_attach): Update.
2120 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2121 2003-08-29 change.
2122 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2123
2124 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2125
2126 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2127 trad-frame.h.
2128 (arm_get_cache): Delete macro.
2129 (struct arm_prologue_cache): Update comments. Make saved_regs into
2130 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2131 to prev_sp.
2132 (thumb_scan_prologue): Update for cache changes. Don't call
2133 DEPRECATED_PC_IN_CALL_DUMMY.
2134 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2135 argument and use it in desperation search for our prologue. Do not
2136 search past the specified PC.
2137 (arm_make_prologue_cache): Simplify.
2138
2139 (arm_prologue_this_id, arm_prologue_prev_register)
2140 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2141 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2142 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2143 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2144 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2145
2146 (arm_frame_chain_valid, arm_find_callers_reg)
2147 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2148 (arm_pop_frame): Delete obsolete methods.
2149 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2150
2151 (arm_gdbarch_init): Update for new frame methods. Register prologue
2152 and sigtramp unwinders. Set the default frame base method.
2153
2154 * Makefile.in (arm-tdep.o): Update dependencies.
2155 * varobj.c (find_frame_addr_in_frame_chain): Call
2156 get_frame_base_address.
2157 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2158
2159 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2162 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2163 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2164 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2165 Take NEXT_FRAME and CACHE arguments. Call
2166 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2167 Set unwound_pc in CACHE instead of modifying the frame argument.
2168 Don't bother checking the frame type when looking for sigtramp
2169 frames.
2170 (arm_make_prologue_cache, arm_frame_chain)
2171 (arm_init_extra_frame_info): New functions.
2172
2173 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2174
2175 * arm-tdep.c (arm_get_cache): Define.
2176 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2177 unwound_sp, unwound_pc, and saved_regs.
2178 (thumb_scan_prologue): Take a cache instead of the frame.
2179 (arm_scan_prologue): Likewise.
2180 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2181 instead of a temporary frame.
2182 (arm_init_extra_frame_info): Allocate and use a cache.
2183 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2184
2185 2003-09-03 Andrew Cagney <cagney@redhat.com>
2186
2187 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2188 * config/mips/wince.mt (TM_CLIBS): Ditto.
2189 * config/sh/wince.mt (TM_CLIBS): Ditto.
2190 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2191 * config/sparc/sp64.mt (CC): Delete.
2192
2193 2003-09-03 Andrew Cagney <cagney@redhat.com>
2194
2195 * defs.h: Do not include "arch-utils.h".
2196 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2197 GDB_MULTI_ARCH_PURE.
2198 * configure.in (GDB_MULTI_ARCH): Do not define.
2199 * configure, config.in: Regenerate.
2200 * configure.tgt: Do not set variable "gdb_multi_arch".
2201 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2202 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2203 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2204 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2205 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2206 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2207 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2208 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2209 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2210 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2211 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2212 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2213 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2214 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2215 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2216 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2217 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2218 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2219
2220 2003-08-30 Michael Chastain <mec@shout.net>
2221
2222 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2223 * config/m68k/nm-hp300hpux.h: Delete.
2224 * config/m68k/tm-hp300hpux.h: Delete.
2225 * config/m68k/xm-hp300hpux.h: Delete.
2226 * config/m68k/xm-hp300bsd.h: Delete.
2227 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2228 tm-hp300hpux.h, xm-hp300hpux.h.
2229 * somsolib.c: Remove comment about hp300 shared libraries.
2230
2231 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2232
2233 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2234 Only define PTRACE_GET_THREAD_AREA is not already defined.
2235 Various style fixes in code and comments and some additional
2236 spelling fixes in comments. Move after functions dealing with
2237 debug registers.
2238 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2239 Fix coding-style.
2240
2241 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2242 frame_unwind_register_unsigned instead of
2243 frame_unwind_unsigned_register.
2244
2245 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2246
2247 * configure.in: Search for gethostbyname in libnsl.
2248 * configure: Regenerated.
2249
2250 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2251
2252 * configure.in: Remove redundant AC_MSG_RESULT in check for
2253 uintptr_t in stdint.h.
2254 * configure: Regenerated.
2255
2256 * amd64-nat.h (struct regcache): Add opaque declaration.
2257
2258 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2259 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2260 Change "register array" to "register cache" in comments.
2261 (x86_64_linux_gregset64_reg_offset): New variable.
2262 (GETREGS_SUPPLIES): Remove macro.
2263 (supply_gregset): Call amd64_supply_native_gregset instead of
2264 x86_64_linux_supply_gregset.
2265 (fill_gregset): Rename `regno' to `regnum'. Call
2266 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2267 (store_regs): Rename `regno' to `regnum'.
2268 (store_fpregs): Rename `regno' to `regnum'.
2269 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2270 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2271 Reorganize function a bit.
2272 (store_inferior_registers): Rename `regno' to `regnum'. Use
2273 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2274 Reorganize function a bit.
2275 (_initialize_x86_64_linux_nat): New function.
2276 * config/i386/x86-64linux.mh.
2277
2278 2003-08-29 Andrew Cagney <cagney@redhat.com>
2279
2280 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2281 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2282 (target_remove_watchpoint): Delete macro.
2283 (target_insert_watchpoint): Delete macro.
2284 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2285 (remote_mips_stopped_by_watchpoint): Delete declaration.
2286 (remote_mips_remove_watchpoint): Delete declaration.
2287 (remote_mips_set_watchpoint): Delete declaration.
2288 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2289 * remote-mips.c (_initialize_remote_mips): Set
2290 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2291 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2292 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2293 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2294 (mips_stopped_by_watchpoint): Rename
2295 remote_mips_stopped_by_watchpoint.
2296 (mips_can_hardware_watchpoint): Rename
2297 remote_mips_can_use_hardware_watchpoint, update function
2298 signature.
2299
2300 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2301
2302 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2303 USER_DS. We haven't given them a register number yet.
2304
2305 * amd64-nat.h: New file.
2306 * amd64-nat.c: New file.
2307 * amd64fbsd-nat.c: Include "amd64-nat.h".
2308 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2309 (amd64fbsd32_r_reg_offset): New variable.
2310 (supply_gregset): Simply call amd64_supply_native_gregset.
2311 (fill_gregset): Rename `regno' to `regnum'. Simply call
2312 amd64_collect_native_gregset.
2313 (fill_fpregset): Rename `regno' to `regnum'.
2314 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2315 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2316 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2317 `fpregset_t'. Call amd64_supply_native_gregset instead of
2318 supply_gregset. Call x86_64_supply_fxsave instead of
2319 supply_fpregset.
2320 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2321 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2322 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2323 `fpregset_t'. Call amd64_collect_native_gregset instead of
2324 fill_gregset. Call x86_64_collect_fxsave instead of
2325 fill_fpregset.
2326 (_initialize_am64fbsd_nat): Initialize
2327 amd64_native_gregset32_reg_offset and
2328 amd64_native_gregset64_reg_offset.
2329 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2330
2331 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2332 null pointer. Fix typo in comment.
2333
2334 * regcache.c (supply_register): Reimplement to call
2335 regcache_raw_supply.
2336 (regcache_collect): Reimplement by calling regcache_raw_collect.
2337
2338 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2339
2340 * regcache.c (register_buffer): Consitify first argument.
2341 (regcache_raw_supply, regcache_raw_collect): New
2342 functions.
2343
2344 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2345
2346 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2347 by Nathan J. Williams.
2348
2349 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * lin-lwp.c (wait_lwp): New function, copied from
2352 stop_wait_callback. Clean up.
2353 (stop_wait_callback): Use wait_lwp.
2354
2355 2003-08-28 Andrew Cagney <cagney@redhat.com>
2356
2357 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2358 flavour and disassembler options.
2359 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2360 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2361 deprecated_tm_print_insn_info.
2362
2363 2003-08-27 Andrew Cagney <cagney@redhat.com>
2364
2365 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2366 Use target_read_memory.
2367 (s390_get_frame_info): Update. Do not reference
2368 deprecated_tm_print_insn_info.
2369 (s390_check_function_end, s390_is_sigreturn): Ditto.
2370
2371 2003-08-27 Andrew Cagney <cagney@redhat.com>
2372
2373 * Makefile.in (cris-tdep.o): Update dependencies.
2374 * cris-tdep.c: Include "gdb_assert.h".
2375 (cris_gdbarch_init): Set print_insn.
2376 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2377 (cris_delayed_get_disassembler): Simplify, directly call the
2378 disassembler returned by cris_get_disassembler.
2379 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2380 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2381 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2382 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2383 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2384 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2385 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2386 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2387 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2388 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2389 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2390 (gdb_print_insn_sparc): Delete function.
2391 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2392 deprecated_tm_print_insn_info.
2393 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2394 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2395 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2397 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2398 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2399 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2400 (s390_gdbarch_init): Set print_insn.
2401
2402 2003-08-27 Andrew Cagney <cagney@redhat.com>
2403
2404 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2405 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2406 * infcall.c (call_function_by_hand): Convert the entry point
2407 address into a code address.
2408
2409 2003-08-27 Andrew Cagney <cagney@redhat.com>
2410
2411 * dsrec.c: Include "gdb_string.h".
2412 * Makefile.in (dsrec.o): Update dependencies.
2413
2414 2003-08-27 Michael Chastain <mec@shout.net>
2415
2416 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2417
2418 2003-08-27 Andrew Cagney <cagney@redhat.com>
2419
2420 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2421 (alpha_osf1_init_abi): Do not set call_dummy_address.
2422
2423 2003-08-27 David Carlton <carlton@kealia.com>
2424
2425 From Randolph Chung <tausq@debian.org>:
2426 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2427 compiles with -Wformat-nonliteral -Werror.
2428
2429 2003-08-26 Jim Blandy <jimb@redhat.com>
2430
2431 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2432 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2433 bfd_lookup_symbol, since we only want symbols in code sections.
2434 (look_for_base): Pass zero as the SECT_FLAGS argument to
2435 bfd_lookup_symbol, since we're not concerned about which section
2436 the symbol is in.
2437
2438 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2439
2440 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2441 we are frameless or the return address register is already known.
2442
2443 2003-08-26 Andrew Cagney <cagney@redhat.com>
2444
2445 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2446 in size. Add comments.
2447
2448 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2449
2450 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2451 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2452
2453 2003-08-26 Jason Merrill <jason@redhat.com>
2454
2455 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2456 case out of #ifdef MIPS block.
2457
2458 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2459
2460 PR java/1322
2461 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2462 available before calling SECT_OFF_TEXT.
2463 * PROBLEMS: Remove description of java/1322.
2464
2465 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2466
2467 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2468 bof, and nat0-nat127 as pseudo-registers.
2469 (ia64_frame_cache): New struct used to cache frame info.
2470 (ia64_register_reggroup_p): New routine used to override default
2471 register grouping so registers without names are still saved and
2472 restored.
2473 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2474 pseudo values.
2475 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2476 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2477 (ia64_alloc_frame_cache): New routine to create a new
2478 ia64_frame_cache.
2479 (examine_prologue): Change prototype to add next_frame pointer.
2480 Assume frameless until otherwise proven. Verify that the cfm for
2481 current frame matches the cfm that should occur for the prologues
2482 alloc insn and if equal, mark as not frameless. At end of routine,
2483 if not frameless, calculate registers for the previous frame and store
2484 in the cache, if a cache is provided.
2485 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2486 and pass 0 for next_frame.
2487 (ia64_store_return_value): Change to use convert_typed_floating()
2488 instead of calling ia64_convert_to_raw().
2489 (ia64_extract_return_value): Change to use convert_typed_floating()
2490 instead of calling ia64_convert_to_virtual().
2491 (ia64_frame_cache): New routine to support new frame model.
2492 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2493 (ia64_frame_sniffer): Ditto.
2494 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2495 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2496 (ia64_sigtramp_frame_prev_register): Ditto.
2497 (ia64_sigtramp_frame_sniffer): Ditto.
2498 (ia64_frame_base_address): Ditto.
2499 (ia64_extract_struct_value_address): Change to issue error message.
2500 (ia64_frame_align): New routine to align sp.
2501 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2502 (ia64_push_arguments): Removed. Logic moved to
2503 ia64_push_dummy_call().
2504 (ia64_push_return_address): Ditto.
2505 (ia64_unwind_dummy_id): New function.
2506 (ia64_unwind_pc): Ditto.
2507 (ia64_convert_register_p): Ditto.
2508 (ia64_register_to_value): Ditto.
2509 (ia64_value_to_register): Ditto.
2510 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2511 (ia64_register_byte, ia64_register_raw_size): Ditto.
2512 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2513 (ia64_saved_pc_after_call): Ditto.
2514 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2515 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2516 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2517 (ia64_register_convert_to_raw): Ditto.
2518 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2519 (ia64_init_extra_frame_info): Ditto.
2520 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2521 (ia64_gdbarch_init): Remove registering of deprecated functions that
2522 are no longer used. Add registration of new gdbarch functions.
2523 Remove registering deprecated_write_sp. Replace
2524 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2525 Delete set_gdbarch_deprecated_register_convertible(),
2526 set_gdbarch_deprecated_register_convert_to_virtual(), and
2527 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2528 set_gdbarch_deprecated_register_size(),
2529 set_gdbarch_deprecated_register_bytes(),
2530 set_gdbarch_pcregnum(),
2531 set_gdbarch_deprecated_register_byte(),
2532 set_gdbarch_deprecated_register_raw_size(),
2533 set_gdbarch_deprecated_max_register_raw_size(),
2534 set_gdbarch_deprecated_register_virtual_size(),
2535 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2536 Replace set_gdbarch_deprecated_extract_return_value() with
2537 set_gdbarch_extract_return_value(). Remove calls to:
2538 set_gdbarch_deprecated_saved_pc_after_call();
2539 set_gdbarch_deprecated_frame_chain(),
2540 set_gdbarch_deprecated_frame_saved_pc(),
2541 set_gdbarch_deprecated_frame_init_saved_regs(),
2542 set_gdbarch_deprecated_get_saved_register(),
2543 set_gdbarch_deprecated_call_dummy_words(),
2544 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2545 set_gdbarch_deprecated_init_extra_frame_info(),
2546 set_gdbarch_deprecated_frame_args_address(),
2547 set_gdbarch_deprecated_frame_locals_address(),
2548 and set_gdbarch_deprecated_dummy_write_sp().
2549 Add set_gdbarch_convert_register_p(),
2550 set_gdbarch_register_to_value(),
2551 set_gdbarch_value_to_register(),
2552 set_gdbarch_push_dummy_call(),
2553 set_gdbarch_frame_align(),
2554 set_gdbarch_unwind_dummy_id(),
2555 set_gdbarch_unwind_pc(),
2556 frame_unwind_append_sniffer(),
2557 frame_unwind_append_sniffer(),
2558 and frame_base_set_default().
2559
2560 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2561
2562 * configure.tgt: Document need for special "mipsisa64" handling.
2563 (mipsisa64*-*-linux64): Handle as target linux64.
2564 (mipsisa64*-*-*): Handle as target embed64.
2565
2566 2003-08-18 Michael Chastain <mec@shout.net>
2567
2568 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2569 objfile bug.
2570
2571 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2572
2573 * i387-tdep.h: Update copyright date.
2574 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2575
2576 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2577 CFLAGS games to reflect reality.
2578
2579 2003-08-24 Andrew Cagney <cagney@redhat.com>
2580
2581 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2582 GDB_MULTI_ARCH is always non-zero.
2583 * osabi.c (_initialize_gdb_osabi): Ditto.
2584 (gdbarch_init_osabi): Ditto.
2585 * sparc-tdep.c: Ditto for #if code.
2586
2587 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2588
2589 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2590 Update comments.
2591 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2592 comments.
2593 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2594 x86_64_supply_fxsave.
2595 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2596 x86_64_supply_fxsave.
2597 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2598 x86_64_supply_fxsave.
2599
2600 2003-08-23 Andreas Jaeger <aj@suse.de>
2601
2602 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2603 i387_supply_fxsave.
2604
2605 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2606
2607 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2608 i387_supply_register.
2609 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2610 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2611 i387_supply_fsave.
2612 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2613 i387_supply_fxsave.
2614 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2615 i387_supply_fsave.
2616 * i386bsd-nat.c (supply_fpregset): Adjust call to
2617 i387_supply_fsave.
2618 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2619 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2620 supply_fpregset.
2621 (store_inferior_registers): Remove extraneous whitespace. Call
2622 i387_fill_fsave instead of fill_fpregset.
2623 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2624 (supply_fpregset): Likewise.
2625 * i386v4-nat.c (supply_fpregset): Adjust call to
2626 i387_supply_fsave.
2627 * i386-interix-nat.c (supply_fpregset): Adjust call to
2628 i387_supply_fsave.
2629 * i386-linux-nat.c (supply_fpregset): Adjust call to
2630 i387_supply_fsave.
2631 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2632 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2633 i387supply_fsave and i387_supply_fxsave.
2634 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2635 Incorporate code from `i387_supply_register.
2636 (i387_supply_register): Remove.
2637 (i387_supply_fxsave): Add `regnum' argument.
2638 Update comments.
2639 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2640 prototype.
2641 (i387_supply_register): remove prototype.
2642 Update comments.
2643
2644 2003-08-22 Michael Chastain <mec@shout.net>
2645
2646 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2647 Add lines for files in gdb/testsuite/gdb.cp/* that are
2648 still not 8.3 unique.
2649
2650 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2651
2652 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2653 TYPE_VPTR_FIELDNO is valid.
2654
2655 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2656
2657 * utils.c (set_width_command): Remove prototypes.
2658 (set_screen_size): New prototype.
2659 (init_page_info): Simplify by fetching the screen size from
2660 Readline. Call set_screen_size.
2661 (set_screen_size): New function.
2662 (set_width): Add missing whitespace in comment.
2663 (set_width_command): Call set_screen_size.
2664 (set_height_command): New function.
2665 (initialize_utils): Fix formatting. Make "set height" command
2666 call set_height_command. Remove redundant code that turns off
2667 pagination if output isn't a terminal. Remove redundant call to
2668 set_width_command.
2669
2670 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2671
2672 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2673 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2674 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2675 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2676 `case' keyword.
2677 (sparc64_register_info): Give the reister with number
2678 SPARC64_STATE_REGNUM a name.
2679 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2680 %asi and %ccr.
2681 (sparc64_push_dummy_call): Take BIAS into account when checking
2682 stcak alignment.
2683 (sparc_software_single_step): Remove assertions that check whether
2684 NPC and NNPC were zero.
2685 (sparc_supply_rwindow): Make public. Merge functionality with
2686 sparc64_supply_rwindow.
2687 (sparc_fill_rwindow): Make public. Merge functionality with
2688 sparc64_fill_rwindow.
2689 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2690 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2691 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2692 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2693 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2694
2695 * reggroups.c: Add whitespace after declarations of local
2696 variables in functions.
2697
2698 2003-08-21 Michael Chastain <mec@shout.net>
2699
2700 * gdbtypes.h: Change array bound type from an int to enum.
2701
2702 2003-08-21 Andrew Cagney <cagney@redhat.com>
2703
2704 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2705 * config/sparc/tm-sparc.h: Ditto.
2706 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2707 unconditionally.
2708 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2709
2710 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2711
2712 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2713 (register_objfile_data, set_objfile_data, objfile_data): New
2714 prototypes.
2715 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2716 prototypes.
2717 (allocate_objfile): Call objfile_alloc_data.
2718 (free_objfile): Call objfile_free_data.
2719 (struct objfile_data): New.
2720 (struct objfile_data_registration): New.
2721 (struct objfile_data_registry): New.
2722 (objfile_data_registry): New variable.
2723 (register_objfile_data): New function.
2724 (objfile_alloc_data, objfile_free_data): New functions.
2725 (set_objfile_data, objfile_data): New functions.
2726 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2727 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2728 (_initialize_dwarf2_frame): New function and prototype.
2729
2730 2003-08-21 Andrew Cagney <cagney@redhat.com>
2731
2732 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2733 a specific architecture.
2734 * arch-utils.h (set_architecture_from_arch_mach): Delete
2735 declaration.
2736 (target_architecture_hook): Delete declaration.
2737 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2738 (default_float_format): Assume GDB_MULTI_ARCH.
2739 (default_double_format): Assume GDB_MULTI_ARCH.
2740 (set_endian_from_file): Delete function.
2741 (arch_ok): Delete function.
2742 (set_arch): Delete function.
2743 (set_architecture_from_arch_mach): Delete function.
2744 (set_architecture_from_file): Delete function.
2745 (set_architecture): Assume GDB_MULTI_ARCH.
2746 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2747
2748 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2749
2750 Rewrite FreeBSD/sparc64 native configuration.
2751 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2752 * sparc64fbsd-nat.c: New file.
2753 * sparc64fbsd-tdep.c: New file.
2754 * sparc64-tdep.c sparc64-tdep.h: New files.
2755 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2756 sparc64fbsd-tdep.o): New dependencies.
2757 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2758 and sparc64fbsd-tdep.c.
2759 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2760 * config/sparc/fbsd.mh: Remove copyright notice.
2761 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2762 sparcbsd-nat.o.
2763 * config/sparc/fbsd.mt: Remove copyright notice.
2764 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2765 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2766 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2767 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2768 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2769 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2770 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2771 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2772 "sparc/tm-sp64.h".
2773 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2774 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2775
2776 2003-08-21 Michael Chastain <mec@shout.net>
2777
2778 * symtab.h: Add doco on the space critical structures and
2779 some measurements of space usage.
2780
2781 2003-08-21 Michael Snyder <msnyder@redhat.com>
2782
2783 * tracepoint.c (trace_dump_command): Trace break address
2784 is subject to DECR_PC_AFTER_BREAK.
2785 (set_traceframe_context): Make "trace_line" an int.
2786 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2787
2788 2003-08-20 Michael Snyder <msnyder@redhat.com>
2789
2790 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2791 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2792 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2793 argument passing.
2794 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2795 functions, replace sh_push_dummy_call.
2796 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2797
2798 2003-08-20 Michael Chastain <mec@shout.net>
2799
2800 * gdbtypes.h (struct main_type): Rearrange to save space.
2801
2802 2003-08-20 Michael Snyder <msnyder@redhat.com>
2803
2804 * trad-frame.c: Comment typo fix.
2805
2806 2003-08-20 Michael Snyder <msnyder@redhat.com>
2807 Kevin Buettner <kevinb@redhat.com>
2808
2809 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2810 (frv_frame_init_saved_regs): Add declaration.
2811 (frame_extra_info): Add new field ``saved_regs''.
2812 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2813 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2814 Update frame related code.
2815 (frv_extract_struct_value_address): Adjust formatting.
2816 * Makefile.in (frv-tdep.o): Update dependencies.
2817 * config/frv/tm-frv.h (target_insert_watchpoint)
2818 (target_remove_watchpoint, target_insert_hw_breakpoint)
2819 (target_remove_hw_breakpoint): Delete these macros.
2820 (remote_insert_watchpoint, remote_remove_watchpoint)
2821 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2822 these declarations.
2823
2824 2003-08-20 Michael Chastain <mec@shout.net>
2825
2826 * defs.h (ENUM_BITFIELD): New macro.
2827 * symtab.h (ENUM_BITFIELD): Use it.
2828 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2829
2830 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2831
2832 * MAINTAINERS (write after approval): Add myself.
2833
2834 2003-08-18 Andrew Cagney <cagney@redhat.com>
2835
2836 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2837 * gdbarch.h, gdbarch.c: Re-generate.
2838 * infcall.c (call_function_by_hand): Adjust the SP by
2839 frame_red_zone_size before allocating any stack space.
2840 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2841 * x86-64-tdep.c (x86_64_frame_align): New function.
2842 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2843
2844 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2845 Remove code adjusting SP so that it skips over the Red Zone.
2846
2847 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2848
2849 * NEWS (New native configurations): Mention FreeBSD/amd64.
2850
2851 2003-08-18 Andrew Cagney <cagney@redhat.com>
2852
2853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2854 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2855 "m68k_frame_p".
2856 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2857
2858 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2859
2860 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2861
2862 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2863
2864 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2865 Define.
2866 * i386-linux-nat.c: Include "linux-nat.h".
2867 (child_post_startup_inferior): New function.
2868
2869 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2870
2871 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2872 at the start of a frameless function. This probably fixes PR
2873 backtrace/1338.
2874
2875 2003-08-17 Michael Chastain <mec@shout.net>
2876
2877 * symfile.c (find_sym_fns): Remove special case for apollo target.
2878
2879 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2882 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2883 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2884 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2885 (linux_supports_tracevforkdone): New function.
2886 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2887 TRACEVFORKDONE.
2888 (child_follow_fork): Handle vfork.
2889 (linux_handle_extended_wait): Likewise. Also handle exec.
2890 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2891 * NEWS: Mention fork tracing.
2892
2893 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2894
2895 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2896
2897 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2898
2899 * Makefile.in (i386-linux-nat.o): Update dependencies.
2900 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2901 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2902 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2903 * i386-linux-nat.c: Include "linux-nat.h".
2904 (child_post_startup_inferior): New function.
2905 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2906 * infptrace.c (kill_inferior): Wrap in #ifdef.
2907 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2908 attaching to each LWP.
2909 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2910 (init_lin_lwp_ops): Fill in some more operations.
2911 * linux-nat.h (linux_enable_event_reporting)
2912 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2913 prototypes.
2914 * linux-nat.c (linux_enable_event_reporting): New function.
2915 (child_post_attach, linux_child_post_startup_inferior)
2916 (child_post_startup_inferior, child_follow_fork)
2917 (linux_handle_extended_wait, kill_inferior): New functions.
2918
2919 2003-08-16 Andrew Cagney <cagney@redhat.com>
2920
2921 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2922 * gdbarch.h, gdbarch.c: Re-generate.
2923
2924 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2925
2926 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2927
2928 2003-08-16 Andrew Cagney <cagney@redhat.com>
2929
2930 * NEWS: Mention that "set prompt-escape-char" was deleted.
2931 * top.c (get_prompt_1): Delete function.
2932 (gdb_prompt_escape):
2933 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2934 prompt-escape-char" command.
2935 (MAX_PROMPT_SIZE): Delete macro.
2936 (get_prompt): Simplify, do not call get_prompt_1.
2937
2938 2003-08-16 Andrew Cagney <cagney@redhat.com>
2939
2940 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2941 -Werror. -Wformat-nonliteral problems.
2942
2943 2003-08-15 J. Brobecker <brobecker@gnat.com>
2944
2945 Further multiarching work mostly for hppa64-*-hpux11:
2946 * hppa-tdep.h: New file.
2947 * hppa-tdep.c: #include hppa-tdep.c.
2948 (hppa32_num_regs): Renamed from hppa_num_regs.
2949 (hppa64_num_regs): New constant.
2950 (hppa64_call_dummy_breakpoint_offset): New constant.
2951 (hppa32_call_dummy_length): New constant.
2952 (hppa64_call_dummy_length): New constant.
2953 (hppa32_stack_align): Make name 32bit explicit.
2954 (hppa32_register_virtual_type): Likewise.
2955 (hppa32_extract_return_value): Likewise.
2956 (hppa32_use_struct_convention): Likewise.
2957 (hppa32_store_return_value): Likewise.
2958 (hppa64_register_virtual_type): New function.
2959 (hppa64_extract_return_value): New function.
2960 (hppa64_use_struct_convention): New function.
2961 (hppa64_store_return_value): New function.
2962 (hppa_frame_locals_address): Remove declaration, function does
2963 not exist anymore.
2964 (hppa_register_byte): Add support for PA64 ABI.
2965 (hppa_gdbarch_init): Add support for PA64 ABI.
2966 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2967 Make name 32bit explicit.
2968 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2969 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2970 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2971 (hppa64_hpux_frame_base_before_sigtramp): New function.
2972 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2973 * config/pa/tm-hppa64.h: Remove macros that are no longer
2974 necessary now that the gdbarch vector is properly setup.
2975 Transform some macros into function calls. Some minor cleanup.
2976 * config/pa/tm-hppah.h: Update function calls in macros
2977 following the function renaming in hppa-hpux-tdep.c.
2978 * Makefile.in (hppa_tdep_h): New variable.
2979 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2980
2981 2003-08-14 Michael Snyder <msnyder@redhat.com>
2982
2983 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2984
2985 2003-08-13 J. Brobecker <brobecker@gnat.com>
2986
2987 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2988 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2989 routine.
2990
2991 2003-08-13 Michael Snyder <msnyder@redhat.com>
2992
2993 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2994 (frv_saved_pc_after_call): Use deprecated ftype.
2995 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2996 (frv_remote_translate_xfer_address): Remove.
2997 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2998
2999 2003-08-13 J. Brobecker <brobecker@gnat.com>
3000
3001 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
3002 initialization after the common gdbarch initialization, not before.
3003
3004 2003-08-13 J. Brobecker <brobecker@gnat.com>
3005
3006 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
3007 (ADDR_BITS_REMOVE): Remove, redundant.
3008
3009 2003-08-13 J. Brobecker <brobecker@gnat.com>
3010
3011 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
3012 gdbarch method to clear the 2 low bits of text addresses.
3013
3014 2003-08-12 Andrew Cagney <cagney@redhat.com>
3015
3016 * Makefile.in (dsrec.o): Update dependencies.
3017 * dsrec.c: Include "gdb_assert.h".
3018 (make_srec): Use snprintf instead of sprintf, use a literal format
3019 string.
3020
3021 2003-08-12 Andrew Cagney <cagney@redhat.com>
3022
3023 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3024 FRAME_OBSTACK_ZALLOC.
3025
3026 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3027
3028 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3029 SSE registers.
3030
3031 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3032
3033 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3034 amd64fbsd_sc_reg_offset): Add extern declarations.
3035 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3036 declarations.
3037
3038 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3039
3040 * MAINTAINERS (write after approval): Update my mail address.
3041
3042 2003-08-10 Andrew Cagney <cagney@redhat.com>
3043
3044 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3045
3046 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3047
3048 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3049 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3050 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3051 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3052 i386bsd_sc_reg_offset): Add extern declarations.
3053 * i386obsd-nat.c: Include "i386-tdep.h"
3054 (_initialize_i386obsd_nat): Remove extern declarations.
3055 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3056 declarations.
3057 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3058 declarations.
3059
3060 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3061 instead of frame_read_register.
3062 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3063 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3064 SP_REGNUM.
3065 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3066 instead of frame_unwind_unsigned_register. Use
3067 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3068 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3069 instead of read_register. Use builtin_type_void_data_ptr instead
3070 of builtin_type_void_func_ptr when extracting the address of the
3071 jmp_buf.
3072 (i386_extract_return_value, i386_store_return_value,
3073 i386_pseudo_register_read, i386_pseudo_register_write): Use
3074 register_size instead REGISTER_RAW_SIZE.
3075
3076 2003-08-10 Andrew Cagney <cagney@redhat.com>
3077
3078 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3079 sprintf. Make "name" constant.
3080
3081 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3082
3083 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3084 instead of frame_read_register.
3085 (i387_print_float_info): Use get_frame_register and
3086 get_frame_register_unsigned instead of frame_register_read.
3087
3088 * i386fbsd-nat.c: Include "i386-tdep.h".
3089 (child_resume): Make `eflags' an ULONGEST. Use
3090 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3091 instead of register_read and register_write.
3092
3093 * i386bsd-nat.c (fetch_inferior_registers,
3094 store_inferior_registers): Don't use && at the end of a line.
3095 (_initialize_i386bsd_nat): Fix typo.
3096
3097 * frame.c (_initialize_frame): Add missing backslash.
3098
3099 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3100 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3101 and supply_register instead of manipulating the register buffer
3102 directly.
3103
3104 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3105 * config/i386/nm-i386sol2.h
3106 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3107
3108 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3109 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3110 instructions that GCC likes to mingle into the prologue. Fixes
3111 gdb/1253 and gdb/1255.
3112
3113 2003-08-09 Andrew Cagney <cagney@redhat.com>
3114
3115 Fix GDB PR cli/926.
3116 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3117 * command.h (add_setshow_uinteger_cmd): Declare.
3118 * frame.c (set_backtrace_cmd): New function.
3119 (show_backtrace_cmd): New function.
3120 * frame.c (_initialize_frame): Replace "set/show
3121 backtrace-below-main" with "set/show backtrace past-main". Add
3122 command "set/show backtrace limit".
3123 (backtrace_past_main): Rename "backtrace_below_main".
3124 (backtrace_limit): New variable.
3125 (get_prev_frame): Update. Check the backtrace_limit.
3126
3127 2003-08-09 Andrew Cagney <cagney@redhat.com>
3128
3129 * defs.h (xstrprintf): Declare.
3130 * utils.c (xstrprintf): New function.
3131 * breakpoint.c (insert_breakpoints): Replace sprintf and
3132 non-literal format strings, with xstrprintf and cleanups.
3133 (delete_breakpoint,breakpoint_re_set): Ditto.
3134 (commands_command, insert_breakpoints): Ditto.
3135 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3136 (break_at_finish_command_1): Ditto.
3137
3138 2003-08-09 Andrew Cagney <cagney@redhat.com>
3139
3140 * MAINTAINERS (language support): List Adam Fedor as Objective C
3141 maintainer.
3142
3143 2003-08-08 J. Brobecker <brobecker@gnat.com>
3144
3145 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3146 are now multiarched.
3147
3148 2003-08-08 J. Brobecker <brobecker@gnat.com>
3149
3150 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3151 longer necessary now that hppa64 is partially multiarch'ed.
3152
3153 2003-08-08 Andrew Cagney <cagney@redhat.com>
3154
3155 * interps.c (interp_set): Check for a NULL "old_interp".
3156
3157 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3158
3159 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3160 (install-only): Support DESTDIR.
3161 (uninstall): Likewise.
3162 (install-gdbtk): Likewise.
3163
3164 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3167 contains something meaningful at all times.
3168
3169 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3170
3171 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3172
3173 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3174
3175 * MAINTAINERS (write after approval): Added self.
3176
3177 2003-08-07 Andrew Cagney <cagney@redhat.com>
3178
3179 * inferior.h (AT_SYMBOL): Define.
3180 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3181 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3182 * mips-tdep.c (mips_call_dummy_address): Delete function.
3183 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3184 set call_dummy_address.
3185
3186 2003-08-07 Andrew Cagney <cagney@redhat.com>
3187
3188 * language.c (op_error): Delete function.
3189 (binop_type_check): Delete function.
3190 * language.h (type_op_error, range_op_error): Delete macros.
3191 (op_error): Delete declaration.
3192
3193 2003-08-07 Andrew Cagney <cagney@redhat.com>
3194
3195 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3196
3197 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3198
3199 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3200 (x86_64_push_arguments): Skip the red zone.
3201
3202 2003-08-05 Andrew Cagney <cagney@redhat.com>
3203
3204 * reggroups.c (reggroup_next): Check for the final entry.
3205
3206 2003-08-04 Andrew Cagney <cagney@redhat.com>
3207
3208 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3209 * cli/cli-script.c (define_command): Call query directly, instead
3210 of passing it a buffer.
3211 * ocd.c (ocd_error): Pass error a constant format string.
3212 * remote-mips.c (mips_error): Use fputs_filtered.
3213
3214 * solib-svr4.c (_initialize_svr4_solib): Update
3215 register_gdbarch_data call.
3216 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3217
3218 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3219 (register_gdbarch_data): Delete "free" parameter. Update
3220 comments.
3221 * gdbarch.h, gdbarch.c: Re-generate.
3222 * reggroups.c (_initialize_reggroup): Update.
3223 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3224 * frame-base.c (_initialize_frame_base): Update.
3225 * frame-unwind.c (_initialize_frame_unwind): Update.
3226 * user-regs.c (_initialize_user_regs): Update.
3227 * remote.c (_initialize_remote): Update.
3228 * regcache.c (_initialize_regcache): Update.
3229
3230 * regcache.c (xfree_regcache_descr): Delete function.
3231 (_initialize_regcache): Update call to register_gdbarch_data.
3232 (init_regcache_descr, init_legacy_regcache_descr): Use
3233 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3234
3235 * remote.c (free_remote_state): Delete function.
3236 (_initialize_remote): Update register_gdbarch_data.
3237 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3238 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3239
3240 2003-08-04 Andrew Cagney <cagney@redhat.com>
3241
3242 * reggroups.c (struct reggroup_el): Define.
3243 (struct reggroups): Delete field "nr_group". Replace array
3244 "group" with a "first" to "last" linked list.
3245 (reggroups_init): Update. Allocate using gdbarch's obstack.
3246 (reggroups_free): Delete function.
3247 (add_group): Update. Add "el" parameter.
3248 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3249 (default_groups): Update.
3250 (reggroup_next): Replace reggroups.
3251 (reggroups_dump): Update.
3252 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3253 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3254 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3255
3256 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3257
3258 * Makefile.in (tui-interp.o): Update dependencies.
3259
3260 2003-08-04 David Carlton <carlton@kealia.com>
3261
3262 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3263 to internal_error call.
3264 * source.c (forward_search_command): Add "%s" format argument.
3265 (reverse_search_command): Ditto.
3266 * top.c (quit_confirm): Ditto.
3267 * cli/cli-setshow.c (do_setshow_command): Ditto.
3268 * cp-valprint.c (cp_print_class_method): Replace
3269 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3270 (cp_print_class_member): Ditto.
3271 * event-top.c (command_line_handler): Ditto.
3272 * linux-proc.c (linux_info_proc_cmd): Ditto.
3273 * p-typeprint.c (pascal_type_print_base): Ditto.
3274 * p-valprint.c (pascal_object_print_class_method): Ditto.
3275 (pascal_object_print_class_member): Ditto.
3276 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3277 * remote.c (remote_cisco_section_offsets): Ditto.
3278 * top.c (command_line_input): Ditto.
3279 * utils.c (vwarning,error_stream,quit): Ditto.
3280 * valprint.c (print_floating,print_binary_chars)
3281 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3282
3283 2003-08-04 Andrew Cagney <cagney@redhat.com>
3284
3285 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3286
3287 2003-08-02 Andrew Cagney <cagney@redhat.com>
3288
3289 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3290 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3291 amd64fbsd-nat.c.
3292
3293 2003-08-02 Andrew Cagney <cagney@redhat.com>
3294
3295 * Makefile.in: Update all dependencies and definitions.
3296
3297 2003-08-02 Adam Fedor <fedor@gnu.org>
3298
3299 * linespec.c (is_objc_method_format): New function
3300 (decode_line_1, locate_first_half): Use it.
3301 Fixes PR objc/1298
3302
3303 2003-08-01 Andrew Cagney <cagney@redhat.com>
3304
3305 * NEWS: Mention that m32r is multi-arch.
3306 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3307 * configure.tgt: Recognize m32r-*-*.
3308 * config/m32r/tm-m32r.h: Delete file.
3309 * config/m32r/m32r.mt: New file.
3310 * m32r-rom.c (m32r_upload_command): Use hostent only when
3311 gethostname succeeds, in order to avoid a compilation
3312 warning.
3313 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3314 compiler warning.
3315
3316 2003-08-01 Michael Snyder <msnyder@redhat.com>
3317
3318 * sh-tdep.c (sh_frame_align): New gdbarch method.
3319 (sh_gdbarch_init): Set up frame_align method.
3320
3321 2003-07-31 Michael Snyder <msnyder@redhat.com>
3322
3323 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3324 which is already covered by the new frames infrastructure.
3325
3326 2003-07-31 Andrew Cagney <cagney@redhat.com>
3327
3328 * user-regs.c (struct user_reg): Add "next" link.
3329 (struct user_regs): Replace "user" with "first" and "last" links.
3330 (append_user_reg): Add pre-allocated "reg" parameter.
3331 (builtin_user_regs): Provide initial value for "last".
3332 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3333 (user_regs_init): Allocate memory from the gdbarch obstack.
3334 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3335 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3336 linked list.
3337 (usernum_to_user_reg): New function.
3338 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3339 (value_of_user_reg): Use usernum_to_user_reg.
3340 (user_regs_free): Delete function.
3341 (_initialize_user_regs): Update register_gdbarch_data call.
3342
3343 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3344
3345 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3346
3347 2003-07-30 Michael Snyder <msnyder@redhat.com>
3348
3349 * value.h (value_being_returned): Add a struct_addr argument.
3350 * infcall.c (call_function_by_hand): Pass struct_addr to
3351 value_being_returned.
3352 * infcmd.c (print_return_value): Pass zero as struct_addr.
3353 * values.c (value_being_returned): If struct_addr is passed,
3354 use it instead of trying to recover it from the inferior.
3355
3356 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3357
3358 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3359 the prologue analyzer won't need to attempt to extract the pc
3360 value from the woefully incomplete dummy frame.
3361 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3362 possible. Disable code which modifies the frame.
3363
3364 2003-07-28 Andrew Cagney <cagney@redhat.com>
3365
3366 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3367 to level 2.
3368 (annotate_breakpoints_table, annotate_record): Ditto.
3369 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3370 (annotate_field_name_end, annotate_field_value): Ditto.
3371 (annotate_field_end, annotate_frame_source_begin): Ditto.
3372 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3373 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3374 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3375 (annotate_frame_address_end, annotate_frame_address): Ditto.
3376 (annotate_frame_args, annotate_frame_end): Ditto.
3377 (annotate_frame_where, annotate_arg_begin): Ditto.
3378 (annotate_arg_name_end, annotate_arg_value): Ditto.
3379 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3380 (annotate_function_call, annotate_signal_name): Ditto.
3381 (annotate_signal_string, annotate_signal_name_end): Ditto.
3382 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3383 (annotate_value_begin, annotate_value_history_value): Ditto.
3384 (annotate_value_history_end, annotate_value_end): Ditto.
3385 (annotate_display_begin, annotate_display_number_end): Ditto.
3386 (annotate_display_format, annotate_display_expression): Ditto.
3387 (annotate_display_expression_end, annotate_display_value): Ditto.
3388 (annotate_display_end, annotate_array_section_begin): Ditto.
3389 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3390 (annotate_elt, annotate_array_section_end): Ditto.
3391
3392 2003-07-28 Andrew Cagney <cagney@redhat.com>
3393
3394 * regcache.c (struct regcache_descr): Update comments on
3395 nr_raw_registers.
3396 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3397 sizeof_raw_register_valid_p.
3398 (init_regcache_descr): Set nr_raw_registers and
3399 sizeof_raw_register_valid_p before calling
3400 init_legacy_regcache_descr.
3401
3402 2003-07-28 Andrew Cagney <cagney@redhat.com>
3403
3404 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3405 MOD NUM_REGS.
3406
3407 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3408
3409 * thread.c (info_threads_command): Use get_selected_frame ().
3410 Check that there is at least one non-sentinel frame.
3411
3412 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3413
3414 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3415 (m68hc11_pop_frame): Remove.
3416 (m68hc11_frame_saved_pc): Remove.
3417 (m68hc11_frame_chain): Remove.
3418 (m68hc11_frame_init_saved_regs): Remove.
3419 (m68hc11_init_extra_frame_info): Remove.
3420 (m68hc11_store_struct_return): Remove.
3421 (m68hc11_saved_pc_after_call): Remove.
3422
3423 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3424
3425 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3426 frame unwind information.
3427 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3428 and adapted for frame unwinding.
3429 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3430 (m68hc11_unwind_pc): New function.
3431 (m68hc11_frame_unwind_cache): New function to analyze frames.
3432 (m68hc11_frame_this_id): New function to create new frame struct.
3433 (m68hc11_frame_prev_register): New function to unwind a register from
3434 the frame.
3435 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3436 (m68hc11_frame_p): New function for the above.
3437 (m68hc11_frame_base_address): New function to return fp of frame.
3438 (m68hc11_frame_args_address): Update for frame.
3439 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3440 (m68hc11_unwind_sp): New function.
3441 (m68hc11_unwind_dummy_id): New function.
3442 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3443 calls.
3444
3445 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3446
3447 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3448 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3449 when we are beyond the current pc.
3450
3451 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3452
3453 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3454 from m68hc11_push_arguments.
3455 (m68hc11_push_arguments): Remove.
3456 (m68hc11_push_return_address): Remove.
3457 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3458 handlers; remove deprecated_extra_stack_alignment_needed.
3459
3460 2003-07-27 Andrew Cagney <cagney@redhat.com>
3461
3462 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3463 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3464 REAL_PC and not the pointer.
3465 * hppa-hpux-tdep.c: Include frame.h
3466
3467 2003-07-27 Andrew Cagney <cagney@redhat.com>
3468
3469 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3470 GDB_MULTI_ACH_PARTIAL.
3471
3472 2003-07-27 Andrew Cagney <cagney@redhat.com>
3473
3474 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3475 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3476 operator at start and not end of line.
3477 (decode_prologue): Ditto.
3478 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3479 frame_unwind_register_unsigned instead of
3480 frame_unwind_unsigned_register.
3481 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3482 read_register.
3483 (m32r_push_dummy_call): Use register_size instead of
3484 REGISTER_RAW_SIZE.
3485 (m32r_frame_sniffer): Replace m32r_frame_p.
3486 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3487 * m32r-rom.c (report_transfer_performance): Delete extern
3488 declaration.
3489 (m32r_load, m32r_upload_command): Use print_transfer_performance
3490 instead of report_transfer_performance.
3491 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3492 / add_show_from_set.
3493
3494 2003-07-26 Andrew Cagney <cagney@redhat.com>
3495
3496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3497 store_return_value and extract_struct_value_address.
3498
3499 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3500
3501 PR c++/1267
3502 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3503 NULL, default to the section containing PC.
3504
3505 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3506
3507 * NEWS: Mention "regs" deprecated for m68hc11 too.
3508
3509 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3510 (m68hc11_print_register): New function to print out one register.
3511 (m68hc11_print_registers_info): New function to print registers.
3512 (show_regs): Deprecate and use the above.
3513 (m68hc11_gdbarch_init): Install the print_registers_info.
3514
3515 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3516
3517 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3518 that we have a SIGTRAP before returning non-zero.
3519
3520 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3521 Elena Zannoni <ezannoni@redhat.com>
3522
3523 * linespec.c (decode_line_2): Avoid crash if
3524 find_function_start_sal() returns empty record.
3525
3526 2003-07-23 Andreas Schwab <schwab@suse.de>
3527
3528 * ia64-tdep.c (ia64_print_insn): New function.
3529 (ia64_gdbarch_init): Set print_insn to it.
3530 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3531 deprecated_tm_print_insn_info.
3532
3533 2003-07-22 Michael Snyder <msnyder@redhat.com>
3534
3535 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3536 handle 8-bit returns (long long).
3537 (h8300h_extract_return_value): Ditto.
3538 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3539
3540 2003-07-22 Andrew Cagney <cagney@redhat.com>
3541
3542 * gdbarch.c Include "gdb_obstack.h".
3543 (struct gdbarch): Add an "obstack".
3544 (alloc_gdbarch_data): Allocate the gdbarch data using
3545 GDBARCH_OBSTACK_CALLOC.
3546 (free_gdbarch_data): Delete function.
3547 (gdbarch_obstack_zalloc): New function.
3548 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3549 Assert that the architecture is not initialized.
3550 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3551 vector from the obstack.
3552 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3553 architecture obstack.
3554 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3555 (set_gdbarch_data): Assert that the data is not initialized.
3556 (struct gdbarch_data): Delete member "free".
3557 (register_gdbarch_data): Do not initialize "free".
3558 * gdbarch.h, gdbarch.c: Re-generate.
3559
3560 2003-07-22 Andrew Cagney <cagney@redhat.com>
3561
3562 * configure.in (build_warnings): Add -Wformat-nonliteral.
3563 * configure: Re-generate.
3564
3565 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3566
3567 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3568
3569 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3570
3571 * findvar.c (read_var_value): Remove case for thread local storage
3572 variables. It is now entirely handled by the dwarf2 location
3573 expression code.
3574 * printcmd.c (address_info): Ditto.
3575 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3576 enumeration value.
3577 (struct symbol): Remove objfile field, which was used by
3578 LOC_THREAD_LOCAL_STATIC only.
3579 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3580 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3581 usage of objfile pointer.
3582 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3583 thread local variables.
3584 Add include of objfiles.h.
3585 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3586 storage variables.
3587 * Makefile.in (dwarf2loc.o): Update dependencies.
3588
3589 2003-07-22 Andrew Cagney <cagney@redhat.com>
3590
3591 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3592 get_frame_base.
3593 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3594 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3595 (struct value): Add opaque declaration.
3596 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3597
3598 2003-07-21 Andrew Cagney <cagney@redhat.com>
3599
3600 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3601 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3602
3603 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3604
3605 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3606 regcache_cooked_read_unsigned instead of read_register.
3607 (m68hc11_saved_pc_after_call): Likewise.
3608 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3609 instead of write_register.
3610 (m68hc11_register_type): New function.
3611 (m68hc11_register_virtual_type): Remove.
3612 (m68hc11_store_return_value): Convert to use the regcache.
3613 (m68hc11_extract_struct_value_address): Likewise.
3614 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3615 m68hc11_register_type; undeprecate store_return_value and
3616 extract_struct_value_address.
3617
3618 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3619
3620 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3621 and translate to use regcache.
3622 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3623
3624 2003-07-18 Andrew Cagney <cagney@redhat.com>
3625
3626 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3627 * gdbarch.h, gdbarch.c: Re-generate.
3628 * i386-tdep.c (i386_gdbarch_init): Do not set
3629 DWARF2_BUILD_FRAME_INFO.
3630 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3631 unconditionally.
3632 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3633 DWARF2_BUILD_FRAME_INFO.
3634
3635 2003-07-18 Andrew Cagney <cagney@redhat.com>
3636
3637 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3638 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3639
3640 2003-07-18 Andrew Cagney <cagney@redhat.com>
3641
3642 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3643 frame_unwind_address_in_block, instead of frame_pc_unwind.
3644 (dwarf2_frame_cache): Ditto.
3645
3646 2003-07-18 Andrew Cagney <cagney@redhat.com>
3647
3648 * user-regs.h (struct gdbarch): Declare opaque.
3649 * ui-out.h (struct ui_file): Declare opaque.
3650 * dwarf2-frame.h (struct frame_info): Declare opaque.
3651
3652 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3653
3654 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3655 #include "...".
3656 (procfs_meminfo): Change strerror to safe_strerror.
3657 (procfs_can_run): Remove K&R badness.
3658
3659 2003-07-17 Michael Snyder <msnyder@redhat.com>
3660
3661 * remote-sim.c: Comment typo fix.
3662
3663 2003-07-17 Andrew Cagney <cagney@redhat.com>
3664
3665 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3666 configure.
3667 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3668 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3669 GDB_MULTI_ARCH_PARTIAL.
3670
3671 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3672
3673 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3674 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3675 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3676
3677 2003-07-16 Theodore A. Roth <troth@openavr.org>
3678
3679 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3680 found.
3681 (avr_frame_unwind_cache): Don't unwind FP for main.
3682 Update a comment.
3683 Save the computed prev_sp.
3684 (avr_saved_regs_unwinder): Remove function.
3685 (avr_frame_prev_register): Use PC unwind logic from
3686 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3687
3688 2003-07-16 Andrew Cagney <cagney@redhat.com>
3689
3690 * frame-base.h (frame_base_p_ftype): Delete definition.
3691 (frame_base_append_predicate): Delete declaration.
3692 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3693 (frame_unwind_append_predicate): Delete declaration.
3694 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3695 (append_predicate): Delete parameter "p".
3696 (frame_unwind_append_predicate): Delete function.
3697 (frame_unwind_append_sniffer): Update call to append_predicate.
3698 (frame_unwind_free): Delete function.
3699 (_initialize_frame_unwind): Pass NULL as "free" to
3700 register_gdbarch_data.
3701 (frame_unwind_init): Append the dummy_frame_sniffer.
3702 (frame_unwind_find_by_frame): Simplify.
3703 * frame-base.c (struct frame_base_table): Delete field "p".
3704 (append_predicate): Delete parameter "p".
3705 (frame_base_append_predicate): Delete function.
3706 (frame_base_append_sniffer): Update call to append_predicate.
3707 (frame_base_free): Delete function.
3708 (frame_base_find_by_frame): Simplify.
3709 (_initialize_frame_base): Pass NULL as "free" to
3710 register_gdbarch_data.
3711 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3712 (x86_64_sigtramp_frame_sniffer): Replace
3713 "x86_64_sigtramp_frame_p".
3714 (x86_64_init_abi): Set the frame unwind sniffers.
3715 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3716 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3717 (m68k_gdbarch_init): Set the frame unwind sniffers.
3718 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3719 "i386_sigtramp_frame_p".
3720 (i386_frame_sniffer): Replace "i386_frame_p".
3721 (i386_gdbarch_init): Set the frame unwind sniffers.
3722 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3723 (avr_gdbarch_init): Set the frame unwind sniffers.
3724 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3725 "alpha_sigtramp_frame_p"
3726 (alpha_heuristic_frame_sniffer): Replace
3727 "alpha_heuristic_frame_p".
3728 (alpha_gdbarch_init): Set the frame unwind sniffers.
3729 (alpha_dwarf2_init_abi): Ditto.
3730 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3731 "alpha_debug_frame_p".
3732 (alpha_mdebug_frame_base_sniffer): Replace
3733 "alpha_mdebug_frame_base_p".
3734 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3735 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3736 (d10v_gdbarch_init): Set the frame unwind sniffer.
3737 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3738 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3739 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3740 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3741 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3742 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3743
3744 2003-07-16 Michael Snyder <msnyder@redhat.com>
3745
3746 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3747 should go thru sh_dsp_register_sim_regno, else the dsp regs
3748 will not get the right values.
3749
3750 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3751
3752 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3753 deprecated_store_floating by call to store_typed_floating.
3754 (sh_sh4_register_convert_to_raw): Substitute call to
3755 deprecated_extract_floating by call to extract_typed_floating.
3756
3757 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3758
3759 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3760
3761 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3762
3763 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3764 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3765 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3766 as possible.
3767 (do_pseudo_register): Remove.
3768 (sh_push_dummy_code): New function.
3769 (sh64_store_struct_return): Rename from sh_store_struct_return.
3770 Only called for sh64 now.
3771 (sh_extract_struct_value_address): Regcache'ify.
3772 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3773 and accomodate new tasks.
3774 (sh64_push_return_address): Rename from sh_push_return_address.
3775 Only called for sh64 now.
3776 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3777 Regcache'ify.
3778 (sh3e_sh4_extract_return_value): Regcache'ify.
3779 (sh_default_store_return_value): Ditto.
3780 (sh3e_sh4_store_return_value): Ditto.
3781 (sh_default_register_byte): Remove.
3782 (sh_sh4_register_byte): Remove.
3783 (sh_default_register_raw_size): Remove.
3784 (sh_sh4_register_raw_size): Remove.
3785 (sh_register_virtual_size): Remove.
3786 (sh_sh3e_register_virtual_type): Remove.
3787 (sh_sh3e_register_type): New function.
3788 (sh_sh4_register_virtual_type): Remove.
3789 (sh_sh4_register_type): New function.
3790 (sh_default_register_virtual_type): Remove.
3791 (sh_default_register_type): New function.
3792 (do_fv_register_info): Add parameters to accomodate call from
3793 sh_print_registers_info.
3794 (do_dr_register_info): Ditto.
3795 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3796 Add parameters to accomodate call from sh_print_registers_info.
3797 (sh_do_fp_register): Ditto.
3798 (sh64_do_pseudo_register): Call do_dr_register_info,
3799 do_fv_register_info and sh_do_fp_register with default parameters.
3800 (sh_do_register): Add parameters to accomodate call from
3801 sh_print_registers_info.
3802 (sh_print_register): Ditto.
3803 (sh_print_registers_info): Rename from sh_do_registers_info.
3804 Add parameters to be used as gdbarch_print_registers_info
3805 implementation. Accomodate removed do_pseudo_register function
3806 pointer.
3807 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3808 function pointer. Call sh_print_register with default parameters.
3809 (sh64_do_registers_info): Call sh_print_registers_info instead of
3810 sh_do_registers_info.
3811 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3812 detection of deprecated vs. non-deprecated functionality.
3813 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3814 function pointer assignments by direct function calls.
3815
3816 2003-07-15 Andrew Cagney <cagney@redhat.com>
3817
3818 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3819 (frame_register_unwind, create_new_frame): Ditto.
3820 (legacy_get_prev_frame, get_frame_type): Ditto.
3821 (get_frame_base_address): Use frame_base_find_by_frame.
3822 (get_frame_locals_address): Use frame_base_find_by_frame.
3823 (get_frame_args_address): Use frame_base_find_by_frame.
3824 * frame-base.h (frame_base_sniffer_ftype): Declare.
3825 (frame_base_append_sniffer): Declare.
3826 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3827 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3828 (frame_base_append_sniffer): New function.
3829 (frame_base_append_predicate): Add a NULL sniffer.
3830 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3831 (struct frame_base_table): Add "sniffer".
3832 (frame_base_free): Free the "sniffer" table.
3833 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3834 (frame_unwind_append_sniffer): Declare.
3835 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3836 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3837 (struct frame_unwind_table): Add "sniffer", delete "middle".
3838 (append_predicate): Add "sniffer" parameter, append the sniffer.
3839 (frame_unwind_init): Update append_predicate call.
3840 (frame_unwind_append_sniffer): New function.
3841 (frame_unwind_append_predicate): Update append_predicate call.
3842 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3843
3844 2003-07-15 Andrew Cagney <cagney@redhat.com>
3845
3846 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3847 before code inhibiting repeated unwind attempts. Add to
3848 commentary on that test's problems.
3849 * blockframe.c (inside_main_func): Look for "main" in the minimal
3850 symbol table.
3851 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3852 identical.
3853
3854 2003-07-15 Andrew Cagney <cagney@redhat.com>
3855
3856 * complaints.c (struct explanation): Define.
3857 (struct complaints): Change type of "explanation" to "struct
3858 explanation".
3859 (symfile_explanations): Convert to a "struct explanation" table.
3860 (vcomplaint): Update.
3861
3862 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3863
3864 * x86-64-linux-nat.c (regmap): Removed.
3865 (supply_gregset, fill_gregset): Call
3866 x86_64_linux_(fill,supply)_gregset functions.
3867 * x86-64-linux-tdep.c (USER_*): New defines.
3868 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3869 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3870 New functions.
3871 (fetch_core_registers): Ditto.
3872 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3873 * x86-64-linux-tdep.h: New file.
3874 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3875 and core-regset.o.
3876 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3877
3878 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3879
3880 * x86-64-tdep.c (x86_64_store_return_value): Use
3881 regcache_cooked_write_part instead of regcache_cooked_write.
3882
3883 * configure.host: Add x86_64-*-freebsd*.
3884 * configure.tgt: Add x86_64-*-freebsd*.
3885 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3886 * amd64fbsd-nat.c: New file.
3887 * amd64fbsd-tdep.c: New file.
3888 * config/i386/nm-fbsd64.h: New file.
3889 * config/i386/fbsd64.mh: New file.
3890 * config/i386/fbsd64.mt: New file.
3891
3892 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3893
3894 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3895 `sc_regs_offset' and `sc_fpregs_offset'.
3896 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3897 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3898 (alpha_sigtramp_register_address): Rewrite to use new members of
3899 `struct gdbarch_tdep'.
3900 (alpha_gdbarch_init): Initialize new members of struct
3901 gdbarch_tdep'.
3902 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3903 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3904 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3905 (alphafbsd_pc_in_sigtramp): Implement.
3906 (alphafbsd_sigtramp_offset): New function.
3907 (alphafbsd_sigcontext_addr): New function.
3908 (alphafbsd_init_abi): Initialize signal trampoline related members
3909 of `struct gdbarch_tdep'.
3910 (_initialize_alphafbsd_tdep): Add prototype.
3911
3912 2003-07-11 Theodore A. Roth <troth@openavr.org>
3913
3914 * Makefile.in (install-only): Quote sed expression when generating
3915 transformed_name.
3916
3917 2003-07-11 Richard Henderson <rth@redhat.com>
3918
3919 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3920 * dwarf2-frame.c: Include complaints.h.
3921 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3922 variable initialization; return NULL on error.
3923 (decode_frame_entry): New.
3924
3925 2003-07-11 Andrew Cagney <cagney@redhat.com>
3926
3927 * frame.h (frame_address_in_block): Delete declaration.
3928 * blockframe.c (frame_address_in_block): Delete function.
3929 (get_frame_block): Use get_frame_address_in_block.
3930 (block_innermost_frame): Ditto.
3931 * stack.c (print_frame, backtrace_command_1): Ditto.
3932
3933 * frame.h (get_frame_address_in_block): Declare.
3934 (frame_unwind_address_in_block): Declare.
3935 * frame.c (frame_unwind_address_in_block): New function.
3936 (get_frame_address_in_block): New function.
3937
3938 2003-07-10 Andrew Cagney <cagney@redhat.com>
3939
3940 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3941 pre-default. Note: re-generate has no effect.
3942
3943 2003-07-10 Andrew Cagney <cagney@redhat.com>
3944
3945 * gdbarch.sh: When a variable, but not a function, compare against
3946 0. Fix problem in previous patch.
3947 * gdbarch.c: Re-generate.
3948
3949 2003-07-10 Andrew Cagney <cagney@redhat.com>
3950
3951 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3952 functions against NULL, not 0.
3953 * gdbarch.c: Re-generate.
3954
3955 2003-07-10 Fred Fish <fnf@ninemoons.com>
3956
3957 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3958 null string instead of a null pointer.
3959 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3960
3961 2003-07-09 Michael Snyder <msnyder@redhat.com>
3962
3963 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3964
3965 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3966
3967 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3968 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3969 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3970 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3971 * x86-64-tdep.c: ... from here.
3972
3973 2003-07-09 Andreas Schwab <schwab@suse.de>
3974
3975 * m68k-tdep.h (enum struct_return): Define.
3976 (struct gdbarch_tdep): Add struct_return.
3977 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3978 bytes are padded to the right, not to the left. Pass struct value
3979 address in register %a1, not on stack.
3980 (m68k_use_struct_convention): New function.
3981 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3982 struct_return in tdep to pcc_struct_return.
3983 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3984 reg_struct_return.
3985
3986 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3987
3988 * somread.c (som_symfile_offsets): Fix compilation error.
3989
3990 2003-07-09 Andrew Cagney <cagney@redhat.com>
3991
3992 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3993 Add comments about the checks.
3994
3995 2003-07-08 Andrew Cagney <cagney@redhat.com>
3996
3997 * Makefile.in: Make dependency section headers consistent.
3998 (config_h): Move to $BUILD headers section.
3999 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
4000 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
4001 (ada-exp.tab.c): Move to YACC/LEX section.
4002 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
4003 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
4004
4005 2003-07-08 Kris Warkentin <kewarken@qnx.com>
4006
4007 * nto-procfs.c: Cleaned up a bunch of ARI hits.
4008 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
4009 of strerror with safe_strerror, use ISO C function definitions,
4010 and replace instances of sprintf with snprintf.
4011
4012 2003-07-07 Andrew Cagney <cagney@redhat.com>
4013
4014 * frame.c (get_prev_frame): Enable check for identical frames.
4015 Update comments. Update error messages.
4016
4017 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4018
4019 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4020
4021 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4022
4023 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4024 sort_symtab_syms, no longer necessary.
4025
4026 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4027
4028 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4029
4030 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4031
4032 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4033 (mips_register_byte): Likewise.
4034
4035 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4036
4037 * Makefile.in (sparc_tdep_h): New.
4038 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4039 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4040 * sparc-linux-nat.c: Include "sparc-tdep.h".
4041 * sparc-nat.c: Likewise.
4042 * sparc-tdep.c: Likewise.
4043 * sparc64nbsd-nat.c: Likewise.
4044 * sparcnbsd-nat.c: Likewise.
4045 * sparcnbsd-tdep.c: Likewise.
4046 * sparc-tdep.h: New file.
4047 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4048 and sparc_npc_regnum.
4049
4050 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4051
4052 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4053 (mips_linux_cannot_store_register): List supported instead of
4054 unsupported registers.
4055
4056 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4057
4058 * disasm.c (dump_insns): Separate instructions from addresses.
4059
4060 2003-07-07 Andreas Schwab <schwab@suse.de>
4061
4062 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4063 dependencies.
4064 * m68k-tdep.c (NUM_FREGS): Delete.
4065 (SIG_PC_FP_OFFSET): Delete.
4066 (TARGET_M68K): Delete.
4067 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4068 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4069 P_MOVEL_SP, P_MOVEML_SP): Define.
4070 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4071 P_TRAP): Delete.
4072 (m68k_register_raw_size): Delete.
4073 (m68k_register_virtual_size): Delete.
4074 (m68k_register_type): Renamed from m68k_register_virtual_type and
4075 add gdbarch argument.
4076 (m68k_store_struct_return): Delete.
4077 (m68k_deprecated_extract_return_value): Delete.
4078 (m68k_deprecated_extract_struct_value_address): Delete.
4079 (m68k_frame_chain): Delete.
4080 (m68k_frame_saved_pc): Delete.
4081 (m68k_fix_call_dummy): Delete.
4082 (m68k_push_dummy_frame): Delete.
4083 (m68k_pop_frame): Delete.
4084 (m68k_extract_return_value): New function.
4085 (m68k_store_return_value): Rewrite using regcache.
4086 (m68k_extract_struct_value_address): Rewrite using regcache.
4087 (m68k_push_dummy_call): New function.
4088 (struct m68k_frame_cache): Define.
4089 (m68k_alloc_frame_cache): New function.
4090 (m68k_analyze_frame_setup): New function.
4091 (m68k_analyze_register_saves): New function.
4092 (m68k_analyze_prologue): New function.
4093 (m68k_skip_prologue): Rewrite using above functions.
4094 (m68k_unwind_pc): New function.
4095 (m68k_frame_cache): New function.
4096 (m68k_frame_this_id): New function.
4097 (m68k_frame_prev_register): New function.
4098 (m68k_frame_unwind): New variable.
4099 (m68k_frame_p): New function.
4100 (m68k_sigtramp_frame_cache): New function.
4101 (m68k_sigtramp_frame_this_id): New function.
4102 (m68k_sigtramp_frame_prev_register): New function.
4103 (m68k_sigtramp_frame_unwind): New variable.
4104 (m68k_sigtramp_frame_p): New function.
4105 (m68k_frame_base_address): New function.
4106 (m68k_frame_base): New function.
4107 (m68k_unwind_dummy_id): New function.
4108 (fill_gregset): Use regcache_collect.
4109 (fill_fpregset): Likewise.
4110 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4111 defined.
4112 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4113 deprecated_init_frame_pc, deprecated_store_struct_return,
4114 deprecated_extract_return_value, deprecated_store_return_value,
4115 deprecated_frame_chain, deprecated_frame_saved_pc,
4116 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4117 deprecated_register_virtual_size,
4118 deprecated_max_register_raw_size,
4119 deprecated_max_register_virtual_size,
4120 deprecated_register_virtual_type, deprecated_register_size,
4121 deprecated_register_byte, deprecated_register_bytes,
4122 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4123 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4124 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4125 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4126 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4127 deprecated_push_dummy_frame, deprecated_pop_frame,
4128 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4129 only if SYSCALL_TRAP is defined. Set extract_return_value,
4130 store_return_value, extract_struct_value_address, register_type,
4131 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4132 predicates.
4133 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4134 M68K_MAX_REGISTER_SIZE): Define.
4135 (struct m68k_sigtramp_info): Define.
4136 (struct gdbarch_tdep): Add get_sigtramp_info.
4137 * m68klinux-nat.c (fetch_register): Use register_size instead of
4138 REGISTER_RAW_SIZE. Don't put assignment in if.
4139 (store_register): Likewise.
4140 (fetch_inferior_registers): Likewise.
4141 (store_inferior_registers): Likewise.
4142 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4143 (m68k_linux_frame_saved_pc): Delete.
4144 (m68k_linux_sigcontext_reg_offset,
4145 m68k_linux_ucontext_reg_offset): Define.
4146 (m68k_linux_get_sigtramp_info): New function.
4147 (m68k_linux_extract_return_value): Rewrite using regcache.
4148 (m68k_linux_store_return_value): Likewise.
4149 (m68k_linux_extract_struct_value_address): Likewise.
4150 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4151 Don't set deprecated_frame_saved_pc,
4152 deprecated_extract_return_value, deprecated_store_return_value,
4153 deprecated_extract_struct_value_address. Set
4154 extract_return_value, store_return_value,
4155 extract_struct_value_address.
4156
4157 2003-07-07 Andrew Cagney <cagney@redhat.com>
4158
4159 * expprint.c: Include "user-regs.h" instead of "frame.h".
4160 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4161 frame_map_regnum_to_name.
4162 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4163 (frame_map_name_to_regnum): Simplify, call
4164 user_reg_map_name_to_regnum.
4165 (frame_map_regnum_to_name): Simplify, call
4166 user_reg_map_regnum_to_name.
4167 (frame_register_unwind): Update.
4168 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4169 (_initialize_frame_reg): Call user_reg_add_builtin.
4170 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4171 (value_of_register): Use value_of_user_reg.
4172 * eval.c (evaluate_subexp_standard): Update.
4173 * parse.c (write_dollar_variable): Update.
4174 * d10v-tdep.c (d10v_print_registers_info): Update.
4175 * infcmd.c (registers_info): Update.
4176 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4177 (builtin_regs_h): Delete macro.
4178 (user_regs_h): Define.
4179 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4180 (builtin-regs.o): Delete target.
4181 (user-regs.o): Specify dependencies.
4182 (expprint.o): Update dependencies.
4183 (findvar.o): Update dependencies.
4184 (frame.o): Update dependencies.
4185 (std-regs.o): Update dependencies.
4186
4187 2003-07-06 Christopher Faylor <cgf@redhat.com>
4188
4189 * win32-nat.c (solib_symbols_add): Use one variable for all section
4190 address stuff. Pass variable rather than address of variable to
4191 safe_symbol_file_add.
4192
4193 2003-07-06 Andreas Schwab <schwab@suse.de>
4194
4195 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4196
4197 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4198
4199 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4200
4201 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4202
4203 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4204
4205 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4206
4207 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4208 * config/i386/nto.mh: New file.
4209 * config/i386/nm-nto.h: New file.
4210 * configure.host: Add i[3456]86-*-nto*.
4211
4212 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4213
4214 * remote-vx.c (vx_add_symbols): Fix compilation error.
4215
4216 2003-07-03 Andrew Cagney <cagney@redhat.com>
4217
4218 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4219 * gdbarch.h, gdbarch.c: Re-generate.
4220 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4221 (legacy_register_name): Declare.
4222 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4223 (REGISTER_NAME): Define.
4224 * sparc-tdep.c (legacy_register_name): New function.
4225 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4226 (REGISTER_NAME): Define.
4227 (hppa64_register_name): Declare.
4228 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4229 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4230 (hppa64_register_name): New function.
4231 (hppa_register_name): New function.
4232 * arch-utils.c (legacy_register_name): Delete.
4233 * arch-utils.h (legacy_register_name): Delete.
4234
4235 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4236
4237 * cli/cli-interp.c (cli_interpreter_resume): Update the
4238 cli_uiout's stream to gdb_stdout.
4239
4240 2003-07-03 Andrew Cagney <cagney@redhat.com>
4241
4242 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4243 predicate.
4244 * gdbarch.h, gdbarch.c: Re-generate.
4245 * regcache.c (init_regcache_descr): Use legacy code when either
4246 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4247
4248 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4249
4250 * NEWS: Move "set logging" entry into GDB 6.0 section.
4251
4252 2003-07-02 Jim Blandy <jimb@redhat.com>
4253
4254 * s390-tdep.c (struct frame_extra_info): new member:
4255 'stack_bought_valid'.
4256 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4257 initialize fextra_info->stack_bought.
4258 (s390_frameless_function_invocation): Don't trust the value of
4259 fextra_info_ptr->stack_bought unless
4260 fextra_info->stack_bought_valid is set.
4261
4262 New S390 prologue analyzer.
4263 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4264 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4265 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4266 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4267 compute_x_addr, s390_on_stack, s390_store,
4268 s390_get_signal_frame_info): New functions.
4269 (S390_NUM_SPILL_SLOTS): New macro.
4270 (s390_get_frame_info): Rewritten.
4271 (is_arg_reg): Deleted.
4272
4273 Break out the decoding of S/390 instructions into separate
4274 functions, to make it more legible, and easier to check
4275 against the spec.
4276 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4277 is_rx, is_rxe): New functions.
4278 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4279 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4280 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4281 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4282 enums for opcode values. (Is this an improvement?)
4283
4284 2003-07-02 Andrew Cagney <cagney@redhat.com>
4285
4286 * i386-tdep.c: Revert change committed as part of trad-frame code
4287 below.
4288
4289 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4290
4291 * breakpoint.c (insert_catchpoint): Make static.
4292
4293 2003-07-02 Andreas Schwab <schwab@suse.de>
4294
4295 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4296 former ia64_push_arguments and ia64_push_return_address, and use
4297 regcache functions instead of read/write_register.
4298 (ia64_gdbarch_init): Set push_dummy_call instead of
4299 deprecated_push_arguments and deprecated_push_return_address.
4300
4301 2003-07-01 Andreas Jaeger <aj@suse.de>
4302
4303 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4304 before the call.
4305 Set %rax only to number of SSE registers used.
4306
4307 2003-07-01 Andrew Cagney <cagney@redhat.com>
4308
4309 * trad-frame.h: Update comments, a -1 .addr is reserved.
4310 (trad_frame_value_p, trad_frame_addr_p): Declare.
4311 (trad_frame_reg_p): Declare.
4312 (trad_frame_set_value): Rename trad_frame_register_value.
4313 (trad_frame_set_unknown): Declare.
4314 * trad-frame.c (trad_frame_realreg_p): New function.
4315 (trad_frame_addr_p, trad_frame_value_p): New function.
4316 (trad_frame_set_unknown): New function.
4317 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4318 (trad_frame_prev_register): Use trad_frame_realreg_p,
4319 trad_frame_addr_p and trad_frame_value_p.
4320 (trad_frame_set_value): Rename trad_frame_register_value.
4321 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4322 and trad_frame_set_value.
4323
4324 2003-06-30 Jim Blandy <jimb@redhat.com>
4325
4326 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4327 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4328 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4329 for 16 registers, and then 32 more bytes.
4330 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4331 New macros.
4332 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4333 Move up in the file, since it's now used by is_simple_arg.
4334 (is_simple_arg): Don't assume registers are four bytes long.
4335 Exclude all double arguments. Extended floats are not simple
4336 args.
4337 (is_power_of_two): New function.
4338 (pass_by_copy_ref): Call is_power_of_two, and check that the
4339 length fits in a register, rather than listing all the acceptable
4340 sizes. Extended floats are not passed by reference.
4341 (s390_push_arguments): Don't assume registers are four bytes long.
4342 Reserve an argument register to point to the buffer for structures
4343 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4344 S390_STACK_FRAME_OVERHEAD.
4345
4346 2003-06-30 Andreas Schwab <schwab@suse.de>
4347
4348 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4349 format error message.
4350
4351 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4352
4353 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4354
4355 2003-06-30 David Carlton <carlton@kealia.com>
4356
4357 Band-aid for PR c++/1245.
4358 * Makefile.in (cp-support.o): Depend on complaints_h.
4359 * cp-support.c: Include complaints.h. Add declaration for
4360 find_last_component.
4361 (cp_find_first_component): Separate code into
4362 cp_find_first_component_aux.
4363 (cp_find_first_component_aux): Call demangled_name_complaint.
4364 (demangled_name_complaint): New.
4365
4366 2003-06-30 Andrew Cagney <cagney@redhat.com>
4367
4368 * remote.c (remote_write_bytes): Explicitly compute and then use
4369 the payload size. Update comments to reflect. Fixes problem of
4370 GDB not sending small packets as found by Fred Fish.
4371
4372 2003-06-30 Andrew Cagney <cagney@redhat.com>
4373
4374 * remote.c (remote_async_wait): Fix -Wformat problem.
4375
4376 2003-06-29 Andrew Cagney <cagney@redhat.com>
4377
4378 * remote.c (remote_wait): Call error, and not warning, when the
4379 packet is corrupt.
4380 (remote_async_wait): Ditto.
4381
4382 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * sparc-tdep.c (sparc_y_regnum): Make external again.
4385
4386 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4387
4388 * cli/cli-logging.c (pop_output_files): Add void to function
4389 definition.
4390
4391 2003-06-29 Andrew Cagney <cagney@redhat.com>
4392
4393 * frame.c (frame_register_unwind): Use unsigned char when dumping
4394 the buffer contents.
4395
4396 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4397
4398 * cli/cli-logging.c: New file.
4399 * cli-out.c (struct ui_out_data): Add original_stream.
4400 (cli_redirect): New function.
4401 (cli_ui_out_impl): Add cli_redirect.
4402 (cli_out_new): Initialize original_stream.
4403 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4404 (uo_redirect, ui_out_redirect): New.
4405 * ui-out.h (struct ui_out_impl): Add redirect member.
4406 (redirect_ftype): New.
4407 (ui_out_redirect): Add prototype.
4408 * Makefile.in: Add rules for cli-logging.c.
4409 * NEWS: Mention "set logging".
4410
4411 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4412
4413 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4414
4415 2003-06-27 Andrew Cagney <cagney@redhat.com>
4416
4417 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4418 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4419 * avr-tdep.c (avr_call_dummy_address): Delete function.
4420 (avr_gdbarch_init): Do not set call_dummy_address.
4421
4422 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4423
4424 * symfile.c (syms_from_objfile): Move variables to inner block.
4425 Move the checks for the non-mainline case a bit earlier to avoid
4426 doing some useless computations.
4427
4428 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4429
4430 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4431
4432 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4433
4434 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4435 sections.
4436
4437 2003-06-26 Michael Chastain <mec@shout.net>
4438
4439 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4440 gdb/testsuite/gdb.c++/pr-1210.exp.
4441
4442 2003-06-26 Andrew Cagney <cagney@redhat.com>
4443
4444 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4445 altivec_expression.h and altivec_registers.h.
4446
4447 2003-06-26 Andrew Cagney <cagney@redhat.com>
4448
4449 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4450 info->mach when MIPS16. Patch suggested by Fred Fish.
4451
4452 2003-06-26 Andrew Cagney <cagney@redhat.com>
4453
4454 * utils.c (internal_vproblem): Print the problem to a reason
4455 buffer and then pass to query. Make the msg variable more local.
4456
4457 2003-06-26 Andrew Cagney <cagney@redhat.com>
4458
4459 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4460 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4461 * gdbarch.h, gdbarch.c: Re-generate.
4462 * frame-base.c (default_frame_args_address): Update. Use
4463 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4464 not available.
4465 (default_frame_locals_address): Ditto for
4466 DEPRECATED_FRAME_LOCALS_ADDRESS.
4467 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4468 (vax_frame_num_args): Update.
4469 (vax_gdbarch_init): Update.
4470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4471 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4472 * mcore-tdep.c (mcore_gdbarch_init): Update.
4473 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4474 * ia64-tdep.c (ia64_gdbarch_init): Update.
4475 * symtab.h (address_class): Update comments.
4476 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4477 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4478 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4479 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4480 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4481 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4482 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4483 * alpha-mdebug-tdep.c: Update.
4484 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4485
4486 2003-06-26 Andreas Jaeger <aj@suse.de>
4487
4488 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4489 of SSE registers so that varargs functions work. Rework handling
4490 of passing arguments on the stack.
4491 (x86_64_store_return_value): Return double and float values in SSE
4492 register.
4493
4494 2003-06-24 Michael Chastain <mec@shout.net>
4495
4496 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4497 the "constructor breakpoints ignored" bug.
4498
4499 2003-06-25 David Carlton <carlton@kealia.com>
4500
4501 * MAINTAINERS: Update e-mail address.
4502
4503 2003-06-24 Jim Blandy <jimb@redhat.com>
4504
4505 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4506
4507 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4508 function.
4509 (ppc_linux_init_abi): Register it as the
4510 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4511
4512 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4513 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4514 method.
4515
4516 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4517 (ppc64_standard_linkage_target): Use it.
4518
4519 2003-06-23 Andrew Cagney <cagney@redhat.com>
4520
4521 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4522 for 0 "int0" and 4 "int32" sized registers.
4523 * gdbtypes.c (builtin_type_int0): Define.
4524 (build_gdbtypes): Initialize builtin_type_int0.
4525 * gdbtypes.h (builtin_type_int0): Declare.
4526
4527 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4528
4529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4530 as characters are unsigned.
4531
4532 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4533
4534 PR gdb/1179
4535 * dwarfread.c (struct_type): Skip static fields without crashing.
4536
4537 2003-06-22 Andrew Cagney <cagney@redhat.com>
4538
4539 GDB 6.0 branch created.
4540 * README: Update.
4541 * PROBLEMS: Update. Empty.
4542 * NEWS: Update.
4543
4544 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4545
4546 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4547 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4548
4549 2003-06-22 Andrew Cagney <cagney@redhat.com>
4550
4551 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4552 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4553 Velikov.
4554
4555 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4556
4557 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4558 compilers.
4559
4560 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4561
4562 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4563 argument of val_print.
4564 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4565 to the address argument of baseclass_offset or target_read_memory.
4566 Do add it to the argument of cp_print_value_fields.
4567
4568 2003-06-21 Andrew Cagney <cagney@redhat.com>
4569
4570 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4571 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4572 instead of 0..NUM_REGS.
4573 (mips_register_reggroup_p): New function.
4574 (mips_pseudo_register_write): New function.
4575 (mips_pseudo_register_read): New function.
4576 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4577 based on the register's type.
4578 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4579 cooked.
4580 (mips_get_saved_register): Simplify. Assert that REGNO is a
4581 pseudo / cooked.
4582 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4583 (mips_register_type): Replace mips_register_virtual_type. Map
4584 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4585 when available.
4586 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4587 that the register is cooked / virtual.
4588 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4589 Only get the extra info when needed.
4590 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4591 (mips32_heuristic_proc_desc): Fetch the cooked register.
4592 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4593 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4594 (mips_print_register): Use gdbarch_register_type, instead of
4595 REGISTER_VIRTUAL_TYPE.
4596 (print_gp_register_row): Use gdbarch_register_type, instead of
4597 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4598 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4599 Print the pseudo / cooked registers.
4600 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4601 Print the pseudo / cooked registers.
4602 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4603 REG_NUM is pseudo / cooked.
4604 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4605 (mips_n32n64_xfer_return_value): Ditto.
4606 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4607 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4608 (mips_register_sim_regno): New function.
4609 (mips_gdbarch_init): Set deprecated_register_byte,
4610 register_group_p, pseudo_register_write, pseudo_register_read,
4611 register_sim_regno, and num_pseudo_regs. Set register_type,
4612 instead of register_virtual_type.
4613 * Makefile.in (mips-tdep.o): Update dependencies.
4614 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4615 REGISTER_VIRTUAL_TYPE.
4616 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4617 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4618 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4619 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4620 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4621
4622 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4623
4624 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4625 * cli/cli-cmds.c: Include "gdb_vfork.h".
4626 (shell_escape): Use vfork.
4627
4628 2003-06-21 Andrew Cagney <cagney@redhat.com>
4629
4630 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4631 32 bit floating-point register saves.
4632
4633 * frame.h (deprecated_unwind_get_saved_register): Delete.
4634 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4635 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4636 and deprecated_get_next_frame_hack instead of
4637 deprecated_unwind_get_saved_register.
4638
4639 * mips-tdep.c (mips_dump_tdep): Do not print
4640 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4641
4642 * frame.c (get_frame_register): New function.
4643 (frame_unwind_register_signed): New function.
4644 (get_frame_register_signed): New function.
4645 (frame_unwind_register_unsigned): New function.
4646 (get_frame_register_unsigned): New function.
4647 * frame.h: Add comments on naming schema.
4648 (get_frame_register, frame_unwind_register_signed): Declare.
4649 (get_frame_register_signed, get_frame_register_signed): Declare.
4650 (frame_unwind_register_unsigned): Declare.
4651 (get_frame_register_unsigned): Declare.
4652
4653 2003-06-20 Theodore A. Roth <troth@openavr.org>
4654
4655 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4656
4657 2003-06-20 Theodore A. Roth <troth@openavr.org>
4658
4659 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4660 (avr_read_sp): Ditto.
4661
4662 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4663
4664 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4665 * config/arm/nm-linux.h: Likewise.
4666 * config/arm/tm-linux.h: Likewise.
4667 * config/ia64/nm-linux.h: Likewise.
4668 * config/ia64/tm-ia64.h: Likewise.
4669 * config/s390/tm-linux.h: Likewise.
4670 * config/s390/tm-s390.h: Likewise.
4671 * s390-nat.c: Likewise.
4672 * s390-tdep.c: Likewise.
4673
4674 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4675 * config/ia64/linux.mt: Likewise.
4676 * config/m68k/linux.mh: Likewise.
4677 * config/mips/linux.mt: Likewise.
4678 * config/powerpc/linux.mh: Likewise.
4679 * config/sh/linux.mt: Likewise.
4680
4681 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4682
4683 * solib.c (solib_open): Change tests for whether to search
4684 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4685 comments.
4686
4687 2003-06-19 Theodore A. Roth <troth@openavr.org>
4688
4689 * avr-tdep.c (avr_frame_address): Delete function.
4690 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4691 set_gdbarch_frame_args_address.
4692
4693 2003-06-19 Andrew Cagney <cagney@redhat.com>
4694
4695 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4696 (REGISTER_CONVERT_FROM_TYPE): Delete.
4697 (mips_register_convert_to_type): Delete declaration.
4698 (mips_register_convert_from_type): Delete declaration.
4699 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4700 kernel/.
4701
4702 2003-06-19 Michael Snyder <msnyder@redhat.com>
4703
4704 * linux-nat.h: New file.
4705 * linux-nat.c: Include linux-nat.h.
4706 * lin-lwp.c: Include linux-nat.h.
4707 Move struct lwp_info def to linux-nat.h.
4708 * linux-proc.c: Include linux-nat.h.
4709 (linux_make_note_section): Iterate over lwps instead of threads.
4710 (linux_do_thread_registers): Use lwp instead of merged pid.
4711 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4712 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4713 Add dependency on linux_nat_h.
4714
4715 2003-06-19 Theodore A. Roth <troth@openavr.org>
4716
4717 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4718
4719 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4720
4721 * varobj.c (get_type, get_target_type): Use check_typedef.
4722
4723 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4724
4725 * breakpoint.c (insert_catchpoint): Call internal_error.
4726
4727 2003-06-19 Theodore A. Roth <troth@openavr.org>
4728
4729 * avr-tdep.c (avr_push_dummy_code): Delete function.
4730 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4731
4732 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4733
4734 * arch-utils.c (default_prepare_to_proceed): Remove.
4735 (generic_prepare_to_proceed): Remove.
4736 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4737 (generic_prepare_to_proceed): Remove prototype.
4738 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4739 * gdbarch.c: Regenerate.
4740 * gdbarch.h: Regenerate.
4741 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4742 * hppah-nat.c (hppa_switched_threads): Remove.
4743 * infrun.c (prepare_to_proceed): New static function, copied from
4744 generic_prepare_to_proceed. Remove select_it argument.
4745 (proceed): Call prepare_to_proceed.
4746 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4747 variables.
4748 (ptrace_wait): Don't set the removed variables.
4749 (hppa_switched_threads): Remove.
4750 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4751 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4752 (lin_lwp_prepare_to_proceed): Remove prototype.
4753 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4754 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4755
4756 2003-06-18 Theodore A. Roth <troth@openavr.org>
4757
4758 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4759 trad-frame.h.
4760 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4761 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4762 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4763 (AVR_PROLOGUE_*): Enumerate prologue types.
4764 (struct frame_extra_info): Remove.
4765 (struct avr_unwind_cache): Define.
4766 (avr_write_sp): Delete function.
4767 (avr_read_fp): Ditto.
4768 (avr_init_extra_frame_info): Ditto.
4769 (avr_pop_frame): Ditto.
4770 (avr_frame_saved_pc): Ditto.
4771 (avr_saved_pc_after_call): Ditto.
4772 (avr_push_return_address): Ditto.
4773 (avr_frame_chain): Ditto.
4774 (avr_store_struct_return): Ditto.
4775 (avr_push_arguments): Ditto.
4776 (avr_scan_prologue): Update comments. Changed to set up the info for
4777 cache unwinding. Now returns end of prologue PC.
4778 (avr_skip_prologue): Better handling of functions lacking a prologue
4779 by using avr_scan_prologue.
4780 (avr_scan_arg_moves): New function.
4781 (avr_saved_regs_unwinder): Ditto.
4782 (avr_frame_unwind_cache): Ditto.
4783 (avr_unwind_pc): Ditto.
4784 (avr_frame_this_id): Ditto.
4785 (avr_frame_prev_register): Ditto.
4786 (avr_frame_p): Ditto.
4787 (avr_frame_base_address ): Ditto.
4788 (avr_unwind_dummy_id): Ditto.
4789 (avr_push_dummy_code): Ditto.
4790 (push_stack_item): Ditto.
4791 (pop_stack_item): Ditto.
4792 (avr_push_dummy_call): Ditto.
4793 (struct stack_item): Define.
4794 (avr_frame_unwind): Declare structure.
4795 (avr_frame_base): Ditto.
4796 (avr_gdbarch_init): Remove calls to
4797 set_gdbarch_deprecated_init_frame_pc,
4798 set_gdbarch_deprecated_target_read_fp,
4799 set_gdbarch_deprecated_dummy_write_sp,
4800 set_gdbarch_deprecated_fp_regnum,
4801 set_gdbarch_deprecated_push_arguments,
4802 set_gdbarch_deprecated_push_return_address,
4803 set_gdbarch_deprecated_pop_frame,
4804 set_gdbarch_deprecated_store_struct_return,
4805 set_gdbarch_deprecated_frame_init_saved_regs,
4806 set_gdbarch_deprecated_init_extra_frame_info,
4807 set_gdbarch_deprecated_frame_chain,
4808 set_gdbarch_deprecated_frame_saved_pc,
4809 set_gdbarch_deprecated_saved_pc_after_call.
4810 Add calls to set_gdbarch_push_dummy_call,
4811 set_gdbarch_push_dummy_code,
4812 frame_unwind_append_predicate,
4813 frame_base_set_default,
4814 set_gdbarch_unwind_dummy_id,
4815 set_gdbarch_unwind_pc.
4816 Wrap a long line.
4817
4818 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4819
4820 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4821 registers for H8/300S.
4822 (h8300_print_registers_info): Ditto.
4823 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4824
4825 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4826
4827 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4828 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4829 (lin_lwp_wait): Likewise. Update comments.
4830 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4831 (pull_pid_from_list, linux_record_stopped_pid): New.
4832
4833 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4834
4835 * ada-lang.c (scan_discrim_bound): Name first argument.
4836 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4837 declared by ALL_BLOCK_SYMBOLS.
4838
4839 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4840
4841 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4842 ("regcache.h"): Include it.
4843 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4844
4845 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4846
4847 * NEWS: Mention gdbserver detach change and "disconnect" command.
4848 * infcmd.c (disconnect_command): New function.
4849 (_initialize_infcmd): Add ``disconnect'' command.
4850 * remote.c (remote_async_detach): Delete.
4851 (remote_detach): Merge remote_async_detach.
4852 (remote_disconnect): New.
4853 (init_remote_ops): Set to_disconnect.
4854 (init_remote_cisco_ops): Likewise.
4855 (init_remote_async_ops): Likewise. Use remote_detach.
4856 * target.c (cleanup_target): Default to_disconnect.
4857 (update_current_target): Inherit to_disconnect.
4858 (target_disconnect, debug_to_disconnect): New functions.
4859 (setup_target_debug): Set to_disconnect.
4860 * target.h (struct target_ops): Add to_disconnect.
4861 (target_disconnect): Add prototype.
4862
4863 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4864
4865 * breakpoint.c (insert_catchpoint): New function.
4866 (insert_breakpoints): Use catch_exceptions to call
4867 insert_catchpoint. Disable catchpoints if they fail to insert.
4868
4869 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4870
4871 * symfile.c (reread_symbols): Clear sym_private.
4872
4873 2003-06-17 Andrew Cagney <cagney@redhat.com>
4874
4875 * trad-frame.h (struct frame_info): Add opaque declaration.
4876 * remote-fileio.h (struct cmd_list_element): Add opaque
4877 declaration.
4878 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4879 comments.
4880
4881 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4882
4883 * remote.c (remote_prepare_to_store): Replace call to
4884 deprecated_read_register_bytes with multiple regcache_raw_read
4885 calls.
4886
4887 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4888
4889 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4890 (nto_find_and_open_solib): Likewise.
4891 (nto_init_solib_absolute_prefix): Likewise.
4892 (_initialize_nto_tdep): Fix indentation.
4893
4894 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4895
4896 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4897
4898 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4899
4900 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4901
4902 2003-06-17 Jim Blandy <jimb@redhat.com>
4903
4904 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4905
4906 2003-06-16 Theodore A. Roth <troth@openavr.org>
4907
4908 * avr-tdep.c (avr_extract_return_value): New function.
4909 (avr_gdbarch_init): Set extract_return_value method.
4910
4911 2003-06-16 Andrew Cagney <cagney@redhat.com>
4912
4913 * frame.h (deprecated_get_next_frame_hack): Declare.
4914 * frame.c (legacy_saved_regs_prev_register): Only require
4915 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4916 there are always saved regs.
4917 (deprecated_generic_get_saved_register): Do not require
4918 DEPRECATED_FRAME_INIT_SAVED_REGS.
4919 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4920 use frame ID unwind instead.
4921 (deprecated_get_next_frame_hack): New function.
4922
4923 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4924
4925 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4926 (h8300_push_dummy_call): ...this function. Some minor optimization.
4927 (h8300_push_return_address): Remove.
4928 (h8300_gdbarch_init): Remove calls to
4929 set_gdbarch_deprecated_dummy_write_sp,
4930 set_gdbarch_deprecated_push_arguments and
4931 set_gdbarch_deprecated_push_return_address.
4932 Add call to set_gdbarch_push_dummy_call.
4933
4934 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4935
4936 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4937 (E_PSEUDO_EXR_REGNUM): Ditto.
4938 (h8300_is_argument_spill): Check for instructions moving argument
4939 registers into safe registers.
4940 (h8300_skip_prologue): Check for stm instruction to push registers
4941 used for register variables onto stack.
4942 (gdb_print_insn_h8300): Remove.
4943 (h8300_examine_prologue): Add a comment.
4944 (h8300_register_name): Take pseudo registers into account.
4945 (h8300s_register_name): Ditto.
4946 (h8300sx_register_name): Ditto.
4947 (h8300_print_register): Ditto.
4948 (h8300_print_registers_info): Define "nice" printing order.
4949 (h8300_saved_pc_after_call): Take pseudo registers into account.
4950 (h8300_register_type): Ditto. Return type used for remote connection
4951 when requesting real CCR or EXR register, return actual type when
4952 requesting pseudo CCR or EXR.
4953 (h8300_pseudo_register_read): New function.
4954 (h8300_pseudo_register_write): Ditto.
4955 (h8300_dbg_reg_to_regnum): Ditto.
4956 (h8300s_dbg_reg_to_regnum): Ditto.
4957 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4958 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4959 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4960 set_gdbarch_print_insn architecture dependent.
4961 Call set_gdbarch_pseudo_register_read and
4962 set_gdbarch_pseudo_register_write.
4963 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4964
4965 2003-06-16 Andrew Cagney <cagney@redhat.com>
4966
4967 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4968 * gdbarch.h, gdbarch.c: Re-generate.
4969 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4970 * s390-tdep.c (s390_gdbarch_init): Update.
4971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4973 * mips-tdep.c (mips_gdbarch_init): Update.
4974 * mcore-tdep.c (mcore_gdbarch_init): Update.
4975 * cris-tdep.c (cris_gdbarch_init): Update.
4976 * infcall.c (call_function_by_hand): Update.
4977 * ia64-tdep.c (ia64_push_arguments): Update comment.
4978 * frame.c (legacy_get_prev_frame): Do not assume
4979 SAVE_DUMMY_FRAME_TOS_P.
4980 * dummy-frame.c (find_dummy_frame): Update comment.
4981
4982 2003-06-16 Andrew Cagney <cagney@redhat.com>
4983
4984 * regcache.c (do_cooked_read): Do not use register_valid_p.
4985
4986 2003-06-15 Theodore A. Roth <troth@openavr.org>
4987
4988 * avr-tdep.c (avr_register_type): Remove a blank line.
4989 (avr_scan_prologue): Correct some comments.
4990
4991 2003-06-15 Theodore A. Roth <troth@openavr.org>
4992
4993 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4994 prologue types.
4995 Properly scan prologues generated by gcc with the -mcall-prologues
4996 option.
4997 Add code to scan -mcall-prologues for mega devices.
4998
4999 2003-06-15 Theodore A. Roth <troth@openavr.org>
5000
5001 * avr-tdep.c (avr_register_byte): Delete function.
5002 (avr_register_raw_size): Delete function.
5003 (avr_register_virtual_size): Delete function.
5004 (avr_register_virtual_type): Delete function.
5005 (avr_register_type): New function.
5006 (avr_address_to_pointer): Remove unused code.
5007 (avr_read_fp): Need to read FP as two separate bytes due to change to
5008 avr_register_type() usage.
5009 (avr_gdbarch_init): Don't set deprecated_register_size.
5010 Don't set deprecated_register_bytes.
5011 Don't set deprecated_register_byte.
5012 Don't set deprecated_register_raw_size.
5013 Don't set deprecated_max_register_raw_size.
5014 Don't set deprecated_register_virtual_size.
5015 Don't set deprecated_max_register_virtual_size.
5016 Don't set deprecated_register_virtual_type.
5017 Set register_type method.
5018
5019 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5020
5021 * Makefile.in (linux-nat.o): Add rule.
5022 * linux-nat.c: New file.
5023 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5024 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5025 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5026 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5027 * config/arm/linux.mh (NATDEPFILES): Likewise.
5028 * config/i386/linux.mh (NATDEPFILES): Likewise.
5029 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5030 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5031 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5032 * config/mips/linux.mh (NATDEPFILES): Likewise.
5033 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5034 * config/s390/s390.mh (NATDEPFILES): Likewise.
5035 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5036
5037 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5038
5039 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5040 replace out-of-date comment.
5041
5042 2003-06-15 Andrew Cagney <cagney@redhat.com>
5043
5044 * rdi-share/host.h (Fail): Change to a varargs function.
5045 * remote-rdi.c (Fail): Update.
5046
5047 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5048
5049 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5050 (i386_convert_register_p, i386_register_to_value,
5051 i386_register_from_value): Handle types longer than 8 bytes.
5052
5053 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5054
5055 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5056 Move floating-point code to new function in i387-tdep.c.
5057 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5058 New functions containing code moved here from i386-tdep.c.
5059 * i387-tdep.h: Add opaque declaration for `struct type'.
5060 (i387_register_to_value, i387_value_to_register): New prototypes.
5061 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5062 (x86_64_init_abi): Set convert_register_p, register_to_value and
5063 value_to_register here.
5064
5065 2003-06-14 Andrew Cagney <cagney@redhat.com>
5066
5067 * mips-tdep.c (mips_register_to_value): Make static.
5068 (mips_value_to_register): Make static.
5069 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5070 * ia64-tdep.c (ia64_register_raw_size): Make static.
5071 (ia64_register_virtual_size): Make static.
5072 (ia64_register_byte): Make static.
5073 * i387-tdep.c: Include "i387-tdep.h".
5074 (print_387_control_word): Delete function.
5075 (print_387_status_word): Delete function.
5076 (print_387_status_bits): Delete function.
5077 (print_387_control_bits): Delete function.
5078 * Makefile.in (i387-tdep.o): Update dependencies.
5079 * rdi-share/host.h (Fail): Declare.
5080 * remote-rdi.c (Fail): Update to match declaration.
5081
5082 2003-06-14 Andrew Cagney <cagney@redhat.com>
5083
5084 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5085 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5086 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5087 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5088 * README: Delete reference to remote-array.
5089 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5090 (remote-array.o): Delete target.
5091 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5092 * remote-array.c: Delete file.
5093
5094 2003-06-14 Andrew Cagney <cagney@redhat.com>
5095 Mark Kettenis <kettenis@gnu.org>
5096
5097 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5098 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5099 parameter with "frame".
5100 * gdbarch.h, gdbarch.c: Re-generate.
5101 * frame.h (put_frame_register): Declare.
5102 * frame.c (put_frame_register): New function.
5103 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5104 (legacy_register_to_value): Rewrite, use "frame" to get the
5105 register value.
5106 (legacy_value_to_register): Rewrite, use "frame" to find the
5107 register's location before storing.
5108 * arch-utils.h (legacy_convert_register_p): Update.
5109 (legacy_register_to_value, legacy_value_to_register): Update.
5110 * findvar.c (value_from_register): Rewrite, eliminate use of
5111 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5112 "frame" to REGISTER_TO_VALUE.
5113 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5114 lval_reg_frame_relative + lval_register branch of the switch. Do
5115 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5116 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5117 I386_EDI_REGNUM): New defines.
5118 (i386_next_regnum, i386_convert_register_p,
5119 i386_register_to_value, i386_value_to_register): New functions.
5120 (i386_register_convertible, i386_register_convert_to_virtual,
5121 i386_convert_to_raw): Remove functions.
5122 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5123 value_to_register instead of register_convertible,
5124 register_convert_to_virtual and register_convert_to_raw.
5125 * mips-tdep.c (mips_convert_register_p): New function.
5126 (mips_value_to_register): Replace mips_register_convert_from_type.
5127 (mips_register_to_value): Replace mips_register_convert_to_type.
5128 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5129 register_to_value.
5130 * alpha-tdep.c (alpha_convert_register_p): Update.
5131 (alpha_value_to_register): Update, store the register.
5132 (alpha_register_to_value): Update, fetch the register.
5133
5134 2003-06-14 Theodore A. Roth <troth@openavr.org>
5135
5136 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5137 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5138 Don't set deprecated_call_dummy_words.
5139 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5140 Don't set remote_translate_xfer_address.
5141 (avr_io_reg_read_command): Remove commented out debug printf.
5142 Wrap a long line.
5143
5144 2003-06-14 Theodore A. Roth <troth@openavr.org>
5145
5146 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5147 causes gdb to seg fault.
5148
5149 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5150
5151 * sparc-nat.c (fetch_inferior_registers): Correct
5152 a reference to "registers".
5153
5154 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5155
5156 * Makefile.in (exc_request_U_h): Define
5157 (exc_request_S_h): Likewise.
5158 (msg_reply_S_h): Likewise.
5159 (msg_U_h): Likewise.
5160 (notify_S_h): Likewise.
5161 (process_reply_S_h): Likewise.
5162 (gnu-nat.o): Depend on gdb_obstack_h
5163 * gnu-nat.c: Include "gdb_obstack.h".
5164
5165 2003-06-13 Andrew Cagney <cagney@redhat.com>
5166
5167 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5168 * gdbarch.h, gdbarch.c: Re-generate.
5169
5170 2003-06-13 Andrew Cagney <cagney@redhat.com>
5171
5172 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5173 when deprecated REGISTER macros can be deleted.
5174 * gdbarch.h, gdbarch.c: Re-generate.
5175
5176 2003-06-13 Jim Blandy <jimb@redhat.com>
5177
5178 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5179 Linux entry point symbols for _dl_debug_state, too.
5180
5181 2003-06-13 Andrew Cagney <cagney@redhat.com>
5182
5183 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5184 available, do not use the FP register, and always save the TOS.
5185 * dummy-frame.c (dummy_frame_this_id): Do not assert
5186 SAVE_DUMMY_FRAME_TOS.
5187 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5188 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5189 (i386_push_dummy_call): Add 8 to the returned SP.
5190 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5191 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5192 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5193 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5194 (x86_64_push_dummy_call): Return "sp + 16".
5195 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5196 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5197 save_dummy_frame_tos.
5198
5199 2003-06-13 Jim Blandy <jimb@redhat.com>
5200
5201 * frv-tdep.c (frv_use_struct_convention): Delete static
5202 declaration for function deleted in my change of 2003-06-12.
5203
5204 2003-06-13 Theodore A. Roth <troth@openavr.org>
5205
5206 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5207 (avr_pointer_to_address): Shift code addrs left 1 bit.
5208 (avr_convert_from_func_ptr_addr): Delete function since operation is
5209 better handled by avr_address_to_pointer and avr_pointer_to_address.
5210 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5211
5212 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5213
5214 From Kelley Cook <kelleycook@wideopenwest.com>:
5215 * configure.host: Accept i[34567]86 variants.
5216 * configure.tgt: Likewise.
5217 * nlm/configure.in: Likewise.
5218 * nlm/configure: Regenerated.
5219
5220 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5221
5222 * arm-tdep.c (solib-svr4.h): Dont' include it.
5223 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5224 * arm-linux-tdep.c: ... here. Make static.
5225 (arm_linux_init_abi): Register it.
5226 (solib-svr4.h): Include it.
5227 * Makefile.in: Update dependencies.
5228 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5229 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5230
5231 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5232
5233 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5234 indicate registers used for return values.
5235 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5236 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5237 members.
5238 (h8300_init_extra_frame_info): Ditto.
5239 (h8300_frame_locals_address): Removed.
5240 (h8300_frame_args_address): Removed.
5241 (h8300_extract_return_value): Use new regcache structure. Only care
5242 for 16 bit CPUs.
5243 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5244 (h8300_store_return_value): Use new regcache structure. Only care
5245 for 16 bit CPUs.
5246 (h8300h_store_return_value): Same function for 32 bit CPUs.
5247 (h8300_store_struct_return): Removed.
5248 (h8300_extract_struct_value_address): Use new regcache structure.
5249 (h8300h_extract_struct_value_address): Removed.
5250 (h8300_push_dummy_code): New function.
5251 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5252 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5253 set_gdbarch_store_return_value architecture dependent.
5254 Call set_gdbarch_push_dummy_code and
5255 set_gdbarch_extract_struct_value_address.
5256 Remove calls to set_gdbarch_frame_args_address,
5257 set_gdbarch_frame_locals_address,
5258 set_gdbarch_deprecated_store_struct_return,
5259 set_gdbarch_deprecated_extract_return_value,
5260 set_gdbarch_deprecated_extract_struct_value_address,
5261 set_gdbarch_deprecated_call_dummy_words and
5262 set_gdbarch_deprecated_sizeof_call_dummy_words.
5263
5264 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5265
5266 * h8300-tdep.c (h8300_register_byte): Remove.
5267 (h8300h_register_byte): Remove.
5268 (h8300_register_virtual_type): Remove. Substitute by...
5269 (h8300_register_type): New function.
5270 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5271 (h8300h_extract_struct_value_address): Ditto.
5272 (h8300_gdbarch_init): Drop calls to
5273 set_gdbarch_deprecated_register_byte and
5274 set_gdbarch_deprecated_register_virtual_type.
5275 Add call to set_gdbarch_register_type.
5276
5277 2003-06-13 Andrew Cagney <cagney@redhat.com>
5278
5279 * gdbarch.sh: Update comments on registers.
5280 (deprecated_register_byte): Rename register_byte.
5281 (deprecated_register_raw_size): Rename register_raw_size.
5282 (deprecated_register_virtual_size): Rename register_virtual_size.
5283 (deprecated_register_virtual_type): Rename register_virtual_type.
5284 * gdbarch.h, gdbarch.c: Re-generate.
5285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5286 * vax-tdep.c (vax_gdbarch_init): Update.
5287 * v850-tdep.c (v850_gdbarch_init): Update.
5288 * sparc-tdep.c (sparc_gdbarch_init): Update.
5289 * sh-tdep.c (sh_gdbarch_init): Update.
5290 * s390-tdep.c (s390_gdbarch_init): Update.
5291 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5292 * ns32k-tdep.c: Update.
5293 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5294 * mips-tdep.c (mips_gdbarch_init): Update.
5295 * mcore-tdep.c (mcore_gdbarch_init): Update.
5296 * m68k-tdep.c (m68k_gdbarch_init): Update.
5297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5298 * ia64-tdep.c (ia64_gdbarch_init): Update.
5299 * hppa-tdep.c (hppa_gdbarch_init): Update.
5300 * h8300-tdep.c (h8300_gdbarch_init): Update.
5301 * frv-tdep.c (frv_gdbarch_init): Update.
5302 * cris-tdep.c (cris_gdbarch_init): Update.
5303 * avr-tdep.c (avr_gdbarch_init): Update.
5304 * alpha-tdep.c (alpha_gdbarch_init): Update.
5305 * arm-tdep.c (arm_gdbarch_init): Update.
5306
5307 2003-06-13 Andrew Cagney <cagney@redhat.com>
5308
5309 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5310 mips_o32_use_struct_convention with always_use_struct_convention.
5311
5312 2003-06-12 David Carlton <carlton@kealia.com>
5313
5314 * cp-namespace.c (cp_set_block_scope): Comment out
5315 processing_has_namespace_info branch.
5316
5317 2003-06-12 Jim Blandy <jimb@redhat.com>
5318
5319 Recognize and skip 64-bit PowerPC Linux linkage functions.
5320 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5321 insn_pattern, insns_match_pattern, d_field, ds_field): New
5322 functions, macros, and types for working with PPC instructions.
5323 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5324 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5325 ppc64_skip_trampoline_code): New functions, variables, and macros
5326 for recognizing and skipping linkage functions.
5327 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5328 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5329
5330 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5331 register offsets for both the 32- and 64-bit interfaces.
5332
5333 Actually finish the job started by my change of 2003-05-29.
5334 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5335 other #definition of this.
5336 (ppc_linux_skip_trampoline_code): Remove declaration.
5337 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5338 static.
5339 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5340 method for GDBARCH.
5341
5342 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5343 'long' on ppc64-*-linux*.
5344
5345 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5346 isn't #defined, assume the register doesn't exist: act as if
5347 tdep->ppc_mq_regnum were -1.
5348
5349 * configure.host, configure.tgt: Add entries for
5350 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5351 powerpc/linux.mt.
5352 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5353 New files.
5354
5355 * arch-utils.c (always_use_struct_convention): New function.
5356 * arch-utils.h (always_use_struct_convention): New prototype.
5357 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5358 (alpha_gdbarch_init): Register always_use_struct_convention,
5359 instead of alpha_use_struct_convention.
5360 * cris-tdep.c (cris_use_struct_convention): Delete.
5361 (cris_gdbarch_init): Register always_use_struct_convention,
5362 instead of cris_use_struct_convention.
5363 * frv-tdep.c (frv_use_struct_convention): Delete.
5364 (frv_gdbarch_init): Register always_use_struct_convention,
5365 instead of frv_use_struct_convention.
5366 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5367 (h8300_gdbarch_init): Register always_use_struct_convention,
5368 instead of h8300_use_struct_convention.
5369 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5370 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5371 instead of mips_o32_use_struct_convention.
5372
5373 2003-06-12 Andrew Cagney <cagney@redhat.com>
5374
5375 * wince.c: Include "mips-tdep.h".
5376 * mips-tdep.h (mips_next_pc): Declare.
5377 * mcore-tdep.c: Make more local functions static.
5378 * Makefile.in (wince.o): Update dependencies.
5379
5380 2003-06-12 David Carlton <carlton@kealia.com>
5381
5382 * symtab.c (lookup_symbol_aux_minsyms): Replace
5383 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5384 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5385 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5386 SYMBOL_NATURAL_NAME.
5387
5388 2003-06-12 Andreas Schwab <schwab@suse.de>
5389
5390 * Makefile.in (tuiDisassem.o): Update dependencies.
5391
5392 2003-06-12 David Carlton <carlton@bactrian.org>
5393
5394 * symtab.h: Delete declaration of make_symbol_overload_list.
5395 Add declaration of lookup_partial_symbol.
5396 * symtab.c (remove_params): Move to cp-support.c.
5397 (overload_list_add_symbol, make_symbol_overload_list)
5398 (sym_return_val_size, sym_return_val_index): Ditto.
5399 (lookup_partial_symbol): Make extern.
5400 * cp-support.h: Add declaration of make_symbol_overload_list.
5401 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5402 symtab.h, and block.h.
5403 (remove_params): Move here from symtab.c.
5404 (overload_list_add_symbol, make_symbol_overload_list)
5405 (sym_return_val_size, sym_return_val_index): Ditto.
5406 * valops.c: Include cp-support.h.
5407 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5408 frame_h, and block_h.
5409 (valops.o): Depend on cp_support_h.
5410
5411 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5412
5413 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5414 substitute by NUM_REGS throughout.
5415 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5416 (h8300s_register_name): New function for H8S registers.
5417 (h8300sx_register_name): Ditto for H8SX registers.
5418 (h8300_print_register): Revise register printing, avoid depending
5419 on 32 bit long.
5420 (h8300_register_byte): Only care for H8/300 registers.
5421 (h8300h_register_byte): New function for any other architecture.
5422 (h8300_register_raw_size): Remove.
5423 (h8300_register_virtual_type): Revise to return actually useful
5424 type.
5425 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5426 (h8300h_extract_struct_value_address): New function for any other
5427 architecture.
5428 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5429 set_gdbarch_register_name, set_gdbarch_register_byte,
5430 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5431 Remove calls to set_gdbarch_deprecated_register_size,
5432 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5433 set_gdbarch_deprecated_max_register_raw_size,
5434 set_gdbarch_register_virtual_size and
5435 set_gdbarch_deprecated_max_register_virtual_size entirely.
5436 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5437 set_gdbarch_long_double_bit.
5438
5439 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5440
5441 * doublest.c (convert_doublest_to_floatformat): When dealing
5442 with the implied integer bit, only alter mant_bits if we are
5443 processing a full 32 bits of mantissa.
5444
5445 2003-06-11 David Carlton <carlton@bactrian.org>
5446
5447 * dictionary.h: New.
5448 * dictionary.c: New.
5449 * block.h: Add opaque declaration for struct dictionary.
5450 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5451 'sym' members.
5452 (BLOCK_DICT): New macro.
5453 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5454 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5455 BLOCK_SHOULD_SORT.
5456 (ALL_BLOCK_SYMBOLS): Update definition.
5457 * Makefile.in (SFILES): Add dictionary.c.
5458 (dictionary_h): New.
5459 (COMMON_OBS): Add dictionary.o.
5460 (dictionary.o): New.
5461 (ada-lang.o): Depend on dictionary_h.
5462 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5463 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5464 (mi-cmd-stack.o): Ditto.
5465 (gdbtk-cmds.o): Update dependencies.
5466 (gdbtk-stack.o): Ditto.
5467 * ada-lang.c: Include dictionary.h.
5468 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5469 (fill_in_ada_prototype, debug_print_block): Ditto.
5470 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5471 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5472 'is_sorted'.
5473 * mdebugread.c: Include dictionary.h.
5474 (struct parse_stack): Delete 'maxsyms' member.
5475 (parse_symbol): Update calls to new_block. Delete calls to
5476 shrink_block. Use dictionary methods.
5477 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5478 Update calls to new_symtab. Don't maintain maxsyms data.
5479 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5480 (add_symbol): Just call dict_add_symbol.
5481 (new_symtab): Delete 'maxsyms' argument.
5482 (new_symtab): Update calls to new_block.
5483 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5484 (shrink_block): Delete function.
5485 (fixup_sigtramp): Update call to new_block. Add symbol via
5486 dict_add_symbol.
5487 * jv-lang.c: Include dictionary.h.
5488 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5489 appropriately. Set class_symtab->free_func. Make sure the
5490 blockvector is big enough to hold two blocks.
5491 (add_class_symtab_symbol): Use dictionary methods.
5492 (free_class_block): New function.
5493 (type_from_class): Replace explicit iteration by
5494 ALL_BLOCK_SYMBOLS.
5495 * symtab.h (struct symtab): Replace 'free_ptr' method by
5496 'free_func'.
5497 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5498 sort_symtab_syms.
5499 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5500 sort_symtab_syms.
5501 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5502 Include dictionary.h.
5503 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5504 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5505 sort_symtab_syms.
5506 * objfiles.c: Include dictionary.h.
5507 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5508 * buildsym.c: Include dictionary.h.
5509 (finish_block): Use dictionary methods.
5510 (end_symtab): Set free_func to NULL, not free_ptr.
5511 * tracepoint.c: Include dictionary.h.
5512 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5513 (scope_info): Ditto.
5514 * stack.c: Include dictionary.h.
5515 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5516 (print_block_frame_labels, print_frame_arg_vars)
5517 (print_frame_args): Ditto.
5518 * symmisc.c (free_symtab_block): Use dictionary methods.
5519 (dump_symtab): Ditto.
5520 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5521 Include dictionary.h.
5522 * symfile.h: Delete declarations of sort_block_syms,
5523 sort_symtab_syms.
5524 * symfile.c (sort_block_syms): Delete.
5525 (sort_symtab_syms): Delete.
5526 * symtab.c: Include dictionary.h.
5527 (lookup_block_symbol): Use dictionary iterators.
5528 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5529 (search_symbols, make_symbol_completion_list): Ditto.
5530 (make_symbol_overload_list): Ditto.
5531 * valops.c (value_of_local): Use dict_empty.
5532 Include dictionary.h.
5533
5534 2003-06-11 J. Brobecker <brobecker@gnat.com>
5535
5536 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5537
5538 2003-06-11 David Carlton <carlton@bactrian.org>
5539
5540 * block.h (BLOCK_SHOULD_SORT): Delete.
5541 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5542 blocks.
5543 * ada-lang.c (ada_add_block_symbols): Ditto.
5544 * symfile.c (sort_block_syms): Delete.
5545 (sort_symtab_syms): Ditto.
5546 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5547 declarations.
5548 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5549 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5550 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5551 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5552 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5553 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5554 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5555
5556 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5557
5558 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5559 bits to 128.
5560
5561 2003-06-11 Andrew Cagney <cagney@redhat.com>
5562
5563 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5564 REGISTER_CONVERTIBLE.
5565 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5566 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5567 * gdbarch.h, gdbarch.c: Re-generate.
5568 * arch-utils.h (deprecated_register_convertible_not): Rename
5569 generic_register_convertible_not.
5570 * arch-utils.c (deprecated_register_convertible_not): Rename
5571 generic_register_convertible.
5572 (legacy_convert_register_p, legacy_register_to_value): Update.
5573 * sh-tdep.c (sh64_push_arguments): Update.
5574 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5575 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5576 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5577 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5578 * arch-utils.c (legacy_value_to_register): Update.
5579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5580 (rs6000_register_convert_to_raw): Make parameter "from" const.
5581 * mips-tdep.c (mips_gdbarch_init): Update.
5582 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5583 * infcmd.c (default_print_registers_info): Update.
5584 * ia64-tdep.c (ia64_gdbarch_init): Update.
5585 (ia64_register_convert_to_raw): Make parameter "from" const.
5586 * i386-tdep.c (i386_gdbarch_init): Update.
5587 (i386_register_convert_to_raw): Update.
5588
5589 2003-06-11 Andrew Cagney <cagney@redhat.com>
5590
5591 * remote-fileio.c: Include "remote-fileio.h".
5592 * Makefile.in (remote-fileio.o): Update dependencies.
5593 (remote_fileio_h): Fix typo.
5594
5595 2003-06-11 Andrew Cagney <cagney@redhat.com>
5596
5597 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5598 (xstormy16_save_dummy_frame_tos): Make static.
5599 (_initialize_xstormy16_tdep): Add declaration.
5600 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5601 * v850-tdep.c: Make local functions static.
5602 (_initialize_v850_tdep): Add declaration.
5603 * sparc-tdep.c: Make local functions static.
5604 (_initialize_sparc_tdep): Add declaration.
5605 * sh-tdep.c: Make local functions static.
5606 (_initialize_sh_tdep): Add declaration.
5607 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5608 * s390-tdep.c: Make local functions static.
5609 (_initialize_s390_tdep): Add declaration.
5610 * dbxread.c (find_stab_function_addr): Make static.
5611 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5612 * ocd.c (_initialize_remote_ocd): Add declaration.
5613 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5614 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5615 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5616 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5617 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5618 * remote-array.c (_initialize_array): Add declaration.
5619 (_initialize_remote_monitors): Add declaration.
5620 * remote-mips.c: Make local functions static.
5621 (_initialize_remote_mips): Add declaration.
5622 * mcore-tdep.c: Make all local functions static.
5623 (_initialize_mcore_tdep): Add declaration.
5624 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5625 * abug-rom.c (_initialize_abug_rom): Add declaration.
5626 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5627 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5628 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5629 * remote-est.c (_initialize_est): Add declaration.
5630 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5631 (m68hc11_call_dummy_address): Make static.
5632 * ia64-tdep.c: Make local functions static.
5633 (_initialize_ia64_tdep): Add declaration.
5634 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5635 * monitor.c (monitor_wait_filter): Make static.
5636 (_initialize_remote_monitors): Add declaration.
5637 * remote-hms.c (_initialize_remote_hms): Add declaration.
5638 * remote-e7000.c (fetch_regs_from_dump): Make static.
5639 (expect_n): Make static.
5640 (_initialize_remote_e7000): Add declaration.
5641 * ser-e7kpc.c: Always include "defs.h".
5642 (_initialize_ser_e7000pc): Add declaration.
5643 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5644 * cris-tdep.c: Make all but one function static.
5645 (_initialize_cris_tdep): Add declaration.
5646 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5647 * solib.c (update_solib_list): Make static.
5648 (_initialize_solib): Add declaration.
5649 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5650 (_initialize_avr_tdep): Add declaration.
5651 * remote-rdi.c (voiddummy): Make static.
5652 (_initialize_remote_rdi): Add declaration.
5653 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5654 * remote-rdp.c (send_rdp): Make static.
5655 (_initialize_remote_rdp): Add declaration.
5656 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5657
5658 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5659
5660 * remote-fileio.c: Make ari happy.
5661
5662 2003-06-10 J. Brobecker <brobecker@gnat.com>
5663
5664 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5665 fetching the trailing bytes of the buffer we are about to write.
5666
5667 2003-06-10 Andrew Cagney <cagney@redhat.com>
5668
5669 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5670 * Makefile.in (remote-fileio.o): Update dependencies.
5671 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5672 include <setjmp.h>, or <sys/types.h> conditional on USG.
5673 (remote_fio_jmp_buf): Delete global variable.
5674
5675 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5676 Martin M. Hunt <hunt@redhat.com>
5677
5678 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5679 (SFILES): Add remote-fileio.c.
5680 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5681 dependencies for building remote.o.
5682 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5683 * remote-fileio.h: New header file defining remote File-I/O interface.
5684 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5685 static storage class.
5686 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5687 'F' packet.
5688 (_initialize_remote): Call initialize_remote_fileio().
5689 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5690 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5691 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5692 (captured_main): Initialize new ui_files.
5693 * ui-file.c: Add read and fgets input functions.
5694 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5695 (null_file_read): New function.
5696 (ui_file_read): New function.
5697 (set_ui_file_read): New function.
5698 (stdio_file_read): New function.
5699 * ui-file.h: New type ui_file_read_ftype.
5700 (set_ui_file_read): Declare.
5701 (ui_file_read): Declare.
5702
5703 2003-06-09 Andrew Cagney <cagney@redhat.com>
5704
5705 * frame.h (deprecated_unwind_get_saved_register): Rename
5706 generic_unwind_get_saved_register, update comments.
5707 * mips-tdep.c (mips_get_saved_register): Update.
5708 * frame.c (deprecated_unwind_get_saved_register): Update.
5709
5710 2003-06-09 Andrew Cagney <cagney@redhat.com>
5711
5712 * vax-tdep.c (vax_frame_locals_address): Delete function.
5713 (vax_gdbarch_init): Do not set frame_locals_address.
5714 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5715 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5716 * s390-tdep.c (s390_frame_args_address): Delete function.
5717 (s390_gdbarch_init): Do not set frame_args_address or
5718 frame_locals_address.
5719 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5720 (ns32k_gdbarch_init): Do not set frame_locals_address.
5721 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5722 (hppa_frame_locals_address): Delete function.
5723 (hppa_gdbarch_init): Do not set frame_args_address, or
5724 frame_locals_address.
5725 * arm-tdep.c (arm_frame_args_address): Delete.
5726 (arm_frame_locals_address): Delete.
5727 (arm_gdbarch_init): Do not set frame_args_address, or
5728 frame_locals_address.
5729
5730 2003-06-09 Andrew Cagney <cagney@redhat.com>
5731
5732 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5733 * gdbarch.h, gdbarch.c: Re-generate.
5734 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5735 * arch-utils.c (frame_num_args_unknown): Delete function.
5736 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5737 (frame_info): Use FRAME_NUM_ARGS_P.
5738 * arm-tdep.c (arm_frame_num_args): Delete function.
5739 (arm_gdbarch_init): Do not set frame_num_args.
5740 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5741 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5742 (hppa_gdbarch_init): Do not set frame_num_args.
5743 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5745 frame_num_args to default frame_num_args_unknown.
5746 * v850-tdep.c (v850_gdbarch_init): Ditto.
5747 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5748 * sh-tdep.c (sh_gdbarch_init): Ditto.
5749 * s390-tdep.c (s390_gdbarch_init): Ditto.
5750 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5751 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5752 * mips-tdep.c (mips_gdbarch_init): Ditto.
5753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5754 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5756 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5757 * i386-tdep.c (i386_gdbarch_init): Ditto.
5758 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5759 * frv-tdep.c (frv_gdbarch_init): Ditto.
5760 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5761 * cris-tdep.c (cris_gdbarch_init): Ditto.
5762 * avr-tdep.c (avr_gdbarch_init): Ditto.
5763 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5764
5765 2003-06-09 Andrew Cagney <cagney@redhat.com>
5766
5767 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5768 (print_frame_args): Moved to "stack.c".
5769 * stack.c: Include "gdb_assert.h".
5770 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5771 (print_frame_args): Moved from "printcmd.c".
5772 * frame.h (print_frame_args): Delete declaration.
5773 * Makefile.in (stack.o): Update dependencies.
5774
5775 2003-06-08 Andrew Cagney <cagney@redhat.com>
5776
5777 * frame.c (get_prev_frame): Remove reference to
5778 frame_args_address_correct in comments.
5779 * frame-base.c (default_frame_args_address): Delete code
5780 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5781 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5782 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5783 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5784 (vax_frame_args_address_correct): Delete declaration.
5785
5786 2003-06-08 Andrew Cagney <cagney@redhat.com>
5787
5788 * gdbarch.sh (UNWIND_SP): Add.
5789 * gdbarch.h, gdbarch.c: Re-generate.
5790 * frame.c (frame_sp_unwind): New function.
5791 (get_frame_sp): New function.
5792 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5793 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5794 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5795 value.
5796 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5797 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5798
5799 2003-06-08 Andrew Cagney <cagney@redhat.com>
5800
5801 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5802 REMOTE_BREAKPOINT.
5803 * remote.c: Update.
5804 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5805 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5806 * config/m68k/tm-sun3.h: Update.
5807 * config/m68k/tm-m68klynx.h: Update.
5808 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5809
5810 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5811 trad_frame". Update comments.
5812 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5813 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5814 (trad_frame_register_value, trad_frame_prev_register): Update.
5815
5816 2003-06-08 Andrew Cagney <cagney@redhat.com>
5817
5818 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5819 from GCC's acinclude.m4.
5820 * configure.in: Check for getopt's delcaration.
5821 * aclocal.m4, config.in, configure: Re-generate.
5822 * main.c (error_init): Delete declaration.
5823 * defs.h (error_init): Declare.
5824 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5825 (rs6000_convert_from_func_ptr_addr): Make static.
5826 (_initialize_rs6000_tdep): Add declaration.
5827 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5828 (show_commands, set_verbose, show_history): Delete declaration.
5829 * top.h (set_verbose): Add declaration.
5830 (show_history, set_history, show_commands): Add declaration.
5831 (do_restore_instream_cleanup): Add declaration.
5832 * objc-lang.c (specialcmp): Make static.
5833 (print_object_command): Make static.
5834 (find_objc_msgsend): Make static.
5835 (find_objc_msgcall_submethod_helper): Make static.
5836 (find_objc_msgcall_submethod): Make static.
5837 (_initialize_objc_language): Add declaration.
5838 (find_implementation_from_class): Make static.
5839 (find_implementation): Make static.
5840 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5841 * objc-lang.h (lookup_struct_typedef): Add declaration.
5842 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5843 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5844 (do_restore_user_call_depth): Make static.
5845 (do_restore_instream_cleanup): Delete declaration.
5846 (dont_repeat): Delete declaration.
5847 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5848 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5849 * reggroups.c (_initialize_reggroup): Add declaration.
5850 * cp-support.c (_initialize_cp_support): Add declaration.
5851 * cp-abi.c (_initialize_cp_abi): Add declaration.
5852 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5853 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5854 (_initialize_gnu_v3_abi): Add declaration.
5855 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5856 (_initialize_gnu_v2_abi): Add declaration.
5857 * frame-base.c (_initialize_frame_base): Add declaration.
5858 * doublest.c (floatformat_from_length): Make static.
5859 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5860 * frame.c (create_sentinel_frame): Make static.
5861 (_initialize_frame): Add declaration.
5862 * top.c (do_catch_errors): Make static.
5863 (gdb_rl_operate_and_get_next_completion): Make static.
5864 * typeprint.c: Include "typeprint.h".
5865 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5866 (sentinel_frame_this_id): Make static.
5867 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5868 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5869 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5870 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5871 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5872 * maint.c (maintenance_print_architecture): Make static.
5873 * signals/signals.c (_initialize_signals): Add declaration.
5874 * std-regs.c (_initialize_frame_reg): Add declaration.
5875 * jv-exp.y (push_variable): ISO C definition.
5876 (push_qualified_expression_name): Ditto.
5877 * memattr.c (_initialize_mem): Add declaration.
5878 * remote.c (remote_check_watch_resources): Make static.
5879 (remote_stopped_by_watchpoint): Make static.
5880 (remote_stopped_data_address): Make static.
5881 * d10v-tdep.c (nr_dmap_regs): Make static.
5882 (a0_regnum): Make static.
5883 (d10v_frame_unwind_cache): Make static.
5884 (d10v_frame_p): Make static.
5885 * osabi.c (show_osabi): Make static.
5886 (_initialize_gdb_osabi): Add extern declaration.
5887 * gdbtypes.c (make_qualified_type): Make static.
5888 (safe_parse_type): Make static.
5889 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5890 * macrotab.c (macro_bcache_free): Make static.
5891 * interps.c (interp_set_quiet): Make static.
5892 (interpreter_exec_cmd): Make static.
5893 * stack.h (select_frame_command): New file.
5894 * stack.c: Include "stack.h".
5895 (select_frame_command_wrapper): Delete function.
5896 (select_frame_command): Make global.
5897 * infcall.c: Include "infcall.h".
5898 * linespec.c: Include "linespec.h".
5899 * symfile.c (sections_overlap): Make static.
5900 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5901 * charset.c (_initialize_charset): Add missing prototype.
5902 * regcache.c (init_legacy_regcache_descr): Make static.
5903 (do_regcache_xfree): Make static.
5904 (regcache_xfer_part): Make static.
5905 (_initialize_regcache): Add missing prototype.
5906 * breakpoint.c (parse_breakpoint_sals): Make static.
5907 (breakpoint_sals_to_pc): Make static.
5908 * interps.h (clear_interpreter_hooks): ISO C declaration.
5909 * Makefile.in (stack_h): Define.
5910 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5911 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5912
5913 2003-06-08 Andrew Cagney <cagney@redhat.com>
5914
5915 * Makefile.in (d10v-tdep.o): Update dependencies.
5916 (SFILES): Add trad-frame.c.
5917 (trad_frame_h): Define.
5918 (COMMON_OBS): Add trad-frame.o.
5919 (trad-frame.o): Specify dependencies.
5920 * d10v-tdep.c: Include "trad-frame.h".
5921 (saved_regs_unwinder): Delete function.
5922 (d10v_frame_prev_register): Use trad_frame_prev_register.
5923 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5924 trad_frame", delete "regs" and "prev_sp".
5925 (prologue_find_regs): Use trad-frame.
5926 * trad-frame.h, trad-frame.c: New files.
5927
5928 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5929
5930 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5931
5932 2003-06-07 Adam Fedor <fedor@gnu.org>
5933
5934 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5935 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5936 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5937 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5938 resolve_msgsend_super, resolve_msgsend_super_stret):
5939 Use it.
5940
5941 2003-06-07 Andrew Cagney <cagney@redhat.com>
5942
5943 * symfile.h: Re-indent, clean up comments.
5944
5945 2003-06-07 Andrew Cagney <cagney@redhat.com>
5946
5947 * inferior.h (deprecated_write_sp): Replace
5948 generic_target_write_sp.
5949 * regcache.c (deprecated_write_sp): Replace
5950 generic_target_write_sp.
5951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5952 * vax-tdep.c (vax_gdbarch_init): Update.
5953 * v850-tdep.c (v850_gdbarch_init): Update.
5954 * sparc-tdep.c (sparc_gdbarch_init): Update.
5955 * sh-tdep.c (sh_gdbarch_init): Update.
5956 * s390-tdep.c (s390_gdbarch_init): Update.
5957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5958 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5959 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5960 * mcore-tdep.c (mcore_gdbarch_init): Update.
5961 * m68k-tdep.c (m68k_gdbarch_init): Update.
5962 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5963 * ia64-tdep.c (ia64_gdbarch_init): Update.
5964 * h8300-tdep.c (h8300_gdbarch_init): Update.
5965 * frv-tdep.c (frv_gdbarch_init): Update.
5966 * cris-tdep.c (cris_gdbarch_init): Update.
5967 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5968
5969 2003-06-07 Andrew Cagney <cagney@redhat.com>
5970
5971 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5972 Assert that PC_REGNUM is valid.
5973 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5974
5975 2003-06-07 Andrew Cagney <cagney@redhat.com>
5976
5977 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5978 * gdbarch.h, gdbarch.c: Regenerate.
5979 * mn10300-tdep.c: Include "gdb_assert.h".
5980 (mn10300_read_fp): New function.
5981 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5982 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5983 * ia64-tdep.c: Include "gdb_assert.h".
5984 (ia64_read_fp): New function.
5985 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5986 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5987 * regcache.c (generic_target_read_sp): Delete function.
5988 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5989 * inferior.h (generic_target_read_sp): Delete declaration.
5990 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5991 generic_target_read_sp.
5992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5993 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5994 * sh-tdep.c (sh_gdbarch_init): Ditto.
5995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5996 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5997
5998 2003-06-07 Andrew Cagney <cagney@redhat.com>
5999
6000 * gdbarch.sh: Comment each field of startup_gdbarch.
6001 * gdbarch.h, gdbarch.c: Re-generate.
6002
6003 2003-06-07 Andrew Cagney <cagney@redhat.com>
6004
6005 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
6006 * gdbarch.h, gdbarch.c: Re-generate.
6007 * regcache.c: Update comments on read_pc et.al.
6008 (generic_target_read_pc): Delete function.
6009 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
6010 * inferior.h (generic_target_read_pc): Delete declaration.
6011 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
6012 generic_target_read_pc.
6013 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6014 * sh-tdep.c (sh_gdbarch_init): Ditto.
6015 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6017
6018 2003-06-07 Andrew Cagney <cagney@redhat.com>
6019
6020 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6021 "index" with "special_local_sect". Use strcmp instead of STREQ.
6022 Append period to coments.
6023
6024 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6025
6026 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6027 (elfstab_offset_sections): Likewise.
6028 * gdb-stabs.h (stab_section_info): Likewise.
6029 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6030 * objfiles.c (objfile_relocate): Likewise.
6031 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6032 * remote.c (get_offsets): Likewise.
6033 (remote_cisco_objfile_relocate): Likewise.
6034 * somread.c (som_symfile_offsets): Likewise.
6035 * symfile.c (alloc_section_addr_info): New function.
6036 (build_section_addr_info_from_section_tab): Use it.
6037 (free_section_addr_info): Adjust.
6038 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6039 (syms_from_objfile): Allocate local_addr dynamically.
6040 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6041 dynamically.
6042 (add_symbol_file_command): Allocate sect_opts dynamically.
6043 (reread_symbols): Avoid use of SECT_OFF_MAX.
6044 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6045 (alloc_section_addr_info): Declare it.
6046 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6047 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6048 dynamically.
6049 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6050
6051 2003-06-06 Andrew Cagney <cagney@redhat.com>
6052
6053 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6054 (d10v_frame_unwind_cache): Do not set "return_pc".
6055
6056 2003-06-06 Michael Snyder <msnyder@redhat.com>
6057
6058 * h8300-tdep.c: Make tidy (long lines).
6059
6060 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6061
6062 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6063 to regcache_collect().
6064
6065 2003-06-05 J. Brobecker <brobecker@gnat.com>
6066
6067 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6068 pc_in_sigtramp multiarch method.
6069 (hppa_hpux_som_init_abi): Use it.
6070 (hppa_hpux_elf_init_abi): Likewise.
6071 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6072 macro has been multiarched.
6073 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6074 macro here, as hppa64 isn't multiarched yet.
6075
6076 2003-06-05 Andrew Cagney <cagney@redhat.com>
6077
6078 * Makefile.in (value_h): Add $(frame_h).
6079 * value.h: Include "frame.h".
6080 (struct value): Replace "frame_addr" with "frame_id".
6081 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6082 * values.c (allocate_value): Use VALUE_FRAME_ID.
6083 (value_copy): Use VALUE_FRAME_ID.
6084 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6085 * valops.c (value_assign): Update. Use frame_find_by_id.
6086
6087 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6088
6089 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6090 in each pass.
6091
6092 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6093
6094 * thread-db.c (check_event): For create/death event breakpoints,
6095 loop through all messages to ensure that we read the message
6096 corresponding to the breakpoint we are at.
6097
6098 2003-06-04 Michael Snyder <msnyder@redhat.com>
6099
6100 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6101
6102 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6103
6104 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6105 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6106 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6107 when handling .eh_frame sections.
6108
6109 2003-06-04 J. Brobecker <brobecker@gnat.com>
6110
6111 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6112 prepare_to_proceed procedure instead of the hppa-specific one.
6113 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6114
6115 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6116
6117 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6118 * config.in: Regenerated.
6119 * configure.in: Add test for syscall function and check for
6120 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6121 * configure: Regenerated.
6122 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6123 <sys/syscall.h>.
6124 (kill_lwp): New function that uses tkill syscall or
6125 uses kill, depending on whether threading model is nptl or not.
6126 All callers of kill() changed to use kill_lwp().
6127 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6128 see if all threads have already exited in the nptl model.
6129 (stop_and_resume_callback): New callback function used by the
6130 lin_lwp_wait thread exit handling code.
6131 (stop_wait_callback): Check for threads already having exited and
6132 delete such threads fromt the lwp list when discovered.
6133 (stop_callback): Don't assert retcode of kill call.
6134
6135 Roland McGrath <roland@redhat.com>
6136 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6137 nptl libthread_db.
6138
6139 2003-06-03 Richard Henderson <rth@redhat.com>
6140
6141 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6142 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6143 (alpha_sigtramp_frame_prev_register): Likewise.
6144 (alpha_heuristic_frame_prev_register): Likewise.
6145 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6146
6147 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6148 alpha-specific register id names.
6149 (alpha_mdebug_frame_unwind_cache): Likewise.
6150 (alpha_mdebug_frame_prev_register): Likewise.
6151
6152 2003-06-03 Richard Henderson <rth@redhat.com>
6153
6154 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6155 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6156 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6157 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6158 unwind routines.
6159 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6160 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6161 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6162
6163 * alpha-linux-tdep.c: Remove unnecessary includes.
6164 * Makefile.in (alpha-linux-tdep.o): Update.
6165
6166 2003-06-03 Richard Henderson <rth@redhat.com>
6167
6168 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6169 (alphabsd_fill_fpreg): Likewise.
6170
6171 2003-06-03 J. Brobecker <brobecker@gnat.com>
6172
6173 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6174 references to struct frame_info fields by calls to the equivalent
6175 accessors. Necessary now that frame_info is opaque.
6176
6177 2003-06-03 J. Brobecker <brobecker@gnat.com>
6178
6179 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6180 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6181 structure, field no longer exists.
6182
6183 2003-06-03 J. Brobecker <brobecker@gnat.com>
6184
6185 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6186 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6187
6188 2003-06-03 J. Brobecker <brobecker@gnat.com>
6189
6190 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6191 references to struct frame_info fields by calls to the equivalent
6192 accessors. Necessary now that frame_info is opaque.
6193
6194 2003-06-03 J. Brobecker <brobecker@gnat.com>
6195
6196 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6197 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6198 structure, field no longer exists.
6199
6200 2003-06-03 Theodore A. Roth <troth@openavr.org>
6201
6202 * remote.c (init_remote_state): Compute sizeof_g_packet by
6203 accumulation of the size of all registers instead of blindly using
6204 DEPRECATED_REGISTER_BYTES.
6205
6206 2003-06-03 Michael Snyder <msnyder@redhat.com>
6207
6208 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6209 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6210 for h8300sx.
6211
6212 2003-06-03 J. Brobecker <brobecker@gnat.com>
6213
6214 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6215 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6216
6217 2003-06-03 Andrew Cagney <cagney@redhat.com>
6218
6219 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6220 (sparc_convert_to_raw): Delete function.
6221 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6222 register_convert_to_virtual.
6223
6224 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6225
6226 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6227 layer if not dealing with a statically-linked threaded program.
6228
6229 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6230
6231 * solib.c (solib_open): Update comment to reflect actual search order.
6232
6233 2003-06-03 Andrew Cagney <cagney@redhat.com>
6234
6235 * frame.c (get_frame_memory_signed): New function.
6236 (get_frame_memory, get_frame_memory_unsigned): New function.
6237 (get_frame_arch): New function.
6238 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6239 (get_frame_memory, get_frame_unsigned_memory): Declare.
6240 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6241 get_frame_memory_unsigned and get_frame_arch.
6242 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6243
6244 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6245
6246 * MAINTAINERS (write after approval): Add myself.
6247
6248 2003-06-03 Jim Blandy <jimb@redhat.com>
6249
6250 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6251 elements of gregset_t are 64 bits each, but access registers
6252 are still 32 bits, so they're packed two per gregset_t
6253 element. Unpack/pack them properly.
6254
6255 2003-06-02 David Carlton <carlton@bactrian.org>
6256
6257 * linespec.c (find_methods): Break out code into
6258 add_matching_methods and add_constructors.
6259 (add_matching_methods): New.
6260 (add_constructors): Ditto.
6261
6262 2003-06-02 Andrew Cagney <cagney@redhat.com>
6263
6264 * sparc-tdep.c (sparc_print_registers): Delete call to
6265 REGISTER_CONVERTIBLE.
6266 (sparc_gdbarch_init): Do not set register_convertible.
6267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6268 * frv-tdep.c (frv_gdbarch_init): Ditto.
6269 * cris-tdep.c (cris_gdbarch_init): Ditto.
6270
6271 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6272
6273 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6274 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6275 (syms_from_objfile): Ditto.
6276
6277 2003-06-03 Andreas Schwab <schwab@suse.de>
6278
6279 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6280 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6281
6282 2003-06-02 Richard Henderson <rth@redhat.com>
6283
6284 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6285 a member of all_reggroup.
6286
6287 2003-06-02 Richard Henderson <rth@redhat.com>
6288
6289 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6290 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6291 (alpha_lds, alpha_sts): New.
6292 (alpha_convert_register_p): Change from _register_convertible.
6293 (alpha_register_to_value): Change from _convert_to_virtual;
6294 restructure and fail for type sizes other than 4 or 8.
6295 (alpha_value_to_register): Similarly.
6296 (alpha_extract_return_value): Use alpha_sts.
6297 (alpha_store_return_value): Use alpha_lds.
6298 (alpha_gdbarch_init): Update hooks.
6299
6300 2003-06-02 Richard Henderson <rth@redhat.com>
6301
6302 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6303 regnum identifiers.
6304 (alpha_sigtramp_register_address): Likewise.
6305
6306 2003-06-02 Richard Henderson <rth@redhat.com>
6307
6308 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6309 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6310 * alpha-tdep.h: Declare them.
6311
6312 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6313 Remove zerobuf. Don't error on UNIQUE.
6314 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6315 (ALPHA_REGSET_UNIQUE): Provide default.
6316 (supply_gregset): Use alpha_supply_int_regs.
6317 (fill_gregset): Use alpha_fill_int_regs.
6318 (supply_fpregset): Use alpha_supply_fp_regs.
6319 (fill_fpregset): Use alpha_fill_fp_regs.
6320 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6321 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6322 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6323 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6324 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6325 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6326
6327 2003-06-02 Richard Henderson <rth@redhat.com>
6328
6329 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6330
6331 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6332 (alpha_store_return_value): Likewise.
6333
6334 2003-06-02 David Carlton <carlton@math.stanford.edu>
6335
6336 * block.c (contained_in): Add 'const' to arguments.
6337 (block_function): Ditto.
6338 * block.h: Update declarations for block_function and
6339 contained_in.
6340
6341 2003-06-02 David Carlton <carlton@math.stanford.edu>
6342
6343 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6344 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6345 * p-valprint.c (pascal_val_print): Ditto.
6346 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6347
6348 2003-06-02 Richard Henderson <rth@redhat.com>
6349
6350 * alpha-tdep.c (alpha_push_dummy_call): Use
6351 builtin_type_ieee_double_little instead of builtin_type_double.
6352
6353 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6354 sign-extension of 32-bit values.
6355 (alpha_store_return_value): Similarly.
6356
6357 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6358 (alpha_extract_return_value): Likewise.
6359 (alpha_store_return_value): Likewise.
6360
6361 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6362 (alpha_store_return_value): Error on IEEE Quad floats.
6363
6364 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6365 (alpha_extract_struct_value_address): Likewise.
6366 (alpha_store_return_value): Likewise.
6367 (alpha_store_struct_return): Remove.
6368 (alpha_gdbarch_init): Update hook registration to match.
6369
6370 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6371 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6372 macros where appropriate.
6373 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6374 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6375
6376 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6377 for SP, GP; void_func_ptr for PC; non-language-specific types
6378 for all others.
6379 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6380
6381 2003-06-02 Richard Henderson <rth@redhat.com>
6382
6383 * top.h (lim_at_start): Declare.
6384 * main.c (captured_main): Set it.
6385 * top.c (lim_at_start): Define.
6386 (command_loop): Use it instead of &environ.
6387 * event-top.c (command_handler): Likewise.
6388
6389 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6390
6391 * mipsnbsd-tdep.c: Update copyright years.
6392 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6393
6394 2003-06-01 Richard Henderson <rth@redhat.com>
6395
6396 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6397 (alpha-linux-tdep.o): Update dependencies.
6398 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6399 * alpha-mdebug-tdep.c: Remove unneeded includes.
6400
6401 2003-06-01 Richard Henderson <rth@redhat.com>
6402
6403 * alpha-tdep.c (alpha_register_reggroup_p): New.
6404 (alpha_gdbarch_init): Register it.
6405
6406 2003-06-02 Andrew Cagney <cagney@redhat.com>
6407
6408 * dwarfread.c: Eliminate "register"
6409 (decode_die_type): Eliminate assignment within "if".
6410 (struct_type, decode_array_element_type): Ditto.
6411 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6412 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6413 (decode_modified_type, completedieinfo): Ditto.
6414 * block.c: Eliminate "register".
6415 (blockvector_for_pc_sect): Eliminate assignment within "if".
6416 * cp-support.h (struct symbol): Opaque declaration.
6417 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6418
6419 2003-06-01 Richard Henderson <rth@redhat.com>
6420
6421 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6422 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6423
6424 2003-06-01 Adam Fedor <fedor@gnu.org>
6425
6426 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6427 * gdbarch.[ch]: Regenerate.
6428 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6429 (hppa_gdbarch_init): Set it in the gdbarch vector.
6430 * i386-tdep.c (i386_fetch_pointer_argument): New
6431 (i386_gdbarch_init): Set it into gdbarch.
6432 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6433 (rs6000_gdbarch_init): Set it in gdbarch.
6434 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6435 (sparc_gdbarch_init): Set it in gdbarch.
6436
6437 2003-06-01 Andrew Cagney <cagney@redhat.com>
6438
6439 * defs.h (extract_address): Delete declaration.
6440 * findvar.c (extract_address): Delete function.
6441 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6442 extract_address with the inline equivalent,
6443 extract_unsigned_integer.
6444 (xstormy16_extract_struct_value_address): Ditto.
6445 (xstormy16_pointer_to_address): Ditto.
6446 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6447 * v850-tdep.c (v850_push_arguments): Ditto.
6448 (v850_extract_return_value): Ditto.
6449 (v850_extract_struct_value_address): Ditto.
6450 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6451 (sparcnbsd_get_longjmp_target_64): Ditto.
6452 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6453 (get_longjmp_target): Ditto.
6454 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6455 (sh64_extract_struct_value_address): Ditto.
6456 (sh_push_arguments): Ditto.
6457 (sh64_push_arguments): Ditto.
6458 * remote-vxsparc.c (vx_read_register): Ditto.
6459 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6460 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6461 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6462 * mipsv4-nat.c (get_longjmp_target): Ditto.
6463 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6464 * mips-nat.c (get_longjmp_target): Ditto.
6465 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6466 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6467 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6468 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6469 * irix5-nat.c (get_longjmp_target): Ditto.
6470 * irix4-nat.c (get_longjmp_target): Ditto.
6471 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6472 (ia64_push_arguments): Ditto.
6473 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6474 * h8300-tdep.c (h8300_push_arguments): Ditto.
6475 (h8300_store_return_value): Ditto.
6476 (h8300_extract_struct_value_address): Ditto.
6477 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6478 (frv_push_arguments): Ditto.
6479 * avr-tdep.c (avr_pointer_to_address): Ditto.
6480 (avr_push_arguments): Ditto.
6481 * arm-tdep.c (arm_push_dummy_call): Ditto.
6482 (arm_get_longjmp_target): Ditto.
6483 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6484 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6485 (alpha_get_longjmp_target): Ditto.
6486
6487 * solib-irix.c (extract_mips_address): Inline extract_address,
6488 replacing it with extract_signed_integer.
6489 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6490 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6491 (first_link_map_member, open_symbol_file_object): Ditto.
6492 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6493 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6494 (LM_NEXT, LM_NAME): Ditto.
6495
6496 2003-06-01 Richard Henderson <rth@redhat.com>
6497
6498 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6499 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6500 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6501 (alpha_cannot_store_register): Likewise.
6502 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6503 * alpha-nat.c (supply_gregset): Likewise.
6504 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6505
6506 2003-06-01 Andrew Cagney <cagney@redhat.com>
6507
6508 * infcall.c (call_function_by_hand): Update comment on
6509 DEPRECATED_DUMMY_WRITE_SP.
6510
6511 * mips-tdep.c (mips_gdbarch_init): Do not set
6512 deprecated_dummy_write_sp.
6513 (mips_eabi_push_dummy_call): Set the SP register.
6514 (mips_o64_push_dummy_call): Set the SP register.
6515 (mips_o32_push_dummy_call): Set the SP register.
6516 (mips_n32n64_push_dummy_call): Set the SP register.
6517
6518 2003-06-01 Richard Henderson <rth@redhat.com>
6519
6520 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6521 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6522 (supply_gregset): Likewise.
6523 * alpha-tdep.c (alpha_store_return_value): Likewise.
6524 (alpha_get_longjmp_target): Likewise.
6525 (alpha_register_name): Constify array.
6526 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6527 deprecated_register_size, deprecated_register_bytes,
6528 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6529 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6530 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6531
6532 2003-06-01 Richard Henderson <rth@redhat.com>
6533
6534 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6535 from arg_reg_buffer to regcache to avoid double conversion.
6536
6537 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6538
6539 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6540 SP_REGNUM.
6541 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6542 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6543
6544 2003-06-01 Richard Henderson <rth@redhat.com>
6545
6546 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6547 (decode_frame_entry): Set it. Skip FDE augmentation.
6548
6549 2003-06-01 Richard Henderson <rth@redhat.com>
6550
6551 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6552 not overlapping PC_REGNUM.
6553
6554 2003-06-01 Richard Henderson <rth@redhat.com>
6555
6556 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6557 alpha_push_arguments. Don't dump argument register data to
6558 the target stack. Fix float and 128-bit long double semantics.
6559 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6560 (alpha_fix_call_dummy): Remove.
6561 (alpha_call_dummy_words): Remove.
6562 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6563
6564 2003-06-01 Richard Henderson <rth@redhat.com>
6565
6566 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6567
6568 2003-06-01 Andrew Cagney <cagney@redhat.com>
6569
6570 * mips-tdep.c (is_mips16_addr): New function.
6571 (make_mips16_addr, unmake_mips16_addr): New functions.
6572 (pc_is_mips16, mips_fetch_instruction): Use.
6573 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6574 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6575 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6576 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6577 TARGET_MIPS.
6578 * config/mips/tm-mips.h: Update copyright.
6579 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6580 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6581 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6582 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6583 (TM_PRINT_INSN_MACH): Delete.
6584 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6585
6586 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6587 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6588 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6589 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6590 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6591 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6592 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6593 mips*-*-riscos* and mips*-*-sysv* onto mips.
6594 * config/mips/mips64.mt: New file.
6595 * config/mips/mips.mt: New file.
6596 * config/mips/littlemips.mt: Delete file.
6597 * config/mips/decstation.mt: Delete file.
6598 * config/mips/vr4300el.mt: Delete file.
6599 * config/mips/vr5000el.mt: Delete file.
6600 * config/mips/vr5000.mt: Delete file.
6601 * config/mips/vr4100.mt: Delete file.
6602 * config/mips/vr4xxxel.mt: Delete file.
6603 * config/mips/vr4300.mt: Delete file.
6604 * config/mips/vr4xxx.mt: Delete file.
6605 * config/mips/bigmips.mt: Delete file.
6606 * config/mips/bigmips64.mt: Delete file.
6607 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6608 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6609 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6610 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6611 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6612 "tm-bigmips.h".
6613 * config/mips/tm-irix3.h: Ditto.
6614 * config/mips/tm-mipsv4.h: Ditto.
6615 * config/mips/tm-embed.h: Ditto.
6616 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6617 "tm-bigmips64.h".
6618 * config/mips/tm-vr5000el.h: Delete file.
6619 * config/mips/tm-tx39l.h: Delete file.
6620 * config/mips/tm-vr4300el.h: Delete file.
6621 * config/mips/tm-vr4xxxel.h: Delete file.
6622 * config/mips/tm-vr4300.h: Delete file.
6623 * config/mips/tm-vr4100.h: Delete file.
6624 * config/mips/tm-vr4xxx.h: Delete file.
6625 * config/mips/tm-vr5000.h: Delete file.
6626 * config/mips/tm-embedl64.h: Delete file.
6627 * config/mips/tm-embedl.h: Delete file.
6628 * config/mips/tm-embed64.h: Delete file.
6629 * config/mips/tm-bigmips64.h: Delete file.
6630 * config/mips/tm-bigmips.h: Delete file.
6631
6632 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6633
6634 Fix gdb/1216.
6635 * shnbsd-nat.c: Include "sh-tdep.h".
6636
6637 From Richard Henderson <rth@redhat.com>:
6638 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6639
6640 2003-05-31 Andrew Cagney <cagney@redhat.com>
6641
6642 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6643 forward declaration.
6644 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6645 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6646 (mips_find_saved_regs): Use set_reg_offset.
6647 (mips_frame_init_saved_regs): Delete function.
6648 (mips_pop_frame): Call mips_find_saved_regs instead of
6649 DEPRECATED_FRAME_INIT_SAVED_REGS.
6650
6651 2003-05-31 Andrew Cagney <cagney@redhat.com>
6652
6653 * mips-tdep.c (mips_gdbarch_init): Do not set
6654 deprecated_max_register_raw_size, register_virtual_size, and
6655 deprecated_max_register_virtual_size.
6656
6657 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6658
6659 * i386-tdep.c: Include "dwarf2-frame.h".
6660 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6661 * Makefile.in (i386-tdep.o): Update dependencies.
6662
6663 * dwarf2-frame.c, dwarf2-frame.h: New files.
6664 * Makefile.in (SFILES): Add dwarf2-frame.c.
6665 (dwarf2_frame_h): Define.
6666 (COMMON_OBS): Add dwarf2-frame.o.
6667 (dwarf2-frame.o): Add dependencies.
6668
6669 2003-05-31 Andreas Jaeger <aj@suse.de>
6670
6671 * x86-64-linux-nat.c: Fix comment.
6672
6673 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6674
6675 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6676 function signature.
6677
6678 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6679 have a sigcontext_addr handler.
6680 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6681 sigcontext_addr handler.
6682
6683 2003-05-31 Andrew Cagney <cagney@redhat.com>
6684
6685 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6686 (print_fp_register_row): Replace do_fp_register_row.
6687 (mips_print_fp_register): Add "file" and "frame" parameters.
6688 (mips_print_register): Add "file" and "frame" parameters.
6689 (mips_print_registers_info): Replace mips_do_registers_info.
6690 (mips_gdbarch_init): Set print_registers_info instead of
6691 deprecated_do_registers_info.
6692 (mips_read_fp_register_single): Add "frame" parameter.
6693 (mips_read_fp_register_double): Add "frame" parameter.
6694
6695 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6696
6697 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6698 Fixes a bug where GDB would print the wrong register names for
6699 targets without SSE.
6700
6701 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6702 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6703 registers.
6704
6705 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6706 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6707 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6708 TDEP->sc_sp_offset.
6709
6710 From Michal Ludvig <mludvig@suse.cz>:
6711 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6712 and `sc_num_regs'.
6713 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6714 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6715 I386_ST0_REGNUM): Move here from...
6716 * i386-tdep.c: ... here.
6717 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6718 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6719 registers if possible.
6720 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6721 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6722 Remove variables.
6723 (i386bsd_sc_reg_offset): New variable.
6724 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6725 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6726 TDEP->sc_sp_offset.
6727 (i386fbsd_sc_reg_offset): New variable.
6728 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6729 TDEP->sc_num_regs.
6730 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6731 variables.
6732 (i386fbsd4_sc_reg_offset): New variable.
6733 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6734 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6735 TDEP->sc_sp_offset.
6736 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6737 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6738 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6739 Remove variables.
6740 (i386nbsd_sc_reg_offset): New variable.
6741 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6742 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6743 TDEP->sc_sp_offset.
6744 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6745 Remove variables.
6746 (i386obsd_sc_reg_offset): New variable.
6747 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6748 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6749 TDEP->sc_sp_offset.
6750 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6751 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6752 for frame pointer offset in `struct sigcontext'.
6753
6754 2003-05-31 Andrew Cagney <cagney@redhat.com>
6755
6756 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6757 architecture methods call_dummy_words, sizeof_call_dummy_words,
6758 push_return_address, store_struct_return, and fix_call_dummy. Set
6759 push_dummy_call instead of deprecated_push_arguments.
6760 (mips_store_struct_return): Delete function.
6761 (mips_fix_call_dummy): Delete function.
6762 (mips_push_return_address): Delete function.
6763 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6764 RA_REGNUM and T9_REGNUM.
6765 (mips_n32n64_push_dummy_call): Ditto for
6766 mips_n32n64_push_arguments.
6767 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6768 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6769
6770 2003-05-31 Andrew Cagney <cagney@redhat.com>
6771
6772 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6773 "dummy_addr" to "bp_addr".
6774 * infcall.c (call_function_by_hand): Pass "funaddr" to
6775 gdbarch_push_dummy_call.
6776 * gdbarch.h, gdbarch.c: Re-generate.
6777 * i386-tdep.c (i386_push_dummy_call): Update.
6778 * arm-tdep.c (arm_push_dummy_call): Update.
6779 * d10v-tdep.c (d10v_push_dummy_call): Update.
6780
6781 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6782
6783 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6784 variable declarations.
6785 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6786 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6787 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6788 x86_64_init_frame_pc, x86_64_init_frame_pc,
6789 x86_64_function_has_prologue): Remove prototypes.
6790 (X86_64_NUM_GREGS): New define.
6791 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6792 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6793 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6794 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6795 XMM1_REGNUM): Remove defines.
6796 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6797 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6798 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6799 X86_64_XMM1_REGNUM): New defines.
6800 (struct x86_64_register_info): Renamed from `struct
6801 register_info'. Remove `size' member.
6802 (x86_64_register_info_table): Remove variable.
6803 (x86_64_register_info): New variable.
6804 (X86_64_NUM_REGS): New define.
6805 (X86_64_NUM_GREGS): Remove define.
6806 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6807 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6808 Remove variables.
6809 (x86_54_dwarf2_reg_to_regnum): Remove function.
6810 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6811 (x86_64_dwarf_reg_to_regnum): New function.
6812 (x86_64_register_name): Rewrite.
6813 (x86_64_register_raw_size): Remove function.
6814 (x86_64_register_byte_table): Remove variable.
6815 (x86_64_register_byte): Remove function.
6816 (x86_64_register_virtual_type): Remove function.
6817 (x86_64_register_type): New function.
6818 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6819 x86_64_register_convert_to_raw): Remove functions.
6820 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6821 (x86_64_use_struct_convention): Make static. Adjust for renamed
6822 defines.
6823 (x86_64_frame_init_saved_regs): Remove function.
6824 (x86_64_push_arguments): Make static. Change to accept a regcache
6825 as argument.
6826 (x86_64_store_return_value, x86_64_extract_return_value): Make
6827 static. Rewrite based on i386 counterparts.
6828 (x86_64_push_dummy_call): New function.
6829 (X86_64_NUM_SAVED_REGS): New define.
6830 (x86_64_register_number): Remove function.
6831 (x86_64_store_struct_return): Remove function.
6832 (x86_64_frameless_function_invocation,
6833 x86_64_function_has_prologue): Remove functions.
6834 (PROLOG_BUFSIZE): Remove define.
6835 (struct x86_64_frame_cache): New structure.
6836 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6837 x86_64_frame_cache, x86_64_frame_this_id,
6838 x86_64_frame_prev_register, x86_64_frame_p,
6839 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6840 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6841 functions.
6842 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6843 variables.
6844 (x86_64_skip_prologue): Rewrite in terms of
6845 x86_64_analyze_prologue.
6846 (x86_64_frame_base_address): New function.
6847 (x86_64_frame_base): New variable.
6848 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6849 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6850 set deprecated_fp_regnum, deprecated_register_size,
6851 deprecated_register_bytes, register_raw_size, register_byte,
6852 register_virtual_type, register_convertiable,
6853 register_convert_to_virtual, convert_to_raw,
6854 deprecated_get_saved_register, deprecated_target_read_fp,
6855 deprecated_push_arguments, deprecated_push_return_address,
6856 deprecated_pop_frame, deprecated_store_struct_return,
6857 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6858 frameless_function_invocation, deprecated_frame_saved_pc,
6859 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6860 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6861 deprecated_init_frame_pc and virtual_frame_pointer. Call
6862 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6863 and x86_64_frame_p. Call frame_base_set_default to register
6864 x86_64_frame_base.
6865 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6866 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6867 (_initialize_x86_64_tdep): Remove function.
6868 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6869 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6870 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6871 define.
6872 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6873 (x86_64_linux_sigcontext_addr): Rewrite.
6874 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6875 x86_64_linux_frame_saved_pc): Remove functions.
6876 (x86_64_linux_pc_in_sigtramp): Renamed from
6877 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6878 trampoline.
6879 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6880 Remove_functions.
6881 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6882 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6883 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6884 (x86_64_regmap): Rename to regmap.
6885 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6886 x86_64_num_gregs.
6887 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6888 x86_64_regmap.
6889 (x86_64_fxsave_offset): Remove function.
6890 (supply_fpregset): Simply call x86_64_supply_fxsave.
6891 (fill_fpregset): Simply call x86_64_fill_fxsave.
6892 (fetch_inferior_registers, store_inferior_registers): Avoid
6893 asignment in if-statement.
6894 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6895 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6896 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6897 (fetch_core_registers): Remove function.
6898 (linux_elf_core_fns): Remove.
6899 (offsetoff): Don't define.
6900 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6901 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6902 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6903 add core-regset.o.
6904 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6905 protection against multiple includes instead of NM_X86_64_h. Add
6906 various comments. Include "config/nm-linux.h". Don't include
6907 <signal.h>.
6908 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6909 GET_THREAD_SIGNALS): Remove defines.
6910 (x86_64_register_u_addr, kernel_u_size,
6911 lin_thread_get_thread_signals): Remove prototypes.
6912 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6913 [HAVE_LINK_H]: Don't include "solib.h".
6914 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6915 * config/i386/tm-x86-64linux.h: Fix comments.
6916 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6917 x86-64-tdep.o): Update dependencies.
6918
6919 2003-05-30 Andrew Cagney <cagney@redhat.com>
6920
6921 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6922 Change parameter type to a "struct regcache *".
6923
6924 * gdbarch.sh: Regardless of the multi-arch level, always define
6925 the macro when not already defined.
6926 * gdbarch.h, gdbarch.c: Re-generate.
6927
6928 2003-05-30 Richard Henderson <rth@redhat.com>
6929
6930 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6931 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6932 (alpha_mdebug_frame_this_id): Likewise.
6933 (alpha_mdebug_frame_prev_register): Likewise.
6934 (alpha_mdebug_frame_base_address): Likewise.
6935 (alpha_mdebug_frame_locals_address): Likewise.
6936 (alpha_mdebug_frame_args_address): Likewise.
6937 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6938 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6939 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6940 loop increment.
6941 (alpha_heuristic_frame_this_id): Make static.
6942 (alpha_heuristic_frame_prev_register): Likewise.
6943 (alpha_heuristic_frame_base_address): Likewise.
6944 * alpha-tdep.h: Update.
6945
6946 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6947
6948 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6949 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6950 defenitions.
6951 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6952 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6953 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6954 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6955 I386_ST0_REGNUM): New defines.
6956 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6957 codestream_get): Remove define.
6958 (codestream_next_addr, condestream_addr, condestream_buf,
6959 codestream_off, codestream_cnt): Remove variables.
6960 (codestream_fill, codestream_seek, codestream_read): Remove
6961 functions.
6962 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6963 functionality.
6964 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6965 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6966 i386_frame_saved_pc, i386_saved_pc_after_call,
6967 i386_frame_num_args, i386_frame_init_saved_regs,
6968 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6969 i386_push_arguments): Remove functions.
6970 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6971 functionality. Use i386_analyze_prologue instead of
6972 i386_get_frame_setup.
6973 (I386_NUM_SAVED_REGS): New define.
6974 (struct i386_frame_cache): New structure.
6975 (i386_alloc_frame_cache, i386_analyze_struct_return,
6976 i386_skip_probe, i386_analyze_frame_setup,
6977 i386_analyze_register_saves, i386_analyze_prologue,
6978 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6979 i386_frame_prev_register, i386_sigtramp_frame_cache,
6980 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6981 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6982 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6983 New functions.
6984 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6985 New variables.
6986 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6987 I386_EAX_REGNUM and I386_EDX_REGNUM.
6988 (i386_extract_return_value, i386_store_return_value): Use
6989 I386_ST0_REGNUM where appropriate.
6990 (i386_extract_struct_value_address): Rewrite to use extract_address.
6991 (i386_svr4_pc_in_sigtramp): Add comment.
6992 (i386_svr4_sigcontext_addr): Rewrite.
6993 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6994 TDEP->sc_sp_offset.
6995 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6996 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6997 of new defines. Set push_dummy_call, don't set
6998 deprecated_push_arguments, deprecated_push_return_address,
6999 deprecated_pop_frame. Don't set parm_boundary. Don't set
7000 deprecated_frame_chain, deprecated_frame_saved_pc,
7001 deprecated_saved_pc_after_call. Set unwind_dummy_id,
7002 save_dummy_frame_tos, unwind_pc. Call
7003 frame_unwind_append_predicate and frame_base_set_default. Don't
7004 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
7005 Don't set frameless_function_invocation. Don't set
7006 deprecated_register_bytes, deprecated_register_size,
7007 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
7008 * i386-linux-tdep.c: Fix formatting in some comments.
7009 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
7010 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
7011 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
7012 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
7013 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7014 redundant parentheses.
7015 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7016 (i386_linux_sigcontext_addr): Use it. Rewrite.
7017 (find_minsym_and_objfile): Change name of second argument.
7018 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7019 changed. Use frame_pc_unwind instead of
7020 DEPRECATED_SAVED_PC_AFTER_CALL.
7021 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7022 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7023 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7024 unwinder.
7025 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7026 "dummy-frame.h".
7027 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7028 (_initialize_i386_cygwin_tdep): New prototype.
7029 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7030 deprecated_frame_chain_valid.
7031 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7032 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7033 Rely on the SVR4 defaults.
7034 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7035 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7036
7037 2003-05-30 Andrew Cagney <cagney@redhat.com>
7038
7039 * infcall.c (call_function_by_hand): Always call
7040 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7041
7042 2003-05-30 Richard Henderson <rth@redhat.com>
7043
7044 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7045 increment.
7046
7047 2003-05-29 Jim Blandy <jimb@redhat.com>
7048
7049 Use gdbarch methods for solib stuff on PowerPC Linux.
7050 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7051 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7052 show through.
7053 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7054 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7055 giving the same effect as the #definitions above.
7056
7057 2003-05-29 Adam Fedor <fedor@gnu.org>
7058
7059 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7060 (find_implementation_from_class): Replace it with the standard
7061 case i.e. do nothing.
7062
7063 2003-05-29 Richard Henderson <rth@redhat.com>
7064
7065 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7066 (alpha_linux_sigtramp_offset): Use it. Make static.
7067 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7068 update for new frame model.
7069 * alpha-mdebug-tdep.c: New file.
7070 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7071 (alpha_osf1_init_abi): Install it.
7072 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7073 (linked_proc_desc_table): Remove.
7074 (alpha_frame_past_sigtramp_frame): Remove.
7075 (alpha_dynamic_sigtramp_offset): Remove.
7076 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7077 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7078 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7079 (push_sigtramp_desc): Remove.
7080 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7081 (alpha_cannot_store_register): Likewise.
7082 (alpha_sigcontext_addr): Remove.
7083 (alpha_find_saved_regs): Remove.
7084 (alpha_frame_init_saved_regs): Remove.
7085 (alpha_init_frame_pc_first): Remove.
7086 (read_next_frame_reg): Remove.
7087 (alpha_frame_saved_pc): Remove.
7088 (alpha_saved_pc_after_call): Remove.
7089 (temp_proc_desc, temp_saved_regs): Remove.
7090 (alpha_about_to_return): Remove.
7091 (cached_proc_desc): Remove.
7092 (alpha_frame_chain): Remove.
7093 (alpha_print_extra_frame_info): Remove.
7094 (alpha_init_extra_frame_info): Remove.
7095 (alpha_frame_locals_address): Remove.
7096 (alpha_frame_args_address): Remove.
7097 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7098 (alpha_push_dummy_frame): Remove.
7099 (alpha_pop_frame): Remove.
7100 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7101 (alpha_read_insn): New.
7102 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7103 for different insn encodings.
7104 (alpha_in_lenient_prologue): Remove.
7105 (struct alpha_sigtramp_unwind_cache): New.
7106 (alpha_sigtramp_frame_unwind_cache): New.
7107 (alpha_sigtramp_register_address): New.
7108 (alpha_sigtramp_frame_this_id): New.
7109 (alpha_sigtramp_frame_prev_register): New.
7110 (alpha_sigtramp_frame_unwind): New.
7111 (alpha_sigtramp_frame_p): New.
7112 (struct alpha_heuristic_unwind_cache): New.
7113 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7114 don't count nop insns that occur between functions.
7115 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7116 heuristic_proc_desc, but without the mdebug wrapping.
7117 (alpha_heuristic_frame_this_id): New.
7118 (alpha_heuristic_frame_prev_register): New.
7119 (alpha_heuristic_frame_unwind): New.
7120 (alpha_heuristic_frame_p): New.
7121 (alpha_heuristic_frame_base_address): New.
7122 (alpha_heuristic_frame_base): New.
7123 (alpha_unwind_dummy_id): New.
7124 (alpha_unwind_pc): New.
7125 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7126 frame related deprecated initializations; install replacements.
7127 (alpha_dump_tdep): Remove.
7128 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7129 (alpha_read_insn, alpha_after_prologue,
7130 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7131 alpha_heuristic_frame_prev_register,
7132 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7133 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7134 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7135 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7136
7137 2003-05-29 Andrew Cagney <cagney@redhat.com>
7138
7139 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7140 dependant on the availability of ASSERT_FUNCTION.
7141 (ASSERT_FUNCTION): Do not define when there is no function name.
7142
7143 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7144
7145 From Jimi X <jimix@watson.ibm.com>:
7146 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7147
7148 2003-05-28 Jim Blandy <jimb@redhat.com>
7149
7150 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7151 argument to ptrace to int; the system headers should give it the
7152 right type, and pointers don't fit in ints on powerpc64-*-*.
7153
7154 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7155
7156 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7157 DW_TAG_catch_block.
7158
7159 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7160
7161 * stabsread.c (dbx_lookup_type): Make static.
7162 (read_type): Ditto.
7163 (add_undefined_type): Ditto.
7164 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7165 not export.
7166
7167 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7168
7169 * hpread.c (hpread_has_name): Make static.
7170 (hpread_psymtab_to_symtab): Ditto.
7171 (file_exists): Ditto.
7172 (hpread_call_pxdb): Ditto.
7173 (hpread_pxdb_needed): Ditto.
7174 (hpread_quick_traverse): Ditto.
7175 (hpread_get_header): Ditto.
7176 (hpread_get_lntt): Ditto.
7177 (hpread_get_slt): Ditto.
7178 (class_of): Ditto.
7179
7180 2003-05-25 Andreas Schwab <schwab@suse.de>
7181
7182 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7183 stack_align and deprecated_extra_stack_alignment_needed.
7184 (m68k_stack_align): Delete.
7185
7186 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7187 (m68k_register_virtual_size): Likewise.
7188 (altos_skip_prologue): Remove obsolete function.
7189 (isi_frame_num_args): Likewise.
7190 (news_frame_num_args): Likewise.
7191 (m68k_fix_call_dummy): Make static.
7192 (m68k_push_dummy_frame): Likewise.
7193 (m68k_pop_frame): Likewise.
7194 (m68k_skip_prologue): Likewise.
7195 (m68k_frame_init_saved_regs): Likewise.
7196 (m68k_saved_pc_after_call): Likewise.
7197 (m68k_get_longjmp_target): Make multi-arch.
7198 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7199 structure. Register m68k_get_longjmp_target if enabled.
7200 * m68k-tdep.h (struct gdbarch_tdep): Define.
7201 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7202
7203 * Makefile.in (config.status): Also depend on configure.tgt
7204 and configure.host.
7205 (m68klinux-tdep.o): Update dependencies.
7206 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7207 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7208 (M68K_LINUX_JB_PC): Define.
7209 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7210 and take additional parameter.
7211 (m68k_linux_sigtramp_saved_pc): Update.
7212 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7213 m68k_linux_pc_in_sigtramp, in_plt_section,
7214 find_solib_trampoline_target.
7215 * config/m68k/tm-linux.h: Don't include any tm headers.
7216 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7217 (JB_ELEMENT_SIZE): Likewise.
7218 (JB_PC): Likewise.
7219 (GET_LONGJMP_TARGET): Likewise.
7220 (IN_SIGTRAMP): Likewise.
7221 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7222
7223 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7224
7225 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7226 (sparc32_push_arguments): Re-implement by calling
7227 sparc32_do_push_arguments.
7228
7229 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7230
7231 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7232 SPARC_O1_REGNUM): New defines.
7233 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7234 (sparc32_store_return_value): New function.
7235 (sparc_extract_struct_value_address): Rewrite to operate on a
7236 regcache.
7237 (sparc_gdbarch_init): Don't set
7238 deprecated_extract_struct_value_address. Set
7239 extract_struct_value_address instead. Don't set
7240 deprecated_extract_return_value and deprecated_store_return_value
7241 for 32-bit targets. Set extract_return_value and
7242 store_return_value instead.
7243 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7244 DEPRECTAED_EXTRACT_RETURN_VALUE,
7245 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7246 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7247 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7248 (sparc_store_return_value): Remove prototype.
7249 (sparc32_store_return_value): New prototype.
7250 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7251 Adjust prototypes.
7252
7253 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7254
7255 * sparcnbsd-tdep.c: Include "gdb_string.h".
7256
7257 2003-05-23 Andrew Cagney <cagney@redhat.com>
7258
7259 * p-valprint.c (pascal_val_print): Replace extract_address with
7260 the inline equivalent extract_unsigned_integer.
7261 * jv-valprint.c (java_value_print): Ditto.
7262 * ada-valprint.c (ada_val_print_1): Ditto.
7263 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7264
7265 2003-05-23 Theodore A. Roth <troth@openavr.org>
7266
7267 * blockframe.c (frameless_look_for_prologue): Remove unused
7268 after_prologue variable.
7269
7270 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7271
7272 * blockframe.c (get_pc_function_start): Rewrite to avoid
7273 asignments in if-statements.
7274
7275 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7276
7277 Committed by Elena Zannoni <ezannoni@redhat.com>.
7278 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7279 files, don't relocate absolute symbols (and do use mst_abs).
7280
7281 2003-05-23 Andrew Cagney <cagney@redhat.com>
7282
7283 * objc-lang.c: Include "gdb_assert.h".
7284 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7285 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7286 (gdb_check, gdb_check_fatal): Delete functions.
7287 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7288 gdb_assert.
7289 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7290 * Makefile.in (objc-lang.o): Update dependencies.
7291
7292 2003-05-22 Ian Lance Taylor <ian@airs.com>
7293
7294 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7295 with fprintf_filtered, not fprintf_unfiltered.
7296
7297 2003-05-22 Andrew Cagney <cagney@redhat.com>
7298
7299 * stack.c (frame_info): Inline extract_address, replacing it with
7300 extract_unsigned_integer.
7301 * findvar.c (unsigned_pointer_to_address): Ditto.
7302 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7303 * dwarf2expr.c (dwarf2_read_address): Ditto.
7304 * frame.c (frame_pc_unwind): Update comment.
7305 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7306
7307 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7308
7309 * infptrace.c (detach): Call print_sys_errmsg rather than
7310 perror_with_name to issue warning message when errno is non-zero
7311 after calling ptrace detach.
7312
7313 2003-05-21 J. Brobecker <brobecker@gnat.com>
7314
7315 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7316 macro definitions from here...
7317 * hppa-tdep.c: ...to there.
7318
7319 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7320
7321 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7322 register_ptrace_addr(). Fix all callers.
7323
7324 2003-05-21 Andreas Schwab <schwab@suse.de>
7325
7326 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7327 dependencies.
7328 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7329 end.
7330 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7331 (_initialize_m68k_linux_tdep): New function.
7332 (m68k_linux_frame_saved_pc): Make static.
7333 (m68k_linux_extract_return_value): Likewise.
7334 (m68k_linux_store_return_value): Likewise.
7335 (m68k_linux_extract_struct_value_address): Likewise.
7336 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7337 Remove.
7338 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7339 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7340 (DEPRECATED_FRAME_SAVED_PC): Remove.
7341
7342 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7343
7344 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7345 regset numbering rather than our own.
7346
7347 2003-05-19 David Carlton <carlton@bactrian.org>
7348
7349 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7350
7351 2003-05-19 David Carlton <carlton@bactrian.org>
7352
7353 Partial fix for PR c++/827.
7354 * cp-support.h: Include symtab.h.
7355 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7356 * cp-namespace.c: Update contributors.
7357 (cp_lookup_symbol_nonlocal): New.
7358 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7359 (lookup_symbol_file): Ditto.
7360 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7361 * block.h: Declare block_scope, block_using, block_global_block.
7362 * block.c (block_scope): New.
7363 (block_using, block_global_block): Ditto.
7364 * Makefile.in (cp_support_h): Depend on symtab_h.
7365 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7366
7367 2003-05-19 David Carlton <carlton@bactrian.org>
7368
7369 * language.h (struct language_defn): Add 'la_value_of_this'
7370 and 'la_lookup_symbol_nonlocal' members.
7371 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7372 lookup_symbol_static, lookup_symbol_global,
7373 lookup_symbol_aux_block.
7374 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7375 if we should search fields of this and how to do static/global
7376 lookup.
7377 (lookup_symbol_aux_block): Make extern.
7378 (basic_lookup_symbol_nonlocal): New.
7379 (lookup_symbol_static, lookup_symbol_global): Ditto.
7380 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7381 'la_lookup_symbol_nonlocal' members.
7382 * c-lang.c (c_language_defn, cplus_language_defn)
7383 (asm_language_defn, minimal_language_defn): Ditto.
7384 * jv-lang.c (java_language_defn): Ditto.
7385 * language.c (unknown_language_defn, auto_language_defn)
7386 (local_language_defn): Ditto.
7387 * m2-lang.c (m2_language_defn): Ditto.
7388 * objc-lang.c (objc_language_defn): Ditto.
7389 * scm-lang.c (scm_language_defn): Ditto.
7390 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7391 * p-lang.c (pascal_language_defn): Ditto for both.
7392 * Makefile.in (f-lang.o): Depend on value_h.
7393 (p-lang.o): Ditto.
7394
7395 2003-05-19 David Carlton <carlton@bactrian.org>
7396
7397 * block.h: Declare block_static_block.
7398 * block.c (block_static_block): New.
7399 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7400 lookup_symbol_aux_local, calling block_static_block instead.
7401 (lookup_symbol_aux_local): Delete 'static_block' argument.
7402
7403 2003-05-19 David Carlton <carlton@bactrian.org>
7404
7405 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7406
7407 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7408
7409 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7410 register numbers mapping.
7411
7412 2003-05-18 Adam Fedor <fedor@gnu.org>
7413
7414 * symtab.c (completion_list_objc_symbol): New function.
7415 (make_symbol_completion_list): Use it to add ObjC symbols
7416 when looking though the list.
7417 (language_search_unquoted_string): New function.
7418 (make_file_symbol_completion_list): Use it.
7419
7420 2003-05-18 Andreas Schwab <schwab@suse.de>
7421
7422 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7423 dependencies.
7424 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7425 as m68k_linux_extract_return_value.
7426 (DEPRECATED_STORE_RETURN_VALUE): Define as
7427 m68k_linux_store_return_value.
7428 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7429 m68k_linux_extract_struct_value_address.
7430 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7431 get_next_frame, get_frame_base, get_frame_pc.
7432 (m68k_linux_frame_saved_pc): Use get_frame_base.
7433 (m68k_linux_extract_return_value): New function.
7434 (m68k_linux_store_return_value): New function.
7435 (m68k_linux_extract_struct_value_address): New function.
7436 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7437
7438 * c-exp.y (typebase): Remove duplicate occurence of
7439 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7440 of lookup_signed_typename.
7441
7442 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7443
7444 * dwarf2loc.c (find_location_expression): Change type of second
7445 argument to `size_t *'.
7446 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7447 for size variable.
7448
7449 2003-05-18 David Carlton <carlton@bactrian.org>
7450
7451 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7452 'linkage_name'. Add comment.
7453 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7454 'linkage_name'.
7455 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7456 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7457 (lookup_block_symbol): Ditto.
7458
7459 2003-05-16 Andrew Cagney <cagney@redhat.com>
7460
7461 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7462 * gdbarch.h, gdbarch.c: Re-generate.
7463 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7464 * TODO (REGISTER_BYTES): Delete reference.
7465 * alpha-tdep.c (alpha_gdbarch_init): Update.
7466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7467 * x86-64-tdep.c (x86_64_init_abi): Update.
7468 * vax-tdep.c (vax_gdbarch_init): Update.
7469 * v850-tdep.c (v850_gdbarch_init): Update.
7470 * sparc-tdep.c (sparc_gdbarch_init): Update.
7471 * sh-tdep.c (sh_gdbarch_init): Update.
7472 * s390-tdep.c (s390_gdbarch_init): Update.
7473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7474 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7475 (ns32k_gdbarch_init_32382): Update.
7476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7477 * mcore-tdep.c (mcore_gdbarch_init): Update.
7478 * m68k-tdep.c (m68k_gdbarch_init): Update.
7479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7480 * ia64-tdep.c (ia64_gdbarch_init): Update.
7481 * i386-tdep.c (i386_gdbarch_init): Update.
7482 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7483 * hppa-tdep.c (hppa_gdbarch_init): Update.
7484 * h8300-tdep.c (h8300_gdbarch_init): Update.
7485 * frv-tdep.c (frv_gdbarch_init): Update.
7486 * cris-tdep.c (cris_gdbarch_init): Update.
7487 * avr-tdep.c (avr_gdbarch_init): Update.
7488 * arm-tdep.c (arm_gdbarch_init): Update.
7489 * sparc-tdep.c (sparc_pop_frame): Update.
7490 * rs6000-tdep.c (rs6000_pop_frame): Update.
7491 * remote.c (init_remote_state): Update.
7492 (remote_prepare_to_store): Update.
7493 * remote-vx.c (vx_prepare_to_store): Update.
7494 * remote-sds.c (sds_fetch_registers): Update.
7495 (sds_prepare_to_store): Update.
7496 * remote-array.c: Update.
7497 * regcache.c (init_legacy_regcache_descr): Update.
7498 (init_regcache_descr): Update.
7499 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7500 (mips_o64_extract_return_value): Update.
7501 * irix5-nat.c (fetch_core_registers): Update.
7502 * irix4-nat.c (fetch_core_registers): Update.
7503 * i386-tdep.h: Update.
7504 * hppa-tdep.c (pa_do_registers_info): Update.
7505 (pa_do_strcat_registers_info): Update.
7506 * cris-tdep.c (cris_register_bytes_ok): Update.
7507 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7508 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7509 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7510 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7511 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7512 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7513 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7514 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7515 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7516 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7517 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7518 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7519 (REGISTER_BYTES_OK): Update.
7520 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7521 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7522
7523 2003-05-16 Ian Lance Taylor <ian@airs.com>
7524
7525 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7526 (vax_print_insn, print_insn_arg): Remove static functions.
7527 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7528 print_insn_vax from opcodes library.
7529 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7530
7531 2003-05-15 Andrew Cagney <cagney@redhat.com>
7532
7533 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7534 * target.h (memory_breakpoint_from_pc): Delete declaration.
7535 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7536 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7537 * monitor.c (monitor_insert_breakpoint): Use
7538 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7539 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7542 (sparc_gdbarch_init): Set breakpoint_from_pc to
7543 sparc_breakpoint_from_pc.
7544 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7545 (BREAKPOINT_FROM_PC): Define.
7546 (sparc_breakpoint_from_pc): Declare.
7547 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7548 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7549 (BREAKPOINT_FROM_PC): Define.
7550 (BREAKPOINT): Delete macro.
7551 * target.h: Update comment.
7552 * s390-tdep.c (s390_gdbarch_init): Update comments.
7553 * remote.c: Update comments.
7554 * remote-mips.c: Update comments.
7555 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7556 * mem-break.c: Update comment.
7557 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7558 (ia64_memory_insert_breakpoint): Update.
7559 * config/sparc/tm-sparc.h: Update comment.
7560 * config/pa/tm-hppa64.h: Update comment.
7561 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7562 (rs6000_breakpoint_from_pc): Update.
7563 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7564 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7565 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7566 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7567 (mips_breakpoint_from_pc): Update.
7568 (mips_dump_tdep): Update.
7569
7570 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7571 * minsyms.c (lookup_minimal_symbol): Inline
7572 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7573
7574 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7575 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7576 * p-lang.c (pascal_printstr): Ditto.
7577 * objc-lang.c (objc_printstr): Ditto.
7578 * m2-lang.c (m2_printstr): Ditto.
7579 * jv-valprint.c (java_print_value_fields): Ditto.
7580 * f-lang.c (f_printstr): Ditto.
7581 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7582 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7583 for repeat_count_threshold.
7584 * Makefile.in (cp-valprint.o): Update dependencies.
7585
7586 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7587
7588 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7589 (examine_prologue): Support looking through leaf functions, knowing
7590 they start with mov r2,r12. Support skipping over indirect stores
7591 of the input registers. Upon hitting a non-nop branch instruction
7592 or predicated instruction, bail out by setting lim_pc to the current
7593 pc value in the loop. At the end, if the lim_pc value is still
7594 beyond our calculated value and we have trust_limit set,
7595 use the lim_pc value.
7596
7597 2003-05-15 Andrew Cagney <cagney@redhat.com>
7598
7599 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7600 generic_find_dummy_frame.
7601 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7602 (deprecated_generic_find_dummy_frame): Update.
7603 (deprecated_read_register_dummy): Update.
7604 * frame.c (deprecated_generic_get_saved_register): Update.
7605
7606 2003-05-15 Theodore A. Roth <troth@openavr.org>
7607
7608 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7609 (avr_gdbarch_init): Set breakpoint_from_pc method.
7610
7611 2003-05-15 Andrew Cagney <cagney@redhat.com>
7612
7613 * regcache.c (build_regcache): Set deprecated_register_valid
7614 directly.
7615 (deprecated_grub_regcache_for_register_valid): Delete function.
7616 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7617 declaration.
7618
7619 2003-05-15 David Carlton <carlton@bactrian.org>
7620
7621 Committed by Elena Zannoni <ezannoni@redhat.com>
7622 * symtab.c (lookup_symbol_aux): Delete calls to
7623 lookup_symbol_aux_minsyms.
7624 (lookup_symbol_aux_minsyms): Comment out function and
7625 prototype. Delete lookup by mangled name.
7626
7627 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7628
7629 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7630 correctly indicate an empty stack and ``stack_allocated'' to the
7631 indicate the number of elements initially allocated.
7632 (dwarf_expr_grow_stack): Simplify method for computing new
7633 stack size. Don't loop infinitely if ``stack_len'' is zero.
7634 (execute_stack_op): Move ``ctx->in_reg'' initialization
7635 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7636 be used in conjuction with DW_OP_piece. Revise error message
7637 accordingly.
7638
7639 2003-05-14 Theodore A. Roth <troth@openavr.org>
7640
7641 * MAINTAINERS: Update my email address.
7642 * avr-tdep.c: Ditto.
7643
7644 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7645
7646 * symtab.h (enum domain_enum): Rename from namespace_enum.
7647 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7648 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7649 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7650 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7651 TYPES_NAMESPACE, METHODS_NAMESPACE.
7652 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7653 (struct symbol, struct partial_symbol): Rename field
7654 'namespace_enum namespace' to 'domain_enum domain'.
7655 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7656 Delete old define kludge for namespace.
7657
7658 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7659 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7660 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7661 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7662 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7663 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7664 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7665 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7666 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7667 occurrences of the above.
7668
7669 2003-05-14 Ian Lance Taylor <ian@airs.com>
7670
7671 * Makefile.in (install-only): Use $(SHELL) when running
7672 mkinstalldirs.
7673
7674 2003-05-13 Ian Lance Taylor <ian@airs.com>
7675
7676 * MAINTAINERS (write after approval): Add myself.
7677
7678 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7679 second and third arguments.
7680 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7681 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7682
7683 2003-05-13 Andrew Cagney <cagney@redhat.com>
7684
7685 * defs.h (store_address): Delete declaration.
7686 findvar.c (store_address): Delete function.
7687 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7688 store_unsigned_integer.
7689 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7690 * v850-tdep.c (v850_push_arguments): Ditto.
7691 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7692 * sh-tdep.c (sh64_get_saved_register): Ditto.
7693 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7694 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7695 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7696 (mips_get_saved_register): Ditto.
7697 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7698 (find_func_descr, ia64_push_arguments): Ditto.
7699 * i386-tdep.c (i386_push_arguments): Ditto.
7700 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7701 * frv-tdep.c (frv_push_arguments): Ditto.
7702 * frame.c (legacy_saved_regs_prev_register): Ditto.
7703 (deprecated_generic_get_saved_register): Ditto.
7704 * findvar.c (unsigned_address_to_pointer): Ditto.
7705 * dwarf2read.c (dwarf2_const_value): Ditto.
7706 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7707 * alpha-tdep.c (alpha_push_arguments): Ditto.
7708
7709 2003-05-12 J. Brobecker <brobecker@gnat.com>
7710
7711 * NEWS: Mention that the hppa-hpux port has been partially
7712 multiarched (32bit ABIT only, so far).
7713
7714 2003-05-11 Andrew Cagney <cagney@redhat.com>
7715
7716 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7717 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7718 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7719 sim/testsuite/sim/arm/misaligned2.ms, and
7720 sim/testsuite/sim/arm/misaligned3.ms.
7721 * disasm.h (struct ui_file): Add opaque struct declaration.
7722 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7723 * frame.h (struct ui_file): Ditto.
7724
7725 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7726
7727 * value.h: Pretty print.
7728
7729 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7730
7731 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7732
7733 2003-05-08 Andrew Cagney <cagney@redhat.com>
7734
7735 * regcache.h (max_register_size): Delete declaration.
7736 * regcache.c (max_register_size): Delete function.
7737 (struct regcache_descr): Delete field "max_register_size".
7738 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7739 registers fit in MAX_REGISTER_SIZE.
7740 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7741 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7742 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7743 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7744 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7745 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7746 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7747 * dve3900-rom.c, hppa-tdep.c: Ditto.
7748
7749 2003-05-08 David Carlton <carlton@math.stanford.edu>
7750
7751 * valops.c (push_word): Fix typo.
7752
7753 2003-05-08 Andrew Cagney <cagney@redhat.com>
7754
7755 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7756 * gdbarch.h: Re-generate.
7757 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7758 (legacy_max_register_raw_size): Delete declaration.
7759 * regcache.c (legacy_max_register_raw_size): Delete function.
7760 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7761 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7762 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7763 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7764 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7765 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7766 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7767 * findvar.c, dwarf2cfi.c: Ditto.
7768
7769 2003-05-08 Andrew Cagney <cagney@redhat.com>
7770
7771 * mips-tdep.c (read_signed_register): New function, moved to here
7772 from "regcache.c".
7773 (read_signed_register_pid): Ditto.
7774 * regcache.c (read_signed_register_pid): Delete function, moved to
7775 "mips-tdep.c".
7776 (read_signed_register): Ditto.
7777 * regcache.h (read_signed_register): Delete declaration.
7778 (read_signed_register_pid): Delete declaration.
7779
7780 2003-05-08 Andrew Cagney <cagney@redhat.com>
7781
7782 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7783 * gdbarch.h: Re-generate.
7784 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7785 (legacy_max_register_virtual_size): Delete declaration.
7786 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7787 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7788 * tracepoint.c (memrange_sortmerge): Ditto.
7789 * sparc-tdep.c (sparc_print_registers): Ditto.
7790 * regcache.c (legacy_max_register_virtual_size): Delete function.
7791
7792 2002-05-08 J. Brobecker <brobecker@gnat.com>
7793
7794 * fork-child.c (escape_bang_in_quoted_argument): New function.
7795 (fork_inferior): Escape '!' characters in quoted arguments
7796 only when needed.
7797
7798 2003-05-08 J. Brobecker <brobecker@gnat.com>
7799
7800 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7801 the language of the CU is not currently supported by GDB.
7802
7803 2003-05-08 J. Brobecker <brobecker@gnat.com>
7804
7805 * defs.h (language): Add language_minimal enum value.
7806 * c-lang.c (minimal_language_defn): New language definition.
7807 (_initialize_c_language): Add the new minimal language to the list
7808 of languages known to GDB.
7809
7810 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7811
7812 * frame.c (get_frame_type): Don't attempt to lazily initialize
7813 frame's unwinder for legacy frames.
7814
7815 2003-05-07 Andrew Cagney <cagney@redhat.com>
7816
7817 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7818 and "regcache" parameters.
7819 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7820
7821 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7822
7823 * dwarf2read.c (dwarf_decode_lines): Only use output of
7824 check_cu_functions() when calling record_line(). Do not update
7825 the current address.
7826
7827 2003-05-07 Andrew Cagney <cagney@redhat.com>
7828
7829 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7830 code.
7831
7832 2003-05-07 Jim Blandy <jimb@redhat.com>
7833
7834 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7835 'maint info symtabs' and 'maint info psymtabs'.
7836 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7837 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7838 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7839 Declarations updated.
7840 * maint.c (maintenance_list_command): Delete.
7841 (_initialize_maint_cmds): Update calls to add_cmd.
7842 * gdbcmd.h (maintenancelistlist): Delete declaration.
7843 * cli/cli-cmds.c (maintenancelistlist): Delete.
7844 (init_cmd_lists): Don't initialize it.
7845 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7846
7847 2003-05-07 Andrew Cagney <cagney@redhat.com>
7848
7849 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7850 "regcache".
7851 (d10v_print_registers_info): Update.
7852 (d10v_dmap_register, d10v_imap_register): Delete functions.
7853 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7854 and "imap_register".
7855 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7856 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7857 * arch-utils.c (generic_remote_translate_xfer_address): Add
7858 "regcache" and "gdbarch" parameters.
7859 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7860 parameter. Change class to multi-arch.
7861 * gdbarch.h, gdbarch.c: Re-generate.
7862 * remote.c (remote_xfer_memory): Use
7863 gdbarch_remote_translate_xfer_address.
7864
7865 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7866
7867 * infrun.c (prev_pc): Move declaration ahead of proceed().
7868 (proceed): Refresh prev_pc value before resuming.
7869 (stop_stepping): Remove code to refresh prev_pc.
7870
7871 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7872
7873 * nto-tdep.c: Removed stray comment.
7874
7875 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7876
7877 * i386-nto-tdep.c: Fix old K&R function definitions.
7878 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7879 Also change add_show_from_set() call to add_setshow_cmd().
7880 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7881
7882 2003-05-05 Andrew Cagney <cagney@redhat.com>
7883
7884 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7885 (fprint_dummy_frames): New function.
7886 (maintenance_print_dummy_frames): New function.
7887 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7888 * frame.c (fprint_frame_id): Make global.
7889 * frame.h (fprint_frame_id): Declare.
7890 * Makefile.in (dummy-frame.o): Update dependencies.
7891
7892 2003-05-05 Andrew Cagney <cagney@redhat.com>
7893
7894 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7895 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7896 SIZEOF_CALL_DUMMY_WORDS.
7897 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7898 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7899 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7900 CALL_DUMMY_BREAKPOINT_OFFSET.
7901 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7902 CALL_DUMMY_START_OFFSET.
7903 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7904 * gdbarch.h, gdbarch.c: Re-generate.
7905 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7906 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7907 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7908 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7909 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7910 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7911 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7912 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7913 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7914 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7915 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7916 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7917 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7918 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7919 * config/sparc/tm-sparc.h: Update.
7920
7921 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7922
7923 * configure.tgt: Add i[3456]86-*-nto*.
7924 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7925 * nto-tdep.c: New file. Neutrino target support routines.
7926 * nto-tdep.h: New file. Neutrino target header.
7927 * config/tm-qnxnto.h: New file.
7928 * config/i386/i386nto.mt: New file.
7929 * config/i386/tm-i386nto.h: New file.
7930
7931 2003-05-04 Andrew Cagney <cagney@redhat.com>
7932
7933 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7934 (load_infrun_state): Ditto.
7935 (struct thread_info): Drop "prev_func_name" field.
7936 * thread.c (load_infrun_state): Update.
7937 (save_infrun_state): Update.
7938 * infrun.c (prev_func_name): Delete variable.
7939 (init_wait_for_inferior): Do not clear prev_func_name.
7940 (stop_stepping, keep_going, context_switch): Do not swap
7941 prev_func_name.
7942 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7943 instead of PC_IN_SIGTRAMP.
7944
7945 2003-05-04 Andrew Cagney <cagney@redhat.com>
7946
7947 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7948 REGISTER_BYTE with register_offset_hack.
7949 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7950 that REGISTER_BYTE is consistent with the regcache.
7951 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7952 * gdbarch.h, gdbarch.c: Regenerate.
7953
7954 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7955
7956 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7957 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7958
7959 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7960
7961 2003-05-03 J. Brobecker <brobecker@gnat.com>
7962
7963 From Thierry Schneider <tpschneider1@yahoo.com>
7964 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7965 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7966 (mi-cmd-symbol.o): Add rule.
7967
7968 2003-05-03 Andrew Cagney <cagney@redhat.com>
7969
7970 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7971 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7972 * gdbarch.h, gdbarch.c: Re-generate.
7973 * d10v-tdep.c (d10v_push_dummy_code): New function.
7974 (d10v_gdbarch_init): Set push_dummy_code.
7975 * infcall.c (legacy_push_dummy_code): New function.
7976 (generic_push_dummy_code): New function.
7977 (push_dummy_code): New function.
7978 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7979 instead of dummy_addr, to push_dummy_call. Move call to
7980 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7981 switch.
7982 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7983
7984 2003-05-03 Andrew Cagney <cagney@redhat.com>
7985
7986 * disasm.h (print_insn): Declare.
7987 * disasm.c (init_gdb_disassemble_info): New function.
7988 (gdb_disassembly): Call init_gdb_disassemble_info.
7989 (gdb_print_insn): New function.
7990 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7991 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7992 * mcore-tdep.c: Include "disasm.h"
7993 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7994 * d10v-tdep.c: Include "disasm.h".
7995 (display_trace): Call gdb_print_insn, instead of print_insn.
7996 (print_insn): Delete function.
7997 * printcmd.c: Include "disasm.h".
7998 (print_insn): Delete function.
7999 (print_formatted): Call gdb_print_insn, instead of print_insn.
8000 * Makefile.in (printcmd.o): Update dependencies.
8001 (mcore-tdep.o, d10v-tdep.o): Ditto.
8002
8003 2003-05-02 Andrew Cagney <cagney@redhat.com>
8004
8005 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
8006 PC_REGNUM, re-indent.
8007 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
8008 PC_REGNUM isn't set.
8009
8010 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
8011 * gdbarch.h, gdbarch.c: Re-generate.
8012 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
8013 register_virtual_size, pc_regnum, or register_bytes.
8014 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8015 (d10v_register_type): Use D10V_PC_REGNUM.
8016 (d10v_print_registers_info, d10v_read_pc): Ditto.
8017 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8018 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8019
8020 2003-05-02 David Carlton <carlton@bactrian.org>
8021
8022 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8023 the name with mstrsave.
8024
8025 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8026
8027 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8028 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8029 (host_charset_name, target_charset_name): New vars for use by
8030 set/show commands.
8031 (host_charset_enum, target_charset_enum): New enums for set/show
8032 commands.
8033 (set_charset_sfunc, set_host_charset_sfunc,
8034 set_target_charset_sfunc): New functions.
8035 (set_host_charset, set_target_charset): Make static.
8036 (list_charsets, set_host_charset_command,
8037 set_target_charset_command): Delete functions.
8038 (show_charset_command): Rewrite as....
8039 (show_charset): Hook this up with the set/show command mechanism.
8040 (_initialize_charset): Change names of charsets to match the
8041 set/show enums. Use host_charset_name and target_charset_name.
8042 Use set/show mechanism for charset, host-charset, target-charset
8043 commands. Do not make 'show host-charset' and 'show
8044 target-charset' be aliases of 'show charset'.
8045
8046 * charset.h (set_host_charset, set_target_charset): Don't export,
8047 they are not used outside the file.
8048
8049 2003-05-01 Andrew Cagney <cagney@redhat.com>
8050
8051 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8052 (gdb_disassembly): Make "di" non static, always initialize and
8053 cleanup. Always use dis_asm_read_memory.
8054 (gdb_dis_asm_read_memory): Delete function.
8055
8056 2003-05-01 Andrew Cagney <cagney@redhat.com>
8057
8058 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8059 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8060
8061 2003-04-30 Andrew Cagney <cagney@redhat.com>
8062
8063 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8064 "tm_print_insn_info".
8065 (TARGET_PRINT_INSN_INFO): Delete macro.
8066 (dis_asm_read_memory): Delete function declaration.
8067 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8068 (tm_print_insn_info): Delete variable definition.
8069 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8070 * gdbarch.h, gdbarch.c: Re-generate.
8071 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8072 "deprecated_tm_print_insn_info".
8073 * mcore-tdep.c (mcore_dump_insn): Ditto.
8074 * mips-tdep.c (mips_gdbarch_init): Ditto.
8075 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8076 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8077 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8078 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8079 instead of TARGET_PRINT_INSN_INFO, add comment.
8080 * s390-tdep.c (s390_get_frame_info): Instead of
8081 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8082 (s390_check_function_end, s390_is_sigreturn): Ditto.
8083 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8084 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8085 * disasm.c: Include "gdbcore.h".
8086 (_initialize_disasm): New function, initialize
8087 "deprecated_tm_print_insn_info".
8088 (deprecated_tm_print_insn_info): New variable.
8089 (dis_asm_read_memory): Moved from "corefile.c", made static.
8090 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8091 * Makefile.in (disasm.o): Update dependencies.
8092
8093 2003-04-30 Andrew Cagney <cagney@redhat.com>
8094
8095 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8096
8097 2003-04-29 Adam Fedor <fedor@gnu.org>
8098
8099 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8100 * infcall.c (find_function_addr): Make non-static.
8101 * infcall.h (find_function_addr): Declare.
8102 * Makefile.in (eval.o): Update dependencies.
8103
8104 2003-04-28 Adam Fedor <fedor@gnu.org>
8105
8106 * symtab.c (symbol_find_demangled_name): Check for and demangle
8107 ObjC symbols.
8108 (symbol_init_demangled_name): Init for language_objc as well.
8109
8110 2003-04-28 Andrew Cagney <cagney@redhat.com>
8111
8112 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8113 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8114 * gdbarch.h, gdbarch.c: Re-generate.
8115 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8116 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8117 * inferior.h (deprecated_read_fp): Rename read_fp.
8118 (generic_target_read_fp): Delete declaration.
8119 * regcache.c (generic_target_read_fp): Delete function.
8120 (deprecated_read_fp): Replace read_fp, use
8121 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8122 * d10v-tdep.c (d10v_read_fp): Delete function.
8123 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8124
8125 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8126 deprecated_target_read_fp to generic_target_read_fp.
8127 * sh-tdep.c (sh_gdbarch_init): Ditto.
8128 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8129 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8130 * frv-tdep.c (frv_gdbarch_init): Ditto.
8131
8132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8133 deprecated_fp_regnum.
8134 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8135 * vax-tdep.c (vax_gdbarch_init): Ditto.
8136 * v850-tdep.c (v850_gdbarch_init): Ditto.
8137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8138 * sh-tdep.c (sh_gdbarch_init): Ditto.
8139 * s390-tdep.c (s390_gdbarch_init): Ditto.
8140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8142 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8143 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8145 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8146 * i386-tdep.c (i386_gdbarch_init): Ditto.
8147 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8148 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8149 * frv-tdep.c (frv_gdbarch_init): Ditto.
8150 * cris-tdep.c (cris_gdbarch_init): Ditto.
8151 * avr-tdep.c (avr_gdbarch_init): Ditto.
8152 * arm-tdep.c (arm_gdbarch_init): Ditto.
8153 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8154
8155 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8156 * v850-tdep.c (v850_gdbarch_init): Ditto.
8157 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8158 * sh-tdep.c (sh_gdbarch_init): Ditto.
8159 * s390-tdep.c (s390_gdbarch_init): Ditto.
8160 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8162 * mips-tdep.c (mips_gdbarch_init): Ditto.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8164 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8165 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8166 * frv-tdep.c (frv_gdbarch_init): Ditto.
8167 * avr-tdep.c (avr_gdbarch_init): Ditto.
8168 * arm-tdep.c (arm_gdbarch_init): Ditto.
8169
8170 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8171 DEPRECATED_FP_REGNUM.
8172 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8173 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8174 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8175 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8176 (sparc32_register_virtual_type): Ditto.
8177 * sh-tdep.c (sh64_frame_chain): Ditto.
8178 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8179 (sh_nofp_frame_init_saved_regs): Ditto.
8180 (sh64_nofp_frame_init_saved_regs): Ditto.
8181 (sh_fp_frame_init_saved_regs): Ditto.
8182 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8183 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8184 * procfs.c (procfs_fetch_registers): Ditto.
8185 (procfs_store_registers): Ditto.
8186 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8187 (store_inferior_registers, fetch_core_registers): Ditto.
8188 (fetch_kcore_registers, clear_regs): Ditto.
8189 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8190 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8191 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8192 * nlm/i386.c (do_status): Ditto.
8193 * mipsv4-nat.c (supply_gregset): Ditto.
8194 * mips-tdep.c: Ditto for comments.
8195 * mips-nat.c (fetch_inferior_registers): Ditto.
8196 (store_inferior_registers, fetch_core_registers): Ditto.
8197 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8198 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8199 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8200 (i386_do_pop_frame, i386_register_type): Ditto.
8201 * hppa-tdep.c (hppa_frame_chain): Ditto.
8202 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8203 (hppa_pop_frame, hppa_read_fp): Ditto.
8204 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8205 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8206 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8207 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8208 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8209 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8210 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8211 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8212 * blockframe.c: Ditto for comments.
8213 * arch-utils.h: Ditto for comments.
8214 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8215 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8216 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8217 * alpha-tdep.h: Ditto for comments.
8218 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8219 (alpha_cannot_store_register): Ditto.
8220 (alpha_push_dummy_frame): Ditto.
8221 * alpha-nat.c (supply_gregset): Ditto.
8222
8223 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8224 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8225 * config/sparc/tm-sparc.h: Update comment.
8226
8227 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8228 deprecated_read_fp instead of TARGET_READ_FP.
8229 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8230 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8231 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8232 deprecated_read_fp instead of read_fp.
8233 * s390-tdep.c (s390_push_arguments): Ditto.
8234 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8235 * frame.h: Ditto in comments.
8236 * frame.c (legacy_get_prev_frame): Ditto.
8237 * dummy-frame.c (dummy_frame_this_id): Ditto.
8238 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8239
8240 2003-04-28 Andrew Cagney <cagney@redhat.com>
8241
8242 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8243 * gdbarch.h, gdbarch.c: Re-generate.
8244 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8245 * vax-tdep.c (_initialize_vax_tdep): Update.
8246 * v850-tdep.c (_initialize_v850_tdep): Update.
8247 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8248 * s390-tdep.c (_initialize_s390_tdep): Update.
8249 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8250 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8251 * mips-tdep.c (_initialize_mips_tdep): Update.
8252 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8253 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8254 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8255 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8256 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8257 * frv-tdep.c (_initialize_frv_tdep): Update.
8258 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8259 (_initialize_cris_tdep): Update.
8260 * arch-utils.c (legacy_print_insn): Update.
8261 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8262
8263 2003-04-26 Adam Fedor <fedor@gnu.org>
8264
8265 * linespec.c (decode_objc): New function to decode ObjC calls
8266 (decode_line_1): Check for ObjC calls (using decode_objc)
8267 * Makefile (linespec.o): Update dependencies.
8268
8269 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8270
8271 * breakpoint.h (struct breakpoint_ops): New.
8272 (struct breakpoint): Add ops member.
8273
8274 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8275 (mention): Use new breakpoint ops member.
8276 (set_raw_breakpoint): Initialize ops field to NULL.
8277 (print_exception_catchpoint, print_one_exception_catchpoint)
8278 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8279 (gnu_v3_exception_catchpoint_ops): New.
8280 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8281
8282 2003-04-25 Adam Fedor <fedor@gnu.org>
8283
8284 * Makefile.in (COMMON_OBS): Add objc-lang.o
8285
8286 2003-04-25 Andrew Cagney <cagney@redhat.com>
8287
8288 * d10v-tdep.c (print_insn): Delete function.
8289 (display_trace): Use TARGET_PRINT_INSN.
8290 (_initialize_d10v_tdep): Do not set tm_print_insn.
8291 (d10v_gdbarch_init): Set print_insn.
8292
8293 2003-04-25 Andrew Cagney <cagney@redhat.com>
8294
8295 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8296 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8297 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8298 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8299 (nr_dmap_regs, a0_regnum): ... new functions.
8300 (d10v_print_registers_info): Use a0_regnum, use register_size.
8301 (d10v_register_byte): Delete function.
8302 (d10v_register_raw_size): Delete function.
8303 (d10v_register_type): Use a0_regnum.
8304 (d10v_print_registers_info): Use a0_regnum.
8305 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8306 (d10v_gdbarch_init): Do not set register_byte or
8307 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8308 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8309 extract_address.
8310 (trace_command): Use XCALLOC.
8311 (print_insn): Delete reference to tm_print_insn.
8312 (saved_regs_unwinder): Use store_unsigned_integer instead of
8313 store_address.
8314 * frame.h (FRAME_OBSTACK_CALLOC): Define
8315
8316 2003-04-25 David Carlton <carlton@bactrian.org>
8317
8318 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8319
8320 2003-04-24 Adam Fedor <fedor@gnu.org>
8321
8322 * objc-lang.c: Include "valprint.h"
8323 * Makefile.in (objc-lang.o): Update dependencies.
8324
8325 2003-04-24 Adam Fedor <fedor@gnu.org>
8326
8327 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8328 architecture dependant compilation and mark as unimplemented
8329 (until they get put in the gdbarch vector).
8330
8331 2003-04-23 David Carlton <carlton@bactrian.org>
8332
8333 * cp-support.c (cp_find_first_component): Accept 'operator' in
8334 more locations.
8335
8336 2003-04-23 Andrew Cagney <cagney@redhat.com>
8337
8338 * infcall.c (call_function_by_hand): Eliminate redundant
8339 indentation. Move "saved_async" and "old_cleanups" to where they
8340 are needed.
8341
8342 2003-04-23 Andrew Cagney <cagney@redhat.com>
8343
8344 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8345 and "buffer". Move the "name" code to where it is needed.
8346
8347 2003-04-23 Andrew Cagney <cagney@redhat.com>
8348
8349 * infcall.c (call_function_by_hand): Move variables "start_sp",
8350 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8351 code to ON_STACK switch branch.
8352
8353 2003-04-23 Andrew Cagney <cagney@redhat.com>
8354
8355 * infcall.c (call_function_by_hand): Make declaration of "i",
8356 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8357 lint.
8358
8359 2003-04-23 Andrew Cagney <cagney@redhat.com>
8360
8361 * infcall.c (call_function_by_hand): Delete variable
8362 "n_method_args". Localize "param_type"'s declaration to the loop
8363 that it is used. Reinstate code assigning to said variable -
8364 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8365 Rationalize code using "param_type".
8366
8367 2003-04-22 Andrew Cagney <cagney@redhat.com>
8368
8369 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8370 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8371 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8372 to DEPRECATED_PUSH_RETURN_ADDRESS.
8373
8374 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8375
8376 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8377 on the DWARF2 register number prior to fetching a register.
8378
8379 2003-04-22 J. Brobecker <brobecker@gnat.com>
8380
8381 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8382 Update all the tests using SOFT_FLOAT considering the fact that
8383 this macro was always set to 0.
8384 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8385 considering the fact that this macro was always set to 0.
8386 * hppa-tdep.h (hppa_store_return_value): Likewise.
8387 (hppa_extract_return_value): Likewise.
8388
8389 2003-04-22 J. Brobecker <brobecker@gnat.com>
8390
8391 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8392 the hppa-pro target only.
8393
8394 2003-04-21 J. Brobecker <brobecker@gnat.com>
8395
8396 Ongoing multi-arch conversion effort for HP/UX:
8397 * config/pa/tm-hppa.h: Move all macro that are no longer
8398 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8399 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8400
8401 2003-04-21 J. Brobecker <brobecker@gnat.com>
8402
8403 * config/pa/tm-hppa.h: Obsolete a section that was only used
8404 for hppa-pro.
8405
8406 2003-04-21 J. Brobecker <brobecker@gnat.com>
8407
8408 Ongoing multi-arch conversion for HP/UX.
8409 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8410 if already defined (allows hppa64 to stay non-multiarched for now).
8411 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8412
8413 2003-04-21 Andrew Cagney <cagney@redhat.com>
8414
8415 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8416
8417 2003-04-21 Andrew Cagney <cagney@redhat.com>
8418
8419 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8420 "i386_num_mmx_regs".
8421
8422 2003-04-21 Andrew Cagney <cagney@redhat.com>
8423
8424 * infcall.c: New file.
8425 * infcall.h: New file.
8426 * valarith.c: Include "infcall.h".
8427 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8428 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8429 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8430 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8431 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8432 (SFILES): Add "infcall.c"
8433 (COMMON_OBS): Add "infcall.o".
8434 (infcall.o): Specify dependencies.
8435 * value.h (call_function_by_hand): Delete declaration.
8436 * inferior.h (run_stack_dummy): Delete declaration.
8437 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8438 (run_stack_dummy): Move to "infcall.c", merged into
8439 call_function_by_hand.
8440 * valops.c (call_function_by_hand): Moved to "infcall.c".
8441 (find_function_addr, value_arg_coerce): Ditto.
8442 (unwindonsignal_p, coerce_float_to_double): Ditto.
8443 (_initialize_valops): Move "set/show coerce-float-to-double", and
8444 "set/show unwindonsignal" commands to "infcall.c".
8445 * v850-tdep.c, target.h: Update comments.
8446 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8447 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8448 (sh64_init_extra_frame_info): Update comments.
8449 * mn10300-tdep.c: Update comments.
8450 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8451 * config/sparc/tm-sparc.h: Update comments.
8452 * breakpoint.h: Update comments.
8453 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8454 * arm-tdep.c: Update comment.
8455
8456 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8457
8458 * i386-tdep.c (i386_num_register_names): New variable.
8459 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8460 (MM0_REGNUM): Remove redundant parentheses in define.
8461 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8462 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8463 i386_mxcsr_regnum_p): Remove redundant parentheses.
8464 (i386_register_name): Use i386_num_register_names.
8465
8466 * i386-tdep.c (i386_extract_return_value,
8467 i386_store_return_value): Correct check for availability of
8468 floating-point registers.
8469
8470 * i386-tdep.c (i386_frame_num_args): Remove function.
8471 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8472
8473 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8474 mmx_regnum_to_fp_regnum. Adjust all callers.
8475
8476 * i386-tdep.c (i386_get_longjmp_target): Use
8477 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8478 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8479 extract_address.
8480
8481 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8482
8483 * core-regset.c: Update comments to reflect reality. Re-order
8484 includes.
8485 (fetch_core_registers): Use switch instead of if. Remove
8486 redundant prototype.
8487
8488 2003-04-18 Jim Blandy <jimb@redhat.com>
8489
8490 * s390-tdep.c (s390_frame_align): New function.
8491 (s390_gdbarch_init): Register it with the gdbarch object.
8492
8493 2003-04-17 Richard Henderson <rth@redhat.com>
8494
8495 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8496
8497 2003-04-17 Michael Snyder <msnyder@redhat.com>
8498 Karen Bennet <bennet@redhat.com>
8499
8500 Committed by Elena Zannoni <ezannoni@redhat.com>
8501 * gdb_gcore.sh: New script to create a core dump of a process.
8502
8503 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8504
8505 * values.c (value_being_returned): Don't fetch the return
8506 value if the return type is void.
8507
8508 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8509
8510 * thread-db.c: Reindented.
8511
8512 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8513
8514 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8515 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8516 as types.
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8543
8544 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8545 the size of ``long double'' to 16, instead of 8.
8546
8547 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8548
8549 * i386-linux-nat.c: Add some whitespace to make things more
8550 readable.
8551 (fetch_register, store_register, fetch_inferior_registers,
8552 store_inferior_registers): Get rid of assignment in if-statement.
8553 (store_register): Fix typo in error message.
8554
8555 2003-04-16 Andrew Cagney <cagney@redhat.com>
8556
8557 * utils.c (xmmalloc): Always allocate something, matches
8558 libiberty/xmalloc's semantics.
8559 (xmrealloc, xmcalloc): Ditto.
8560
8561 2003-04-16 Andrew Cagney <cagney@redhat.com>
8562
8563 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8564 update comments.
8565 (get_frame_type): Initialize unwind and type when needed.
8566 (get_frame_id, frame_register_unwind): Ditto.
8567
8568 2003-04-16 Andrew Cagney <cagney@redhat.com>
8569
8570 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8571 obsolete.
8572 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8573 * sparcl-stub.c: Obsolete file.
8574 * config/sparc/tm-sparclet.h: Obsolete file.
8575 * sparclet-stub.c: Obsolete file.
8576 * sparclet-rom.c: Obsolete file.
8577 * sparcl-tdep.c: Obsolete file.
8578 * config/sparc/tm-sparclite.h: Obsolete file.
8579 * config/sparc/sparclite.mt: Obsolete file.
8580 * config/sparc/sparclet.mt: Obsolete file.
8581 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8582 sparc86x-*-* obsolete.
8583
8584 2003-04-15 David Carlton <carlton@math.stanford.edu>
8585
8586 * Makefile.in (SFILES): Add cp-namespace.c.
8587 (COMMON_OBS): Add cp-namespace.o.
8588 (block.o): Depend on gdb_obstack_h and cp_support_h.
8589 (buildsym.o): Depend on cp_support_h.
8590 (cp-namespace.o): New.
8591 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8592 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8593 (dwarf2read.o): Depend on cp_support_h.
8594 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8595 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8596 processing_current_namespace.
8597 (read_namespace): Update processing_current_namespace; check for
8598 anonymous namespaces.
8599 (dwarf2_name): New function.
8600 (dwarf2_extension): Ditto.
8601 * cp-support.h: Update copyright, contributors.
8602 Add inclusion guards.
8603 Add opaque declaration for structs obstack, block, symbol.
8604 (struct using_direct): New struct.
8605 Add declarations for cp_find_first_component,
8606 cp_entire_prefix_len, processing_has_namespace_info,
8607 processing_current_namespace, cp_is_anonymous,
8608 cp_add_using_directive, cp_initialize_namespace,
8609 cp_finalize_namespace, cp_set_block_scope,
8610 cp_scan_for_anonymous_namespaces.
8611 * cp-namespace.c: New file.
8612 * cp-support.c: Update copyright.
8613 Include ctype.h, gdb_assert.h, gdbcmd.h.
8614 New variable maint_cplus_cmd_list.
8615 (cp_find_first_component): New function.
8616 (cp_entire_prefix_len, maint_cplus_command)
8617 (first_component_command, _initialize_cp_support): Ditto.
8618 * buildsym.c: Include cp-support.h.
8619 New variable using_list.
8620 (add_symbol_to_list): Check for anonymous namespaces.
8621 (finish_block): Set block's scope.
8622 (start_symtab): Initialize C++ namespace support.
8623 (end_symtab): Finalize C++ namespace support.
8624 * block.h: Add opaque declarations for structs
8625 block_namespace_info, using_direct, and obstack.
8626 Add declarations for block_set_scope and block_set_using.
8627 (struct block): Add 'language_specific' member.
8628 (BLOCK_NAMESPACE): New macro.
8629 * block.c: Include gdb_obstack.h and cp-support.h.
8630 (struct block_namespace_info): New struct.
8631 (block_set_scope): New function.
8632 (block_set_using, block_initialize_namespace): Ditto.
8633
8634 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8635
8636 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8637 (locate_base): Return early if there aren't any link map offsets.
8638 (svr4_solib_create_inferior_hook): Warn if shared library support
8639 is unavailable.
8640
8641 2003-04-14 David Carlton <carlton@math.stanford.edu>
8642
8643 * symtab.c (symbol_set_names): Add prefix when storing Java names
8644 in hash table. Fix for PR java/1039.
8645
8646 2003-04-14 David Carlton <carlton@math.stanford.edu>
8647
8648 * symtab.c (symbol_set_names): Rename 'name' arg to
8649 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8650 * symtab.h: Change 'name' argument in declaration of
8651 symbol_set_names to 'linkage_name'.
8652 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8653
8654 2003-04-14 Andrew Cagney <cagney@redhat.com>
8655
8656 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8657 return the fully sign-extended register value.
8658 (get_frame_pointer): Ditto.
8659 (mips_pop_frame): Initialize "proc_desc" after checking for a
8660 dummy frame.
8661
8662 2003-04-14 Andrew Cagney <cagney@redhat.com>
8663
8664 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8665 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8666 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8667 (mips_push_register): Delete function.
8668 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8669 PUSH_FP_REGNUM.
8670
8671 2003-04-14 Jim Blandy <jimb@redhat.com>
8672
8673 * symmisc.c: #include "gdb_regex.h".
8674 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8675 functions.
8676 * maint.c (maintenance_list_command): New function.
8677 (_initialize_maint_cmds): Register the above as commands.
8678 * symtab.h (maintenance_list_symtabs,
8679 maintenance_list_psymtabs): New declarations.
8680 * cli/cli-cmds.c (maintenancelistlist): New variable.
8681 (init_cmd_lists): Initialize it.
8682 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8683 * gdbcmd.h (maintenancelistlist): New declaration.
8684 * Makefile.in (symmisc.o): Update dependencies.
8685
8686 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8687
8688 * s390-nat.c: Include asm/types.h for addr_t.
8689
8690 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8691
8692 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8693 actually incoming type.
8694
8695 2003-04-13 Andrew Cagney <cagney@redhat.com>
8696
8697 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8698 get_next_frame and get_frame_saved_regs.
8699
8700 2003-04-13 Andrew Cagney <cagney@redhat.com>
8701
8702 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8703 of gdbarch_num_regs.
8704
8705 2003-04-13 Andrew Cagney <cagney@redhat.com>
8706
8707 * frame.h: Mention what replaced what in "struct frame_info".
8708 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8709 deprecated_update_frame_base_hack and
8710 deprecated_update_frame_pc_hack.
8711 * hppa-tdep.c: Ditto.
8712
8713 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8716 to read_reg and update its comment. Remove regnum member.
8717 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8718 Don't call read_reg when setting in_reg. Call read_reg to get
8719 the frame base if it's in a register. Return the register number
8720 on the stack instead of in the context. Remove extra arguments
8721 to read_reg.
8722 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8723 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8724 the register number on the expression stack.
8725 (needs_frame_read_reg): Remove extra arguments.
8726
8727 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8730 made non-static.
8731 (execute_stack_op): All callers updated.
8732 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8733 * dwarf2loc.c (find_location_expression): New function.
8734 (dwarf_expr_frame_base): Call it.
8735 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8736 (dwarf2_tracepoint_var_ref): New function, broken out from
8737 locexpr_tracepoint_var_ref.
8738 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8739 Make static.
8740 (loclist_read_variable, loclist_read_needs_frame): New functions.
8741 (loclist_describe_location, loclist_tracepoint_var_ref): New
8742 functions.
8743 (dwarf2_loclist_funcs): New struct location_funcs.
8744 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8745 (struct dwarf2_locexpr_baton): Add comments.
8746 (dwarf2_loclist_funcs): New extern.
8747 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8748 base_address and base_known.
8749 (dwarf_loc_buffer): New variable.
8750 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8751 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8752 (dwarf2_has_info): Initialize dwarf_loc_offset.
8753 (dwarf2_build_psymtabs): Read in .debug_loc.
8754 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8755 DWARF_LOC_SIZE.
8756 (psymtab_to_symtab_1): Likewise. Move base address calculation
8757 here, from...
8758 (dwarf2_get_pc_bounds): ... here. Use the base address from
8759 cu_header.
8760 (dwarf2_symbol_mark_computed): Handle location lists.
8761
8762 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8763
8764 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8765 if the linkage name demangled successfully.
8766
8767 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8768
8769 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8770 disassmbly_flavour): Removed.
8771
8772 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8773
8774 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8775
8776 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8777
8778 2003-04-12 Andrew Cagney <cagney@redhat.com>
8779
8780 * frame.h (struct frame_info): Move definition from here ...
8781 * frame.c (struct frame_info): ... to here.
8782
8783 2003-04-12 Andrew Cagney <cagney@redhat.com>
8784
8785 * gdbthread.h (save_infrun_state): Delete parameter
8786 "prev_func_start".
8787 (struct thread_info): Delete field "prev_func_start".
8788 (load_infrun_state): Ditto.
8789 * thread.c (load_infrun_state, save_infrun_state): Update.
8790 * infrun.c (prev_func_start): Delete variable.
8791 (context_switch, init_wait_for_inferior): Update.
8792 (stop_stepping, keep_going): Update.
8793
8794 2003-04-12 Andrew Cagney <cagney@redhat.com>
8795
8796 * gdbarch.sh: Add missing opaque declarations.
8797 * gdbarch.h: Regnerate.
8798 * symtab.h: Add missing opaque declarations.
8799 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8800 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8801 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8802 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8803 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8804 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8805 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8806 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8807 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8808 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8809 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8810 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8811 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8812
8813 2003-04-11 Andrew Cagney <cagney@redhat.com>
8814
8815 * frame.c (get_frame_id): Return this frame's "id".
8816 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8817 function start.
8818 (legacy_saved_regs_this_id): Replace function body with
8819 internal-error.
8820 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8821 FRAME_OBSTACK_ZALLOC.
8822 (create_new_frame): Mark the frame ID as valid.
8823
8824 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8825
8826 * Makefile.in (libbfd_h): Added missing setting.
8827 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8828 according to the selected ABI.
8829
8830 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8831
8832 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8833
8834 2003-04-11 Andrew Cagney <cagney@redhat.com>
8835
8836 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8837 SAVED_PC_AFTER_CALL.
8838 * gdbarch.h, gdbarch.c: Regenerate.
8839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8840 * x86-64-tdep.c (x86_64_init_abi): Update.
8841 * vax-tdep.c (vax_gdbarch_init): Update.
8842 * v850-tdep.c (v850_gdbarch_init): Update.
8843 * sparc-tdep.c (sparc_gdbarch_init): Update.
8844 * sh-tdep.c (sh_gdbarch_init): Update.
8845 * s390-tdep.c (s390_gdbarch_init): Update.
8846 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8847 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8848 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8849 * mips-tdep.c (mips_gdbarch_init): Update.
8850 * mcore-tdep.c (mcore_gdbarch_init): Update.
8851 * m68k-tdep.c (m68k_gdbarch_init): Update.
8852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8853 * ia64-tdep.c (ia64_gdbarch_init): Update.
8854 (ia64_saved_pc_after_call): Update declaration.
8855 * i386ly-tdep.c (i386lynx_init_abi): Update.
8856 * i386-tdep.c (i386_gdbarch_init): Update.
8857 * hppa-tdep.c (hppa_gdbarch_init): Update.
8858 * h8300-tdep.c (h8300_gdbarch_init): Update.
8859 * frv-tdep.c (frv_gdbarch_init): Update.
8860 * cris-tdep.c (cris_gdbarch_init): Update.
8861 * avr-tdep.c (avr_gdbarch_init): Update.
8862 * arm-tdep.c (arm_gdbarch_init): Update.
8863 * alpha-tdep.c (alpha_gdbarch_init): Update.
8864 * ns32knbsd-nat.c (frame_num_args): Update.
8865 * ns32k-tdep.c (umax_frame_num_args): Update.
8866 * mips-tdep.c (mips_init_frame_pc_first): Update.
8867 * infrun.c (step_over_function): Update.
8868 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8869 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8870 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8871 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8872 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8873 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8874 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8875 * arch-utils.c (init_frame_pc_default): Update.
8876 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8877 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8878 declaration.
8879
8880 2003-04-11 Andrew Cagney <cagney@redhat.com>
8881
8882 * i387-tdep.c: Update copyright.
8883 (i387_to_double): Delete function.
8884 (double_to_i387): Delete function.
8885
8886 2003-04-10 Andrew Cagney <cagney@redhat.com>
8887
8888 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8889 frame's function's address. Simplify.
8890 (d10v_frame_unwind_cache): Check that the frame's function is
8891 non-zero.
8892
8893 2003-04-10 Jim Blandy <jimb@redhat.com>
8894
8895 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8896 call to set_gdbarch_deprecated_push_arguments.
8897
8898 2003-04-10 Andrew Cagney <cagney@redhat.com>
8899
8900 * frame.c (fprint_frame_id): New function.
8901 (fprint_frame_type, fprint_frame): New function.
8902 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8903 (create_sentinel_frame, get_frame_id): Ditto.
8904 (frame_id_p, frame_id_eq): Ditto.
8905 (frame_id_inner, create_new_frame): Ditto.
8906 (legacy_get_prev_frame, get_prev_frame): Ditto.
8907 (deprecated_update_frame_pc_hack): Ditto.
8908 (frame_register_unwind): Ditto.
8909 (deprecated_update_frame_base_hack): Ditto.
8910
8911 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8912
8913 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8914 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8915 frame_chain function.
8916 * Makefile.in: Add dependencies due to above change.
8917
8918 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8919
8920 * blockframe.c (legacy_frame_chain_valid): Move call to
8921 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8922 inside_entry_file.
8923
8924 2003-04-09 Andrew Cagney <cagney@redhat.com>
8925
8926 * frame.h (struct frame_id): Replace "pc" and "base" with
8927 "stack_addr" and "code_addr". Update comments.
8928 (frame_id_build): Update parameter names and comment.
8929 (struct frame_info): Replace "id_p" and "id" with "this_id".
8930 * dummy-frame.c (dummy_frame_this_id): Update.
8931 * breakpoint.c (print_one_breakpoint): Update.
8932 * frame.c (get_frame_id): Update.
8933 (get_frame_base, frame_id_build): Update.
8934 (create_sentinel_frame, legacy_get_prev_frame): Update.
8935 (deprecated_update_frame_base_hack): Update.
8936 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8937 (frame_id_inner): Ditto.
8938
8939 2003-04-09 Andrew Cagney <cagney@redhat.com>
8940
8941 * defs.h (gdb_print_host_address): Make "addr" parameter a
8942 pointer constant.
8943 * utils.c (gdb_print_host_address): Update.
8944
8945 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8946
8947 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8948 register number for R0 is 0.
8949
8950 2003-04-09 J. Brobecker <brobecker@gnat.com>
8951
8952 * frame.h (struct gdbarch): Add opaque structure definition
8953 to avoid a compilation warning on LynxOS 4.0.
8954
8955 2003-04-09 Andrew Cagney <cagney@redhat.com>
8956
8957 * frame.h (struct frame_info): Delete field "pc". Replace
8958 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8959 structure.
8960 * frame.c (frame_pc_unwind): Update.
8961 (create_sentinel_frame): Do not set "pc".
8962 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8963 (get_frame_pc): Call frame_pc_unwind.
8964 (deprecated_update_frame_pc_hack): Update.
8965 (create_new_frame): Use "pc" not "->pc".
8966
8967 2003-04-09 Andrew Cagney <cagney@redhat.com>
8968
8969 * frame.c (get_frame_id): Eliminate code updating "frame".
8970 (legacy_get_prev_frame): Ditto.
8971 (get_frame_base): Return id.base directly.
8972 (deprecated_update_frame_base_hack): Update "id.base".
8973 * frame.h (struct frame_info): Delete field "frame".
8974
8975 2003-04-09 Andrew Cagney <cagney@redhat.com>
8976
8977 * NEWS: Mention that the "Sequent family" is obsolete.
8978 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8979 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8980 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8981 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8982 * config/i386/tm-ptx4.h: Obsolete file.
8983 * config/i386/tm-ptx.h: Obsolete file.
8984 * symm-tdep.c: Obsolete file.
8985 * config/i386/symmetry.mt: Obsolete file.
8986 * config/i386/tm-symmetry.h: Obsolete file.
8987 * symm-nat.c: Obsolete file.
8988 * config/i386/nm-symmetry.h: Obsolete file.
8989 * config/i386/xm-symmetry.h: Obsolete file.
8990 * config/i386/symmetry.mh: Obsolete file.
8991 * config/i386/nm-ptx4.h: Obsolete file.
8992 * config/i386/ptx4.mh: Obsolete file.
8993 * config/i386/ptx.mt: Obsolete file.
8994 * config/i386/ptx.mh: Obsolete file.
8995 * config/i386/xm-ptx4.h: Obsolete file.
8996 * config/i386/xm-ptx.h: Obsolete file.
8997
8998 2003-04-09 Andrew Cagney <cagney@redhat.com>
8999
9000 Obsolete mips*-*-mach3*.
9001 * NEWS: Mention that mips*-*-mach3* is obsolete.
9002 * m3-nat.c: Obsolete file.
9003 * config/nm-m3.h: Obsolete file.
9004 * config/mips/tm-mipsm3.h: Obsolete file.
9005 * config/mips/mipsm3.mt: Obsolete file.
9006 * config/mips/mipsm3.mh: Obsolete file.
9007 * config/mips/xm-mipsm3.h: Obsolete file.
9008 * mipsm3-nat.c: Obsolete file.
9009 * configure.host: Obsolete mips-dec-mach3*.
9010 * configure.tgt: Obsolete mips*-*-mach3*.
9011
9012 2003-04-09 Andrew Cagney <cagney@redhat.com>
9013
9014 * doublest.h: Update copyright.
9015 (deprecated_store_floating, deprecated_extract_floating): Rename
9016 store_floating and extract_floating. Update comments.
9017 * doublest.c: Update copyright.
9018 (extract_floating_by_length): Replace extract_floating.
9019 (store_floating_by_length): Replace store_floating.
9020 (deprecated_extract_floating): New function.
9021 (deprecated_store_floating): New function.
9022 (extract_typed_floating): Call extract_floating_by_length.
9023 (store_typed_floating): Call store_floating_by_length.
9024 * x86-64-tdep.c (x86_64_store_return_value): Update.
9025 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9026 (sh64_extract_return_value): Update.
9027 (sh_sh4_register_convert_to_virtual): Update.
9028 (sh_sh64_register_convert_to_virtual): Update.
9029 (sh_sh4_register_convert_to_raw): Update.
9030 (sh_sh64_register_convert_to_raw): Update.
9031 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9032 (rs6000_register_convert_to_raw): Update.
9033 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9034 (ia64_register_convert_to_raw): Update.
9035 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9036 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9037 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9038 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9039 (alpha_register_convert_to_raw): Update.
9040
9041 2003-04-08 Andrew Cagney <cagney@redhat.com>
9042
9043 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9044 * gdbarch.h, gdbarch.c: Re-generate.
9045 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9046 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9047 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9048 conditionally, use frame_pc_unwind as an alternative. Add
9049 comments.
9050 * arch-utils.c (init_frame_pc_default): Only call
9051 SAVED_PC_AFTER_CALL when available.
9052
9053 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9054
9055 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9056 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9057 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9058 (start_remote): Ditto.
9059 (handle_inferior_event): Ditto.
9060 (save_inferior_status): Ditto.
9061 (restore_inferior_status): Ditto.
9062 * infcmd.c (attach_command): Ditto.
9063 * fork-child.c (startup_inferior): Ditto.
9064 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9065 * alpha-tdep.c (heuristic_proc_start): Ditto.
9066 * mips-tdep.c (heuristic_proc_start): Ditto.
9067 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9068 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9069 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9070 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9071 * remote-vx.c (vx_create_inferior): Ditto.
9072
9073 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9074
9075 * infrun.c (stop_soon_quietly): Make it an enum, to better
9076 override the default behavior of handle_inferior_event.
9077 (clear_proceed_status): Update uses of stop_soon_quietly to
9078 reflect that it is now an enum.
9079 (start_remote): Ditto.
9080 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9081 is set to handle the new GNU/Linux kernel behavior for
9082 attach/sigstop. Update uses of stop_soon_quietly.
9083 * inferior.h (enum stop_kind): New enum.
9084 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9085 Reset normal handle_inferior_event behavior, afterwards.
9086 * fork-child.c (startup_inferior): Update.
9087 * alpha-tdep.c (heuristic_proc_start): Update.
9088 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9089 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9090 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9091 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9092 * remote-vx.c (vx_create_inferior): Update.
9093 * mips-tdep.c (heuristic_proc_start): Update.
9094
9095 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9096
9097 * disasm.c (dump_insns): Move variables inside loop, or they will
9098 be freed more than once, causing wild memory corruptions.
9099 (gdb_disassembly): Look for the substring "-thread",
9100 instead of "-threads" in the target name, to make sure to find
9101 the 'multi-thread' target. Also, make sure we do the right thing
9102 with the "core" target.
9103
9104 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9105
9106 * mips-tdep.c (mips_print_fp_register): New function, created from
9107 do_fp_register_row(). Registers are now (also) printed as hex.
9108 Only one register is printed per row.
9109 (mips_print_register, do_fp_register_row): Print floating point
9110 registers with mips_print_fp_register().
9111
9112 2003-04-06 Andrew Cagney <cagney@redhat.com>
9113
9114 * valprint.h (inspect_it): Add extern declaration.
9115 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9116 (selectors_info, classes_info): Ditto.
9117 (find_objc_msgcall): Fix indentation.
9118 (objc_printstr): Delete extern declarations.
9119
9120 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9121
9122 2003-04-06 Andrew Cagney <cagney@redhat.com>
9123
9124 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9125 Update comment.
9126 * frame.c (legacy_saved_regs_this_id): Update.
9127 (legacy_get_prev_frame): Update.
9128 * xstormy16-tdep.c: Update comment.
9129 * sparc-tdep.c (sparc_frame_chain): Update comment.
9130 * blockframe.c (legacy_frame_chain_valid): Update.
9131
9132 2003-04-06 Andrew Cagney <cagney@redhat.com>
9133
9134 * valprint.c (val_print_type_code_int): Delete #ifdef
9135 PRINT_TYPELESS_INTEGER code.
9136
9137 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9138 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9139 multi-arch definition.
9140 * gdbarch.h: Re-generate.
9141
9142 2003-04-05 Andrew Cagney <cagney@redhat.com>
9143
9144 Eliminate FRAME_FIND_SAVED_REGS.
9145 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9146 Change FSR parameter to a pointer.
9147 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9148 Assume FSR parameter is a pointer.
9149 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9150 Make fsr a pointer.
9151 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9152 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9153 saved_regs a pointer.
9154 (hppa_frame_saved_pc): Ditto.
9155 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9156 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9157 pointer.
9158 (restore_pc_queue): Make fsr a pointer.
9159 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9160 (hppa_frame_chain): Make saved_regs a pointer, call
9161 hppa_frame_init_saved_regs.
9162 * sparc-tdep.c: Include "gdb_assert.h".
9163 (sparc_frame_find_saved_regs): Replace internal_error with
9164 gdb_assert.
9165 * remote-vxsparc.c (vx_read_register): Delete reference to
9166 FRAME_FIND_SAVED_REGS.
9167 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9168 * gdbarch.h: Regenerate.
9169 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9170 (deprecated_get_frame_saved_regs): Delete declaration.
9171 (struct frame_saved_regs): Delete definition.
9172 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9173 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9174 (hppa_frame_find_saved_regs): Delete declaration.
9175 (FRAME_FIND_SAVED_REGS): Delete macro.
9176 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9177 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9178 FRAME_FIND_SAVED_REGS in comment.
9179
9180 2003-04-05 Andrew Cagney <cagney@redhat.com>
9181
9182 * frame.c (frame_func_unwind, get_frame_func): New functions.
9183 * frame.h (get_frame_func, frame_func_unwind): Declare.
9184 (struct frame_info): Add field "prev_func" for caching the
9185 previous frame's function address.
9186 * arm-tdep.c (arm_frameless_function_invocation): Combine
9187 get_pc_function_start and get_frame_pc into get_frame_func.
9188 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9189 (sh64_nofp_frame_init_saved_regs): Ditto.
9190 * s390-tdep.c (s390_function_start): Ditto.
9191 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9192 (rs6000_frameless_function_invocation): Ditto.
9193 (rs6000_frame_saved_pc): Ditto.
9194 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9195 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9196 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9197 (i386_frame_init_saved_regs): Ditto.
9198 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9199 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9200 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9201 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9202 * blockframe.c (frameless_look_for_prologue): Ditto.
9203
9204 2003-04-05 Andrew Cagney <cagney@redhat.com>
9205
9206 * frame.c (legacy_get_prev_frame): Link prev to next at the
9207 function start. Update comments.
9208
9209 2003-04-05 Andrew Cagney <cagney@redhat.com>
9210
9211 * frame.c (get_frame_id): Update comment.
9212 (legacy_get_prev_frame): Update comment.
9213 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9214 * gdbarch.h: Regenerate.
9215 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9216 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9217
9218 2003-04-05 Andrew Cagney <cagney@redhat.com>
9219
9220 * stack.c (print_frame_info): Use get_frame_pc.
9221
9222 2003-04-04 Andrew Cagney <cagney@redhat.com>
9223
9224 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9225 the frame's type from the unwinder.
9226 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9227 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9228 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9229 (get_frame_base_address): Use get_frame_type.
9230 (get_frame_locals_address, get_frame_args_address): Ditto.
9231 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9232 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9233 (struct frame_info): Add comment explaining why the frame contains
9234 a "type" field.
9235 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9236 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9237 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9238 NORMAL_FRAME.
9239 * frame-unwind.h: Include "frame.h".
9240 (struct frame_unwind): Add "type" field.
9241 * Makefile.in (frame_unwind_h): Add $(frame_h).
9242
9243 2003-04-04 Andrew Cagney <cagney@redhat.com>
9244
9245 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9246 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9247 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9248 get_frame_base.
9249 (d10v_unwind_dummy_id): Use frame_id_build.
9250 * frame.c (find_frame_sal): Use get_frame_pc.
9251 (create_new_frame): Use deprecated_update_frame_pc_hack and
9252 deprecated_update_frame_base_hack.
9253 (create_sentinel_frame): Add comment about ->pc going away.
9254 (get_prev_frame): Add comment about ->pc going away.
9255 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9256 frame_id_build, deprecated_update_frame_pc_hack and
9257 deprecated_update_frame_base_hack.
9258 (select_frame): Use get_frame_pc.
9259 (legacy_saved_regs_this_id): Use frame_id_build.
9260
9261 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9262
9263 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9264 signed integer case.
9265 (classify_argument): Handle enumerations and references.
9266
9267 2003-04-04 Andrew Cagney <cagney@redhat.com>
9268
9269 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9270 ID to NULL.
9271
9272 2003-04-01 Adam Fedor <fedor@gnu.org>
9273
9274 * gdb/objc-lang.c (selectors_info): Replace calls to
9275 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9276 SYMBOL_NATURAL_NAME.
9277 (classes_info, find_methods): Likewise.
9278
9279 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9280
9281 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9282 ``mach'' to the value determined by bfd_default_set_arch_mach().
9283
9284 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9285
9286 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9287 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9288 (mi-cmd-file.o): Update dependencies.
9289
9290 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9291
9292 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9293 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9294
9295 2003-04-01 Adam Fedor <fedor@gnu.org>
9296
9297 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9298 * language.h (struct language_defn): Add la_demangle.
9299 (language_demangle): Declare.
9300 * language.c (language_demangle): New function.
9301 (unk_lang_demangle): Likewise.
9302 (unknown_language_defn, auto_language_defn, local_language_defn):
9303 Add ukn_lang_demangle.
9304 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9305 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9306 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9307 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9308 * jv-lang.c (java_demangle): New function
9309 (java_language_defn): Use it for la_demangle element.
9310 * objc-lang.c (objc_demangle): Add options argument
9311 (objc_language_defn): Use objc_demangle for la_demangle element.
9312 * maint.c (maintenance_demangle): Replace switch with
9313 call to language_demangle.
9314 * utils.c (fprintf_symbol_filtered): Likewise.
9315
9316 2003-04-01 Andrew Cagney <cagney@redhat.com>
9317
9318 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9319 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9320 PRINT_TYPELESS_INTEGER.
9321 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9322 PUSH_RETURN_ADDRESS.
9323
9324 2003-04-01 Andrew Cagney <cagney@redhat.com>
9325
9326 * Makefile.in (d10v-tdep.o): Update dependencies.
9327 * d10v-tdep.c: Include "frame-base.h".
9328 (d10v_frame_unwind): Make constant.
9329 (d10v_frame_base_address): New function.
9330 (d10v_frame_base): New variable.
9331 (d10v_gdbarch_init): Set frame_base default.
9332 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9333 comment for base.
9334 (d10v_frame_unwind_cache): Set and use "prev_sp".
9335 (d10v_frame_this_id): Use the previous frame's inner most stack
9336 address and this frame's func address for the frame ID. Use
9337 frame_id_build. Don't analyze beyond the current instruction.
9338
9339 2003-04-01 Andrew Cagney <cagney@redhat.com>
9340
9341 * frame.h (get_frame_locals_address, get_frame_args_address):
9342 Refer to the base address, instead of the address of the first
9343 local or parameter.
9344
9345 2003-04-01 Andrew Cagney <cagney@redhat.com>
9346
9347 Add frame debug info addresses:
9348 * frame-base.c: New file.
9349 * frame-base.h: New file.
9350 * frame.h (struct frame_base): Add opaque declaration.
9351 (get_frame_base): Update comment.
9352 (get_frame_base_address): Declare.
9353 (get_frame_locals_address): Declare.
9354 (get_frame_args_address): Declare.
9355 (struct frame_info): Add "base" and "base_cache". Update
9356 comments on the unwinder.
9357 * frame.c: Include "frame-base.h".
9358 (get_frame_locals_address): New function.
9359 (get_frame_base_address): New function.
9360 (get_frame_args_address): New function.
9361 * findvar.c (read_var_value): Use get_frame_locals_address and
9362 get_frame_args_address.
9363 * stack.c (frame_info): Use get_frame_locals_address and
9364 get_frame_args_address.
9365 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9366 moved to "frame-base.c".
9367 * printcmd.c (print_frame_nameless_args): Ditto.
9368 * symtab.h (address_class): Update comments.
9369 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9370 get_frame_base_address.
9371 * dwarf2expr.c (execute_stack_op): Ditto.
9372 * Makefile.in (frame_base_h): Define.
9373 (frame.o): Update dependencies.
9374 (frame-base.o): Add dependencies.
9375 (SFILES): Add frame-base.c.
9376 (COMMON_OBS): Add frame-base.o.
9377
9378 2003-04-01 Andrew Cagney <cagney@redhat.com>
9379
9380 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9381 CALL_DUMMY_LENGTH): Ditto.
9382 * gdbarch.c: Re-generate.
9383 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9384 (CALL_DUMMY_LENGTH): Delete macro.
9385 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9386 * arm-tdep.c (arm_gdbarch_init): Ditto.
9387 * avr-tdep.c (avr_gdbarch_init): Ditto.
9388 * cris-tdep.c (cris_gdbarch_init): Ditto.
9389 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9390 * frv-tdep.c (frv_gdbarch_init): Ditto.
9391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9392 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9393 * i386-tdep.c (i386_gdbarch_init): Ditto.
9394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9396 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9397 * mips-tdep.c (mips_gdbarch_init): Ditto.
9398 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9400 * s390-tdep.c (s390_gdbarch_init): Ditto.
9401 * sh-tdep.c (sh_gdbarch_init): Ditto.
9402 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9403 * v850-tdep.c (v850_gdbarch_init): Ditto.
9404 * vax-tdep.c (vax_gdbarch_init): Ditto.
9405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9406
9407 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9408
9409 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9410
9411 2003-04-01 Andrew Cagney <cagney@redhat.com>
9412
9413 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9414 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9415 * gdbarch.h, gdbarch.c: Re-generate.
9416 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9417 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9418 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9419 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9420 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9421 * infcmd.c (run_stack_dummy): Simplify assuming
9422 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9423 * infrun.c (handle_inferior_event): Ditto.
9424 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9425 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9426 * arm-tdep.c (arm_gdbarch_init): Ditto.
9427 * avr-tdep.c (avr_gdbarch_init): Ditto.
9428 * cris-tdep.c (cris_gdbarch_init): Ditto.
9429 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9430 * frv-tdep.c (frv_gdbarch_init): Ditto.
9431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9432 * i386-tdep.c (i386_gdbarch_init): Ditto.
9433 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9435 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9436 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9437 * mips-tdep.c (mips_gdbarch_init): Ditto.
9438 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9439 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9440 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9441 * s390-tdep.c (s390_gdbarch_init): Ditto.
9442 * sh-tdep.c (sh_gdbarch_init): Ditto.
9443 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9444 * v850-tdep.c (v850_gdbarch_init): Ditto.
9445 * vax-tdep.c (vax_gdbarch_init): Ditto.
9446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9447
9448 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9449
9450 * symfile.c (symfile_relocate_debug_section): Update call to
9451 bfd_simple_get_relocated_section_contents.
9452
9453 2003-03-31 Andrew Cagney <cagney@redhat.com>
9454
9455 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9456 * gdbarch.h, gdbarch.c: Regenerate.
9457 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9458 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9459 available.
9460 * frame.h (generic_fix_call_dummy): Delete declaration.
9461 * dummy-frame.h: Update comment.
9462 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9464 fix_call_dummy.
9465 * sh-tdep.c (sh_gdbarch_init): Ditto.
9466 * s390-tdep.c (s390_gdbarch_init): Ditto.
9467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9468 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9470 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9471 * i386-tdep.c (i386_gdbarch_init): Ditto.
9472 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9473 * frv-tdep.c (frv_gdbarch_init): Ditto.
9474 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9475 * cris-tdep.c (cris_gdbarch_init): Ditto.
9476 * avr-tdep.c (avr_gdbarch_init): Ditto.
9477 * arm-tdep.c (arm_gdbarch_init): Ditto.
9478
9479 2003-03-31 J. Brobecker <brobecker@gnat.com>
9480
9481 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9482 (INIT_FRAME_AP): Likewise.
9483 (EXTRA_FRAME_INFO): Likewise.
9484
9485 2003-03-31 Andrew Cagney <cagney@redhat.com>
9486
9487 * gdbarch.sh: Include "symfile.h".
9488 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9489 * gdbarch.h, gdbarch.c: Re-generate.
9490 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9492 call_dummy_address, the default is at entry_point_address.
9493 * v850-tdep.c (v850_gdbarch_init): Ditto.
9494 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9495 * sh-tdep.c (sh_gdbarch_init): Ditto.
9496 * s390-tdep.c (s390_gdbarch_init): Ditto.
9497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9499 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9500 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9501 * i386-tdep.c (i386_gdbarch_init): Ditto.
9502 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9503 * frv-tdep.c (frv_gdbarch_init): Ditto.
9504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9505 * cris-tdep.c (cris_gdbarch_init): Ditto.
9506 * arm-tdep.c (arm_gdbarch_init): Ditto.
9507
9508 2003-03-31 Andrew Cagney <cagney@redhat.com>
9509
9510 * gdbarch.sh (CALL_DUMMY_P): Delete.
9511 * gdbarch.h, gdbarch.c: Re-generate.
9512 * inferior.h (CALL_DUMMY_P): Delete macro.
9513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9514 * vax-tdep.c (vax_gdbarch_init): Update.
9515 * v850-tdep.c (v850_gdbarch_init): Update.
9516 * sparc-tdep.c (sparc_gdbarch_init): Update.
9517 * sh-tdep.c (sh_gdbarch_init): Update.
9518 * s390-tdep.c (s390_gdbarch_init): Update.
9519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9520 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9522 * mips-tdep.c (mips_gdbarch_init): Update.
9523 * mcore-tdep.c (mcore_gdbarch_init): Update.
9524 * m68k-tdep.c (m68k_gdbarch_init): Update.
9525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9526 * ia64-tdep.c (ia64_gdbarch_init): Update.
9527 * i386-tdep.c (i386_gdbarch_init): Update.
9528 * h8300-tdep.c (h8300_gdbarch_init): Update.
9529 * frv-tdep.c (frv_gdbarch_init): Update.
9530 * d10v-tdep.c (d10v_gdbarch_init): Update.
9531 * cris-tdep.c (cris_gdbarch_init): Update.
9532 * breakpoint.c (deprecated_frame_in_dummy): Update.
9533 * avr-tdep.c (avr_gdbarch_init): Update.
9534 * alpha-tdep.c (alpha_gdbarch_init): Update.
9535 * arm-tdep.c (arm_gdbarch_init): Update.
9536 * dummy-frame.c (dummy_frame_this_id): Update comments.
9537 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9538 * frame.c (legacy_get_prev_frame): Ditto.
9539 * valops.c (call_function_by_hand): Delete function.
9540 (hand_function_call): Rename to call_function_by_hand
9541
9542 2003-03-30 Andrew Cagney <cagney@redhat.com>
9543
9544 2002-11-10 Klee Dienes <kdienes@apple.com>
9545 * value.h (struct value): Update comment.
9546
9547 2003-03-30 Andrew Cagney <cagney@redhat.com>
9548
9549 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9550 D10V_FP_REGNUM.
9551 (d10v_gdbarch_init): Do not set fp_regnum.
9552
9553 * frame.c (get_frame_base): Force ID initialization.
9554 (get_prev_frame): Move computation of the frame ID from here ...
9555 (get_frame_id): ... to here.
9556 (legacy_get_prev_frame): Mark the frame ID as valid.
9557 * frame.h (struct frame_info): Add field "id_p".
9558
9559 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9560
9561 * i386-tdep.c (i386_store_struct_return): Removed.
9562 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9563
9564 2003-03-30 Andrew Cagney <cagney@redhat.com>
9565
9566 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9567 * gdbarch.h, gdbarch.c: Regenerate.
9568 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9569 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9570 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9571 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9572 * i386-tdep.c (i386_gdbarch_init): Ditto.
9573 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9574 * cris-tdep.c (cris_gdbarch_init): Ditto.
9575 * vax-tdep.c (vax_gdbarch_init): Ditto.
9576 * s390-tdep.c (s390_gdbarch_init): Ditto.
9577 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9578 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9579 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9580 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9581 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9582 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9583 * sparc-tdep.c (sparc_gdbarch_init): Update.
9584 * sh-tdep.c (sh_gdbarch_init): Update.
9585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9586 * mips-tdep.c (mips_gdbarch_init): Update.
9587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9588 * ia64-tdep.c (ia64_gdbarch_init): Update.
9589 * frv-tdep.c (frv_gdbarch_init): Update.
9590 * avr-tdep.c (avr_gdbarch_init): Update.
9591 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9592 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9593 instead of when push_dummy_call is not available.
9594
9595 2003-03-30 Andrew Cagney <cagney@redhat.com>
9596
9597 * infttrace.c: Include "gdbthread.h".
9598 (parent_attach_all): Fix function signature.
9599 (call_ptrace): Update call.
9600 * Makefile.in (infttrace.o): Update dependencies.
9601
9602 2003-03-30 Andrew Cagney <cagney@redhat.com>
9603
9604 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9605 PUSH_RETURN_ADDRESS.
9606 * gdbarch.h, gdbarch.c: Regenerate.
9607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9608 * x86-64-tdep.c (x86_64_init_abi): Update.
9609 * v850-tdep.c (v850_gdbarch_init): Update.
9610 * sparc-tdep.c (sparc_gdbarch_init): Update.
9611 * sh-tdep.c (sh_gdbarch_init): Update.
9612 * s390-tdep.c (s390_gdbarch_init): Update.
9613 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9615 * mips-tdep.c (mips_gdbarch_init): Update.
9616 * mcore-tdep.c (mcore_gdbarch_init): Update.
9617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9618 * ia64-tdep.c (ia64_gdbarch_init): Update.
9619 * i386-tdep.c (i386_gdbarch_init): Update.
9620 * h8300-tdep.c (h8300_gdbarch_init): Update.
9621 * frv-tdep.c (frv_gdbarch_init): Update.
9622 * cris-tdep.c (cris_gdbarch_init): Update.
9623 * avr-tdep.c (avr_gdbarch_init): Update.
9624 * arm-tdep.c (arm_gdbarch_init): Update.
9625 * valops.c (hand_function_call): Update.
9626
9627 2003-03-29 Andrew Cagney <cagney@redhat.com>
9628
9629 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9630 sizeof_call_dummy_words.
9631 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9632 define.
9633 * gdbarch.h: Regenerate.
9634
9635 2003-03-29 Andrew Cagney <cagney@redhat.com>
9636
9637 * infttrace.h: New file.
9638 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9639 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9640 (hpread_read_doc_function_type): Detect an initialized type1.
9641 (hpread_quick_traverse): Initialize mod_name_string.
9642 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9643 (som_solib_get_solib_by_pc): Declare.
9644 (so_lib_thread_start_addr): Declare.
9645 (no_shared_libraries): Declare.
9646 * somread.c (init_import_symbols): Make static. Add forward
9647 declaration.
9648 * config/pa/nm-hppah.h: Include "infttrace.h" for
9649 parent_attach_all.
9650 (hppa_insert_hw_watchpoint): Declare.
9651 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9652 * hppah-nat.c: Include "gdb_string.h".
9653 (parent_attach_all): Delete extern declaration, moved to
9654 "infttrace.h".
9655 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9656 int.
9657 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9658 * Makefile.in (infttrace_h): Define.
9659 (hpread.o): Update dependencies.
9660 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9661 * hppa-hpux-tdep.c: Include "gdb_string.h".
9662 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9663 * infrun.c (handle_inferior_event): Always initialize
9664 stepped_after_stopped_by_watchpoint. Add default and remove
9665 fallthrough in switch statement.
9666 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9667 parameter to int.
9668 (hppa_remove_hw_watchpoint): Ditto.
9669
9670 2003-03-29 Andrew Cagney <cagney@redhat.com>
9671
9672 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9673 offset.
9674
9675 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9676
9677 * arm-tdep.c (arm_push_arguments): Delete.
9678 (struct stack_item): New type.
9679 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9680 (arm_store_struct_return): Delte.
9681 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9682 arm_push_arguments or arm_store_struct_return.
9683
9684 2003-03-28 Andrew Cagney <cagney@redhat.com>
9685
9686 * Makefile.in (d10v-tdep.o): Update dependencies.
9687 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9688 * d10v-tdep.c: Include "remote.h".
9689 (target_resume_hook): Delete extern declaration.
9690 (target_wait_loop_hook): Ditto.
9691 (tdisassemble_command): Eliminate assignment in "if" conditional.
9692 (d10v_ts2_register_sim_regno): Eliminate call to
9693 legacy_register_sim_regno.
9694 (d10v_ts3_register_sim_regno): Ditto.
9695
9696 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9697
9698 * thread.c: Reindented.
9699 * lin-lwp.c: Ditto.
9700 * linux-proc.c: Ditto.
9701
9702 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9703
9704 * MAINTAINERS (write after approval): Add myself.
9705
9706 2003-03-27 Theodore A. Roth <troth@openavr.org>
9707
9708 * objc-exp.y: Add missing semi-colons.
9709
9710 2003-03-27 Andrew Cagney <cagney@redhat.com>
9711
9712 * regcache.c (write_sp): Delete function and references.
9713 * inferior.h (write_sp): Delete declaration.
9714 * valops.c (hand_function_call): Replace write_sp with
9715 TARGET_WRITE_SP.
9716 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9717 (sparc_pop_frame): Ditto.
9718
9719 2003-03-27 Andrew Cagney <cagney@redhat.com>
9720
9721 * NEWS: Mention removal of support for hppa*-*-bsd* and
9722 hppa*-*-osf* natives, and hppa*-*-pro* target.
9723 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9724 * config/pa/xm-pa.h: Obsolete file.
9725 * config/pa/xm-hppab.h: Obsolete file.
9726 * config/pa/nm-hppab.h: Obsolete file.
9727 * config/pa/tm-hppab.h: Obsolete file.
9728 * config/pa/tm-hppao.h: Obsolete file.
9729 * config/pa/nm-hppao.h: Obsolete file.
9730 * config/pa/tm-pro.h: Obsolete file.
9731 * config/pa/hppaosf.mt: Obsolete file.
9732 * config/pa/hppaosf.mh: Obsolete file.
9733 * config/pa/hppapro.mt: Obsolete file.
9734 * config/pa/hppabsd.mt: Obsolete file.
9735 * config/pa/hppabsd.mh: Obsolete file.
9736 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9737 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9738 hppa*-*-osf*.
9739
9740 2003-03-27 Andrew Cagney <cagney@redhat.com>
9741
9742 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9743 push_arguments. Don't set push_return_address or write_sp.
9744 (d10v_push_dummy_call): Replace d10v_push_arguments.
9745 (d10v_push_return_address, d10v_write_sp): Delete function,
9746 handled by push_dummy_call.
9747
9748 2003-03-26 Andrew Cagney <cagney@redhat.com>
9749
9750 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9751 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9752 regcache and dummy_addr parameters.
9753 * gdbarch.h, gdbarch.c: Re-generate.
9754 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9755 available; assume it will handle stack alignment and return
9756 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9757 legacy_push_arguments.
9758 (legacy_push_arguments): Rename default_push_arguments.
9759 * value.h (legacy_push_arguments): Rename default_push_arguments.
9760 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9761 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9762 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9763 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9764 * config/i386/tm-symmetry.h: Update.
9765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9766 * x86-64-tdep.c (x86_64_init_abi): Update.
9767 * v850-tdep.c (v850_gdbarch_init): Update.
9768 * sparc-tdep.c (sparc_gdbarch_init): Update.
9769 * sh-tdep.c (sh_gdbarch_init): Update.
9770 * s390-tdep.c (s390_gdbarch_init): Update.
9771 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9772 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9773 * mips-tdep.c (mips_gdbarch_init): Update.
9774 * mcore-tdep.c (mcore_gdbarch_init): Update.
9775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9776 * ia64-tdep.c (ia64_gdbarch_init): Update.
9777 * i386-tdep.c (i386_gdbarch_init): Update.
9778 * hppa-tdep.c (hppa_gdbarch_init): Update.
9779 * h8300-tdep.c (h8300_gdbarch_init): Update.
9780 * frv-tdep.c (frv_gdbarch_init): Update.
9781 * d10v-tdep.c (d10v_gdbarch_init): Update.
9782 * cris-tdep.c (cris_gdbarch_init): Update.
9783 * avr-tdep.c (avr_gdbarch_init): Update.
9784 * arm-tdep.c (arm_gdbarch_init): Update.
9785 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9786 * alpha-tdep.c (alpha_gdbarch_init): Update.
9787
9788 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * signals/signals.c (do_target_signal_to_host): Correct realtime
9791 signal range test.
9792
9793 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9794
9795 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9796 (struct sal_chain, map_catch_names): Remove.
9797 (catch_exception_command_1): Don't call
9798 handle_gnu_4_16_catch_command.
9799
9800 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9801
9802 From Mark Dettinger <dettinge@de.ibm.com>:
9803 * dwarf2cfi.c (read_2u): Increment pointer by two.
9804
9805 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9806
9807 * signals/signals.c: Fix typos in last change.
9808
9809 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9810
9811 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9812 not already defined. Use __SIGRTMIN if available.
9813 (target_signal_from_host): Remove SIGRTMIN block.
9814 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9815 the signal is within the realtime range.
9816
9817 2003-03-25 Adam Fedor <fedor@gnu.org>
9818
9819 * Makefile.in (infrun.o): Add $(language_h)
9820 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9821 for language specific trampolines.
9822 * language.h (struct language_defn): Add skip_trampoline.
9823 (skip_language_trampoline): Declare.
9824 * language.c (unk_lang_trampoline, skip_language_trampoline):
9825 New functions.
9826 (unknown_language_defn, auto_language_defn, local_language_defn):
9827 Add ukn_lang_trampoline.
9828 * ada-lang.c (ada_language_defn): Add NULL for language
9829 specific skip_trampoline.
9830 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9831 scm-lang.c: Likewise.
9832 * objc-lang.c (objc_skip_trampoline): New function.
9833 (objc_language_defn): Add objc_skip_trampoline.
9834
9835 2003-03-25 Andrew Cagney <cagney@redhat.com>
9836
9837 * frame.c (get_prev_frame): Delay validating a frame's ID -
9838 non-NULL, didn't go backwards - until an attempt to unwind it to
9839 the previous frame.
9840
9841 2003-03-25 Andrew Cagney <cagney@redhat.com>
9842
9843 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9844 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9845 * gdbarch.h, gdbarch.c: Re-generate.
9846 * config/sparc/tm-sparc.h
9847 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9848 * sparc-tdep.c (sparc_gdbarch_init): Set
9849 deprecated_extra_stack_alignment_needed.
9850 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9852 extra_stack_alignment_needed.
9853 * v850-tdep.c (v850_gdbarch_init): Ditto.
9854 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9855 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9857 * cris-tdep.c (cris_gdbarch_init): Ditto.
9858 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9860
9861 2003-03-25 Andrew Cagney <cagney@redhat.com>
9862
9863 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9864 STORE_STRUCT_RETURN.
9865 * gdbarch.h, gdbarch.c: Regenerate.
9866 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9867 (d10v_push_arguments): Set the struct return register.
9868 (d10v_gdbarch_init): Update.
9869 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9870 * x86-64-tdep.c (x86_64_init_abi): Update.
9871 * vax-tdep.c (vax_gdbarch_init): Update.
9872 * v850-tdep.c (v850_gdbarch_init): Update.
9873 * sparc-tdep.c (sparc_gdbarch_init): Update.
9874 * sh-tdep.c (sh_gdbarch_init): Update.
9875 * s390-tdep.c (s390_gdbarch_init): Update.
9876 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9877 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9878 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9879 * mips-tdep.c (mips_gdbarch_init): Update.
9880 * mcore-tdep.c (mcore_gdbarch_init): Update.
9881 * m68k-tdep.c (m68k_gdbarch_init): Update.
9882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9883 * ia64-tdep.c (ia64_gdbarch_init): Update.
9884 * i386-tdep.c (i386_gdbarch_init): Update.
9885 * hppa-tdep.c (hppa_gdbarch_init): Update.
9886 * h8300-tdep.c (h8300_gdbarch_init): Update.
9887 * frv-tdep.c (frv_gdbarch_init): Update.
9888 * cris-tdep.c (cris_gdbarch_init): Update.
9889 * avr-tdep.c (avr_gdbarch_init): Update.
9890 * arm-tdep.c (arm_gdbarch_init): Update.
9891 * alpha-tdep.c (alpha_gdbarch_init): Update.
9892
9893 2003-03-25 Andrew Cagney <cagney@redhat.com>
9894
9895 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9896 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9897 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9898 * gdbarch.h, gdbarch.c: Regenerate.
9899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9900 call_dummy_stack_adjust_p.
9901 * vax-tdep.c (vax_gdbarch_init): Ditto.
9902 * v850-tdep.c (v850_gdbarch_init): Ditto.
9903 * sh-tdep.c (sh_gdbarch_init): Ditto.
9904 * s390-tdep.c (s390_gdbarch_init): Ditto.
9905 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9906 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9908 * mips-tdep.c (mips_gdbarch_init): Ditto.
9909 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9910 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9912 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9913 * i386-tdep.c (i386_gdbarch_init): Ditto.
9914 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9915 * frv-tdep.c (frv_gdbarch_init): Ditto.
9916 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9917 * cris-tdep.c (cris_gdbarch_init): Ditto.
9918 * avr-tdep.c (avr_gdbarch_init): Ditto.
9919 * arm-tdep.c (arm_gdbarch_init): Ditto.
9920 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9921 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9922 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9923 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9924 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9925 call_dummy_stack_adjust_p.
9926 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9927 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9928 * sparc-tdep.c (sparc32_push_arguments): Update.
9929 * valops.c (hand_function_call): Update.
9930
9931 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9932
9933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9934 set_gdbarch_char_signed.
9935
9936 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9937
9938 PR cli/548
9939 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9940
9941 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9942
9943 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9944 (_initialize_arm_tdep): Don't set tm_print_insn.
9945
9946 2003-03-24 Adam Fedor <fedor@gnu.org>
9947
9948 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9949 * objc-lang.h: Add multiple inclusion protection.
9950 (start_msglist, add_msglist, end_msglist): Additional declarations.
9951
9952 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9953
9954 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9955 value was renamed to ARM_FLOAT_SOFT_FPA.
9956
9957 2003-03-23 Andrew Cagney <cagney@redhat.com>
9958
9959 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9960 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9961 * gdbarch.h, gdbarch.c: Regenerate.
9962 * valops.c (hand_function_call): Update.
9963 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9964 * frame.c (legacy_saved_regs_this_id): Update.
9965 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9966 * dummy-frame.h: Update.
9967 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9968 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9969 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9970 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9971 * config/m68k/tm-sun3.h: Update.
9972 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9973 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9974 * x86-64-tdep.c (x86_64_init_abi): Update.
9975 * vax-tdep.c (vax_gdbarch_init): Update.
9976 * v850-tdep.c (v850_gdbarch_init): Update.
9977 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9978 * sh-tdep.c (sh_gdbarch_init): Update.
9979 * s390-tdep.c (s390_gdbarch_init): Update.
9980 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9981 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9982 (frame_get_saved_regs): Update.
9983 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9984 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9985 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9986 * mips-tdep.c (mips_gdbarch_init): Update.
9987 * mcore-tdep.c (mcore_gdbarch_init): Update.
9988 * m68k-tdep.c (m68k_gdbarch_init): Update.
9989 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9990 * ia64-tdep.c (ia64_gdbarch_init): Update.
9991 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9992 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9993 (i386_interix_back_one_frame): Update.
9994 * hppa-tdep.c (hppa_gdbarch_init): Update.
9995 (hppa_init_extra_frame_info): Update.
9996 * h8300-tdep.c (h8300_gdbarch_init): Update.
9997 * frv-tdep.c (frv_gdbarch_init): Update.
9998 * cris-tdep.c (cris_gdbarch_init): Update.
9999 * avr-tdep.c (avr_gdbarch_init): Update.
10000 * arm-tdep.c (arm_gdbarch_init): Update.
10001 * alpha-tdep.c (alpha_gdbarch_init): Update.
10002
10003 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10004
10005 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
10006 (arm_get_fp_model): Declare.
10007 * arm-tdep.c (fp_model_strings): New string array.
10008 (arm_fp_model, current_fp_model): New variables.
10009 (arm_get_fp_model): New function.
10010 (arm_set_fp): New function.
10011 (set_fp_model_sfunc): New function.
10012 (show_fp_model): New function.
10013 (_initialize_arm_tdep): Add new command to set/show the FPU.
10014 (arm_extract_return_value): Use arm_get_fp_model.
10015 (arm_store_return_value): Likewise.
10016 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10017 to initialize the floating-point data types.
10018 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10019 model is FPA.
10020
10021 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10022
10023 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10024 the current setting of each value.
10025 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10026 new_set and new_show. Use add_setshow_cmd_full and
10027 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10028 commands and add new version as subcommands of "set/show arm".
10029
10030 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10031
10032 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10033 (set_arm_command, show_arm_command): New functions.
10034 (_initialize_arm_tdep): Add them.
10035 (num_disassembly_options): Renamed from num_flavor_options.
10036 (valid_disassembly_styles): Renamed from valid_flavors.
10037 (disassembly_style): Renamed from disassembly_flavor.
10038 (set_disassembly_style_sfunc): Renamed from
10039 set_disassembly_flavor_sfunc.
10040 (set_disassembly_style): Renamed from set_disassembly_flavor.
10041 (arm_othernames): Updated.
10042 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10043 command. Add "set/show arm disassembly" commands. Deprecate
10044 "othernames" command.
10045
10046 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10047
10048 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10049 (arm-tdep.o): Depend on elf_arm_h.
10050
10051 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10052
10053 * Makefile.in (coff_internal_h): Define.
10054 (arm-tdep.o): Update dependencies.
10055
10056 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10057
10058 * arm-tdep.c (prologue_cache): Delete.
10059 (check_prologue_cache, save_prologue_cache): Delete.
10060 (arm_scan_prologue): Don't check or update the prologue_cache.
10061 (arm_gdb_arch_init): Don't initialize it.
10062 (_initialize_arm_tdep): Likewise.
10063
10064 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10065
10066 * MAINTAINERS (tui): Maintainer of tui code.
10067
10068 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10069
10070 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10071 (i386-cygwin-tdep.o): Add dependencies.
10072 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10073 * i386-cygwin-tdep.c: New file.
10074 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10075 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10076
10077 2003-03-20 Andrew Cagney <cagney@redhat.com>
10078
10079 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10080 (handle_inferior_event): Remove code calling
10081 DYNAMIC_TRAMPOLINE_NEXTPC.
10082
10083 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10084 already has a full path.
10085
10086 * main.c (gdb_main): Return 1.
10087 (captured_main): Call error to report an invalid interpreter.
10088
10089 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10090 * alpha-osf1-tdep.c: Include "gdb_string.h".
10091
10092 2003-03-19 J. Brobecker <brobecker@gnat.com>
10093
10094 Continuing work to convert the hppa targets to multiarch partial.
10095
10096 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10097 method, now that hppa_push_dummy_frame has a conformant prototype.
10098 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10099 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10100 for the switch to multiarch partial.
10101
10102 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10103
10104 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10105 when iss is issNull.
10106
10107 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10108
10109 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10110 NUM_REGS bounds check.
10111
10112 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10113
10114 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10115 * mips-tdep.c (gdb_assert.h): Include.
10116 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10117 (mips_register_name): Handle integer registers explicitly. Add
10118 bounds checking.
10119 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10120 (mips_lsi33k_reg_names): Don't list integer registers; they're
10121 handled by mips_register_name() now.
10122 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10123 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10124 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10125 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10126 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10127
10128 2003-03-18 Andrew Cagney <cagney@redhat.com>
10129
10130 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10131 a void pointer.
10132 * gdbtypes.h (print_scalar_formatted): Update declaration.
10133 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10134
10135 2003-03-18 J. Brobecker <brobecker@gnat.com>
10136
10137 * infrun.c (observer.h): Add #include.
10138 (normal_stop): Add call to observer_notify_normal_stop.
10139 * Makefile.in (infrun.o): Add dependency on observer.h.
10140
10141 2003-03-18 J. Brobecker <brobecker@gnat.com>
10142
10143 Continuing work to convert the hppa targets to multiarch partial.
10144 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10145 parameter. Reformat comment.
10146 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10147 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10148 to match new profile.
10149
10150 2003-03-18 J. Brobecker <brobecker@gnat.com>
10151
10152 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10153 appear to be working in any case.
10154
10155 2003-03-18 J. Brobecker <brobecker@gnat.com>
10156
10157 * observer.c (observer_test_first_observer): New static variable.
10158 (observer_test_second_observer): Likewise.
10159 (observer_test_third_observer): Likewise.
10160 (observer_test_first_notification_function): New static function.
10161 (observer_test_second_notification_function): Likewise.
10162 (observer_test_third_notification_function): Likewise.
10163
10164 2003-03-17 J. Brobecker <brobecker@gnat.com>
10165
10166 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10167 * somsolib.c (gdb_assert.h): Likewise.
10168 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10169 (somsolib.o): Likewise.
10170
10171 2003-03-17 Andrew Cagney <cagney@redhat.com>
10172
10173 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10174 BFD. Simplify setting of di.endian.
10175
10176 2003-03-17 Andrew Cagney <cagney@redhat.com>
10177
10178 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10179 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10180
10181 From Elena Zannoni <ezannoni@redhat.com>
10182 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10183 vector and floating-point parameters.
10184 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10185 convention.
10186 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10187
10188 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10189
10190 * MAINTAINERS: Remove my name from several maintainership roles.
10191
10192 2003-03-17 Andrew Cagney <cagney@redhat.com>
10193
10194 Fix frame off-by-one bug.
10195 * frame-unwind.h (frame_this_id_ftype): Replace
10196 frame_unwind_id_ftype.
10197 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10198 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10199 with "prev_register".
10200 * frame-unwind.c (frame_unwind_find_by_pc): Return
10201 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10202 comment.
10203 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10204 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10205 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10206 (dummy_frame_unwind): Update.
10207 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10208 sentinel_frame_register_unwind.
10209 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10210 (sentinel_frame_unwinder): Update.
10211 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10212 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10213 * frame.c (create_sentinel_frame): Update. Initialize
10214 "prologue_cache" instead of "unwind_cache".
10215 (frame_register_unwind): Call this frame's prev_register with the
10216 next frame and this frame's prologue cache.
10217 (get_prev_frame): Simplify. Always call prev frame's this_id with
10218 this frame and prev frame's prologue cache. Document that this
10219 call is shifted one to the left when compared to the
10220 frame_register_unwind call.
10221 (legacy_saved_regs_prev_register): Replace
10222 frame_saved_regs_register_unwind.
10223 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10224 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10225 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10226 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10227 (d10v_frame_unwind): Update.
10228 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10229 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10230 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10231 "saved_regs" with "this_saved_regs".
10232
10233 2003-03-16 Andrew Cagney <cagney@redhat.com>
10234
10235 * frame.c (frame_pop): Don't call target_store_registers. Fix
10236 problem reported by Mark Kettenis.
10237
10238 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10239
10240 * i386-tdep.c (i386_register_type): Renamed from
10241 i386_register_virtual_type. Adjust function signature.
10242 (i386_gdbarch_init): Set register_type instead of
10243 deprecated_max_register_raw_size,
10244 deprecated_max_register_virtual_size and register_virtual_type.
10245
10246 2003-03-14 Andrew Cagney <cagney@redhat.com>
10247
10248 * frame.c (get_prev_frame): When a legacy frame, always call
10249 legacy_get_prev_frame. Simplify unwind code using assumption that
10250 the unwinder is new.
10251 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10252 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10253 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10254
10255 2003-03-14 Andrew Cagney <cagney@redhat.com>
10256
10257 * frame.c (get_saved_register): Delete function.
10258 * frame.h (get_saved_register): Delete declaration.
10259 * xstormy16-tdep.c: Update comment.
10260 * regcache.h: Update comments.
10261 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10262 get_saved_register and extract_address, use
10263 frame_read_unsigned_register.
10264 (sparc_frame_saved_pc): Ditto.
10265 (sparc_get_saved_register): Instead of get_saved_register, use
10266 frame_register.
10267 (sparc_pop_frame): Ditto.
10268 * findvar.c: Update comments.
10269 (value_of_register): Call frame_register instead of
10270 get_saved_register.
10271 (value_from_register): Ditto.
10272 * config/sparc/tm-sparc.h: Update comment.
10273 * breakpoint.c: Update comment.
10274
10275 2003-03-14 Andrew Cagney <cagney@redhat.com>
10276
10277 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10278 GET_SAVED_REGISTER.
10279 * gdbarch.h, gdbarch.c: Re-generate.
10280 * frame.h: Update comments.
10281 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10282 * x86-64-tdep.c (x86_64_init_abi): Update.
10283 * sparc-tdep.c (sparc_gdbarch_init): Update.
10284 * sh-tdep.c (sh_gdbarch_init): Update.
10285 * mips-tdep.c (mips_gdbarch_init): Update.
10286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10287 * cris-tdep.c (cris_gdbarch_init): Update.
10288 * ia64-tdep.c (ia64_gdbarch_init): Update.
10289 * frame.c (frame_register): Update.
10290 (get_saved_register): Update.
10291 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10292
10293 2003-03-13 Andrew Cagney <cagney@redhat.com>
10294
10295 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10296 * gdbarch.h, gdbarch.c: Regenerate.
10297 * valops.c (hand_function_call): Update comment.
10298 * stack.c (return_command): Update comment.
10299 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10300 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10302 * x86-64-tdep.c (x86_64_init_abi): Update.
10303 * vax-tdep.c (vax_gdbarch_init): Update.
10304 * v850-tdep.c (v850_gdbarch_init): Update.
10305 * sparc-tdep.c (sparc_gdbarch_init): Update.
10306 * sh-tdep.c (sh_gdbarch_init): Update.
10307 * s390-tdep.c (s390_gdbarch_init): Update.
10308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10311 * mips-tdep.c (mips_gdbarch_init): Update.
10312 * mcore-tdep.c (mcore_gdbarch_init): Update.
10313 * m68k-tdep.c (m68k_gdbarch_init): Update.
10314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10315 * ia64-tdep.c (ia64_gdbarch_init): Update.
10316 * i386-tdep.c (i386_gdbarch_init): Update.
10317 * hppa-tdep.c (hppa_gdbarch_init): Update.
10318 * h8300-tdep.c (h8300_gdbarch_init): Update.
10319 * frv-tdep.c (frv_gdbarch_init): Update.
10320 * cris-tdep.c (cris_gdbarch_init): Update.
10321 * avr-tdep.c (avr_gdbarch_init): Update.
10322 * arm-tdep.c (arm_gdbarch_init): Update.
10323 * alpha-tdep.c (alpha_gdbarch_init): Update.
10324
10325 2003-03-13 Andrew Cagney <cagney@redhat.com>
10326
10327 * frame.c (legacy_frame_p): New function.
10328 (get_prev_frame): Use legacy_frame_p.
10329 * frame.h (legacy_frame_p): Declare.
10330
10331 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10332
10333 * MAINTAINERS (write after approval): Alphabetically
10334 listing corrected.
10335
10336 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10337
10338 * MAINTAINERS (write after approval): Add myself.
10339
10340 2003-03-12 Andrew Cagney <cagney@redhat.com>
10341
10342 * frame.c (get_prev_frame): Rename the frame parameter to
10343 "this_frame".
10344 (get_next_frame, legacy_get_prev_frame): Ditto.
10345
10346 2003-03-12 Andrew Cagney <cagney@redhat.com>
10347
10348 * frame.c (get_current_frame): Check target_has_registers before
10349 checking target_has_stack.
10350 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10351 instead of deprecated_selected_frame.
10352 * findvar.c (value_of_register): Pass "frame", not
10353 deprecated_selected_frame, to value_of_builtin_reg.
10354
10355 2003-03-12 Andrew Cagney <cagney@redhat.com>
10356
10357 * regcache.c (regcache_cooked_write_signed): New function.
10358 (regcache_cooked_write_unsigned): New function.
10359 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10360 (regcache_cooked_read_signed): Fix regnum in range assertion.
10361 * regcache.h (regcache_cooked_write_signed): Declare.
10362 (regcache_cooked_write_unsigned): Declare.
10363
10364 2003-03-12 Andrew Cagney <cagney@redhat.com>
10365
10366 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10367 * gdbarch.h, gdbarch.c: Re-generate.
10368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10369 * x86-64-tdep.h: Update.
10370 * x86-64-tdep.c (x86_64_init_abi): Update.
10371 * v850-tdep.c (v850_gdbarch_init): Update.
10372 * sparc-tdep.c (sparc_gdbarch_init): Update.
10373 * sh-tdep.c (sh_gdbarch_init): Update.
10374 * s390-tdep.c (s390_gdbarch_init): Update.
10375 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10376 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10377 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10378 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10379 * mips-tdep.c (mips_gdbarch_init): Update.
10380 * mcore-tdep.c (mcore_gdbarch_init): Update.
10381 * m68k-tdep.c (m68k_gdbarch_init): Update.
10382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10383 * ia64-tdep.c (ia64_gdbarch_init): Update.
10384 * i386-tdep.c (i386_gdbarch_init): Update.
10385 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10386 * hppa-tdep.c (hppa_gdbarch_init): Update.
10387 * h8300-tdep.c (h8300_gdbarch_init): Update.
10388 * frv-tdep.c (frv_gdbarch_init): Update.
10389 * cris-tdep.c (cris_gdbarch_init): Update.
10390 * avr-tdep.c (avr_gdbarch_init): Update.
10391 * arm-tdep.c (arm_gdbarch_init): Update.
10392 * alpha-tdep.c (alpha_gdbarch_init): Update.
10393 * sh-tdep.c (sh_init_extra_frame_info): Update.
10394 (sh64_init_extra_frame_info): Update.
10395 * ns32knbsd-nat.c (frame_num_args): Update.
10396 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10397 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10398 (xstormy16_frame_chain_valid): Update.
10399 * vax-tdep.c (vax_saved_pc_after_call): Update.
10400 * v850-tdep.c (v850_frame_chain): Update.
10401 (v850_pop_frame): Update.
10402 (v850_init_extra_frame_info): Update.
10403 * sparc-tdep.c (setup_arbitrary_frame): Update.
10404 * ns32k-tdep.c (umax_frame_num_args): Update.
10405 * s390-tdep.c (s390_pop_frame_regular): Update.
10406 * mn10300-tdep.c (mn10300_frame_chain): Update.
10407 (mn10300_pop_frame_regular): Update.
10408 (mn10300_init_extra_frame_info): Update.
10409 * mips-tdep.c (mips_init_frame_pc_first): Update.
10410 (mips_frame_chain): Update.
10411 (mips_pop_frame): Update.
10412 * mcore-tdep.c (mcore_frame_chain): Update.
10413 (mcore_pop_frame): Update.
10414 (mcore_init_extra_frame_info): Update.
10415 * arch-utils.c (init_frame_pc_default): Update.
10416 * m68k-tdep.c (isi_frame_num_args): Update.
10417 (delta68_frame_num_args): Update.
10418 (news_frame_num_args): Update.
10419 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10420 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10421 (alpha_frame_chain): Update.
10422 (alpha_pop_frame): Update.
10423 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10424 (hppa_init_extra_frame_info): Update.
10425 (hppa_frame_chain): Update.
10426 (hppa_frame_chain_valid): Update.
10427 * cris-tdep.c (cris_init_extra_frame_info): Update.
10428 * avr-tdep.c (avr_init_extra_frame_info): Update.
10429 * arm-tdep.c (arm_frame_chain_valid): Update.
10430 (arm_init_extra_frame_info): Update.
10431 (arm_pop_frame): Update.
10432 * frame.c (frame_pc_unwind): Update.
10433 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10434 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10435 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10436 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10437 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10438 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10439
10440 2003-03-12 Andrew Cagney <cagney@redhat.com>
10441
10442 Eliminate the need for POP_FRAME.
10443 * frame.c (do_frame_unwind_register): New function.
10444 (frame_pop): When no POP_FRAME, pop the frame using register
10445 unwind and a scratch regcache.
10446 (frame_saved_regs_pop): Delete function.
10447 (trad_frame_unwinder): Update.
10448 * d10v-tdep.c (d10v_frame_pop): Delete function.
10449 (d10v_frame_unwind): Update.
10450 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10451 (sentinel_frame_unwinder): Update.
10452 * dummy-frame.c (dummy_frame_pop): Delete function.
10453 (dummy_frame_unwind): Update.
10454 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10455 (struct frame_unwind): Update.
10456
10457 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10458
10459 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10460 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10461 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10462 Do range checks on register number obtained from debugging info.
10463 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10464 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10465 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10466 mapping function.
10467 (do_fp_register_row): Fix typo which caused double type to be
10468 used when attempting to unpack a float.
10469
10470 2003-03-11 J. Brobecker <brobecker@gnat.com>
10471
10472 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10473
10474 2003-03-11 Andrew Cagney <cagney@redhat.com>
10475
10476 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10477 frame. Problem found by Corinna Vinschen.
10478
10479 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10480
10481 * doublest.c (floatformat_from_length): Accept also
10482 the real size of 'long double' type.
10483
10484 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10485
10486 From Klee Dienes <kdienes@apple.com>:
10487 * breakpoint.c (bpstat_copy): Copy the command lines as well
10488 as the old value, to match what is freed in bpstat_clear.
10489
10490 2003-03-10 David Carlton <carlton@math.stanford.edu>
10491
10492 * minsyms.c (add_minsym_to_hash_table): Replace
10493 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10494 (compare_minimal_symbols, compact_minimal_symbols)
10495 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10496 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10497 of DEPRECATED_SYMBOL_MATCHES_NAME.
10498 (lookup_minimal_symbol_solib_trampoline): Ditto.
10499
10500 2003-03-10 Andrew Cagney <cagney@redhat.com>
10501
10502 * regcache.h (regcache_cooked_read_ftype): Define.
10503 (regcache_save, regcache_restore): Add a cooked_read parameter.
10504 * regcache.c (regcache_save, regcache_restore): Update.
10505 (do_cooked_read): New function.
10506 (regcache_cpy): Pass do_cooked_read to regcache_save and
10507 regcache_restore.
10508
10509 2003-03-10 Andrew Cagney <cagney@redhat.com>
10510
10511 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10512 * gdbarch.h, gdbarch.c: Re-generate.
10513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10514 * x86-64-tdep.h: Update.
10515 * x86-64-tdep.c (x86_64_init_abi): Update.
10516 * v850-tdep.c (v850_gdbarch_init): Update.
10517 * sparc-tdep.c (sparc_gdbarch_init): Update.
10518 * sh-tdep.c (sh_gdbarch_init): Update.
10519 * s390-tdep.c (s390_gdbarch_init): Update.
10520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10521 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10524 * mips-tdep.c (mips_gdbarch_init): Update.
10525 * mcore-tdep.c (mcore_gdbarch_init): Update.
10526 * m68k-tdep.c (m68k_gdbarch_init): Update.
10527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10528 * ia64-tdep.c (ia64_gdbarch_init): Update.
10529 * i386-tdep.c (i386_gdbarch_init): Update.
10530 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10531 * hppa-tdep.c (hppa_gdbarch_init): Update.
10532 * h8300-tdep.c (h8300_gdbarch_init): Update.
10533 * frv-tdep.c (frv_gdbarch_init): Update.
10534 * cris-tdep.c (cris_gdbarch_init): Update.
10535 * avr-tdep.c (avr_gdbarch_init): Update.
10536 * arm-tdep.c (arm_gdbarch_init): Update.
10537 * alpha-tdep.c (alpha_gdbarch_init): Update.
10538 * sh-tdep.c (sh_init_extra_frame_info): Update.
10539 (sh64_init_extra_frame_info): Update.
10540 * ns32knbsd-nat.c (frame_num_args): Update.
10541 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10542 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10543 (xstormy16_frame_chain_valid): Update.
10544 * vax-tdep.c (vax_saved_pc_after_call): Update.
10545 * v850-tdep.c (v850_frame_chain): Update.
10546 (v850_pop_frame): Update.
10547 (v850_init_extra_frame_info): Update.
10548 * sparc-tdep.c (setup_arbitrary_frame): Update.
10549 * ns32k-tdep.c (umax_frame_num_args): Update.
10550 * s390-tdep.c (s390_pop_frame_regular): Update.
10551 * mn10300-tdep.c (mn10300_frame_chain): Update.
10552 (mn10300_pop_frame_regular): Update.
10553 (mn10300_init_extra_frame_info): Update.
10554 * mips-tdep.c (mips_init_frame_pc_first): Update.
10555 (mips_frame_chain): Update.
10556 (mips_pop_frame): Update.
10557 * mcore-tdep.c (mcore_frame_chain): Update.
10558 (mcore_pop_frame): Update.
10559 (mcore_init_extra_frame_info): Update.
10560 * arch-utils.c (init_frame_pc_default): Update.
10561 * m68k-tdep.c (isi_frame_num_args): Update.
10562 (delta68_frame_num_args): Update.
10563 (news_frame_num_args): Update.
10564 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10565 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10566 (alpha_frame_chain): Update.
10567 (alpha_pop_frame): Update.
10568 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10569 (hppa_init_extra_frame_info): Update.
10570 (hppa_frame_chain): Update.
10571 (hppa_frame_chain_valid): Update.
10572 * cris-tdep.c (cris_init_extra_frame_info): Update.
10573 * avr-tdep.c (avr_init_extra_frame_info): Update.
10574 * arm-tdep.c (arm_frame_chain_valid): Update.
10575 (arm_init_extra_frame_info): Update.
10576 (arm_pop_frame): Update.
10577 * frame.c (frame_pc_unwind): Update.
10578 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10579 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10580 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10581 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10582 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10583 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10584
10585 2003-03-10 Andrew Cagney <cagney@redhat.com>
10586
10587 * gdbarch.sh (gdbarch_unwind_pc): New method.
10588 * gdbarch.h, gdbarch.c: Regenerate.
10589 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10590 but use read_pc and FRAME_SAVED_PC as fall backs.
10591 (frame_saved_regs_pc_unwind): Delete function.
10592 (trad_frame_unwinder): Update.
10593 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10594 (struct frame_unwind): Update.
10595 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10596 (dummy_frame_unwind): Update.
10597 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10598 (sentinel_frame_unwinder): Update.
10599 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10600 (d10v_frame_unwind): Update.
10601 (d10v_unwind_pc): New function.
10602 (d10v_gdbarch_init): Set unwind_pc.
10603
10604 2003-03-10 Andrew Cagney <cagney@redhat.com>
10605
10606 * gdbarch.h: Re-generate.
10607
10608 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10609 PC.
10610 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10611 the PC register.
10612
10613 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10614
10615 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10616
10617 2003-03-08 Andrew Cagney <cagney@redhat.com>
10618
10619 * cli-out.c: Update copyright.
10620 (cli_out_data): Define typedef. Use instead of ui_out_data.
10621
10622 2003-03-08 Andrew Cagney <cagney@redhat.com>
10623
10624 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10625 the result.
10626
10627 2003-03-07 Andrew Cagney <cagney@redhat.com>
10628
10629 * gdbarch.sh: Don't generate two macro definitions when an
10630 undefined macro taking no arguments.
10631 * gdbarch.h: Regenerate.
10632
10633 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10634
10635 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10636 (x86_64_unwind_dummy_id): New functions.
10637 (x86_64_init_abi): Register these two new functions.
10638
10639 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10640
10641 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10642 (x86_64_skip_prologue): Move prologue detection to
10643 separate function.
10644 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10645
10646 2003-03-05 Andrew Cagney <cagney@redhat.com>
10647
10648 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10649 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10650 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10651 to use unwind_dummy_id when a dummy frame.
10652 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10653 predicate.
10654 * gdbarch.h, gdbarch.c: Regneerate.
10655
10656 2003-03-05 Andrew Cagney <cagney@redhat.com>
10657
10658 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10659 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10660 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10661 values.
10662
10663 2003-03-05 Andrew Cagney <cagney@redhat.com>
10664
10665 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10666 (struct d10v_unwind_cache): Delete field "frameless". Replace
10667 "next_addr" with "sp_offset". Add "r11_offset".
10668 (d10v_frame_unwind_cache): Update.
10669 (prologue_find_regs): Update. When "mv r11, sp", save the
10670 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10671 RN was saved in r11_offset.
10672
10673 2003-03-05 Andrew Cagney <cagney@redhat.com>
10674
10675 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10676 cached PC value in the next frame.
10677
10678 2003-03-05 Andrew Cagney <cagney@redhat.com>
10679
10680 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10681 "id_unwind_cache" with "id".
10682 (frame_id_unwind): Delete declaration.
10683 * frame.c (frame_id_unwind): Delete function.
10684 (get_prev_frame): Call the frame id unwind method directly. Store
10685 the returned next frame's ID value in NEXT_FRAME. Note that there
10686 is a problem with the wrong unwind ID being called with the wrong
10687 unwind cache.
10688
10689 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10690
10691 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10692
10693 2003-03-05 James Ingham <jingham@apple.com>
10694 Daniel Jacobowitz <drow@mvista.com>
10695
10696 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10697 (auto_cp_abi): New variable.
10698 (current_cp_abi, num_cp_abis): Make static.
10699 (CP_ABI_MAX): Define.
10700 (cp_abis): Turn into an array.
10701 (value_virtual_fn_field): Fix formatting.
10702 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10703 takes a pointer.
10704 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10705 (list_cp_abis, _initialize_cp_abi): New functions.
10706 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10707 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10708 switch_to_cp_abi. Update prototype for register_cp_abi.
10709 * Makefile.in (cp-abi.o): Update dependencies.
10710 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10711 instead of switch_to_cp_abi.
10712 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10713 register_cp_abi.
10714 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10715 register_cp_abi.
10716 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10717
10718 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10719
10720 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10721 * dwarf2loc.c: Include "regcache.h".
10722 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10723 register_size.
10724 * Makefile.in (dwarf2loc.o): Update dependencies.
10725
10726 2003-03-04 Theodore A. Roth <troth@openavr.org>
10727
10728 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10729 number of io registers reported by remote target is not a multiple of
10730 step.
10731
10732 2003-03-04 David Carlton <carlton@math.stanford.edu>
10733
10734 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10735 (lookup_symbol_aux_psymtabs): Update call to
10736 lookup_partial_symbol.
10737 (lookup_transparent_type, find_main_psymtab)
10738 (make_symbol_overload_list): Ditto.
10739
10740 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10741
10742 * MAINTAINERS (Write after approval): Update my email address.
10743
10744 2003-03-03 Andrew Cagney <cagney@redhat.com>
10745
10746 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10747 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10748 predicate. Replace MAX_REGISTER_RAW_SIZE.
10749 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10750 MAX_REGISTER_VIRTUAL_SIZE.
10751 * regcache.c (legacy_max_register_raw_size): New function.
10752 (legacy_max_register_virtual_size): New function.
10753 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10754 (MAX_REGISTER_RAW_SIZE): Define.
10755 (legacy_max_register_raw_size): Declare.
10756 (legacy_max_register_virtual_size): Declare.
10757 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10758 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10759 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10760 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10761 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10762 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10763 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10764 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10765 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10767 * vax-tdep.c (vax_gdbarch_init): Update.
10768 * v850-tdep.c (v850_gdbarch_init): Update.
10769 * sparc-tdep.c (sparc_gdbarch_init): Update.
10770 * sh-tdep.c (sh_gdbarch_init): Update.
10771 * s390-tdep.c (s390_gdbarch_init): Update.
10772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10773 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10774 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10775 * mips-tdep.c (mips_gdbarch_init): Update.
10776 * mcore-tdep.c (mcore_gdbarch_init): Update.
10777 * m68k-tdep.c (m68k_gdbarch_init): Update.
10778 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10779 * ia64-tdep.c (ia64_gdbarch_init): Update.
10780 * i386-tdep.c (i386_gdbarch_init): Update.
10781 * hppa-tdep.c (hppa_gdbarch_init): Update.
10782 * h8300-tdep.c (h8300_gdbarch_init): Update.
10783 * frv-tdep.c (frv_gdbarch_init): Update.
10784 * cris-tdep.c (cris_gdbarch_init): Update.
10785 * avr-tdep.c (avr_gdbarch_init): Update.
10786 * arm-tdep.c (arm_gdbarch_init): Update.
10787 * alpha-tdep.c (alpha_gdbarch_init): Update.
10788 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10789 max_register_raw_size or max_register_virtual_size.
10790
10791 2003-03-03 David Carlton <carlton@math.stanford.edu>
10792
10793 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10794 SYMBOL_MATCHES_NAME, add comment.
10795 (SYMBOL_MATCHES_NATURAL_NAME): New.
10796 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10797 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10798 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10799 * symtab.c (lookup_partial_symbol): Use
10800 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10801 unhelpful comment.
10802 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10803 SYMBOL_MATCHES_NAME.
10804 Fix for PR c++/33.
10805
10806 2003-03-03 David Carlton <carlton@math.stanford.edu>
10807
10808 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10809 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10810 by regexp matching against SYMBOL_NATURAL_NAME.
10811
10812 2003-03-03 David Carlton <carlton@math.stanford.edu>
10813
10814 * linespec.c (find_method): Extract code into collect_methods.
10815 (collect_methods): New.
10816
10817 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10818
10819 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10820 get_frame_base.
10821
10822 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10823 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10824
10825 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10826
10827 * arch-utils.c (generic_register_byte): Fix to use the loop index
10828 and not regnum when summing the size of all registers up to regnum.
10829
10830 2003-03-01 Andrew Cagney <cagney@redhat.com>
10831
10832 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10833 FRAME_INIT_SAVED_REGS.
10834 * gdbarch.h, gdbarch.c: Regenerate.
10835 * stack.c (frame_info): Update.
10836 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10837 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10838 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10839 * ns32k-tdep.c (ns32k_pop_frame): Update.
10840 * mips-tdep.c (mips_pop_frame): Update.
10841 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10842 * ia64-tdep.c (ia64_frame_chain): Update.
10843 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10844 (ia64_frameless_function_invocation): Update.
10845 (ia64_init_extra_frame_info): Update.
10846 (ia64_pop_frame_regular): Update.
10847 * frame.h (struct frame_info): Update comment.
10848 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10849 * frame.c (frame_saved_regs_register_unwind): Update.
10850 (frame_saved_regs_register_unwind): Update.
10851 (deprecated_generic_get_saved_register): Update.
10852 * cris-tdep.c: Update comment.
10853 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10854 Rename macro.
10855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10856 * x86-64-tdep.c (x86_64_init_abi): Update.
10857 * vax-tdep.c (vax_gdbarch_init): Update.
10858 * v850-tdep.c (v850_gdbarch_init): Update.
10859 * sparc-tdep.c (sparc_gdbarch_init): Update.
10860 * sh-tdep.c (sh_gdbarch_init): Update.
10861 * s390-tdep.c (s390_gdbarch_init): Update.
10862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10863 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10864 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10865 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10866 * mips-tdep.c (mips_gdbarch_init): Update.
10867 * mcore-tdep.c (mcore_gdbarch_init): Update.
10868 * m68k-tdep.c (m68k_gdbarch_init): Update.
10869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10870 * ia64-tdep.c (ia64_gdbarch_init): Update.
10871 * i386-tdep.c (i386_gdbarch_init): Update.
10872 * frv-tdep.c (frv_gdbarch_init): Update.
10873 * avr-tdep.c (avr_gdbarch_init): Update.
10874 * arm-tdep.c (arm_gdbarch_init): Update.
10875 * alpha-tdep.c (alpha_gdbarch_init): Update.
10876
10877 2003-03-01 Andrew Cagney <cagney@redhat.com>
10878
10879 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10880 option enum and switch. When no windows, set the interpreter to
10881 INTERP_CONSOLE.
10882
10883 2003-03-01 Andrew Cagney <cagney@redhat.com>
10884
10885 * main.c (captured_main): Replace magic option characters with an
10886 enum.
10887
10888 2003-03-01 Andrew Cagney <cagney@redhat.com>
10889
10890 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10891 INIT_EXTRA_FRAME_INFO.
10892 * gdbarch.h, gdbarch.c: Regenerate.
10893 * arm-tdep.c: Update comments.
10894 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10895 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10896 * frame.h, avr-tdep.c: Ditto.
10897 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10898 (create_new_frame, legacy_get_prev_frame): Ditto.
10899 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10900 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10902 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10903 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10904 * v850-tdep.c (v850_gdbarch_init): Ditto.
10905 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10906 * sh-tdep.c (sh_gdbarch_init): Ditto.
10907 * s390-tdep.c (s390_gdbarch_init): Ditto.
10908 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10909 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10910 * mips-tdep.c (mips_gdbarch_init): Ditto.
10911 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10914 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10915 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10917 * frv-tdep.c (frv_gdbarch_init): Ditto.
10918 * cris-tdep.c (cris_gdbarch_init): Ditto.
10919 * avr-tdep.c (avr_gdbarch_init): Ditto.
10920 * arm-tdep.c (arm_gdbarch_init): Ditto.
10921 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10922 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10923
10924 2003-03-01 Andrew Cagney <cagney@redhat.com>
10925
10926 * gdbarch.sh (register_type): New function with predicate.
10927 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10928 * gdbarch.h, gdbarch.c: Re-generate.
10929 * arch-utils.c (generic_register_byte): Use generic_register_size.
10930 (generic_register_size): When available, use
10931 gdbarch_register_type.
10932 * regcache.c (init_regcache_descr): When available, initialize the
10933 register type array using gdbarch_register_type. If the
10934 architecture supplies gdbarch_register_type, do not use the legacy
10935 regcache layout.
10936 * d10v-tdep.c (d10v_register_type): Replace
10937 d10v_register_virtual_type.
10938 (d10v_gdbarch_init): Set register_type instead of
10939 register_virtual_type.
10940
10941 2003-03-01 Andrew Cagney <cagney@redhat.com>
10942
10943 * Makefile.in (ax-gdb.o): Update dependencies.
10944 * ax-gdb.c: Include "regcache.h".
10945 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10946 * findvar.c (value_of_register): Ditto.
10947 * infcmd.c (default_print_registers_info): Ditto.
10948
10949 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10950
10951 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10952 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10953
10954 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10955
10956 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10957 of STREQ.
10958
10959 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10960
10961 * Makefile.in (dwarf2loc.o): Update dependencies.
10962 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10963 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10964 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10965 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10966 (locexpr_tracepoint_var_ref): New function.
10967 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10968
10969 2003-02-28 Andrew Cagney <cagney@redhat.com>
10970
10971 * regcache.c (register_size): New function.
10972 * regcache.h (register_size): Declare
10973 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10974 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10975
10976 2003-02-28 David Carlton <carlton@math.stanford.edu>
10977
10978 * linespec.c (decode_compound): Extract code into find_method.
10979 (find_method): New.
10980
10981 2003-02-28 J. Brobecker <brobecker@gnat.com>
10982
10983 * Makefile.in: Add rules to build and link in observer.o.
10984
10985 2003-02-27 J. Brobecker <brobecker@gnat.com>
10986
10987 * observer.c: Minor comments edits.
10988
10989 2003-02-27 J. Brobecker <brobecker@gnat.com>
10990
10991 * observer.h, observer.c: New file.
10992
10993 2003-02-27 Andrew Cagney <cagney@redhat.com>
10994
10995 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10996
10997 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10998
10999 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
11000 (M6812_OP_STS_EXT): Likewise.
11001 (m6811_prologue): Use the above to recognize prologue.
11002 (m6812_prologue): Likewise.
11003
11004 2003-02-27 David Carlton <carlton@math.stanford.edu>
11005
11006 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
11007 SYMBOL_PRINT_NAME.
11008 (compare_psymbols): Ditto.
11009 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
11010
11011 2003-02-27 Michael Snyder <msnyder@redhat.com>
11012
11013 * f-lang.c (build_fortran_types): New function.
11014 (_initialize_f_language): Gdbarch-register built-in fortran types.
11015 * doublest.c (extract_floating): Fix warning text.
11016
11017 2003-02-27 Andrew Cagney <cagney@redhat.com>
11018
11019 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11020 predicate. Replaces PUSH_DUMMY_FRAME.
11021 * gdbarch.h, gdbarch.c: Regnerate.
11022 * valops.c (hand_function_call): Update. Call
11023 generic_push_dummy_frame directly.
11024 * vax-tdep.c (vax_gdbarch_init): Update.
11025 * sparc-tdep.c (sparc_gdbarch_init): Update.
11026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11027 * m68k-tdep.c (m68k_gdbarch_init): Update.
11028 * hppa-tdep.c (hppa_gdbarch_init): Update.
11029 * alpha-tdep.c (alpha_gdbarch_init): Update.
11030 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11031 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11032 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11033 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11034 push_dummy_frame to generic_push_dummy_frame.
11035 * v850-tdep.c (v850_gdbarch_init): Ditto.
11036 * sh-tdep.c (sh_gdbarch_init): Ditto.
11037 * s390-tdep.c (s390_gdbarch_init): Ditto.
11038 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11039 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11040 * mips-tdep.c (mips_gdbarch_init): Ditto.
11041 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11043 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11044 * i386-tdep.c (i386_gdbarch_init): Ditto.
11045 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11046 * frv-tdep.c (frv_gdbarch_init): Ditto.
11047 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11048 * cris-tdep.c (cris_gdbarch_init): Ditto.
11049 * avr-tdep.c (avr_gdbarch_init): Ditto.
11050 * arm-tdep.c (arm_gdbarch_init): Ditto.
11051
11052 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11053
11054 * mips-tdep.c (show_mips_abi): New function.
11055 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11056 command ``show mips abi''.
11057
11058 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11059
11060 From Elena Zannoni <ezannoni@redhat.com>
11061 * dbxread.c (process_one_symbol): Only record line 0 if one or
11062 more sline entries have been seen for the function.
11063
11064 2003-02-26 Michael Chastain <mec@shout.net>
11065
11066 * configure: Regenerate with autoconf 000227.
11067
11068 2003-02-26 Michael Chastain <mec@shout.net>
11069
11070 Close PR build/660.
11071 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11072 for old libc5/glibc.
11073 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11074
11075 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11076
11077 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11078 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11079
11080 2003-02-26 Michael Chastain <mec@shout.net>
11081
11082 * configure.in: New variable HAVE_UINTPTR_T.
11083 * configure, config.in: Regenerated.
11084
11085 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11086
11087 Fix PR build/1097.
11088 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11089
11090 2003-02-25 Andrew Cagney <cagney@redhat.com>
11091
11092 * frame.c (get_prev_frame): Add comment on check for
11093 inside_entry_func. Only check for inside_entry_file when not a
11094 dummy and not a sentinel. Check that the new frame is not inner
11095 to the old frame.
11096
11097 2003-02-25 Andrew Cagney <cagney@redhat.com>
11098
11099 * frame.c (frame_debug): New variable.
11100 (_initialize_frame): Add "set/show debug frame" command.
11101 (get_prev_frame): When frame_debug, print reason why unwind
11102 failed.
11103
11104 2003-02-25 Michael Chastain <mec@shout.net>
11105
11106 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11107 to avoid uintptr_t definition problems.
11108
11109 2003-02-25 David Carlton <carlton@math.stanford.edu>
11110
11111 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11112 (SYMBOL_LINKAGE_NAME): Ditto.
11113 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11114 SYMBOL_LINKAGE_NAME.
11115 (struct general_symbol_info): Expand comment.
11116 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11117 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11118 (SYMBOL_MATCHES_REGEXP): Ditto.
11119 * symtab.c (symbol_natural_name): New function.
11120 * objfiles.h: Replace all uses of SYMBOL_NAME by
11121 DEPRECATED_SYMBOL_NAME.
11122 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11123 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11124 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11125 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11126 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11127 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11128 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11129 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11130 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11131 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11132 * ada-exp.y: Ditto.
11133 * ada-exp.y: Update copyright.
11134 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11135 * cp-valprint.c: Ditto.
11136
11137 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11138
11139 * infptrace.c (detach): Do not flag error if ptrace detach fails
11140 and errno is set to ESRCH.
11141
11142 2003-02-24 Andrew Cagney <cagney@redhat.com>
11143
11144 * infptrace.c (udot_info): Change type of udot_off to long. Use
11145 paddr when printing udot_off's value.
11146
11147 2003-02-24 David Carlton <carlton@math.stanford.edu>
11148
11149 * symtab.c (make_symbol_overload_list): Only read in partial
11150 symtabs containing a matching partial symbol.
11151
11152 2003-02-24 David Carlton <carlton@math.stanford.edu>
11153
11154 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11155 do the comparison, not strcmp.
11156 * symfile.c (compare_psymbols): Ditto.
11157 * defs.h: Declare strcmp_iw_ordered.
11158 * utils.c (strcmp_iw_ordered): New function.
11159
11160 2003-02-24 Jim Blandy <jimb@redhat.com>
11161
11162 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11163 support, shared libs): Remove my name from here, to better reflect
11164 reality.
11165
11166 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11167
11168 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11169 (target_ops): Add to_have_continuable_watchpoint.
11170 * target.c (update_current_target): Add INHERIT line for
11171 to_have_continuable_watchpoint.
11172 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11173 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11174 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11175 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11176
11177 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11178
11179 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11180 maintainership.
11181
11182 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11183
11184 * solib.c (solib_open): Call target defined search function after
11185 failing with solib-search-path.
11186 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11187 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11188
11189 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11190
11191 * MAINTAINERS: Add myself to Write After section.
11192
11193 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11194
11195 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11196
11197 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11198
11199 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11200 (m68hc11_add_reggroups): New function.
11201 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11202 (m68hc11_gdbarch_init): Install the reggroups.
11203 (_initialize_m68hc11_tdep): Initialize them.
11204
11205 2003-02-21 James E Wilson <wilson@tuliptree.org>
11206
11207 * MAINTAINERS: Update my email address.
11208
11209 2003-02-21 David Carlton <carlton@math.stanford.edu>
11210
11211 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11212
11213 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11214
11215 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11216 * symtab.h: Add opaque declarations of struct axs_value and
11217 struct agent_expr.
11218 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11219 (struct location_funcs): New type.
11220 (struct symbol): Add "loc" to aux_value.
11221 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11222 * dwarf2read.c: Include "dwarf2expr.h".
11223 (dwarf2_symbol_mark_computed): New function.
11224 (read_func_scope): Use it.
11225 (var_decode_location): New function.
11226 (new_symbol): Use it.
11227 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11228
11229 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11230 (dwarf2expr_h, dwarf2loc_h): New variables.
11231 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11232 (dwarf2expr.o, dwarf2loc.o): New rules.
11233 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11234 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11235 LOC_COMPUTED_ARG.
11236 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11237 * m2-exp.y (yylex): Likewise.
11238 * printcmd.c (address_info, print_frame_args): Likewise.
11239 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11240 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11241 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11242 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11243 * symtab.c (lookup_block_symbol): Likewise.
11244
11245 2003-02-20 Adam Fedor <fedor@gnu.org>
11246
11247 * symtab.h: Remove objc_specific struct
11248 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11249 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11250 Have language_objc use cplus_specific struct.
11251
11252 2003-02-20 Tom Tromey <tromey@redhat.com>
11253
11254 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11255 TYPE_NAME, when printing a String value. PR java/1075.
11256
11257 2003-02-20 Adam Fedor <fedor@gnu.org>
11258
11259 * objc-lang.h (find_methods): Remove declaration.
11260 * objc-lang.c (find_methods): Make static.
11261
11262 2003-02-20 Christopher Faylor <cgf@redhat.com>
11263
11264 * win32-nat.c (get_image_name): Check return value from
11265 ReadProcessMemory.
11266 (child_xfer_memory): Ditto.
11267
11268 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11269
11270 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11271 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11272 '${exec_prefix}' (in addition to the expansion thereof) as
11273 relocatable.
11274 * configure: Rebuilt.
11275
11276 2003-02-20 David Carlton <carlton@math.stanford.edu>
11277
11278 * symtab.c (search_symbols): Revert the search_symbols part of my
11279 2002-12-23 patch. Add comment.
11280
11281 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11282
11283 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11284 * dbxread.c (elfstab_build_psymtabs): Don't call
11285 install_minimal_symbols.
11286 (stabsect_build_psymtabs): Likewise.
11287 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11288 earlier.
11289 * somread.c (som_symfile_read): Call install_minimal_symbols
11290 and do_cleanups earlier.
11291 * nlmread.c (nlm_symfile_read): Likewise.
11292 * mdebugread.c (elfmdebug_build_psymtabs): Call
11293 install_minimal_symbols and make appropriate cleanups.
11294
11295 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11296
11297 * solib.c (reload_shared_libraries): New function.
11298 (_initialize_solib): Add callbacks for ``set solib-search-path''
11299 and ``set solib-absolute-prefix''.
11300
11301 2003-02-20 David Carlton <carlton@math.stanford.edu>
11302
11303 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11304 expand comment.
11305 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11306 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11307 * ada-typeprint.c (ada_typedef_print): Ditto.
11308 * ax-gdb.c (gen_var_ref): Ditto.
11309 * breakpoint.c (print_one_breakpoint): Ditto.
11310 * buildsym.c (finish_block): Ditto.
11311 * c-valprint.c (c_val_print): Ditto.
11312 * expprint.c (print_subexp): Ditto.
11313 * findvar.c (locate_var_value): Ditto.
11314 * infcmd.c (jump_command): Ditto.
11315 * linespec.c (decode_line_2, decode_compound): Ditto.
11316 * maint.c (maintenance_translate_address): Ditto.
11317 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11318 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11319 Ditto.
11320 * p-valprint.c (pascal_val_print): Ditto.
11321 * stabsread.c (define_symbol): Ditto.
11322 * stack.c (print_frame, frame_info, print_block_frame_locals)
11323 (print_frame_arg_vars, return_command): Ditto.
11324 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11325 * symmisc.c (print_symbol): Ditto.
11326 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11327 (compare_search_syms, print_symbol_info, print_msymbol_info)
11328 (rbreak_command): Ditto.
11329 * tracepoint.c (tracepoints_info): Ditto.
11330 * typeprint.c (typedef_print): Ditto.
11331 * valops.c (value_of_variable, hand_function_call): Ditto.
11332 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11333 * ada-typeprint.c: Update Copyright.
11334 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11335 * tracepoint.c, cli/cli-cmds.c: Ditto.
11336
11337 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11338
11339 * frame.c (generic_unwind_get_saved_register): Make non-static.
11340 * frame.h (generic_unwind_get_saved_register): Declare.
11341 * mips-tdep.c (read_next_frame_reg): Fetch register from
11342 current regcache when frame is NULL.
11343 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11344 that must be NULL.
11345 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11346 instead of frame_register_unwind().
11347
11348 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11349
11350 * remote-sim.c (gdbsim_insert_breakpoint)
11351 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11352 code.
11353
11354 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11355
11356 * remote.c (_initialize_remote): Add commands "set/show remote
11357 hardware-watchpoint-limit" and "set/show remote
11358 hardware-breakpoint-limit".
11359 (remote_hw_watchpoint_limit): Initialize to -1.
11360 (remote_hw_breakpoint_limit): Ditto.
11361 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11362
11363 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11364
11365 * coff-pe-read.c: New file - support reading of minimal symbols from a
11366 portable executable using the export table.
11367 * coff-pe-read.h: New file.
11368 * coffread.c: Include coff-pe-read.h.
11369 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11370 debugging symbols found.
11371 * Makefile.in (SFILES): Add coff-pe-read.o.
11372 (coff_pe_read_h): Define.
11373 (COMMON_OBS): Add coff-pe-read.o.
11374 (coffread.o): Add coff_pe_read_h dependency.
11375 (coff-pe-read.o): New target.
11376
11377 2003-02-19 David Carlton <carlton@math.stanford.edu>
11378
11379 * Makefile.in (SFILES): Add block.c.
11380 (block_h): New.
11381 (COMMON_OBS): Add block.o.
11382 (block.o): New.
11383 (x86-64-tdep.o): Add $(block_h).
11384 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11385 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11386 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11387 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11388 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11389 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11390 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11391 * value.h: Add opaque declaration for struct block.
11392 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11393 * ada-lang.h: Ditto.
11394 * x86-64-tdep.c: #include "block.h"
11395 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11396 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11397 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11398 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11399 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11400 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11401 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11402 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11403 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11404 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11405 * symtab.c (block_function): Ditto.
11406 (contained_in): Ditto.
11407 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11408 block.h. Add opaque declaration for struct block.
11409 * symtab.h: Move block_function and contained_in declarations to
11410 block.h. Add opaque declarations for struct block, struct
11411 blockvector.
11412 (struct block): Move to block.h.
11413 (struct blockvector): Ditto.
11414 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11415 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11416 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11417 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11418 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11419 Ditto.
11420 * block.c: New file.
11421 * block.h: New file.
11422
11423 2003-02-19 Theodore A. Roth <troth@openavr.org>
11424
11425 * avr-tdep.c (avr_extract_return_value): Remove function.
11426 (avr_store_return_value): Remove function.
11427 (avr_extract_struct_value_address): Remove function.
11428 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11429
11430 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11431
11432 * rs6000-tdep.c: Include "gdb_assert.h".
11433 (registers_e500): Add "acc" and "spefscr".
11434 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11435 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11436 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11437 really is "r0".
11438 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11439
11440 2003-02-18 Keith Seitz <keiths@redhat.com>
11441
11442 * Makefile.in: Add gdbtk-interps.c.
11443
11444 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11445
11446 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11447 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11448
11449 2003-02-18 Andrew Cagney <cagney@redhat.com>
11450
11451 * symtab.h (struct objfile): Add opaque declaration.
11452
11453 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11454
11455 From Jim Ingham <jingham@apple.com>:
11456 * dbxread.c (process_one_symbol): Use last_function_start rather
11457 than function_start_offset to find the real beginning of the
11458 current function. The latter is just the text section offset on
11459 some systems, the former is always the real function start.
11460
11461 2003-02-17 Andrew Cagney <cagney@redhat.com>
11462
11463 * configure.in: Revert ${target} != ${host}.
11464
11465 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11466
11467 * configure.in (Makefile): Use the test ${target} != ${host},
11468 instead of the absence of the "nm.h" file, to determine of the
11469 configuration non-native.
11470 * configure: Regenerate.
11471
11472 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11473
11474 From Brian Ford <ford@vss.fsi.com>
11475
11476 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11477 conditionalize tui_active test.
11478 (lookup_cmd_1): Ditto.
11479
11480 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11481
11482 * configure.in: Add check for _etext.
11483 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11484 available.
11485 * config.in, configure: regenerated.
11486
11487 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11488
11489 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11490
11491 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11492
11493 * main.c (tui_version): Delete variable.
11494 (captured_main): When --tui, set interpreter_p to "tui" instead of
11495 enabling tui_version.
11496 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11497 tui_version.
11498 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11499 * cli/cli-cmds.c (disassemble_command): Ditto.
11500 * defs.h (tui_version): Delete declaration.
11501 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11502 (tui-interp.o): Add rules.
11503 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11504
11505 2003-02-14 Christopher Faylor <cgf@redhat.com>
11506
11507 * win32-nat.c (register_loaded_dll): Correctly set address range for
11508 just-loaded dll.
11509
11510 2003-02-12 Jason Molenda (jmolenda@apple.com)
11511
11512 * symmisc.c (print_objfile_statistics): Include information about
11513 the number of psymtabs and symtabs in each object file.
11514
11515 2003-02-13 Keith R Seitz <keiths@redhat.com>
11516
11517 * main.h (struct captured_main_args): Add interpreter_p.
11518 * main.c (captured_main): Initialize interpreter_p from context.
11519 * gdb.c (main): Set interpreter_p argument.
11520 * Makefile.in (gdb.o): Add dependency for interps.h.
11521
11522 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11523
11524 * event-top.c (cli_command_loop): Delete declaration.
11525 (_initialize_event_loop): Delete function setting event_loop_hook.
11526 * event-top.h (cli_command_loop): Declare. Update copyright.
11527 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11528 * interps.c (current_interp_command_loop): When event_loop_p, call
11529 cli_command_loop.
11530
11531 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11532
11533 * interps.h (interp_command_loop_ftype): Change return type to
11534 void.
11535
11536 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11537
11538 * x86-64-tdep.c (x86_64_extract_return_value)
11539 (x86_64_store_return_value): Use regcache instead of regbuf.
11540 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11541 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11542
11543 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11544
11545 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11546 * aclocal.m4: Regenerate.
11547 * configure: Regenerate.
11548
11549 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11550 TCL_LD_SEARCH_FLAGS.
11551
11552 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11553
11554 * dwarf2cfi.c: Reindented.
11555
11556 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11557
11558 * interps.c (clear_interpreter_hooks): Convert function definition
11559 to ISO C.
11560
11561 2003-02-07 David Carlton <carlton@math.stanford.edu>
11562
11563 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11564
11565 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11566
11567 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11568 (struct type): ...to here.
11569 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11570 field.
11571 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11572 (replace_type): Set length on all type variants for a given type.
11573
11574 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11575
11576 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11577 <sys/stat.h>.
11578 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11579
11580 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11581
11582 * Makefile.in (symm-nat.o): Update dependencies.
11583 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11584 (lynx-nat.o, ia64-linux-nat.): Ditto.
11585 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11586 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11587 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11588
11589 * Makefile.in (inflow_h): Define.
11590 (procfs.o, inflow.o, procfs.o): Update dependencies.
11591 * inftarg.c (child_stop): Delete extern declaration of
11592 inferior_process_group. Include "inflow.h".
11593 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11594 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11595 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11596 (our_process_group, inferior_process_group): Extern declarations.
11597
11598 * procfs.c: Include "gdb_assert.h".
11599
11600 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11601 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11602 * jv-typeprint.c (java_type_print_base): Ditto.
11603 * typeprint.c (typedef_print): Eliminate STREQ.
11604 * cli/cli-script.c (define_command, define_command): Ditto.
11605 * main.c (captured_main): Ditto.
11606 * values.c (lookup_internalvar): Ditto.
11607 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11608 within `if' conditional.
11609 * linespec.c (decode_line_2): Ditto.
11610 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11611 (bfd_openw_with_cleanup): Ditto.
11612
11613 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11614
11615 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11616 legacy_extract_return_value and store_return_value to
11617 legacy_return_value.
11618
11619 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11620
11621 * win32-nat.c (get_relocated_section_addrs): New function. Find
11622 section load addresses for symbol handling in relocated DLLs.
11623 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11624
11625 2003-02-05 Fred Fish <fnf@intrinsity.com>
11626
11627 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11628 '=' and '!='.
11629 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11630 with '&' and '=='.
11631 (angel_RDI_info): Ditto.
11632 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11633 with '&' and '!='.
11634 (threads_continue_all_with_signals): Ditto.
11635
11636 2003-02-05 Jim Ingham <jingham@apple.com>
11637 Keith Seitz <keiths@redhat.com>
11638 Elena Zannoni <ezannoni@redhat.com>
11639 Andrew Cagney <ac131313@redhat.com>
11640
11641 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11642 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11643 (SUBDIR_MI_OBS): Add "mi-interp.o".
11644 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11645 (SFILES): Add "interps.c".
11646 (COMMON_OBS): Add "interps.o".
11647 (interps_h, mi_main_h): Define.
11648 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11649 (mi-main.o, main.o, event-top.o): Update dependencies.
11650 * cli/cli-interp.c: New file.
11651 * interps.h, interps.c: New files.
11652 * top.c: (gdb_init): Don't install the default interpreter, handed
11653 by captured_main.
11654 * main.c: Include "interps.h".
11655 (interpreter_p): Note that it should malloc'ed.
11656 (captured_command_loop): Call current_interp_command_loop.
11657 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11658 xfree and xstrdup when updating interpreter_p. Install the
11659 default interpreter. Add hack to stop mi1's copyright notice
11660 being encoded.
11661 * event-top.h (gdb_setup_readline): Declare.
11662 (gdb_disable_readline): Declare.
11663 * event-top.c: Include "interps.h".
11664 (display_gdb_prompt): Call current_interp_display_prompt_p.
11665 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11666 gdb_stdlog, and gdb_stdtarg.
11667 (_initialize_event_loop): Don't call gdb_setup_readline.
11668 * cli-out.c (cli_out_set_stream): New function.
11669 * cli-out.h (cli_out_set_stream): Declare.
11670
11671 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11672
11673 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11674 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11675 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11676 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11677 config/i386/i386v42mp.mt: Removed.
11678
11679 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11680
11681 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11682 GDB_OSABI_SOLARIS.
11683
11684 2003-02-05 Michael Chastain <mec@shout.net>
11685
11686 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11687 2.12.1 and earlier versions.
11688
11689 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11690
11691 Remove orphaned hosts, targets and files.
11692 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11693 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11694 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11695 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11696 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11697 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11698 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11699 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11700 * config/sparc/tm-sp64sim.h: Delete.
11701 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11702 hosts.
11703 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11704 mips*-dec-mach3* targets.
11705
11706 2003-02-04 Michael Chastain <mec@shout.net>
11707
11708 * NEWS: Fix typo: sepcifying -> specifying.
11709
11710 2003-02-04 Michael Chastain <mec@shout.net>
11711
11712 * dwarfread.c: Add documentation on the state of dwarf-1,
11713 looking towards obsoletion.
11714
11715 2003-02-03 Michael Chastain <mec@shout.net>
11716
11717 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11718 gdb/testsuite/gdb.c++/pr-1023.exp.
11719
11720 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11721
11722 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11723 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11724
11725 * utils.c (init_page_info): Delete reference to MPW in comments.
11726 * main.c (captured_main): Delete #ifdef MPW.
11727
11728 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11729
11730 * NEWS: Note that the m32r-*-elf* is obsolete.
11731 * monitor.c (monitor_expect): Obsolete reference to m32r.
11732 * configure.tgt: Mark m32r-*-elf* as obsolete.
11733 * MAINTAINERS: Mark m32k as obsolete.
11734 * m32r-rom.c: Obsolete file.
11735 * config/m32r/m32r.mt: Obsolete file.
11736 * config/m32r/tm-m32r.h: Obsolete file.
11737 * m32r-stub.c: Obsolete file.
11738 * m32r-tdep.c: Obsolete file.
11739
11740 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11741
11742 * NEWS: Mention that the z8k-zilog-none is obsolete.
11743 * MAINTAINERS: Mark z8k as obsolete.
11744 * configure.tgt: Obsolete the z8k-*-coff* target.
11745 * config/z8k/z8k.mt: Obsolete file.
11746 * config/z8k/tm-z8k.h: Obsolete file.
11747 * z8k-tdep.c: Obsolete file.
11748
11749 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11750
11751 * NEWS: Mention that the mn10200-elf is obsolete.
11752 * configure.tgt: Obsolete mn10200-*-* target.
11753 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11754 mention that the mn10200 is obsolete.
11755 * breakpoint.h: Ditto.
11756 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11757 * config/mn10200/mn10200.mt: Obsolete file.
11758 * config/mn10200/tm-mn10200.h: Obsolete file.
11759 * mn10200-tdep.c: Obsolete file.
11760
11761 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11762
11763 * MAINTAINERS: Mark h8500 as obsolete.
11764 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11765 * findvar.c (value_from_register): Ditto.
11766 * h8500-tdep.c: Mark file as obsolete.
11767 * config/h8500/h8500.mt: Ditto.
11768 * config/h8500/tm-h8500.h: Ditto.
11769 * NEWS: Mention that h8500 is obsolete.
11770
11771 2003-02-04 David Carlton <carlton@math.stanford.edu>
11772
11773 * objfiles.c (allocate_objfile): Always set name. Add comment at
11774 start of function.
11775 * jv-lang.c (get_dynamics_objfile): Add comment.
11776
11777 2003-02-04 David Carlton <carlton@math.stanford.edu>
11778
11779 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11780 * printcmd.c (build_address_symbolic): Replace uses of
11781 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11782 SYMBOL_NAME, and asm_demangle.
11783 Update copyright.
11784
11785 2003-02-04 David Carlton <carlton@math.stanford.edu>
11786
11787 * linespec.c (decode_compound): Extract code into
11788 lookup_prefix_sym.
11789 (lookup_prefix_sym): New function.
11790
11791 2003-02-04 David Carlton <carlton@math.stanford.edu>
11792
11793 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11794 FLOAT_COERCION_BADNESS.
11795 * gdbtypes.c (rank_one_type): Replace all uses of
11796 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11797
11798 2003-02-04 Jim Blandy <jimb@redhat.com>
11799
11800 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11801 section, let dwarf_macinfo_section point to it, not
11802 dwarf_loc_section.
11803
11804 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11805
11806 Pointed out by Anton Blanchard <anton@samba.org>.
11807 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11808 (ppc_linux_at_sigtramp_return_path): Use it.
11809
11810 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11811
11812 * defs.h (streq): Add prototype.
11813 * utils.c (streq): New function.
11814
11815 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11816 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11817 * mdebugread.c (new_symbol): Likewise.
11818 * stabsread.c (define_symbol): Likewise.
11819 * coffread.c (process_coff_symbol): Likewise.
11820 * dwarfread.c (new_symbol): Likewise.
11821
11822 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11823 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11824 here.
11825 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11826 SYMBOL_INIT_DEMANGLED_NAME.
11827 * objfiles.c: Include "hashtab.h".
11828 (allocate_objfile): Call htab_set_functions_ex for the
11829 demangled_names_hash.
11830 (free_objfile): Call htab_delete for the demangled_names_hash.
11831 * objfiles.h (struct htab): Add declaration.
11832 (struct objfile): Add demangled_names_hash.
11833 * symfile.c: Include "hashtab.h".
11834 (reread_symbols): Call htab_delete for the demangled_names_hash.
11835 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11836 SYMBOL_NAME in the bcache.
11837 * symtab.c: Include "hashtab.h". Update comments.
11838 (create_demangled_names_hash, symbol_set_names): New functions.
11839 (symbol_find_demangled_name): New function, broken out from
11840 symbol_init_demangled_names.
11841 (symbol_init_demangled_names): Use it.
11842 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11843 (SYMBOL_SET_NAMES): New macro.
11844 (symbol_set_names): Add prototype.
11845
11846 2003-02-03 Jim Blandy <jimb@redhat.com>
11847
11848 Use a single, consistent representation for an empty minimal
11849 symbol table in an objfile.
11850 * objfiles.c (terminate_minimal_symbol_table): New function.
11851 (allocate_objfile): Call it.
11852 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11853 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11854 non-NULL.
11855 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11856 objfile has minimal symbols, compare minimal_symbol_count to zero,
11857 instead of comparing msymbols with NULL.
11858 * objfiles.c (have_minimal_symbols): Same.
11859 * solib-sunos.c (solib_add_common_symbols): Call
11860 terminate_minimal_symbol_table.
11861 * symfile.c (reread_symbols): Same.
11862
11863 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11864
11865 * s390-tdep.c (s390_address_class_type_flags)
11866 (s390_address_class_type_flags_to_name)
11867 (s390_address_class_name_to_type_flags): New functions.
11868 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11869 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11870
11871 2003-02-03 Michael Snyder <msnyder@redhat.com>
11872
11873 * arm-tdep.c: Fix spell-o in comment.
11874
11875 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11876
11877 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11878 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11879 error messages to contain BFD filename.
11880
11881 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11882
11883 Fix PR gdb/742 gdb/743 gdb/877
11884 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11885 (do_mixed_source_and_assembly): Use
11886 make_cleanup_ui_out_tuple_begin_end and
11887 make_cleanup_ui_out_tuple_begin_end.
11888 (do_mixed_source_and_assembly): Ditto.
11889 * thread.c (do_captured_list_thread_ids): Ditto.
11890 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11891 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11892 ui_out_tuple_end): Delete prototypes.
11893 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11894 ui_out_list_end, ui_out_tuple_end): Delete.
11895
11896 From Kevin Buettner <kevinb@redhat.com>:
11897 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11898 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11899 (do_cleanup_table_end): New functions.
11900 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11901 Use cleanups to invoke_ui_out_tuple_end().
11902 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11903 * cli/cli-setshow.c (cmd_show_list): Use
11904 make_cleanup_ui_out_tuple_begin_end.
11905
11906 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11907
11908 * frame.c (frame_unwind_register): New function.
11909 (frame_unwind_unsigned_register): Use.
11910 (frame_unwind_signed_register): Use.
11911 (frame_read_register): New function.
11912 * frame.h (frame_unwind_register): Declare.
11913 (frame_read_register): Declare.
11914
11915 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11916 and frame_unwind_register instead of read_memory, write_register
11917 and deprecated_write_register_bytes.
11918
11919 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11920
11921 * frame.h: Note that namelen can be negative.
11922 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11923 NAME's length.
11924
11925 * NEWS: Mention that the d10v's `regs' command is deprecated.
11926 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11927 (d10v_print_registers_info): New function.
11928 (show_regs): Call d10v_print_registers_info.
11929 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11930
11931 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11932
11933 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11934 lost in the previous patch.
11935
11936 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11937
11938 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11939 * stack.c (print_frame_info_base): Output complete FRAME tuple
11940 for synthesized frames.
11941
11942 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11943
11944 * mips-nat.c (zerobuf): Delete.
11945 (fetch_inferior_registers): Alloc local zerobuf.
11946 (fetch_core_registers): Alloc local zerobuf.
11947 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11948 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11949 * thread-db.c (thread_db_store_registers): Ditto.
11950 * sh-tdep.c (sh_do_register): Ditto.
11951 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11952 * remote-sim.c (gdbsim_store_register): Ditto.
11953 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11954 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11955 * monitor.c (monitor_supply_register): Ditto.
11956 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11957 * mips-nat.c (fetch_inferior_registers): Ditto.
11958 * m68klinux-nat.c (fetch_register): Ditto.
11959 * lynx-nat.c (fetch_inferior_registers): Ditto.
11960 (fetch_inferior_registers): Ditto.
11961 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11962 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11963 (hpux_thread_store_registers): Ditto.
11964 * hppah-nat.c (fetch_register): Ditto.
11965 * hppab-nat.c (fetch_register): Ditto.
11966 * hppa-tdep.c (pa_register_look_aside): Ditto.
11967 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11968 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11969
11970 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11971
11972 * gdbarch.sh: Explictly specify all method levels. When a
11973 variable with an empty level, provide a non-multi-arch default.
11974 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11975 * gdbarch.h: Re-generate.
11976 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11977 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11978
11979 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11980
11981 * defs.h (host_pointer_to_address): Delete declaration.
11982 (address_to_host_pointer): Delete declaration.
11983 * utils.c (host_pointer_to_address): Delete function.
11984 (address_to_host_pointer): Delete function.
11985 * procfs.c (procfs_address_to_host_pointer): New function.
11986 * procfs.c (proc_set_watchpoint): Use.
11987 (procfs_can_use_hw_breakpoint): Update comments.
11988 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11989 (som_solib_add): Use.
11990 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11991 * hppa-tdep.c (unwind_command): Use.
11992
11993 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11994
11995 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11996 strlen d_name.
11997
11998 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11999 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
12000 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
12001 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
12002 (define_symbol): Update.
12003 * symfile.c (generic_load): Remove references to nindy.
12004 * symtab.c: Remove references to nindy.
12005
12006 2003-02-01 Andrew Cagney <ac131313@redhat.com>
12007
12008 * infcmd.c (print_float_info): Delete code conditional on
12009 FLOAT_INFO.
12010 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
12011 * config/m68k/nm-apollo68b.h: Ditto.
12012 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
12013 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12014 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12015
12016 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12017
12018 * config/i386/tm-i386os9k.h: Removed.
12019
12020 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12021 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12022 they're identical to i[3456]86-*-sysv* now.
12023 * config/i386/i386v32.mh: Removed.
12024 * config/i386/xm-i386v32.h: Removed.
12025 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12026
12027 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12028
12029 * config/i386/i386dgux.mh: Removed.
12030 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12031
12032 * configure.in: Fix typo.
12033 * configure: Regenerated.
12034
12035 2003-01-31 David Carlton <carlton@math.stanford.edu>
12036
12037 * dwarf2read.c (dwarf2_locate_sections): Set
12038 dwarf_ranges_section.
12039
12040 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12041
12042 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12043 * utils.c: Update comments documenting legitimate uses of PTR.
12044
12045 * utils.c: Re-indent.
12046
12047 * config/djgpp/fnchange.lst: Delete nindy files.
12048 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12049 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12050 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12051 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12052 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12053 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12054 * Makefile.in (init.c): Remove nindy references.
12055 (saber_gdb): Delete rule.
12056 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12057 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12058 and a68v-nat.c.
12059 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12060 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12061 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12062 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12063 nindy-share/stop.h.
12064 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12065 * saber.suppress: Delete file.
12066
12067 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12068
12069 * dbxread.c (stabs_data): New static variable.
12070 (fill_symbuf): Support an in-memory buffer for stabs data.
12071 (stabs_seek): New function.
12072 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12073 (read_ofile_symtab): Use stabs_seek.
12074 (elfstab_build_psymtabs): Take an asection* instead of
12075 an offset and size. Relocate the stabs data if necessary.
12076 Save the section* for dbx_psymtab_to_symtab.
12077 * dwarf2read.c: Add section variables for each debug section.
12078 (dwarf2_locate_sections): Fill them in.
12079 (dwarf2_read_section): Take an asection* argument.
12080 Relocate the section contents if necessary.
12081 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12082 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12083 it to dwarf2_read_section.
12084 (dwarf2_build_frame_info): Update callers.
12085 * elfread.c (elf_symfile_read): Update call to
12086 elfstab_build_psymtabs.
12087 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12088 (DBX_STAB_SECTION): New macro.
12089 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12090 * symfile.c (symfile_dummy_outputs): New function.
12091 (symfile_relocate_debug_section): New function.
12092 * symfile.h (symfile_relocate_debug_section): Add prototype.
12093
12094 2003-01-31 Richard Henderson <rth@redhat.com>
12095
12096 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12097 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12098 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12099 * alpha-tdep.c (alpha_register_name): Add "unique".
12100 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12101 (ALPHA_UNIQUE_REGNUM): New.
12102 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12103
12104 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12105
12106 * README: Remove reference to Ericsson 1800 monitor.
12107 * Makefile.in (remote-es.o): Delete rule.
12108 (ALLDEPFILES): Delete remote-es.c.
12109 * remote-es.c: Delete file.
12110 * config/m68k/es1800.mt: Delete file.
12111 * config/djgpp/fnchange.lst: Update.
12112 * configure.tgt: Delete m68*-ericsson-* target.
12113
12114 2003-01-31 Adam Fedor <fedor@gnu.org>
12115
12116 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12117 Remove duplicate/shadowing variable of same name.
12118
12119 2003-01-30 Jim Blandy <jimb@redhat.com>
12120
12121 * symfile.c (find_separate_debug_file): Assert that the objfile's
12122 directory name we compute ends with a slash, and then assume that
12123 that's so everywhere we use it.
12124
12125 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12126
12127 * valops.c (value_assign): Flush frame cache after stores to memory
12128 also.
12129
12130 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12131
12132 * Makefile.in (mon960-rom.o): Delete rule.
12133 * mon960-rom.c: Delete file.
12134
12135 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12136
12137 * d10v-tdep.c: Include "frame-unwind.h".
12138 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12139 list.
12140 (next_addr, uses_frame): Delete.
12141 (struct d10v_unwind_cache): Define.
12142 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12143 Use info instead of next_addr and uses_frame globals.
12144 (d10v_frame_init_saved_regs): Delete function.
12145 (d10v_init_extra_frame_info): Delete function.
12146 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12147 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12148 init_frame_pc or frame_saved_pc.
12149 (d10v_pop_frame): Delete function.
12150 (do_d10v_pop_frame): Delete function.
12151 (d10v_frame_chain): Delete function.
12152 (d10v_frame_chain_valid): Delete function.
12153 (d10v_frame_pc_unwind): New function.
12154 (d10v_frame_id_unwind): New function.
12155 (saved_regs_unwinder): New function.
12156 (d10v_frame_register_unwind): New function.
12157 (d10v_frame_pop): New function.
12158 (d10v_frame_unwind): New variable.
12159 (d10v_frame_p): New function.
12160 (d10v_frame_saved_pc): Delete function.
12161 * Makefile.in (d10v-tdep.o): Update dependencies.
12162
12163 2003-01-30 J. Brobecker <brobecker@gnat.com>
12164
12165 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12166 causing some regressions due to a change in the default value
12167 for this macro.
12168
12169 2003-01-29 Richard Henderson <rth@redhat.com>
12170 Elena Zannoni <ezannoni@redhat.com>
12171 Daniel Jacobowitz <drow@mvista.com>
12172
12173 Fix PR gdb/961.
12174 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12175 variables.
12176 (RANGES_SECTION): New.
12177 (dwarf_ranges_buffer): New variable.
12178 (struct comp_unit_head): Add member "die".
12179 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12180 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12181 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12182 (dwarf2_locate_sections): Likewise.
12183 (dwarf2_build_psymtabs): Read .debug_ranges.
12184 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12185 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12186 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12187 Look for DW_AT_ranges and return the bounding box.
12188
12189 2003-01-29 Brian Ford <ford@vss.fsi.com>
12190
12191 * win32-nat.c (cygwin_pid): Removed as unused.
12192 (child_attach): Try fall back to Cygwin pid.
12193
12194 2003-01-29 Jim Blandy <jimb@redhat.com>
12195
12196 * objfiles.h (struct objfile): Doc fix.
12197
12198 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12199
12200 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12201 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12202 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12203 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12204 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12205 (FRAME_SAVED_PC): Change to a function with predicate.
12206 * gdbarch.h, gdbarch.c: Re-generate.
12207
12208 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12209
12210 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12211
12212 * complaints.c (complain): Delete function.
12213 * complaints.h (struct deprecated_complaint): Delete definition.
12214 (complain): Delete declaration.
12215
12216 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12217
12218 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12219 dummy frames.
12220
12221 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12222
12223 * sentinel-frame.h, sentinel-frame.c: New files.
12224 * Makefile.in (frame.o): Update dependencies.
12225 (SFILES): Add sentinel-frame.c.
12226 (sentinel_frame_h): Define.
12227 (COMMON_OBS): Add sentinel-frame.o.
12228 (sentinel-frame.o): Specify dependencies.
12229 * frame.c: Include "sentinel-frame.h".
12230 (frame_register_unwind): Rewrite assuming that there is always a a
12231 ->next frame.
12232 (frame_register, generic_unwind_get_saved_register): Ditto.
12233 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12234 (create_sentinel_frame, unwind_to_current_frame): New functions.
12235 (get_current_frame): Rewrite using create_sentinel_frame and
12236 unwind_to_current_frame. When possible, always create a frame.
12237 (create_new_frame): Set next to the sentinel frame.
12238 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12239 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12240 ID cache when necessary.
12241 (frame_saved_regs_id_unwind): Use frame_relative_level.
12242 (deprecated_generic_get_saved_register): Use frame_relative_level,
12243 get_frame_saved_regs, get_frame_pc, get_frame_base and
12244 get_next_frame.
12245 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12246 frame_register.
12247
12248 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12251
12252 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12253
12254 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12255 (maintenance_set_profile_cmd): Use error () instead of warning ().
12256
12257 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12258
12259 * configure.in: Check that -pg works if using --enable-profiling.
12260 Check for monstartup and _mcleanup regardless of --enable-profiling.
12261 * maint.c: Check for monstartup and _mcleanup before using them.
12262 * config.in: Regenerated.
12263 * configure: Regenerated.
12264
12265 2003-01-24 Nick Clifton <nickc@redhat.com>
12266
12267 * Add sh2e support:
12268
12269 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12270
12271 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12272 (sh2e_show_regs): New.
12273 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12274 * config/sh/tm-sh.h: Added sh2e to comments.
12275
12276 2003-01-23 Jim Blandy <jimb@redhat.com>
12277
12278 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12279 symbols found)" message here; we haven't checked for a separate
12280 debug info file yet, so we don't know yet.
12281 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12282 we've looked everywhere. Also, there's no need to print a special
12283 message when we're loading the separate debug info file: the one
12284 symbol_file_add prints is fine.
12285
12286 2003-01-23 Alexander Larsson <alexl@redhat.com>
12287 Jim Blandy <jimb@redhat.com>
12288
12289 Add support for executables whose debug info has been separated
12290 out into a separate file, leaving only a link behind.
12291 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12292 and separate_debug_objfile_backlink.
12293 (put_objfile_before): New declaration.
12294 * symfile.c: #include "filenames.h".
12295 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12296 debug info in a separate file, read that, too. Save the addrs
12297 argument, so we can use it again to read the separated debug info;
12298 syms_from_objfile modifies the table we pass it.
12299 (reread_symbols): After re-reading an objfile, call
12300 reread_separate_symbols to refresh its separate debug info
12301 objfile, if it has one.
12302 (reread_separate_symbols, find_separate_debug_file,
12303 get_debug_link_info, separate_debug_file_exists): New functions.
12304 (debug_file_directory): New global var.
12305 (_initialize_symfile): Initialize debug_file_directory, and
12306 provide the new `set debug-file-directory' command to let the user
12307 change it.
12308 * objfiles.c (free_objfile): If this objfile has its debug info in
12309 a separate objfile, free that one too. If this is itself a
12310 separate debug info objfile, clear our parent's backlink.
12311 (put_objfile_before): New function.
12312 * utils.c (gnu_debuglink_crc32): New function.
12313 * defs.h (gnu_debuglink_crc32): New declaration.
12314 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12315 * configure.in: Handle --with-separate-debug-dir config option.
12316 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12317 * acconfig.h (DEBUGDIR): New macro.
12318 * configure, aclocal.m4, config.in: Regenerated.
12319
12320 2003-01-22 Jim Blandy <jimb@redhat.com>
12321
12322 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12323 like the old symbol_file_add, but taking new arguments: you can
12324 now pass in either a `struct section_addr_info' list to say where
12325 each section is loaded, or a `struct section_offsets' table. Pass
12326 these new arguments through to syms_from_objfile as appropriate.
12327 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12328 with the appropriate quiescent values for the new arguments.
12329
12330 * symfile.c: #include "gdb_assert.h".
12331 (syms_from_objfile): Add the ability to pass in a section offset
12332 table directly, as an alternative to the section_addr_info table.
12333 Document arguments better.
12334 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12335 * symfile.h (syms_from_objfile): Update declaration.
12336 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12337 syms_from_objfile.
12338 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12339
12340 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12341
12342 Original patch by Tom Tromey <tromey@cygnus.com> and
12343 Jason Molenda <jmolenda@apple.com>.
12344 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12345 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12346 * NEWS: Mention profiling.
12347 * configure.in (--enable-gdbtk): Fix typo.
12348 (--enable-profiling): New. Set PROFILE_CFLAGS.
12349 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12350 Fill in function.
12351 (profiling_state): New variable.
12352 (mcleanup_wrapper): New function.
12353 (_initialize_maint): Remove NOTYET, fix call to
12354 add_setshow_boolean_cmd for "maint set profile".
12355 * configure: Regenerated.
12356
12357 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12358
12359 * Makefile.in (install-gdbtk): Install PNG images too.
12360
12361 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12362
12363 * exec.c (text_start): Delete global variable.
12364 (exec_file_attach): Make text_start local to the function.
12365 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12366 * valops.c (hand_function_call): Delete code that handles
12367 BEFORE_TEXT_END and AFTER_TEXT_END.
12368 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12369 of CALL_DUMMY_LOCATION.
12370 * gdbarch.c: Regenerate.
12371 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12372 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12373 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12374 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12375 (text_end): Delete extern declaration.
12376
12377 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12378
12379 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12380 * blockframe.c (backtrace_below_main): Move to "frame.c".
12381 (frame_chain_valid): Delete check for backtrace_below_main.
12382 (_initialize_blockframe): Delete initialization, move ``set
12383 backtrace-below-main'' command to "frame.c".
12384 (do_flush_frames_sfunc): Delete function.
12385 * frame.c: Include "command.h" and "gdbcmd.h".
12386 (frame_type_from_pc): New function.
12387 (create_new_frame): Use frame_type_from_pc.
12388 (legacy_get_prev_frame): New function.
12389 (get_prev_frame): Rewrite. When an old style frame, call
12390 legacy_get_prev_frame. Otherwize, unwind the PC first.
12391 (_initialize_frame): Add ``set backtrace-below-main'' command.
12392 * Makefile.in (frame.o): Update dependencies.
12393
12394 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12395
12396 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12397 DEPRECATED_REGISTERS_INFO.
12398
12399 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12400
12401 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12402 Maintainers'. Update `Various Maintainers'.
12403
12404 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12405
12406 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12407 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12408 Suppress actual parameters when `-'.
12409 * gdbarch.h, gdbarch.c: Regenerate.
12410
12411 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12412
12413 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12414 code handling dummy frames.
12415
12416 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12417
12418 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12419 (struct frame_unwind): Add field pop.
12420 * frame.h (frame_pop): Declare.
12421 * frame.c (frame_saved_regs_pop): New function.
12422 (trad_frame_unwinder): Add frame_saved_regs_pop.
12423 (frame_pop): New function.
12424 * dummy-frame.c (dummy_frame_pop): New function.
12425 (discard_innermost_dummy): New function.
12426 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12427 (dummy_frame_unwind): Add dummy_frame_pop.
12428 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12429 * valops.c (hand_function_call): Ditto.
12430 * stack.c (return_command): Ditto.
12431
12432 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12433
12434 * cris-tdep.c: Fix function declaration indentation.
12435 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12436 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12437 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12438 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12439 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12440 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12441
12442 2003-01-18 Michael Chastain <mec@shout.net>
12443
12444 * README (Unpacking and Installation -- quick overview):
12445 Warn against ".../gdb-5.3/gdb/configure".
12446
12447 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12448
12449 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12450 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12451 (struct frame_unwind): Declare opaque.
12452 (dummy_frame_p): Declare function.
12453 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12454 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12455 * dummy-frame.c: Include "frame-unwind.h".
12456 (dummy_frame_p): New function.
12457 (dummy_frame_unwind): New variable.
12458 * frame.c: Include "frame-unwind.h".
12459 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12460 to use the new unwind field.
12461 (set_unwind_by_pc): Delete function.
12462 (create_new_frame, get_prev_frame): Set unwind field using
12463 frame_unwind_find_by_pc.
12464 (trad_frame_unwind, trad_frame_unwinder): New variables.
12465 * frame.h (trad_frame_unwind): Declare variable.
12466 (frame_id_unwind_ftype): Delete declaration.
12467 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12468 (struct frame_unwind): Declare opaque.
12469 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12470 register_unwind with a single unwind pointer.
12471 * frame-unwind.h, frame-unwind.c: New files.
12472 * Makefile.in (SFILES): Add frame-unwind.c.
12473 (frame_unwind_h): Define.
12474 (COMMON_OBS): Add frame-unwind.o.
12475 (frame-unwind.o): Specify dependencies.
12476 (frame.o, dummy-frame.o): Update dependencies.
12477
12478 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12479
12480 * ada-valprint.c: Eliminate PTR.
12481 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12482 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12483 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12484 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12485 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12486 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12487 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12488
12489 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12490
12491 * main.c (captured_main): Don't use PTR.
12492 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12493 * gdbtypes.c (lookup_primitive_typename): Ditto.
12494 (lookup_struct_elt_type): Ditto.
12495 * f-valprint.c (info_common_command): Ditto.
12496 (list_all_visible_commons): Ditto.
12497 * jv-typeprint.c (java_type_print_base): Ditto.
12498
12499 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12500 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12501 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12502 i386-interix-nat.c and i386-interix-tdep.c. Rename
12503 m68klinux-nat.c and m68klinux-tdep.c. Rename
12504 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12505 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12506 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12507 * main.c (captured_main): Use xfree, not free.
12508
12509 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12510
12511 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12512 ID back using a parameter.
12513 * frame.c (frame_id_unwind): Update call.
12514 (frame_saved_regs_id_unwind): Update.
12515 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12516 * dummy-frame.h (struct frame_id): Add opaque declaration.
12517 (dummy_frame_id_unwind): Update declaration.
12518
12519 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12520
12521 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12522
12523 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12524
12525 * MAINTAINERS (Stephen P. Smith): Updated email address.
12526
12527 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12528
12529 Fix PR gdb/898
12530 * breakpoint.c (until_break_command): Add new argument. Use it to
12531 decide whether to stop only at the current frame or not.
12532 * breakpoint.h (until_break_command): Update prototype.
12533 * infcmd.c (until_command): Add new argument to until_break_command
12534 call.
12535 (advance_command): New function.
12536 (_initialize_infcmd): Update help string for 'until' command.
12537 Add new 'advance' command.
12538
12539 2003-01-14 David Carlton <carlton@math.stanford.edu>
12540
12541 * linespec.c (decode_line_1): Normalize comments.
12542 (set_flags): Ditto.
12543 (locate_first_half): Ditto.
12544 (decode_compound): Ditto.
12545 (symtab_from_filename): Ditto.
12546 (decode_all_digits): Ditto.
12547 (decode_dollar): Ditto.
12548 (find_methods): Ditto.
12549 (find_toplevel_char): Ditto.
12550
12551 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12552
12553 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12554 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12555 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12556 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12557 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12558 * language.c, language.h, m32r-tdep.c: Update copyright.
12559 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12560 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12561 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12562 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12563 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12564 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12565
12566 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12567
12568 * stabsread.h (process_later, resolve_cfront_continuation):
12569 Obsolete.
12570 Update copyright years.
12571 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12572 Update copyright year.
12573 * dbxread.c(struct cont_elem): Obsolete.
12574 (process_later, process_now): Obsolete functions.
12575 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12576 Update copyright year.
12577 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12578 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12579 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12580 (parse_partial_symbols): Obsolete cfront support.
12581 * stabsread.c
12582 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12583 macros.
12584 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12585 read_cfront_baseclasses, read_cfront_member_functions,
12586 resolve_cfront_continuation,read_cfront_static_fields,
12587 copy_cfront_struct_fields): Obsolete functions.
12588 (define_symbol, read_one_struct_field): Obsolete cfront support.
12589 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12590 Update Copyright year.
12591
12592 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12593
12594 * stack.c (print_frame_info, print_stack_frame_base_stub,
12595 print_stack_frame_base, show_and_print_stack_frame_stub,
12596 show_and_print_stack_frame, print_only_stack_frame_stub,
12597 print_only_stack_frame): Delete functions.
12598 (print_stack_frame_stub): Call print_frame_info instead of
12599 print_frame_info_base.
12600 (print_frame_info_base): Rename to print_frame_info.
12601 (backtrace_command_1): Call print_frame_info, instead of
12602 print_frame_info_base.
12603 (current_frame_command): Call print_stack_frame, instead of
12604 print_only_stack_frame.
12605 (frame_command): Call print_stack_frame, instead of
12606 show_and_print_stack_frame.
12607 (up_command): Ditto.
12608 (down_command): Ditto.
12609 * frame.h (print_only_stack_frame): Delete prototype.
12610 * infrun.c (normal_stop): Call print_stack_frame, instead of
12611 show_and_print_stack_frame.
12612 * thread.c (info_threads_command): Call print_stack_frame, instead
12613 of print_only_stack_frame.
12614
12615 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12616
12617 * README (Graphical interface to GDB): Update URL. Point at
12618 gdb/links/.
12619
12620 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12621 version match.
12622
12623 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12624
12625 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12626 lines.
12627
12628 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12629
12630 * thread-db.c (attach_thread): Prototype.
12631 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12632 thread information (ti), and valid flags (th_valid, ti_valid).
12633 (attach_thread): Move target_pid_to_str call to after the thread
12634 is added to GDB's list. Initialize the cache.
12635 (thread_get_info_callback, thread_db_map_id2thr)
12636 (thread_db_get_info): New functions.
12637 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12638 (thread_db_store_registers, thread_db_thread_alive)
12639 (thread_db_get_thread_local_address): Use them.
12640 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12641 of calling error() for threads in unknown state.
12642
12643 (clear_lwpid_callback): New function.
12644 (thread_db_resume): Use it to clear the cache.
12645
12646 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12647
12648 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12649 (resume_callback): Remove dead code.
12650
12651 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12652
12653 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12654 predicate.
12655 * gdbarch.h, gdbarch.c: Regenerate.
12656 * stack.c (frame_info): Only initialize the saved registers when
12657 FRAME_INIT_SAVED_REGS_P.
12658 * frame.c (frame_saved_regs_register_unwind): Assert
12659 FRAME_INIT_SAVED_REGS_P.
12660 (deprecated_generic_get_saved_register): Ditto.
12661
12662 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12663
12664 * source.c (openp): Squelch warning about "filename".
12665
12666 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12667
12668 * source.c (openp): If the file does not exist don't necessarily
12669 search the path.
12670
12671 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12672
12673 Fix PR gdb/872.
12674 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12675 (integer_types_same_name_p): New function.
12676 (rank_one_type): Use it.
12677 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12678
12679 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12680
12681 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12682 variables.
12683 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12684 * configure.in: Add --with-sysroot.
12685 * configure: Regenerated.
12686 * main.c (gdb_sysroot): New variable.
12687 (captured_main): Initialize gdb_sysroot.
12688 * defs.h (gdb_sysroot): New extern declaration.
12689 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12690
12691 2003-01-12 Michael Chastain <mec@shout.net>
12692
12693 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12694
12695 2003-01-12 Michael Chastain <mec@shout.net>
12696
12697 * top.c (print_gdb_version): Bump copyright year to 2003.
12698
12699 2003-01-12 David Carlton <carlton@bactrian.org>
12700
12701 * linespec.c (symtab_from_filename): Rename variable 's' to
12702 'file_symtab'.
12703
12704 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12705
12706 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12707 dummy frame.
12708 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12709
12710 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12711
12712 * d10v-tdep.c: Include "gdb_assert.h".
12713 (d10v_store_return_value): Rewrite to match current interface.
12714 (d10v_extract_struct_value_address): Ditto.
12715 (d10v_extract_return_value): Ditto.
12716 (d10v_gdbarch_init): Set store_restore_value,
12717 extract_struct_value_address and extract_return_value.
12718
12719 2003-01-12 J. Brobecker <brobecker@gnat.com>
12720
12721 * hpread.c (set_namestring): New procedure replacing the
12722 SET_NAMESTRING macro.
12723 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12724 by calls to set_namestring.
12725
12726 2003-01-11 J. Brobecker <brobecker@gnat.com>
12727
12728 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12729 a compilation warning.
12730 (hpread_process_one_debug_symbol): Likewise.
12731
12732 2003-01-10 David Carlton <carlton@math.stanford.edu>
12733
12734 * linespec.c (decode_line_1): Rename variable 's' to
12735 'file_symtab'.
12736 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12737 (decode_dollar): Ditto.
12738 (decode_variable): Ditto.
12739 (symbol_found): Ditto.
12740
12741 2003-01-09 Michael Chastain <mec@shout.net>
12742
12743 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12744
12745 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12746
12747 * win32-nat.c (set_process_privilege): New function.
12748 (child_attach): Call set_process_privilege() to enable the
12749 SE_DEBUG_NAME user privilege if available in process token.
12750
12751 2003-01-10 J. Brobecker <brobecker@gnat.com>
12752
12753 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12754 compilation error in the previous revision.
12755
12756 2003-01-09 David Carlton <carlton@math.stanford.edu>
12757
12758 * linespec.c: Update copyright.
12759
12760 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12761
12762 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12763 than inferior_ptid.
12764 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12765
12766 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12767
12768 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12769 Update comments.
12770 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12771 (frame_saved_regs_zalloc): Update.
12772 (frame_saved_regs_register_unwind): Update.
12773 (create_new_frame): Update.
12774 (get_prev_frame): Update.
12775 (frame_extra_info_zalloc): Update.
12776 (deprecated_get_frame_saved_regs): Update.
12777 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12778 * cris-tdep.c: Update comment.
12779
12780 * somsolib.h: Fix function indentation.
12781 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12782 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12783 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12784 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12785 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12786
12787 * infrun.c (follow_fork): Use ISO C definition.
12788 * expprint.c (print_subexp): Use xfree instead of free.
12789 * charset.c: Include "gdb_string.h" instead of <string.h>.
12790 (register_iconv_charsets): Use ISO C definition.
12791 (host_charset, target_charset): Ditto.
12792 * Makefile.in (charset.o): Update dependencies.
12793 (mi-cmd-env.o): Update dependencies.
12794
12795 2003-01-08 Andrew Cagney <cagney@redhat.com>
12796
12797 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12798 get_frame_base.
12799
12800 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12801
12802 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12803 build directories. Save edited gdb output in Mbuild.log. If a
12804 build fails, remove any final GDB executable.
12805
12806 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12807
12808 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12809 replacing hex constants with function names and stripping leading
12810 file name directory prefixes.
12811
12812 2003-01-08 Andrew Cagney <cagney@redhat.com>
12813
12814 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12815 get_frame_base.
12816
12817 2003-01-08 David Carlton <carlton@math.stanford.edu>
12818
12819 * linespec.c (decode_line_1): Move code into decode_variable.
12820 (decode_variable): New function.
12821
12822 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12823
12824 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12825
12826 2003-01-08 Andrew Cagney <cagney@redhat.com>
12827
12828 * cris-tdep.c (cris_frame_init_saved_regs): Use
12829 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12830 saved_regs buffer.
12831 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12832 (sh64_nofp_frame_init_saved_regs): Ditto.
12833 (sh_fp_frame_init_saved_regs): Ditto.
12834 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12835 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12836 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12837 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12838
12839 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12840
12841 * minsyms.c (lookup_minimal_symbol): Update comment.
12842 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12843 (lookup_minimal_symbol_solib_trampoline): Likewise.
12844
12845 2003-01-08 Andrew Cagney <cagney@redhat.com>
12846
12847 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12848 frame_relative_level.
12849
12850 * alpha-tdep.c: Use get_frame_extra_info.
12851 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12852 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12853 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12854 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12855
12856 * alpha-tdep.c: Use get_next_frame.
12857 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12858 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12859 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12860 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12861 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12862 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12863 * xstormy16-tdep.c: Ditto.
12864
12865 2003-01-07 Andrew Cagney <cagney@redhat.com>
12866
12867 * alpha-tdep.c: Use get_frame_base.
12868 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12869 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12870 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12871 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12872 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12873 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12874 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12875 * config/sparc/tm-sparc.h: Ditto.
12876
12877 2003-01-07 Andrew Cagney <cagney@redhat.com>
12878
12879 * frame.c (deprecated_get_frame_context): New function.
12880 (deprecated_set_frame_context): New function.
12881 * frame.h (deprecated_get_frame_context): Declare.
12882 (deprecated_set_frame_context): Declare.
12883 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12884 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12885
12886 2003-01-07 Andrew Cagney <cagney@redhat.com>
12887
12888 * frame.c (deprecated_set_frame_next_hack): New function.
12889 (deprecated_set_frame_prev_hack): New function.
12890 * frame.h (deprecated_set_frame_next_hack): Declare.
12891 (deprecated_set_frame_prev_hack): Declare.
12892 * mcore-tdep.c (analyze_dummy_frame): Use
12893 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12894 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12895
12896 2003-01-07 David Carlton <carlton@math.stanford.edu>
12897
12898 * linespec.c (decode_line_1): Move code into decode_dollar.
12899 (decode_dollar): New function.
12900
12901 2003-01-07 Andrew Cagney <cagney@redhat.com>
12902
12903 * arm-tdep.c (arm_init_extra_frame_info): Use
12904 deprecated_update_frame_base_hack.
12905 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12906 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12907 (fix_frame_pointer): Ditto.
12908 (mn10300_analyze_prologue): Ditto.
12909
12910 2003-01-07 Andrew Cagney <cagney@redhat.com>
12911
12912 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12913 extra_info using frame_extra_info_zalloc.
12914 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12915 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12916 (sh64_init_extra_frame_info): Ditto.
12917 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12918 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12919 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12920 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12921 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12922 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12923 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12924 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12925 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12926 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12927 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12928 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12929
12930 * mn10300-tdep.c (analyze_dummy_frame): Use
12931 deprecated_set_frame_extra_info_hack.
12932 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12933
12934 2003-01-07 J. Brobecker <brobecker@gnat.com>
12935
12936 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12937 class is not scText. These do not define "real" procedures.
12938 (parse_partial_symbols): Likewise.
12939
12940 2003-01-06 Michael Snyder <msnyder@redhat.com>
12941
12942 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12943
12944 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12945
12946 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12947 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12948 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12949 deprecated_frame_xmalloc_with_cleanup.
12950 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12951 deprecated_frame_xmalloc.
12952 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12953 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12954
12955 2003-01-06 Andrew Cagney <cagney@redhat.com>
12956
12957 * x86-64-linux-tdep.c: Include "osabi.h".
12958 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12959
12960 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12961
12962 2003-01-06 Andrew Cagney <cagney@redhat.com>
12963
12964 * MAINTAINERS (Target Instruction Set Architectures): Update
12965 arm-elf. Can be built with -Werror, has been multiarched.
12966
12967 * value.h (unpack_long): Make buffer parameter constant.
12968 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12969 * scm-lang.h (scm_parse): Ditto.
12970 * defs.h (extract_typed_address, extract_address): Ditto.
12971 (extract_long_unsigned_integer): Ditto.
12972 * inferior.h (unsigned_pointer_to_address): Ditto.
12973 (signed_pointer_to_address): Ditto.
12974 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12975 * gdbarch.h, gdbarch.c: Regenerate.
12976 * findvar.c (extract_long_unsigned_integer): Update.
12977 (extract_address): Update.
12978 (extract_typed_address): Update.
12979 (unsigned_pointer_to_address): Update.
12980 * values.c (unpack_long): Update.
12981 (unpack_double): Update.
12982 (unpack_pointer): Update.
12983 (unpack_field_as_long): Update.
12984 * d10v-tdep.c (d10v_pointer_to_address): Update.
12985 * avr-tdep.c (avr_pointer_to_address): Update.
12986 * scm-lang.c (scm_unpack): Update.
12987 * findvar.c (signed_pointer_to_address): Update.
12988
12989 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12990
12991 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12992 since it is in i386-tdep.c.
12993
12994 2003-01-06 J. Brobecker <brobecker@gnat.com>
12995
12996 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12997 failure introduced in the previous change.
12998
12999 2003-01-05 Michael Chastain <mec@shout.net>
13000
13001 * README: Remove references to deleted remote-*.c files:
13002 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
13003 remote-nrom.c, remote-os9k.c, remote-udi.c.
13004
13005 2003-01-05 Mark Kettenis <kettenis@gnu.org>
13006
13007 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
13008 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
13009 i386_get_longjmp_target.
13010
13011 2003-01-05 Andrew Cagney <ac131313@redhat.com>
13012
13013 * arm-tdep.c (prologue_cache): Change to a pointer.
13014 (_initialize_arm_tdep): Allocate prologue_cache.
13015 (check_prologue_cache): Update.
13016 (save_prologue_cache): Update.
13017 (arm_gdbarch_init): Update.
13018
13019 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13020
13021 * stabsread.c (update_method_name_from_physname): Call complaint()
13022 instead of error.
13023
13024 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13025
13026 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13027 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13028 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13029
13030 * blockframe.c: Include "gdbcmd.h" and "command.h".
13031 (backtrace_below_main): New variable.
13032 (file_frame_chain_valid, func_frame_chain_valid)
13033 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13034 (generic_func_frame_chain_valid): Remove functions.
13035 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13036 (_initialize_blockframe): New function.
13037 * Makefile.in (blockframe.o): Update dependencies.
13038 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13039 comment. Call frame_chain_valid ().
13040 * frame.h: Remove old prototypes. Add prototype for
13041 frame_chain_valid and update comments to match.
13042 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13043 Remove old comment.
13044 * gdbarch.h: Regenerated.
13045 * gdbarch.c: Regenerated.
13046
13047 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13048 set_gdbarch_frame_chain_valid.
13049 * avr-tdep.c (avr_gdbarch_init): Likewise.
13050 * cris-tdep.c (cris_gdbarch_init): Likewise.
13051 * frv-tdep.c (frv_gdbarch_init): Likewise.
13052 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13053 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13054 (i386_nw_init_abi): Likewise.
13055 (i386_gdbarch_init): Likewise.
13056 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13058 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13059 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13060 * mips-tdep.c (mips_gdbarch_init): Likewise.
13061 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13062 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13063 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13064 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13065 * s390-tdep.c (s390_gdbarch_init): Likewise.
13066 * sh-tdep.c (sh_gdbarch_init): Likewise.
13067 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13068 * v850-tdep.c (v850_gdbarch_init): Likewise.
13069 * vax-tdep.c (vax_gdbarch_init): Likewise.
13070 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13071
13072 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13073 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13074 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13075 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13076 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13077 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13078 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13079 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13080
13081 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13082
13083 * Makefile.in (acconfig_h): Remove incorrect macro.
13084 (config_h): Define.
13085 (osabi.o): Update dependencies.
13086 * configure.tgt: Set gdb_osabi based on target triplet.
13087 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13088 * configure: Regenerated.
13089 * config.in: Regenerated.
13090 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13091 (GDB_OSABI_DEFAULT): Define if not already defined.
13092 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13093 (set_osabi_string): New variables.
13094 (gdbarch_register_osabi): Add new OS ABI to
13095 gdb_osabi_available_names.
13096 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13097 (set_osabi, show_osabi): New functions.
13098 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13099
13100 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13101
13102 * arch-utils.c (gdbarch_info_init): Set osabi to
13103 GDB_OSABI_UNINITIALIZED.
13104 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13105 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13106 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13107 * gdbarch.c: Regenerated.
13108 * gdbarch.h: Regenerated.
13109 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13110 there's no BFD.
13111 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13112 * osabi.h (enum gdb_osabi): Move to defs.h.
13113 (gdbarch_init_osabi): Update prototype.
13114 * defs.h (enum gdb_osabi): Moved here.
13115 * Makefile.in: Update dependencies.
13116
13117 * alpha-tdep.h: Don't include "osabi.h".
13118 (struct gdbarch_tdep): Remove osabi member.
13119 * alpha-tdep.c: Include "osabi.h".
13120 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13121 iterate over arches. Update call to gdbarch_init_osabi.
13122 (alpha_dump_tdep): Don't dump osabi.
13123 * alpha-linux-tdep.c: Include "osabi.h".
13124 * alpha-osf1-tdep.c: Include "osabi.h".
13125 * alphafbsd-tdep.c: Include "osabi.h".
13126 * alphanbsd-tdep.c: Include "osabi.h".
13127
13128 * arm-tdep.h: Don't include "osabi.h".
13129 (struct gdbarch_tdep): Remove osabi member.
13130 * arm-tdep.c: Include "osabi.h".
13131 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13132 iterate over arches. Update call to gdbarch_init_osabi.
13133 (arm_dump_tdep): Don't dump osabi.
13134 * arm-linux-tdep.c: Include "osabi.h".
13135 * armnbsd-tdep.c: Include "osabi.h".
13136
13137 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13138 Update call to gdbarch_init_osabi.
13139
13140 * i386-tdep.h: Don't include "osabi.h".
13141 (struct gdbarch_tdep): Remove osabi member.
13142 * i386-tdep.c: Include "osabi.h".
13143 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13144 iterate over arches. Update call to gdbarch_init_osabi.
13145 (i386_dump_tdep): Don't dump osabi.
13146 * i386-linux-tdep.c: Include "osabi.h".
13147 * i386-sol2-tdep.c: Include "osabi.h".
13148 * i386bsd-tdep.c: Include "osabi.h".
13149 * i386gnu-tdep.c: Include "osabi.h".
13150 * i386ly-tdep.c: Include "osabi.h".
13151 * i386nbsd-tdep.c: Include "osabi.h".
13152 * i386obsd-tdep.c: Include "osabi.h".
13153
13154 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13155 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13156 check osabi when iterating over arches. Update call to
13157 gdbarch_init_osabi.
13158 (mips_dump_tdep): Don't dump osabi.
13159
13160 * ns32k-tdep.h: Don't include "osabi.h".
13161 (struct gdbarch_tdep): Remove.
13162 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13163 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13164 allocate tdep. Update call to gdbarch_init_osabi.
13165 (ns32k_dump_tdep): Remove.
13166 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13167 * ns32knbsd-tdep.c: Include "osabi.h".
13168
13169 * ppc-tdep.h: Don't include "osabi.h".
13170 (struct gdbarch_tdep): Remove osabi member.
13171 * rs6000-tdep.c: Include "osabi.h".
13172 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13173 osabi when iterating over arches. Update call to
13174 gdbarch_init_osabi.
13175 (rs6000_dump_tdep): Don't dump osabi.
13176 * ppc-linux-tdep.c: Include "osabi.h".
13177 * ppcnbsd-tdep.c: Include "osabi.h".
13178
13179 * sh-tdep.h: Don't include "osabi.h".
13180 (struct gdbarch_tdep): Remove osabi member.
13181 * sh-tdep.c: Include "osabi.h".
13182 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13183 iterate over arches. Update call to gdbarch_init_osabi.
13184 (sh_dump_tdep): Don't dump osabi.
13185 * shnbsd-tdep.c: Include "osabi.h".
13186
13187 * sparc-tdep.c: Include "osabi.h".
13188 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13189 iterate over arches. Update call to gdbarch_init_osabi.
13190 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13191 tdep structure.
13192
13193 * vax-tdep.h: Don't include "osabi.h".
13194 (struct gdbarch_tdep): Remove.
13195 * vax-tdep.c: Include "osabi.h".
13196 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13197 iterate over arches. Don't allocate tdep. Update call
13198 to gdbarch_init_osabi.
13199 (vax_dump_tdep): Remove.
13200 (_initialize_vax_tdep): Update call to gdbarch_register.
13201
13202 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13203
13204 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13205 entirely.
13206 (breakpoint_re_set_one): Don't fetch the value for a disabled
13207 watchpoint.
13208
13209 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13212 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13213 (COERCE_FLOAT_TO_DOUBLE): Remove.
13214 * gdbarch.c: Regenerate.
13215 * gdbarch.h: Regenerate.
13216 * Makefile.in: Remove value_h from gdbarch_h.
13217 * valops.c (coerce_float_to_double): New variable.
13218 (default_coerce_float_to_double): Remove.
13219 (standard_coerce_float_to_double): Remove.
13220 (value_arg_coerce): Use coerce_float_to_double.
13221 (_initialize_valops): Add "set coerce-float-to-double".
13222 * value.h (default_coerce_float_to_double): Remove prototype.
13223 (standard_coerce_float_to_double): Remove prototype.
13224
13225 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13226 prototyped.
13227 * mdebugread.c (parse_symbol): Likewise.
13228 * stabsread.c (define_symbol): Mark all functions as prototyped.
13229
13230 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13231 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13232 set_gdbarch_coerce_float_to_double.
13233 * arm-tdep.c (arm_gdbarch_init): Likewise.
13234 * frv-tdep.c (frv_gdbarch_init): Likewise.
13235 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13236 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13237 * mips-tdep.c (mips_gdbarch_init): Likewise.
13238 (mips_coerce_float_to_double): Remove.
13239 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13240 (rs6000_coerce_float_to_double): Remove.
13241 * s390-tdep.c (s390_gdbarch_init): Likewise.
13242 * sh-tdep.c (sh_gdbarch_init): Likewise.
13243 (sh_coerce_float_to_double): Remove.
13244 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13245 (sparc_coerce_float_to_double): Remove.
13246 * v850-tdep.c (v850_gdbarch_init): Likewise.
13247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13248 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13249 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13250 (hppa_coerce_float_to_double): Remove prototype.
13251 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13252
13253 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13254
13255 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13256
13257 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13258
13259 Suggested by Stewart Brown <sb24@avaya.com>:
13260 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13261 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13262 (c_type_print_varspec_suffix): Likewise.
13263
13264 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13265
13266 * configure.in: Don't set and AC_SUBST SUBDIRS.
13267 * configure: Regenerated.
13268
13269 * configure.in: Remove code dealing with shared libraries.
13270 * Makefile.in: Remove HLDFLAGS and HLDENV.
13271 * configure: Regenerated.
13272
13273 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13274
13275 * frame.c (deprecated_frame_xmalloc): New function.
13276 (deprecated_set_frame_saved_regs_hack): New function.
13277 (deprecated_set_frame_extra_info_hack): New function.
13278 * frame.h (deprecated_frame_xmalloc): Declare.
13279 (deprecated_set_frame_saved_regs_hack): Declare.
13280 (deprecated_set_frame_extra_info_hack): Declare.
13281
13282 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13283
13284 * configure.in: Move code that provides the --enable-gdbtk option
13285 right after the code that handles the --enable-tui option, and
13286 polish it somewhat.
13287 * configure: Regenerated.
13288
13289 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13290 AC_CHECK_FUNCS and remove the old check for pread64.
13291 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13292 * acconfig.h (_GNU_SOURCE): Add.
13293 (HAVE_PREAD64): Remove.
13294 * configure, aclocal.m4, config.in: Regenerated.
13295
13296 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13297
13298 * alpha-tdep.c: Use get_frame_saved_regs.
13299 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13300 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13301 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13302 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13303 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13304
13305 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13306
13307 * configure.in: Remove all use of the SUBDIRS variable; add
13308 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13309 code providing the --enable-multi-ice option, and move it right in
13310 front of the code that checks whether gdbserver is supported.
13311 Polish that too.
13312 * configure: Regenerated.
13313 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13314 @SUBDIRS@.
13315
13316 2003-01-03 Andrew Cagney <cagney@redhat.com>
13317
13318 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13319 * avr-tdep.c, cris-tdep.c: Ditto.
13320 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13321 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13322
13323 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13324
13325 * configure.in: Remove --enable-netrom option.
13326 * configure: Regenerated.
13327
13328 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13329
13330 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13331 declaration for `struct re_pattern_buffer' instead.
13332 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13333
13334 2003-01-03 J. Brobecker <brobecker@gnat.com>
13335
13336 * mdebugread.c (parse_symbol): Count until the stEnd matching
13337 the structure name.
13338
13339 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13340
13341 * configure.in: Remove --with-cpu option.
13342 subscripts. Remove evil changequotes here.
13343 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13344 * config.in, configure: Regenerated.
13345
13346 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13347 * configure.in: Cleanup section that sources GDB and BFD configure
13348 subscripts. Remove evil changequotes here.
13349 * config.in, configure: Regenerated.
13350
13351 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13352
13353 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13354 frame accessor methods.
13355 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13356 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13357 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13358 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13359 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13360 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13361 * z8k-tdep.c: Ditto.
13362
13363 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13364
13365 * configure.in: Remove UI_OUT configuration code.
13366 * ada-lang.c: Update assuming UI_OUT is always true.
13367 * Makefile.in (UIOUT_CFLAGS): Remove.
13368 * configure: Regenerated.
13369 * TODO: Remove blurb about elimination of -DUI_OUT.
13370
13371 * configure.in: Move code that provides the --enable-gdbcli,
13372 --enable-gdbmi options right before the code that handles the
13373 --enable-tui option. Polish a bit.
13374 * configure: Regenerated.
13375
13376 * configure.in: Rewrite check for GNU regex and the
13377 --without-included regex option, and move it into the "Checks for
13378 library functions" section. This makes us use the system regex
13379 again by default on systems with version 2 of the GNU C library.
13380 This was apparently broken.
13381 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13382 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13383 * config.in, configure: Regenerated.
13384
13385 * configure.in: Move code that provides the --enable-tui option
13386 before the "Checks for libraries" section. Polish the code
13387 somewhat and set need_curses to yes if we build the TUI. Rewrite
13388 code that looks for a library providing termcap functionality to
13389 match more closely what's done in the Readline library, and move
13390 it into to the "Checks for libraries" section.
13391 * configure: Regenerated.
13392 * Makefile.in (TERMCAP): Remove variable.
13393 * config/i386/go32.mh (TERMCAP): Remove variable.
13394
13395 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13396
13397 * MAINTAINERS: Mention gdb_mbuild.sh.
13398 * gdb_mbuild.sh: Rewrite.
13399
13400 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13401
13402 * configure.in: Fix typo in last change.
13403 * config.in, configure: Regenerated.
13404
13405 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13406
13407 * valarith.c (value_binop): Delete obsolete code and comments.
13408 * configure.host: Ditto.
13409 * buildsym.h (make_blockvector): Ditto.
13410 * buildsym.c (make_blockvector): Ditto.
13411 * defs.h (enum language): Ditto.
13412 (chill_demangle): Ditto.
13413 * elfread.c (elf_symtab_read): Ditto.
13414 * dwarfread.c (CHILL_PRODUCER): Ditto.
13415 (set_cu_language): Ditto.
13416 (handle_producer): Ditto.
13417 * expprint.c (print_subexp): Ditto.
13418 * gdbtypes.c (chill_varying_type): Ditto.
13419 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13420 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13421 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13422 (chill_varying_type): Ditto.
13423 * language.h (_LANG_chill): Ditto.
13424 * language.c (binop_result_type, integral_type): Ditto.
13425 (character_type, string_type, structured_type): Ditto.
13426 (lang_bool_type, binop_type_check): Ditto.
13427 * stabsread.h (os9k_stabs): Ditto.
13428 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13429 (define_symbol, read_type, read_struct_fields): Ditto.
13430 (read_array_type, read_enum_type, read_huge_number): Ditto.
13431 (read_range_type, start_stabs): Ditto.
13432 * symfile.c (init_filename_language_table): Ditto.
13433 (add_psymbol_with_dem_name_to_list): Ditto.
13434 * symtab.c (symbol_init_language_specific): Ditto.
13435 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13436 * symtab.h (struct general_symbol_info): Ditto.
13437 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13438 * typeprint.c (typedef_print): Ditto.
13439 * utils.c (fprintf_symbol_filtered): Ditto.
13440 * valops.c (value_cast, search_struct_field, value_slice): Delete
13441 obsolete code.
13442 (varying_to_slice): Delete function.
13443 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13444 (varying_to_slice): Delete declaration.
13445 * MAINTAINERS: Update.
13446
13447 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13448
13449 * configure.in: Reorganize "Checks for library functions section"
13450 a bit. Remove check for `btowc' and `isascii' functions.
13451 * configure: Regenerated.
13452
13453 * acconfig.h (_MSE_INT_H): Remove.
13454 * configure.in: Create "Checks for header files" section, and move
13455 appropriate tests there. Don't check for objlist.h, wchar.h,
13456 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13457 misdetection fix. Also add "Checks for types", "Checks for
13458 compiler characteristics" and "Checks for library functions"
13459 sections.
13460 * config.in, configure: Regenerated.
13461
13462 * configure.in: Create "Checks for programs" section, and move
13463 appropriate tests there.
13464
13465 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13466
13467 * configure.in: Create "Checks for libraries" section, and move
13468 appropriate tests there. Cleanup check for wctype in libw. Use
13469 AC_SEARCH_LIBS to see whether we need libsocket.
13470 * configure: Regenerated.
13471
13472 For older changes see ChangeLog-2002
13473 \f
13474 Local Variables:
13475 mode: change-log
13476 left-margin: 8
13477 fill-column: 74
13478 version-control: never
13479 End: