e05fcd29a12256af7a7b704f54bde3d0751b6c54
[binutils-gdb.git] / gdb / ChangeLog
1 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
2
3 * ia64-tdep.c: Change all occurrences of
4 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
5 (ia64_frame_prev_register): Minor whitespace change.
6
7 2003-10-20 Michael Chastain <mec@shout.net>
8
9 * config/djgpp/fnchange.lst: Add lines for:
10 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
11 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
12 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
13 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
14 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
15 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
16 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
17
18 2003-10-20 Andrew Cagney <cagney@redhat.com>
19
20 * values.c (register_value_being_returned): Update comments. Use
21 "gdbarch_return_value" when available.
22 (using_struct_return): Ditto.
23 (set_return_value): Ditto. Use "gdbarch_return_value" when
24 available.. Print a warning, and not an error, when an unhandled
25 return type is encountered.
26 * infcmd.c: Include "gdb_assert.h".
27 (print_return_value): When gdbarch_return_value_p, and using
28 struct return, assume that the value is not available.
29 * defs.h (return_value_convention): Define.
30 * gdbarch.sh (gdbarch_return_value): New predicate method.
31 * gdbarch.h, gdbarch.c: Re-generate
32 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
33
34 2003-10-20 Andrew Cagney <cagney@redhat.com>
35
36 * symtab.c: Replace "struct sec" with "struct bfd_section".
37 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
38
39 2003-10-19 Michael Chastain <mec@shout.net>
40
41 * config/djgpp/fnchange.lst: Add lines for:
42 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
43 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
44 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
45
46 2003-10-19 Mark Kettenis <kettenis@gnu.org>
47
48 * amd64fbsd-nat.c (fetch_inferior_registers,
49 store_inferior_registers): Remove functions.
50 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
51
52 2003-10-18 Mark Kettenis <kettenis@gnu.org>
53
54 Add NetBSD/amd64 native configuration:
55 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
56 * amd64nbsd-tdep.c: New file.
57 * amd64nbsd-nat.c: New file.
58 * amd64bsd-nat.c: New file.
59 * config/i386/nbsd64.mh: New file.
60 * config/i386/nbsd64.mt: New file.
61 * configure.host: Add x86_64-*-netbsd*.
62 * configure.tgt: Add x86_64-*-netbsd*.
63 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
64 New targets.
65 * NEWS (New native configurations): Mention NetBSD/amd64.
66
67 2003-10-17 Michael Chastain <mec@shout.net>
68
69 * config/djgpp/fnchange.lst: Remove dead lines for:
70 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
71 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
72 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
73 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
74 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
75 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
76 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
77 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
78 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
79 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
80 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
81 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
82 gdb/config/sparc/tm-sparclite.h,
83 gdb/gdbtk/generic/ChangeLog-2001,
84 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
85 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
86 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
87 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
88 gdb/testsuite/gdb.mi/mi0-var-block.exp,
89 gdb/testsuite/gdb.mi/mi0-var-child.exp,
90 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
91 gdb/testsuite/gdb.mi/mi0-var-display.exp,
92 itcl/iwidgets3.0.0/demos/extfileselectionbox,
93 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
94 itcl/iwidgets3.0.0/demos/fileselectionbox,
95 itcl/iwidgets3.0.0/demos/fileselectiondialog,
96 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
97 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
98 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
99 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
100 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
101 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
102 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
103 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
104 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
105 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
106 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
107 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
108 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
109 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
110 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
111 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
112 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
113 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
114 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
115 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
116 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
117 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
118 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
119 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
120 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
121 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
122 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
123 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
124 itcl/iwidgets3.0.0/demos/html/shell.n.html,
125 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
126 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
127 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
128 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
129 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
130 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
131 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
132 itcl/iwidgets3.0.0/demos/scrolledcanvas,
133 itcl/iwidgets3.0.0/demos/scrolledframe,
134 itcl/iwidgets3.0.0/demos/scrolledhtml,
135 itcl/iwidgets3.0.0/demos/scrolledlistbox,
136 itcl/iwidgets3.0.0/demos/scrolledtext,
137 itcl/iwidgets3.0.0/demos/selectionbox,
138 itcl/iwidgets3.0.0/demos/selectiondialog,
139 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
140 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
141 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
142 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
143 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
144 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
145 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
146 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
147 itcl/iwidgets3.0.0/doc/scrolledframe.n,
148 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
149 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
150 itcl/iwidgets3.0.0/doc/scrolledtext.n,
151 itcl/iwidgets3.0.0/doc/selectionbox.n,
152 itcl/iwidgets3.0.0/doc/selectiondialog.n,
153 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
154 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
155 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
156 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
157 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
158 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
159 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
160 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
161 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
162 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
163 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
164 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
165 itcl/iwidgets3.0.0/generic/selectionbox.itk,
166 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
167 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
168 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
169 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
170 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
171 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
172 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
173 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
174 itcl/iwidgets3.0.0/tests/scrolledframe.test,
175 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
176 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
177 itcl/iwidgets3.0.0/tests/scrolledtext.test,
178 itcl/iwidgets3.0.0/tests/selectionbox.test,
179 itcl/iwidgets3.0.0/tests/selectiondialog.test,
180 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
181 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
182 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
183 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
184 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
185 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
186 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
187 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
188 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
189 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
190 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
191 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
192 tk/mac/tkMacProjects.sit.hqx.
193
194 2003-10-17 Andrew Cagney <cagney@redhat.com>
195
196 * target.c (target_section_by_addr): New function.
197 (do_xfer_memory): Use "target_section_by_addr".
198 * target.h (target_section_by_addr): Declare.
199
200 * target.h (struct target_ops): Add "to_read_partial" and
201 "to_write_partial", delete "to_query".
202 (target_read_partial, target_write_partial): Declare.
203 (target_read, target_write): Declare.
204 (target_query): Delete macro.
205 * target.c (target_read_partial): New function.
206 (target_write_partial, target_read, target_write): New function.
207 (update_current_target): Delete inheritance of "to_query". Add
208 comments about "to_read_partial" and "to_write_partial".
209 (debug_to_partial_read, debug_to_partial_write): New functions.
210 (debug_to_query): Delete function.
211 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
212 instead of "to_query".
213 * remote.c (remote_read_partial): Replace "remote_query".
214 (init_remote_ops): Set "to_read_partial" instead of "to_query".
215 (init_remote_async_ops): Ditto.
216 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
217 "target_read_partial" instead of "target_query".
218 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
219 Use "target_read_partial" instead of "target_query".
220
221 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
222
223 * frame.h (struct frame_id): Add new field: special_addr.
224 (frame_id_build_special): New prototype.
225 * frame.c (frame_id_build_special): New function.
226 (frame_id_build): Change to call frame_id_build_special().
227 (frame_id_eq): Change to also test special_addr field.
228 (frame_id_inner): Update comment.
229
230 2003-10-17 Andrew Cagney <cagney@redhat.com>
231
232 * target.c (update_current_target): Perform the target cleanup.
233 Put the target stack beneath the squashed "current_target".
234 (add_target): Delete disabled call to "cleanup_target".
235 (cleanup_target): Delete function.
236 (push_target, unpush_target): Do not call "cleanup_target".
237
238 2003-10-17 Andrew Cagney <cagney@redhat.com>
239
240 * target.c (target_stack): Change to a static target_ops.
241 (update_current_target): Walk the "struct target_ops" stack.
242 (pop_target, do_xfer_memory, target_info): Ditto.
243 (find_target_beneath): Ditto.
244 (push_target): Rewrite to use the "struct target_ops" stack.
245 (unpush_target): Ditto.
246 * target.h (struct target_stack_item): Delete definition.
247 (target_stack): Delete declaration.
248 (struct target_ops): Add field "beneath".
249
250 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
251
252 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
253 declaration.
254 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
255 (h8300_examine_prologue): Use h8300_normal_mode flag
256 (h8300_gdbarch_init): Set architecture info for normal mode
257
258 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
259
260 * remote.c (remote_protocol_vcont): New variable.
261 (set_remote_protocol_vcont_packet_cmd): New function.
262 (show_remote_protocol_vcont_packet_cmd): New function.
263 (init_all_packet_configs): Handle remote_protocol_vcont.
264 (remote_vcont_probe): New function.
265 (remote_vcont_resume): New function.
266 (remote_resume): Use it.
267 (remote_async_resume): Call remote_resume.
268 (_initialize_remote): Add verbose-resume packet commands.
269
270 2003-10-16 Andrew Cagney <cagney@redhat.com>
271
272 * infrun.c (handle_inferior_event): Add comment about
273 "frame_id_inner" being too weak.
274
275 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
276
277 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
278 second parameter, which is always null. Remove
279 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
280 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
281 accordingly.
282 * somsolib.c (som_solib_create_inferior_hook,
283 som_solib_desire_dynamic_linker_symbols): Update callers.
284 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
285
286 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
287
288 * remote-m32r-sdi.c : New file, interface to m32r on-chip
289 debug interface, SDI (Scalable Debug Interface).
290 * NEWS: Mention m32r SDI protocol was supported.
291 * Makefile.in (remote-m32r-sdi.o): Add build rule.
292 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
293
294 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
295
296 * ia64-linux-tdep.c: Include gdbcore.h.
297 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
298 (ia64_linux_sigcontext_register_addr): Find the address of the
299 sigcontext area stored in the sigframe instead of using
300 a magic offset constant.
301
302 2003-10-15 Andrew Cagney <cagney@redhat.com>
303
304 * remote.c (remote_search): Delete function.
305 * target.h (target_search): Delete disabled macro.
306 (struct target_ops): Delete disabled field "to_search".
307
308 2003-10-14 Kevin Buettner <kevinb@redhat.com>
309
310 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
311 instead of deprecated_inside_entry_file().
312
313 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
314
315 * sh-tdep.c: Fix copy/paste hangover in comment.
316 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
317 mode.
318 (sh3e_sh4_extract_return_value): Ditto.
319
320 2003-10-13 Richard Henderson <rth@redhat.com>
321
322 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
323 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
324 match c_val_print a bit closer.
325
326 2003-10-13 Kevin Buettner <kevinb@redhat.com>
327
328 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
329 (frv_gdbarch_adjust_breakpoint_address): New function.
330 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
331 method.
332
333 2003-10-13 Kevin Buettner <kevinb@redhat.com>
334
335 * breakpoint.h (struct breakpoint): Add new member
336 ``requested_address''.
337 * breakpoint.c (breakpoint_adjustment_warning)
338 (adjust_breakpoint_address): New static functions.
339 (print_it_typical): Issue warning if breakpoint's address is different
340 from its requested address.
341 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
342 (breakpoint_re_set_one): Set breakpoint's
343 ``requested_address'' field. Set ``address'' field to the
344 result of calling adjust_breakpoint_address() on the requested
345 address.
346
347 2003-10-13 Kevin Buettner <kevinb@redhat.com>
348
349 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
350 * gdbarch.h, gdbarch.c: Regenerate.
351
352 2003-10-11 Mark Kettenis <kettenis@gnu.org>
353
354 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
355 TDEP->sc_num_regs.
356
357 * i386fbsd-tdep.c: New file.
358 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
359 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
360 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
361 i386bsd-tdep.c.
362 (_initialize_i386fbsd_tdep): New function.
363 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
364 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
365 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
366 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
367 TDEP->sc_num_regs.
368 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
369 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
370 to initialize TDEP->sc_num_regs.
371 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
372 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
373 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
374 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
375 FreeBSD ELF OS/ABI's here.
376 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
377 (i386fbsd-tdep.o): New target.
378 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
379 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
380
381 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
382 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
383 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
384 in initialization of TDEP->sc_num_regs.
385
386 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
387 (x86_64_init_abi): Initialize regset_from_core_section if
388 appropriate.
389
390 * i386-tdep.c (i386_regset_from_core_section): New function.
391 (i386_gdbarch_init): Initialize regset_from_core_section if
392 appropriate.
393 * i386-tdep.h (i386_regset_from_core_section): New declaration.
394
395 * i386-tdep.h (struct regset): Declare opaque.
396
397 * gdbarch.sh (regset_from_core_section): New method.
398 (struct regset): Declare opaque.
399 * gdbarch.c, gdbarch.h: Regenerated.
400
401 2003-10-11 Alan Modra <amodra@bigpond.net.au>
402
403 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
404 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
405 Correct test for pc within section.
406
407 2003-10-11 Mark Kettenis <kettenis@gnu.org>
408
409 * gdbarch.sh: Remove trailing whitepsace from comments.
410
411 2003-10-08 Roland McGrath <roland@redhat.com>
412
413 * gcore.c (make_mem_sec): Function removed, folded into ...
414 (gcore_create_callback): ... here. To omit a section, clear its
415 SEC_LOAD bit rather than zeroing its size.
416 Omit read-only sections only if they correspond to a known disk file.
417 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
418
419 2003-10-10 Michael Snyder <msnyder@redhat.com>
420
421 * d10v-tdep.c: Fix typo in comment.
422
423 2003-10-10 Andrew Cagney <cagney@redhat.com>
424
425 * rs6000-tdep.c (e500_store_return_value): Delete function.
426 (e500_extract_return_value): Delete function.
427 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
428 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
429 "ppc_sysv_abi_restore_return_value" where applicable.
430 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
431 (ppc_sysv_abi_extract_return_value): Declare.
432 (ppc_sysv_abi_broken_store_return_value): Declare.
433 (ppc_sysv_abi_broken_extract_return_value): Declare.
434 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
435 * ppc-sysv-tdep.c (return_value_convention): Move definition to
436 start of file.
437 (do_ppc_sysv_return_value): New function.
438 (ppc_sysv_abi_extract_return_value): New function.
439 (ppc_sysv_abi_store_return_value): New function.
440 (ppc_sysv_abi_broken_extract_return_value): New function.
441 (ppc_sysv_abi_broken_store_return_value): New function.
442 (ppc_sysv_abi_use_struct_convention): Call
443 do_ppc_sysv_return_value.
444
445 2003-10-10 J. Brobecker <brobecker@gnat.com>
446
447 * blockframe.c (inside_main_func): No longer use symbol_lookup()
448 to lookup the main function symbol.
449
450 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
451
452 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
453 types correctly.
454 (sh_push_dummy_call_fpu): Fix argument passing rules.
455 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
456 float types.
457 (sh3e_sh4_store_return_value): Ditto.
458
459 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
460
461 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
462 comment.
463
464 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
465
466 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
467 more readable code. Accomodate passing of bitfields.
468
469 2003-10-10 Andrew Cagney <cagney@redhat.com>
470
471 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
472 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
473 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
474 * ppc-sysv-tdep.c: Include "gdb_assert.h".
475 (ppc64_sysv_abi_push_dummy_call): New function.
476 (ppc64_sysv_abi_broken_push_dummy_call): New function.
477 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
478 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
479
480 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
481
482 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
483 * README: Ditto.
484 * d10v-tdep.c: Ditto.
485 * h8300-tdep.c: Ditto.
486 * remote-e7000.c: Ditto.
487 * remote-hms.c: Ditto.
488 * ser-e7kpc.c: Ditto.
489 * sh-stub.c: Ditto.
490 * sh-tdep.c: Ditto.
491 * sh-tdep.h: Ditto.
492 * sh3-rom.c: Ditto.
493 * sh64-tdep.c: Ditto.
494 * top.c: Ditto.
495 * wince.c: Ditto.
496 * config/d10v/d10v.mt: Ditto.
497 * config/sh/embed.mt: Ditto.
498 * config/sh/linux.mt: Ditto.
499 * config/sh/tm-linux.h: Ditto.
500 * config/sh/tm-sh.h: Ditto.
501 * config/sh/wince.mt: Ditto.
502
503 2003-10-09 Andrew Cagney <cagney@redhat.com>
504
505 * ppc-tdep.h (struct type): Declare opaque.
506 * x86-64-tdep.h (struct regcache): Declare opaque.
507 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
508 coding style.
509
510 2003-10-09 Andrew Cagney <cagney@redhat.com>
511
512 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
513 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
514 (SOFTWARE_SINGLE_STEP_P): Ditto.
515 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
516 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
517 (SOFTWARE_SINGLE_STEP_P): Ditto.
518 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
519 software_single_step to rs6000_software_single_step.
520
521 2003-10-09 Andrew Cagney <cagney@redhat.com>
522
523 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
524
525 2003-10-09 Michael Snyder <msnyder@redhat.com>
526
527 * frame.h: Fix typo in comment.
528 * dummy-frame.c: Fix typo in comment.
529 * d10v-tdep.c: Random whitespace/comment tweaks.
530
531 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
532
533 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
534 (sh_push_dummy_code): Delete function, it's only used for dummy calls
535 on stack.
536
537 Based on input by Stephen Clarke (stephen.clarke@superh.com):
538 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
539 in detail.
540
541 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
542
543 * remote-mips.c (mips_initialize): Remove unneeded call to
544 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
545
546 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
547
548 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
549 a memory pointer.
550
551 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
552
553 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
554 for any lwp we resume.
555 (running_callback): Add lwps that have pending status events
556 against them to be considered running.
557
558 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
559
560 * m32r-tdep.c : Include "dis-asm.h".
561 * Makefile.in (m32r-tdep.o): Update dependencies.
562
563 2003-10-06 J. Brobecker <brobecker@gnat.com>
564
565 * completer.h (get_gdb_completer_word_break_characters): Delete.
566 * completer.c: include language.h.
567 (gdb_completer_word_break_characters): Delete.
568 (get_gdb_completer_word_break_characters): Delete.
569 (location_completer): Use the word break characters of the current
570 language.
571 (complete_line): Likewise.
572 (line_completion_function): Likewise.
573 (skip_quoted_chars): Likewise.
574 * Makefile.in (completer.o): Add dependency on language.h.
575 * top.c (init_main): Set the readline word break characters
576 to GDB's default word break characters.
577
578 2003-10-06 J. Brobecker <brobecker@gnat.com>
579
580 * language.h (language_defn): new field, la_word_break_characters.
581 * language.c (unknown_language_defn): Set new field to
582 default_word_break_characters.
583 (auto_language_defn): Likewise.
584 (local_language_defn): Likewise.
585 * ada-lang.c (ada_language_defn): Likewise.
586 * c-lang.c (c_language_defn): Likewise.
587 (cplus_language_defn): Likewise.
588 (asm_language_defn): Likewise.
589 (minimal_language_defn): Likewise.
590 * f-lang.c (f_language_defn): Likewise.
591 * jv-lang.c (java_language_defn): Likewise.
592 * m2-lang.c (m2_language_defn): Likewise.
593 * objc-lang.c (objc_language_defn): Likewise.
594 * p-lang.c (pascal_language_defn): Likewise.
595 * scm-lang.c (scm_language_defn): Likewise.
596
597 2003-10-06 Andrew Cagney <cagney@redhat.com>
598
599 * ppc-sysv-tdep.c: Re-indent.
600
601 2003-10-06 J. Brobecker <brobecker@gnat.com>
602
603 * language.h (default_word_break_characters): Add prototype.
604 * language.c (default_word_break_characters): New function.
605
606 2003-10-06 Andreas Schwab <schwab@suse.de>
607
608 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
609 with %eax.
610
611 2003-10-06 Andrew Cagney <cagney@redhat.com>
612
613 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
614 "h8500-tdep.c".
615 (z8k-tdep.o): Delete custom build rule.
616
617 2003-10-06 Andrew Cagney <cagney@redhat.com>
618
619 * Makefile.in: Update all dependencies.
620
621 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
622 No longer list PA as as obsolete candidate. List m32r as
623 broken instead of obsolete.
624
625 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
626 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
627 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
628 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
629 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
630 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
631 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
632 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
633 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
634 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
635 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
636 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
637 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
638 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
639 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
640 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
641 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
642 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
643 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
644 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
645 * config/z8k/z8k.mt: Ditto.
646
647 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
648 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
649 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
650 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
651 sparclite were removed.
652 * configure.host, configure.tgt: Remove corresponding tuples.
653
654 * breakpoint.c, breakpoint.h: Remove obsolete code.
655 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
656 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
657 * stabsread.h, xcoffread.c: Ditto.
658
659 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
660 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
661 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
662 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
663
664 2003-10-06 David Lecomber <dsl@sources.redhat.com>
665
666 * f-valprint.c: Reformatting
667
668 2003-10-06 Mark Kettenis <kettenis@gnu.org>
669
670 * x86-64-tdep.c: Remove duplicate comment.
671
672 * x86-64-tdep.c (x86_64_store_return_value): Don't use
673 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
674 names for return values. This fixes a bug since we looked at %rbx
675 instead of %rdx.
676
677 2003-10-05 Mark Kettenis <kettenis@gnu.org>
678
679 * x86-64-tdep.c: Include "regset.h".
680
681 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
682 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
683 sizeof_fpregset.
684 * i386-tdep.c: Include "regset.h".
685 (i386_supply_gregset): New function.
686 (i386_supply_fpregset): New function.
687 (i386_gdbarch_init): Initialze register set-related members of
688 TDEP.
689 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
690 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
691
692 2003-10-03 Andrew Cagney <cagney@redhat.com>
693
694 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
695 set extract_return_value, store_return_value and
696 use_struct_convention to ppc64_sysv_abi_extract_return_value,
697 ppc64_sysv_abi_store_return_value and
698 ppc64_sysv_abi_use_struct_convention.
699 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
700 (ppc64_sysv_abi_store_return_value): Declare.
701 (ppc64_sysv_abi_use_struct_convention): Declare.
702 * ppc-sysv-tdep.c (enum return_value_convention): Define.
703 (ppc64_sysv_abi_extract_return_value): New function.
704 (ppc64_sysv_abi_store_return_value): New function.
705 (ppc64_sysv_abi_use_struct_convention): New function.
706 (ppc64_sysv_abi_return_value): New function.
707
708 2003-10-03 Andrew Cagney <cagney@redhat.com>
709
710 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
711 convert a descriptor to a function when it's in the ".opd"
712 section.
713
714 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
715
716 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
717 reg_size to keep GCC silent.
718
719 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
720
721 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
722 base for DW_EH_PE_textrel encodings.
723 (read_encoded_value): Add a DW_EH_PE_textrel case.
724 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
725 section.
726
727 2003-10-03 Mark Kettenis <kettenis@gnu.org>
728
729 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
730
731 2003-10-02 Andrew Cagney <cagney@redhat.com>
732
733 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
734 REGISTER_RAW_SIZE.
735 * gdbarch.h, gdbarch.c: Re-generate.
736 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
737 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
738 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
739 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
740 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
741 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
742 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
743 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
744 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
745 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
746 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
747 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
748 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
749 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
750 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
751 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
752
753 2003-10-02 Jim Blandy <jimb@redhat.com>
754
755 * dwarf2read.c (struct die_info): Doc fix.
756
757 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
758
759 * sh-tdep.c: Running thru gdb_indent.sh.
760
761 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
762
763 * sh-tdep.c (sh_justify_value_in_reg): New function.
764 (sh_stack_allocsize): Ditto.
765 (flt_argreg_array): New array used for floating point argument
766 passing.
767 (sh_init_flt_argreg): New function.
768 (sh_next_flt_argreg): Ditto.
769 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
770 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
771 Fix argument passing strategy.
772 (sh_push_dummy_call_nofpu): Ditto.
773
774 2003-10-01 Andrew Cagney <cagney@redhat.com>
775
776 * value.h (register_value_being_returned): Declare. Replace
777 "value_being_returned".
778 * infcall.c (call_function_by_hand): Use
779 register_value_being_returned.
780 * infcmd.c (print_return_value): Call
781 "register_value_being_returned", handle struct return locally.
782 * values.c (register_value_being_returned): New function. Replace
783 "value_being_returned".
784
785 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
786
787 * linux-proc.c (linux_do_registers): New function.
788 (linux_make_note_section): Use linux_do_registers in case of
789 single threaded inferior programs.
790
791 2003-10-01 Andrew Cagney <cagney@redhat.com>
792
793 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
794 use STRUCT_ADDR. When not using "struct return convention", pass
795 "0" to "value_being_returned". Add FIXMEs.
796 * infcmd.c (print_return_value): Pass an explicit 0/1 to
797 value_being_returned. Add comments.
798 * values.c (value_being_returned): Add fixme.
799 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
800 (hppa_value_returned_from_stack): Add FIXME.
801
802 2003-09-30 David Carlton <carlton@kealia.com>
803
804 * dwarf2read.c (struct die_info): Add 'parent' field; replace
805 'has_children' and 'next' by 'child' and 'sibling'.
806 (read_comp_unit): Rework algorithm, breaking body into
807 read_die_and_children and read_die_and_siblings.
808 (read_die_and_children, read_die_and_siblings): New.
809 (read_full_die): Add 'has_children' argument; set it instead of
810 the die's 'has_children' field. Minor formatting cleanup.
811 (free_die_list): Use die->child and die->sibling instead of
812 die->next.
813 (dump_die_list): Ditto.
814 (sibling_die): Use die->sibling.
815 (psymtab_to_symtab_1): Use die's 'child' field in place of its
816 'has_children' and 'next' fields.
817 (process_die, read_file_scope, read_func_scope)
818 (read_lexical_block_scope, read_structure_scope)
819 (read_enumeration, read_array_type, read_common_block)
820 (read_namespace, read_subroutine_type, dump_die): Ditto.
821
822 2003-09-30 Andrew Cagney <cagney@redhat.com>
823
824 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
825 to 224, not 220.
826
827 2003-09-30 Andrew Cagney <cagney@redhat.com>
828
829 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
830 REGISTER_VIRTUAL_SIZE.
831 * gdbarch.h, gdbarch.c: Regenerate.
832 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
833 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
834 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
835
836 2003-09-29 Andrew Cagney <cagney@redhat.com>
837
838 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
839 DEPRECATED_REGISTER_VIRTUAL_TYPE.
840 * gdbarch.h, gdbarch.c: Regenerate.
841 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
842 * sh64-tdep.c, sparc-tdep.c: Update.
843
844 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
845 * remote-vxmips.c (vx_read_register): Ditto.
846 * remote-vx68.c (vx_read_register): Ditto.
847 * gnu-nat.c (inf_validate_procs): Ditto.
848
849 2003-09-29 J. Brobecker <brobecker@gnat.com>
850
851 * infcall.c (call_function_by_hand): Fix build failure
852 introduced in the previous change to this file.
853
854 2003-09-29 Andrew Cagney <cagney@redhat.com>
855
856 * NEWS: Mention Objective-C.
857
858 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
859
860 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
861 test if the register has been saved on the stack.
862 (arm_scan_prologue_cache): When analysing the instruction
863 "str lr, [sp, #-4]", save the address where lr has been stored.
864
865 2003-09-28 Andrew Cagney <cagney@redhat.com>
866
867 * frame.c (frame_read_unsigned_register): Delete function.
868 * frame.h (frame_read_unsigned_register): Delete declaration.
869 * sparc-tdep.c (sparc_init_extra_frame_info): Use
870 get_frame_register_unsigned.
871 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
872 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
873 * d10v-tdep.c (d10v_print_registers_info): Ditto.
874
875 * frame.h (frame_read_register): Delete declaration.
876 * frame.c (frame_read_register): Delete function.
877 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
878 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
879 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
880 * mips-tdep.c (mips_register_to_value): Ditto.
881 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
882 * d10v-tdep.c (d10v_print_registers_info): Ditto.
883
884 * frame.c (frame_read_signed_register): Delete function.
885 (frame_read_unsigned_register): Update comments.
886 * frame.h (frame_read_signed_register): Delete declaration.
887 * h8300-tdep.c (h8300_print_register): Use
888 get_frame_register_signed.
889 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
890
891 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
892 Rename VALUE_RETURNED_FROM_STACK.
893 * infcmd.c (print_return_value): Update.
894 * infcall.c (call_function_by_hand): Update.
895
896 2003-09-28 Mark Kettenis <kettenis@gnu.org>
897
898 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
899 regcache argument and reverse the order of the other two
900 arguments. Remove local regcache variable. Determine
901 architecture from REGCACHE. Update comments.
902 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
903 reverse the order of the other two arguments. Remove local
904 regcache variable. Determine architecture from REGCACHE. Update
905 comments.
906 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
907 prototypes. Update comments.
908 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
909 comment.
910 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
911 Update.
912 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
913 * i386-interix-nat.c (supply_fpregset): Update.
914 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
915 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
916 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
917 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
918 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
919 Update.
920 * i386obsd-tdep.c (fetch_core_registers): Update.
921 * i386v4-nat.c (supply_fpregset): Update.
922 * x86-64-linux-nat.c (supply_fpregset): Update.
923 * x86-64-linux-tdep.c (fetch_core_registers): Update.
924
925 2003-09-27 Mark Kettenis <kettenis@gnu.org>
926
927 * i386-tdep.h: Put opaque declarations in alphabetical
928 order. Remove spurious whitespace.
929 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
930 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
931 * i386-tdep.c (MM0_REGNUM): Remove define.
932 (i386_mmx_regnum_p): Add gdbarch argument.
933 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
934 Rewrite using new macro definitions for FPU/SSE registers.
935 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
936 definitions from i387-tdep.h.
937 (i386_register_name): Update.
938 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
939 new macro definitions for FPU/SSE registers.
940 (i386_extract_return_value): Determine whether floating-point
941 registers are present by examining REGCACHE's architecture.
942 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
943 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
944 FPU/SSE registers.
945 (i386_register_type): Update.
946 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
947 definitions for FPU registers. Use REGCACHE's architecture to
948 determine the appropriate register numbers.
949 (i386_pseudo_register_read, i386_pseudo_register_write,
950 i386_register_reggroup_p): Update.
951 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
952 TDEP->mm0_regnum.
953 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
954 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
955 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
956 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
957 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
958 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
959 *' to `void *'.
960 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
961 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
962 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
963 definitions for FPU/SSE registers.
964 (FXSAVE_MXCSR_ADDR): New define.
965 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
966 TDEP->mm0_regnum.
967 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
968 (I387_ST0_REGNUM): Define.
969
970 * regcache.h (get_regcache_arch): New prototype.
971 * regcache.c (get_regcache_arch): New function.
972
973 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
974 whitespace.
975
976 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
977 Initialize using ARRAY_SIZE.
978
979 2003-09-27 Andrew Cagney <cagney@redhat.com>
980
981 * arch-utils.c (deprecated_init_frame_pc_default): Rename
982 "init_frame_pc_default".
983 * arch-utils.h (deprecated_init_frame_pc_default): Update.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
985 * vax-tdep.c (vax_gdbarch_init): Update.
986 * v850-tdep.c (v850_gdbarch_init): Update.
987 * sh64-tdep.c (sh64_gdbarch_init): Update.
988 * s390-tdep.c (s390_gdbarch_init): Update.
989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
990 * mcore-tdep.c (mcore_gdbarch_init): Update.
991 * h8300-tdep.c (h8300_gdbarch_init): Update.
992 * cris-tdep.c (cris_gdbarch_init): Update.
993 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
994
995 2003-09-26 Mark Kettenis <kettenis@gnu.org>
996
997 * regset.h: New file.
998 * Makefile.in (regset_h): Add.
999
1000 2003-09-25 Andrew Cagney <cagney@redhat.com>
1001
1002 * frame.h (deprecated_frame_saved_regs): Rename
1003 get_frame_saved_regs.
1004 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
1005 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1006 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
1007 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
1008 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
1009
1010 2003-09-25 Andrew Cagney <cagney@redhat.com>
1011
1012 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
1013 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
1014 and Java.
1015 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
1016 arm*-*-* do not use the new frame code.
1017
1018 2003-09-25 David Carlton <carlton@kealia.com>
1019
1020 * c-exp.y: Remove 'register' declarations.
1021 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
1022
1023 2003-09-25 David Carlton <carlton@kealia.com>
1024
1025 * c-exp.y: Include cp-support.h. Add qualified_type.
1026 (yylex): Delete nested type hack; add comments.
1027 * cp-namespace.c (cp_lookup_nested_type): New function.
1028 * cp-support.h: Declare cp_lookup_nested_type.
1029 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
1030 instead of value_struct_elt_for_reference.
1031 * valops.c: Include cp-support.h.
1032 (value_aggregate_elt): New function.
1033 (value_namespace_elt): Ditto.
1034 (value_struct_elt_for_reference): Make static.
1035 * value.h: Delete declaration of value_struct_elt_for_reference;
1036 add declaration for value_aggregate_elt.
1037 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1038 (valops.o): Ditto.
1039
1040 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1041
1042 * stack.c: Include "reggroups.h".
1043 (frame_info): Only display registers in all_reggroup.
1044 * Makefile.in (stack.o): Update dependencies.
1045
1046 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1047
1048 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1049 "add ip, sp #n" in the prologue.
1050 (arm_scan_prologue): Ditto.
1051
1052 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1053
1054 * MAINTAINERS (write after approval): Add myself.
1055
1056 2003-09-25 Andreas Schwab <schwab@suse.de>
1057
1058 * m68k-tdep.c: Include "dwarf2-frame.h".
1059 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1060 * Makefile.in (m68k-tdep.o): Update dependencies.
1061
1062 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1063
1064 * sh-tdep.c (struct frame_extra_info): Remove.
1065 (struct sh_frame_cache): New structure.
1066 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1067 (GET_TARGET_REG): Ditto but target register.
1068 (GET_PUSHED_REG): Remove.
1069 (IS_MOV_ARG_TO_REG): New macro.
1070 (IS_MOV_ARG_TO_IND_R14): New macro.
1071 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1072 (IS_MOVW_PCREL_TO_REG): New macro.
1073 (IS_MOVL_PCREL_TO_REG): New macro.
1074 (IS_SUB_REG_FROM_SP): New macro.
1075 (IS_ARG_MOV): Remove.
1076 (IS_MOV_TO_R14): Remove.
1077 (IS_RESTORE_FP): New macro.
1078 (IS_RTS): New macro.
1079 (IS_LDS): New macro.
1080 (IS_MOV_FP_SP): New macro.
1081 (IS_ADD_REG_TO_FP): New macro.
1082 (IS_ADD_IMM_FP): New macro.
1083 (sh_skip_prologue_hard_way): Remove.
1084 (sh_saved_pc_after_call): Remove.
1085 (sh_frame_chain): Remove.
1086 (sh_find_callers_reg): Remove.
1087 (sh_nofp_frame_init_saved_regs): Remove.
1088 (sh_fp_frame_init_saved_regs): Remove.
1089 (sh_init_extra_frame_info): Remove.
1090 (sh_analyze_prologue): New function.
1091 (sh_skip_prologue): Remove deprecated code. Rely on new function
1092 sh_analyze_prologue when after_prologue fails.
1093 (sh_frame_saved_pc): Remove.
1094 (sh_alloc_frame_cache): New function.
1095 (sh_frame_cache): Ditto.
1096 (sh_frame_prev_register): Ditto.
1097 (sh_frame_this_id): Ditto.
1098 (sh_frame_unwind): New structure defining the heuristic frame
1099 sniffer interface.
1100 (sh_frame_sniffer): New function.
1101 (sh_unwind_sp): Ditto.
1102 (sh_unwind_pc): Ditto.
1103 (sh_unwind_dummy_id): Ditto.
1104 (sh_frame_base_address): Ditto.
1105 (sh_frame_base): New structure defining new frame base code.
1106 (sh_in_function_epilogue_p): New function.
1107 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1108 code and to call all new code instead. Initialize dwarf2 and
1109 heuristic frame sniffer.
1110
1111 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1112
1113 * parser-defs.h (struct exp_descriptor): New definition, containing
1114 language-specific info for printing, prefixifying, dumping, and
1115 evaluating expressions.
1116 (exp_descriptor_standard): Declare new variable.
1117 (print_subexp): Make global and declare here (from expprint.c).
1118 (dump_subexp): Ditto.
1119 (dump_subexp_body_standard): Declare.
1120 (operator_length_standard): Declare.
1121 (op_name_standard): Declare.
1122 (print_subexp): Declare.
1123 (print_subexp_standard): Declare.
1124
1125 * language.h (struct language_defn): Add la_exp_desc field to hold
1126 pointer to table for language-specific operators.
1127 Remove evaluate_exp field, which is now in struct exp_descriptor.
1128
1129 * parse.c (operator_length): Move most code to new
1130 operator_length_standard function. Use language-specific information.
1131 (operator_length_standard): New function taking most code from
1132 operator_length.
1133 (exp_descriptor_standard): New constant.
1134
1135 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1136 and OP_EXTENDED_LAST.
1137
1138 * expprint.c (print_subexp): Use language-specific print_subexp.
1139 Make global; remove static declaration.
1140 Move most code to print_subexp_standard.
1141 (print_subexp_standard): New function, containing code formerly in
1142 print_subexp.
1143 (op_name): Add expression to argument signature.
1144 Use langauge-specific op_name.
1145 Move most code to op_name_standard.
1146 (op_name_standard): New function, containing code formerly in op_name.
1147 (dump_subexp): Use new version of op_name function.
1148 Use language-specific dump_subexp_body, and move most existing code to
1149 dump_subexp_body_standard.
1150 (dump_raw_expression): Use new op_name interface.
1151 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1152 (dump_subexp_body_standard): New function, containing code formerly
1153 in dump_subexp_body.
1154
1155 * language.c (unknown_language): Add default la_exp_desc field and
1156 remove evaluate_exp field.
1157 (auto_language): Ditto.
1158 (local_language): Ditto.
1159 * f-lang.c (f_language_defn): Ditto.
1160 * c-lang.c (c_language_defn): Ditto.
1161 (cplus_language_defn): Ditto.
1162 (asm_language_defn): Ditto.
1163 (minimal_language_defn): Ditto.
1164 * p-lang.c (pascal_language_defn): Ditto.
1165 * m2-lang.c (m2_language_defn): Ditto.
1166 * objc-lang.c (objc_language_defn): Ditto.
1167
1168 * jv-lang.c (exp_descriptor_java): New variable, containing
1169 Java-specific expression evaluator.
1170 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1171 field.
1172 * scm-lang.c (exp_descriptor_scm): New variable, containing
1173 Scheme-specific expression evaluator.
1174 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1175 field.
1176 * objc-lang.c (print_object_command): Take evaluate_exp from the
1177 la_exp_desc field.
1178
1179 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1180
1181 * eval.c: Include parser-defs.h for the full declaration of
1182 la_exp_desc's type.
1183 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1184
1185 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1186
1187 * parser-defs.h (operator_length): Declare.
1188
1189 * parse.c (length_of_subexp): Use operator_length to get operator
1190 lengths and arities for operators.
1191 Move most code to new operator_length function.
1192 (operator_length): New function absorbing most code from
1193 length_of_subexp.
1194 (prefixify_subexp): Remove large case and use operator_length instead.
1195 (parse_exp_1): Use renamings:
1196 dump_prefix_expression => dump_raw_expression and
1197 dump_postfix_expression => dump_prefix_expression.
1198
1199 * expression.h (dump_prefix_expression): Rename to ...
1200 (dump_raw_expression): New name.
1201 (dump_postfix_expression): Rename to ...
1202 (dump_prefix_expression): New name.
1203
1204 * expprint.c (dump_subexp): Make global. Add comment.
1205 Move most existing code to dump_subexp_body.
1206 (dump_subexp_body): New function.
1207 (dump_prefix_expression): Rename to dump_raw_expression.
1208 Remove attempt to print the expression via print_expression: it can't
1209 work before the expression is prefixified.
1210 (dump_raw_expression): Renamed from dump_prefix_expression.
1211 (dump_postfix_expression): Rename to dump_prefix_expression, since
1212 that's what it does.
1213 Remove 'note' parameter, since this routine must be used on
1214 prefixified expression.
1215 (dump_prefix_expression): Renamed from dump_postfix_expression.
1216
1217 2003-09-22 Jim Blandy <jimb@redhat.com>
1218
1219 * dwarf2read.c (read_array_type): When building the type for an
1220 array of unspecified length, make sure to choose the upper bound
1221 so that the array's total length comes out to be zero --- that's
1222 how we represent such arrays.
1223
1224 2003-09-22 Michael Chastain <mec@shout.net>
1225
1226 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1227
1228 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1229
1230 * top.c (quit_force): Fix indirect call to quit_target so
1231 a struct qt_args pointer is passed.
1232
1233 2003-09-22 Andrew Cagney <cagney@redhat.com>
1234
1235 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1236 * arch-utils.c (init_frame_pc_noop): Delete function.
1237 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1238 "init_frame_pc".
1239 * mips-tdep.c (mips_gdbarch_init): Ditto.
1240 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1241 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1242 declaration.
1243 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1244 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1245 declaration.
1246 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1247
1248 2003-09-22 Anthony Green <green@redhat.com>
1249
1250 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1251 declaration.
1252
1253 2003-09-20 Andrew Cagney <cagney@redhat.com>
1254
1255 * breakpoint.c: Eliminate ARGSUSED.
1256 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1257 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1258 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1259 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1260 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1261 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1262 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1263 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1264 * wince.c, remote-vx.c: Ditto.
1265
1266 * cli/cli-script.c: Remove "register" attributes.
1267 * config/pa/tm-hppa.h: Ditto.
1268 * cli/cli-decode.c: Ditto.
1269 * cli/cli-cmds.c: Ditto.
1270
1271 2003-09-19 Andrew Cagney <cagney@redhat.com>
1272
1273 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1274 DEPRECATED_NPC_REGNUM.
1275 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1276
1277 2003-09-19 Christopher Faylor <cgf@redhat.com>
1278
1279 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1280
1281 2003-09-19 Jim Blandy <jimb@redhat.com>
1282
1283 * macrotab.c (macro_include): Use the correct comparison to find
1284 the appropriate place for this inclusion in the list.
1285
1286 2003-09-19 Andrew Cagney <cagney@redhat.com>
1287
1288 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1289 (DEPRECATED_HPUX_TEXT_END): Define.
1290 (deprecated_hpux_text_end): Declare.
1291 (struct target_ops): Declare opaque.
1292 * hppah-nat.c (text_end): Make static.
1293 (deprecated_hpux_text_end): New function.
1294 * exec.c (text_end): Delete global variable.
1295 (NEED_TEXT_START_END): Do not define.
1296 (exec_file_attach): Replace code computing "text_end" code with
1297 call to DEPRECATED_HPUX_TEXT_END.
1298
1299 2003-09-19 Andrew Cagney <cagney@redhat.com>
1300
1301 * utils.c (align_up, align_down): New functions.
1302 * defs.h (align_up, align_down): Declare.
1303 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1304 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1305 and "align_down".
1306 (round_up, round_down): Delete functions.
1307 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1308 "align_down".
1309 (ROUND_DOWN, ROUND_UP): Delete macros.
1310 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1311 * h8300-tdep.c: Replace "round_up" and "round_down" with
1312 "align_up" and "align_down".
1313 (round_up, round_down): Delete macros.
1314 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1315 "align_down".
1316 (ROUND_UP, ROUND_DOWN): Delete macros.
1317
1318 2003-09-18 J. Brobecker <brobecker@gnat.com>
1319
1320 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1321 hard-coded constant. Use the proper machine name instead.
1322
1323 2003-09-17 Andrew Cagney <cagney@redhat.com>
1324
1325 * sparc-tdep.c (legacy_register_name): Delete function.
1326 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1327 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1328 * infcmd.c (gdb_register_name): Delete variable.
1329 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1330 REGISTER_NAME and "tm.h".
1331 * gdbarch.h, gdbarch.c: Regenerate.
1332 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1333 REGISTER_NAMES in comments.
1334 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1335 * m68klinux-nat.c (regmap): Ditto.
1336
1337 2003-09-17 Jim Blandy <jimb@redhat.com>
1338
1339 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1340
1341 2003-09-17 Andrew Cagney <cagney@redhat.com>
1342
1343 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1344 (ppcnbsd_init_abi): Set "use_struct_convention" to
1345 "ppcnbsd_use_struct_convention".
1346
1347 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1348
1349 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1350 * gdbarch.h, gdbarch.c: Regenerate.
1351 (stabs_argument_has_addr): New architecture method.
1352 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1353 * arch-utils.c: Include "buildsym.h".
1354 (default_stabs_argument_has_addr): New function.
1355 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1356 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1357
1358 2003-09-17 Andrew Cagney <cagney@redhat.com>
1359
1360 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1361 * gdbarch.h, gdbarch.c: Regenerate.
1362 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1363 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1364 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1365 * sparcnbsd-tdep.c: Update.
1366
1367 2003-09-17 Andrew Cagney <cagney@redhat.com>
1368
1369 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1370 * gdbarch.h, gdbarch.c: Regenerate.
1371 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1372 * d10v-tdep.c, frame.c: Update.
1373 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1374 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1375 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1376 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1377 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1378 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1379 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1380 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1381 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1382 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1383 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1384 * config/pa/nm-hppah.h: Update.
1385
1386 2003-09-16 Andrew Cagney <cagney@redhat.com>
1387
1388 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1389 "use_struct_convention" to "ppc_linux_use_struct_convention".
1390 (ppc_linux_use_struct_convention): New function.
1391 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1392 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1393 "rs6000_use_struct_convention".
1394 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1395 declaration.
1396 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1397 Delete function.
1398
1399 2003-09-16 Andrew Cagney <cagney@redhat.com>
1400
1401 * buildsym.c: Remove more occurances of "register".
1402 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1403 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1404 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1405 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1406 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1407 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1408 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1409 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1410
1411 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1412
1413 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1414 numbers to enumeration values.
1415 * sh-tdep.c: Accomodate above change.
1416 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1417 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1418 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1419 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1420 (IS_FPUSH): Rename from IS_FMOV.
1421 (sh_extract_struct_value_address): Remove useless comment.
1422 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1423 instead of own local values.
1424 (sh_dump_tdep): Remove.
1425 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1426 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1427
1428 2003-09-15 Andrew Cagney <cagney@redhat.com>
1429
1430 * doublest.c (convert_floatformat_to_doublest): No longer need to
1431 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1432
1433 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1434
1435 * values.c (unpack_double): Call floatformat_is_valid.
1436
1437 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1438
1439 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1440 ps_strings into a long.
1441
1442 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1443 _initialize_am64fbsd_nat.
1444
1445 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1446
1447 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1448 associated with DW_AT_ranges attribute is out of bounds.
1449
1450 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1451
1452 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1453
1454 2003-09-14 Michael Chastain <mec@shout.net>
1455
1456 * config/m68k/nm-apollo68v.h: Delete.
1457 * config/m68k/xm-apollo68v.h: Delete.
1458
1459 2003-09-14 Andrew Cagney <cagney@redhat.com>
1460
1461 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1462 * dcache.c: Update copyrights and descriptions.
1463 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1464
1465 2003-09-14 Andrew Cagney <cagney@redhat.com>
1466
1467 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1468 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1469
1470 2003-09-14 Andrew Cagney <cagney@redhat.com>
1471
1472 * alpha-nat.c: Remove some occurances of "register".
1473 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1474 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1475 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1476 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1477 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1478 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1479 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1480 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1481 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1482 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1483 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1484 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1485 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1486 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1487 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1488 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1489 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1490 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1491 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1492 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1493 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1494 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1495
1496 2003-09-13 Andrew Cagney <cagney@redhat.com>
1497
1498 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1499 * ppc-tdep.h (struct regcache): Declare opaque.
1500 * objfiles.h (struct objfile_data): Declare opaque.
1501 * cp-support.h (struct objfile): Declare opaque.
1502 * linux-nat.h (target_waitstatus): Declare opaque.
1503
1504 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1505
1506 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1507 (stabs_argument_has_addr): New architecture method.
1508 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1509 * arch-utils.c: Include "buildsym.h".
1510 (default_stabs_argument_has_addr): New function.
1511 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1512 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1513
1514 * cris-tdep.c (cris_gdbarch_init): Set
1515 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1516 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1517 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1518 * mips-tdep.c (mips_gdbarch_init): Likewise.
1519 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1520 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1521
1522 2003-09-13 Andrew Cagney <cagney@redhat.com>
1523
1524 * values.c (using_struct_return): Delete "function" and "funcaddr"
1525 parameters.
1526 * value.h (using_struct_return): Update declaration.
1527 * infcmd.c (finish_command_continuation): Update.
1528 (finish_command): Update.
1529 * infcall.c (call_function_by_hand): Update.
1530 * eval.c (evaluate_subexp_standard): Update.
1531
1532 2003-09-13 Christopher Faylor <cgf@redhat.com>
1533
1534 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1535 SSE registers since gdb will not operate correctly without this.
1536 Restore include file ordering munged in previous change.
1537 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1538
1539 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1540
1541 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1542 REG_STRUCT_HAS_ADDR.
1543 * gdbarch.c, gdbarch.h: Updated.
1544 * infcall.c (call_function_by_hand): Update.
1545 * stabsread.c (define_symbol): Updated.
1546
1547 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1548
1549 2003-09-12 Christopher Faylor <cgf@redhat.com>
1550
1551 * win32-nat.c: Reorganize so that defines used by target headers are
1552 actually defined by the system headers.
1553 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1554 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1555
1556 2003-09-12 Jim Blandy <jimb@redhat.com>
1557
1558 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1559 the file has no .data, .bss, or .rodata sections. Instead wait
1560 until we see a variable alleged to live in one of those sections.
1561
1562 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1563 .bss section, presume that any variables we find live in the
1564 .rodata section.
1565
1566 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1567 offsets for global and static variables.
1568
1569 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1570 symbol types are, by definition, in the .data section, so it is
1571 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1572 If there is no .data section, there should be no N_DATA or N_DATA
1573 | N_EXT symbols.
1574
1575 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1576
1577 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1578 (amd64fbsd_sigcontext_addr): Rewrite.
1579 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1580 with correct values.
1581 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1582 (amd64fbsd_init_abi): Fix typo.
1583
1584 2003-09-12 Andrew Cagney <cagney@redhat.com>
1585
1586 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1587 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1588
1589 2003-09-12 Andrew Cagney <cagney@redhat.com>
1590
1591 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1592 "entry_file_highpc". Update comments.
1593 * defs.h (deprecated_inside_entry_file): Rename
1594 "inside_entry_file".
1595 * blockframe.c (deprecated_inside_entry_file): Rename
1596 "inside_entry_file".
1597 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1598 * vax-tdep.c (vax_frame_chain): Update.
1599 * sh64-tdep.c (sh64_frame_chain): Update.
1600 * sh-tdep.c (sh_frame_chain): Update.
1601 * rs6000-tdep.c (rs6000_frame_chain): Update.
1602 * ns32k-tdep.c (ns32k_frame_chain): Update.
1603 * mips-tdep.c (mips_frame_chain): Update.
1604 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1605 * m32r-tdep.c (m32r_frame_this_id): Update.
1606 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1607 * frv-tdep.c (frv_frame_this_id): Update.
1608 * d10v-tdep.c (d10v_frame_this_id): Update.
1609 * cris-tdep.c (cris_frame_chain): Update.
1610 * blockframe.c (legacy_frame_chain_valid): Update.
1611 * avr-tdep.c (avr_frame_this_id): Update.
1612 * arm-tdep.c (arm_prologue_this_id): Update.
1613 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1614 * objfiles.c (objfile_relocate): Update.
1615 * mipsread.c (mipscoff_symfile_read): Update.
1616 (mipscoff_symfile_read): Update.
1617 * mdebugread.c (parse_partial_symbols): Update.
1618 * dwarfread.c (read_file_scope): Update.
1619 * dwarf2read.c (read_file_scope): Update.
1620 * dbxread.c (read_dbx_symtab): Update.
1621 (read_dbx_symtab): Update.
1622 * coffread.c (complete_symtab): Update.
1623
1624 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1625
1626 * top.c (quit_target): New static helper function.
1627 (quit_force): Moved code to quit_target(). Call quit_target()
1628 via catch_errors() to catch errors during quit.
1629
1630 2003-09-11 David Carlton <carlton@kealia.com>
1631
1632 * buildsym.c (finish_block): Use allocate_block to allocate the
1633 block.
1634 * mdebugread.c (new_block): Add FIXME.
1635
1636 2003-09-11 David Carlton <carlton@kealia.com>
1637
1638 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1639 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1640 (recursive_dump_type): Ditto.
1641 * printcmd.c (print_formatted): Ditto.
1642 * typeprint.c (print_type_scalar): Ditto.
1643 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1644 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1645 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1646 maint_cplus_cmd_list.
1647 * cp-support.c: Make maint_cplus_cmd_list extern.
1648 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1649 command.h.
1650 (lookup_symbol_file): Look in possible namespace blocks when
1651 appropriate.
1652 (initialize_namespace_symtab): New.
1653 (get_possible_namespace_block, free_namespace_block)
1654 (check_possible_namespace_symbols)
1655 (check_possible_namespace_symbols_loop)
1656 (check_one_possible_namespace_symbol)
1657 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1658 (_initialize_cp_namespace): Ditto.
1659 * block.h: Declare allocate_block.
1660 * block.c (allocate_block): New.
1661 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1662 allocate_block.
1663 * symfile.h: Update declaration of add_psymbol_to_list.
1664 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1665 question.
1666 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1667 scan_partial_symbols_call.
1668 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1669 helper functions.
1670 (add_partial_symbol): If necessary, scan mangled names for names
1671 of namespaces.
1672 (add_partial_namespace): Add NAMESPACE argument; generate partial
1673 symbols associated to namespaces.
1674 (add_partial_enumeration): Add NAMESPACE argument.
1675 (new_symbol): Allow namespace syms.
1676 (read_namespace): Generate namespace syms.
1677 * objfiles.h: Add opaque declaration of struct symtab.
1678 (struct objfile): Add cp_namespace_symtab member.
1679 * objfiles.c (allocate_objfile): Set
1680 objfile->cp_namespace_symtab.
1681 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1682 dictionary_h, command_h.
1683
1684 2003-09-11 Andrew Cagney <cagney@redhat.com>
1685
1686 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1687 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1688 near the function's end.
1689 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1690 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1691 regcache_raw_write_signed to set SP_REGNUM.
1692
1693 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1694
1695 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1696 orig_addrs is set up properly.
1697
1698 2003-09-11 Andrew Cagney <cagney@redhat.com>
1699
1700 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1701 * gdbarch.h, gdbarch.c: Re-generate.
1702 * infcall.c (call_function_by_hand): Update.
1703 * hppa-tdep.c (hppa_push_arguments): Update.
1704 * ada-lang.c (place_on_stack): Update.
1705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1706 * sparc-tdep.c (sparc_gdbarch_init): Update.
1707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1708 * hppa-tdep.c (hppa_gdbarch_init): Update.
1709 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1710 stack_align.
1711
1712 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1713
1714 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1715 register do need a frame.
1716
1717 2003-09-11 Andrew Cagney <cagney@redhat.com>
1718
1719 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1720 buildable since GDB 5.0.
1721 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1722 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1723 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1724 * irix4-nat.c: Delete file.
1725 * config/mips/irix4.mh: Delete file.
1726 * config/mips/irix3.mh: Delete file.
1727 * config/mips/irix3.mt: Delete file.
1728 * config/mips/tm-irix3.h: Delete file.
1729 * config/mips/nm-irix3.h: Delete file.
1730 * config/mips/xm-irix3.h: Delete file.
1731 * config/mips/nm-irix4.h: Delete file.
1732 * config/mips/xm-irix4.h: Delete file.
1733 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1734
1735 2003-09-10 J. Brobecker <brobecker@gnat.com>
1736
1737 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1738 * Makefile.in (hppa-tdep.o): Update dependencies.
1739
1740 2003-09-10 James E Wilson <wilson@specifixinc.com>
1741
1742 * MAINTAINERS: Change my e-mail address. Move to paper trail
1743 section.
1744
1745 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1746
1747 * MAINTAINERS (frv): New ISA entry.
1748
1749 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1750
1751 * frv-tdep.c (dis-asm.h): Include.
1752 * Makefile.in (frv-tdep.o): Update dependencies.
1753
1754 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1755
1756 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1757 Fix typo for high range of floating registers.
1758
1759 2003-09-09 David Carlton <carlton@kealia.com>
1760
1761 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1762 highpc initialization here out of scan_partial_symbols.
1763 (scan_partial_symbols): Restructure into a recursive version,
1764 calling add_partial_namespace and add_partial_enumeration when
1765 appropriate.
1766 (add_partial_namespace): New.
1767 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1768
1769 2003-09-09 Andrew Cagney <cagney@redhat.com>
1770
1771 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1772 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1773 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1775
1776 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1777 (rs6000_push_dummy_call): Set the "TOC" register.
1778
1779 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1780 methods "max_register_raw_size", "max_register_virtual_size" or
1781 "register_virtual_size".
1782
1783 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1784
1785 * MAINTAINERS: Update my e-mail address.
1786
1787 2003-09-09 Andrew Cagney <cagney@redhat.com>
1788
1789 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1790 (rs6000_push_dummy_call): Store the struct return address.
1791 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1792
1793 2003-09-09 Andrew Cagney <cagney@redhat.com>
1794
1795 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1796 "ppc_sysv_abi_push_arguments".
1797 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1798 "ppc_sysv_abi_push_arguments".
1799 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1800 instead of "push_arguments".
1801 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1802
1803 2003-09-09 Andrew Cagney <cagney@redhat.com>
1804
1805 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1806 instead of CALL_DUMMY_ADDRESS.
1807
1808 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1809
1810 * p-lang.c: Eliminate "register".
1811 * c-lang.c: Ditto.
1812 * expprint.c: Ditto.
1813 * f-lang.c: Ditto.
1814 * jv-lang.c: Ditto.
1815 * language.c: Ditto.
1816 * m2-lang.c: Ditto.
1817 * parse.c: Ditto.
1818 * scm-lang.c: Ditto.
1819 * objc-lang.c: Ditto.
1820
1821 2003-09-09 Nick Clifton <nickc@redhat.com>
1822
1823 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1824
1825 2003-09-04 Andrew Cagney <cagney@redhat.com>
1826
1827 * avr-tdep.c: Include "dis-asm.h".
1828 * cris-tdep.c: Include "dis-asm.h".
1829 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1830 instead of corresponding typedef.
1831 * h8300-tdep.c: Include "dis-asm.h".
1832 * ia64-tdep.c: Include "dis-asm.h".
1833 * i386-tdep.c: Include "dis-asm.h".
1834 (i386_print_insn): Use "struct disassemble_info" instead of
1835 corresponding typedef.
1836 * m68k-tdep.c: Include "dis-asm.h".
1837 * mcore-tdep.c: Include "dis-asm.h".
1838 * mips-tdep.c: Include "dis-asm.h".
1839 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1840 instead of corresponding typedef.
1841 * ns32k-tdep.c: Include "dis-asm.h".
1842 * s390-tdep.c: Include "dis-asm.h".
1843 * sparc-tdep.c: Include "dis-asm.h".
1844 * vax-tdep.c: Include "dis-asm.h".
1845 * v850-tdep.c: Include "dis-asm.h".
1846 * mn10300-tdep.c: Include "dis-asm.h".
1847 * rs6000-tdep.c: Include "dis-asm.h".
1848 * xstormy16-tdep.c: Include "dis-asm.h".
1849 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1850 print_insn_xstormy16.
1851 * Makefile.in (v850-tdep.o): Update dependencies.
1852 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1853 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1854 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1855 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1856 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1857 (gdbarch_h): Remove $(dis_asm_h).
1858 * disasm.c: Include "dis-asm.h".
1859 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1860 corresponding typedef.
1861 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1862 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1863 * gdbarch.sh: Do not include "dis-asm.h".
1864 (struct disassemble_info): Declare opaque.
1865 (TARGET_PRINT_INSN): Update declaration.
1866 * gdbarch.h, gdbarch.c: Re-generate.
1867
1868 2003-09-08 Andrew Cagney <cagney@redhat.com>
1869
1870 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1871 CALL_DUMMY_ADDRESS, change to a predicate.
1872 * gdbarch.h, gdbarch.c: Re-generate.
1873 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1874 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1875 * infcall.c (call_function_by_hand): Ditto.
1876 * sparc-tdep.c (sparc_push_return_address): Ditto.
1877 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1878 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1879 CALL_DUMMY_ADDRESS with entry_point_address.
1880 * v850-tdep.c (v850_push_return_address): Ditto.
1881 * s390-tdep.c (s390_push_return_address): Ditto.
1882 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1883 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1884 * mcore-tdep.c (mcore_push_return_address): Ditto.
1885 * cris-tdep.c (cris_push_return_address): Ditto.
1886 * arm-tdep.c (arm_push_return_address): Ditto.
1887
1888 2003-09-08 Andrew Cagney <cagney@redhat.com>
1889
1890 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1891 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1892 and REG_UNMODIFIED to REG_SAME_VALUE.
1893 (execute_cfa_program): Update.
1894 (dwarf2_frame_cache): Update. Initialize table to
1895 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1896 location.
1897 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1898
1899 2003-09-08 Andrew Cagney <cagney@redhat.com>
1900
1901 * gnu-nat.c: Remove "inline" function attribute.
1902 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1903
1904 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1905
1906 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1907 target.
1908
1909 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1910
1911 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1912 (frame_extra_info): Rename this struct to frv_unwind_cache.
1913 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1914 Add fields ``prev_sp'' and ``base''.
1915 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1916 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1917 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1918 Delete.
1919 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1920 Revise all callers. Fill in the unwind cache argument and make
1921 other adjustments to account for new frame mechanisms.
1922 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1923 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1924 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1925 (frv_frame_unwind, frv_frame_base): New structs.
1926 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1927 additional arguments expected by this method and adjust function
1928 body accordingly.
1929 (frv_gdbarch_init): Remove calls to the following functions:
1930 set_gdbarch_deprecated_init_frame_pc(),
1931 set_gdbarch_deprecated_saved_pc_after_call(),
1932 set_gdbarch_deprecated_frame_chain(),
1933 set_gdbarch_deprecated_frame_saved_pc(),
1934 set_gdbarch_deprecated_frame_init_saved_regs(),
1935 set_gdbarch_deprecated_push_arguments(),
1936 set_gdbarch_deprecated_push_return_address(),
1937 set_gdbarch_deprecated_pop_frame(),
1938 set_gdbarch_deprecated_call_dummy_words(),
1939 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1940 set_gdbarch_deprecated_init_extra_frame_info(),
1941 set_gdbarch_deprecated_dummy_write_sp(), and
1942 set_gdbarch_deprecated_pc_in_call_dummy().
1943 Add calls to the following functions:
1944 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1945 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1946 frame_base_set_default().
1947 * Makefile.in (frv-tdep.o): Update dependencies.
1948
1949 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1950
1951 * dwarf2-frame.c (read_encoded_value): Add support for
1952 DW_EH_PE_aligned encoding.
1953
1954 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * infrun.c (normal_stop): Don't print a message if the inferior
1957 has exited.
1958
1959 2003-09-08 Jim Blandy <jimb@redhat.com>
1960
1961 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1962 * dbxread.c: #include "gdb_assert.h".
1963 (read_dbx_symtab): If the objfile has no .data section, use the
1964 section index for the .bss section instead.
1965
1966 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1967
1968 * frame.c (deprecated_safe_get_selected_frame): New function.
1969 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1970 * findvar.c (read_var_value): Call it.
1971
1972 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1973
1974 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1975 (sh64-tdep.o): Add dependencies.
1976 * configure.tgt: Add FIXME to sh-*-linux*.
1977 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1978 (sh_gdbarch_init): Always set correct sh_show_regs function
1979 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1980 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1981 * sh64-tdep.c: New file, containing all sh64 related code from
1982 sh-tdep.c.
1983 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1984 * config/sh/linux.mt (TDEPFILES): Ditto.
1985 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1986 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1987 * config/sh/wince.mt (TDEPFILES): Ditto.
1988
1989 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1990
1991 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1992 (stop_wait_callback): Handle !lp->signalled also.
1993 (lin_lwp_has_pending, flush_callback): New functions.
1994 (lin_lwp_wait): Call flush_callback.
1995 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1996 (linux_proc_pending_signals): New function.
1997 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1998
1999 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
2000
2001 From Nick Kelsey <nickk@ubicom.com>:
2002 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
2003 when the stop PC is at the beginning of a function also.
2004
2005 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
2006
2007 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
2008 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
2009
2010 2003-09-06 Mark Kettenis <kettenis@gnu.org>
2011
2012 * sol-thread.c: Include "gdb_string.h".
2013
2014 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
2015
2016 * gcore.c: Reorder include files in alphabetical order. Include
2017 "gdb_assert.h". Various coding style fixes.
2018 (derive_stack_segment, derive_heap_segment): Replace check for
2019 non-null BOTTOM and TOP with gdb_assert.
2020 (derive_heap_segment): Replace check for successful creation of
2021 ZERO with gdb_assert.
2022 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
2023
2024 2003-09-04 Andrew Cagney <cagney@redhat.com>
2025
2026 * thread-db.c (verbose_dlsym): New function.
2027 (thread_db_load): Use verbose_dlsym
2028 (thread_db_new_objfile): Print that libthread_db was loaded, and
2029 that thread debugging was enabled.
2030
2031 2003-09-04 Andrew Cagney <cagney@redhat.com>
2032
2033 * configure.tgt: Add "mips64*-*-*" target. Delete
2034 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2035 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2036 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2037 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2038 mips*-sony-*, and mips64*-*-elf* targets.
2039 * config/mips/embedl.mt: Delete file.
2040 * config/mips/embedl64.mt: Delete file.
2041 * config/mips/mips.mt: Delete file.
2042 * config/mips/mips64.mt: Delete file.
2043 * config/mips/tm-embed.h: Delete file.
2044 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2045 * config/mips/embed64.mt: Delete out-of-date comment.
2046
2047 2003-09-04 Andrew Cagney <cagney@redhat.com>
2048
2049 * hppa-tdep.c (hppa_gdbarch_init): Set
2050 "have_nonsteppable_watchpoint".
2051 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2052 * mips-tdep.c (mips_dump_tdep): Do not print
2053 HAVE_NONSTEPPABLE_WATCHPOINT.
2054 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2055 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2056 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2057 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2058
2059 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2062 unused code. Add comment.
2063
2064 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2065
2066 * breakpoint.c (watchpoint_check): Check for pc being in an
2067 epilogue if watchpoint frame couldn't be found.
2068
2069 2003-09-04 Andrew Cagney <cagney@redhat.com>
2070
2071 * Makefile.in: Re-generate all dependencies.
2072
2073 2003-09-03 Andrew Cagney <cagney@redhat.com>
2074
2075 * arch-utils.h (legacy_print_insn): Delete declaration.
2076 * arch-utils.c (legacy_print_insn): Delete function.
2077 * disasm.c (deprecated_tm_print_insn_info): Delete.
2078 (_initialize_disasm): Delete function, contained code initializing
2079 deprecated_tm_print_insn_info.
2080 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2081 (deprecated_tm_print_insn_info): Delete.
2082 (TARGET_PRINT_INSN): Do not provide a default.
2083 * gdbarch.h, gdbarch.c: Re-generate.
2084
2085 2003-09-03 Andrew Cagney <cagney@redhat.com>
2086
2087 * disasm.c (fprintf_disasm): New function.
2088 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2089 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2090 reverts 2003-08-14 change.
2091 (_initialize_disasm): Call "init_disassemble_info", instead of
2092 INIT_DISASSEMBLE_INFO_NO_ARCH.
2093
2094 2003-09-03 Michael Snyder <msnyder@redhat.com>
2095
2096 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2097
2098 2003-09-03 Andrew Cagney <cagney@redhat.com>
2099
2100 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2101 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2102 * symfile.c (syms_from_objfile): Update.
2103 (reread_symbols): `Update
2104 * exec.c (exec_file_attach): Update.
2105 (exec_file_attach): Update.
2106 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2107 2003-08-29 change.
2108 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2109
2110 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2111
2112 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2113 trad-frame.h.
2114 (arm_get_cache): Delete macro.
2115 (struct arm_prologue_cache): Update comments. Make saved_regs into
2116 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2117 to prev_sp.
2118 (thumb_scan_prologue): Update for cache changes. Don't call
2119 DEPRECATED_PC_IN_CALL_DUMMY.
2120 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2121 argument and use it in desperation search for our prologue. Do not
2122 search past the specified PC.
2123 (arm_make_prologue_cache): Simplify.
2124
2125 (arm_prologue_this_id, arm_prologue_prev_register)
2126 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2127 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2128 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2129 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2130 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2131
2132 (arm_frame_chain_valid, arm_find_callers_reg)
2133 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2134 (arm_pop_frame): Delete obsolete methods.
2135 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2136
2137 (arm_gdbarch_init): Update for new frame methods. Register prologue
2138 and sigtramp unwinders. Set the default frame base method.
2139
2140 * Makefile.in (arm-tdep.o): Update dependencies.
2141 * varobj.c (find_frame_addr_in_frame_chain): Call
2142 get_frame_base_address.
2143 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2144
2145 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2146
2147 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2148 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2149 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2150 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2151 Take NEXT_FRAME and CACHE arguments. Call
2152 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2153 Set unwound_pc in CACHE instead of modifying the frame argument.
2154 Don't bother checking the frame type when looking for sigtramp
2155 frames.
2156 (arm_make_prologue_cache, arm_frame_chain)
2157 (arm_init_extra_frame_info): New functions.
2158
2159 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * arm-tdep.c (arm_get_cache): Define.
2162 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2163 unwound_sp, unwound_pc, and saved_regs.
2164 (thumb_scan_prologue): Take a cache instead of the frame.
2165 (arm_scan_prologue): Likewise.
2166 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2167 instead of a temporary frame.
2168 (arm_init_extra_frame_info): Allocate and use a cache.
2169 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2170
2171 2003-09-03 Andrew Cagney <cagney@redhat.com>
2172
2173 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2174 * config/mips/wince.mt (TM_CLIBS): Ditto.
2175 * config/sh/wince.mt (TM_CLIBS): Ditto.
2176 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2177 * config/sparc/sp64.mt (CC): Delete.
2178
2179 2003-09-03 Andrew Cagney <cagney@redhat.com>
2180
2181 * defs.h: Do not include "arch-utils.h".
2182 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2183 GDB_MULTI_ARCH_PURE.
2184 * configure.in (GDB_MULTI_ARCH): Do not define.
2185 * configure, config.in: Regenerate.
2186 * configure.tgt: Do not set variable "gdb_multi_arch".
2187 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2188 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2189 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2190 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2191 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2192 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2193 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2194 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2195 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2196 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2197 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2198 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2199 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2200 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2201 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2202 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2203 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2204 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2205
2206 2003-08-30 Michael Chastain <mec@shout.net>
2207
2208 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2209 * config/m68k/nm-hp300hpux.h: Delete.
2210 * config/m68k/tm-hp300hpux.h: Delete.
2211 * config/m68k/xm-hp300hpux.h: Delete.
2212 * config/m68k/xm-hp300bsd.h: Delete.
2213 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2214 tm-hp300hpux.h, xm-hp300hpux.h.
2215 * somsolib.c: Remove comment about hp300 shared libraries.
2216
2217 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2218
2219 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2220 Only define PTRACE_GET_THREAD_AREA is not already defined.
2221 Various style fixes in code and comments and some additional
2222 spelling fixes in comments. Move after functions dealing with
2223 debug registers.
2224 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2225 Fix coding-style.
2226
2227 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2228 frame_unwind_register_unsigned instead of
2229 frame_unwind_unsigned_register.
2230
2231 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2232
2233 * configure.in: Search for gethostbyname in libnsl.
2234 * configure: Regenerated.
2235
2236 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2237
2238 * configure.in: Remove redundant AC_MSG_RESULT in check for
2239 uintptr_t in stdint.h.
2240 * configure: Regenerated.
2241
2242 * amd64-nat.h (struct regcache): Add opaque declaration.
2243
2244 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2245 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2246 Change "register array" to "register cache" in comments.
2247 (x86_64_linux_gregset64_reg_offset): New variable.
2248 (GETREGS_SUPPLIES): Remove macro.
2249 (supply_gregset): Call amd64_supply_native_gregset instead of
2250 x86_64_linux_supply_gregset.
2251 (fill_gregset): Rename `regno' to `regnum'. Call
2252 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2253 (store_regs): Rename `regno' to `regnum'.
2254 (store_fpregs): Rename `regno' to `regnum'.
2255 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2256 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2257 Reorganize function a bit.
2258 (store_inferior_registers): Rename `regno' to `regnum'. Use
2259 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2260 Reorganize function a bit.
2261 (_initialize_x86_64_linux_nat): New function.
2262 * config/i386/x86-64linux.mh.
2263
2264 2003-08-29 Andrew Cagney <cagney@redhat.com>
2265
2266 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2267 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2268 (target_remove_watchpoint): Delete macro.
2269 (target_insert_watchpoint): Delete macro.
2270 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2271 (remote_mips_stopped_by_watchpoint): Delete declaration.
2272 (remote_mips_remove_watchpoint): Delete declaration.
2273 (remote_mips_set_watchpoint): Delete declaration.
2274 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2275 * remote-mips.c (_initialize_remote_mips): Set
2276 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2277 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2278 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2279 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2280 (mips_stopped_by_watchpoint): Rename
2281 remote_mips_stopped_by_watchpoint.
2282 (mips_can_hardware_watchpoint): Rename
2283 remote_mips_can_use_hardware_watchpoint, update function
2284 signature.
2285
2286 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2287
2288 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2289 USER_DS. We haven't given them a register number yet.
2290
2291 * amd64-nat.h: New file.
2292 * amd64-nat.c: New file.
2293 * amd64fbsd-nat.c: Include "amd64-nat.h".
2294 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2295 (amd64fbsd32_r_reg_offset): New variable.
2296 (supply_gregset): Simply call amd64_supply_native_gregset.
2297 (fill_gregset): Rename `regno' to `regnum'. Simply call
2298 amd64_collect_native_gregset.
2299 (fill_fpregset): Rename `regno' to `regnum'.
2300 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2301 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2302 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2303 `fpregset_t'. Call amd64_supply_native_gregset instead of
2304 supply_gregset. Call x86_64_supply_fxsave instead of
2305 supply_fpregset.
2306 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2307 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2308 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2309 `fpregset_t'. Call amd64_collect_native_gregset instead of
2310 fill_gregset. Call x86_64_collect_fxsave instead of
2311 fill_fpregset.
2312 (_initialize_am64fbsd_nat): Initialize
2313 amd64_native_gregset32_reg_offset and
2314 amd64_native_gregset64_reg_offset.
2315 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2316
2317 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2318 null pointer. Fix typo in comment.
2319
2320 * regcache.c (supply_register): Reimplement to call
2321 regcache_raw_supply.
2322 (regcache_collect): Reimplement by calling regcache_raw_collect.
2323
2324 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2325
2326 * regcache.c (register_buffer): Consitify first argument.
2327 (regcache_raw_supply, regcache_raw_collect): New
2328 functions.
2329
2330 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2331
2332 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2333 by Nathan J. Williams.
2334
2335 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2336
2337 * lin-lwp.c (wait_lwp): New function, copied from
2338 stop_wait_callback. Clean up.
2339 (stop_wait_callback): Use wait_lwp.
2340
2341 2003-08-28 Andrew Cagney <cagney@redhat.com>
2342
2343 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2344 flavour and disassembler options.
2345 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2346 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2347 deprecated_tm_print_insn_info.
2348
2349 2003-08-27 Andrew Cagney <cagney@redhat.com>
2350
2351 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2352 Use target_read_memory.
2353 (s390_get_frame_info): Update. Do not reference
2354 deprecated_tm_print_insn_info.
2355 (s390_check_function_end, s390_is_sigreturn): Ditto.
2356
2357 2003-08-27 Andrew Cagney <cagney@redhat.com>
2358
2359 * Makefile.in (cris-tdep.o): Update dependencies.
2360 * cris-tdep.c: Include "gdb_assert.h".
2361 (cris_gdbarch_init): Set print_insn.
2362 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2363 (cris_delayed_get_disassembler): Simplify, directly call the
2364 disassembler returned by cris_get_disassembler.
2365 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2366 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2367 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2368 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2369 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2370 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2371 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2372 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2373 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2374 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2375 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2376 (gdb_print_insn_sparc): Delete function.
2377 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2378 deprecated_tm_print_insn_info.
2379 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2380 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2381 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2383 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2384 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2385 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2386 (s390_gdbarch_init): Set print_insn.
2387
2388 2003-08-27 Andrew Cagney <cagney@redhat.com>
2389
2390 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2391 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2392 * infcall.c (call_function_by_hand): Convert the entry point
2393 address into a code address.
2394
2395 2003-08-27 Andrew Cagney <cagney@redhat.com>
2396
2397 * dsrec.c: Include "gdb_string.h".
2398 * Makefile.in (dsrec.o): Update dependencies.
2399
2400 2003-08-27 Michael Chastain <mec@shout.net>
2401
2402 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2403
2404 2003-08-27 Andrew Cagney <cagney@redhat.com>
2405
2406 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2407 (alpha_osf1_init_abi): Do not set call_dummy_address.
2408
2409 2003-08-27 David Carlton <carlton@kealia.com>
2410
2411 From Randolph Chung <tausq@debian.org>:
2412 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2413 compiles with -Wformat-nonliteral -Werror.
2414
2415 2003-08-26 Jim Blandy <jimb@redhat.com>
2416
2417 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2418 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2419 bfd_lookup_symbol, since we only want symbols in code sections.
2420 (look_for_base): Pass zero as the SECT_FLAGS argument to
2421 bfd_lookup_symbol, since we're not concerned about which section
2422 the symbol is in.
2423
2424 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2425
2426 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2427 we are frameless or the return address register is already known.
2428
2429 2003-08-26 Andrew Cagney <cagney@redhat.com>
2430
2431 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2432 in size. Add comments.
2433
2434 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2435
2436 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2437 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2438
2439 2003-08-26 Jason Merrill <jason@redhat.com>
2440
2441 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2442 case out of #ifdef MIPS block.
2443
2444 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2445
2446 PR java/1322
2447 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2448 available before calling SECT_OFF_TEXT.
2449 * PROBLEMS: Remove description of java/1322.
2450
2451 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2452
2453 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2454 bof, and nat0-nat127 as pseudo-registers.
2455 (ia64_frame_cache): New struct used to cache frame info.
2456 (ia64_register_reggroup_p): New routine used to override default
2457 register grouping so registers without names are still saved and
2458 restored.
2459 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2460 pseudo values.
2461 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2462 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2463 (ia64_alloc_frame_cache): New routine to create a new
2464 ia64_frame_cache.
2465 (examine_prologue): Change prototype to add next_frame pointer.
2466 Assume frameless until otherwise proven. Verify that the cfm for
2467 current frame matches the cfm that should occur for the prologues
2468 alloc insn and if equal, mark as not frameless. At end of routine,
2469 if not frameless, calculate registers for the previous frame and store
2470 in the cache, if a cache is provided.
2471 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2472 and pass 0 for next_frame.
2473 (ia64_store_return_value): Change to use convert_typed_floating()
2474 instead of calling ia64_convert_to_raw().
2475 (ia64_extract_return_value): Change to use convert_typed_floating()
2476 instead of calling ia64_convert_to_virtual().
2477 (ia64_frame_cache): New routine to support new frame model.
2478 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2479 (ia64_frame_sniffer): Ditto.
2480 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2481 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2482 (ia64_sigtramp_frame_prev_register): Ditto.
2483 (ia64_sigtramp_frame_sniffer): Ditto.
2484 (ia64_frame_base_address): Ditto.
2485 (ia64_extract_struct_value_address): Change to issue error message.
2486 (ia64_frame_align): New routine to align sp.
2487 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2488 (ia64_push_arguments): Removed. Logic moved to
2489 ia64_push_dummy_call().
2490 (ia64_push_return_address): Ditto.
2491 (ia64_unwind_dummy_id): New function.
2492 (ia64_unwind_pc): Ditto.
2493 (ia64_convert_register_p): Ditto.
2494 (ia64_register_to_value): Ditto.
2495 (ia64_value_to_register): Ditto.
2496 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2497 (ia64_register_byte, ia64_register_raw_size): Ditto.
2498 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2499 (ia64_saved_pc_after_call): Ditto.
2500 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2501 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2502 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2503 (ia64_register_convert_to_raw): Ditto.
2504 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2505 (ia64_init_extra_frame_info): Ditto.
2506 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2507 (ia64_gdbarch_init): Remove registering of deprecated functions that
2508 are no longer used. Add registration of new gdbarch functions.
2509 Remove registering deprecated_write_sp. Replace
2510 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2511 Delete set_gdbarch_deprecated_register_convertible(),
2512 set_gdbarch_deprecated_register_convert_to_virtual(), and
2513 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2514 set_gdbarch_deprecated_register_size(),
2515 set_gdbarch_deprecated_register_bytes(),
2516 set_gdbarch_pcregnum(),
2517 set_gdbarch_deprecated_register_byte(),
2518 set_gdbarch_deprecated_register_raw_size(),
2519 set_gdbarch_deprecated_max_register_raw_size(),
2520 set_gdbarch_deprecated_register_virtual_size(),
2521 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2522 Replace set_gdbarch_deprecated_extract_return_value() with
2523 set_gdbarch_extract_return_value(). Remove calls to:
2524 set_gdbarch_deprecated_saved_pc_after_call();
2525 set_gdbarch_deprecated_frame_chain(),
2526 set_gdbarch_deprecated_frame_saved_pc(),
2527 set_gdbarch_deprecated_frame_init_saved_regs(),
2528 set_gdbarch_deprecated_get_saved_register(),
2529 set_gdbarch_deprecated_call_dummy_words(),
2530 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2531 set_gdbarch_deprecated_init_extra_frame_info(),
2532 set_gdbarch_deprecated_frame_args_address(),
2533 set_gdbarch_deprecated_frame_locals_address(),
2534 and set_gdbarch_deprecated_dummy_write_sp().
2535 Add set_gdbarch_convert_register_p(),
2536 set_gdbarch_register_to_value(),
2537 set_gdbarch_value_to_register(),
2538 set_gdbarch_push_dummy_call(),
2539 set_gdbarch_frame_align(),
2540 set_gdbarch_unwind_dummy_id(),
2541 set_gdbarch_unwind_pc(),
2542 frame_unwind_append_sniffer(),
2543 frame_unwind_append_sniffer(),
2544 and frame_base_set_default().
2545
2546 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2547
2548 * configure.tgt: Document need for special "mipsisa64" handling.
2549 (mipsisa64*-*-linux64): Handle as target linux64.
2550 (mipsisa64*-*-*): Handle as target embed64.
2551
2552 2003-08-18 Michael Chastain <mec@shout.net>
2553
2554 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2555 objfile bug.
2556
2557 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2558
2559 * i387-tdep.h: Update copyright date.
2560 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2561
2562 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2563 CFLAGS games to reflect reality.
2564
2565 2003-08-24 Andrew Cagney <cagney@redhat.com>
2566
2567 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2568 GDB_MULTI_ARCH is always non-zero.
2569 * osabi.c (_initialize_gdb_osabi): Ditto.
2570 (gdbarch_init_osabi): Ditto.
2571 * sparc-tdep.c: Ditto for #if code.
2572
2573 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2574
2575 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2576 Update comments.
2577 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2578 comments.
2579 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2580 x86_64_supply_fxsave.
2581 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2582 x86_64_supply_fxsave.
2583 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2584 x86_64_supply_fxsave.
2585
2586 2003-08-23 Andreas Jaeger <aj@suse.de>
2587
2588 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2589 i387_supply_fxsave.
2590
2591 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2592
2593 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2594 i387_supply_register.
2595 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2596 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2597 i387_supply_fsave.
2598 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2599 i387_supply_fxsave.
2600 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2601 i387_supply_fsave.
2602 * i386bsd-nat.c (supply_fpregset): Adjust call to
2603 i387_supply_fsave.
2604 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2605 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2606 supply_fpregset.
2607 (store_inferior_registers): Remove extraneous whitespace. Call
2608 i387_fill_fsave instead of fill_fpregset.
2609 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2610 (supply_fpregset): Likewise.
2611 * i386v4-nat.c (supply_fpregset): Adjust call to
2612 i387_supply_fsave.
2613 * i386-interix-nat.c (supply_fpregset): Adjust call to
2614 i387_supply_fsave.
2615 * i386-linux-nat.c (supply_fpregset): Adjust call to
2616 i387_supply_fsave.
2617 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2618 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2619 i387supply_fsave and i387_supply_fxsave.
2620 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2621 Incorporate code from `i387_supply_register.
2622 (i387_supply_register): Remove.
2623 (i387_supply_fxsave): Add `regnum' argument.
2624 Update comments.
2625 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2626 prototype.
2627 (i387_supply_register): remove prototype.
2628 Update comments.
2629
2630 2003-08-22 Michael Chastain <mec@shout.net>
2631
2632 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2633 Add lines for files in gdb/testsuite/gdb.cp/* that are
2634 still not 8.3 unique.
2635
2636 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2637
2638 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2639 TYPE_VPTR_FIELDNO is valid.
2640
2641 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2642
2643 * utils.c (set_width_command): Remove prototypes.
2644 (set_screen_size): New prototype.
2645 (init_page_info): Simplify by fetching the screen size from
2646 Readline. Call set_screen_size.
2647 (set_screen_size): New function.
2648 (set_width): Add missing whitespace in comment.
2649 (set_width_command): Call set_screen_size.
2650 (set_height_command): New function.
2651 (initialize_utils): Fix formatting. Make "set height" command
2652 call set_height_command. Remove redundant code that turns off
2653 pagination if output isn't a terminal. Remove redundant call to
2654 set_width_command.
2655
2656 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2657
2658 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2659 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2660 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2661 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2662 `case' keyword.
2663 (sparc64_register_info): Give the reister with number
2664 SPARC64_STATE_REGNUM a name.
2665 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2666 %asi and %ccr.
2667 (sparc64_push_dummy_call): Take BIAS into account when checking
2668 stcak alignment.
2669 (sparc_software_single_step): Remove assertions that check whether
2670 NPC and NNPC were zero.
2671 (sparc_supply_rwindow): Make public. Merge functionality with
2672 sparc64_supply_rwindow.
2673 (sparc_fill_rwindow): Make public. Merge functionality with
2674 sparc64_fill_rwindow.
2675 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2676 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2677 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2678 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2679 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2680
2681 * reggroups.c: Add whitespace after declarations of local
2682 variables in functions.
2683
2684 2003-08-21 Michael Chastain <mec@shout.net>
2685
2686 * gdbtypes.h: Change array bound type from an int to enum.
2687
2688 2003-08-21 Andrew Cagney <cagney@redhat.com>
2689
2690 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2691 * config/sparc/tm-sparc.h: Ditto.
2692 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2693 unconditionally.
2694 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2695
2696 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2697
2698 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2699 (register_objfile_data, set_objfile_data, objfile_data): New
2700 prototypes.
2701 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2702 prototypes.
2703 (allocate_objfile): Call objfile_alloc_data.
2704 (free_objfile): Call objfile_free_data.
2705 (struct objfile_data): New.
2706 (struct objfile_data_registration): New.
2707 (struct objfile_data_registry): New.
2708 (objfile_data_registry): New variable.
2709 (register_objfile_data): New function.
2710 (objfile_alloc_data, objfile_free_data): New functions.
2711 (set_objfile_data, objfile_data): New functions.
2712 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2713 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2714 (_initialize_dwarf2_frame): New function and prototype.
2715
2716 2003-08-21 Andrew Cagney <cagney@redhat.com>
2717
2718 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2719 a specific architecture.
2720 * arch-utils.h (set_architecture_from_arch_mach): Delete
2721 declaration.
2722 (target_architecture_hook): Delete declaration.
2723 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2724 (default_float_format): Assume GDB_MULTI_ARCH.
2725 (default_double_format): Assume GDB_MULTI_ARCH.
2726 (set_endian_from_file): Delete function.
2727 (arch_ok): Delete function.
2728 (set_arch): Delete function.
2729 (set_architecture_from_arch_mach): Delete function.
2730 (set_architecture_from_file): Delete function.
2731 (set_architecture): Assume GDB_MULTI_ARCH.
2732 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2733
2734 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2735
2736 Rewrite FreeBSD/sparc64 native configuration.
2737 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2738 * sparc64fbsd-nat.c: New file.
2739 * sparc64fbsd-tdep.c: New file.
2740 * sparc64-tdep.c sparc64-tdep.h: New files.
2741 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2742 sparc64fbsd-tdep.o): New dependencies.
2743 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2744 and sparc64fbsd-tdep.c.
2745 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2746 * config/sparc/fbsd.mh: Remove copyright notice.
2747 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2748 sparcbsd-nat.o.
2749 * config/sparc/fbsd.mt: Remove copyright notice.
2750 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2751 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2752 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2753 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2754 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2755 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2756 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2757 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2758 "sparc/tm-sp64.h".
2759 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2760 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2761
2762 2003-08-21 Michael Chastain <mec@shout.net>
2763
2764 * symtab.h: Add doco on the space critical structures and
2765 some measurements of space usage.
2766
2767 2003-08-21 Michael Snyder <msnyder@redhat.com>
2768
2769 * tracepoint.c (trace_dump_command): Trace break address
2770 is subject to DECR_PC_AFTER_BREAK.
2771 (set_traceframe_context): Make "trace_line" an int.
2772 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2773
2774 2003-08-20 Michael Snyder <msnyder@redhat.com>
2775
2776 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2777 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2778 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2779 argument passing.
2780 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2781 functions, replace sh_push_dummy_call.
2782 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2783
2784 2003-08-20 Michael Chastain <mec@shout.net>
2785
2786 * gdbtypes.h (struct main_type): Rearrange to save space.
2787
2788 2003-08-20 Michael Snyder <msnyder@redhat.com>
2789
2790 * trad-frame.c: Comment typo fix.
2791
2792 2003-08-20 Michael Snyder <msnyder@redhat.com>
2793 Kevin Buettner <kevinb@redhat.com>
2794
2795 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2796 (frv_frame_init_saved_regs): Add declaration.
2797 (frame_extra_info): Add new field ``saved_regs''.
2798 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2799 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2800 Update frame related code.
2801 (frv_extract_struct_value_address): Adjust formatting.
2802 * Makefile.in (frv-tdep.o): Update dependencies.
2803 * config/frv/tm-frv.h (target_insert_watchpoint)
2804 (target_remove_watchpoint, target_insert_hw_breakpoint)
2805 (target_remove_hw_breakpoint): Delete these macros.
2806 (remote_insert_watchpoint, remote_remove_watchpoint)
2807 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2808 these declarations.
2809
2810 2003-08-20 Michael Chastain <mec@shout.net>
2811
2812 * defs.h (ENUM_BITFIELD): New macro.
2813 * symtab.h (ENUM_BITFIELD): Use it.
2814 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2815
2816 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2817
2818 * MAINTAINERS (write after approval): Add myself.
2819
2820 2003-08-18 Andrew Cagney <cagney@redhat.com>
2821
2822 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2823 * gdbarch.h, gdbarch.c: Re-generate.
2824 * infcall.c (call_function_by_hand): Adjust the SP by
2825 frame_red_zone_size before allocating any stack space.
2826 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2827 * x86-64-tdep.c (x86_64_frame_align): New function.
2828 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2829
2830 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2831 Remove code adjusting SP so that it skips over the Red Zone.
2832
2833 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2834
2835 * NEWS (New native configurations): Mention FreeBSD/amd64.
2836
2837 2003-08-18 Andrew Cagney <cagney@redhat.com>
2838
2839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2840 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2841 "m68k_frame_p".
2842 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2843
2844 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2845
2846 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2847
2848 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2849
2850 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2851 Define.
2852 * i386-linux-nat.c: Include "linux-nat.h".
2853 (child_post_startup_inferior): New function.
2854
2855 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2856
2857 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2858 at the start of a frameless function. This probably fixes PR
2859 backtrace/1338.
2860
2861 2003-08-17 Michael Chastain <mec@shout.net>
2862
2863 * symfile.c (find_sym_fns): Remove special case for apollo target.
2864
2865 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2866
2867 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2868 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2869 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2870 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2871 (linux_supports_tracevforkdone): New function.
2872 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2873 TRACEVFORKDONE.
2874 (child_follow_fork): Handle vfork.
2875 (linux_handle_extended_wait): Likewise. Also handle exec.
2876 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2877 * NEWS: Mention fork tracing.
2878
2879 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2882
2883 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2884
2885 * Makefile.in (i386-linux-nat.o): Update dependencies.
2886 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2887 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2888 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2889 * i386-linux-nat.c: Include "linux-nat.h".
2890 (child_post_startup_inferior): New function.
2891 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2892 * infptrace.c (kill_inferior): Wrap in #ifdef.
2893 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2894 attaching to each LWP.
2895 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2896 (init_lin_lwp_ops): Fill in some more operations.
2897 * linux-nat.h (linux_enable_event_reporting)
2898 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2899 prototypes.
2900 * linux-nat.c (linux_enable_event_reporting): New function.
2901 (child_post_attach, linux_child_post_startup_inferior)
2902 (child_post_startup_inferior, child_follow_fork)
2903 (linux_handle_extended_wait, kill_inferior): New functions.
2904
2905 2003-08-16 Andrew Cagney <cagney@redhat.com>
2906
2907 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2908 * gdbarch.h, gdbarch.c: Re-generate.
2909
2910 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2911
2912 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2913
2914 2003-08-16 Andrew Cagney <cagney@redhat.com>
2915
2916 * NEWS: Mention that "set prompt-escape-char" was deleted.
2917 * top.c (get_prompt_1): Delete function.
2918 (gdb_prompt_escape):
2919 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2920 prompt-escape-char" command.
2921 (MAX_PROMPT_SIZE): Delete macro.
2922 (get_prompt): Simplify, do not call get_prompt_1.
2923
2924 2003-08-16 Andrew Cagney <cagney@redhat.com>
2925
2926 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2927 -Werror. -Wformat-nonliteral problems.
2928
2929 2003-08-15 J. Brobecker <brobecker@gnat.com>
2930
2931 Further multiarching work mostly for hppa64-*-hpux11:
2932 * hppa-tdep.h: New file.
2933 * hppa-tdep.c: #include hppa-tdep.c.
2934 (hppa32_num_regs): Renamed from hppa_num_regs.
2935 (hppa64_num_regs): New constant.
2936 (hppa64_call_dummy_breakpoint_offset): New constant.
2937 (hppa32_call_dummy_length): New constant.
2938 (hppa64_call_dummy_length): New constant.
2939 (hppa32_stack_align): Make name 32bit explicit.
2940 (hppa32_register_virtual_type): Likewise.
2941 (hppa32_extract_return_value): Likewise.
2942 (hppa32_use_struct_convention): Likewise.
2943 (hppa32_store_return_value): Likewise.
2944 (hppa64_register_virtual_type): New function.
2945 (hppa64_extract_return_value): New function.
2946 (hppa64_use_struct_convention): New function.
2947 (hppa64_store_return_value): New function.
2948 (hppa_frame_locals_address): Remove declaration, function does
2949 not exist anymore.
2950 (hppa_register_byte): Add support for PA64 ABI.
2951 (hppa_gdbarch_init): Add support for PA64 ABI.
2952 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2953 Make name 32bit explicit.
2954 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2955 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2956 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2957 (hppa64_hpux_frame_base_before_sigtramp): New function.
2958 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2959 * config/pa/tm-hppa64.h: Remove macros that are no longer
2960 necessary now that the gdbarch vector is properly setup.
2961 Transform some macros into function calls. Some minor cleanup.
2962 * config/pa/tm-hppah.h: Update function calls in macros
2963 following the function renaming in hppa-hpux-tdep.c.
2964 * Makefile.in (hppa_tdep_h): New variable.
2965 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2966
2967 2003-08-14 Michael Snyder <msnyder@redhat.com>
2968
2969 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2970
2971 2003-08-13 J. Brobecker <brobecker@gnat.com>
2972
2973 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2974 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2975 routine.
2976
2977 2003-08-13 Michael Snyder <msnyder@redhat.com>
2978
2979 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2980 (frv_saved_pc_after_call): Use deprecated ftype.
2981 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2982 (frv_remote_translate_xfer_address): Remove.
2983 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2984
2985 2003-08-13 J. Brobecker <brobecker@gnat.com>
2986
2987 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2988 initialization after the common gdbarch initialization, not before.
2989
2990 2003-08-13 J. Brobecker <brobecker@gnat.com>
2991
2992 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2993 (ADDR_BITS_REMOVE): Remove, redundant.
2994
2995 2003-08-13 J. Brobecker <brobecker@gnat.com>
2996
2997 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2998 gdbarch method to clear the 2 low bits of text addresses.
2999
3000 2003-08-12 Andrew Cagney <cagney@redhat.com>
3001
3002 * Makefile.in (dsrec.o): Update dependencies.
3003 * dsrec.c: Include "gdb_assert.h".
3004 (make_srec): Use snprintf instead of sprintf, use a literal format
3005 string.
3006
3007 2003-08-12 Andrew Cagney <cagney@redhat.com>
3008
3009 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
3010 FRAME_OBSTACK_ZALLOC.
3011
3012 2003-08-12 Kevin Buettner <kevinb@redhat.com>
3013
3014 * i386-tdep.c (i386_gdbarch_init): Enable default support for
3015 SSE registers.
3016
3017 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3018
3019 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
3020 amd64fbsd_sc_reg_offset): Add extern declarations.
3021 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
3022 declarations.
3023
3024 2003-08-11 Ben Elliston <bje@wasabisystems.com>
3025
3026 * MAINTAINERS (write after approval): Update my mail address.
3027
3028 2003-08-10 Andrew Cagney <cagney@redhat.com>
3029
3030 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
3031
3032 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3033
3034 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3035 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3036 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3037 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3038 i386bsd_sc_reg_offset): Add extern declarations.
3039 * i386obsd-nat.c: Include "i386-tdep.h"
3040 (_initialize_i386obsd_nat): Remove extern declarations.
3041 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3042 declarations.
3043 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3044 declarations.
3045
3046 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3047 instead of frame_read_register.
3048 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3049 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3050 SP_REGNUM.
3051 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3052 instead of frame_unwind_unsigned_register. Use
3053 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3054 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3055 instead of read_register. Use builtin_type_void_data_ptr instead
3056 of builtin_type_void_func_ptr when extracting the address of the
3057 jmp_buf.
3058 (i386_extract_return_value, i386_store_return_value,
3059 i386_pseudo_register_read, i386_pseudo_register_write): Use
3060 register_size instead REGISTER_RAW_SIZE.
3061
3062 2003-08-10 Andrew Cagney <cagney@redhat.com>
3063
3064 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3065 sprintf. Make "name" constant.
3066
3067 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3068
3069 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3070 instead of frame_read_register.
3071 (i387_print_float_info): Use get_frame_register and
3072 get_frame_register_unsigned instead of frame_register_read.
3073
3074 * i386fbsd-nat.c: Include "i386-tdep.h".
3075 (child_resume): Make `eflags' an ULONGEST. Use
3076 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3077 instead of register_read and register_write.
3078
3079 * i386bsd-nat.c (fetch_inferior_registers,
3080 store_inferior_registers): Don't use && at the end of a line.
3081 (_initialize_i386bsd_nat): Fix typo.
3082
3083 * frame.c (_initialize_frame): Add missing backslash.
3084
3085 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3086 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3087 and supply_register instead of manipulating the register buffer
3088 directly.
3089
3090 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3091 * config/i386/nm-i386sol2.h
3092 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3093
3094 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3095 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3096 instructions that GCC likes to mingle into the prologue. Fixes
3097 gdb/1253 and gdb/1255.
3098
3099 2003-08-09 Andrew Cagney <cagney@redhat.com>
3100
3101 Fix GDB PR cli/926.
3102 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3103 * command.h (add_setshow_uinteger_cmd): Declare.
3104 * frame.c (set_backtrace_cmd): New function.
3105 (show_backtrace_cmd): New function.
3106 * frame.c (_initialize_frame): Replace "set/show
3107 backtrace-below-main" with "set/show backtrace past-main". Add
3108 command "set/show backtrace limit".
3109 (backtrace_past_main): Rename "backtrace_below_main".
3110 (backtrace_limit): New variable.
3111 (get_prev_frame): Update. Check the backtrace_limit.
3112
3113 2003-08-09 Andrew Cagney <cagney@redhat.com>
3114
3115 * defs.h (xstrprintf): Declare.
3116 * utils.c (xstrprintf): New function.
3117 * breakpoint.c (insert_breakpoints): Replace sprintf and
3118 non-literal format strings, with xstrprintf and cleanups.
3119 (delete_breakpoint,breakpoint_re_set): Ditto.
3120 (commands_command, insert_breakpoints): Ditto.
3121 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3122 (break_at_finish_command_1): Ditto.
3123
3124 2003-08-09 Andrew Cagney <cagney@redhat.com>
3125
3126 * MAINTAINERS (language support): List Adam Fedor as Objective C
3127 maintainer.
3128
3129 2003-08-08 J. Brobecker <brobecker@gnat.com>
3130
3131 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3132 are now multiarched.
3133
3134 2003-08-08 J. Brobecker <brobecker@gnat.com>
3135
3136 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3137 longer necessary now that hppa64 is partially multiarch'ed.
3138
3139 2003-08-08 Andrew Cagney <cagney@redhat.com>
3140
3141 * interps.c (interp_set): Check for a NULL "old_interp".
3142
3143 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3144
3145 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3146 (install-only): Support DESTDIR.
3147 (uninstall): Likewise.
3148 (install-gdbtk): Likewise.
3149
3150 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3151
3152 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3153 contains something meaningful at all times.
3154
3155 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3156
3157 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3158
3159 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3160
3161 * MAINTAINERS (write after approval): Added self.
3162
3163 2003-08-07 Andrew Cagney <cagney@redhat.com>
3164
3165 * inferior.h (AT_SYMBOL): Define.
3166 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3167 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3168 * mips-tdep.c (mips_call_dummy_address): Delete function.
3169 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3170 set call_dummy_address.
3171
3172 2003-08-07 Andrew Cagney <cagney@redhat.com>
3173
3174 * language.c (op_error): Delete function.
3175 (binop_type_check): Delete function.
3176 * language.h (type_op_error, range_op_error): Delete macros.
3177 (op_error): Delete declaration.
3178
3179 2003-08-07 Andrew Cagney <cagney@redhat.com>
3180
3181 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3182
3183 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3184
3185 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3186 (x86_64_push_arguments): Skip the red zone.
3187
3188 2003-08-05 Andrew Cagney <cagney@redhat.com>
3189
3190 * reggroups.c (reggroup_next): Check for the final entry.
3191
3192 2003-08-04 Andrew Cagney <cagney@redhat.com>
3193
3194 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3195 * cli/cli-script.c (define_command): Call query directly, instead
3196 of passing it a buffer.
3197 * ocd.c (ocd_error): Pass error a constant format string.
3198 * remote-mips.c (mips_error): Use fputs_filtered.
3199
3200 * solib-svr4.c (_initialize_svr4_solib): Update
3201 register_gdbarch_data call.
3202 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3203
3204 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3205 (register_gdbarch_data): Delete "free" parameter. Update
3206 comments.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3208 * reggroups.c (_initialize_reggroup): Update.
3209 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3210 * frame-base.c (_initialize_frame_base): Update.
3211 * frame-unwind.c (_initialize_frame_unwind): Update.
3212 * user-regs.c (_initialize_user_regs): Update.
3213 * remote.c (_initialize_remote): Update.
3214 * regcache.c (_initialize_regcache): Update.
3215
3216 * regcache.c (xfree_regcache_descr): Delete function.
3217 (_initialize_regcache): Update call to register_gdbarch_data.
3218 (init_regcache_descr, init_legacy_regcache_descr): Use
3219 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3220
3221 * remote.c (free_remote_state): Delete function.
3222 (_initialize_remote): Update register_gdbarch_data.
3223 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3224 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3225
3226 2003-08-04 Andrew Cagney <cagney@redhat.com>
3227
3228 * reggroups.c (struct reggroup_el): Define.
3229 (struct reggroups): Delete field "nr_group". Replace array
3230 "group" with a "first" to "last" linked list.
3231 (reggroups_init): Update. Allocate using gdbarch's obstack.
3232 (reggroups_free): Delete function.
3233 (add_group): Update. Add "el" parameter.
3234 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3235 (default_groups): Update.
3236 (reggroup_next): Replace reggroups.
3237 (reggroups_dump): Update.
3238 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3239 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3240 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3241
3242 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3243
3244 * Makefile.in (tui-interp.o): Update dependencies.
3245
3246 2003-08-04 David Carlton <carlton@kealia.com>
3247
3248 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3249 to internal_error call.
3250 * source.c (forward_search_command): Add "%s" format argument.
3251 (reverse_search_command): Ditto.
3252 * top.c (quit_confirm): Ditto.
3253 * cli/cli-setshow.c (do_setshow_command): Ditto.
3254 * cp-valprint.c (cp_print_class_method): Replace
3255 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3256 (cp_print_class_member): Ditto.
3257 * event-top.c (command_line_handler): Ditto.
3258 * linux-proc.c (linux_info_proc_cmd): Ditto.
3259 * p-typeprint.c (pascal_type_print_base): Ditto.
3260 * p-valprint.c (pascal_object_print_class_method): Ditto.
3261 (pascal_object_print_class_member): Ditto.
3262 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3263 * remote.c (remote_cisco_section_offsets): Ditto.
3264 * top.c (command_line_input): Ditto.
3265 * utils.c (vwarning,error_stream,quit): Ditto.
3266 * valprint.c (print_floating,print_binary_chars)
3267 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3268
3269 2003-08-04 Andrew Cagney <cagney@redhat.com>
3270
3271 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3272
3273 2003-08-02 Andrew Cagney <cagney@redhat.com>
3274
3275 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3276 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3277 amd64fbsd-nat.c.
3278
3279 2003-08-02 Andrew Cagney <cagney@redhat.com>
3280
3281 * Makefile.in: Update all dependencies and definitions.
3282
3283 2003-08-02 Adam Fedor <fedor@gnu.org>
3284
3285 * linespec.c (is_objc_method_format): New function
3286 (decode_line_1, locate_first_half): Use it.
3287 Fixes PR objc/1298
3288
3289 2003-08-01 Andrew Cagney <cagney@redhat.com>
3290
3291 * NEWS: Mention that m32r is multi-arch.
3292 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3293 * configure.tgt: Recognize m32r-*-*.
3294 * config/m32r/tm-m32r.h: Delete file.
3295 * config/m32r/m32r.mt: New file.
3296 * m32r-rom.c (m32r_upload_command): Use hostent only when
3297 gethostname succeeds, in order to avoid a compilation
3298 warning.
3299 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3300 compiler warning.
3301
3302 2003-08-01 Michael Snyder <msnyder@redhat.com>
3303
3304 * sh-tdep.c (sh_frame_align): New gdbarch method.
3305 (sh_gdbarch_init): Set up frame_align method.
3306
3307 2003-07-31 Michael Snyder <msnyder@redhat.com>
3308
3309 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3310 which is already covered by the new frames infrastructure.
3311
3312 2003-07-31 Andrew Cagney <cagney@redhat.com>
3313
3314 * user-regs.c (struct user_reg): Add "next" link.
3315 (struct user_regs): Replace "user" with "first" and "last" links.
3316 (append_user_reg): Add pre-allocated "reg" parameter.
3317 (builtin_user_regs): Provide initial value for "last".
3318 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3319 (user_regs_init): Allocate memory from the gdbarch obstack.
3320 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3321 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3322 linked list.
3323 (usernum_to_user_reg): New function.
3324 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3325 (value_of_user_reg): Use usernum_to_user_reg.
3326 (user_regs_free): Delete function.
3327 (_initialize_user_regs): Update register_gdbarch_data call.
3328
3329 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3332
3333 2003-07-30 Michael Snyder <msnyder@redhat.com>
3334
3335 * value.h (value_being_returned): Add a struct_addr argument.
3336 * infcall.c (call_function_by_hand): Pass struct_addr to
3337 value_being_returned.
3338 * infcmd.c (print_return_value): Pass zero as struct_addr.
3339 * values.c (value_being_returned): If struct_addr is passed,
3340 use it instead of trying to recover it from the inferior.
3341
3342 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3343
3344 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3345 the prologue analyzer won't need to attempt to extract the pc
3346 value from the woefully incomplete dummy frame.
3347 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3348 possible. Disable code which modifies the frame.
3349
3350 2003-07-28 Andrew Cagney <cagney@redhat.com>
3351
3352 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3353 to level 2.
3354 (annotate_breakpoints_table, annotate_record): Ditto.
3355 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3356 (annotate_field_name_end, annotate_field_value): Ditto.
3357 (annotate_field_end, annotate_frame_source_begin): Ditto.
3358 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3359 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3360 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3361 (annotate_frame_address_end, annotate_frame_address): Ditto.
3362 (annotate_frame_args, annotate_frame_end): Ditto.
3363 (annotate_frame_where, annotate_arg_begin): Ditto.
3364 (annotate_arg_name_end, annotate_arg_value): Ditto.
3365 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3366 (annotate_function_call, annotate_signal_name): Ditto.
3367 (annotate_signal_string, annotate_signal_name_end): Ditto.
3368 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3369 (annotate_value_begin, annotate_value_history_value): Ditto.
3370 (annotate_value_history_end, annotate_value_end): Ditto.
3371 (annotate_display_begin, annotate_display_number_end): Ditto.
3372 (annotate_display_format, annotate_display_expression): Ditto.
3373 (annotate_display_expression_end, annotate_display_value): Ditto.
3374 (annotate_display_end, annotate_array_section_begin): Ditto.
3375 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3376 (annotate_elt, annotate_array_section_end): Ditto.
3377
3378 2003-07-28 Andrew Cagney <cagney@redhat.com>
3379
3380 * regcache.c (struct regcache_descr): Update comments on
3381 nr_raw_registers.
3382 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3383 sizeof_raw_register_valid_p.
3384 (init_regcache_descr): Set nr_raw_registers and
3385 sizeof_raw_register_valid_p before calling
3386 init_legacy_regcache_descr.
3387
3388 2003-07-28 Andrew Cagney <cagney@redhat.com>
3389
3390 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3391 MOD NUM_REGS.
3392
3393 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * thread.c (info_threads_command): Use get_selected_frame ().
3396 Check that there is at least one non-sentinel frame.
3397
3398 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3399
3400 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3401 (m68hc11_pop_frame): Remove.
3402 (m68hc11_frame_saved_pc): Remove.
3403 (m68hc11_frame_chain): Remove.
3404 (m68hc11_frame_init_saved_regs): Remove.
3405 (m68hc11_init_extra_frame_info): Remove.
3406 (m68hc11_store_struct_return): Remove.
3407 (m68hc11_saved_pc_after_call): Remove.
3408
3409 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3410
3411 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3412 frame unwind information.
3413 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3414 and adapted for frame unwinding.
3415 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3416 (m68hc11_unwind_pc): New function.
3417 (m68hc11_frame_unwind_cache): New function to analyze frames.
3418 (m68hc11_frame_this_id): New function to create new frame struct.
3419 (m68hc11_frame_prev_register): New function to unwind a register from
3420 the frame.
3421 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3422 (m68hc11_frame_p): New function for the above.
3423 (m68hc11_frame_base_address): New function to return fp of frame.
3424 (m68hc11_frame_args_address): Update for frame.
3425 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3426 (m68hc11_unwind_sp): New function.
3427 (m68hc11_unwind_dummy_id): New function.
3428 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3429 calls.
3430
3431 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3432
3433 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3434 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3435 when we are beyond the current pc.
3436
3437 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3438
3439 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3440 from m68hc11_push_arguments.
3441 (m68hc11_push_arguments): Remove.
3442 (m68hc11_push_return_address): Remove.
3443 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3444 handlers; remove deprecated_extra_stack_alignment_needed.
3445
3446 2003-07-27 Andrew Cagney <cagney@redhat.com>
3447
3448 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3449 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3450 REAL_PC and not the pointer.
3451 * hppa-hpux-tdep.c: Include frame.h
3452
3453 2003-07-27 Andrew Cagney <cagney@redhat.com>
3454
3455 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3456 GDB_MULTI_ACH_PARTIAL.
3457
3458 2003-07-27 Andrew Cagney <cagney@redhat.com>
3459
3460 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3461 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3462 operator at start and not end of line.
3463 (decode_prologue): Ditto.
3464 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3465 frame_unwind_register_unsigned instead of
3466 frame_unwind_unsigned_register.
3467 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3468 read_register.
3469 (m32r_push_dummy_call): Use register_size instead of
3470 REGISTER_RAW_SIZE.
3471 (m32r_frame_sniffer): Replace m32r_frame_p.
3472 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3473 * m32r-rom.c (report_transfer_performance): Delete extern
3474 declaration.
3475 (m32r_load, m32r_upload_command): Use print_transfer_performance
3476 instead of report_transfer_performance.
3477 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3478 / add_show_from_set.
3479
3480 2003-07-26 Andrew Cagney <cagney@redhat.com>
3481
3482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3483 store_return_value and extract_struct_value_address.
3484
3485 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3486
3487 PR c++/1267
3488 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3489 NULL, default to the section containing PC.
3490
3491 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3492
3493 * NEWS: Mention "regs" deprecated for m68hc11 too.
3494
3495 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3496 (m68hc11_print_register): New function to print out one register.
3497 (m68hc11_print_registers_info): New function to print registers.
3498 (show_regs): Deprecate and use the above.
3499 (m68hc11_gdbarch_init): Install the print_registers_info.
3500
3501 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3502
3503 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3504 that we have a SIGTRAP before returning non-zero.
3505
3506 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3507 Elena Zannoni <ezannoni@redhat.com>
3508
3509 * linespec.c (decode_line_2): Avoid crash if
3510 find_function_start_sal() returns empty record.
3511
3512 2003-07-23 Andreas Schwab <schwab@suse.de>
3513
3514 * ia64-tdep.c (ia64_print_insn): New function.
3515 (ia64_gdbarch_init): Set print_insn to it.
3516 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3517 deprecated_tm_print_insn_info.
3518
3519 2003-07-22 Michael Snyder <msnyder@redhat.com>
3520
3521 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3522 handle 8-bit returns (long long).
3523 (h8300h_extract_return_value): Ditto.
3524 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3525
3526 2003-07-22 Andrew Cagney <cagney@redhat.com>
3527
3528 * gdbarch.c Include "gdb_obstack.h".
3529 (struct gdbarch): Add an "obstack".
3530 (alloc_gdbarch_data): Allocate the gdbarch data using
3531 GDBARCH_OBSTACK_CALLOC.
3532 (free_gdbarch_data): Delete function.
3533 (gdbarch_obstack_zalloc): New function.
3534 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3535 Assert that the architecture is not initialized.
3536 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3537 vector from the obstack.
3538 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3539 architecture obstack.
3540 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3541 (set_gdbarch_data): Assert that the data is not initialized.
3542 (struct gdbarch_data): Delete member "free".
3543 (register_gdbarch_data): Do not initialize "free".
3544 * gdbarch.h, gdbarch.c: Re-generate.
3545
3546 2003-07-22 Andrew Cagney <cagney@redhat.com>
3547
3548 * configure.in (build_warnings): Add -Wformat-nonliteral.
3549 * configure: Re-generate.
3550
3551 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3552
3553 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3554
3555 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3556
3557 * findvar.c (read_var_value): Remove case for thread local storage
3558 variables. It is now entirely handled by the dwarf2 location
3559 expression code.
3560 * printcmd.c (address_info): Ditto.
3561 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3562 enumeration value.
3563 (struct symbol): Remove objfile field, which was used by
3564 LOC_THREAD_LOCAL_STATIC only.
3565 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3566 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3567 usage of objfile pointer.
3568 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3569 thread local variables.
3570 Add include of objfiles.h.
3571 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3572 storage variables.
3573 * Makefile.in (dwarf2loc.o): Update dependencies.
3574
3575 2003-07-22 Andrew Cagney <cagney@redhat.com>
3576
3577 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3578 get_frame_base.
3579 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3580 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3581 (struct value): Add opaque declaration.
3582 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3583
3584 2003-07-21 Andrew Cagney <cagney@redhat.com>
3585
3586 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3587 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3588
3589 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3590
3591 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3592 regcache_cooked_read_unsigned instead of read_register.
3593 (m68hc11_saved_pc_after_call): Likewise.
3594 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3595 instead of write_register.
3596 (m68hc11_register_type): New function.
3597 (m68hc11_register_virtual_type): Remove.
3598 (m68hc11_store_return_value): Convert to use the regcache.
3599 (m68hc11_extract_struct_value_address): Likewise.
3600 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3601 m68hc11_register_type; undeprecate store_return_value and
3602 extract_struct_value_address.
3603
3604 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3605
3606 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3607 and translate to use regcache.
3608 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3609
3610 2003-07-18 Andrew Cagney <cagney@redhat.com>
3611
3612 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3613 * gdbarch.h, gdbarch.c: Re-generate.
3614 * i386-tdep.c (i386_gdbarch_init): Do not set
3615 DWARF2_BUILD_FRAME_INFO.
3616 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3617 unconditionally.
3618 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3619 DWARF2_BUILD_FRAME_INFO.
3620
3621 2003-07-18 Andrew Cagney <cagney@redhat.com>
3622
3623 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3624 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3625
3626 2003-07-18 Andrew Cagney <cagney@redhat.com>
3627
3628 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3629 frame_unwind_address_in_block, instead of frame_pc_unwind.
3630 (dwarf2_frame_cache): Ditto.
3631
3632 2003-07-18 Andrew Cagney <cagney@redhat.com>
3633
3634 * user-regs.h (struct gdbarch): Declare opaque.
3635 * ui-out.h (struct ui_file): Declare opaque.
3636 * dwarf2-frame.h (struct frame_info): Declare opaque.
3637
3638 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3639
3640 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3641 #include "...".
3642 (procfs_meminfo): Change strerror to safe_strerror.
3643 (procfs_can_run): Remove K&R badness.
3644
3645 2003-07-17 Michael Snyder <msnyder@redhat.com>
3646
3647 * remote-sim.c: Comment typo fix.
3648
3649 2003-07-17 Andrew Cagney <cagney@redhat.com>
3650
3651 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3652 configure.
3653 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3654 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3655 GDB_MULTI_ARCH_PARTIAL.
3656
3657 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3658
3659 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3660 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3661 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3662
3663 2003-07-16 Theodore A. Roth <troth@openavr.org>
3664
3665 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3666 found.
3667 (avr_frame_unwind_cache): Don't unwind FP for main.
3668 Update a comment.
3669 Save the computed prev_sp.
3670 (avr_saved_regs_unwinder): Remove function.
3671 (avr_frame_prev_register): Use PC unwind logic from
3672 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3673
3674 2003-07-16 Andrew Cagney <cagney@redhat.com>
3675
3676 * frame-base.h (frame_base_p_ftype): Delete definition.
3677 (frame_base_append_predicate): Delete declaration.
3678 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3679 (frame_unwind_append_predicate): Delete declaration.
3680 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3681 (append_predicate): Delete parameter "p".
3682 (frame_unwind_append_predicate): Delete function.
3683 (frame_unwind_append_sniffer): Update call to append_predicate.
3684 (frame_unwind_free): Delete function.
3685 (_initialize_frame_unwind): Pass NULL as "free" to
3686 register_gdbarch_data.
3687 (frame_unwind_init): Append the dummy_frame_sniffer.
3688 (frame_unwind_find_by_frame): Simplify.
3689 * frame-base.c (struct frame_base_table): Delete field "p".
3690 (append_predicate): Delete parameter "p".
3691 (frame_base_append_predicate): Delete function.
3692 (frame_base_append_sniffer): Update call to append_predicate.
3693 (frame_base_free): Delete function.
3694 (frame_base_find_by_frame): Simplify.
3695 (_initialize_frame_base): Pass NULL as "free" to
3696 register_gdbarch_data.
3697 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3698 (x86_64_sigtramp_frame_sniffer): Replace
3699 "x86_64_sigtramp_frame_p".
3700 (x86_64_init_abi): Set the frame unwind sniffers.
3701 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3702 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3703 (m68k_gdbarch_init): Set the frame unwind sniffers.
3704 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3705 "i386_sigtramp_frame_p".
3706 (i386_frame_sniffer): Replace "i386_frame_p".
3707 (i386_gdbarch_init): Set the frame unwind sniffers.
3708 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3709 (avr_gdbarch_init): Set the frame unwind sniffers.
3710 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3711 "alpha_sigtramp_frame_p"
3712 (alpha_heuristic_frame_sniffer): Replace
3713 "alpha_heuristic_frame_p".
3714 (alpha_gdbarch_init): Set the frame unwind sniffers.
3715 (alpha_dwarf2_init_abi): Ditto.
3716 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3717 "alpha_debug_frame_p".
3718 (alpha_mdebug_frame_base_sniffer): Replace
3719 "alpha_mdebug_frame_base_p".
3720 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3721 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3722 (d10v_gdbarch_init): Set the frame unwind sniffer.
3723 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3724 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3725 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3726 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3727 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3728 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3729
3730 2003-07-16 Michael Snyder <msnyder@redhat.com>
3731
3732 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3733 should go thru sh_dsp_register_sim_regno, else the dsp regs
3734 will not get the right values.
3735
3736 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3737
3738 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3739 deprecated_store_floating by call to store_typed_floating.
3740 (sh_sh4_register_convert_to_raw): Substitute call to
3741 deprecated_extract_floating by call to extract_typed_floating.
3742
3743 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3744
3745 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3746
3747 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3748
3749 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3750 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3751 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3752 as possible.
3753 (do_pseudo_register): Remove.
3754 (sh_push_dummy_code): New function.
3755 (sh64_store_struct_return): Rename from sh_store_struct_return.
3756 Only called for sh64 now.
3757 (sh_extract_struct_value_address): Regcache'ify.
3758 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3759 and accomodate new tasks.
3760 (sh64_push_return_address): Rename from sh_push_return_address.
3761 Only called for sh64 now.
3762 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3763 Regcache'ify.
3764 (sh3e_sh4_extract_return_value): Regcache'ify.
3765 (sh_default_store_return_value): Ditto.
3766 (sh3e_sh4_store_return_value): Ditto.
3767 (sh_default_register_byte): Remove.
3768 (sh_sh4_register_byte): Remove.
3769 (sh_default_register_raw_size): Remove.
3770 (sh_sh4_register_raw_size): Remove.
3771 (sh_register_virtual_size): Remove.
3772 (sh_sh3e_register_virtual_type): Remove.
3773 (sh_sh3e_register_type): New function.
3774 (sh_sh4_register_virtual_type): Remove.
3775 (sh_sh4_register_type): New function.
3776 (sh_default_register_virtual_type): Remove.
3777 (sh_default_register_type): New function.
3778 (do_fv_register_info): Add parameters to accomodate call from
3779 sh_print_registers_info.
3780 (do_dr_register_info): Ditto.
3781 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3782 Add parameters to accomodate call from sh_print_registers_info.
3783 (sh_do_fp_register): Ditto.
3784 (sh64_do_pseudo_register): Call do_dr_register_info,
3785 do_fv_register_info and sh_do_fp_register with default parameters.
3786 (sh_do_register): Add parameters to accomodate call from
3787 sh_print_registers_info.
3788 (sh_print_register): Ditto.
3789 (sh_print_registers_info): Rename from sh_do_registers_info.
3790 Add parameters to be used as gdbarch_print_registers_info
3791 implementation. Accomodate removed do_pseudo_register function
3792 pointer.
3793 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3794 function pointer. Call sh_print_register with default parameters.
3795 (sh64_do_registers_info): Call sh_print_registers_info instead of
3796 sh_do_registers_info.
3797 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3798 detection of deprecated vs. non-deprecated functionality.
3799 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3800 function pointer assignments by direct function calls.
3801
3802 2003-07-15 Andrew Cagney <cagney@redhat.com>
3803
3804 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3805 (frame_register_unwind, create_new_frame): Ditto.
3806 (legacy_get_prev_frame, get_frame_type): Ditto.
3807 (get_frame_base_address): Use frame_base_find_by_frame.
3808 (get_frame_locals_address): Use frame_base_find_by_frame.
3809 (get_frame_args_address): Use frame_base_find_by_frame.
3810 * frame-base.h (frame_base_sniffer_ftype): Declare.
3811 (frame_base_append_sniffer): Declare.
3812 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3813 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3814 (frame_base_append_sniffer): New function.
3815 (frame_base_append_predicate): Add a NULL sniffer.
3816 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3817 (struct frame_base_table): Add "sniffer".
3818 (frame_base_free): Free the "sniffer" table.
3819 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3820 (frame_unwind_append_sniffer): Declare.
3821 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3822 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3823 (struct frame_unwind_table): Add "sniffer", delete "middle".
3824 (append_predicate): Add "sniffer" parameter, append the sniffer.
3825 (frame_unwind_init): Update append_predicate call.
3826 (frame_unwind_append_sniffer): New function.
3827 (frame_unwind_append_predicate): Update append_predicate call.
3828 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3829
3830 2003-07-15 Andrew Cagney <cagney@redhat.com>
3831
3832 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3833 before code inhibiting repeated unwind attempts. Add to
3834 commentary on that test's problems.
3835 * blockframe.c (inside_main_func): Look for "main" in the minimal
3836 symbol table.
3837 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3838 identical.
3839
3840 2003-07-15 Andrew Cagney <cagney@redhat.com>
3841
3842 * complaints.c (struct explanation): Define.
3843 (struct complaints): Change type of "explanation" to "struct
3844 explanation".
3845 (symfile_explanations): Convert to a "struct explanation" table.
3846 (vcomplaint): Update.
3847
3848 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3849
3850 * x86-64-linux-nat.c (regmap): Removed.
3851 (supply_gregset, fill_gregset): Call
3852 x86_64_linux_(fill,supply)_gregset functions.
3853 * x86-64-linux-tdep.c (USER_*): New defines.
3854 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3855 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3856 New functions.
3857 (fetch_core_registers): Ditto.
3858 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3859 * x86-64-linux-tdep.h: New file.
3860 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3861 and core-regset.o.
3862 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3863
3864 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3865
3866 * x86-64-tdep.c (x86_64_store_return_value): Use
3867 regcache_cooked_write_part instead of regcache_cooked_write.
3868
3869 * configure.host: Add x86_64-*-freebsd*.
3870 * configure.tgt: Add x86_64-*-freebsd*.
3871 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3872 * amd64fbsd-nat.c: New file.
3873 * amd64fbsd-tdep.c: New file.
3874 * config/i386/nm-fbsd64.h: New file.
3875 * config/i386/fbsd64.mh: New file.
3876 * config/i386/fbsd64.mt: New file.
3877
3878 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3879
3880 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3881 `sc_regs_offset' and `sc_fpregs_offset'.
3882 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3883 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3884 (alpha_sigtramp_register_address): Rewrite to use new members of
3885 `struct gdbarch_tdep'.
3886 (alpha_gdbarch_init): Initialize new members of struct
3887 gdbarch_tdep'.
3888 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3889 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3890 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3891 (alphafbsd_pc_in_sigtramp): Implement.
3892 (alphafbsd_sigtramp_offset): New function.
3893 (alphafbsd_sigcontext_addr): New function.
3894 (alphafbsd_init_abi): Initialize signal trampoline related members
3895 of `struct gdbarch_tdep'.
3896 (_initialize_alphafbsd_tdep): Add prototype.
3897
3898 2003-07-11 Theodore A. Roth <troth@openavr.org>
3899
3900 * Makefile.in (install-only): Quote sed expression when generating
3901 transformed_name.
3902
3903 2003-07-11 Richard Henderson <rth@redhat.com>
3904
3905 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3906 * dwarf2-frame.c: Include complaints.h.
3907 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3908 variable initialization; return NULL on error.
3909 (decode_frame_entry): New.
3910
3911 2003-07-11 Andrew Cagney <cagney@redhat.com>
3912
3913 * frame.h (frame_address_in_block): Delete declaration.
3914 * blockframe.c (frame_address_in_block): Delete function.
3915 (get_frame_block): Use get_frame_address_in_block.
3916 (block_innermost_frame): Ditto.
3917 * stack.c (print_frame, backtrace_command_1): Ditto.
3918
3919 * frame.h (get_frame_address_in_block): Declare.
3920 (frame_unwind_address_in_block): Declare.
3921 * frame.c (frame_unwind_address_in_block): New function.
3922 (get_frame_address_in_block): New function.
3923
3924 2003-07-10 Andrew Cagney <cagney@redhat.com>
3925
3926 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3927 pre-default. Note: re-generate has no effect.
3928
3929 2003-07-10 Andrew Cagney <cagney@redhat.com>
3930
3931 * gdbarch.sh: When a variable, but not a function, compare against
3932 0. Fix problem in previous patch.
3933 * gdbarch.c: Re-generate.
3934
3935 2003-07-10 Andrew Cagney <cagney@redhat.com>
3936
3937 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3938 functions against NULL, not 0.
3939 * gdbarch.c: Re-generate.
3940
3941 2003-07-10 Fred Fish <fnf@ninemoons.com>
3942
3943 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3944 null string instead of a null pointer.
3945 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3946
3947 2003-07-09 Michael Snyder <msnyder@redhat.com>
3948
3949 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3950
3951 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3952
3953 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3954 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3955 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3956 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3957 * x86-64-tdep.c: ... from here.
3958
3959 2003-07-09 Andreas Schwab <schwab@suse.de>
3960
3961 * m68k-tdep.h (enum struct_return): Define.
3962 (struct gdbarch_tdep): Add struct_return.
3963 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3964 bytes are padded to the right, not to the left. Pass struct value
3965 address in register %a1, not on stack.
3966 (m68k_use_struct_convention): New function.
3967 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3968 struct_return in tdep to pcc_struct_return.
3969 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3970 reg_struct_return.
3971
3972 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3973
3974 * somread.c (som_symfile_offsets): Fix compilation error.
3975
3976 2003-07-09 Andrew Cagney <cagney@redhat.com>
3977
3978 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3979 Add comments about the checks.
3980
3981 2003-07-08 Andrew Cagney <cagney@redhat.com>
3982
3983 * Makefile.in: Make dependency section headers consistent.
3984 (config_h): Move to $BUILD headers section.
3985 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3986 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3987 (ada-exp.tab.c): Move to YACC/LEX section.
3988 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3989 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3990
3991 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3992
3993 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3994 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3995 of strerror with safe_strerror, use ISO C function definitions,
3996 and replace instances of sprintf with snprintf.
3997
3998 2003-07-07 Andrew Cagney <cagney@redhat.com>
3999
4000 * frame.c (get_prev_frame): Enable check for identical frames.
4001 Update comments. Update error messages.
4002
4003 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4004
4005 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
4006
4007 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4008
4009 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
4010 sort_symtab_syms, no longer necessary.
4011
4012 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4013
4014 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
4015
4016 2003-07-07 Joel Brobecker <brobecker@gnat.com>
4017
4018 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
4019 (mips_register_byte): Likewise.
4020
4021 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * Makefile.in (sparc_tdep_h): New.
4024 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
4025 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
4026 * sparc-linux-nat.c: Include "sparc-tdep.h".
4027 * sparc-nat.c: Likewise.
4028 * sparc-tdep.c: Likewise.
4029 * sparc64nbsd-nat.c: Likewise.
4030 * sparcnbsd-nat.c: Likewise.
4031 * sparcnbsd-tdep.c: Likewise.
4032 * sparc-tdep.h: New file.
4033 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4034 and sparc_npc_regnum.
4035
4036 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4039 (mips_linux_cannot_store_register): List supported instead of
4040 unsupported registers.
4041
4042 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4043
4044 * disasm.c (dump_insns): Separate instructions from addresses.
4045
4046 2003-07-07 Andreas Schwab <schwab@suse.de>
4047
4048 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4049 dependencies.
4050 * m68k-tdep.c (NUM_FREGS): Delete.
4051 (SIG_PC_FP_OFFSET): Delete.
4052 (TARGET_M68K): Delete.
4053 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4054 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4055 P_MOVEL_SP, P_MOVEML_SP): Define.
4056 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4057 P_TRAP): Delete.
4058 (m68k_register_raw_size): Delete.
4059 (m68k_register_virtual_size): Delete.
4060 (m68k_register_type): Renamed from m68k_register_virtual_type and
4061 add gdbarch argument.
4062 (m68k_store_struct_return): Delete.
4063 (m68k_deprecated_extract_return_value): Delete.
4064 (m68k_deprecated_extract_struct_value_address): Delete.
4065 (m68k_frame_chain): Delete.
4066 (m68k_frame_saved_pc): Delete.
4067 (m68k_fix_call_dummy): Delete.
4068 (m68k_push_dummy_frame): Delete.
4069 (m68k_pop_frame): Delete.
4070 (m68k_extract_return_value): New function.
4071 (m68k_store_return_value): Rewrite using regcache.
4072 (m68k_extract_struct_value_address): Rewrite using regcache.
4073 (m68k_push_dummy_call): New function.
4074 (struct m68k_frame_cache): Define.
4075 (m68k_alloc_frame_cache): New function.
4076 (m68k_analyze_frame_setup): New function.
4077 (m68k_analyze_register_saves): New function.
4078 (m68k_analyze_prologue): New function.
4079 (m68k_skip_prologue): Rewrite using above functions.
4080 (m68k_unwind_pc): New function.
4081 (m68k_frame_cache): New function.
4082 (m68k_frame_this_id): New function.
4083 (m68k_frame_prev_register): New function.
4084 (m68k_frame_unwind): New variable.
4085 (m68k_frame_p): New function.
4086 (m68k_sigtramp_frame_cache): New function.
4087 (m68k_sigtramp_frame_this_id): New function.
4088 (m68k_sigtramp_frame_prev_register): New function.
4089 (m68k_sigtramp_frame_unwind): New variable.
4090 (m68k_sigtramp_frame_p): New function.
4091 (m68k_frame_base_address): New function.
4092 (m68k_frame_base): New function.
4093 (m68k_unwind_dummy_id): New function.
4094 (fill_gregset): Use regcache_collect.
4095 (fill_fpregset): Likewise.
4096 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4097 defined.
4098 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4099 deprecated_init_frame_pc, deprecated_store_struct_return,
4100 deprecated_extract_return_value, deprecated_store_return_value,
4101 deprecated_frame_chain, deprecated_frame_saved_pc,
4102 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4103 deprecated_register_virtual_size,
4104 deprecated_max_register_raw_size,
4105 deprecated_max_register_virtual_size,
4106 deprecated_register_virtual_type, deprecated_register_size,
4107 deprecated_register_byte, deprecated_register_bytes,
4108 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4109 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4110 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4111 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4112 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4113 deprecated_push_dummy_frame, deprecated_pop_frame,
4114 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4115 only if SYSCALL_TRAP is defined. Set extract_return_value,
4116 store_return_value, extract_struct_value_address, register_type,
4117 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4118 predicates.
4119 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4120 M68K_MAX_REGISTER_SIZE): Define.
4121 (struct m68k_sigtramp_info): Define.
4122 (struct gdbarch_tdep): Add get_sigtramp_info.
4123 * m68klinux-nat.c (fetch_register): Use register_size instead of
4124 REGISTER_RAW_SIZE. Don't put assignment in if.
4125 (store_register): Likewise.
4126 (fetch_inferior_registers): Likewise.
4127 (store_inferior_registers): Likewise.
4128 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4129 (m68k_linux_frame_saved_pc): Delete.
4130 (m68k_linux_sigcontext_reg_offset,
4131 m68k_linux_ucontext_reg_offset): Define.
4132 (m68k_linux_get_sigtramp_info): New function.
4133 (m68k_linux_extract_return_value): Rewrite using regcache.
4134 (m68k_linux_store_return_value): Likewise.
4135 (m68k_linux_extract_struct_value_address): Likewise.
4136 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4137 Don't set deprecated_frame_saved_pc,
4138 deprecated_extract_return_value, deprecated_store_return_value,
4139 deprecated_extract_struct_value_address. Set
4140 extract_return_value, store_return_value,
4141 extract_struct_value_address.
4142
4143 2003-07-07 Andrew Cagney <cagney@redhat.com>
4144
4145 * expprint.c: Include "user-regs.h" instead of "frame.h".
4146 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4147 frame_map_regnum_to_name.
4148 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4149 (frame_map_name_to_regnum): Simplify, call
4150 user_reg_map_name_to_regnum.
4151 (frame_map_regnum_to_name): Simplify, call
4152 user_reg_map_regnum_to_name.
4153 (frame_register_unwind): Update.
4154 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4155 (_initialize_frame_reg): Call user_reg_add_builtin.
4156 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4157 (value_of_register): Use value_of_user_reg.
4158 * eval.c (evaluate_subexp_standard): Update.
4159 * parse.c (write_dollar_variable): Update.
4160 * d10v-tdep.c (d10v_print_registers_info): Update.
4161 * infcmd.c (registers_info): Update.
4162 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4163 (builtin_regs_h): Delete macro.
4164 (user_regs_h): Define.
4165 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4166 (builtin-regs.o): Delete target.
4167 (user-regs.o): Specify dependencies.
4168 (expprint.o): Update dependencies.
4169 (findvar.o): Update dependencies.
4170 (frame.o): Update dependencies.
4171 (std-regs.o): Update dependencies.
4172
4173 2003-07-06 Christopher Faylor <cgf@redhat.com>
4174
4175 * win32-nat.c (solib_symbols_add): Use one variable for all section
4176 address stuff. Pass variable rather than address of variable to
4177 safe_symbol_file_add.
4178
4179 2003-07-06 Andreas Schwab <schwab@suse.de>
4180
4181 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4182
4183 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4184
4185 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4186
4187 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4188
4189 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4190
4191 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4192
4193 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4194 * config/i386/nto.mh: New file.
4195 * config/i386/nm-nto.h: New file.
4196 * configure.host: Add i[3456]86-*-nto*.
4197
4198 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4199
4200 * remote-vx.c (vx_add_symbols): Fix compilation error.
4201
4202 2003-07-03 Andrew Cagney <cagney@redhat.com>
4203
4204 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4205 * gdbarch.h, gdbarch.c: Re-generate.
4206 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4207 (legacy_register_name): Declare.
4208 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4209 (REGISTER_NAME): Define.
4210 * sparc-tdep.c (legacy_register_name): New function.
4211 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4212 (REGISTER_NAME): Define.
4213 (hppa64_register_name): Declare.
4214 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4215 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4216 (hppa64_register_name): New function.
4217 (hppa_register_name): New function.
4218 * arch-utils.c (legacy_register_name): Delete.
4219 * arch-utils.h (legacy_register_name): Delete.
4220
4221 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4222
4223 * cli/cli-interp.c (cli_interpreter_resume): Update the
4224 cli_uiout's stream to gdb_stdout.
4225
4226 2003-07-03 Andrew Cagney <cagney@redhat.com>
4227
4228 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4229 predicate.
4230 * gdbarch.h, gdbarch.c: Re-generate.
4231 * regcache.c (init_regcache_descr): Use legacy code when either
4232 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4233
4234 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4235
4236 * NEWS: Move "set logging" entry into GDB 6.0 section.
4237
4238 2003-07-02 Jim Blandy <jimb@redhat.com>
4239
4240 * s390-tdep.c (struct frame_extra_info): new member:
4241 'stack_bought_valid'.
4242 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4243 initialize fextra_info->stack_bought.
4244 (s390_frameless_function_invocation): Don't trust the value of
4245 fextra_info_ptr->stack_bought unless
4246 fextra_info->stack_bought_valid is set.
4247
4248 New S390 prologue analyzer.
4249 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4250 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4251 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4252 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4253 compute_x_addr, s390_on_stack, s390_store,
4254 s390_get_signal_frame_info): New functions.
4255 (S390_NUM_SPILL_SLOTS): New macro.
4256 (s390_get_frame_info): Rewritten.
4257 (is_arg_reg): Deleted.
4258
4259 Break out the decoding of S/390 instructions into separate
4260 functions, to make it more legible, and easier to check
4261 against the spec.
4262 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4263 is_rx, is_rxe): New functions.
4264 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4265 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4266 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4267 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4268 enums for opcode values. (Is this an improvement?)
4269
4270 2003-07-02 Andrew Cagney <cagney@redhat.com>
4271
4272 * i386-tdep.c: Revert change committed as part of trad-frame code
4273 below.
4274
4275 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4276
4277 * breakpoint.c (insert_catchpoint): Make static.
4278
4279 2003-07-02 Andreas Schwab <schwab@suse.de>
4280
4281 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4282 former ia64_push_arguments and ia64_push_return_address, and use
4283 regcache functions instead of read/write_register.
4284 (ia64_gdbarch_init): Set push_dummy_call instead of
4285 deprecated_push_arguments and deprecated_push_return_address.
4286
4287 2003-07-01 Andreas Jaeger <aj@suse.de>
4288
4289 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4290 before the call.
4291 Set %rax only to number of SSE registers used.
4292
4293 2003-07-01 Andrew Cagney <cagney@redhat.com>
4294
4295 * trad-frame.h: Update comments, a -1 .addr is reserved.
4296 (trad_frame_value_p, trad_frame_addr_p): Declare.
4297 (trad_frame_reg_p): Declare.
4298 (trad_frame_set_value): Rename trad_frame_register_value.
4299 (trad_frame_set_unknown): Declare.
4300 * trad-frame.c (trad_frame_realreg_p): New function.
4301 (trad_frame_addr_p, trad_frame_value_p): New function.
4302 (trad_frame_set_unknown): New function.
4303 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4304 (trad_frame_prev_register): Use trad_frame_realreg_p,
4305 trad_frame_addr_p and trad_frame_value_p.
4306 (trad_frame_set_value): Rename trad_frame_register_value.
4307 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4308 and trad_frame_set_value.
4309
4310 2003-06-30 Jim Blandy <jimb@redhat.com>
4311
4312 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4313 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4314 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4315 for 16 registers, and then 32 more bytes.
4316 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4317 New macros.
4318 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4319 Move up in the file, since it's now used by is_simple_arg.
4320 (is_simple_arg): Don't assume registers are four bytes long.
4321 Exclude all double arguments. Extended floats are not simple
4322 args.
4323 (is_power_of_two): New function.
4324 (pass_by_copy_ref): Call is_power_of_two, and check that the
4325 length fits in a register, rather than listing all the acceptable
4326 sizes. Extended floats are not passed by reference.
4327 (s390_push_arguments): Don't assume registers are four bytes long.
4328 Reserve an argument register to point to the buffer for structures
4329 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4330 S390_STACK_FRAME_OVERHEAD.
4331
4332 2003-06-30 Andreas Schwab <schwab@suse.de>
4333
4334 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4335 format error message.
4336
4337 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4338
4339 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4340
4341 2003-06-30 David Carlton <carlton@kealia.com>
4342
4343 Band-aid for PR c++/1245.
4344 * Makefile.in (cp-support.o): Depend on complaints_h.
4345 * cp-support.c: Include complaints.h. Add declaration for
4346 find_last_component.
4347 (cp_find_first_component): Separate code into
4348 cp_find_first_component_aux.
4349 (cp_find_first_component_aux): Call demangled_name_complaint.
4350 (demangled_name_complaint): New.
4351
4352 2003-06-30 Andrew Cagney <cagney@redhat.com>
4353
4354 * remote.c (remote_write_bytes): Explicitly compute and then use
4355 the payload size. Update comments to reflect. Fixes problem of
4356 GDB not sending small packets as found by Fred Fish.
4357
4358 2003-06-30 Andrew Cagney <cagney@redhat.com>
4359
4360 * remote.c (remote_async_wait): Fix -Wformat problem.
4361
4362 2003-06-29 Andrew Cagney <cagney@redhat.com>
4363
4364 * remote.c (remote_wait): Call error, and not warning, when the
4365 packet is corrupt.
4366 (remote_async_wait): Ditto.
4367
4368 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4369
4370 * sparc-tdep.c (sparc_y_regnum): Make external again.
4371
4372 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4373
4374 * cli/cli-logging.c (pop_output_files): Add void to function
4375 definition.
4376
4377 2003-06-29 Andrew Cagney <cagney@redhat.com>
4378
4379 * frame.c (frame_register_unwind): Use unsigned char when dumping
4380 the buffer contents.
4381
4382 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * cli/cli-logging.c: New file.
4385 * cli-out.c (struct ui_out_data): Add original_stream.
4386 (cli_redirect): New function.
4387 (cli_ui_out_impl): Add cli_redirect.
4388 (cli_out_new): Initialize original_stream.
4389 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4390 (uo_redirect, ui_out_redirect): New.
4391 * ui-out.h (struct ui_out_impl): Add redirect member.
4392 (redirect_ftype): New.
4393 (ui_out_redirect): Add prototype.
4394 * Makefile.in: Add rules for cli-logging.c.
4395 * NEWS: Mention "set logging".
4396
4397 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4398
4399 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4400
4401 2003-06-27 Andrew Cagney <cagney@redhat.com>
4402
4403 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4404 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4405 * avr-tdep.c (avr_call_dummy_address): Delete function.
4406 (avr_gdbarch_init): Do not set call_dummy_address.
4407
4408 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4409
4410 * symfile.c (syms_from_objfile): Move variables to inner block.
4411 Move the checks for the non-mainline case a bit earlier to avoid
4412 doing some useless computations.
4413
4414 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4415
4416 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4417
4418 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4419
4420 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4421 sections.
4422
4423 2003-06-26 Michael Chastain <mec@shout.net>
4424
4425 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4426 gdb/testsuite/gdb.c++/pr-1210.exp.
4427
4428 2003-06-26 Andrew Cagney <cagney@redhat.com>
4429
4430 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4431 altivec_expression.h and altivec_registers.h.
4432
4433 2003-06-26 Andrew Cagney <cagney@redhat.com>
4434
4435 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4436 info->mach when MIPS16. Patch suggested by Fred Fish.
4437
4438 2003-06-26 Andrew Cagney <cagney@redhat.com>
4439
4440 * utils.c (internal_vproblem): Print the problem to a reason
4441 buffer and then pass to query. Make the msg variable more local.
4442
4443 2003-06-26 Andrew Cagney <cagney@redhat.com>
4444
4445 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4446 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4447 * gdbarch.h, gdbarch.c: Re-generate.
4448 * frame-base.c (default_frame_args_address): Update. Use
4449 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4450 not available.
4451 (default_frame_locals_address): Ditto for
4452 DEPRECATED_FRAME_LOCALS_ADDRESS.
4453 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4454 (vax_frame_num_args): Update.
4455 (vax_gdbarch_init): Update.
4456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4457 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4458 * mcore-tdep.c (mcore_gdbarch_init): Update.
4459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4460 * ia64-tdep.c (ia64_gdbarch_init): Update.
4461 * symtab.h (address_class): Update comments.
4462 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4463 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4464 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4465 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4466 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4467 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4468 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4469 * alpha-mdebug-tdep.c: Update.
4470 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4471
4472 2003-06-26 Andreas Jaeger <aj@suse.de>
4473
4474 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4475 of SSE registers so that varargs functions work. Rework handling
4476 of passing arguments on the stack.
4477 (x86_64_store_return_value): Return double and float values in SSE
4478 register.
4479
4480 2003-06-24 Michael Chastain <mec@shout.net>
4481
4482 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4483 the "constructor breakpoints ignored" bug.
4484
4485 2003-06-25 David Carlton <carlton@kealia.com>
4486
4487 * MAINTAINERS: Update e-mail address.
4488
4489 2003-06-24 Jim Blandy <jimb@redhat.com>
4490
4491 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4492
4493 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4494 function.
4495 (ppc_linux_init_abi): Register it as the
4496 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4497
4498 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4499 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4500 method.
4501
4502 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4503 (ppc64_standard_linkage_target): Use it.
4504
4505 2003-06-23 Andrew Cagney <cagney@redhat.com>
4506
4507 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4508 for 0 "int0" and 4 "int32" sized registers.
4509 * gdbtypes.c (builtin_type_int0): Define.
4510 (build_gdbtypes): Initialize builtin_type_int0.
4511 * gdbtypes.h (builtin_type_int0): Declare.
4512
4513 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4514
4515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4516 as characters are unsigned.
4517
4518 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4519
4520 PR gdb/1179
4521 * dwarfread.c (struct_type): Skip static fields without crashing.
4522
4523 2003-06-22 Andrew Cagney <cagney@redhat.com>
4524
4525 GDB 6.0 branch created.
4526 * README: Update.
4527 * PROBLEMS: Update. Empty.
4528 * NEWS: Update.
4529
4530 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4531
4532 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4533 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4534
4535 2003-06-22 Andrew Cagney <cagney@redhat.com>
4536
4537 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4538 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4539 Velikov.
4540
4541 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4542
4543 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4544 compilers.
4545
4546 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4547
4548 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4549 argument of val_print.
4550 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4551 to the address argument of baseclass_offset or target_read_memory.
4552 Do add it to the argument of cp_print_value_fields.
4553
4554 2003-06-21 Andrew Cagney <cagney@redhat.com>
4555
4556 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4557 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4558 instead of 0..NUM_REGS.
4559 (mips_register_reggroup_p): New function.
4560 (mips_pseudo_register_write): New function.
4561 (mips_pseudo_register_read): New function.
4562 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4563 based on the register's type.
4564 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4565 cooked.
4566 (mips_get_saved_register): Simplify. Assert that REGNO is a
4567 pseudo / cooked.
4568 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4569 (mips_register_type): Replace mips_register_virtual_type. Map
4570 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4571 when available.
4572 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4573 that the register is cooked / virtual.
4574 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4575 Only get the extra info when needed.
4576 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4577 (mips32_heuristic_proc_desc): Fetch the cooked register.
4578 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4579 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4580 (mips_print_register): Use gdbarch_register_type, instead of
4581 REGISTER_VIRTUAL_TYPE.
4582 (print_gp_register_row): Use gdbarch_register_type, instead of
4583 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4584 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4585 Print the pseudo / cooked registers.
4586 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4587 Print the pseudo / cooked registers.
4588 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4589 REG_NUM is pseudo / cooked.
4590 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4591 (mips_n32n64_xfer_return_value): Ditto.
4592 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4593 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4594 (mips_register_sim_regno): New function.
4595 (mips_gdbarch_init): Set deprecated_register_byte,
4596 register_group_p, pseudo_register_write, pseudo_register_read,
4597 register_sim_regno, and num_pseudo_regs. Set register_type,
4598 instead of register_virtual_type.
4599 * Makefile.in (mips-tdep.o): Update dependencies.
4600 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4601 REGISTER_VIRTUAL_TYPE.
4602 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4603 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4604 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4605 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4606 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4607
4608 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4609
4610 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4611 * cli/cli-cmds.c: Include "gdb_vfork.h".
4612 (shell_escape): Use vfork.
4613
4614 2003-06-21 Andrew Cagney <cagney@redhat.com>
4615
4616 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4617 32 bit floating-point register saves.
4618
4619 * frame.h (deprecated_unwind_get_saved_register): Delete.
4620 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4621 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4622 and deprecated_get_next_frame_hack instead of
4623 deprecated_unwind_get_saved_register.
4624
4625 * mips-tdep.c (mips_dump_tdep): Do not print
4626 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4627
4628 * frame.c (get_frame_register): New function.
4629 (frame_unwind_register_signed): New function.
4630 (get_frame_register_signed): New function.
4631 (frame_unwind_register_unsigned): New function.
4632 (get_frame_register_unsigned): New function.
4633 * frame.h: Add comments on naming schema.
4634 (get_frame_register, frame_unwind_register_signed): Declare.
4635 (get_frame_register_signed, get_frame_register_signed): Declare.
4636 (frame_unwind_register_unsigned): Declare.
4637 (get_frame_register_unsigned): Declare.
4638
4639 2003-06-20 Theodore A. Roth <troth@openavr.org>
4640
4641 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4642
4643 2003-06-20 Theodore A. Roth <troth@openavr.org>
4644
4645 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4646 (avr_read_sp): Ditto.
4647
4648 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4649
4650 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4651 * config/arm/nm-linux.h: Likewise.
4652 * config/arm/tm-linux.h: Likewise.
4653 * config/ia64/nm-linux.h: Likewise.
4654 * config/ia64/tm-ia64.h: Likewise.
4655 * config/s390/tm-linux.h: Likewise.
4656 * config/s390/tm-s390.h: Likewise.
4657 * s390-nat.c: Likewise.
4658 * s390-tdep.c: Likewise.
4659
4660 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4661 * config/ia64/linux.mt: Likewise.
4662 * config/m68k/linux.mh: Likewise.
4663 * config/mips/linux.mt: Likewise.
4664 * config/powerpc/linux.mh: Likewise.
4665 * config/sh/linux.mt: Likewise.
4666
4667 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4668
4669 * solib.c (solib_open): Change tests for whether to search
4670 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4671 comments.
4672
4673 2003-06-19 Theodore A. Roth <troth@openavr.org>
4674
4675 * avr-tdep.c (avr_frame_address): Delete function.
4676 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4677 set_gdbarch_frame_args_address.
4678
4679 2003-06-19 Andrew Cagney <cagney@redhat.com>
4680
4681 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4682 (REGISTER_CONVERT_FROM_TYPE): Delete.
4683 (mips_register_convert_to_type): Delete declaration.
4684 (mips_register_convert_from_type): Delete declaration.
4685 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4686 kernel/.
4687
4688 2003-06-19 Michael Snyder <msnyder@redhat.com>
4689
4690 * linux-nat.h: New file.
4691 * linux-nat.c: Include linux-nat.h.
4692 * lin-lwp.c: Include linux-nat.h.
4693 Move struct lwp_info def to linux-nat.h.
4694 * linux-proc.c: Include linux-nat.h.
4695 (linux_make_note_section): Iterate over lwps instead of threads.
4696 (linux_do_thread_registers): Use lwp instead of merged pid.
4697 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4698 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4699 Add dependency on linux_nat_h.
4700
4701 2003-06-19 Theodore A. Roth <troth@openavr.org>
4702
4703 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4704
4705 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4706
4707 * varobj.c (get_type, get_target_type): Use check_typedef.
4708
4709 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4710
4711 * breakpoint.c (insert_catchpoint): Call internal_error.
4712
4713 2003-06-19 Theodore A. Roth <troth@openavr.org>
4714
4715 * avr-tdep.c (avr_push_dummy_code): Delete function.
4716 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4717
4718 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4719
4720 * arch-utils.c (default_prepare_to_proceed): Remove.
4721 (generic_prepare_to_proceed): Remove.
4722 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4723 (generic_prepare_to_proceed): Remove prototype.
4724 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4725 * gdbarch.c: Regenerate.
4726 * gdbarch.h: Regenerate.
4727 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4728 * hppah-nat.c (hppa_switched_threads): Remove.
4729 * infrun.c (prepare_to_proceed): New static function, copied from
4730 generic_prepare_to_proceed. Remove select_it argument.
4731 (proceed): Call prepare_to_proceed.
4732 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4733 variables.
4734 (ptrace_wait): Don't set the removed variables.
4735 (hppa_switched_threads): Remove.
4736 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4737 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4738 (lin_lwp_prepare_to_proceed): Remove prototype.
4739 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4740 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4741
4742 2003-06-18 Theodore A. Roth <troth@openavr.org>
4743
4744 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4745 trad-frame.h.
4746 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4747 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4748 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4749 (AVR_PROLOGUE_*): Enumerate prologue types.
4750 (struct frame_extra_info): Remove.
4751 (struct avr_unwind_cache): Define.
4752 (avr_write_sp): Delete function.
4753 (avr_read_fp): Ditto.
4754 (avr_init_extra_frame_info): Ditto.
4755 (avr_pop_frame): Ditto.
4756 (avr_frame_saved_pc): Ditto.
4757 (avr_saved_pc_after_call): Ditto.
4758 (avr_push_return_address): Ditto.
4759 (avr_frame_chain): Ditto.
4760 (avr_store_struct_return): Ditto.
4761 (avr_push_arguments): Ditto.
4762 (avr_scan_prologue): Update comments. Changed to set up the info for
4763 cache unwinding. Now returns end of prologue PC.
4764 (avr_skip_prologue): Better handling of functions lacking a prologue
4765 by using avr_scan_prologue.
4766 (avr_scan_arg_moves): New function.
4767 (avr_saved_regs_unwinder): Ditto.
4768 (avr_frame_unwind_cache): Ditto.
4769 (avr_unwind_pc): Ditto.
4770 (avr_frame_this_id): Ditto.
4771 (avr_frame_prev_register): Ditto.
4772 (avr_frame_p): Ditto.
4773 (avr_frame_base_address ): Ditto.
4774 (avr_unwind_dummy_id): Ditto.
4775 (avr_push_dummy_code): Ditto.
4776 (push_stack_item): Ditto.
4777 (pop_stack_item): Ditto.
4778 (avr_push_dummy_call): Ditto.
4779 (struct stack_item): Define.
4780 (avr_frame_unwind): Declare structure.
4781 (avr_frame_base): Ditto.
4782 (avr_gdbarch_init): Remove calls to
4783 set_gdbarch_deprecated_init_frame_pc,
4784 set_gdbarch_deprecated_target_read_fp,
4785 set_gdbarch_deprecated_dummy_write_sp,
4786 set_gdbarch_deprecated_fp_regnum,
4787 set_gdbarch_deprecated_push_arguments,
4788 set_gdbarch_deprecated_push_return_address,
4789 set_gdbarch_deprecated_pop_frame,
4790 set_gdbarch_deprecated_store_struct_return,
4791 set_gdbarch_deprecated_frame_init_saved_regs,
4792 set_gdbarch_deprecated_init_extra_frame_info,
4793 set_gdbarch_deprecated_frame_chain,
4794 set_gdbarch_deprecated_frame_saved_pc,
4795 set_gdbarch_deprecated_saved_pc_after_call.
4796 Add calls to set_gdbarch_push_dummy_call,
4797 set_gdbarch_push_dummy_code,
4798 frame_unwind_append_predicate,
4799 frame_base_set_default,
4800 set_gdbarch_unwind_dummy_id,
4801 set_gdbarch_unwind_pc.
4802 Wrap a long line.
4803
4804 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4805
4806 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4807 registers for H8/300S.
4808 (h8300_print_registers_info): Ditto.
4809 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4810
4811 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4812
4813 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4814 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4815 (lin_lwp_wait): Likewise. Update comments.
4816 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4817 (pull_pid_from_list, linux_record_stopped_pid): New.
4818
4819 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4820
4821 * ada-lang.c (scan_discrim_bound): Name first argument.
4822 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4823 declared by ALL_BLOCK_SYMBOLS.
4824
4825 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4826
4827 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4828 ("regcache.h"): Include it.
4829 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4830
4831 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4832
4833 * NEWS: Mention gdbserver detach change and "disconnect" command.
4834 * infcmd.c (disconnect_command): New function.
4835 (_initialize_infcmd): Add ``disconnect'' command.
4836 * remote.c (remote_async_detach): Delete.
4837 (remote_detach): Merge remote_async_detach.
4838 (remote_disconnect): New.
4839 (init_remote_ops): Set to_disconnect.
4840 (init_remote_cisco_ops): Likewise.
4841 (init_remote_async_ops): Likewise. Use remote_detach.
4842 * target.c (cleanup_target): Default to_disconnect.
4843 (update_current_target): Inherit to_disconnect.
4844 (target_disconnect, debug_to_disconnect): New functions.
4845 (setup_target_debug): Set to_disconnect.
4846 * target.h (struct target_ops): Add to_disconnect.
4847 (target_disconnect): Add prototype.
4848
4849 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4850
4851 * breakpoint.c (insert_catchpoint): New function.
4852 (insert_breakpoints): Use catch_exceptions to call
4853 insert_catchpoint. Disable catchpoints if they fail to insert.
4854
4855 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4856
4857 * symfile.c (reread_symbols): Clear sym_private.
4858
4859 2003-06-17 Andrew Cagney <cagney@redhat.com>
4860
4861 * trad-frame.h (struct frame_info): Add opaque declaration.
4862 * remote-fileio.h (struct cmd_list_element): Add opaque
4863 declaration.
4864 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4865 comments.
4866
4867 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4868
4869 * remote.c (remote_prepare_to_store): Replace call to
4870 deprecated_read_register_bytes with multiple regcache_raw_read
4871 calls.
4872
4873 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4874
4875 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4876 (nto_find_and_open_solib): Likewise.
4877 (nto_init_solib_absolute_prefix): Likewise.
4878 (_initialize_nto_tdep): Fix indentation.
4879
4880 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4881
4882 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4883
4884 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4885
4886 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4887
4888 2003-06-17 Jim Blandy <jimb@redhat.com>
4889
4890 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4891
4892 2003-06-16 Theodore A. Roth <troth@openavr.org>
4893
4894 * avr-tdep.c (avr_extract_return_value): New function.
4895 (avr_gdbarch_init): Set extract_return_value method.
4896
4897 2003-06-16 Andrew Cagney <cagney@redhat.com>
4898
4899 * frame.h (deprecated_get_next_frame_hack): Declare.
4900 * frame.c (legacy_saved_regs_prev_register): Only require
4901 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4902 there are always saved regs.
4903 (deprecated_generic_get_saved_register): Do not require
4904 DEPRECATED_FRAME_INIT_SAVED_REGS.
4905 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4906 use frame ID unwind instead.
4907 (deprecated_get_next_frame_hack): New function.
4908
4909 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4910
4911 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4912 (h8300_push_dummy_call): ...this function. Some minor optimization.
4913 (h8300_push_return_address): Remove.
4914 (h8300_gdbarch_init): Remove calls to
4915 set_gdbarch_deprecated_dummy_write_sp,
4916 set_gdbarch_deprecated_push_arguments and
4917 set_gdbarch_deprecated_push_return_address.
4918 Add call to set_gdbarch_push_dummy_call.
4919
4920 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4921
4922 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4923 (E_PSEUDO_EXR_REGNUM): Ditto.
4924 (h8300_is_argument_spill): Check for instructions moving argument
4925 registers into safe registers.
4926 (h8300_skip_prologue): Check for stm instruction to push registers
4927 used for register variables onto stack.
4928 (gdb_print_insn_h8300): Remove.
4929 (h8300_examine_prologue): Add a comment.
4930 (h8300_register_name): Take pseudo registers into account.
4931 (h8300s_register_name): Ditto.
4932 (h8300sx_register_name): Ditto.
4933 (h8300_print_register): Ditto.
4934 (h8300_print_registers_info): Define "nice" printing order.
4935 (h8300_saved_pc_after_call): Take pseudo registers into account.
4936 (h8300_register_type): Ditto. Return type used for remote connection
4937 when requesting real CCR or EXR register, return actual type when
4938 requesting pseudo CCR or EXR.
4939 (h8300_pseudo_register_read): New function.
4940 (h8300_pseudo_register_write): Ditto.
4941 (h8300_dbg_reg_to_regnum): Ditto.
4942 (h8300s_dbg_reg_to_regnum): Ditto.
4943 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4944 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4945 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4946 set_gdbarch_print_insn architecture dependent.
4947 Call set_gdbarch_pseudo_register_read and
4948 set_gdbarch_pseudo_register_write.
4949 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4950
4951 2003-06-16 Andrew Cagney <cagney@redhat.com>
4952
4953 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4954 * gdbarch.h, gdbarch.c: Re-generate.
4955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4956 * s390-tdep.c (s390_gdbarch_init): Update.
4957 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4958 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4959 * mips-tdep.c (mips_gdbarch_init): Update.
4960 * mcore-tdep.c (mcore_gdbarch_init): Update.
4961 * cris-tdep.c (cris_gdbarch_init): Update.
4962 * infcall.c (call_function_by_hand): Update.
4963 * ia64-tdep.c (ia64_push_arguments): Update comment.
4964 * frame.c (legacy_get_prev_frame): Do not assume
4965 SAVE_DUMMY_FRAME_TOS_P.
4966 * dummy-frame.c (find_dummy_frame): Update comment.
4967
4968 2003-06-16 Andrew Cagney <cagney@redhat.com>
4969
4970 * regcache.c (do_cooked_read): Do not use register_valid_p.
4971
4972 2003-06-15 Theodore A. Roth <troth@openavr.org>
4973
4974 * avr-tdep.c (avr_register_type): Remove a blank line.
4975 (avr_scan_prologue): Correct some comments.
4976
4977 2003-06-15 Theodore A. Roth <troth@openavr.org>
4978
4979 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4980 prologue types.
4981 Properly scan prologues generated by gcc with the -mcall-prologues
4982 option.
4983 Add code to scan -mcall-prologues for mega devices.
4984
4985 2003-06-15 Theodore A. Roth <troth@openavr.org>
4986
4987 * avr-tdep.c (avr_register_byte): Delete function.
4988 (avr_register_raw_size): Delete function.
4989 (avr_register_virtual_size): Delete function.
4990 (avr_register_virtual_type): Delete function.
4991 (avr_register_type): New function.
4992 (avr_address_to_pointer): Remove unused code.
4993 (avr_read_fp): Need to read FP as two separate bytes due to change to
4994 avr_register_type() usage.
4995 (avr_gdbarch_init): Don't set deprecated_register_size.
4996 Don't set deprecated_register_bytes.
4997 Don't set deprecated_register_byte.
4998 Don't set deprecated_register_raw_size.
4999 Don't set deprecated_max_register_raw_size.
5000 Don't set deprecated_register_virtual_size.
5001 Don't set deprecated_max_register_virtual_size.
5002 Don't set deprecated_register_virtual_type.
5003 Set register_type method.
5004
5005 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
5006
5007 * Makefile.in (linux-nat.o): Add rule.
5008 * linux-nat.c: New file.
5009 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
5010 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
5011 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
5012 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
5013 * config/arm/linux.mh (NATDEPFILES): Likewise.
5014 * config/i386/linux.mh (NATDEPFILES): Likewise.
5015 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5016 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5017 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5018 * config/mips/linux.mh (NATDEPFILES): Likewise.
5019 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5020 * config/s390/s390.mh (NATDEPFILES): Likewise.
5021 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5022
5023 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5024
5025 * i387-tdep.c: Reorder includes, fix some whitespace issues and
5026 replace out-of-date comment.
5027
5028 2003-06-15 Andrew Cagney <cagney@redhat.com>
5029
5030 * rdi-share/host.h (Fail): Change to a varargs function.
5031 * remote-rdi.c (Fail): Update.
5032
5033 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5034
5035 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5036 (i386_convert_register_p, i386_register_to_value,
5037 i386_register_from_value): Handle types longer than 8 bytes.
5038
5039 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5040
5041 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5042 Move floating-point code to new function in i387-tdep.c.
5043 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5044 New functions containing code moved here from i386-tdep.c.
5045 * i387-tdep.h: Add opaque declaration for `struct type'.
5046 (i387_register_to_value, i387_value_to_register): New prototypes.
5047 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5048 (x86_64_init_abi): Set convert_register_p, register_to_value and
5049 value_to_register here.
5050
5051 2003-06-14 Andrew Cagney <cagney@redhat.com>
5052
5053 * mips-tdep.c (mips_register_to_value): Make static.
5054 (mips_value_to_register): Make static.
5055 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5056 * ia64-tdep.c (ia64_register_raw_size): Make static.
5057 (ia64_register_virtual_size): Make static.
5058 (ia64_register_byte): Make static.
5059 * i387-tdep.c: Include "i387-tdep.h".
5060 (print_387_control_word): Delete function.
5061 (print_387_status_word): Delete function.
5062 (print_387_status_bits): Delete function.
5063 (print_387_control_bits): Delete function.
5064 * Makefile.in (i387-tdep.o): Update dependencies.
5065 * rdi-share/host.h (Fail): Declare.
5066 * remote-rdi.c (Fail): Update to match declaration.
5067
5068 2003-06-14 Andrew Cagney <cagney@redhat.com>
5069
5070 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5071 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5072 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5073 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5074 * README: Delete reference to remote-array.
5075 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5076 (remote-array.o): Delete target.
5077 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5078 * remote-array.c: Delete file.
5079
5080 2003-06-14 Andrew Cagney <cagney@redhat.com>
5081 Mark Kettenis <kettenis@gnu.org>
5082
5083 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5084 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5085 parameter with "frame".
5086 * gdbarch.h, gdbarch.c: Re-generate.
5087 * frame.h (put_frame_register): Declare.
5088 * frame.c (put_frame_register): New function.
5089 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5090 (legacy_register_to_value): Rewrite, use "frame" to get the
5091 register value.
5092 (legacy_value_to_register): Rewrite, use "frame" to find the
5093 register's location before storing.
5094 * arch-utils.h (legacy_convert_register_p): Update.
5095 (legacy_register_to_value, legacy_value_to_register): Update.
5096 * findvar.c (value_from_register): Rewrite, eliminate use of
5097 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5098 "frame" to REGISTER_TO_VALUE.
5099 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5100 lval_reg_frame_relative + lval_register branch of the switch. Do
5101 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5102 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5103 I386_EDI_REGNUM): New defines.
5104 (i386_next_regnum, i386_convert_register_p,
5105 i386_register_to_value, i386_value_to_register): New functions.
5106 (i386_register_convertible, i386_register_convert_to_virtual,
5107 i386_convert_to_raw): Remove functions.
5108 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5109 value_to_register instead of register_convertible,
5110 register_convert_to_virtual and register_convert_to_raw.
5111 * mips-tdep.c (mips_convert_register_p): New function.
5112 (mips_value_to_register): Replace mips_register_convert_from_type.
5113 (mips_register_to_value): Replace mips_register_convert_to_type.
5114 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5115 register_to_value.
5116 * alpha-tdep.c (alpha_convert_register_p): Update.
5117 (alpha_value_to_register): Update, store the register.
5118 (alpha_register_to_value): Update, fetch the register.
5119
5120 2003-06-14 Theodore A. Roth <troth@openavr.org>
5121
5122 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5123 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5124 Don't set deprecated_call_dummy_words.
5125 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5126 Don't set remote_translate_xfer_address.
5127 (avr_io_reg_read_command): Remove commented out debug printf.
5128 Wrap a long line.
5129
5130 2003-06-14 Theodore A. Roth <troth@openavr.org>
5131
5132 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5133 causes gdb to seg fault.
5134
5135 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5136
5137 * sparc-nat.c (fetch_inferior_registers): Correct
5138 a reference to "registers".
5139
5140 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5141
5142 * Makefile.in (exc_request_U_h): Define
5143 (exc_request_S_h): Likewise.
5144 (msg_reply_S_h): Likewise.
5145 (msg_U_h): Likewise.
5146 (notify_S_h): Likewise.
5147 (process_reply_S_h): Likewise.
5148 (gnu-nat.o): Depend on gdb_obstack_h
5149 * gnu-nat.c: Include "gdb_obstack.h".
5150
5151 2003-06-13 Andrew Cagney <cagney@redhat.com>
5152
5153 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5154 * gdbarch.h, gdbarch.c: Re-generate.
5155
5156 2003-06-13 Andrew Cagney <cagney@redhat.com>
5157
5158 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5159 when deprecated REGISTER macros can be deleted.
5160 * gdbarch.h, gdbarch.c: Re-generate.
5161
5162 2003-06-13 Jim Blandy <jimb@redhat.com>
5163
5164 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5165 Linux entry point symbols for _dl_debug_state, too.
5166
5167 2003-06-13 Andrew Cagney <cagney@redhat.com>
5168
5169 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5170 available, do not use the FP register, and always save the TOS.
5171 * dummy-frame.c (dummy_frame_this_id): Do not assert
5172 SAVE_DUMMY_FRAME_TOS.
5173 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5174 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5175 (i386_push_dummy_call): Add 8 to the returned SP.
5176 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5177 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5178 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5179 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5180 (x86_64_push_dummy_call): Return "sp + 16".
5181 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5182 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5183 save_dummy_frame_tos.
5184
5185 2003-06-13 Jim Blandy <jimb@redhat.com>
5186
5187 * frv-tdep.c (frv_use_struct_convention): Delete static
5188 declaration for function deleted in my change of 2003-06-12.
5189
5190 2003-06-13 Theodore A. Roth <troth@openavr.org>
5191
5192 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5193 (avr_pointer_to_address): Shift code addrs left 1 bit.
5194 (avr_convert_from_func_ptr_addr): Delete function since operation is
5195 better handled by avr_address_to_pointer and avr_pointer_to_address.
5196 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5197
5198 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5199
5200 From Kelley Cook <kelleycook@wideopenwest.com>:
5201 * configure.host: Accept i[34567]86 variants.
5202 * configure.tgt: Likewise.
5203 * nlm/configure.in: Likewise.
5204 * nlm/configure: Regenerated.
5205
5206 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5207
5208 * arm-tdep.c (solib-svr4.h): Dont' include it.
5209 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5210 * arm-linux-tdep.c: ... here. Make static.
5211 (arm_linux_init_abi): Register it.
5212 (solib-svr4.h): Include it.
5213 * Makefile.in: Update dependencies.
5214 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5215 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5216
5217 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5218
5219 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5220 indicate registers used for return values.
5221 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5222 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5223 members.
5224 (h8300_init_extra_frame_info): Ditto.
5225 (h8300_frame_locals_address): Removed.
5226 (h8300_frame_args_address): Removed.
5227 (h8300_extract_return_value): Use new regcache structure. Only care
5228 for 16 bit CPUs.
5229 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5230 (h8300_store_return_value): Use new regcache structure. Only care
5231 for 16 bit CPUs.
5232 (h8300h_store_return_value): Same function for 32 bit CPUs.
5233 (h8300_store_struct_return): Removed.
5234 (h8300_extract_struct_value_address): Use new regcache structure.
5235 (h8300h_extract_struct_value_address): Removed.
5236 (h8300_push_dummy_code): New function.
5237 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5238 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5239 set_gdbarch_store_return_value architecture dependent.
5240 Call set_gdbarch_push_dummy_code and
5241 set_gdbarch_extract_struct_value_address.
5242 Remove calls to set_gdbarch_frame_args_address,
5243 set_gdbarch_frame_locals_address,
5244 set_gdbarch_deprecated_store_struct_return,
5245 set_gdbarch_deprecated_extract_return_value,
5246 set_gdbarch_deprecated_extract_struct_value_address,
5247 set_gdbarch_deprecated_call_dummy_words and
5248 set_gdbarch_deprecated_sizeof_call_dummy_words.
5249
5250 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5251
5252 * h8300-tdep.c (h8300_register_byte): Remove.
5253 (h8300h_register_byte): Remove.
5254 (h8300_register_virtual_type): Remove. Substitute by...
5255 (h8300_register_type): New function.
5256 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5257 (h8300h_extract_struct_value_address): Ditto.
5258 (h8300_gdbarch_init): Drop calls to
5259 set_gdbarch_deprecated_register_byte and
5260 set_gdbarch_deprecated_register_virtual_type.
5261 Add call to set_gdbarch_register_type.
5262
5263 2003-06-13 Andrew Cagney <cagney@redhat.com>
5264
5265 * gdbarch.sh: Update comments on registers.
5266 (deprecated_register_byte): Rename register_byte.
5267 (deprecated_register_raw_size): Rename register_raw_size.
5268 (deprecated_register_virtual_size): Rename register_virtual_size.
5269 (deprecated_register_virtual_type): Rename register_virtual_type.
5270 * gdbarch.h, gdbarch.c: Re-generate.
5271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5272 * vax-tdep.c (vax_gdbarch_init): Update.
5273 * v850-tdep.c (v850_gdbarch_init): Update.
5274 * sparc-tdep.c (sparc_gdbarch_init): Update.
5275 * sh-tdep.c (sh_gdbarch_init): Update.
5276 * s390-tdep.c (s390_gdbarch_init): Update.
5277 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5278 * ns32k-tdep.c: Update.
5279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5280 * mips-tdep.c (mips_gdbarch_init): Update.
5281 * mcore-tdep.c (mcore_gdbarch_init): Update.
5282 * m68k-tdep.c (m68k_gdbarch_init): Update.
5283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5284 * ia64-tdep.c (ia64_gdbarch_init): Update.
5285 * hppa-tdep.c (hppa_gdbarch_init): Update.
5286 * h8300-tdep.c (h8300_gdbarch_init): Update.
5287 * frv-tdep.c (frv_gdbarch_init): Update.
5288 * cris-tdep.c (cris_gdbarch_init): Update.
5289 * avr-tdep.c (avr_gdbarch_init): Update.
5290 * alpha-tdep.c (alpha_gdbarch_init): Update.
5291 * arm-tdep.c (arm_gdbarch_init): Update.
5292
5293 2003-06-13 Andrew Cagney <cagney@redhat.com>
5294
5295 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5296 mips_o32_use_struct_convention with always_use_struct_convention.
5297
5298 2003-06-12 David Carlton <carlton@kealia.com>
5299
5300 * cp-namespace.c (cp_set_block_scope): Comment out
5301 processing_has_namespace_info branch.
5302
5303 2003-06-12 Jim Blandy <jimb@redhat.com>
5304
5305 Recognize and skip 64-bit PowerPC Linux linkage functions.
5306 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5307 insn_pattern, insns_match_pattern, d_field, ds_field): New
5308 functions, macros, and types for working with PPC instructions.
5309 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5310 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5311 ppc64_skip_trampoline_code): New functions, variables, and macros
5312 for recognizing and skipping linkage functions.
5313 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5314 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5315
5316 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5317 register offsets for both the 32- and 64-bit interfaces.
5318
5319 Actually finish the job started by my change of 2003-05-29.
5320 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5321 other #definition of this.
5322 (ppc_linux_skip_trampoline_code): Remove declaration.
5323 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5324 static.
5325 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5326 method for GDBARCH.
5327
5328 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5329 'long' on ppc64-*-linux*.
5330
5331 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5332 isn't #defined, assume the register doesn't exist: act as if
5333 tdep->ppc_mq_regnum were -1.
5334
5335 * configure.host, configure.tgt: Add entries for
5336 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5337 powerpc/linux.mt.
5338 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5339 New files.
5340
5341 * arch-utils.c (always_use_struct_convention): New function.
5342 * arch-utils.h (always_use_struct_convention): New prototype.
5343 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5344 (alpha_gdbarch_init): Register always_use_struct_convention,
5345 instead of alpha_use_struct_convention.
5346 * cris-tdep.c (cris_use_struct_convention): Delete.
5347 (cris_gdbarch_init): Register always_use_struct_convention,
5348 instead of cris_use_struct_convention.
5349 * frv-tdep.c (frv_use_struct_convention): Delete.
5350 (frv_gdbarch_init): Register always_use_struct_convention,
5351 instead of frv_use_struct_convention.
5352 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5353 (h8300_gdbarch_init): Register always_use_struct_convention,
5354 instead of h8300_use_struct_convention.
5355 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5356 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5357 instead of mips_o32_use_struct_convention.
5358
5359 2003-06-12 Andrew Cagney <cagney@redhat.com>
5360
5361 * wince.c: Include "mips-tdep.h".
5362 * mips-tdep.h (mips_next_pc): Declare.
5363 * mcore-tdep.c: Make more local functions static.
5364 * Makefile.in (wince.o): Update dependencies.
5365
5366 2003-06-12 David Carlton <carlton@kealia.com>
5367
5368 * symtab.c (lookup_symbol_aux_minsyms): Replace
5369 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5370 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5371 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5372 SYMBOL_NATURAL_NAME.
5373
5374 2003-06-12 Andreas Schwab <schwab@suse.de>
5375
5376 * Makefile.in (tuiDisassem.o): Update dependencies.
5377
5378 2003-06-12 David Carlton <carlton@bactrian.org>
5379
5380 * symtab.h: Delete declaration of make_symbol_overload_list.
5381 Add declaration of lookup_partial_symbol.
5382 * symtab.c (remove_params): Move to cp-support.c.
5383 (overload_list_add_symbol, make_symbol_overload_list)
5384 (sym_return_val_size, sym_return_val_index): Ditto.
5385 (lookup_partial_symbol): Make extern.
5386 * cp-support.h: Add declaration of make_symbol_overload_list.
5387 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5388 symtab.h, and block.h.
5389 (remove_params): Move here from symtab.c.
5390 (overload_list_add_symbol, make_symbol_overload_list)
5391 (sym_return_val_size, sym_return_val_index): Ditto.
5392 * valops.c: Include cp-support.h.
5393 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5394 frame_h, and block_h.
5395 (valops.o): Depend on cp_support_h.
5396
5397 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5398
5399 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5400 substitute by NUM_REGS throughout.
5401 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5402 (h8300s_register_name): New function for H8S registers.
5403 (h8300sx_register_name): Ditto for H8SX registers.
5404 (h8300_print_register): Revise register printing, avoid depending
5405 on 32 bit long.
5406 (h8300_register_byte): Only care for H8/300 registers.
5407 (h8300h_register_byte): New function for any other architecture.
5408 (h8300_register_raw_size): Remove.
5409 (h8300_register_virtual_type): Revise to return actually useful
5410 type.
5411 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5412 (h8300h_extract_struct_value_address): New function for any other
5413 architecture.
5414 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5415 set_gdbarch_register_name, set_gdbarch_register_byte,
5416 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5417 Remove calls to set_gdbarch_deprecated_register_size,
5418 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5419 set_gdbarch_deprecated_max_register_raw_size,
5420 set_gdbarch_register_virtual_size and
5421 set_gdbarch_deprecated_max_register_virtual_size entirely.
5422 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5423 set_gdbarch_long_double_bit.
5424
5425 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5426
5427 * doublest.c (convert_doublest_to_floatformat): When dealing
5428 with the implied integer bit, only alter mant_bits if we are
5429 processing a full 32 bits of mantissa.
5430
5431 2003-06-11 David Carlton <carlton@bactrian.org>
5432
5433 * dictionary.h: New.
5434 * dictionary.c: New.
5435 * block.h: Add opaque declaration for struct dictionary.
5436 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5437 'sym' members.
5438 (BLOCK_DICT): New macro.
5439 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5440 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5441 BLOCK_SHOULD_SORT.
5442 (ALL_BLOCK_SYMBOLS): Update definition.
5443 * Makefile.in (SFILES): Add dictionary.c.
5444 (dictionary_h): New.
5445 (COMMON_OBS): Add dictionary.o.
5446 (dictionary.o): New.
5447 (ada-lang.o): Depend on dictionary_h.
5448 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5449 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5450 (mi-cmd-stack.o): Ditto.
5451 (gdbtk-cmds.o): Update dependencies.
5452 (gdbtk-stack.o): Ditto.
5453 * ada-lang.c: Include dictionary.h.
5454 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5455 (fill_in_ada_prototype, debug_print_block): Ditto.
5456 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5457 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5458 'is_sorted'.
5459 * mdebugread.c: Include dictionary.h.
5460 (struct parse_stack): Delete 'maxsyms' member.
5461 (parse_symbol): Update calls to new_block. Delete calls to
5462 shrink_block. Use dictionary methods.
5463 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5464 Update calls to new_symtab. Don't maintain maxsyms data.
5465 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5466 (add_symbol): Just call dict_add_symbol.
5467 (new_symtab): Delete 'maxsyms' argument.
5468 (new_symtab): Update calls to new_block.
5469 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5470 (shrink_block): Delete function.
5471 (fixup_sigtramp): Update call to new_block. Add symbol via
5472 dict_add_symbol.
5473 * jv-lang.c: Include dictionary.h.
5474 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5475 appropriately. Set class_symtab->free_func. Make sure the
5476 blockvector is big enough to hold two blocks.
5477 (add_class_symtab_symbol): Use dictionary methods.
5478 (free_class_block): New function.
5479 (type_from_class): Replace explicit iteration by
5480 ALL_BLOCK_SYMBOLS.
5481 * symtab.h (struct symtab): Replace 'free_ptr' method by
5482 'free_func'.
5483 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5484 sort_symtab_syms.
5485 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5486 sort_symtab_syms.
5487 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5488 Include dictionary.h.
5489 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5490 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5491 sort_symtab_syms.
5492 * objfiles.c: Include dictionary.h.
5493 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5494 * buildsym.c: Include dictionary.h.
5495 (finish_block): Use dictionary methods.
5496 (end_symtab): Set free_func to NULL, not free_ptr.
5497 * tracepoint.c: Include dictionary.h.
5498 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5499 (scope_info): Ditto.
5500 * stack.c: Include dictionary.h.
5501 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5502 (print_block_frame_labels, print_frame_arg_vars)
5503 (print_frame_args): Ditto.
5504 * symmisc.c (free_symtab_block): Use dictionary methods.
5505 (dump_symtab): Ditto.
5506 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5507 Include dictionary.h.
5508 * symfile.h: Delete declarations of sort_block_syms,
5509 sort_symtab_syms.
5510 * symfile.c (sort_block_syms): Delete.
5511 (sort_symtab_syms): Delete.
5512 * symtab.c: Include dictionary.h.
5513 (lookup_block_symbol): Use dictionary iterators.
5514 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5515 (search_symbols, make_symbol_completion_list): Ditto.
5516 (make_symbol_overload_list): Ditto.
5517 * valops.c (value_of_local): Use dict_empty.
5518 Include dictionary.h.
5519
5520 2003-06-11 J. Brobecker <brobecker@gnat.com>
5521
5522 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5523
5524 2003-06-11 David Carlton <carlton@bactrian.org>
5525
5526 * block.h (BLOCK_SHOULD_SORT): Delete.
5527 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5528 blocks.
5529 * ada-lang.c (ada_add_block_symbols): Ditto.
5530 * symfile.c (sort_block_syms): Delete.
5531 (sort_symtab_syms): Ditto.
5532 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5533 declarations.
5534 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5535 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5536 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5537 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5538 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5539 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5540 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5541
5542 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5543
5544 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5545 bits to 128.
5546
5547 2003-06-11 Andrew Cagney <cagney@redhat.com>
5548
5549 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5550 REGISTER_CONVERTIBLE.
5551 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5552 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5553 * gdbarch.h, gdbarch.c: Re-generate.
5554 * arch-utils.h (deprecated_register_convertible_not): Rename
5555 generic_register_convertible_not.
5556 * arch-utils.c (deprecated_register_convertible_not): Rename
5557 generic_register_convertible.
5558 (legacy_convert_register_p, legacy_register_to_value): Update.
5559 * sh-tdep.c (sh64_push_arguments): Update.
5560 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5561 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5562 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5563 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5564 * arch-utils.c (legacy_value_to_register): Update.
5565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5566 (rs6000_register_convert_to_raw): Make parameter "from" const.
5567 * mips-tdep.c (mips_gdbarch_init): Update.
5568 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5569 * infcmd.c (default_print_registers_info): Update.
5570 * ia64-tdep.c (ia64_gdbarch_init): Update.
5571 (ia64_register_convert_to_raw): Make parameter "from" const.
5572 * i386-tdep.c (i386_gdbarch_init): Update.
5573 (i386_register_convert_to_raw): Update.
5574
5575 2003-06-11 Andrew Cagney <cagney@redhat.com>
5576
5577 * remote-fileio.c: Include "remote-fileio.h".
5578 * Makefile.in (remote-fileio.o): Update dependencies.
5579 (remote_fileio_h): Fix typo.
5580
5581 2003-06-11 Andrew Cagney <cagney@redhat.com>
5582
5583 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5584 (xstormy16_save_dummy_frame_tos): Make static.
5585 (_initialize_xstormy16_tdep): Add declaration.
5586 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5587 * v850-tdep.c: Make local functions static.
5588 (_initialize_v850_tdep): Add declaration.
5589 * sparc-tdep.c: Make local functions static.
5590 (_initialize_sparc_tdep): Add declaration.
5591 * sh-tdep.c: Make local functions static.
5592 (_initialize_sh_tdep): Add declaration.
5593 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5594 * s390-tdep.c: Make local functions static.
5595 (_initialize_s390_tdep): Add declaration.
5596 * dbxread.c (find_stab_function_addr): Make static.
5597 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5598 * ocd.c (_initialize_remote_ocd): Add declaration.
5599 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5600 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5601 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5602 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5603 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5604 * remote-array.c (_initialize_array): Add declaration.
5605 (_initialize_remote_monitors): Add declaration.
5606 * remote-mips.c: Make local functions static.
5607 (_initialize_remote_mips): Add declaration.
5608 * mcore-tdep.c: Make all local functions static.
5609 (_initialize_mcore_tdep): Add declaration.
5610 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5611 * abug-rom.c (_initialize_abug_rom): Add declaration.
5612 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5613 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5614 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5615 * remote-est.c (_initialize_est): Add declaration.
5616 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5617 (m68hc11_call_dummy_address): Make static.
5618 * ia64-tdep.c: Make local functions static.
5619 (_initialize_ia64_tdep): Add declaration.
5620 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5621 * monitor.c (monitor_wait_filter): Make static.
5622 (_initialize_remote_monitors): Add declaration.
5623 * remote-hms.c (_initialize_remote_hms): Add declaration.
5624 * remote-e7000.c (fetch_regs_from_dump): Make static.
5625 (expect_n): Make static.
5626 (_initialize_remote_e7000): Add declaration.
5627 * ser-e7kpc.c: Always include "defs.h".
5628 (_initialize_ser_e7000pc): Add declaration.
5629 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5630 * cris-tdep.c: Make all but one function static.
5631 (_initialize_cris_tdep): Add declaration.
5632 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5633 * solib.c (update_solib_list): Make static.
5634 (_initialize_solib): Add declaration.
5635 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5636 (_initialize_avr_tdep): Add declaration.
5637 * remote-rdi.c (voiddummy): Make static.
5638 (_initialize_remote_rdi): Add declaration.
5639 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5640 * remote-rdp.c (send_rdp): Make static.
5641 (_initialize_remote_rdp): Add declaration.
5642 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5643
5644 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5645
5646 * remote-fileio.c: Make ari happy.
5647
5648 2003-06-10 J. Brobecker <brobecker@gnat.com>
5649
5650 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5651 fetching the trailing bytes of the buffer we are about to write.
5652
5653 2003-06-10 Andrew Cagney <cagney@redhat.com>
5654
5655 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5656 * Makefile.in (remote-fileio.o): Update dependencies.
5657 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5658 include <setjmp.h>, or <sys/types.h> conditional on USG.
5659 (remote_fio_jmp_buf): Delete global variable.
5660
5661 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5662 Martin M. Hunt <hunt@redhat.com>
5663
5664 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5665 (SFILES): Add remote-fileio.c.
5666 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5667 dependencies for building remote.o.
5668 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5669 * remote-fileio.h: New header file defining remote File-I/O interface.
5670 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5671 static storage class.
5672 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5673 'F' packet.
5674 (_initialize_remote): Call initialize_remote_fileio().
5675 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5676 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5677 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5678 (captured_main): Initialize new ui_files.
5679 * ui-file.c: Add read and fgets input functions.
5680 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5681 (null_file_read): New function.
5682 (ui_file_read): New function.
5683 (set_ui_file_read): New function.
5684 (stdio_file_read): New function.
5685 * ui-file.h: New type ui_file_read_ftype.
5686 (set_ui_file_read): Declare.
5687 (ui_file_read): Declare.
5688
5689 2003-06-09 Andrew Cagney <cagney@redhat.com>
5690
5691 * frame.h (deprecated_unwind_get_saved_register): Rename
5692 generic_unwind_get_saved_register, update comments.
5693 * mips-tdep.c (mips_get_saved_register): Update.
5694 * frame.c (deprecated_unwind_get_saved_register): Update.
5695
5696 2003-06-09 Andrew Cagney <cagney@redhat.com>
5697
5698 * vax-tdep.c (vax_frame_locals_address): Delete function.
5699 (vax_gdbarch_init): Do not set frame_locals_address.
5700 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5701 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5702 * s390-tdep.c (s390_frame_args_address): Delete function.
5703 (s390_gdbarch_init): Do not set frame_args_address or
5704 frame_locals_address.
5705 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5706 (ns32k_gdbarch_init): Do not set frame_locals_address.
5707 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5708 (hppa_frame_locals_address): Delete function.
5709 (hppa_gdbarch_init): Do not set frame_args_address, or
5710 frame_locals_address.
5711 * arm-tdep.c (arm_frame_args_address): Delete.
5712 (arm_frame_locals_address): Delete.
5713 (arm_gdbarch_init): Do not set frame_args_address, or
5714 frame_locals_address.
5715
5716 2003-06-09 Andrew Cagney <cagney@redhat.com>
5717
5718 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5721 * arch-utils.c (frame_num_args_unknown): Delete function.
5722 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5723 (frame_info): Use FRAME_NUM_ARGS_P.
5724 * arm-tdep.c (arm_frame_num_args): Delete function.
5725 (arm_gdbarch_init): Do not set frame_num_args.
5726 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5727 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5728 (hppa_gdbarch_init): Do not set frame_num_args.
5729 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5731 frame_num_args to default frame_num_args_unknown.
5732 * v850-tdep.c (v850_gdbarch_init): Ditto.
5733 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5734 * sh-tdep.c (sh_gdbarch_init): Ditto.
5735 * s390-tdep.c (s390_gdbarch_init): Ditto.
5736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5737 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5738 * mips-tdep.c (mips_gdbarch_init): Ditto.
5739 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5740 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5742 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5743 * i386-tdep.c (i386_gdbarch_init): Ditto.
5744 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5745 * frv-tdep.c (frv_gdbarch_init): Ditto.
5746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5747 * cris-tdep.c (cris_gdbarch_init): Ditto.
5748 * avr-tdep.c (avr_gdbarch_init): Ditto.
5749 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5750
5751 2003-06-09 Andrew Cagney <cagney@redhat.com>
5752
5753 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5754 (print_frame_args): Moved to "stack.c".
5755 * stack.c: Include "gdb_assert.h".
5756 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5757 (print_frame_args): Moved from "printcmd.c".
5758 * frame.h (print_frame_args): Delete declaration.
5759 * Makefile.in (stack.o): Update dependencies.
5760
5761 2003-06-08 Andrew Cagney <cagney@redhat.com>
5762
5763 * frame.c (get_prev_frame): Remove reference to
5764 frame_args_address_correct in comments.
5765 * frame-base.c (default_frame_args_address): Delete code
5766 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5767 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5768 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5769 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5770 (vax_frame_args_address_correct): Delete declaration.
5771
5772 2003-06-08 Andrew Cagney <cagney@redhat.com>
5773
5774 * gdbarch.sh (UNWIND_SP): Add.
5775 * gdbarch.h, gdbarch.c: Re-generate.
5776 * frame.c (frame_sp_unwind): New function.
5777 (get_frame_sp): New function.
5778 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5779 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5780 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5781 value.
5782 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5783 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5784
5785 2003-06-08 Andrew Cagney <cagney@redhat.com>
5786
5787 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5788 REMOTE_BREAKPOINT.
5789 * remote.c: Update.
5790 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5791 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5792 * config/m68k/tm-sun3.h: Update.
5793 * config/m68k/tm-m68klynx.h: Update.
5794 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5795
5796 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5797 trad_frame". Update comments.
5798 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5799 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5800 (trad_frame_register_value, trad_frame_prev_register): Update.
5801
5802 2003-06-08 Andrew Cagney <cagney@redhat.com>
5803
5804 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5805 from GCC's acinclude.m4.
5806 * configure.in: Check for getopt's delcaration.
5807 * aclocal.m4, config.in, configure: Re-generate.
5808 * main.c (error_init): Delete declaration.
5809 * defs.h (error_init): Declare.
5810 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5811 (rs6000_convert_from_func_ptr_addr): Make static.
5812 (_initialize_rs6000_tdep): Add declaration.
5813 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5814 (show_commands, set_verbose, show_history): Delete declaration.
5815 * top.h (set_verbose): Add declaration.
5816 (show_history, set_history, show_commands): Add declaration.
5817 (do_restore_instream_cleanup): Add declaration.
5818 * objc-lang.c (specialcmp): Make static.
5819 (print_object_command): Make static.
5820 (find_objc_msgsend): Make static.
5821 (find_objc_msgcall_submethod_helper): Make static.
5822 (find_objc_msgcall_submethod): Make static.
5823 (_initialize_objc_language): Add declaration.
5824 (find_implementation_from_class): Make static.
5825 (find_implementation): Make static.
5826 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5827 * objc-lang.h (lookup_struct_typedef): Add declaration.
5828 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5829 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5830 (do_restore_user_call_depth): Make static.
5831 (do_restore_instream_cleanup): Delete declaration.
5832 (dont_repeat): Delete declaration.
5833 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5834 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5835 * reggroups.c (_initialize_reggroup): Add declaration.
5836 * cp-support.c (_initialize_cp_support): Add declaration.
5837 * cp-abi.c (_initialize_cp_abi): Add declaration.
5838 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5839 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5840 (_initialize_gnu_v3_abi): Add declaration.
5841 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5842 (_initialize_gnu_v2_abi): Add declaration.
5843 * frame-base.c (_initialize_frame_base): Add declaration.
5844 * doublest.c (floatformat_from_length): Make static.
5845 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5846 * frame.c (create_sentinel_frame): Make static.
5847 (_initialize_frame): Add declaration.
5848 * top.c (do_catch_errors): Make static.
5849 (gdb_rl_operate_and_get_next_completion): Make static.
5850 * typeprint.c: Include "typeprint.h".
5851 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5852 (sentinel_frame_this_id): Make static.
5853 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5854 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5855 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5856 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5857 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5858 * maint.c (maintenance_print_architecture): Make static.
5859 * signals/signals.c (_initialize_signals): Add declaration.
5860 * std-regs.c (_initialize_frame_reg): Add declaration.
5861 * jv-exp.y (push_variable): ISO C definition.
5862 (push_qualified_expression_name): Ditto.
5863 * memattr.c (_initialize_mem): Add declaration.
5864 * remote.c (remote_check_watch_resources): Make static.
5865 (remote_stopped_by_watchpoint): Make static.
5866 (remote_stopped_data_address): Make static.
5867 * d10v-tdep.c (nr_dmap_regs): Make static.
5868 (a0_regnum): Make static.
5869 (d10v_frame_unwind_cache): Make static.
5870 (d10v_frame_p): Make static.
5871 * osabi.c (show_osabi): Make static.
5872 (_initialize_gdb_osabi): Add extern declaration.
5873 * gdbtypes.c (make_qualified_type): Make static.
5874 (safe_parse_type): Make static.
5875 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5876 * macrotab.c (macro_bcache_free): Make static.
5877 * interps.c (interp_set_quiet): Make static.
5878 (interpreter_exec_cmd): Make static.
5879 * stack.h (select_frame_command): New file.
5880 * stack.c: Include "stack.h".
5881 (select_frame_command_wrapper): Delete function.
5882 (select_frame_command): Make global.
5883 * infcall.c: Include "infcall.h".
5884 * linespec.c: Include "linespec.h".
5885 * symfile.c (sections_overlap): Make static.
5886 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5887 * charset.c (_initialize_charset): Add missing prototype.
5888 * regcache.c (init_legacy_regcache_descr): Make static.
5889 (do_regcache_xfree): Make static.
5890 (regcache_xfer_part): Make static.
5891 (_initialize_regcache): Add missing prototype.
5892 * breakpoint.c (parse_breakpoint_sals): Make static.
5893 (breakpoint_sals_to_pc): Make static.
5894 * interps.h (clear_interpreter_hooks): ISO C declaration.
5895 * Makefile.in (stack_h): Define.
5896 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5897 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5898
5899 2003-06-08 Andrew Cagney <cagney@redhat.com>
5900
5901 * Makefile.in (d10v-tdep.o): Update dependencies.
5902 (SFILES): Add trad-frame.c.
5903 (trad_frame_h): Define.
5904 (COMMON_OBS): Add trad-frame.o.
5905 (trad-frame.o): Specify dependencies.
5906 * d10v-tdep.c: Include "trad-frame.h".
5907 (saved_regs_unwinder): Delete function.
5908 (d10v_frame_prev_register): Use trad_frame_prev_register.
5909 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5910 trad_frame", delete "regs" and "prev_sp".
5911 (prologue_find_regs): Use trad-frame.
5912 * trad-frame.h, trad-frame.c: New files.
5913
5914 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5915
5916 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5917
5918 2003-06-07 Adam Fedor <fedor@gnu.org>
5919
5920 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5921 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5922 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5923 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5924 resolve_msgsend_super, resolve_msgsend_super_stret):
5925 Use it.
5926
5927 2003-06-07 Andrew Cagney <cagney@redhat.com>
5928
5929 * symfile.h: Re-indent, clean up comments.
5930
5931 2003-06-07 Andrew Cagney <cagney@redhat.com>
5932
5933 * inferior.h (deprecated_write_sp): Replace
5934 generic_target_write_sp.
5935 * regcache.c (deprecated_write_sp): Replace
5936 generic_target_write_sp.
5937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5938 * vax-tdep.c (vax_gdbarch_init): Update.
5939 * v850-tdep.c (v850_gdbarch_init): Update.
5940 * sparc-tdep.c (sparc_gdbarch_init): Update.
5941 * sh-tdep.c (sh_gdbarch_init): Update.
5942 * s390-tdep.c (s390_gdbarch_init): Update.
5943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5946 * mcore-tdep.c (mcore_gdbarch_init): Update.
5947 * m68k-tdep.c (m68k_gdbarch_init): Update.
5948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5949 * ia64-tdep.c (ia64_gdbarch_init): Update.
5950 * h8300-tdep.c (h8300_gdbarch_init): Update.
5951 * frv-tdep.c (frv_gdbarch_init): Update.
5952 * cris-tdep.c (cris_gdbarch_init): Update.
5953 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5954
5955 2003-06-07 Andrew Cagney <cagney@redhat.com>
5956
5957 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5958 Assert that PC_REGNUM is valid.
5959 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5960
5961 2003-06-07 Andrew Cagney <cagney@redhat.com>
5962
5963 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5964 * gdbarch.h, gdbarch.c: Regenerate.
5965 * mn10300-tdep.c: Include "gdb_assert.h".
5966 (mn10300_read_fp): New function.
5967 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5968 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5969 * ia64-tdep.c: Include "gdb_assert.h".
5970 (ia64_read_fp): New function.
5971 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5972 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5973 * regcache.c (generic_target_read_sp): Delete function.
5974 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5975 * inferior.h (generic_target_read_sp): Delete declaration.
5976 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5977 generic_target_read_sp.
5978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5979 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5980 * sh-tdep.c (sh_gdbarch_init): Ditto.
5981 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5982 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5983
5984 2003-06-07 Andrew Cagney <cagney@redhat.com>
5985
5986 * gdbarch.sh: Comment each field of startup_gdbarch.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988
5989 2003-06-07 Andrew Cagney <cagney@redhat.com>
5990
5991 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5992 * gdbarch.h, gdbarch.c: Re-generate.
5993 * regcache.c: Update comments on read_pc et.al.
5994 (generic_target_read_pc): Delete function.
5995 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5996 * inferior.h (generic_target_read_pc): Delete declaration.
5997 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5998 generic_target_read_pc.
5999 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6000 * sh-tdep.c (sh_gdbarch_init): Ditto.
6001 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6003
6004 2003-06-07 Andrew Cagney <cagney@redhat.com>
6005
6006 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
6007 "index" with "special_local_sect". Use strcmp instead of STREQ.
6008 Append period to coments.
6009
6010 2003-06-06 Mark Mitchell <mark@codesourcery.com>
6011
6012 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
6013 (elfstab_offset_sections): Likewise.
6014 * gdb-stabs.h (stab_section_info): Likewise.
6015 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
6016 * objfiles.c (objfile_relocate): Likewise.
6017 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
6018 * remote.c (get_offsets): Likewise.
6019 (remote_cisco_objfile_relocate): Likewise.
6020 * somread.c (som_symfile_offsets): Likewise.
6021 * symfile.c (alloc_section_addr_info): New function.
6022 (build_section_addr_info_from_section_tab): Use it.
6023 (free_section_addr_info): Adjust.
6024 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
6025 (syms_from_objfile): Allocate local_addr dynamically.
6026 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
6027 dynamically.
6028 (add_symbol_file_command): Allocate sect_opts dynamically.
6029 (reread_symbols): Avoid use of SECT_OFF_MAX.
6030 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
6031 (alloc_section_addr_info): Declare it.
6032 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6033 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6034 dynamically.
6035 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6036
6037 2003-06-06 Andrew Cagney <cagney@redhat.com>
6038
6039 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6040 (d10v_frame_unwind_cache): Do not set "return_pc".
6041
6042 2003-06-06 Michael Snyder <msnyder@redhat.com>
6043
6044 * h8300-tdep.c: Make tidy (long lines).
6045
6046 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6047
6048 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6049 to regcache_collect().
6050
6051 2003-06-05 J. Brobecker <brobecker@gnat.com>
6052
6053 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6054 pc_in_sigtramp multiarch method.
6055 (hppa_hpux_som_init_abi): Use it.
6056 (hppa_hpux_elf_init_abi): Likewise.
6057 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6058 macro has been multiarched.
6059 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6060 macro here, as hppa64 isn't multiarched yet.
6061
6062 2003-06-05 Andrew Cagney <cagney@redhat.com>
6063
6064 * Makefile.in (value_h): Add $(frame_h).
6065 * value.h: Include "frame.h".
6066 (struct value): Replace "frame_addr" with "frame_id".
6067 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6068 * values.c (allocate_value): Use VALUE_FRAME_ID.
6069 (value_copy): Use VALUE_FRAME_ID.
6070 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6071 * valops.c (value_assign): Update. Use frame_find_by_id.
6072
6073 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6074
6075 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6076 in each pass.
6077
6078 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6079
6080 * thread-db.c (check_event): For create/death event breakpoints,
6081 loop through all messages to ensure that we read the message
6082 corresponding to the breakpoint we are at.
6083
6084 2003-06-04 Michael Snyder <msnyder@redhat.com>
6085
6086 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6087
6088 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6089
6090 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6091 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6092 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6093 when handling .eh_frame sections.
6094
6095 2003-06-04 J. Brobecker <brobecker@gnat.com>
6096
6097 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6098 prepare_to_proceed procedure instead of the hppa-specific one.
6099 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6100
6101 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6102
6103 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6104 * config.in: Regenerated.
6105 * configure.in: Add test for syscall function and check for
6106 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6107 * configure: Regenerated.
6108 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6109 <sys/syscall.h>.
6110 (kill_lwp): New function that uses tkill syscall or
6111 uses kill, depending on whether threading model is nptl or not.
6112 All callers of kill() changed to use kill_lwp().
6113 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6114 see if all threads have already exited in the nptl model.
6115 (stop_and_resume_callback): New callback function used by the
6116 lin_lwp_wait thread exit handling code.
6117 (stop_wait_callback): Check for threads already having exited and
6118 delete such threads fromt the lwp list when discovered.
6119 (stop_callback): Don't assert retcode of kill call.
6120
6121 Roland McGrath <roland@redhat.com>
6122 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6123 nptl libthread_db.
6124
6125 2003-06-03 Richard Henderson <rth@redhat.com>
6126
6127 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6128 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6129 (alpha_sigtramp_frame_prev_register): Likewise.
6130 (alpha_heuristic_frame_prev_register): Likewise.
6131 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6132
6133 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6134 alpha-specific register id names.
6135 (alpha_mdebug_frame_unwind_cache): Likewise.
6136 (alpha_mdebug_frame_prev_register): Likewise.
6137
6138 2003-06-03 Richard Henderson <rth@redhat.com>
6139
6140 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6141 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6142 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6143 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6144 unwind routines.
6145 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6146 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6147 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6148
6149 * alpha-linux-tdep.c: Remove unnecessary includes.
6150 * Makefile.in (alpha-linux-tdep.o): Update.
6151
6152 2003-06-03 Richard Henderson <rth@redhat.com>
6153
6154 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6155 (alphabsd_fill_fpreg): Likewise.
6156
6157 2003-06-03 J. Brobecker <brobecker@gnat.com>
6158
6159 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6160 references to struct frame_info fields by calls to the equivalent
6161 accessors. Necessary now that frame_info is opaque.
6162
6163 2003-06-03 J. Brobecker <brobecker@gnat.com>
6164
6165 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6166 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6167 structure, field no longer exists.
6168
6169 2003-06-03 J. Brobecker <brobecker@gnat.com>
6170
6171 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6172 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6173
6174 2003-06-03 J. Brobecker <brobecker@gnat.com>
6175
6176 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6177 references to struct frame_info fields by calls to the equivalent
6178 accessors. Necessary now that frame_info is opaque.
6179
6180 2003-06-03 J. Brobecker <brobecker@gnat.com>
6181
6182 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6183 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6184 structure, field no longer exists.
6185
6186 2003-06-03 Theodore A. Roth <troth@openavr.org>
6187
6188 * remote.c (init_remote_state): Compute sizeof_g_packet by
6189 accumulation of the size of all registers instead of blindly using
6190 DEPRECATED_REGISTER_BYTES.
6191
6192 2003-06-03 Michael Snyder <msnyder@redhat.com>
6193
6194 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6195 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6196 for h8300sx.
6197
6198 2003-06-03 J. Brobecker <brobecker@gnat.com>
6199
6200 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6201 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6202
6203 2003-06-03 Andrew Cagney <cagney@redhat.com>
6204
6205 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6206 (sparc_convert_to_raw): Delete function.
6207 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6208 register_convert_to_virtual.
6209
6210 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6211
6212 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6213 layer if not dealing with a statically-linked threaded program.
6214
6215 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6216
6217 * solib.c (solib_open): Update comment to reflect actual search order.
6218
6219 2003-06-03 Andrew Cagney <cagney@redhat.com>
6220
6221 * frame.c (get_frame_memory_signed): New function.
6222 (get_frame_memory, get_frame_memory_unsigned): New function.
6223 (get_frame_arch): New function.
6224 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6225 (get_frame_memory, get_frame_unsigned_memory): Declare.
6226 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6227 get_frame_memory_unsigned and get_frame_arch.
6228 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6229
6230 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6231
6232 * MAINTAINERS (write after approval): Add myself.
6233
6234 2003-06-03 Jim Blandy <jimb@redhat.com>
6235
6236 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6237 elements of gregset_t are 64 bits each, but access registers
6238 are still 32 bits, so they're packed two per gregset_t
6239 element. Unpack/pack them properly.
6240
6241 2003-06-02 David Carlton <carlton@bactrian.org>
6242
6243 * linespec.c (find_methods): Break out code into
6244 add_matching_methods and add_constructors.
6245 (add_matching_methods): New.
6246 (add_constructors): Ditto.
6247
6248 2003-06-02 Andrew Cagney <cagney@redhat.com>
6249
6250 * sparc-tdep.c (sparc_print_registers): Delete call to
6251 REGISTER_CONVERTIBLE.
6252 (sparc_gdbarch_init): Do not set register_convertible.
6253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6254 * frv-tdep.c (frv_gdbarch_init): Ditto.
6255 * cris-tdep.c (cris_gdbarch_init): Ditto.
6256
6257 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6258
6259 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6260 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6261 (syms_from_objfile): Ditto.
6262
6263 2003-06-03 Andreas Schwab <schwab@suse.de>
6264
6265 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6266 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6267
6268 2003-06-02 Richard Henderson <rth@redhat.com>
6269
6270 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6271 a member of all_reggroup.
6272
6273 2003-06-02 Richard Henderson <rth@redhat.com>
6274
6275 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6276 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6277 (alpha_lds, alpha_sts): New.
6278 (alpha_convert_register_p): Change from _register_convertible.
6279 (alpha_register_to_value): Change from _convert_to_virtual;
6280 restructure and fail for type sizes other than 4 or 8.
6281 (alpha_value_to_register): Similarly.
6282 (alpha_extract_return_value): Use alpha_sts.
6283 (alpha_store_return_value): Use alpha_lds.
6284 (alpha_gdbarch_init): Update hooks.
6285
6286 2003-06-02 Richard Henderson <rth@redhat.com>
6287
6288 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6289 regnum identifiers.
6290 (alpha_sigtramp_register_address): Likewise.
6291
6292 2003-06-02 Richard Henderson <rth@redhat.com>
6293
6294 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6295 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6296 * alpha-tdep.h: Declare them.
6297
6298 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6299 Remove zerobuf. Don't error on UNIQUE.
6300 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6301 (ALPHA_REGSET_UNIQUE): Provide default.
6302 (supply_gregset): Use alpha_supply_int_regs.
6303 (fill_gregset): Use alpha_fill_int_regs.
6304 (supply_fpregset): Use alpha_supply_fp_regs.
6305 (fill_fpregset): Use alpha_fill_fp_regs.
6306 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6307 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6308 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6309 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6310 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6311 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6312
6313 2003-06-02 Richard Henderson <rth@redhat.com>
6314
6315 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6316
6317 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6318 (alpha_store_return_value): Likewise.
6319
6320 2003-06-02 David Carlton <carlton@math.stanford.edu>
6321
6322 * block.c (contained_in): Add 'const' to arguments.
6323 (block_function): Ditto.
6324 * block.h: Update declarations for block_function and
6325 contained_in.
6326
6327 2003-06-02 David Carlton <carlton@math.stanford.edu>
6328
6329 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6330 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6331 * p-valprint.c (pascal_val_print): Ditto.
6332 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6333
6334 2003-06-02 Richard Henderson <rth@redhat.com>
6335
6336 * alpha-tdep.c (alpha_push_dummy_call): Use
6337 builtin_type_ieee_double_little instead of builtin_type_double.
6338
6339 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6340 sign-extension of 32-bit values.
6341 (alpha_store_return_value): Similarly.
6342
6343 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6344 (alpha_extract_return_value): Likewise.
6345 (alpha_store_return_value): Likewise.
6346
6347 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6348 (alpha_store_return_value): Error on IEEE Quad floats.
6349
6350 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6351 (alpha_extract_struct_value_address): Likewise.
6352 (alpha_store_return_value): Likewise.
6353 (alpha_store_struct_return): Remove.
6354 (alpha_gdbarch_init): Update hook registration to match.
6355
6356 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6357 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6358 macros where appropriate.
6359 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6360 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6361
6362 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6363 for SP, GP; void_func_ptr for PC; non-language-specific types
6364 for all others.
6365 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6366
6367 2003-06-02 Richard Henderson <rth@redhat.com>
6368
6369 * top.h (lim_at_start): Declare.
6370 * main.c (captured_main): Set it.
6371 * top.c (lim_at_start): Define.
6372 (command_loop): Use it instead of &environ.
6373 * event-top.c (command_handler): Likewise.
6374
6375 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6376
6377 * mipsnbsd-tdep.c: Update copyright years.
6378 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6379
6380 2003-06-01 Richard Henderson <rth@redhat.com>
6381
6382 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6383 (alpha-linux-tdep.o): Update dependencies.
6384 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6385 * alpha-mdebug-tdep.c: Remove unneeded includes.
6386
6387 2003-06-01 Richard Henderson <rth@redhat.com>
6388
6389 * alpha-tdep.c (alpha_register_reggroup_p): New.
6390 (alpha_gdbarch_init): Register it.
6391
6392 2003-06-02 Andrew Cagney <cagney@redhat.com>
6393
6394 * dwarfread.c: Eliminate "register"
6395 (decode_die_type): Eliminate assignment within "if".
6396 (struct_type, decode_array_element_type): Ditto.
6397 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6398 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6399 (decode_modified_type, completedieinfo): Ditto.
6400 * block.c: Eliminate "register".
6401 (blockvector_for_pc_sect): Eliminate assignment within "if".
6402 * cp-support.h (struct symbol): Opaque declaration.
6403 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6404
6405 2003-06-01 Richard Henderson <rth@redhat.com>
6406
6407 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6408 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6409
6410 2003-06-01 Adam Fedor <fedor@gnu.org>
6411
6412 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6413 * gdbarch.[ch]: Regenerate.
6414 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6415 (hppa_gdbarch_init): Set it in the gdbarch vector.
6416 * i386-tdep.c (i386_fetch_pointer_argument): New
6417 (i386_gdbarch_init): Set it into gdbarch.
6418 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6419 (rs6000_gdbarch_init): Set it in gdbarch.
6420 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6421 (sparc_gdbarch_init): Set it in gdbarch.
6422
6423 2003-06-01 Andrew Cagney <cagney@redhat.com>
6424
6425 * defs.h (extract_address): Delete declaration.
6426 * findvar.c (extract_address): Delete function.
6427 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6428 extract_address with the inline equivalent,
6429 extract_unsigned_integer.
6430 (xstormy16_extract_struct_value_address): Ditto.
6431 (xstormy16_pointer_to_address): Ditto.
6432 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6433 * v850-tdep.c (v850_push_arguments): Ditto.
6434 (v850_extract_return_value): Ditto.
6435 (v850_extract_struct_value_address): Ditto.
6436 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6437 (sparcnbsd_get_longjmp_target_64): Ditto.
6438 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6439 (get_longjmp_target): Ditto.
6440 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6441 (sh64_extract_struct_value_address): Ditto.
6442 (sh_push_arguments): Ditto.
6443 (sh64_push_arguments): Ditto.
6444 * remote-vxsparc.c (vx_read_register): Ditto.
6445 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6446 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6447 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6448 * mipsv4-nat.c (get_longjmp_target): Ditto.
6449 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6450 * mips-nat.c (get_longjmp_target): Ditto.
6451 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6452 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6453 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6454 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6455 * irix5-nat.c (get_longjmp_target): Ditto.
6456 * irix4-nat.c (get_longjmp_target): Ditto.
6457 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6458 (ia64_push_arguments): Ditto.
6459 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6460 * h8300-tdep.c (h8300_push_arguments): Ditto.
6461 (h8300_store_return_value): Ditto.
6462 (h8300_extract_struct_value_address): Ditto.
6463 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6464 (frv_push_arguments): Ditto.
6465 * avr-tdep.c (avr_pointer_to_address): Ditto.
6466 (avr_push_arguments): Ditto.
6467 * arm-tdep.c (arm_push_dummy_call): Ditto.
6468 (arm_get_longjmp_target): Ditto.
6469 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6470 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6471 (alpha_get_longjmp_target): Ditto.
6472
6473 * solib-irix.c (extract_mips_address): Inline extract_address,
6474 replacing it with extract_signed_integer.
6475 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6476 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6477 (first_link_map_member, open_symbol_file_object): Ditto.
6478 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6479 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6480 (LM_NEXT, LM_NAME): Ditto.
6481
6482 2003-06-01 Richard Henderson <rth@redhat.com>
6483
6484 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6485 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6486 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6487 (alpha_cannot_store_register): Likewise.
6488 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6489 * alpha-nat.c (supply_gregset): Likewise.
6490 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6491
6492 2003-06-01 Andrew Cagney <cagney@redhat.com>
6493
6494 * infcall.c (call_function_by_hand): Update comment on
6495 DEPRECATED_DUMMY_WRITE_SP.
6496
6497 * mips-tdep.c (mips_gdbarch_init): Do not set
6498 deprecated_dummy_write_sp.
6499 (mips_eabi_push_dummy_call): Set the SP register.
6500 (mips_o64_push_dummy_call): Set the SP register.
6501 (mips_o32_push_dummy_call): Set the SP register.
6502 (mips_n32n64_push_dummy_call): Set the SP register.
6503
6504 2003-06-01 Richard Henderson <rth@redhat.com>
6505
6506 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6507 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6508 (supply_gregset): Likewise.
6509 * alpha-tdep.c (alpha_store_return_value): Likewise.
6510 (alpha_get_longjmp_target): Likewise.
6511 (alpha_register_name): Constify array.
6512 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6513 deprecated_register_size, deprecated_register_bytes,
6514 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6515 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6516 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6517
6518 2003-06-01 Richard Henderson <rth@redhat.com>
6519
6520 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6521 from arg_reg_buffer to regcache to avoid double conversion.
6522
6523 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6524
6525 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6526 SP_REGNUM.
6527 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6528 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6529
6530 2003-06-01 Richard Henderson <rth@redhat.com>
6531
6532 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6533 (decode_frame_entry): Set it. Skip FDE augmentation.
6534
6535 2003-06-01 Richard Henderson <rth@redhat.com>
6536
6537 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6538 not overlapping PC_REGNUM.
6539
6540 2003-06-01 Richard Henderson <rth@redhat.com>
6541
6542 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6543 alpha_push_arguments. Don't dump argument register data to
6544 the target stack. Fix float and 128-bit long double semantics.
6545 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6546 (alpha_fix_call_dummy): Remove.
6547 (alpha_call_dummy_words): Remove.
6548 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6549
6550 2003-06-01 Richard Henderson <rth@redhat.com>
6551
6552 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6553
6554 2003-06-01 Andrew Cagney <cagney@redhat.com>
6555
6556 * mips-tdep.c (is_mips16_addr): New function.
6557 (make_mips16_addr, unmake_mips16_addr): New functions.
6558 (pc_is_mips16, mips_fetch_instruction): Use.
6559 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6560 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6561 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6562 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6563 TARGET_MIPS.
6564 * config/mips/tm-mips.h: Update copyright.
6565 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6566 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6567 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6568 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6569 (TM_PRINT_INSN_MACH): Delete.
6570 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6571
6572 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6573 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6574 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6575 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6576 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6577 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6578 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6579 mips*-*-riscos* and mips*-*-sysv* onto mips.
6580 * config/mips/mips64.mt: New file.
6581 * config/mips/mips.mt: New file.
6582 * config/mips/littlemips.mt: Delete file.
6583 * config/mips/decstation.mt: Delete file.
6584 * config/mips/vr4300el.mt: Delete file.
6585 * config/mips/vr5000el.mt: Delete file.
6586 * config/mips/vr5000.mt: Delete file.
6587 * config/mips/vr4100.mt: Delete file.
6588 * config/mips/vr4xxxel.mt: Delete file.
6589 * config/mips/vr4300.mt: Delete file.
6590 * config/mips/vr4xxx.mt: Delete file.
6591 * config/mips/bigmips.mt: Delete file.
6592 * config/mips/bigmips64.mt: Delete file.
6593 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6594 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6595 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6596 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6597 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6598 "tm-bigmips.h".
6599 * config/mips/tm-irix3.h: Ditto.
6600 * config/mips/tm-mipsv4.h: Ditto.
6601 * config/mips/tm-embed.h: Ditto.
6602 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6603 "tm-bigmips64.h".
6604 * config/mips/tm-vr5000el.h: Delete file.
6605 * config/mips/tm-tx39l.h: Delete file.
6606 * config/mips/tm-vr4300el.h: Delete file.
6607 * config/mips/tm-vr4xxxel.h: Delete file.
6608 * config/mips/tm-vr4300.h: Delete file.
6609 * config/mips/tm-vr4100.h: Delete file.
6610 * config/mips/tm-vr4xxx.h: Delete file.
6611 * config/mips/tm-vr5000.h: Delete file.
6612 * config/mips/tm-embedl64.h: Delete file.
6613 * config/mips/tm-embedl.h: Delete file.
6614 * config/mips/tm-embed64.h: Delete file.
6615 * config/mips/tm-bigmips64.h: Delete file.
6616 * config/mips/tm-bigmips.h: Delete file.
6617
6618 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6619
6620 Fix gdb/1216.
6621 * shnbsd-nat.c: Include "sh-tdep.h".
6622
6623 From Richard Henderson <rth@redhat.com>:
6624 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6625
6626 2003-05-31 Andrew Cagney <cagney@redhat.com>
6627
6628 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6629 forward declaration.
6630 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6631 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6632 (mips_find_saved_regs): Use set_reg_offset.
6633 (mips_frame_init_saved_regs): Delete function.
6634 (mips_pop_frame): Call mips_find_saved_regs instead of
6635 DEPRECATED_FRAME_INIT_SAVED_REGS.
6636
6637 2003-05-31 Andrew Cagney <cagney@redhat.com>
6638
6639 * mips-tdep.c (mips_gdbarch_init): Do not set
6640 deprecated_max_register_raw_size, register_virtual_size, and
6641 deprecated_max_register_virtual_size.
6642
6643 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6644
6645 * i386-tdep.c: Include "dwarf2-frame.h".
6646 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6647 * Makefile.in (i386-tdep.o): Update dependencies.
6648
6649 * dwarf2-frame.c, dwarf2-frame.h: New files.
6650 * Makefile.in (SFILES): Add dwarf2-frame.c.
6651 (dwarf2_frame_h): Define.
6652 (COMMON_OBS): Add dwarf2-frame.o.
6653 (dwarf2-frame.o): Add dependencies.
6654
6655 2003-05-31 Andreas Jaeger <aj@suse.de>
6656
6657 * x86-64-linux-nat.c: Fix comment.
6658
6659 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6660
6661 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6662 function signature.
6663
6664 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6665 have a sigcontext_addr handler.
6666 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6667 sigcontext_addr handler.
6668
6669 2003-05-31 Andrew Cagney <cagney@redhat.com>
6670
6671 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6672 (print_fp_register_row): Replace do_fp_register_row.
6673 (mips_print_fp_register): Add "file" and "frame" parameters.
6674 (mips_print_register): Add "file" and "frame" parameters.
6675 (mips_print_registers_info): Replace mips_do_registers_info.
6676 (mips_gdbarch_init): Set print_registers_info instead of
6677 deprecated_do_registers_info.
6678 (mips_read_fp_register_single): Add "frame" parameter.
6679 (mips_read_fp_register_double): Add "frame" parameter.
6680
6681 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6682
6683 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6684 Fixes a bug where GDB would print the wrong register names for
6685 targets without SSE.
6686
6687 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6688 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6689 registers.
6690
6691 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6692 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6693 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6694 TDEP->sc_sp_offset.
6695
6696 From Michal Ludvig <mludvig@suse.cz>:
6697 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6698 and `sc_num_regs'.
6699 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6700 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6701 I386_ST0_REGNUM): Move here from...
6702 * i386-tdep.c: ... here.
6703 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6704 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6705 registers if possible.
6706 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6707 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6708 Remove variables.
6709 (i386bsd_sc_reg_offset): New variable.
6710 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6711 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6712 TDEP->sc_sp_offset.
6713 (i386fbsd_sc_reg_offset): New variable.
6714 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6715 TDEP->sc_num_regs.
6716 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6717 variables.
6718 (i386fbsd4_sc_reg_offset): New variable.
6719 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6720 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6721 TDEP->sc_sp_offset.
6722 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6723 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6724 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6725 Remove variables.
6726 (i386nbsd_sc_reg_offset): New variable.
6727 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6728 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6729 TDEP->sc_sp_offset.
6730 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6731 Remove variables.
6732 (i386obsd_sc_reg_offset): New variable.
6733 (i386obsd_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 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6737 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6738 for frame pointer offset in `struct sigcontext'.
6739
6740 2003-05-31 Andrew Cagney <cagney@redhat.com>
6741
6742 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6743 architecture methods call_dummy_words, sizeof_call_dummy_words,
6744 push_return_address, store_struct_return, and fix_call_dummy. Set
6745 push_dummy_call instead of deprecated_push_arguments.
6746 (mips_store_struct_return): Delete function.
6747 (mips_fix_call_dummy): Delete function.
6748 (mips_push_return_address): Delete function.
6749 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6750 RA_REGNUM and T9_REGNUM.
6751 (mips_n32n64_push_dummy_call): Ditto for
6752 mips_n32n64_push_arguments.
6753 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6754 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6755
6756 2003-05-31 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6759 "dummy_addr" to "bp_addr".
6760 * infcall.c (call_function_by_hand): Pass "funaddr" to
6761 gdbarch_push_dummy_call.
6762 * gdbarch.h, gdbarch.c: Re-generate.
6763 * i386-tdep.c (i386_push_dummy_call): Update.
6764 * arm-tdep.c (arm_push_dummy_call): Update.
6765 * d10v-tdep.c (d10v_push_dummy_call): Update.
6766
6767 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6768
6769 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6770 variable declarations.
6771 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6772 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6773 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6774 x86_64_init_frame_pc, x86_64_init_frame_pc,
6775 x86_64_function_has_prologue): Remove prototypes.
6776 (X86_64_NUM_GREGS): New define.
6777 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6778 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6779 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6780 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6781 XMM1_REGNUM): Remove defines.
6782 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6783 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6784 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6785 X86_64_XMM1_REGNUM): New defines.
6786 (struct x86_64_register_info): Renamed from `struct
6787 register_info'. Remove `size' member.
6788 (x86_64_register_info_table): Remove variable.
6789 (x86_64_register_info): New variable.
6790 (X86_64_NUM_REGS): New define.
6791 (X86_64_NUM_GREGS): Remove define.
6792 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6793 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6794 Remove variables.
6795 (x86_54_dwarf2_reg_to_regnum): Remove function.
6796 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6797 (x86_64_dwarf_reg_to_regnum): New function.
6798 (x86_64_register_name): Rewrite.
6799 (x86_64_register_raw_size): Remove function.
6800 (x86_64_register_byte_table): Remove variable.
6801 (x86_64_register_byte): Remove function.
6802 (x86_64_register_virtual_type): Remove function.
6803 (x86_64_register_type): New function.
6804 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6805 x86_64_register_convert_to_raw): Remove functions.
6806 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6807 (x86_64_use_struct_convention): Make static. Adjust for renamed
6808 defines.
6809 (x86_64_frame_init_saved_regs): Remove function.
6810 (x86_64_push_arguments): Make static. Change to accept a regcache
6811 as argument.
6812 (x86_64_store_return_value, x86_64_extract_return_value): Make
6813 static. Rewrite based on i386 counterparts.
6814 (x86_64_push_dummy_call): New function.
6815 (X86_64_NUM_SAVED_REGS): New define.
6816 (x86_64_register_number): Remove function.
6817 (x86_64_store_struct_return): Remove function.
6818 (x86_64_frameless_function_invocation,
6819 x86_64_function_has_prologue): Remove functions.
6820 (PROLOG_BUFSIZE): Remove define.
6821 (struct x86_64_frame_cache): New structure.
6822 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6823 x86_64_frame_cache, x86_64_frame_this_id,
6824 x86_64_frame_prev_register, x86_64_frame_p,
6825 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6826 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6827 functions.
6828 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6829 variables.
6830 (x86_64_skip_prologue): Rewrite in terms of
6831 x86_64_analyze_prologue.
6832 (x86_64_frame_base_address): New function.
6833 (x86_64_frame_base): New variable.
6834 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6835 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6836 set deprecated_fp_regnum, deprecated_register_size,
6837 deprecated_register_bytes, register_raw_size, register_byte,
6838 register_virtual_type, register_convertiable,
6839 register_convert_to_virtual, convert_to_raw,
6840 deprecated_get_saved_register, deprecated_target_read_fp,
6841 deprecated_push_arguments, deprecated_push_return_address,
6842 deprecated_pop_frame, deprecated_store_struct_return,
6843 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6844 frameless_function_invocation, deprecated_frame_saved_pc,
6845 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6846 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6847 deprecated_init_frame_pc and virtual_frame_pointer. Call
6848 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6849 and x86_64_frame_p. Call frame_base_set_default to register
6850 x86_64_frame_base.
6851 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6852 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6853 (_initialize_x86_64_tdep): Remove function.
6854 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6855 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6856 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6857 define.
6858 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6859 (x86_64_linux_sigcontext_addr): Rewrite.
6860 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6861 x86_64_linux_frame_saved_pc): Remove functions.
6862 (x86_64_linux_pc_in_sigtramp): Renamed from
6863 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6864 trampoline.
6865 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6866 Remove_functions.
6867 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6868 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6869 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6870 (x86_64_regmap): Rename to regmap.
6871 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6872 x86_64_num_gregs.
6873 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6874 x86_64_regmap.
6875 (x86_64_fxsave_offset): Remove function.
6876 (supply_fpregset): Simply call x86_64_supply_fxsave.
6877 (fill_fpregset): Simply call x86_64_fill_fxsave.
6878 (fetch_inferior_registers, store_inferior_registers): Avoid
6879 asignment in if-statement.
6880 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6881 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6882 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6883 (fetch_core_registers): Remove function.
6884 (linux_elf_core_fns): Remove.
6885 (offsetoff): Don't define.
6886 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6887 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6888 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6889 add core-regset.o.
6890 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6891 protection against multiple includes instead of NM_X86_64_h. Add
6892 various comments. Include "config/nm-linux.h". Don't include
6893 <signal.h>.
6894 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6895 GET_THREAD_SIGNALS): Remove defines.
6896 (x86_64_register_u_addr, kernel_u_size,
6897 lin_thread_get_thread_signals): Remove prototypes.
6898 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6899 [HAVE_LINK_H]: Don't include "solib.h".
6900 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6901 * config/i386/tm-x86-64linux.h: Fix comments.
6902 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6903 x86-64-tdep.o): Update dependencies.
6904
6905 2003-05-30 Andrew Cagney <cagney@redhat.com>
6906
6907 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6908 Change parameter type to a "struct regcache *".
6909
6910 * gdbarch.sh: Regardless of the multi-arch level, always define
6911 the macro when not already defined.
6912 * gdbarch.h, gdbarch.c: Re-generate.
6913
6914 2003-05-30 Richard Henderson <rth@redhat.com>
6915
6916 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6917 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6918 (alpha_mdebug_frame_this_id): Likewise.
6919 (alpha_mdebug_frame_prev_register): Likewise.
6920 (alpha_mdebug_frame_base_address): Likewise.
6921 (alpha_mdebug_frame_locals_address): Likewise.
6922 (alpha_mdebug_frame_args_address): Likewise.
6923 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6924 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6925 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6926 loop increment.
6927 (alpha_heuristic_frame_this_id): Make static.
6928 (alpha_heuristic_frame_prev_register): Likewise.
6929 (alpha_heuristic_frame_base_address): Likewise.
6930 * alpha-tdep.h: Update.
6931
6932 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6933
6934 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6935 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6936 defenitions.
6937 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6938 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6939 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6940 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6941 I386_ST0_REGNUM): New defines.
6942 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6943 codestream_get): Remove define.
6944 (codestream_next_addr, condestream_addr, condestream_buf,
6945 codestream_off, codestream_cnt): Remove variables.
6946 (codestream_fill, codestream_seek, codestream_read): Remove
6947 functions.
6948 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6949 functionality.
6950 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6951 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6952 i386_frame_saved_pc, i386_saved_pc_after_call,
6953 i386_frame_num_args, i386_frame_init_saved_regs,
6954 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6955 i386_push_arguments): Remove functions.
6956 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6957 functionality. Use i386_analyze_prologue instead of
6958 i386_get_frame_setup.
6959 (I386_NUM_SAVED_REGS): New define.
6960 (struct i386_frame_cache): New structure.
6961 (i386_alloc_frame_cache, i386_analyze_struct_return,
6962 i386_skip_probe, i386_analyze_frame_setup,
6963 i386_analyze_register_saves, i386_analyze_prologue,
6964 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6965 i386_frame_prev_register, i386_sigtramp_frame_cache,
6966 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6967 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6968 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6969 New functions.
6970 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6971 New variables.
6972 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6973 I386_EAX_REGNUM and I386_EDX_REGNUM.
6974 (i386_extract_return_value, i386_store_return_value): Use
6975 I386_ST0_REGNUM where appropriate.
6976 (i386_extract_struct_value_address): Rewrite to use extract_address.
6977 (i386_svr4_pc_in_sigtramp): Add comment.
6978 (i386_svr4_sigcontext_addr): Rewrite.
6979 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6980 TDEP->sc_sp_offset.
6981 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6982 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6983 of new defines. Set push_dummy_call, don't set
6984 deprecated_push_arguments, deprecated_push_return_address,
6985 deprecated_pop_frame. Don't set parm_boundary. Don't set
6986 deprecated_frame_chain, deprecated_frame_saved_pc,
6987 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6988 save_dummy_frame_tos, unwind_pc. Call
6989 frame_unwind_append_predicate and frame_base_set_default. Don't
6990 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6991 Don't set frameless_function_invocation. Don't set
6992 deprecated_register_bytes, deprecated_register_size,
6993 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6994 * i386-linux-tdep.c: Fix formatting in some comments.
6995 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6996 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6997 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6998 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6999 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
7000 redundant parentheses.
7001 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
7002 (i386_linux_sigcontext_addr): Use it. Rewrite.
7003 (find_minsym_and_objfile): Change name of second argument.
7004 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
7005 changed. Use frame_pc_unwind instead of
7006 DEPRECATED_SAVED_PC_AFTER_CALL.
7007 (i386_linux_init_abi): Don't set deprecated_register_bytes.
7008 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
7009 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
7010 unwinder.
7011 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
7012 "dummy-frame.h".
7013 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
7014 (_initialize_i386_cygwin_tdep): New prototype.
7015 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
7016 deprecated_frame_chain_valid.
7017 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
7018 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
7019 Rely on the SVR4 defaults.
7020 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
7021 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
7022
7023 2003-05-30 Andrew Cagney <cagney@redhat.com>
7024
7025 * infcall.c (call_function_by_hand): Always call
7026 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
7027
7028 2003-05-30 Richard Henderson <rth@redhat.com>
7029
7030 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
7031 increment.
7032
7033 2003-05-29 Jim Blandy <jimb@redhat.com>
7034
7035 Use gdbarch methods for solib stuff on PowerPC Linux.
7036 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7037 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7038 show through.
7039 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7040 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7041 giving the same effect as the #definitions above.
7042
7043 2003-05-29 Adam Fedor <fedor@gnu.org>
7044
7045 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7046 (find_implementation_from_class): Replace it with the standard
7047 case i.e. do nothing.
7048
7049 2003-05-29 Richard Henderson <rth@redhat.com>
7050
7051 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7052 (alpha_linux_sigtramp_offset): Use it. Make static.
7053 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7054 update for new frame model.
7055 * alpha-mdebug-tdep.c: New file.
7056 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7057 (alpha_osf1_init_abi): Install it.
7058 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7059 (linked_proc_desc_table): Remove.
7060 (alpha_frame_past_sigtramp_frame): Remove.
7061 (alpha_dynamic_sigtramp_offset): Remove.
7062 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7063 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7064 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7065 (push_sigtramp_desc): Remove.
7066 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7067 (alpha_cannot_store_register): Likewise.
7068 (alpha_sigcontext_addr): Remove.
7069 (alpha_find_saved_regs): Remove.
7070 (alpha_frame_init_saved_regs): Remove.
7071 (alpha_init_frame_pc_first): Remove.
7072 (read_next_frame_reg): Remove.
7073 (alpha_frame_saved_pc): Remove.
7074 (alpha_saved_pc_after_call): Remove.
7075 (temp_proc_desc, temp_saved_regs): Remove.
7076 (alpha_about_to_return): Remove.
7077 (cached_proc_desc): Remove.
7078 (alpha_frame_chain): Remove.
7079 (alpha_print_extra_frame_info): Remove.
7080 (alpha_init_extra_frame_info): Remove.
7081 (alpha_frame_locals_address): Remove.
7082 (alpha_frame_args_address): Remove.
7083 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7084 (alpha_push_dummy_frame): Remove.
7085 (alpha_pop_frame): Remove.
7086 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7087 (alpha_read_insn): New.
7088 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7089 for different insn encodings.
7090 (alpha_in_lenient_prologue): Remove.
7091 (struct alpha_sigtramp_unwind_cache): New.
7092 (alpha_sigtramp_frame_unwind_cache): New.
7093 (alpha_sigtramp_register_address): New.
7094 (alpha_sigtramp_frame_this_id): New.
7095 (alpha_sigtramp_frame_prev_register): New.
7096 (alpha_sigtramp_frame_unwind): New.
7097 (alpha_sigtramp_frame_p): New.
7098 (struct alpha_heuristic_unwind_cache): New.
7099 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7100 don't count nop insns that occur between functions.
7101 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7102 heuristic_proc_desc, but without the mdebug wrapping.
7103 (alpha_heuristic_frame_this_id): New.
7104 (alpha_heuristic_frame_prev_register): New.
7105 (alpha_heuristic_frame_unwind): New.
7106 (alpha_heuristic_frame_p): New.
7107 (alpha_heuristic_frame_base_address): New.
7108 (alpha_heuristic_frame_base): New.
7109 (alpha_unwind_dummy_id): New.
7110 (alpha_unwind_pc): New.
7111 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7112 frame related deprecated initializations; install replacements.
7113 (alpha_dump_tdep): Remove.
7114 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7115 (alpha_read_insn, alpha_after_prologue,
7116 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7117 alpha_heuristic_frame_prev_register,
7118 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7119 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7120 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7121 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7122
7123 2003-05-29 Andrew Cagney <cagney@redhat.com>
7124
7125 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7126 dependant on the availability of ASSERT_FUNCTION.
7127 (ASSERT_FUNCTION): Do not define when there is no function name.
7128
7129 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7130
7131 From Jimi X <jimix@watson.ibm.com>:
7132 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7133
7134 2003-05-28 Jim Blandy <jimb@redhat.com>
7135
7136 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7137 argument to ptrace to int; the system headers should give it the
7138 right type, and pointers don't fit in ints on powerpc64-*-*.
7139
7140 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7141
7142 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7143 DW_TAG_catch_block.
7144
7145 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7146
7147 * stabsread.c (dbx_lookup_type): Make static.
7148 (read_type): Ditto.
7149 (add_undefined_type): Ditto.
7150 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7151 not export.
7152
7153 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7154
7155 * hpread.c (hpread_has_name): Make static.
7156 (hpread_psymtab_to_symtab): Ditto.
7157 (file_exists): Ditto.
7158 (hpread_call_pxdb): Ditto.
7159 (hpread_pxdb_needed): Ditto.
7160 (hpread_quick_traverse): Ditto.
7161 (hpread_get_header): Ditto.
7162 (hpread_get_lntt): Ditto.
7163 (hpread_get_slt): Ditto.
7164 (class_of): Ditto.
7165
7166 2003-05-25 Andreas Schwab <schwab@suse.de>
7167
7168 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7169 stack_align and deprecated_extra_stack_alignment_needed.
7170 (m68k_stack_align): Delete.
7171
7172 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7173 (m68k_register_virtual_size): Likewise.
7174 (altos_skip_prologue): Remove obsolete function.
7175 (isi_frame_num_args): Likewise.
7176 (news_frame_num_args): Likewise.
7177 (m68k_fix_call_dummy): Make static.
7178 (m68k_push_dummy_frame): Likewise.
7179 (m68k_pop_frame): Likewise.
7180 (m68k_skip_prologue): Likewise.
7181 (m68k_frame_init_saved_regs): Likewise.
7182 (m68k_saved_pc_after_call): Likewise.
7183 (m68k_get_longjmp_target): Make multi-arch.
7184 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7185 structure. Register m68k_get_longjmp_target if enabled.
7186 * m68k-tdep.h (struct gdbarch_tdep): Define.
7187 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7188
7189 * Makefile.in (config.status): Also depend on configure.tgt
7190 and configure.host.
7191 (m68klinux-tdep.o): Update dependencies.
7192 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7193 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7194 (M68K_LINUX_JB_PC): Define.
7195 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7196 and take additional parameter.
7197 (m68k_linux_sigtramp_saved_pc): Update.
7198 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7199 m68k_linux_pc_in_sigtramp, in_plt_section,
7200 find_solib_trampoline_target.
7201 * config/m68k/tm-linux.h: Don't include any tm headers.
7202 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7203 (JB_ELEMENT_SIZE): Likewise.
7204 (JB_PC): Likewise.
7205 (GET_LONGJMP_TARGET): Likewise.
7206 (IN_SIGTRAMP): Likewise.
7207 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7208
7209 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7210
7211 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7212 (sparc32_push_arguments): Re-implement by calling
7213 sparc32_do_push_arguments.
7214
7215 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7216
7217 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7218 SPARC_O1_REGNUM): New defines.
7219 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7220 (sparc32_store_return_value): New function.
7221 (sparc_extract_struct_value_address): Rewrite to operate on a
7222 regcache.
7223 (sparc_gdbarch_init): Don't set
7224 deprecated_extract_struct_value_address. Set
7225 extract_struct_value_address instead. Don't set
7226 deprecated_extract_return_value and deprecated_store_return_value
7227 for 32-bit targets. Set extract_return_value and
7228 store_return_value instead.
7229 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7230 DEPRECTAED_EXTRACT_RETURN_VALUE,
7231 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7232 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7233 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7234 (sparc_store_return_value): Remove prototype.
7235 (sparc32_store_return_value): New prototype.
7236 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7237 Adjust prototypes.
7238
7239 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7240
7241 * sparcnbsd-tdep.c: Include "gdb_string.h".
7242
7243 2003-05-23 Andrew Cagney <cagney@redhat.com>
7244
7245 * p-valprint.c (pascal_val_print): Replace extract_address with
7246 the inline equivalent extract_unsigned_integer.
7247 * jv-valprint.c (java_value_print): Ditto.
7248 * ada-valprint.c (ada_val_print_1): Ditto.
7249 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7250
7251 2003-05-23 Theodore A. Roth <troth@openavr.org>
7252
7253 * blockframe.c (frameless_look_for_prologue): Remove unused
7254 after_prologue variable.
7255
7256 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7257
7258 * blockframe.c (get_pc_function_start): Rewrite to avoid
7259 asignments in if-statements.
7260
7261 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7262
7263 Committed by Elena Zannoni <ezannoni@redhat.com>.
7264 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7265 files, don't relocate absolute symbols (and do use mst_abs).
7266
7267 2003-05-23 Andrew Cagney <cagney@redhat.com>
7268
7269 * objc-lang.c: Include "gdb_assert.h".
7270 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7271 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7272 (gdb_check, gdb_check_fatal): Delete functions.
7273 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7274 gdb_assert.
7275 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7276 * Makefile.in (objc-lang.o): Update dependencies.
7277
7278 2003-05-22 Ian Lance Taylor <ian@airs.com>
7279
7280 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7281 with fprintf_filtered, not fprintf_unfiltered.
7282
7283 2003-05-22 Andrew Cagney <cagney@redhat.com>
7284
7285 * stack.c (frame_info): Inline extract_address, replacing it with
7286 extract_unsigned_integer.
7287 * findvar.c (unsigned_pointer_to_address): Ditto.
7288 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7289 * dwarf2expr.c (dwarf2_read_address): Ditto.
7290 * frame.c (frame_pc_unwind): Update comment.
7291 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7292
7293 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7294
7295 * infptrace.c (detach): Call print_sys_errmsg rather than
7296 perror_with_name to issue warning message when errno is non-zero
7297 after calling ptrace detach.
7298
7299 2003-05-21 J. Brobecker <brobecker@gnat.com>
7300
7301 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7302 macro definitions from here...
7303 * hppa-tdep.c: ...to there.
7304
7305 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7306
7307 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7308 register_ptrace_addr(). Fix all callers.
7309
7310 2003-05-21 Andreas Schwab <schwab@suse.de>
7311
7312 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7313 dependencies.
7314 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7315 end.
7316 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7317 (_initialize_m68k_linux_tdep): New function.
7318 (m68k_linux_frame_saved_pc): Make static.
7319 (m68k_linux_extract_return_value): Likewise.
7320 (m68k_linux_store_return_value): Likewise.
7321 (m68k_linux_extract_struct_value_address): Likewise.
7322 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7323 Remove.
7324 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7325 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7326 (DEPRECATED_FRAME_SAVED_PC): Remove.
7327
7328 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7329
7330 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7331 regset numbering rather than our own.
7332
7333 2003-05-19 David Carlton <carlton@bactrian.org>
7334
7335 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7336
7337 2003-05-19 David Carlton <carlton@bactrian.org>
7338
7339 Partial fix for PR c++/827.
7340 * cp-support.h: Include symtab.h.
7341 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7342 * cp-namespace.c: Update contributors.
7343 (cp_lookup_symbol_nonlocal): New.
7344 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7345 (lookup_symbol_file): Ditto.
7346 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7347 * block.h: Declare block_scope, block_using, block_global_block.
7348 * block.c (block_scope): New.
7349 (block_using, block_global_block): Ditto.
7350 * Makefile.in (cp_support_h): Depend on symtab_h.
7351 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7352
7353 2003-05-19 David Carlton <carlton@bactrian.org>
7354
7355 * language.h (struct language_defn): Add 'la_value_of_this'
7356 and 'la_lookup_symbol_nonlocal' members.
7357 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7358 lookup_symbol_static, lookup_symbol_global,
7359 lookup_symbol_aux_block.
7360 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7361 if we should search fields of this and how to do static/global
7362 lookup.
7363 (lookup_symbol_aux_block): Make extern.
7364 (basic_lookup_symbol_nonlocal): New.
7365 (lookup_symbol_static, lookup_symbol_global): Ditto.
7366 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7367 'la_lookup_symbol_nonlocal' members.
7368 * c-lang.c (c_language_defn, cplus_language_defn)
7369 (asm_language_defn, minimal_language_defn): Ditto.
7370 * jv-lang.c (java_language_defn): Ditto.
7371 * language.c (unknown_language_defn, auto_language_defn)
7372 (local_language_defn): Ditto.
7373 * m2-lang.c (m2_language_defn): Ditto.
7374 * objc-lang.c (objc_language_defn): Ditto.
7375 * scm-lang.c (scm_language_defn): Ditto.
7376 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7377 * p-lang.c (pascal_language_defn): Ditto for both.
7378 * Makefile.in (f-lang.o): Depend on value_h.
7379 (p-lang.o): Ditto.
7380
7381 2003-05-19 David Carlton <carlton@bactrian.org>
7382
7383 * block.h: Declare block_static_block.
7384 * block.c (block_static_block): New.
7385 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7386 lookup_symbol_aux_local, calling block_static_block instead.
7387 (lookup_symbol_aux_local): Delete 'static_block' argument.
7388
7389 2003-05-19 David Carlton <carlton@bactrian.org>
7390
7391 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7392
7393 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7394
7395 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7396 register numbers mapping.
7397
7398 2003-05-18 Adam Fedor <fedor@gnu.org>
7399
7400 * symtab.c (completion_list_objc_symbol): New function.
7401 (make_symbol_completion_list): Use it to add ObjC symbols
7402 when looking though the list.
7403 (language_search_unquoted_string): New function.
7404 (make_file_symbol_completion_list): Use it.
7405
7406 2003-05-18 Andreas Schwab <schwab@suse.de>
7407
7408 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7409 dependencies.
7410 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7411 as m68k_linux_extract_return_value.
7412 (DEPRECATED_STORE_RETURN_VALUE): Define as
7413 m68k_linux_store_return_value.
7414 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7415 m68k_linux_extract_struct_value_address.
7416 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7417 get_next_frame, get_frame_base, get_frame_pc.
7418 (m68k_linux_frame_saved_pc): Use get_frame_base.
7419 (m68k_linux_extract_return_value): New function.
7420 (m68k_linux_store_return_value): New function.
7421 (m68k_linux_extract_struct_value_address): New function.
7422 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7423
7424 * c-exp.y (typebase): Remove duplicate occurence of
7425 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7426 of lookup_signed_typename.
7427
7428 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7429
7430 * dwarf2loc.c (find_location_expression): Change type of second
7431 argument to `size_t *'.
7432 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7433 for size variable.
7434
7435 2003-05-18 David Carlton <carlton@bactrian.org>
7436
7437 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7438 'linkage_name'. Add comment.
7439 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7440 'linkage_name'.
7441 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7442 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7443 (lookup_block_symbol): Ditto.
7444
7445 2003-05-16 Andrew Cagney <cagney@redhat.com>
7446
7447 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7448 * gdbarch.h, gdbarch.c: Re-generate.
7449 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7450 * TODO (REGISTER_BYTES): Delete reference.
7451 * alpha-tdep.c (alpha_gdbarch_init): Update.
7452 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7453 * x86-64-tdep.c (x86_64_init_abi): Update.
7454 * vax-tdep.c (vax_gdbarch_init): Update.
7455 * v850-tdep.c (v850_gdbarch_init): Update.
7456 * sparc-tdep.c (sparc_gdbarch_init): Update.
7457 * sh-tdep.c (sh_gdbarch_init): Update.
7458 * s390-tdep.c (s390_gdbarch_init): Update.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7460 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7461 (ns32k_gdbarch_init_32382): Update.
7462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7463 * mcore-tdep.c (mcore_gdbarch_init): Update.
7464 * m68k-tdep.c (m68k_gdbarch_init): Update.
7465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7466 * ia64-tdep.c (ia64_gdbarch_init): Update.
7467 * i386-tdep.c (i386_gdbarch_init): Update.
7468 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7469 * hppa-tdep.c (hppa_gdbarch_init): Update.
7470 * h8300-tdep.c (h8300_gdbarch_init): Update.
7471 * frv-tdep.c (frv_gdbarch_init): Update.
7472 * cris-tdep.c (cris_gdbarch_init): Update.
7473 * avr-tdep.c (avr_gdbarch_init): Update.
7474 * arm-tdep.c (arm_gdbarch_init): Update.
7475 * sparc-tdep.c (sparc_pop_frame): Update.
7476 * rs6000-tdep.c (rs6000_pop_frame): Update.
7477 * remote.c (init_remote_state): Update.
7478 (remote_prepare_to_store): Update.
7479 * remote-vx.c (vx_prepare_to_store): Update.
7480 * remote-sds.c (sds_fetch_registers): Update.
7481 (sds_prepare_to_store): Update.
7482 * remote-array.c: Update.
7483 * regcache.c (init_legacy_regcache_descr): Update.
7484 (init_regcache_descr): Update.
7485 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7486 (mips_o64_extract_return_value): Update.
7487 * irix5-nat.c (fetch_core_registers): Update.
7488 * irix4-nat.c (fetch_core_registers): Update.
7489 * i386-tdep.h: Update.
7490 * hppa-tdep.c (pa_do_registers_info): Update.
7491 (pa_do_strcat_registers_info): Update.
7492 * cris-tdep.c (cris_register_bytes_ok): Update.
7493 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7494 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7495 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7496 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7497 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7498 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7499 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7500 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7501 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7502 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7503 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7504 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7505 (REGISTER_BYTES_OK): Update.
7506 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7507 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7508
7509 2003-05-16 Ian Lance Taylor <ian@airs.com>
7510
7511 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7512 (vax_print_insn, print_insn_arg): Remove static functions.
7513 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7514 print_insn_vax from opcodes library.
7515 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7516
7517 2003-05-15 Andrew Cagney <cagney@redhat.com>
7518
7519 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7520 * target.h (memory_breakpoint_from_pc): Delete declaration.
7521 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7522 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7523 * monitor.c (monitor_insert_breakpoint): Use
7524 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7525 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7526 * gdbarch.h, gdbarch.c: Re-generate.
7527 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7528 (sparc_gdbarch_init): Set breakpoint_from_pc to
7529 sparc_breakpoint_from_pc.
7530 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7531 (BREAKPOINT_FROM_PC): Define.
7532 (sparc_breakpoint_from_pc): Declare.
7533 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7534 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7535 (BREAKPOINT_FROM_PC): Define.
7536 (BREAKPOINT): Delete macro.
7537 * target.h: Update comment.
7538 * s390-tdep.c (s390_gdbarch_init): Update comments.
7539 * remote.c: Update comments.
7540 * remote-mips.c: Update comments.
7541 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7542 * mem-break.c: Update comment.
7543 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7544 (ia64_memory_insert_breakpoint): Update.
7545 * config/sparc/tm-sparc.h: Update comment.
7546 * config/pa/tm-hppa64.h: Update comment.
7547 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7548 (rs6000_breakpoint_from_pc): Update.
7549 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7550 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7551 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7552 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7553 (mips_breakpoint_from_pc): Update.
7554 (mips_dump_tdep): Update.
7555
7556 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7557 * minsyms.c (lookup_minimal_symbol): Inline
7558 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7559
7560 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7561 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7562 * p-lang.c (pascal_printstr): Ditto.
7563 * objc-lang.c (objc_printstr): Ditto.
7564 * m2-lang.c (m2_printstr): Ditto.
7565 * jv-valprint.c (java_print_value_fields): Ditto.
7566 * f-lang.c (f_printstr): Ditto.
7567 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7568 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7569 for repeat_count_threshold.
7570 * Makefile.in (cp-valprint.o): Update dependencies.
7571
7572 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7573
7574 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7575 (examine_prologue): Support looking through leaf functions, knowing
7576 they start with mov r2,r12. Support skipping over indirect stores
7577 of the input registers. Upon hitting a non-nop branch instruction
7578 or predicated instruction, bail out by setting lim_pc to the current
7579 pc value in the loop. At the end, if the lim_pc value is still
7580 beyond our calculated value and we have trust_limit set,
7581 use the lim_pc value.
7582
7583 2003-05-15 Andrew Cagney <cagney@redhat.com>
7584
7585 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7586 generic_find_dummy_frame.
7587 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7588 (deprecated_generic_find_dummy_frame): Update.
7589 (deprecated_read_register_dummy): Update.
7590 * frame.c (deprecated_generic_get_saved_register): Update.
7591
7592 2003-05-15 Theodore A. Roth <troth@openavr.org>
7593
7594 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7595 (avr_gdbarch_init): Set breakpoint_from_pc method.
7596
7597 2003-05-15 Andrew Cagney <cagney@redhat.com>
7598
7599 * regcache.c (build_regcache): Set deprecated_register_valid
7600 directly.
7601 (deprecated_grub_regcache_for_register_valid): Delete function.
7602 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7603 declaration.
7604
7605 2003-05-15 David Carlton <carlton@bactrian.org>
7606
7607 Committed by Elena Zannoni <ezannoni@redhat.com>
7608 * symtab.c (lookup_symbol_aux): Delete calls to
7609 lookup_symbol_aux_minsyms.
7610 (lookup_symbol_aux_minsyms): Comment out function and
7611 prototype. Delete lookup by mangled name.
7612
7613 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7614
7615 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7616 correctly indicate an empty stack and ``stack_allocated'' to the
7617 indicate the number of elements initially allocated.
7618 (dwarf_expr_grow_stack): Simplify method for computing new
7619 stack size. Don't loop infinitely if ``stack_len'' is zero.
7620 (execute_stack_op): Move ``ctx->in_reg'' initialization
7621 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7622 be used in conjuction with DW_OP_piece. Revise error message
7623 accordingly.
7624
7625 2003-05-14 Theodore A. Roth <troth@openavr.org>
7626
7627 * MAINTAINERS: Update my email address.
7628 * avr-tdep.c: Ditto.
7629
7630 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7631
7632 * symtab.h (enum domain_enum): Rename from namespace_enum.
7633 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7634 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7635 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7636 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7637 TYPES_NAMESPACE, METHODS_NAMESPACE.
7638 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7639 (struct symbol, struct partial_symbol): Rename field
7640 'namespace_enum namespace' to 'domain_enum domain'.
7641 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7642 Delete old define kludge for namespace.
7643
7644 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7645 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7646 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7647 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7648 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7649 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7650 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7651 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7652 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7653 occurrences of the above.
7654
7655 2003-05-14 Ian Lance Taylor <ian@airs.com>
7656
7657 * Makefile.in (install-only): Use $(SHELL) when running
7658 mkinstalldirs.
7659
7660 2003-05-13 Ian Lance Taylor <ian@airs.com>
7661
7662 * MAINTAINERS (write after approval): Add myself.
7663
7664 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7665 second and third arguments.
7666 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7667 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7668
7669 2003-05-13 Andrew Cagney <cagney@redhat.com>
7670
7671 * defs.h (store_address): Delete declaration.
7672 findvar.c (store_address): Delete function.
7673 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7674 store_unsigned_integer.
7675 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7676 * v850-tdep.c (v850_push_arguments): Ditto.
7677 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7678 * sh-tdep.c (sh64_get_saved_register): Ditto.
7679 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7680 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7681 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7682 (mips_get_saved_register): Ditto.
7683 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7684 (find_func_descr, ia64_push_arguments): Ditto.
7685 * i386-tdep.c (i386_push_arguments): Ditto.
7686 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7687 * frv-tdep.c (frv_push_arguments): Ditto.
7688 * frame.c (legacy_saved_regs_prev_register): Ditto.
7689 (deprecated_generic_get_saved_register): Ditto.
7690 * findvar.c (unsigned_address_to_pointer): Ditto.
7691 * dwarf2read.c (dwarf2_const_value): Ditto.
7692 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7693 * alpha-tdep.c (alpha_push_arguments): Ditto.
7694
7695 2003-05-12 J. Brobecker <brobecker@gnat.com>
7696
7697 * NEWS: Mention that the hppa-hpux port has been partially
7698 multiarched (32bit ABIT only, so far).
7699
7700 2003-05-11 Andrew Cagney <cagney@redhat.com>
7701
7702 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7703 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7704 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7705 sim/testsuite/sim/arm/misaligned2.ms, and
7706 sim/testsuite/sim/arm/misaligned3.ms.
7707 * disasm.h (struct ui_file): Add opaque struct declaration.
7708 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7709 * frame.h (struct ui_file): Ditto.
7710
7711 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7712
7713 * value.h: Pretty print.
7714
7715 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7716
7717 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7718
7719 2003-05-08 Andrew Cagney <cagney@redhat.com>
7720
7721 * regcache.h (max_register_size): Delete declaration.
7722 * regcache.c (max_register_size): Delete function.
7723 (struct regcache_descr): Delete field "max_register_size".
7724 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7725 registers fit in MAX_REGISTER_SIZE.
7726 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7727 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7728 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7729 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7730 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7731 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7732 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7733 * dve3900-rom.c, hppa-tdep.c: Ditto.
7734
7735 2003-05-08 David Carlton <carlton@math.stanford.edu>
7736
7737 * valops.c (push_word): Fix typo.
7738
7739 2003-05-08 Andrew Cagney <cagney@redhat.com>
7740
7741 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7742 * gdbarch.h: Re-generate.
7743 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7744 (legacy_max_register_raw_size): Delete declaration.
7745 * regcache.c (legacy_max_register_raw_size): Delete function.
7746 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7747 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7748 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7749 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7750 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7751 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7752 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7753 * findvar.c, dwarf2cfi.c: Ditto.
7754
7755 2003-05-08 Andrew Cagney <cagney@redhat.com>
7756
7757 * mips-tdep.c (read_signed_register): New function, moved to here
7758 from "regcache.c".
7759 (read_signed_register_pid): Ditto.
7760 * regcache.c (read_signed_register_pid): Delete function, moved to
7761 "mips-tdep.c".
7762 (read_signed_register): Ditto.
7763 * regcache.h (read_signed_register): Delete declaration.
7764 (read_signed_register_pid): Delete declaration.
7765
7766 2003-05-08 Andrew Cagney <cagney@redhat.com>
7767
7768 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7769 * gdbarch.h: Re-generate.
7770 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7771 (legacy_max_register_virtual_size): Delete declaration.
7772 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7773 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7774 * tracepoint.c (memrange_sortmerge): Ditto.
7775 * sparc-tdep.c (sparc_print_registers): Ditto.
7776 * regcache.c (legacy_max_register_virtual_size): Delete function.
7777
7778 2002-05-08 J. Brobecker <brobecker@gnat.com>
7779
7780 * fork-child.c (escape_bang_in_quoted_argument): New function.
7781 (fork_inferior): Escape '!' characters in quoted arguments
7782 only when needed.
7783
7784 2003-05-08 J. Brobecker <brobecker@gnat.com>
7785
7786 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7787 the language of the CU is not currently supported by GDB.
7788
7789 2003-05-08 J. Brobecker <brobecker@gnat.com>
7790
7791 * defs.h (language): Add language_minimal enum value.
7792 * c-lang.c (minimal_language_defn): New language definition.
7793 (_initialize_c_language): Add the new minimal language to the list
7794 of languages known to GDB.
7795
7796 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7797
7798 * frame.c (get_frame_type): Don't attempt to lazily initialize
7799 frame's unwinder for legacy frames.
7800
7801 2003-05-07 Andrew Cagney <cagney@redhat.com>
7802
7803 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7804 and "regcache" parameters.
7805 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7806
7807 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7808
7809 * dwarf2read.c (dwarf_decode_lines): Only use output of
7810 check_cu_functions() when calling record_line(). Do not update
7811 the current address.
7812
7813 2003-05-07 Andrew Cagney <cagney@redhat.com>
7814
7815 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7816 code.
7817
7818 2003-05-07 Jim Blandy <jimb@redhat.com>
7819
7820 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7821 'maint info symtabs' and 'maint info psymtabs'.
7822 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7823 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7824 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7825 Declarations updated.
7826 * maint.c (maintenance_list_command): Delete.
7827 (_initialize_maint_cmds): Update calls to add_cmd.
7828 * gdbcmd.h (maintenancelistlist): Delete declaration.
7829 * cli/cli-cmds.c (maintenancelistlist): Delete.
7830 (init_cmd_lists): Don't initialize it.
7831 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7832
7833 2003-05-07 Andrew Cagney <cagney@redhat.com>
7834
7835 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7836 "regcache".
7837 (d10v_print_registers_info): Update.
7838 (d10v_dmap_register, d10v_imap_register): Delete functions.
7839 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7840 and "imap_register".
7841 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7842 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7843 * arch-utils.c (generic_remote_translate_xfer_address): Add
7844 "regcache" and "gdbarch" parameters.
7845 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7846 parameter. Change class to multi-arch.
7847 * gdbarch.h, gdbarch.c: Re-generate.
7848 * remote.c (remote_xfer_memory): Use
7849 gdbarch_remote_translate_xfer_address.
7850
7851 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7852
7853 * infrun.c (prev_pc): Move declaration ahead of proceed().
7854 (proceed): Refresh prev_pc value before resuming.
7855 (stop_stepping): Remove code to refresh prev_pc.
7856
7857 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7858
7859 * nto-tdep.c: Removed stray comment.
7860
7861 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7862
7863 * i386-nto-tdep.c: Fix old K&R function definitions.
7864 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7865 Also change add_show_from_set() call to add_setshow_cmd().
7866 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7867
7868 2003-05-05 Andrew Cagney <cagney@redhat.com>
7869
7870 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7871 (fprint_dummy_frames): New function.
7872 (maintenance_print_dummy_frames): New function.
7873 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7874 * frame.c (fprint_frame_id): Make global.
7875 * frame.h (fprint_frame_id): Declare.
7876 * Makefile.in (dummy-frame.o): Update dependencies.
7877
7878 2003-05-05 Andrew Cagney <cagney@redhat.com>
7879
7880 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7881 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7882 SIZEOF_CALL_DUMMY_WORDS.
7883 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7884 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7885 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7886 CALL_DUMMY_BREAKPOINT_OFFSET.
7887 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7888 CALL_DUMMY_START_OFFSET.
7889 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7890 * gdbarch.h, gdbarch.c: Re-generate.
7891 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7892 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7893 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7894 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7895 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7896 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7897 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7898 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7899 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7900 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7901 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7902 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7903 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7904 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7905 * config/sparc/tm-sparc.h: Update.
7906
7907 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7908
7909 * configure.tgt: Add i[3456]86-*-nto*.
7910 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7911 * nto-tdep.c: New file. Neutrino target support routines.
7912 * nto-tdep.h: New file. Neutrino target header.
7913 * config/tm-qnxnto.h: New file.
7914 * config/i386/i386nto.mt: New file.
7915 * config/i386/tm-i386nto.h: New file.
7916
7917 2003-05-04 Andrew Cagney <cagney@redhat.com>
7918
7919 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7920 (load_infrun_state): Ditto.
7921 (struct thread_info): Drop "prev_func_name" field.
7922 * thread.c (load_infrun_state): Update.
7923 (save_infrun_state): Update.
7924 * infrun.c (prev_func_name): Delete variable.
7925 (init_wait_for_inferior): Do not clear prev_func_name.
7926 (stop_stepping, keep_going, context_switch): Do not swap
7927 prev_func_name.
7928 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7929 instead of PC_IN_SIGTRAMP.
7930
7931 2003-05-04 Andrew Cagney <cagney@redhat.com>
7932
7933 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7934 REGISTER_BYTE with register_offset_hack.
7935 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7936 that REGISTER_BYTE is consistent with the regcache.
7937 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7938 * gdbarch.h, gdbarch.c: Regenerate.
7939
7940 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7941
7942 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7943 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7944
7945 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7946
7947 2003-05-03 J. Brobecker <brobecker@gnat.com>
7948
7949 From Thierry Schneider <tpschneider1@yahoo.com>
7950 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7951 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7952 (mi-cmd-symbol.o): Add rule.
7953
7954 2003-05-03 Andrew Cagney <cagney@redhat.com>
7955
7956 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7957 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7958 * gdbarch.h, gdbarch.c: Re-generate.
7959 * d10v-tdep.c (d10v_push_dummy_code): New function.
7960 (d10v_gdbarch_init): Set push_dummy_code.
7961 * infcall.c (legacy_push_dummy_code): New function.
7962 (generic_push_dummy_code): New function.
7963 (push_dummy_code): New function.
7964 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7965 instead of dummy_addr, to push_dummy_call. Move call to
7966 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7967 switch.
7968 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7969
7970 2003-05-03 Andrew Cagney <cagney@redhat.com>
7971
7972 * disasm.h (print_insn): Declare.
7973 * disasm.c (init_gdb_disassemble_info): New function.
7974 (gdb_disassembly): Call init_gdb_disassemble_info.
7975 (gdb_print_insn): New function.
7976 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7977 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7978 * mcore-tdep.c: Include "disasm.h"
7979 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7980 * d10v-tdep.c: Include "disasm.h".
7981 (display_trace): Call gdb_print_insn, instead of print_insn.
7982 (print_insn): Delete function.
7983 * printcmd.c: Include "disasm.h".
7984 (print_insn): Delete function.
7985 (print_formatted): Call gdb_print_insn, instead of print_insn.
7986 * Makefile.in (printcmd.o): Update dependencies.
7987 (mcore-tdep.o, d10v-tdep.o): Ditto.
7988
7989 2003-05-02 Andrew Cagney <cagney@redhat.com>
7990
7991 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7992 PC_REGNUM, re-indent.
7993 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7994 PC_REGNUM isn't set.
7995
7996 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7997 * gdbarch.h, gdbarch.c: Re-generate.
7998 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7999 register_virtual_size, pc_regnum, or register_bytes.
8000 (D10V_PC_REGNUM): Rename _PC_REGNUM.
8001 (d10v_register_type): Use D10V_PC_REGNUM.
8002 (d10v_print_registers_info, d10v_read_pc): Ditto.
8003 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
8004 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
8005
8006 2003-05-02 David Carlton <carlton@bactrian.org>
8007
8008 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
8009 the name with mstrsave.
8010
8011 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
8012
8013 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
8014 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
8015 (host_charset_name, target_charset_name): New vars for use by
8016 set/show commands.
8017 (host_charset_enum, target_charset_enum): New enums for set/show
8018 commands.
8019 (set_charset_sfunc, set_host_charset_sfunc,
8020 set_target_charset_sfunc): New functions.
8021 (set_host_charset, set_target_charset): Make static.
8022 (list_charsets, set_host_charset_command,
8023 set_target_charset_command): Delete functions.
8024 (show_charset_command): Rewrite as....
8025 (show_charset): Hook this up with the set/show command mechanism.
8026 (_initialize_charset): Change names of charsets to match the
8027 set/show enums. Use host_charset_name and target_charset_name.
8028 Use set/show mechanism for charset, host-charset, target-charset
8029 commands. Do not make 'show host-charset' and 'show
8030 target-charset' be aliases of 'show charset'.
8031
8032 * charset.h (set_host_charset, set_target_charset): Don't export,
8033 they are not used outside the file.
8034
8035 2003-05-01 Andrew Cagney <cagney@redhat.com>
8036
8037 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8038 (gdb_disassembly): Make "di" non static, always initialize and
8039 cleanup. Always use dis_asm_read_memory.
8040 (gdb_dis_asm_read_memory): Delete function.
8041
8042 2003-05-01 Andrew Cagney <cagney@redhat.com>
8043
8044 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8045 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8046
8047 2003-04-30 Andrew Cagney <cagney@redhat.com>
8048
8049 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8050 "tm_print_insn_info".
8051 (TARGET_PRINT_INSN_INFO): Delete macro.
8052 (dis_asm_read_memory): Delete function declaration.
8053 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8054 (tm_print_insn_info): Delete variable definition.
8055 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8056 * gdbarch.h, gdbarch.c: Re-generate.
8057 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8058 "deprecated_tm_print_insn_info".
8059 * mcore-tdep.c (mcore_dump_insn): Ditto.
8060 * mips-tdep.c (mips_gdbarch_init): Ditto.
8061 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8062 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8063 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8064 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8065 instead of TARGET_PRINT_INSN_INFO, add comment.
8066 * s390-tdep.c (s390_get_frame_info): Instead of
8067 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8068 (s390_check_function_end, s390_is_sigreturn): Ditto.
8069 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8070 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8071 * disasm.c: Include "gdbcore.h".
8072 (_initialize_disasm): New function, initialize
8073 "deprecated_tm_print_insn_info".
8074 (deprecated_tm_print_insn_info): New variable.
8075 (dis_asm_read_memory): Moved from "corefile.c", made static.
8076 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8077 * Makefile.in (disasm.o): Update dependencies.
8078
8079 2003-04-30 Andrew Cagney <cagney@redhat.com>
8080
8081 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8082
8083 2003-04-29 Adam Fedor <fedor@gnu.org>
8084
8085 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8086 * infcall.c (find_function_addr): Make non-static.
8087 * infcall.h (find_function_addr): Declare.
8088 * Makefile.in (eval.o): Update dependencies.
8089
8090 2003-04-28 Adam Fedor <fedor@gnu.org>
8091
8092 * symtab.c (symbol_find_demangled_name): Check for and demangle
8093 ObjC symbols.
8094 (symbol_init_demangled_name): Init for language_objc as well.
8095
8096 2003-04-28 Andrew Cagney <cagney@redhat.com>
8097
8098 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8099 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8100 * gdbarch.h, gdbarch.c: Re-generate.
8101 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8102 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8103 * inferior.h (deprecated_read_fp): Rename read_fp.
8104 (generic_target_read_fp): Delete declaration.
8105 * regcache.c (generic_target_read_fp): Delete function.
8106 (deprecated_read_fp): Replace read_fp, use
8107 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8108 * d10v-tdep.c (d10v_read_fp): Delete function.
8109 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8110
8111 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8112 deprecated_target_read_fp to generic_target_read_fp.
8113 * sh-tdep.c (sh_gdbarch_init): Ditto.
8114 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8116 * frv-tdep.c (frv_gdbarch_init): Ditto.
8117
8118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8119 deprecated_fp_regnum.
8120 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8121 * vax-tdep.c (vax_gdbarch_init): Ditto.
8122 * v850-tdep.c (v850_gdbarch_init): Ditto.
8123 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8124 * sh-tdep.c (sh_gdbarch_init): Ditto.
8125 * s390-tdep.c (s390_gdbarch_init): Ditto.
8126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8128 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8129 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8132 * i386-tdep.c (i386_gdbarch_init): Ditto.
8133 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8134 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8135 * frv-tdep.c (frv_gdbarch_init): Ditto.
8136 * cris-tdep.c (cris_gdbarch_init): Ditto.
8137 * avr-tdep.c (avr_gdbarch_init): Ditto.
8138 * arm-tdep.c (arm_gdbarch_init): Ditto.
8139 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8140
8141 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8142 * v850-tdep.c (v850_gdbarch_init): Ditto.
8143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8144 * sh-tdep.c (sh_gdbarch_init): Ditto.
8145 * s390-tdep.c (s390_gdbarch_init): Ditto.
8146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8148 * mips-tdep.c (mips_gdbarch_init): Ditto.
8149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8150 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8151 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8152 * frv-tdep.c (frv_gdbarch_init): Ditto.
8153 * avr-tdep.c (avr_gdbarch_init): Ditto.
8154 * arm-tdep.c (arm_gdbarch_init): Ditto.
8155
8156 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8157 DEPRECATED_FP_REGNUM.
8158 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8159 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8160 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8161 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8162 (sparc32_register_virtual_type): Ditto.
8163 * sh-tdep.c (sh64_frame_chain): Ditto.
8164 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8165 (sh_nofp_frame_init_saved_regs): Ditto.
8166 (sh64_nofp_frame_init_saved_regs): Ditto.
8167 (sh_fp_frame_init_saved_regs): Ditto.
8168 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8169 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8170 * procfs.c (procfs_fetch_registers): Ditto.
8171 (procfs_store_registers): Ditto.
8172 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8173 (store_inferior_registers, fetch_core_registers): Ditto.
8174 (fetch_kcore_registers, clear_regs): Ditto.
8175 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8176 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8177 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8178 * nlm/i386.c (do_status): Ditto.
8179 * mipsv4-nat.c (supply_gregset): Ditto.
8180 * mips-tdep.c: Ditto for comments.
8181 * mips-nat.c (fetch_inferior_registers): Ditto.
8182 (store_inferior_registers, fetch_core_registers): Ditto.
8183 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8184 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8185 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8186 (i386_do_pop_frame, i386_register_type): Ditto.
8187 * hppa-tdep.c (hppa_frame_chain): Ditto.
8188 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8189 (hppa_pop_frame, hppa_read_fp): Ditto.
8190 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8191 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8192 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8193 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8194 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8195 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8196 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8197 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8198 * blockframe.c: Ditto for comments.
8199 * arch-utils.h: Ditto for comments.
8200 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8201 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8202 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8203 * alpha-tdep.h: Ditto for comments.
8204 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8205 (alpha_cannot_store_register): Ditto.
8206 (alpha_push_dummy_frame): Ditto.
8207 * alpha-nat.c (supply_gregset): Ditto.
8208
8209 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8210 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8211 * config/sparc/tm-sparc.h: Update comment.
8212
8213 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8214 deprecated_read_fp instead of TARGET_READ_FP.
8215 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8216 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8217 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8218 deprecated_read_fp instead of read_fp.
8219 * s390-tdep.c (s390_push_arguments): Ditto.
8220 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8221 * frame.h: Ditto in comments.
8222 * frame.c (legacy_get_prev_frame): Ditto.
8223 * dummy-frame.c (dummy_frame_this_id): Ditto.
8224 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8225
8226 2003-04-28 Andrew Cagney <cagney@redhat.com>
8227
8228 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8229 * gdbarch.h, gdbarch.c: Re-generate.
8230 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8231 * vax-tdep.c (_initialize_vax_tdep): Update.
8232 * v850-tdep.c (_initialize_v850_tdep): Update.
8233 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8234 * s390-tdep.c (_initialize_s390_tdep): Update.
8235 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8236 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8237 * mips-tdep.c (_initialize_mips_tdep): Update.
8238 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8239 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8240 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8241 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8242 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8243 * frv-tdep.c (_initialize_frv_tdep): Update.
8244 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8245 (_initialize_cris_tdep): Update.
8246 * arch-utils.c (legacy_print_insn): Update.
8247 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8248
8249 2003-04-26 Adam Fedor <fedor@gnu.org>
8250
8251 * linespec.c (decode_objc): New function to decode ObjC calls
8252 (decode_line_1): Check for ObjC calls (using decode_objc)
8253 * Makefile (linespec.o): Update dependencies.
8254
8255 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8256
8257 * breakpoint.h (struct breakpoint_ops): New.
8258 (struct breakpoint): Add ops member.
8259
8260 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8261 (mention): Use new breakpoint ops member.
8262 (set_raw_breakpoint): Initialize ops field to NULL.
8263 (print_exception_catchpoint, print_one_exception_catchpoint)
8264 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8265 (gnu_v3_exception_catchpoint_ops): New.
8266 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8267
8268 2003-04-25 Adam Fedor <fedor@gnu.org>
8269
8270 * Makefile.in (COMMON_OBS): Add objc-lang.o
8271
8272 2003-04-25 Andrew Cagney <cagney@redhat.com>
8273
8274 * d10v-tdep.c (print_insn): Delete function.
8275 (display_trace): Use TARGET_PRINT_INSN.
8276 (_initialize_d10v_tdep): Do not set tm_print_insn.
8277 (d10v_gdbarch_init): Set print_insn.
8278
8279 2003-04-25 Andrew Cagney <cagney@redhat.com>
8280
8281 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8282 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8283 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8284 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8285 (nr_dmap_regs, a0_regnum): ... new functions.
8286 (d10v_print_registers_info): Use a0_regnum, use register_size.
8287 (d10v_register_byte): Delete function.
8288 (d10v_register_raw_size): Delete function.
8289 (d10v_register_type): Use a0_regnum.
8290 (d10v_print_registers_info): Use a0_regnum.
8291 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8292 (d10v_gdbarch_init): Do not set register_byte or
8293 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8294 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8295 extract_address.
8296 (trace_command): Use XCALLOC.
8297 (print_insn): Delete reference to tm_print_insn.
8298 (saved_regs_unwinder): Use store_unsigned_integer instead of
8299 store_address.
8300 * frame.h (FRAME_OBSTACK_CALLOC): Define
8301
8302 2003-04-25 David Carlton <carlton@bactrian.org>
8303
8304 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8305
8306 2003-04-24 Adam Fedor <fedor@gnu.org>
8307
8308 * objc-lang.c: Include "valprint.h"
8309 * Makefile.in (objc-lang.o): Update dependencies.
8310
8311 2003-04-24 Adam Fedor <fedor@gnu.org>
8312
8313 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8314 architecture dependant compilation and mark as unimplemented
8315 (until they get put in the gdbarch vector).
8316
8317 2003-04-23 David Carlton <carlton@bactrian.org>
8318
8319 * cp-support.c (cp_find_first_component): Accept 'operator' in
8320 more locations.
8321
8322 2003-04-23 Andrew Cagney <cagney@redhat.com>
8323
8324 * infcall.c (call_function_by_hand): Eliminate redundant
8325 indentation. Move "saved_async" and "old_cleanups" to where they
8326 are needed.
8327
8328 2003-04-23 Andrew Cagney <cagney@redhat.com>
8329
8330 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8331 and "buffer". Move the "name" code to where it is needed.
8332
8333 2003-04-23 Andrew Cagney <cagney@redhat.com>
8334
8335 * infcall.c (call_function_by_hand): Move variables "start_sp",
8336 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8337 code to ON_STACK switch branch.
8338
8339 2003-04-23 Andrew Cagney <cagney@redhat.com>
8340
8341 * infcall.c (call_function_by_hand): Make declaration of "i",
8342 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8343 lint.
8344
8345 2003-04-23 Andrew Cagney <cagney@redhat.com>
8346
8347 * infcall.c (call_function_by_hand): Delete variable
8348 "n_method_args". Localize "param_type"'s declaration to the loop
8349 that it is used. Reinstate code assigning to said variable -
8350 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8351 Rationalize code using "param_type".
8352
8353 2003-04-22 Andrew Cagney <cagney@redhat.com>
8354
8355 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8356 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8357 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8358 to DEPRECATED_PUSH_RETURN_ADDRESS.
8359
8360 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8361
8362 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8363 on the DWARF2 register number prior to fetching a register.
8364
8365 2003-04-22 J. Brobecker <brobecker@gnat.com>
8366
8367 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8368 Update all the tests using SOFT_FLOAT considering the fact that
8369 this macro was always set to 0.
8370 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8371 considering the fact that this macro was always set to 0.
8372 * hppa-tdep.h (hppa_store_return_value): Likewise.
8373 (hppa_extract_return_value): Likewise.
8374
8375 2003-04-22 J. Brobecker <brobecker@gnat.com>
8376
8377 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8378 the hppa-pro target only.
8379
8380 2003-04-21 J. Brobecker <brobecker@gnat.com>
8381
8382 Ongoing multi-arch conversion effort for HP/UX:
8383 * config/pa/tm-hppa.h: Move all macro that are no longer
8384 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8385 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8386
8387 2003-04-21 J. Brobecker <brobecker@gnat.com>
8388
8389 * config/pa/tm-hppa.h: Obsolete a section that was only used
8390 for hppa-pro.
8391
8392 2003-04-21 J. Brobecker <brobecker@gnat.com>
8393
8394 Ongoing multi-arch conversion for HP/UX.
8395 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8396 if already defined (allows hppa64 to stay non-multiarched for now).
8397 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8398
8399 2003-04-21 Andrew Cagney <cagney@redhat.com>
8400
8401 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8402
8403 2003-04-21 Andrew Cagney <cagney@redhat.com>
8404
8405 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8406 "i386_num_mmx_regs".
8407
8408 2003-04-21 Andrew Cagney <cagney@redhat.com>
8409
8410 * infcall.c: New file.
8411 * infcall.h: New file.
8412 * valarith.c: Include "infcall.h".
8413 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8414 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8415 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8416 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8417 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8418 (SFILES): Add "infcall.c"
8419 (COMMON_OBS): Add "infcall.o".
8420 (infcall.o): Specify dependencies.
8421 * value.h (call_function_by_hand): Delete declaration.
8422 * inferior.h (run_stack_dummy): Delete declaration.
8423 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8424 (run_stack_dummy): Move to "infcall.c", merged into
8425 call_function_by_hand.
8426 * valops.c (call_function_by_hand): Moved to "infcall.c".
8427 (find_function_addr, value_arg_coerce): Ditto.
8428 (unwindonsignal_p, coerce_float_to_double): Ditto.
8429 (_initialize_valops): Move "set/show coerce-float-to-double", and
8430 "set/show unwindonsignal" commands to "infcall.c".
8431 * v850-tdep.c, target.h: Update comments.
8432 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8433 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8434 (sh64_init_extra_frame_info): Update comments.
8435 * mn10300-tdep.c: Update comments.
8436 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8437 * config/sparc/tm-sparc.h: Update comments.
8438 * breakpoint.h: Update comments.
8439 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8440 * arm-tdep.c: Update comment.
8441
8442 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8443
8444 * i386-tdep.c (i386_num_register_names): New variable.
8445 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8446 (MM0_REGNUM): Remove redundant parentheses in define.
8447 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8448 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8449 i386_mxcsr_regnum_p): Remove redundant parentheses.
8450 (i386_register_name): Use i386_num_register_names.
8451
8452 * i386-tdep.c (i386_extract_return_value,
8453 i386_store_return_value): Correct check for availability of
8454 floating-point registers.
8455
8456 * i386-tdep.c (i386_frame_num_args): Remove function.
8457 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8458
8459 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8460 mmx_regnum_to_fp_regnum. Adjust all callers.
8461
8462 * i386-tdep.c (i386_get_longjmp_target): Use
8463 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8464 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8465 extract_address.
8466
8467 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8468
8469 * core-regset.c: Update comments to reflect reality. Re-order
8470 includes.
8471 (fetch_core_registers): Use switch instead of if. Remove
8472 redundant prototype.
8473
8474 2003-04-18 Jim Blandy <jimb@redhat.com>
8475
8476 * s390-tdep.c (s390_frame_align): New function.
8477 (s390_gdbarch_init): Register it with the gdbarch object.
8478
8479 2003-04-17 Richard Henderson <rth@redhat.com>
8480
8481 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8482
8483 2003-04-17 Michael Snyder <msnyder@redhat.com>
8484 Karen Bennet <bennet@redhat.com>
8485
8486 Committed by Elena Zannoni <ezannoni@redhat.com>
8487 * gdb_gcore.sh: New script to create a core dump of a process.
8488
8489 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8490
8491 * values.c (value_being_returned): Don't fetch the return
8492 value if the return type is void.
8493
8494 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8495
8496 * thread-db.c: Reindented.
8497
8498 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8499
8500 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8501 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8502 as types.
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8529
8530 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8531 the size of ``long double'' to 16, instead of 8.
8532
8533 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8534
8535 * i386-linux-nat.c: Add some whitespace to make things more
8536 readable.
8537 (fetch_register, store_register, fetch_inferior_registers,
8538 store_inferior_registers): Get rid of assignment in if-statement.
8539 (store_register): Fix typo in error message.
8540
8541 2003-04-16 Andrew Cagney <cagney@redhat.com>
8542
8543 * utils.c (xmmalloc): Always allocate something, matches
8544 libiberty/xmalloc's semantics.
8545 (xmrealloc, xmcalloc): Ditto.
8546
8547 2003-04-16 Andrew Cagney <cagney@redhat.com>
8548
8549 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8550 update comments.
8551 (get_frame_type): Initialize unwind and type when needed.
8552 (get_frame_id, frame_register_unwind): Ditto.
8553
8554 2003-04-16 Andrew Cagney <cagney@redhat.com>
8555
8556 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8557 obsolete.
8558 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8559 * sparcl-stub.c: Obsolete file.
8560 * config/sparc/tm-sparclet.h: Obsolete file.
8561 * sparclet-stub.c: Obsolete file.
8562 * sparclet-rom.c: Obsolete file.
8563 * sparcl-tdep.c: Obsolete file.
8564 * config/sparc/tm-sparclite.h: Obsolete file.
8565 * config/sparc/sparclite.mt: Obsolete file.
8566 * config/sparc/sparclet.mt: Obsolete file.
8567 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8568 sparc86x-*-* obsolete.
8569
8570 2003-04-15 David Carlton <carlton@math.stanford.edu>
8571
8572 * Makefile.in (SFILES): Add cp-namespace.c.
8573 (COMMON_OBS): Add cp-namespace.o.
8574 (block.o): Depend on gdb_obstack_h and cp_support_h.
8575 (buildsym.o): Depend on cp_support_h.
8576 (cp-namespace.o): New.
8577 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8578 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8579 (dwarf2read.o): Depend on cp_support_h.
8580 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8581 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8582 processing_current_namespace.
8583 (read_namespace): Update processing_current_namespace; check for
8584 anonymous namespaces.
8585 (dwarf2_name): New function.
8586 (dwarf2_extension): Ditto.
8587 * cp-support.h: Update copyright, contributors.
8588 Add inclusion guards.
8589 Add opaque declaration for structs obstack, block, symbol.
8590 (struct using_direct): New struct.
8591 Add declarations for cp_find_first_component,
8592 cp_entire_prefix_len, processing_has_namespace_info,
8593 processing_current_namespace, cp_is_anonymous,
8594 cp_add_using_directive, cp_initialize_namespace,
8595 cp_finalize_namespace, cp_set_block_scope,
8596 cp_scan_for_anonymous_namespaces.
8597 * cp-namespace.c: New file.
8598 * cp-support.c: Update copyright.
8599 Include ctype.h, gdb_assert.h, gdbcmd.h.
8600 New variable maint_cplus_cmd_list.
8601 (cp_find_first_component): New function.
8602 (cp_entire_prefix_len, maint_cplus_command)
8603 (first_component_command, _initialize_cp_support): Ditto.
8604 * buildsym.c: Include cp-support.h.
8605 New variable using_list.
8606 (add_symbol_to_list): Check for anonymous namespaces.
8607 (finish_block): Set block's scope.
8608 (start_symtab): Initialize C++ namespace support.
8609 (end_symtab): Finalize C++ namespace support.
8610 * block.h: Add opaque declarations for structs
8611 block_namespace_info, using_direct, and obstack.
8612 Add declarations for block_set_scope and block_set_using.
8613 (struct block): Add 'language_specific' member.
8614 (BLOCK_NAMESPACE): New macro.
8615 * block.c: Include gdb_obstack.h and cp-support.h.
8616 (struct block_namespace_info): New struct.
8617 (block_set_scope): New function.
8618 (block_set_using, block_initialize_namespace): Ditto.
8619
8620 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8621
8622 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8623 (locate_base): Return early if there aren't any link map offsets.
8624 (svr4_solib_create_inferior_hook): Warn if shared library support
8625 is unavailable.
8626
8627 2003-04-14 David Carlton <carlton@math.stanford.edu>
8628
8629 * symtab.c (symbol_set_names): Add prefix when storing Java names
8630 in hash table. Fix for PR java/1039.
8631
8632 2003-04-14 David Carlton <carlton@math.stanford.edu>
8633
8634 * symtab.c (symbol_set_names): Rename 'name' arg to
8635 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8636 * symtab.h: Change 'name' argument in declaration of
8637 symbol_set_names to 'linkage_name'.
8638 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8639
8640 2003-04-14 Andrew Cagney <cagney@redhat.com>
8641
8642 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8643 return the fully sign-extended register value.
8644 (get_frame_pointer): Ditto.
8645 (mips_pop_frame): Initialize "proc_desc" after checking for a
8646 dummy frame.
8647
8648 2003-04-14 Andrew Cagney <cagney@redhat.com>
8649
8650 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8651 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8652 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8653 (mips_push_register): Delete function.
8654 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8655 PUSH_FP_REGNUM.
8656
8657 2003-04-14 Jim Blandy <jimb@redhat.com>
8658
8659 * symmisc.c: #include "gdb_regex.h".
8660 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8661 functions.
8662 * maint.c (maintenance_list_command): New function.
8663 (_initialize_maint_cmds): Register the above as commands.
8664 * symtab.h (maintenance_list_symtabs,
8665 maintenance_list_psymtabs): New declarations.
8666 * cli/cli-cmds.c (maintenancelistlist): New variable.
8667 (init_cmd_lists): Initialize it.
8668 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8669 * gdbcmd.h (maintenancelistlist): New declaration.
8670 * Makefile.in (symmisc.o): Update dependencies.
8671
8672 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8673
8674 * s390-nat.c: Include asm/types.h for addr_t.
8675
8676 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8677
8678 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8679 actually incoming type.
8680
8681 2003-04-13 Andrew Cagney <cagney@redhat.com>
8682
8683 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8684 get_next_frame and get_frame_saved_regs.
8685
8686 2003-04-13 Andrew Cagney <cagney@redhat.com>
8687
8688 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8689 of gdbarch_num_regs.
8690
8691 2003-04-13 Andrew Cagney <cagney@redhat.com>
8692
8693 * frame.h: Mention what replaced what in "struct frame_info".
8694 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8695 deprecated_update_frame_base_hack and
8696 deprecated_update_frame_pc_hack.
8697 * hppa-tdep.c: Ditto.
8698
8699 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8700
8701 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8702 to read_reg and update its comment. Remove regnum member.
8703 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8704 Don't call read_reg when setting in_reg. Call read_reg to get
8705 the frame base if it's in a register. Return the register number
8706 on the stack instead of in the context. Remove extra arguments
8707 to read_reg.
8708 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8709 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8710 the register number on the expression stack.
8711 (needs_frame_read_reg): Remove extra arguments.
8712
8713 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8716 made non-static.
8717 (execute_stack_op): All callers updated.
8718 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8719 * dwarf2loc.c (find_location_expression): New function.
8720 (dwarf_expr_frame_base): Call it.
8721 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8722 (dwarf2_tracepoint_var_ref): New function, broken out from
8723 locexpr_tracepoint_var_ref.
8724 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8725 Make static.
8726 (loclist_read_variable, loclist_read_needs_frame): New functions.
8727 (loclist_describe_location, loclist_tracepoint_var_ref): New
8728 functions.
8729 (dwarf2_loclist_funcs): New struct location_funcs.
8730 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8731 (struct dwarf2_locexpr_baton): Add comments.
8732 (dwarf2_loclist_funcs): New extern.
8733 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8734 base_address and base_known.
8735 (dwarf_loc_buffer): New variable.
8736 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8737 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8738 (dwarf2_has_info): Initialize dwarf_loc_offset.
8739 (dwarf2_build_psymtabs): Read in .debug_loc.
8740 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8741 DWARF_LOC_SIZE.
8742 (psymtab_to_symtab_1): Likewise. Move base address calculation
8743 here, from...
8744 (dwarf2_get_pc_bounds): ... here. Use the base address from
8745 cu_header.
8746 (dwarf2_symbol_mark_computed): Handle location lists.
8747
8748 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8749
8750 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8751 if the linkage name demangled successfully.
8752
8753 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8754
8755 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8756 disassmbly_flavour): Removed.
8757
8758 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8759
8760 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8761
8762 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8763
8764 2003-04-12 Andrew Cagney <cagney@redhat.com>
8765
8766 * frame.h (struct frame_info): Move definition from here ...
8767 * frame.c (struct frame_info): ... to here.
8768
8769 2003-04-12 Andrew Cagney <cagney@redhat.com>
8770
8771 * gdbthread.h (save_infrun_state): Delete parameter
8772 "prev_func_start".
8773 (struct thread_info): Delete field "prev_func_start".
8774 (load_infrun_state): Ditto.
8775 * thread.c (load_infrun_state, save_infrun_state): Update.
8776 * infrun.c (prev_func_start): Delete variable.
8777 (context_switch, init_wait_for_inferior): Update.
8778 (stop_stepping, keep_going): Update.
8779
8780 2003-04-12 Andrew Cagney <cagney@redhat.com>
8781
8782 * gdbarch.sh: Add missing opaque declarations.
8783 * gdbarch.h: Regnerate.
8784 * symtab.h: Add missing opaque declarations.
8785 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8786 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8787 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8788 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8789 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8790 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8791 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8792 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8793 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8794 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8795 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8796 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8797 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8798
8799 2003-04-11 Andrew Cagney <cagney@redhat.com>
8800
8801 * frame.c (get_frame_id): Return this frame's "id".
8802 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8803 function start.
8804 (legacy_saved_regs_this_id): Replace function body with
8805 internal-error.
8806 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8807 FRAME_OBSTACK_ZALLOC.
8808 (create_new_frame): Mark the frame ID as valid.
8809
8810 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8811
8812 * Makefile.in (libbfd_h): Added missing setting.
8813 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8814 according to the selected ABI.
8815
8816 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8817
8818 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8819
8820 2003-04-11 Andrew Cagney <cagney@redhat.com>
8821
8822 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8823 SAVED_PC_AFTER_CALL.
8824 * gdbarch.h, gdbarch.c: Regenerate.
8825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8826 * x86-64-tdep.c (x86_64_init_abi): Update.
8827 * vax-tdep.c (vax_gdbarch_init): Update.
8828 * v850-tdep.c (v850_gdbarch_init): Update.
8829 * sparc-tdep.c (sparc_gdbarch_init): Update.
8830 * sh-tdep.c (sh_gdbarch_init): Update.
8831 * s390-tdep.c (s390_gdbarch_init): Update.
8832 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8833 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8834 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8835 * mips-tdep.c (mips_gdbarch_init): Update.
8836 * mcore-tdep.c (mcore_gdbarch_init): Update.
8837 * m68k-tdep.c (m68k_gdbarch_init): Update.
8838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8839 * ia64-tdep.c (ia64_gdbarch_init): Update.
8840 (ia64_saved_pc_after_call): Update declaration.
8841 * i386ly-tdep.c (i386lynx_init_abi): Update.
8842 * i386-tdep.c (i386_gdbarch_init): Update.
8843 * hppa-tdep.c (hppa_gdbarch_init): Update.
8844 * h8300-tdep.c (h8300_gdbarch_init): Update.
8845 * frv-tdep.c (frv_gdbarch_init): Update.
8846 * cris-tdep.c (cris_gdbarch_init): Update.
8847 * avr-tdep.c (avr_gdbarch_init): Update.
8848 * arm-tdep.c (arm_gdbarch_init): Update.
8849 * alpha-tdep.c (alpha_gdbarch_init): Update.
8850 * ns32knbsd-nat.c (frame_num_args): Update.
8851 * ns32k-tdep.c (umax_frame_num_args): Update.
8852 * mips-tdep.c (mips_init_frame_pc_first): Update.
8853 * infrun.c (step_over_function): Update.
8854 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8855 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8856 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8857 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8858 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8859 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8860 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8861 * arch-utils.c (init_frame_pc_default): Update.
8862 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8863 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8864 declaration.
8865
8866 2003-04-11 Andrew Cagney <cagney@redhat.com>
8867
8868 * i387-tdep.c: Update copyright.
8869 (i387_to_double): Delete function.
8870 (double_to_i387): Delete function.
8871
8872 2003-04-10 Andrew Cagney <cagney@redhat.com>
8873
8874 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8875 frame's function's address. Simplify.
8876 (d10v_frame_unwind_cache): Check that the frame's function is
8877 non-zero.
8878
8879 2003-04-10 Jim Blandy <jimb@redhat.com>
8880
8881 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8882 call to set_gdbarch_deprecated_push_arguments.
8883
8884 2003-04-10 Andrew Cagney <cagney@redhat.com>
8885
8886 * frame.c (fprint_frame_id): New function.
8887 (fprint_frame_type, fprint_frame): New function.
8888 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8889 (create_sentinel_frame, get_frame_id): Ditto.
8890 (frame_id_p, frame_id_eq): Ditto.
8891 (frame_id_inner, create_new_frame): Ditto.
8892 (legacy_get_prev_frame, get_prev_frame): Ditto.
8893 (deprecated_update_frame_pc_hack): Ditto.
8894 (frame_register_unwind): Ditto.
8895 (deprecated_update_frame_base_hack): Ditto.
8896
8897 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8898
8899 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8900 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8901 frame_chain function.
8902 * Makefile.in: Add dependencies due to above change.
8903
8904 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8905
8906 * blockframe.c (legacy_frame_chain_valid): Move call to
8907 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8908 inside_entry_file.
8909
8910 2003-04-09 Andrew Cagney <cagney@redhat.com>
8911
8912 * frame.h (struct frame_id): Replace "pc" and "base" with
8913 "stack_addr" and "code_addr". Update comments.
8914 (frame_id_build): Update parameter names and comment.
8915 (struct frame_info): Replace "id_p" and "id" with "this_id".
8916 * dummy-frame.c (dummy_frame_this_id): Update.
8917 * breakpoint.c (print_one_breakpoint): Update.
8918 * frame.c (get_frame_id): Update.
8919 (get_frame_base, frame_id_build): Update.
8920 (create_sentinel_frame, legacy_get_prev_frame): Update.
8921 (deprecated_update_frame_base_hack): Update.
8922 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8923 (frame_id_inner): Ditto.
8924
8925 2003-04-09 Andrew Cagney <cagney@redhat.com>
8926
8927 * defs.h (gdb_print_host_address): Make "addr" parameter a
8928 pointer constant.
8929 * utils.c (gdb_print_host_address): Update.
8930
8931 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8932
8933 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8934 register number for R0 is 0.
8935
8936 2003-04-09 J. Brobecker <brobecker@gnat.com>
8937
8938 * frame.h (struct gdbarch): Add opaque structure definition
8939 to avoid a compilation warning on LynxOS 4.0.
8940
8941 2003-04-09 Andrew Cagney <cagney@redhat.com>
8942
8943 * frame.h (struct frame_info): Delete field "pc". Replace
8944 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8945 structure.
8946 * frame.c (frame_pc_unwind): Update.
8947 (create_sentinel_frame): Do not set "pc".
8948 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8949 (get_frame_pc): Call frame_pc_unwind.
8950 (deprecated_update_frame_pc_hack): Update.
8951 (create_new_frame): Use "pc" not "->pc".
8952
8953 2003-04-09 Andrew Cagney <cagney@redhat.com>
8954
8955 * frame.c (get_frame_id): Eliminate code updating "frame".
8956 (legacy_get_prev_frame): Ditto.
8957 (get_frame_base): Return id.base directly.
8958 (deprecated_update_frame_base_hack): Update "id.base".
8959 * frame.h (struct frame_info): Delete field "frame".
8960
8961 2003-04-09 Andrew Cagney <cagney@redhat.com>
8962
8963 * NEWS: Mention that the "Sequent family" is obsolete.
8964 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8965 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8966 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8967 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8968 * config/i386/tm-ptx4.h: Obsolete file.
8969 * config/i386/tm-ptx.h: Obsolete file.
8970 * symm-tdep.c: Obsolete file.
8971 * config/i386/symmetry.mt: Obsolete file.
8972 * config/i386/tm-symmetry.h: Obsolete file.
8973 * symm-nat.c: Obsolete file.
8974 * config/i386/nm-symmetry.h: Obsolete file.
8975 * config/i386/xm-symmetry.h: Obsolete file.
8976 * config/i386/symmetry.mh: Obsolete file.
8977 * config/i386/nm-ptx4.h: Obsolete file.
8978 * config/i386/ptx4.mh: Obsolete file.
8979 * config/i386/ptx.mt: Obsolete file.
8980 * config/i386/ptx.mh: Obsolete file.
8981 * config/i386/xm-ptx4.h: Obsolete file.
8982 * config/i386/xm-ptx.h: Obsolete file.
8983
8984 2003-04-09 Andrew Cagney <cagney@redhat.com>
8985
8986 Obsolete mips*-*-mach3*.
8987 * NEWS: Mention that mips*-*-mach3* is obsolete.
8988 * m3-nat.c: Obsolete file.
8989 * config/nm-m3.h: Obsolete file.
8990 * config/mips/tm-mipsm3.h: Obsolete file.
8991 * config/mips/mipsm3.mt: Obsolete file.
8992 * config/mips/mipsm3.mh: Obsolete file.
8993 * config/mips/xm-mipsm3.h: Obsolete file.
8994 * mipsm3-nat.c: Obsolete file.
8995 * configure.host: Obsolete mips-dec-mach3*.
8996 * configure.tgt: Obsolete mips*-*-mach3*.
8997
8998 2003-04-09 Andrew Cagney <cagney@redhat.com>
8999
9000 * doublest.h: Update copyright.
9001 (deprecated_store_floating, deprecated_extract_floating): Rename
9002 store_floating and extract_floating. Update comments.
9003 * doublest.c: Update copyright.
9004 (extract_floating_by_length): Replace extract_floating.
9005 (store_floating_by_length): Replace store_floating.
9006 (deprecated_extract_floating): New function.
9007 (deprecated_store_floating): New function.
9008 (extract_typed_floating): Call extract_floating_by_length.
9009 (store_typed_floating): Call store_floating_by_length.
9010 * x86-64-tdep.c (x86_64_store_return_value): Update.
9011 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
9012 (sh64_extract_return_value): Update.
9013 (sh_sh4_register_convert_to_virtual): Update.
9014 (sh_sh64_register_convert_to_virtual): Update.
9015 (sh_sh4_register_convert_to_raw): Update.
9016 (sh_sh64_register_convert_to_raw): Update.
9017 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
9018 (rs6000_register_convert_to_raw): Update.
9019 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
9020 (ia64_register_convert_to_raw): Update.
9021 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
9022 (REGISTER_CONVERT_TO_VIRTUAL): Update.
9023 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
9024 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
9025 (alpha_register_convert_to_raw): Update.
9026
9027 2003-04-08 Andrew Cagney <cagney@redhat.com>
9028
9029 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
9030 * gdbarch.h, gdbarch.c: Re-generate.
9031 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
9032 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9033 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9034 conditionally, use frame_pc_unwind as an alternative. Add
9035 comments.
9036 * arch-utils.c (init_frame_pc_default): Only call
9037 SAVED_PC_AFTER_CALL when available.
9038
9039 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9040
9041 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9042 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9043 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9044 (start_remote): Ditto.
9045 (handle_inferior_event): Ditto.
9046 (save_inferior_status): Ditto.
9047 (restore_inferior_status): Ditto.
9048 * infcmd.c (attach_command): Ditto.
9049 * fork-child.c (startup_inferior): Ditto.
9050 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9051 * alpha-tdep.c (heuristic_proc_start): Ditto.
9052 * mips-tdep.c (heuristic_proc_start): Ditto.
9053 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9054 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9055 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9056 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9057 * remote-vx.c (vx_create_inferior): Ditto.
9058
9059 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9060
9061 * infrun.c (stop_soon_quietly): Make it an enum, to better
9062 override the default behavior of handle_inferior_event.
9063 (clear_proceed_status): Update uses of stop_soon_quietly to
9064 reflect that it is now an enum.
9065 (start_remote): Ditto.
9066 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9067 is set to handle the new GNU/Linux kernel behavior for
9068 attach/sigstop. Update uses of stop_soon_quietly.
9069 * inferior.h (enum stop_kind): New enum.
9070 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9071 Reset normal handle_inferior_event behavior, afterwards.
9072 * fork-child.c (startup_inferior): Update.
9073 * alpha-tdep.c (heuristic_proc_start): Update.
9074 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9075 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9076 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9077 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9078 * remote-vx.c (vx_create_inferior): Update.
9079 * mips-tdep.c (heuristic_proc_start): Update.
9080
9081 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9082
9083 * disasm.c (dump_insns): Move variables inside loop, or they will
9084 be freed more than once, causing wild memory corruptions.
9085 (gdb_disassembly): Look for the substring "-thread",
9086 instead of "-threads" in the target name, to make sure to find
9087 the 'multi-thread' target. Also, make sure we do the right thing
9088 with the "core" target.
9089
9090 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9091
9092 * mips-tdep.c (mips_print_fp_register): New function, created from
9093 do_fp_register_row(). Registers are now (also) printed as hex.
9094 Only one register is printed per row.
9095 (mips_print_register, do_fp_register_row): Print floating point
9096 registers with mips_print_fp_register().
9097
9098 2003-04-06 Andrew Cagney <cagney@redhat.com>
9099
9100 * valprint.h (inspect_it): Add extern declaration.
9101 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9102 (selectors_info, classes_info): Ditto.
9103 (find_objc_msgcall): Fix indentation.
9104 (objc_printstr): Delete extern declarations.
9105
9106 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9107
9108 2003-04-06 Andrew Cagney <cagney@redhat.com>
9109
9110 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9111 Update comment.
9112 * frame.c (legacy_saved_regs_this_id): Update.
9113 (legacy_get_prev_frame): Update.
9114 * xstormy16-tdep.c: Update comment.
9115 * sparc-tdep.c (sparc_frame_chain): Update comment.
9116 * blockframe.c (legacy_frame_chain_valid): Update.
9117
9118 2003-04-06 Andrew Cagney <cagney@redhat.com>
9119
9120 * valprint.c (val_print_type_code_int): Delete #ifdef
9121 PRINT_TYPELESS_INTEGER code.
9122
9123 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9124 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9125 multi-arch definition.
9126 * gdbarch.h: Re-generate.
9127
9128 2003-04-05 Andrew Cagney <cagney@redhat.com>
9129
9130 Eliminate FRAME_FIND_SAVED_REGS.
9131 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9132 Change FSR parameter to a pointer.
9133 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9134 Assume FSR parameter is a pointer.
9135 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9136 Make fsr a pointer.
9137 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9138 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9139 saved_regs a pointer.
9140 (hppa_frame_saved_pc): Ditto.
9141 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9142 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9143 pointer.
9144 (restore_pc_queue): Make fsr a pointer.
9145 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9146 (hppa_frame_chain): Make saved_regs a pointer, call
9147 hppa_frame_init_saved_regs.
9148 * sparc-tdep.c: Include "gdb_assert.h".
9149 (sparc_frame_find_saved_regs): Replace internal_error with
9150 gdb_assert.
9151 * remote-vxsparc.c (vx_read_register): Delete reference to
9152 FRAME_FIND_SAVED_REGS.
9153 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9154 * gdbarch.h: Regenerate.
9155 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9156 (deprecated_get_frame_saved_regs): Delete declaration.
9157 (struct frame_saved_regs): Delete definition.
9158 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9159 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9160 (hppa_frame_find_saved_regs): Delete declaration.
9161 (FRAME_FIND_SAVED_REGS): Delete macro.
9162 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9163 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9164 FRAME_FIND_SAVED_REGS in comment.
9165
9166 2003-04-05 Andrew Cagney <cagney@redhat.com>
9167
9168 * frame.c (frame_func_unwind, get_frame_func): New functions.
9169 * frame.h (get_frame_func, frame_func_unwind): Declare.
9170 (struct frame_info): Add field "prev_func" for caching the
9171 previous frame's function address.
9172 * arm-tdep.c (arm_frameless_function_invocation): Combine
9173 get_pc_function_start and get_frame_pc into get_frame_func.
9174 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9175 (sh64_nofp_frame_init_saved_regs): Ditto.
9176 * s390-tdep.c (s390_function_start): Ditto.
9177 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9178 (rs6000_frameless_function_invocation): Ditto.
9179 (rs6000_frame_saved_pc): Ditto.
9180 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9181 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9182 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9183 (i386_frame_init_saved_regs): Ditto.
9184 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9185 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9186 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9187 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9188 * blockframe.c (frameless_look_for_prologue): Ditto.
9189
9190 2003-04-05 Andrew Cagney <cagney@redhat.com>
9191
9192 * frame.c (legacy_get_prev_frame): Link prev to next at the
9193 function start. Update comments.
9194
9195 2003-04-05 Andrew Cagney <cagney@redhat.com>
9196
9197 * frame.c (get_frame_id): Update comment.
9198 (legacy_get_prev_frame): Update comment.
9199 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9200 * gdbarch.h: Regenerate.
9201 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9202 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9203
9204 2003-04-05 Andrew Cagney <cagney@redhat.com>
9205
9206 * stack.c (print_frame_info): Use get_frame_pc.
9207
9208 2003-04-04 Andrew Cagney <cagney@redhat.com>
9209
9210 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9211 the frame's type from the unwinder.
9212 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9213 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9214 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9215 (get_frame_base_address): Use get_frame_type.
9216 (get_frame_locals_address, get_frame_args_address): Ditto.
9217 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9218 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9219 (struct frame_info): Add comment explaining why the frame contains
9220 a "type" field.
9221 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9222 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9223 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9224 NORMAL_FRAME.
9225 * frame-unwind.h: Include "frame.h".
9226 (struct frame_unwind): Add "type" field.
9227 * Makefile.in (frame_unwind_h): Add $(frame_h).
9228
9229 2003-04-04 Andrew Cagney <cagney@redhat.com>
9230
9231 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9232 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9233 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9234 get_frame_base.
9235 (d10v_unwind_dummy_id): Use frame_id_build.
9236 * frame.c (find_frame_sal): Use get_frame_pc.
9237 (create_new_frame): Use deprecated_update_frame_pc_hack and
9238 deprecated_update_frame_base_hack.
9239 (create_sentinel_frame): Add comment about ->pc going away.
9240 (get_prev_frame): Add comment about ->pc going away.
9241 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9242 frame_id_build, deprecated_update_frame_pc_hack and
9243 deprecated_update_frame_base_hack.
9244 (select_frame): Use get_frame_pc.
9245 (legacy_saved_regs_this_id): Use frame_id_build.
9246
9247 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9248
9249 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9250 signed integer case.
9251 (classify_argument): Handle enumerations and references.
9252
9253 2003-04-04 Andrew Cagney <cagney@redhat.com>
9254
9255 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9256 ID to NULL.
9257
9258 2003-04-01 Adam Fedor <fedor@gnu.org>
9259
9260 * gdb/objc-lang.c (selectors_info): Replace calls to
9261 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9262 SYMBOL_NATURAL_NAME.
9263 (classes_info, find_methods): Likewise.
9264
9265 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9266
9267 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9268 ``mach'' to the value determined by bfd_default_set_arch_mach().
9269
9270 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9271
9272 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9273 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9274 (mi-cmd-file.o): Update dependencies.
9275
9276 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9277
9278 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9279 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9280
9281 2003-04-01 Adam Fedor <fedor@gnu.org>
9282
9283 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9284 * language.h (struct language_defn): Add la_demangle.
9285 (language_demangle): Declare.
9286 * language.c (language_demangle): New function.
9287 (unk_lang_demangle): Likewise.
9288 (unknown_language_defn, auto_language_defn, local_language_defn):
9289 Add ukn_lang_demangle.
9290 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9291 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9292 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9293 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9294 * jv-lang.c (java_demangle): New function
9295 (java_language_defn): Use it for la_demangle element.
9296 * objc-lang.c (objc_demangle): Add options argument
9297 (objc_language_defn): Use objc_demangle for la_demangle element.
9298 * maint.c (maintenance_demangle): Replace switch with
9299 call to language_demangle.
9300 * utils.c (fprintf_symbol_filtered): Likewise.
9301
9302 2003-04-01 Andrew Cagney <cagney@redhat.com>
9303
9304 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9305 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9306 PRINT_TYPELESS_INTEGER.
9307 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9308 PUSH_RETURN_ADDRESS.
9309
9310 2003-04-01 Andrew Cagney <cagney@redhat.com>
9311
9312 * Makefile.in (d10v-tdep.o): Update dependencies.
9313 * d10v-tdep.c: Include "frame-base.h".
9314 (d10v_frame_unwind): Make constant.
9315 (d10v_frame_base_address): New function.
9316 (d10v_frame_base): New variable.
9317 (d10v_gdbarch_init): Set frame_base default.
9318 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9319 comment for base.
9320 (d10v_frame_unwind_cache): Set and use "prev_sp".
9321 (d10v_frame_this_id): Use the previous frame's inner most stack
9322 address and this frame's func address for the frame ID. Use
9323 frame_id_build. Don't analyze beyond the current instruction.
9324
9325 2003-04-01 Andrew Cagney <cagney@redhat.com>
9326
9327 * frame.h (get_frame_locals_address, get_frame_args_address):
9328 Refer to the base address, instead of the address of the first
9329 local or parameter.
9330
9331 2003-04-01 Andrew Cagney <cagney@redhat.com>
9332
9333 Add frame debug info addresses:
9334 * frame-base.c: New file.
9335 * frame-base.h: New file.
9336 * frame.h (struct frame_base): Add opaque declaration.
9337 (get_frame_base): Update comment.
9338 (get_frame_base_address): Declare.
9339 (get_frame_locals_address): Declare.
9340 (get_frame_args_address): Declare.
9341 (struct frame_info): Add "base" and "base_cache". Update
9342 comments on the unwinder.
9343 * frame.c: Include "frame-base.h".
9344 (get_frame_locals_address): New function.
9345 (get_frame_base_address): New function.
9346 (get_frame_args_address): New function.
9347 * findvar.c (read_var_value): Use get_frame_locals_address and
9348 get_frame_args_address.
9349 * stack.c (frame_info): Use get_frame_locals_address and
9350 get_frame_args_address.
9351 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9352 moved to "frame-base.c".
9353 * printcmd.c (print_frame_nameless_args): Ditto.
9354 * symtab.h (address_class): Update comments.
9355 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9356 get_frame_base_address.
9357 * dwarf2expr.c (execute_stack_op): Ditto.
9358 * Makefile.in (frame_base_h): Define.
9359 (frame.o): Update dependencies.
9360 (frame-base.o): Add dependencies.
9361 (SFILES): Add frame-base.c.
9362 (COMMON_OBS): Add frame-base.o.
9363
9364 2003-04-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9367 CALL_DUMMY_LENGTH): Ditto.
9368 * gdbarch.c: Re-generate.
9369 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9370 (CALL_DUMMY_LENGTH): Delete macro.
9371 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9372 * arm-tdep.c (arm_gdbarch_init): Ditto.
9373 * avr-tdep.c (avr_gdbarch_init): Ditto.
9374 * cris-tdep.c (cris_gdbarch_init): Ditto.
9375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9376 * frv-tdep.c (frv_gdbarch_init): Ditto.
9377 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9378 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9379 * i386-tdep.c (i386_gdbarch_init): Ditto.
9380 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9381 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9382 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9383 * mips-tdep.c (mips_gdbarch_init): Ditto.
9384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9386 * s390-tdep.c (s390_gdbarch_init): Ditto.
9387 * sh-tdep.c (sh_gdbarch_init): Ditto.
9388 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9389 * v850-tdep.c (v850_gdbarch_init): Ditto.
9390 * vax-tdep.c (vax_gdbarch_init): Ditto.
9391 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9392
9393 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9394
9395 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9396
9397 2003-04-01 Andrew Cagney <cagney@redhat.com>
9398
9399 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9400 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9401 * gdbarch.h, gdbarch.c: Re-generate.
9402 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9403 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9404 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9405 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9406 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9407 * infcmd.c (run_stack_dummy): Simplify assuming
9408 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9409 * infrun.c (handle_inferior_event): Ditto.
9410 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9411 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9412 * arm-tdep.c (arm_gdbarch_init): Ditto.
9413 * avr-tdep.c (avr_gdbarch_init): Ditto.
9414 * cris-tdep.c (cris_gdbarch_init): Ditto.
9415 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9416 * frv-tdep.c (frv_gdbarch_init): Ditto.
9417 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9418 * i386-tdep.c (i386_gdbarch_init): Ditto.
9419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9420 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9421 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9422 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9423 * mips-tdep.c (mips_gdbarch_init): Ditto.
9424 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9425 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9426 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9427 * s390-tdep.c (s390_gdbarch_init): Ditto.
9428 * sh-tdep.c (sh_gdbarch_init): Ditto.
9429 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9430 * v850-tdep.c (v850_gdbarch_init): Ditto.
9431 * vax-tdep.c (vax_gdbarch_init): Ditto.
9432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9433
9434 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * symfile.c (symfile_relocate_debug_section): Update call to
9437 bfd_simple_get_relocated_section_contents.
9438
9439 2003-03-31 Andrew Cagney <cagney@redhat.com>
9440
9441 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9442 * gdbarch.h, gdbarch.c: Regenerate.
9443 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9444 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9445 available.
9446 * frame.h (generic_fix_call_dummy): Delete declaration.
9447 * dummy-frame.h: Update comment.
9448 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9450 fix_call_dummy.
9451 * sh-tdep.c (sh_gdbarch_init): Ditto.
9452 * s390-tdep.c (s390_gdbarch_init): Ditto.
9453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9457 * i386-tdep.c (i386_gdbarch_init): Ditto.
9458 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9459 * frv-tdep.c (frv_gdbarch_init): Ditto.
9460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9461 * cris-tdep.c (cris_gdbarch_init): Ditto.
9462 * avr-tdep.c (avr_gdbarch_init): Ditto.
9463 * arm-tdep.c (arm_gdbarch_init): Ditto.
9464
9465 2003-03-31 J. Brobecker <brobecker@gnat.com>
9466
9467 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9468 (INIT_FRAME_AP): Likewise.
9469 (EXTRA_FRAME_INFO): Likewise.
9470
9471 2003-03-31 Andrew Cagney <cagney@redhat.com>
9472
9473 * gdbarch.sh: Include "symfile.h".
9474 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9475 * gdbarch.h, gdbarch.c: Re-generate.
9476 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9477 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9478 call_dummy_address, the default is at entry_point_address.
9479 * v850-tdep.c (v850_gdbarch_init): Ditto.
9480 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9481 * sh-tdep.c (sh_gdbarch_init): Ditto.
9482 * s390-tdep.c (s390_gdbarch_init): Ditto.
9483 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9484 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9485 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9486 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9487 * i386-tdep.c (i386_gdbarch_init): Ditto.
9488 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9489 * frv-tdep.c (frv_gdbarch_init): Ditto.
9490 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9491 * cris-tdep.c (cris_gdbarch_init): Ditto.
9492 * arm-tdep.c (arm_gdbarch_init): Ditto.
9493
9494 2003-03-31 Andrew Cagney <cagney@redhat.com>
9495
9496 * gdbarch.sh (CALL_DUMMY_P): Delete.
9497 * gdbarch.h, gdbarch.c: Re-generate.
9498 * inferior.h (CALL_DUMMY_P): Delete macro.
9499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9500 * vax-tdep.c (vax_gdbarch_init): Update.
9501 * v850-tdep.c (v850_gdbarch_init): Update.
9502 * sparc-tdep.c (sparc_gdbarch_init): Update.
9503 * sh-tdep.c (sh_gdbarch_init): Update.
9504 * s390-tdep.c (s390_gdbarch_init): Update.
9505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9506 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9507 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9508 * mips-tdep.c (mips_gdbarch_init): Update.
9509 * mcore-tdep.c (mcore_gdbarch_init): Update.
9510 * m68k-tdep.c (m68k_gdbarch_init): Update.
9511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9512 * ia64-tdep.c (ia64_gdbarch_init): Update.
9513 * i386-tdep.c (i386_gdbarch_init): Update.
9514 * h8300-tdep.c (h8300_gdbarch_init): Update.
9515 * frv-tdep.c (frv_gdbarch_init): Update.
9516 * d10v-tdep.c (d10v_gdbarch_init): Update.
9517 * cris-tdep.c (cris_gdbarch_init): Update.
9518 * breakpoint.c (deprecated_frame_in_dummy): Update.
9519 * avr-tdep.c (avr_gdbarch_init): Update.
9520 * alpha-tdep.c (alpha_gdbarch_init): Update.
9521 * arm-tdep.c (arm_gdbarch_init): Update.
9522 * dummy-frame.c (dummy_frame_this_id): Update comments.
9523 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9524 * frame.c (legacy_get_prev_frame): Ditto.
9525 * valops.c (call_function_by_hand): Delete function.
9526 (hand_function_call): Rename to call_function_by_hand
9527
9528 2003-03-30 Andrew Cagney <cagney@redhat.com>
9529
9530 2002-11-10 Klee Dienes <kdienes@apple.com>
9531 * value.h (struct value): Update comment.
9532
9533 2003-03-30 Andrew Cagney <cagney@redhat.com>
9534
9535 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9536 D10V_FP_REGNUM.
9537 (d10v_gdbarch_init): Do not set fp_regnum.
9538
9539 * frame.c (get_frame_base): Force ID initialization.
9540 (get_prev_frame): Move computation of the frame ID from here ...
9541 (get_frame_id): ... to here.
9542 (legacy_get_prev_frame): Mark the frame ID as valid.
9543 * frame.h (struct frame_info): Add field "id_p".
9544
9545 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9546
9547 * i386-tdep.c (i386_store_struct_return): Removed.
9548 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9549
9550 2003-03-30 Andrew Cagney <cagney@redhat.com>
9551
9552 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9554 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9557 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9558 * i386-tdep.c (i386_gdbarch_init): Ditto.
9559 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9560 * cris-tdep.c (cris_gdbarch_init): Ditto.
9561 * vax-tdep.c (vax_gdbarch_init): Ditto.
9562 * s390-tdep.c (s390_gdbarch_init): Ditto.
9563 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9564 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9565 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9566 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9567 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9568 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9569 * sparc-tdep.c (sparc_gdbarch_init): Update.
9570 * sh-tdep.c (sh_gdbarch_init): Update.
9571 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9572 * mips-tdep.c (mips_gdbarch_init): Update.
9573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9574 * ia64-tdep.c (ia64_gdbarch_init): Update.
9575 * frv-tdep.c (frv_gdbarch_init): Update.
9576 * avr-tdep.c (avr_gdbarch_init): Update.
9577 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9578 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9579 instead of when push_dummy_call is not available.
9580
9581 2003-03-30 Andrew Cagney <cagney@redhat.com>
9582
9583 * infttrace.c: Include "gdbthread.h".
9584 (parent_attach_all): Fix function signature.
9585 (call_ptrace): Update call.
9586 * Makefile.in (infttrace.o): Update dependencies.
9587
9588 2003-03-30 Andrew Cagney <cagney@redhat.com>
9589
9590 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9591 PUSH_RETURN_ADDRESS.
9592 * gdbarch.h, gdbarch.c: Regenerate.
9593 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9594 * x86-64-tdep.c (x86_64_init_abi): Update.
9595 * v850-tdep.c (v850_gdbarch_init): Update.
9596 * sparc-tdep.c (sparc_gdbarch_init): Update.
9597 * sh-tdep.c (sh_gdbarch_init): Update.
9598 * s390-tdep.c (s390_gdbarch_init): Update.
9599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9600 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9601 * mips-tdep.c (mips_gdbarch_init): Update.
9602 * mcore-tdep.c (mcore_gdbarch_init): Update.
9603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9604 * ia64-tdep.c (ia64_gdbarch_init): Update.
9605 * i386-tdep.c (i386_gdbarch_init): Update.
9606 * h8300-tdep.c (h8300_gdbarch_init): Update.
9607 * frv-tdep.c (frv_gdbarch_init): Update.
9608 * cris-tdep.c (cris_gdbarch_init): Update.
9609 * avr-tdep.c (avr_gdbarch_init): Update.
9610 * arm-tdep.c (arm_gdbarch_init): Update.
9611 * valops.c (hand_function_call): Update.
9612
9613 2003-03-29 Andrew Cagney <cagney@redhat.com>
9614
9615 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9616 sizeof_call_dummy_words.
9617 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9618 define.
9619 * gdbarch.h: Regenerate.
9620
9621 2003-03-29 Andrew Cagney <cagney@redhat.com>
9622
9623 * infttrace.h: New file.
9624 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9625 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9626 (hpread_read_doc_function_type): Detect an initialized type1.
9627 (hpread_quick_traverse): Initialize mod_name_string.
9628 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9629 (som_solib_get_solib_by_pc): Declare.
9630 (so_lib_thread_start_addr): Declare.
9631 (no_shared_libraries): Declare.
9632 * somread.c (init_import_symbols): Make static. Add forward
9633 declaration.
9634 * config/pa/nm-hppah.h: Include "infttrace.h" for
9635 parent_attach_all.
9636 (hppa_insert_hw_watchpoint): Declare.
9637 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9638 * hppah-nat.c: Include "gdb_string.h".
9639 (parent_attach_all): Delete extern declaration, moved to
9640 "infttrace.h".
9641 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9642 int.
9643 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9644 * Makefile.in (infttrace_h): Define.
9645 (hpread.o): Update dependencies.
9646 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9647 * hppa-hpux-tdep.c: Include "gdb_string.h".
9648 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9649 * infrun.c (handle_inferior_event): Always initialize
9650 stepped_after_stopped_by_watchpoint. Add default and remove
9651 fallthrough in switch statement.
9652 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9653 parameter to int.
9654 (hppa_remove_hw_watchpoint): Ditto.
9655
9656 2003-03-29 Andrew Cagney <cagney@redhat.com>
9657
9658 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9659 offset.
9660
9661 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9662
9663 * arm-tdep.c (arm_push_arguments): Delete.
9664 (struct stack_item): New type.
9665 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9666 (arm_store_struct_return): Delte.
9667 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9668 arm_push_arguments or arm_store_struct_return.
9669
9670 2003-03-28 Andrew Cagney <cagney@redhat.com>
9671
9672 * Makefile.in (d10v-tdep.o): Update dependencies.
9673 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9674 * d10v-tdep.c: Include "remote.h".
9675 (target_resume_hook): Delete extern declaration.
9676 (target_wait_loop_hook): Ditto.
9677 (tdisassemble_command): Eliminate assignment in "if" conditional.
9678 (d10v_ts2_register_sim_regno): Eliminate call to
9679 legacy_register_sim_regno.
9680 (d10v_ts3_register_sim_regno): Ditto.
9681
9682 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9683
9684 * thread.c: Reindented.
9685 * lin-lwp.c: Ditto.
9686 * linux-proc.c: Ditto.
9687
9688 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9689
9690 * MAINTAINERS (write after approval): Add myself.
9691
9692 2003-03-27 Theodore A. Roth <troth@openavr.org>
9693
9694 * objc-exp.y: Add missing semi-colons.
9695
9696 2003-03-27 Andrew Cagney <cagney@redhat.com>
9697
9698 * regcache.c (write_sp): Delete function and references.
9699 * inferior.h (write_sp): Delete declaration.
9700 * valops.c (hand_function_call): Replace write_sp with
9701 TARGET_WRITE_SP.
9702 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9703 (sparc_pop_frame): Ditto.
9704
9705 2003-03-27 Andrew Cagney <cagney@redhat.com>
9706
9707 * NEWS: Mention removal of support for hppa*-*-bsd* and
9708 hppa*-*-osf* natives, and hppa*-*-pro* target.
9709 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9710 * config/pa/xm-pa.h: Obsolete file.
9711 * config/pa/xm-hppab.h: Obsolete file.
9712 * config/pa/nm-hppab.h: Obsolete file.
9713 * config/pa/tm-hppab.h: Obsolete file.
9714 * config/pa/tm-hppao.h: Obsolete file.
9715 * config/pa/nm-hppao.h: Obsolete file.
9716 * config/pa/tm-pro.h: Obsolete file.
9717 * config/pa/hppaosf.mt: Obsolete file.
9718 * config/pa/hppaosf.mh: Obsolete file.
9719 * config/pa/hppapro.mt: Obsolete file.
9720 * config/pa/hppabsd.mt: Obsolete file.
9721 * config/pa/hppabsd.mh: Obsolete file.
9722 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9723 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9724 hppa*-*-osf*.
9725
9726 2003-03-27 Andrew Cagney <cagney@redhat.com>
9727
9728 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9729 push_arguments. Don't set push_return_address or write_sp.
9730 (d10v_push_dummy_call): Replace d10v_push_arguments.
9731 (d10v_push_return_address, d10v_write_sp): Delete function,
9732 handled by push_dummy_call.
9733
9734 2003-03-26 Andrew Cagney <cagney@redhat.com>
9735
9736 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9737 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9738 regcache and dummy_addr parameters.
9739 * gdbarch.h, gdbarch.c: Re-generate.
9740 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9741 available; assume it will handle stack alignment and return
9742 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9743 legacy_push_arguments.
9744 (legacy_push_arguments): Rename default_push_arguments.
9745 * value.h (legacy_push_arguments): Rename default_push_arguments.
9746 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9747 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9748 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9749 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9750 * config/i386/tm-symmetry.h: Update.
9751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9752 * x86-64-tdep.c (x86_64_init_abi): Update.
9753 * v850-tdep.c (v850_gdbarch_init): Update.
9754 * sparc-tdep.c (sparc_gdbarch_init): Update.
9755 * sh-tdep.c (sh_gdbarch_init): Update.
9756 * s390-tdep.c (s390_gdbarch_init): Update.
9757 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9758 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9759 * mips-tdep.c (mips_gdbarch_init): Update.
9760 * mcore-tdep.c (mcore_gdbarch_init): Update.
9761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9762 * ia64-tdep.c (ia64_gdbarch_init): Update.
9763 * i386-tdep.c (i386_gdbarch_init): Update.
9764 * hppa-tdep.c (hppa_gdbarch_init): Update.
9765 * h8300-tdep.c (h8300_gdbarch_init): Update.
9766 * frv-tdep.c (frv_gdbarch_init): Update.
9767 * d10v-tdep.c (d10v_gdbarch_init): Update.
9768 * cris-tdep.c (cris_gdbarch_init): Update.
9769 * avr-tdep.c (avr_gdbarch_init): Update.
9770 * arm-tdep.c (arm_gdbarch_init): Update.
9771 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9772 * alpha-tdep.c (alpha_gdbarch_init): Update.
9773
9774 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9775
9776 * signals/signals.c (do_target_signal_to_host): Correct realtime
9777 signal range test.
9778
9779 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9780
9781 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9782 (struct sal_chain, map_catch_names): Remove.
9783 (catch_exception_command_1): Don't call
9784 handle_gnu_4_16_catch_command.
9785
9786 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9787
9788 From Mark Dettinger <dettinge@de.ibm.com>:
9789 * dwarf2cfi.c (read_2u): Increment pointer by two.
9790
9791 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9792
9793 * signals/signals.c: Fix typos in last change.
9794
9795 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9796
9797 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9798 not already defined. Use __SIGRTMIN if available.
9799 (target_signal_from_host): Remove SIGRTMIN block.
9800 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9801 the signal is within the realtime range.
9802
9803 2003-03-25 Adam Fedor <fedor@gnu.org>
9804
9805 * Makefile.in (infrun.o): Add $(language_h)
9806 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9807 for language specific trampolines.
9808 * language.h (struct language_defn): Add skip_trampoline.
9809 (skip_language_trampoline): Declare.
9810 * language.c (unk_lang_trampoline, skip_language_trampoline):
9811 New functions.
9812 (unknown_language_defn, auto_language_defn, local_language_defn):
9813 Add ukn_lang_trampoline.
9814 * ada-lang.c (ada_language_defn): Add NULL for language
9815 specific skip_trampoline.
9816 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9817 scm-lang.c: Likewise.
9818 * objc-lang.c (objc_skip_trampoline): New function.
9819 (objc_language_defn): Add objc_skip_trampoline.
9820
9821 2003-03-25 Andrew Cagney <cagney@redhat.com>
9822
9823 * frame.c (get_prev_frame): Delay validating a frame's ID -
9824 non-NULL, didn't go backwards - until an attempt to unwind it to
9825 the previous frame.
9826
9827 2003-03-25 Andrew Cagney <cagney@redhat.com>
9828
9829 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9830 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9831 * gdbarch.h, gdbarch.c: Re-generate.
9832 * config/sparc/tm-sparc.h
9833 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9834 * sparc-tdep.c (sparc_gdbarch_init): Set
9835 deprecated_extra_stack_alignment_needed.
9836 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9838 extra_stack_alignment_needed.
9839 * v850-tdep.c (v850_gdbarch_init): Ditto.
9840 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9842 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9843 * cris-tdep.c (cris_gdbarch_init): Ditto.
9844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9846
9847 2003-03-25 Andrew Cagney <cagney@redhat.com>
9848
9849 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9850 STORE_STRUCT_RETURN.
9851 * gdbarch.h, gdbarch.c: Regenerate.
9852 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9853 (d10v_push_arguments): Set the struct return register.
9854 (d10v_gdbarch_init): Update.
9855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9856 * x86-64-tdep.c (x86_64_init_abi): Update.
9857 * vax-tdep.c (vax_gdbarch_init): Update.
9858 * v850-tdep.c (v850_gdbarch_init): Update.
9859 * sparc-tdep.c (sparc_gdbarch_init): Update.
9860 * sh-tdep.c (sh_gdbarch_init): Update.
9861 * s390-tdep.c (s390_gdbarch_init): Update.
9862 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9863 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9864 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9865 * mips-tdep.c (mips_gdbarch_init): Update.
9866 * mcore-tdep.c (mcore_gdbarch_init): Update.
9867 * m68k-tdep.c (m68k_gdbarch_init): Update.
9868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9869 * ia64-tdep.c (ia64_gdbarch_init): Update.
9870 * i386-tdep.c (i386_gdbarch_init): Update.
9871 * hppa-tdep.c (hppa_gdbarch_init): Update.
9872 * h8300-tdep.c (h8300_gdbarch_init): Update.
9873 * frv-tdep.c (frv_gdbarch_init): Update.
9874 * cris-tdep.c (cris_gdbarch_init): Update.
9875 * avr-tdep.c (avr_gdbarch_init): Update.
9876 * arm-tdep.c (arm_gdbarch_init): Update.
9877 * alpha-tdep.c (alpha_gdbarch_init): Update.
9878
9879 2003-03-25 Andrew Cagney <cagney@redhat.com>
9880
9881 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9882 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9883 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9884 * gdbarch.h, gdbarch.c: Regenerate.
9885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9886 call_dummy_stack_adjust_p.
9887 * vax-tdep.c (vax_gdbarch_init): Ditto.
9888 * v850-tdep.c (v850_gdbarch_init): Ditto.
9889 * sh-tdep.c (sh_gdbarch_init): Ditto.
9890 * s390-tdep.c (s390_gdbarch_init): Ditto.
9891 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9892 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9894 * mips-tdep.c (mips_gdbarch_init): Ditto.
9895 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9896 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9899 * i386-tdep.c (i386_gdbarch_init): Ditto.
9900 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9901 * frv-tdep.c (frv_gdbarch_init): Ditto.
9902 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9903 * cris-tdep.c (cris_gdbarch_init): Ditto.
9904 * avr-tdep.c (avr_gdbarch_init): Ditto.
9905 * arm-tdep.c (arm_gdbarch_init): Ditto.
9906 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9907 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9908 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9909 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9910 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9911 call_dummy_stack_adjust_p.
9912 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9913 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9914 * sparc-tdep.c (sparc32_push_arguments): Update.
9915 * valops.c (hand_function_call): Update.
9916
9917 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9918
9919 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9920 set_gdbarch_char_signed.
9921
9922 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9923
9924 PR cli/548
9925 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9926
9927 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9928
9929 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9930 (_initialize_arm_tdep): Don't set tm_print_insn.
9931
9932 2003-03-24 Adam Fedor <fedor@gnu.org>
9933
9934 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9935 * objc-lang.h: Add multiple inclusion protection.
9936 (start_msglist, add_msglist, end_msglist): Additional declarations.
9937
9938 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9939
9940 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9941 value was renamed to ARM_FLOAT_SOFT_FPA.
9942
9943 2003-03-23 Andrew Cagney <cagney@redhat.com>
9944
9945 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9946 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9947 * gdbarch.h, gdbarch.c: Regenerate.
9948 * valops.c (hand_function_call): Update.
9949 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9950 * frame.c (legacy_saved_regs_this_id): Update.
9951 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9952 * dummy-frame.h: Update.
9953 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9954 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9955 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9956 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9957 * config/m68k/tm-sun3.h: Update.
9958 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9960 * x86-64-tdep.c (x86_64_init_abi): Update.
9961 * vax-tdep.c (vax_gdbarch_init): Update.
9962 * v850-tdep.c (v850_gdbarch_init): Update.
9963 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9964 * sh-tdep.c (sh_gdbarch_init): Update.
9965 * s390-tdep.c (s390_gdbarch_init): Update.
9966 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9967 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9968 (frame_get_saved_regs): Update.
9969 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9970 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9972 * mips-tdep.c (mips_gdbarch_init): Update.
9973 * mcore-tdep.c (mcore_gdbarch_init): Update.
9974 * m68k-tdep.c (m68k_gdbarch_init): Update.
9975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9976 * ia64-tdep.c (ia64_gdbarch_init): Update.
9977 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9978 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9979 (i386_interix_back_one_frame): Update.
9980 * hppa-tdep.c (hppa_gdbarch_init): Update.
9981 (hppa_init_extra_frame_info): Update.
9982 * h8300-tdep.c (h8300_gdbarch_init): Update.
9983 * frv-tdep.c (frv_gdbarch_init): Update.
9984 * cris-tdep.c (cris_gdbarch_init): Update.
9985 * avr-tdep.c (avr_gdbarch_init): Update.
9986 * arm-tdep.c (arm_gdbarch_init): Update.
9987 * alpha-tdep.c (alpha_gdbarch_init): Update.
9988
9989 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9990
9991 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9992 (arm_get_fp_model): Declare.
9993 * arm-tdep.c (fp_model_strings): New string array.
9994 (arm_fp_model, current_fp_model): New variables.
9995 (arm_get_fp_model): New function.
9996 (arm_set_fp): New function.
9997 (set_fp_model_sfunc): New function.
9998 (show_fp_model): New function.
9999 (_initialize_arm_tdep): Add new command to set/show the FPU.
10000 (arm_extract_return_value): Use arm_get_fp_model.
10001 (arm_store_return_value): Likewise.
10002 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
10003 to initialize the floating-point data types.
10004 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
10005 model is FPA.
10006
10007 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10008
10009 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
10010 the current setting of each value.
10011 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
10012 new_set and new_show. Use add_setshow_cmd_full and
10013 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
10014 commands and add new version as subcommands of "set/show arm".
10015
10016 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10017
10018 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
10019 (set_arm_command, show_arm_command): New functions.
10020 (_initialize_arm_tdep): Add them.
10021 (num_disassembly_options): Renamed from num_flavor_options.
10022 (valid_disassembly_styles): Renamed from valid_flavors.
10023 (disassembly_style): Renamed from disassembly_flavor.
10024 (set_disassembly_style_sfunc): Renamed from
10025 set_disassembly_flavor_sfunc.
10026 (set_disassembly_style): Renamed from set_disassembly_flavor.
10027 (arm_othernames): Updated.
10028 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
10029 command. Add "set/show arm disassembly" commands. Deprecate
10030 "othernames" command.
10031
10032 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10035 (arm-tdep.o): Depend on elf_arm_h.
10036
10037 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10038
10039 * Makefile.in (coff_internal_h): Define.
10040 (arm-tdep.o): Update dependencies.
10041
10042 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10043
10044 * arm-tdep.c (prologue_cache): Delete.
10045 (check_prologue_cache, save_prologue_cache): Delete.
10046 (arm_scan_prologue): Don't check or update the prologue_cache.
10047 (arm_gdb_arch_init): Don't initialize it.
10048 (_initialize_arm_tdep): Likewise.
10049
10050 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10051
10052 * MAINTAINERS (tui): Maintainer of tui code.
10053
10054 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10055
10056 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10057 (i386-cygwin-tdep.o): Add dependencies.
10058 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10059 * i386-cygwin-tdep.c: New file.
10060 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10061 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10062
10063 2003-03-20 Andrew Cagney <cagney@redhat.com>
10064
10065 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10066 (handle_inferior_event): Remove code calling
10067 DYNAMIC_TRAMPOLINE_NEXTPC.
10068
10069 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10070 already has a full path.
10071
10072 * main.c (gdb_main): Return 1.
10073 (captured_main): Call error to report an invalid interpreter.
10074
10075 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10076 * alpha-osf1-tdep.c: Include "gdb_string.h".
10077
10078 2003-03-19 J. Brobecker <brobecker@gnat.com>
10079
10080 Continuing work to convert the hppa targets to multiarch partial.
10081
10082 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10083 method, now that hppa_push_dummy_frame has a conformant prototype.
10084 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10085 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10086 for the switch to multiarch partial.
10087
10088 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10089
10090 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10091 when iss is issNull.
10092
10093 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10094
10095 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10096 NUM_REGS bounds check.
10097
10098 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10099
10100 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10101 * mips-tdep.c (gdb_assert.h): Include.
10102 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10103 (mips_register_name): Handle integer registers explicitly. Add
10104 bounds checking.
10105 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10106 (mips_lsi33k_reg_names): Don't list integer registers; they're
10107 handled by mips_register_name() now.
10108 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10109 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10110 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10111 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10112 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10113
10114 2003-03-18 Andrew Cagney <cagney@redhat.com>
10115
10116 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10117 a void pointer.
10118 * gdbtypes.h (print_scalar_formatted): Update declaration.
10119 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10120
10121 2003-03-18 J. Brobecker <brobecker@gnat.com>
10122
10123 * infrun.c (observer.h): Add #include.
10124 (normal_stop): Add call to observer_notify_normal_stop.
10125 * Makefile.in (infrun.o): Add dependency on observer.h.
10126
10127 2003-03-18 J. Brobecker <brobecker@gnat.com>
10128
10129 Continuing work to convert the hppa targets to multiarch partial.
10130 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10131 parameter. Reformat comment.
10132 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10133 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10134 to match new profile.
10135
10136 2003-03-18 J. Brobecker <brobecker@gnat.com>
10137
10138 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10139 appear to be working in any case.
10140
10141 2003-03-18 J. Brobecker <brobecker@gnat.com>
10142
10143 * observer.c (observer_test_first_observer): New static variable.
10144 (observer_test_second_observer): Likewise.
10145 (observer_test_third_observer): Likewise.
10146 (observer_test_first_notification_function): New static function.
10147 (observer_test_second_notification_function): Likewise.
10148 (observer_test_third_notification_function): Likewise.
10149
10150 2003-03-17 J. Brobecker <brobecker@gnat.com>
10151
10152 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10153 * somsolib.c (gdb_assert.h): Likewise.
10154 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10155 (somsolib.o): Likewise.
10156
10157 2003-03-17 Andrew Cagney <cagney@redhat.com>
10158
10159 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10160 BFD. Simplify setting of di.endian.
10161
10162 2003-03-17 Andrew Cagney <cagney@redhat.com>
10163
10164 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10165 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10166
10167 From Elena Zannoni <ezannoni@redhat.com>
10168 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10169 vector and floating-point parameters.
10170 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10171 convention.
10172 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10173
10174 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10175
10176 * MAINTAINERS: Remove my name from several maintainership roles.
10177
10178 2003-03-17 Andrew Cagney <cagney@redhat.com>
10179
10180 Fix frame off-by-one bug.
10181 * frame-unwind.h (frame_this_id_ftype): Replace
10182 frame_unwind_id_ftype.
10183 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10184 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10185 with "prev_register".
10186 * frame-unwind.c (frame_unwind_find_by_pc): Return
10187 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10188 comment.
10189 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10190 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10191 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10192 (dummy_frame_unwind): Update.
10193 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10194 sentinel_frame_register_unwind.
10195 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10196 (sentinel_frame_unwinder): Update.
10197 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10198 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10199 * frame.c (create_sentinel_frame): Update. Initialize
10200 "prologue_cache" instead of "unwind_cache".
10201 (frame_register_unwind): Call this frame's prev_register with the
10202 next frame and this frame's prologue cache.
10203 (get_prev_frame): Simplify. Always call prev frame's this_id with
10204 this frame and prev frame's prologue cache. Document that this
10205 call is shifted one to the left when compared to the
10206 frame_register_unwind call.
10207 (legacy_saved_regs_prev_register): Replace
10208 frame_saved_regs_register_unwind.
10209 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10210 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10211 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10212 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10213 (d10v_frame_unwind): Update.
10214 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10215 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10216 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10217 "saved_regs" with "this_saved_regs".
10218
10219 2003-03-16 Andrew Cagney <cagney@redhat.com>
10220
10221 * frame.c (frame_pop): Don't call target_store_registers. Fix
10222 problem reported by Mark Kettenis.
10223
10224 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10225
10226 * i386-tdep.c (i386_register_type): Renamed from
10227 i386_register_virtual_type. Adjust function signature.
10228 (i386_gdbarch_init): Set register_type instead of
10229 deprecated_max_register_raw_size,
10230 deprecated_max_register_virtual_size and register_virtual_type.
10231
10232 2003-03-14 Andrew Cagney <cagney@redhat.com>
10233
10234 * frame.c (get_prev_frame): When a legacy frame, always call
10235 legacy_get_prev_frame. Simplify unwind code using assumption that
10236 the unwinder is new.
10237 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10238 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10239 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10240
10241 2003-03-14 Andrew Cagney <cagney@redhat.com>
10242
10243 * frame.c (get_saved_register): Delete function.
10244 * frame.h (get_saved_register): Delete declaration.
10245 * xstormy16-tdep.c: Update comment.
10246 * regcache.h: Update comments.
10247 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10248 get_saved_register and extract_address, use
10249 frame_read_unsigned_register.
10250 (sparc_frame_saved_pc): Ditto.
10251 (sparc_get_saved_register): Instead of get_saved_register, use
10252 frame_register.
10253 (sparc_pop_frame): Ditto.
10254 * findvar.c: Update comments.
10255 (value_of_register): Call frame_register instead of
10256 get_saved_register.
10257 (value_from_register): Ditto.
10258 * config/sparc/tm-sparc.h: Update comment.
10259 * breakpoint.c: Update comment.
10260
10261 2003-03-14 Andrew Cagney <cagney@redhat.com>
10262
10263 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10264 GET_SAVED_REGISTER.
10265 * gdbarch.h, gdbarch.c: Re-generate.
10266 * frame.h: Update comments.
10267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10268 * x86-64-tdep.c (x86_64_init_abi): Update.
10269 * sparc-tdep.c (sparc_gdbarch_init): Update.
10270 * sh-tdep.c (sh_gdbarch_init): Update.
10271 * mips-tdep.c (mips_gdbarch_init): Update.
10272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10273 * cris-tdep.c (cris_gdbarch_init): Update.
10274 * ia64-tdep.c (ia64_gdbarch_init): Update.
10275 * frame.c (frame_register): Update.
10276 (get_saved_register): Update.
10277 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10278
10279 2003-03-13 Andrew Cagney <cagney@redhat.com>
10280
10281 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10282 * gdbarch.h, gdbarch.c: Regenerate.
10283 * valops.c (hand_function_call): Update comment.
10284 * stack.c (return_command): Update comment.
10285 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10286 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10288 * x86-64-tdep.c (x86_64_init_abi): Update.
10289 * vax-tdep.c (vax_gdbarch_init): Update.
10290 * v850-tdep.c (v850_gdbarch_init): Update.
10291 * sparc-tdep.c (sparc_gdbarch_init): Update.
10292 * sh-tdep.c (sh_gdbarch_init): Update.
10293 * s390-tdep.c (s390_gdbarch_init): Update.
10294 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10296 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10297 * mips-tdep.c (mips_gdbarch_init): Update.
10298 * mcore-tdep.c (mcore_gdbarch_init): Update.
10299 * m68k-tdep.c (m68k_gdbarch_init): Update.
10300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10301 * ia64-tdep.c (ia64_gdbarch_init): Update.
10302 * i386-tdep.c (i386_gdbarch_init): Update.
10303 * hppa-tdep.c (hppa_gdbarch_init): Update.
10304 * h8300-tdep.c (h8300_gdbarch_init): Update.
10305 * frv-tdep.c (frv_gdbarch_init): Update.
10306 * cris-tdep.c (cris_gdbarch_init): Update.
10307 * avr-tdep.c (avr_gdbarch_init): Update.
10308 * arm-tdep.c (arm_gdbarch_init): Update.
10309 * alpha-tdep.c (alpha_gdbarch_init): Update.
10310
10311 2003-03-13 Andrew Cagney <cagney@redhat.com>
10312
10313 * frame.c (legacy_frame_p): New function.
10314 (get_prev_frame): Use legacy_frame_p.
10315 * frame.h (legacy_frame_p): Declare.
10316
10317 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10318
10319 * MAINTAINERS (write after approval): Alphabetically
10320 listing corrected.
10321
10322 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10323
10324 * MAINTAINERS (write after approval): Add myself.
10325
10326 2003-03-12 Andrew Cagney <cagney@redhat.com>
10327
10328 * frame.c (get_prev_frame): Rename the frame parameter to
10329 "this_frame".
10330 (get_next_frame, legacy_get_prev_frame): Ditto.
10331
10332 2003-03-12 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.c (get_current_frame): Check target_has_registers before
10335 checking target_has_stack.
10336 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10337 instead of deprecated_selected_frame.
10338 * findvar.c (value_of_register): Pass "frame", not
10339 deprecated_selected_frame, to value_of_builtin_reg.
10340
10341 2003-03-12 Andrew Cagney <cagney@redhat.com>
10342
10343 * regcache.c (regcache_cooked_write_signed): New function.
10344 (regcache_cooked_write_unsigned): New function.
10345 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10346 (regcache_cooked_read_signed): Fix regnum in range assertion.
10347 * regcache.h (regcache_cooked_write_signed): Declare.
10348 (regcache_cooked_write_unsigned): Declare.
10349
10350 2003-03-12 Andrew Cagney <cagney@redhat.com>
10351
10352 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10353 * gdbarch.h, gdbarch.c: Re-generate.
10354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10355 * x86-64-tdep.h: Update.
10356 * x86-64-tdep.c (x86_64_init_abi): Update.
10357 * v850-tdep.c (v850_gdbarch_init): Update.
10358 * sparc-tdep.c (sparc_gdbarch_init): Update.
10359 * sh-tdep.c (sh_gdbarch_init): Update.
10360 * s390-tdep.c (s390_gdbarch_init): Update.
10361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10362 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10363 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10365 * mips-tdep.c (mips_gdbarch_init): Update.
10366 * mcore-tdep.c (mcore_gdbarch_init): Update.
10367 * m68k-tdep.c (m68k_gdbarch_init): Update.
10368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10369 * ia64-tdep.c (ia64_gdbarch_init): Update.
10370 * i386-tdep.c (i386_gdbarch_init): Update.
10371 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10372 * hppa-tdep.c (hppa_gdbarch_init): Update.
10373 * h8300-tdep.c (h8300_gdbarch_init): Update.
10374 * frv-tdep.c (frv_gdbarch_init): Update.
10375 * cris-tdep.c (cris_gdbarch_init): Update.
10376 * avr-tdep.c (avr_gdbarch_init): Update.
10377 * arm-tdep.c (arm_gdbarch_init): Update.
10378 * alpha-tdep.c (alpha_gdbarch_init): Update.
10379 * sh-tdep.c (sh_init_extra_frame_info): Update.
10380 (sh64_init_extra_frame_info): Update.
10381 * ns32knbsd-nat.c (frame_num_args): Update.
10382 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10383 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10384 (xstormy16_frame_chain_valid): Update.
10385 * vax-tdep.c (vax_saved_pc_after_call): Update.
10386 * v850-tdep.c (v850_frame_chain): Update.
10387 (v850_pop_frame): Update.
10388 (v850_init_extra_frame_info): Update.
10389 * sparc-tdep.c (setup_arbitrary_frame): Update.
10390 * ns32k-tdep.c (umax_frame_num_args): Update.
10391 * s390-tdep.c (s390_pop_frame_regular): Update.
10392 * mn10300-tdep.c (mn10300_frame_chain): Update.
10393 (mn10300_pop_frame_regular): Update.
10394 (mn10300_init_extra_frame_info): Update.
10395 * mips-tdep.c (mips_init_frame_pc_first): Update.
10396 (mips_frame_chain): Update.
10397 (mips_pop_frame): Update.
10398 * mcore-tdep.c (mcore_frame_chain): Update.
10399 (mcore_pop_frame): Update.
10400 (mcore_init_extra_frame_info): Update.
10401 * arch-utils.c (init_frame_pc_default): Update.
10402 * m68k-tdep.c (isi_frame_num_args): Update.
10403 (delta68_frame_num_args): Update.
10404 (news_frame_num_args): Update.
10405 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10406 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10407 (alpha_frame_chain): Update.
10408 (alpha_pop_frame): Update.
10409 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10410 (hppa_init_extra_frame_info): Update.
10411 (hppa_frame_chain): Update.
10412 (hppa_frame_chain_valid): Update.
10413 * cris-tdep.c (cris_init_extra_frame_info): Update.
10414 * avr-tdep.c (avr_init_extra_frame_info): Update.
10415 * arm-tdep.c (arm_frame_chain_valid): Update.
10416 (arm_init_extra_frame_info): Update.
10417 (arm_pop_frame): Update.
10418 * frame.c (frame_pc_unwind): Update.
10419 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10420 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10421 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10422 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10423 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10424 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10425
10426 2003-03-12 Andrew Cagney <cagney@redhat.com>
10427
10428 Eliminate the need for POP_FRAME.
10429 * frame.c (do_frame_unwind_register): New function.
10430 (frame_pop): When no POP_FRAME, pop the frame using register
10431 unwind and a scratch regcache.
10432 (frame_saved_regs_pop): Delete function.
10433 (trad_frame_unwinder): Update.
10434 * d10v-tdep.c (d10v_frame_pop): Delete function.
10435 (d10v_frame_unwind): Update.
10436 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10437 (sentinel_frame_unwinder): Update.
10438 * dummy-frame.c (dummy_frame_pop): Delete function.
10439 (dummy_frame_unwind): Update.
10440 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10441 (struct frame_unwind): Update.
10442
10443 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10444
10445 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10446 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10447 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10448 Do range checks on register number obtained from debugging info.
10449 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10450 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10451 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10452 mapping function.
10453 (do_fp_register_row): Fix typo which caused double type to be
10454 used when attempting to unpack a float.
10455
10456 2003-03-11 J. Brobecker <brobecker@gnat.com>
10457
10458 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10459
10460 2003-03-11 Andrew Cagney <cagney@redhat.com>
10461
10462 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10463 frame. Problem found by Corinna Vinschen.
10464
10465 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10466
10467 * doublest.c (floatformat_from_length): Accept also
10468 the real size of 'long double' type.
10469
10470 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10471
10472 From Klee Dienes <kdienes@apple.com>:
10473 * breakpoint.c (bpstat_copy): Copy the command lines as well
10474 as the old value, to match what is freed in bpstat_clear.
10475
10476 2003-03-10 David Carlton <carlton@math.stanford.edu>
10477
10478 * minsyms.c (add_minsym_to_hash_table): Replace
10479 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10480 (compare_minimal_symbols, compact_minimal_symbols)
10481 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10482 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10483 of DEPRECATED_SYMBOL_MATCHES_NAME.
10484 (lookup_minimal_symbol_solib_trampoline): Ditto.
10485
10486 2003-03-10 Andrew Cagney <cagney@redhat.com>
10487
10488 * regcache.h (regcache_cooked_read_ftype): Define.
10489 (regcache_save, regcache_restore): Add a cooked_read parameter.
10490 * regcache.c (regcache_save, regcache_restore): Update.
10491 (do_cooked_read): New function.
10492 (regcache_cpy): Pass do_cooked_read to regcache_save and
10493 regcache_restore.
10494
10495 2003-03-10 Andrew Cagney <cagney@redhat.com>
10496
10497 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10498 * gdbarch.h, gdbarch.c: Re-generate.
10499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10500 * x86-64-tdep.h: Update.
10501 * x86-64-tdep.c (x86_64_init_abi): Update.
10502 * v850-tdep.c (v850_gdbarch_init): Update.
10503 * sparc-tdep.c (sparc_gdbarch_init): Update.
10504 * sh-tdep.c (sh_gdbarch_init): Update.
10505 * s390-tdep.c (s390_gdbarch_init): Update.
10506 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10507 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10510 * mips-tdep.c (mips_gdbarch_init): Update.
10511 * mcore-tdep.c (mcore_gdbarch_init): Update.
10512 * m68k-tdep.c (m68k_gdbarch_init): Update.
10513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10514 * ia64-tdep.c (ia64_gdbarch_init): Update.
10515 * i386-tdep.c (i386_gdbarch_init): Update.
10516 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10517 * hppa-tdep.c (hppa_gdbarch_init): Update.
10518 * h8300-tdep.c (h8300_gdbarch_init): Update.
10519 * frv-tdep.c (frv_gdbarch_init): Update.
10520 * cris-tdep.c (cris_gdbarch_init): Update.
10521 * avr-tdep.c (avr_gdbarch_init): Update.
10522 * arm-tdep.c (arm_gdbarch_init): Update.
10523 * alpha-tdep.c (alpha_gdbarch_init): Update.
10524 * sh-tdep.c (sh_init_extra_frame_info): Update.
10525 (sh64_init_extra_frame_info): Update.
10526 * ns32knbsd-nat.c (frame_num_args): Update.
10527 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10528 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10529 (xstormy16_frame_chain_valid): Update.
10530 * vax-tdep.c (vax_saved_pc_after_call): Update.
10531 * v850-tdep.c (v850_frame_chain): Update.
10532 (v850_pop_frame): Update.
10533 (v850_init_extra_frame_info): Update.
10534 * sparc-tdep.c (setup_arbitrary_frame): Update.
10535 * ns32k-tdep.c (umax_frame_num_args): Update.
10536 * s390-tdep.c (s390_pop_frame_regular): Update.
10537 * mn10300-tdep.c (mn10300_frame_chain): Update.
10538 (mn10300_pop_frame_regular): Update.
10539 (mn10300_init_extra_frame_info): Update.
10540 * mips-tdep.c (mips_init_frame_pc_first): Update.
10541 (mips_frame_chain): Update.
10542 (mips_pop_frame): Update.
10543 * mcore-tdep.c (mcore_frame_chain): Update.
10544 (mcore_pop_frame): Update.
10545 (mcore_init_extra_frame_info): Update.
10546 * arch-utils.c (init_frame_pc_default): Update.
10547 * m68k-tdep.c (isi_frame_num_args): Update.
10548 (delta68_frame_num_args): Update.
10549 (news_frame_num_args): Update.
10550 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10551 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10552 (alpha_frame_chain): Update.
10553 (alpha_pop_frame): Update.
10554 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10555 (hppa_init_extra_frame_info): Update.
10556 (hppa_frame_chain): Update.
10557 (hppa_frame_chain_valid): Update.
10558 * cris-tdep.c (cris_init_extra_frame_info): Update.
10559 * avr-tdep.c (avr_init_extra_frame_info): Update.
10560 * arm-tdep.c (arm_frame_chain_valid): Update.
10561 (arm_init_extra_frame_info): Update.
10562 (arm_pop_frame): Update.
10563 * frame.c (frame_pc_unwind): Update.
10564 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10565 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10566 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10567 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10568 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10569 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10570
10571 2003-03-10 Andrew Cagney <cagney@redhat.com>
10572
10573 * gdbarch.sh (gdbarch_unwind_pc): New method.
10574 * gdbarch.h, gdbarch.c: Regenerate.
10575 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10576 but use read_pc and FRAME_SAVED_PC as fall backs.
10577 (frame_saved_regs_pc_unwind): Delete function.
10578 (trad_frame_unwinder): Update.
10579 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10580 (struct frame_unwind): Update.
10581 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10582 (dummy_frame_unwind): Update.
10583 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10584 (sentinel_frame_unwinder): Update.
10585 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10586 (d10v_frame_unwind): Update.
10587 (d10v_unwind_pc): New function.
10588 (d10v_gdbarch_init): Set unwind_pc.
10589
10590 2003-03-10 Andrew Cagney <cagney@redhat.com>
10591
10592 * gdbarch.h: Re-generate.
10593
10594 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10595 PC.
10596 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10597 the PC register.
10598
10599 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10600
10601 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10602
10603 2003-03-08 Andrew Cagney <cagney@redhat.com>
10604
10605 * cli-out.c: Update copyright.
10606 (cli_out_data): Define typedef. Use instead of ui_out_data.
10607
10608 2003-03-08 Andrew Cagney <cagney@redhat.com>
10609
10610 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10611 the result.
10612
10613 2003-03-07 Andrew Cagney <cagney@redhat.com>
10614
10615 * gdbarch.sh: Don't generate two macro definitions when an
10616 undefined macro taking no arguments.
10617 * gdbarch.h: Regenerate.
10618
10619 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10620
10621 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10622 (x86_64_unwind_dummy_id): New functions.
10623 (x86_64_init_abi): Register these two new functions.
10624
10625 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10626
10627 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10628 (x86_64_skip_prologue): Move prologue detection to
10629 separate function.
10630 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10631
10632 2003-03-05 Andrew Cagney <cagney@redhat.com>
10633
10634 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10635 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10636 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10637 to use unwind_dummy_id when a dummy frame.
10638 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10639 predicate.
10640 * gdbarch.h, gdbarch.c: Regneerate.
10641
10642 2003-03-05 Andrew Cagney <cagney@redhat.com>
10643
10644 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10645 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10646 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10647 values.
10648
10649 2003-03-05 Andrew Cagney <cagney@redhat.com>
10650
10651 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10652 (struct d10v_unwind_cache): Delete field "frameless". Replace
10653 "next_addr" with "sp_offset". Add "r11_offset".
10654 (d10v_frame_unwind_cache): Update.
10655 (prologue_find_regs): Update. When "mv r11, sp", save the
10656 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10657 RN was saved in r11_offset.
10658
10659 2003-03-05 Andrew Cagney <cagney@redhat.com>
10660
10661 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10662 cached PC value in the next frame.
10663
10664 2003-03-05 Andrew Cagney <cagney@redhat.com>
10665
10666 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10667 "id_unwind_cache" with "id".
10668 (frame_id_unwind): Delete declaration.
10669 * frame.c (frame_id_unwind): Delete function.
10670 (get_prev_frame): Call the frame id unwind method directly. Store
10671 the returned next frame's ID value in NEXT_FRAME. Note that there
10672 is a problem with the wrong unwind ID being called with the wrong
10673 unwind cache.
10674
10675 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10676
10677 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10678
10679 2003-03-05 James Ingham <jingham@apple.com>
10680 Daniel Jacobowitz <drow@mvista.com>
10681
10682 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10683 (auto_cp_abi): New variable.
10684 (current_cp_abi, num_cp_abis): Make static.
10685 (CP_ABI_MAX): Define.
10686 (cp_abis): Turn into an array.
10687 (value_virtual_fn_field): Fix formatting.
10688 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10689 takes a pointer.
10690 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10691 (list_cp_abis, _initialize_cp_abi): New functions.
10692 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10693 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10694 switch_to_cp_abi. Update prototype for register_cp_abi.
10695 * Makefile.in (cp-abi.o): Update dependencies.
10696 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10697 instead of switch_to_cp_abi.
10698 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10699 register_cp_abi.
10700 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10701 register_cp_abi.
10702 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10703
10704 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10705
10706 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10707 * dwarf2loc.c: Include "regcache.h".
10708 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10709 register_size.
10710 * Makefile.in (dwarf2loc.o): Update dependencies.
10711
10712 2003-03-04 Theodore A. Roth <troth@openavr.org>
10713
10714 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10715 number of io registers reported by remote target is not a multiple of
10716 step.
10717
10718 2003-03-04 David Carlton <carlton@math.stanford.edu>
10719
10720 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10721 (lookup_symbol_aux_psymtabs): Update call to
10722 lookup_partial_symbol.
10723 (lookup_transparent_type, find_main_psymtab)
10724 (make_symbol_overload_list): Ditto.
10725
10726 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10727
10728 * MAINTAINERS (Write after approval): Update my email address.
10729
10730 2003-03-03 Andrew Cagney <cagney@redhat.com>
10731
10732 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10733 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10734 predicate. Replace MAX_REGISTER_RAW_SIZE.
10735 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10736 MAX_REGISTER_VIRTUAL_SIZE.
10737 * regcache.c (legacy_max_register_raw_size): New function.
10738 (legacy_max_register_virtual_size): New function.
10739 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10740 (MAX_REGISTER_RAW_SIZE): Define.
10741 (legacy_max_register_raw_size): Declare.
10742 (legacy_max_register_virtual_size): Declare.
10743 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10744 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10745 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10746 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10747 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10748 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10749 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10750 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10751 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10752 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10753 * vax-tdep.c (vax_gdbarch_init): Update.
10754 * v850-tdep.c (v850_gdbarch_init): Update.
10755 * sparc-tdep.c (sparc_gdbarch_init): Update.
10756 * sh-tdep.c (sh_gdbarch_init): Update.
10757 * s390-tdep.c (s390_gdbarch_init): Update.
10758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10759 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10760 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10761 * mips-tdep.c (mips_gdbarch_init): Update.
10762 * mcore-tdep.c (mcore_gdbarch_init): Update.
10763 * m68k-tdep.c (m68k_gdbarch_init): Update.
10764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10765 * ia64-tdep.c (ia64_gdbarch_init): Update.
10766 * i386-tdep.c (i386_gdbarch_init): Update.
10767 * hppa-tdep.c (hppa_gdbarch_init): Update.
10768 * h8300-tdep.c (h8300_gdbarch_init): Update.
10769 * frv-tdep.c (frv_gdbarch_init): Update.
10770 * cris-tdep.c (cris_gdbarch_init): Update.
10771 * avr-tdep.c (avr_gdbarch_init): Update.
10772 * arm-tdep.c (arm_gdbarch_init): Update.
10773 * alpha-tdep.c (alpha_gdbarch_init): Update.
10774 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10775 max_register_raw_size or max_register_virtual_size.
10776
10777 2003-03-03 David Carlton <carlton@math.stanford.edu>
10778
10779 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10780 SYMBOL_MATCHES_NAME, add comment.
10781 (SYMBOL_MATCHES_NATURAL_NAME): New.
10782 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10783 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10784 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10785 * symtab.c (lookup_partial_symbol): Use
10786 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10787 unhelpful comment.
10788 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10789 SYMBOL_MATCHES_NAME.
10790 Fix for PR c++/33.
10791
10792 2003-03-03 David Carlton <carlton@math.stanford.edu>
10793
10794 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10795 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10796 by regexp matching against SYMBOL_NATURAL_NAME.
10797
10798 2003-03-03 David Carlton <carlton@math.stanford.edu>
10799
10800 * linespec.c (find_method): Extract code into collect_methods.
10801 (collect_methods): New.
10802
10803 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10804
10805 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10806 get_frame_base.
10807
10808 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10809 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10810
10811 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10812
10813 * arch-utils.c (generic_register_byte): Fix to use the loop index
10814 and not regnum when summing the size of all registers up to regnum.
10815
10816 2003-03-01 Andrew Cagney <cagney@redhat.com>
10817
10818 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10819 FRAME_INIT_SAVED_REGS.
10820 * gdbarch.h, gdbarch.c: Regenerate.
10821 * stack.c (frame_info): Update.
10822 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10823 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10824 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10825 * ns32k-tdep.c (ns32k_pop_frame): Update.
10826 * mips-tdep.c (mips_pop_frame): Update.
10827 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10828 * ia64-tdep.c (ia64_frame_chain): Update.
10829 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10830 (ia64_frameless_function_invocation): Update.
10831 (ia64_init_extra_frame_info): Update.
10832 (ia64_pop_frame_regular): Update.
10833 * frame.h (struct frame_info): Update comment.
10834 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10835 * frame.c (frame_saved_regs_register_unwind): Update.
10836 (frame_saved_regs_register_unwind): Update.
10837 (deprecated_generic_get_saved_register): Update.
10838 * cris-tdep.c: Update comment.
10839 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10840 Rename macro.
10841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10842 * x86-64-tdep.c (x86_64_init_abi): Update.
10843 * vax-tdep.c (vax_gdbarch_init): Update.
10844 * v850-tdep.c (v850_gdbarch_init): Update.
10845 * sparc-tdep.c (sparc_gdbarch_init): Update.
10846 * sh-tdep.c (sh_gdbarch_init): Update.
10847 * s390-tdep.c (s390_gdbarch_init): Update.
10848 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10849 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10850 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10851 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10852 * mips-tdep.c (mips_gdbarch_init): Update.
10853 * mcore-tdep.c (mcore_gdbarch_init): Update.
10854 * m68k-tdep.c (m68k_gdbarch_init): Update.
10855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10856 * ia64-tdep.c (ia64_gdbarch_init): Update.
10857 * i386-tdep.c (i386_gdbarch_init): Update.
10858 * frv-tdep.c (frv_gdbarch_init): Update.
10859 * avr-tdep.c (avr_gdbarch_init): Update.
10860 * arm-tdep.c (arm_gdbarch_init): Update.
10861 * alpha-tdep.c (alpha_gdbarch_init): Update.
10862
10863 2003-03-01 Andrew Cagney <cagney@redhat.com>
10864
10865 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10866 option enum and switch. When no windows, set the interpreter to
10867 INTERP_CONSOLE.
10868
10869 2003-03-01 Andrew Cagney <cagney@redhat.com>
10870
10871 * main.c (captured_main): Replace magic option characters with an
10872 enum.
10873
10874 2003-03-01 Andrew Cagney <cagney@redhat.com>
10875
10876 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10877 INIT_EXTRA_FRAME_INFO.
10878 * gdbarch.h, gdbarch.c: Regenerate.
10879 * arm-tdep.c: Update comments.
10880 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10881 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10882 * frame.h, avr-tdep.c: Ditto.
10883 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10884 (create_new_frame, legacy_get_prev_frame): Ditto.
10885 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10886 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10888 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10889 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10890 * v850-tdep.c (v850_gdbarch_init): Ditto.
10891 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10892 * sh-tdep.c (sh_gdbarch_init): Ditto.
10893 * s390-tdep.c (s390_gdbarch_init): Ditto.
10894 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10895 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10896 * mips-tdep.c (mips_gdbarch_init): Ditto.
10897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10898 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10899 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10900 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10901 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10902 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10903 * frv-tdep.c (frv_gdbarch_init): Ditto.
10904 * cris-tdep.c (cris_gdbarch_init): Ditto.
10905 * avr-tdep.c (avr_gdbarch_init): Ditto.
10906 * arm-tdep.c (arm_gdbarch_init): Ditto.
10907 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10908 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10909
10910 2003-03-01 Andrew Cagney <cagney@redhat.com>
10911
10912 * gdbarch.sh (register_type): New function with predicate.
10913 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10914 * gdbarch.h, gdbarch.c: Re-generate.
10915 * arch-utils.c (generic_register_byte): Use generic_register_size.
10916 (generic_register_size): When available, use
10917 gdbarch_register_type.
10918 * regcache.c (init_regcache_descr): When available, initialize the
10919 register type array using gdbarch_register_type. If the
10920 architecture supplies gdbarch_register_type, do not use the legacy
10921 regcache layout.
10922 * d10v-tdep.c (d10v_register_type): Replace
10923 d10v_register_virtual_type.
10924 (d10v_gdbarch_init): Set register_type instead of
10925 register_virtual_type.
10926
10927 2003-03-01 Andrew Cagney <cagney@redhat.com>
10928
10929 * Makefile.in (ax-gdb.o): Update dependencies.
10930 * ax-gdb.c: Include "regcache.h".
10931 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10932 * findvar.c (value_of_register): Ditto.
10933 * infcmd.c (default_print_registers_info): Ditto.
10934
10935 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10936
10937 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10938 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10939
10940 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10941
10942 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10943 of STREQ.
10944
10945 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10946
10947 * Makefile.in (dwarf2loc.o): Update dependencies.
10948 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10949 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10950 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10951 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10952 (locexpr_tracepoint_var_ref): New function.
10953 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10954
10955 2003-02-28 Andrew Cagney <cagney@redhat.com>
10956
10957 * regcache.c (register_size): New function.
10958 * regcache.h (register_size): Declare
10959 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10960 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10961
10962 2003-02-28 David Carlton <carlton@math.stanford.edu>
10963
10964 * linespec.c (decode_compound): Extract code into find_method.
10965 (find_method): New.
10966
10967 2003-02-28 J. Brobecker <brobecker@gnat.com>
10968
10969 * Makefile.in: Add rules to build and link in observer.o.
10970
10971 2003-02-27 J. Brobecker <brobecker@gnat.com>
10972
10973 * observer.c: Minor comments edits.
10974
10975 2003-02-27 J. Brobecker <brobecker@gnat.com>
10976
10977 * observer.h, observer.c: New file.
10978
10979 2003-02-27 Andrew Cagney <cagney@redhat.com>
10980
10981 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10982
10983 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10984
10985 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10986 (M6812_OP_STS_EXT): Likewise.
10987 (m6811_prologue): Use the above to recognize prologue.
10988 (m6812_prologue): Likewise.
10989
10990 2003-02-27 David Carlton <carlton@math.stanford.edu>
10991
10992 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10993 SYMBOL_PRINT_NAME.
10994 (compare_psymbols): Ditto.
10995 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10996
10997 2003-02-27 Michael Snyder <msnyder@redhat.com>
10998
10999 * f-lang.c (build_fortran_types): New function.
11000 (_initialize_f_language): Gdbarch-register built-in fortran types.
11001 * doublest.c (extract_floating): Fix warning text.
11002
11003 2003-02-27 Andrew Cagney <cagney@redhat.com>
11004
11005 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
11006 predicate. Replaces PUSH_DUMMY_FRAME.
11007 * gdbarch.h, gdbarch.c: Regnerate.
11008 * valops.c (hand_function_call): Update. Call
11009 generic_push_dummy_frame directly.
11010 * vax-tdep.c (vax_gdbarch_init): Update.
11011 * sparc-tdep.c (sparc_gdbarch_init): Update.
11012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11013 * m68k-tdep.c (m68k_gdbarch_init): Update.
11014 * hppa-tdep.c (hppa_gdbarch_init): Update.
11015 * alpha-tdep.c (alpha_gdbarch_init): Update.
11016 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11017 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
11018 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
11019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
11020 push_dummy_frame to generic_push_dummy_frame.
11021 * v850-tdep.c (v850_gdbarch_init): Ditto.
11022 * sh-tdep.c (sh_gdbarch_init): Ditto.
11023 * s390-tdep.c (s390_gdbarch_init): Ditto.
11024 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11026 * mips-tdep.c (mips_gdbarch_init): Ditto.
11027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11030 * i386-tdep.c (i386_gdbarch_init): Ditto.
11031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11032 * frv-tdep.c (frv_gdbarch_init): Ditto.
11033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11034 * cris-tdep.c (cris_gdbarch_init): Ditto.
11035 * avr-tdep.c (avr_gdbarch_init): Ditto.
11036 * arm-tdep.c (arm_gdbarch_init): Ditto.
11037
11038 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11039
11040 * mips-tdep.c (show_mips_abi): New function.
11041 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11042 command ``show mips abi''.
11043
11044 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11045
11046 From Elena Zannoni <ezannoni@redhat.com>
11047 * dbxread.c (process_one_symbol): Only record line 0 if one or
11048 more sline entries have been seen for the function.
11049
11050 2003-02-26 Michael Chastain <mec@shout.net>
11051
11052 * configure: Regenerate with autoconf 000227.
11053
11054 2003-02-26 Michael Chastain <mec@shout.net>
11055
11056 Close PR build/660.
11057 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11058 for old libc5/glibc.
11059 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11060
11061 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11062
11063 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11064 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11065
11066 2003-02-26 Michael Chastain <mec@shout.net>
11067
11068 * configure.in: New variable HAVE_UINTPTR_T.
11069 * configure, config.in: Regenerated.
11070
11071 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11072
11073 Fix PR build/1097.
11074 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11075
11076 2003-02-25 Andrew Cagney <cagney@redhat.com>
11077
11078 * frame.c (get_prev_frame): Add comment on check for
11079 inside_entry_func. Only check for inside_entry_file when not a
11080 dummy and not a sentinel. Check that the new frame is not inner
11081 to the old frame.
11082
11083 2003-02-25 Andrew Cagney <cagney@redhat.com>
11084
11085 * frame.c (frame_debug): New variable.
11086 (_initialize_frame): Add "set/show debug frame" command.
11087 (get_prev_frame): When frame_debug, print reason why unwind
11088 failed.
11089
11090 2003-02-25 Michael Chastain <mec@shout.net>
11091
11092 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11093 to avoid uintptr_t definition problems.
11094
11095 2003-02-25 David Carlton <carlton@math.stanford.edu>
11096
11097 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11098 (SYMBOL_LINKAGE_NAME): Ditto.
11099 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11100 SYMBOL_LINKAGE_NAME.
11101 (struct general_symbol_info): Expand comment.
11102 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11103 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11104 (SYMBOL_MATCHES_REGEXP): Ditto.
11105 * symtab.c (symbol_natural_name): New function.
11106 * objfiles.h: Replace all uses of SYMBOL_NAME by
11107 DEPRECATED_SYMBOL_NAME.
11108 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11109 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11110 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11111 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11112 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11113 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11114 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11115 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11116 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11117 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11118 * ada-exp.y: Ditto.
11119 * ada-exp.y: Update copyright.
11120 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11121 * cp-valprint.c: Ditto.
11122
11123 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11124
11125 * infptrace.c (detach): Do not flag error if ptrace detach fails
11126 and errno is set to ESRCH.
11127
11128 2003-02-24 Andrew Cagney <cagney@redhat.com>
11129
11130 * infptrace.c (udot_info): Change type of udot_off to long. Use
11131 paddr when printing udot_off's value.
11132
11133 2003-02-24 David Carlton <carlton@math.stanford.edu>
11134
11135 * symtab.c (make_symbol_overload_list): Only read in partial
11136 symtabs containing a matching partial symbol.
11137
11138 2003-02-24 David Carlton <carlton@math.stanford.edu>
11139
11140 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11141 do the comparison, not strcmp.
11142 * symfile.c (compare_psymbols): Ditto.
11143 * defs.h: Declare strcmp_iw_ordered.
11144 * utils.c (strcmp_iw_ordered): New function.
11145
11146 2003-02-24 Jim Blandy <jimb@redhat.com>
11147
11148 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11149 support, shared libs): Remove my name from here, to better reflect
11150 reality.
11151
11152 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11153
11154 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11155 (target_ops): Add to_have_continuable_watchpoint.
11156 * target.c (update_current_target): Add INHERIT line for
11157 to_have_continuable_watchpoint.
11158 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11159 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11160 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11161 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11162
11163 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11164
11165 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11166 maintainership.
11167
11168 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11169
11170 * solib.c (solib_open): Call target defined search function after
11171 failing with solib-search-path.
11172 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11173 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11174
11175 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11176
11177 * MAINTAINERS: Add myself to Write After section.
11178
11179 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11180
11181 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11182
11183 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11184
11185 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11186 (m68hc11_add_reggroups): New function.
11187 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11188 (m68hc11_gdbarch_init): Install the reggroups.
11189 (_initialize_m68hc11_tdep): Initialize them.
11190
11191 2003-02-21 James E Wilson <wilson@tuliptree.org>
11192
11193 * MAINTAINERS: Update my email address.
11194
11195 2003-02-21 David Carlton <carlton@math.stanford.edu>
11196
11197 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11198
11199 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11200
11201 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11202 * symtab.h: Add opaque declarations of struct axs_value and
11203 struct agent_expr.
11204 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11205 (struct location_funcs): New type.
11206 (struct symbol): Add "loc" to aux_value.
11207 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11208 * dwarf2read.c: Include "dwarf2expr.h".
11209 (dwarf2_symbol_mark_computed): New function.
11210 (read_func_scope): Use it.
11211 (var_decode_location): New function.
11212 (new_symbol): Use it.
11213 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11214
11215 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11216 (dwarf2expr_h, dwarf2loc_h): New variables.
11217 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11218 (dwarf2expr.o, dwarf2loc.o): New rules.
11219 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11220 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11221 LOC_COMPUTED_ARG.
11222 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11223 * m2-exp.y (yylex): Likewise.
11224 * printcmd.c (address_info, print_frame_args): Likewise.
11225 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11226 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11227 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11228 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11229 * symtab.c (lookup_block_symbol): Likewise.
11230
11231 2003-02-20 Adam Fedor <fedor@gnu.org>
11232
11233 * symtab.h: Remove objc_specific struct
11234 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11235 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11236 Have language_objc use cplus_specific struct.
11237
11238 2003-02-20 Tom Tromey <tromey@redhat.com>
11239
11240 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11241 TYPE_NAME, when printing a String value. PR java/1075.
11242
11243 2003-02-20 Adam Fedor <fedor@gnu.org>
11244
11245 * objc-lang.h (find_methods): Remove declaration.
11246 * objc-lang.c (find_methods): Make static.
11247
11248 2003-02-20 Christopher Faylor <cgf@redhat.com>
11249
11250 * win32-nat.c (get_image_name): Check return value from
11251 ReadProcessMemory.
11252 (child_xfer_memory): Ditto.
11253
11254 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11255
11256 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11257 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11258 '${exec_prefix}' (in addition to the expansion thereof) as
11259 relocatable.
11260 * configure: Rebuilt.
11261
11262 2003-02-20 David Carlton <carlton@math.stanford.edu>
11263
11264 * symtab.c (search_symbols): Revert the search_symbols part of my
11265 2002-12-23 patch. Add comment.
11266
11267 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11270 * dbxread.c (elfstab_build_psymtabs): Don't call
11271 install_minimal_symbols.
11272 (stabsect_build_psymtabs): Likewise.
11273 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11274 earlier.
11275 * somread.c (som_symfile_read): Call install_minimal_symbols
11276 and do_cleanups earlier.
11277 * nlmread.c (nlm_symfile_read): Likewise.
11278 * mdebugread.c (elfmdebug_build_psymtabs): Call
11279 install_minimal_symbols and make appropriate cleanups.
11280
11281 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11282
11283 * solib.c (reload_shared_libraries): New function.
11284 (_initialize_solib): Add callbacks for ``set solib-search-path''
11285 and ``set solib-absolute-prefix''.
11286
11287 2003-02-20 David Carlton <carlton@math.stanford.edu>
11288
11289 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11290 expand comment.
11291 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11292 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11293 * ada-typeprint.c (ada_typedef_print): Ditto.
11294 * ax-gdb.c (gen_var_ref): Ditto.
11295 * breakpoint.c (print_one_breakpoint): Ditto.
11296 * buildsym.c (finish_block): Ditto.
11297 * c-valprint.c (c_val_print): Ditto.
11298 * expprint.c (print_subexp): Ditto.
11299 * findvar.c (locate_var_value): Ditto.
11300 * infcmd.c (jump_command): Ditto.
11301 * linespec.c (decode_line_2, decode_compound): Ditto.
11302 * maint.c (maintenance_translate_address): Ditto.
11303 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11304 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11305 Ditto.
11306 * p-valprint.c (pascal_val_print): Ditto.
11307 * stabsread.c (define_symbol): Ditto.
11308 * stack.c (print_frame, frame_info, print_block_frame_locals)
11309 (print_frame_arg_vars, return_command): Ditto.
11310 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11311 * symmisc.c (print_symbol): Ditto.
11312 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11313 (compare_search_syms, print_symbol_info, print_msymbol_info)
11314 (rbreak_command): Ditto.
11315 * tracepoint.c (tracepoints_info): Ditto.
11316 * typeprint.c (typedef_print): Ditto.
11317 * valops.c (value_of_variable, hand_function_call): Ditto.
11318 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11319 * ada-typeprint.c: Update Copyright.
11320 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11321 * tracepoint.c, cli/cli-cmds.c: Ditto.
11322
11323 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11324
11325 * frame.c (generic_unwind_get_saved_register): Make non-static.
11326 * frame.h (generic_unwind_get_saved_register): Declare.
11327 * mips-tdep.c (read_next_frame_reg): Fetch register from
11328 current regcache when frame is NULL.
11329 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11330 that must be NULL.
11331 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11332 instead of frame_register_unwind().
11333
11334 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11335
11336 * remote-sim.c (gdbsim_insert_breakpoint)
11337 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11338 code.
11339
11340 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11341
11342 * remote.c (_initialize_remote): Add commands "set/show remote
11343 hardware-watchpoint-limit" and "set/show remote
11344 hardware-breakpoint-limit".
11345 (remote_hw_watchpoint_limit): Initialize to -1.
11346 (remote_hw_breakpoint_limit): Ditto.
11347 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11348
11349 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11350
11351 * coff-pe-read.c: New file - support reading of minimal symbols from a
11352 portable executable using the export table.
11353 * coff-pe-read.h: New file.
11354 * coffread.c: Include coff-pe-read.h.
11355 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11356 debugging symbols found.
11357 * Makefile.in (SFILES): Add coff-pe-read.o.
11358 (coff_pe_read_h): Define.
11359 (COMMON_OBS): Add coff-pe-read.o.
11360 (coffread.o): Add coff_pe_read_h dependency.
11361 (coff-pe-read.o): New target.
11362
11363 2003-02-19 David Carlton <carlton@math.stanford.edu>
11364
11365 * Makefile.in (SFILES): Add block.c.
11366 (block_h): New.
11367 (COMMON_OBS): Add block.o.
11368 (block.o): New.
11369 (x86-64-tdep.o): Add $(block_h).
11370 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11371 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11372 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11373 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11374 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11375 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11376 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11377 * value.h: Add opaque declaration for struct block.
11378 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11379 * ada-lang.h: Ditto.
11380 * x86-64-tdep.c: #include "block.h"
11381 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11382 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11383 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11384 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11385 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11386 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11387 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11388 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11389 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11390 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11391 * symtab.c (block_function): Ditto.
11392 (contained_in): Ditto.
11393 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11394 block.h. Add opaque declaration for struct block.
11395 * symtab.h: Move block_function and contained_in declarations to
11396 block.h. Add opaque declarations for struct block, struct
11397 blockvector.
11398 (struct block): Move to block.h.
11399 (struct blockvector): Ditto.
11400 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11401 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11402 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11403 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11404 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11405 Ditto.
11406 * block.c: New file.
11407 * block.h: New file.
11408
11409 2003-02-19 Theodore A. Roth <troth@openavr.org>
11410
11411 * avr-tdep.c (avr_extract_return_value): Remove function.
11412 (avr_store_return_value): Remove function.
11413 (avr_extract_struct_value_address): Remove function.
11414 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11415
11416 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11417
11418 * rs6000-tdep.c: Include "gdb_assert.h".
11419 (registers_e500): Add "acc" and "spefscr".
11420 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11421 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11422 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11423 really is "r0".
11424 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11425
11426 2003-02-18 Keith Seitz <keiths@redhat.com>
11427
11428 * Makefile.in: Add gdbtk-interps.c.
11429
11430 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11431
11432 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11433 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11434
11435 2003-02-18 Andrew Cagney <cagney@redhat.com>
11436
11437 * symtab.h (struct objfile): Add opaque declaration.
11438
11439 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11440
11441 From Jim Ingham <jingham@apple.com>:
11442 * dbxread.c (process_one_symbol): Use last_function_start rather
11443 than function_start_offset to find the real beginning of the
11444 current function. The latter is just the text section offset on
11445 some systems, the former is always the real function start.
11446
11447 2003-02-17 Andrew Cagney <cagney@redhat.com>
11448
11449 * configure.in: Revert ${target} != ${host}.
11450
11451 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11452
11453 * configure.in (Makefile): Use the test ${target} != ${host},
11454 instead of the absence of the "nm.h" file, to determine of the
11455 configuration non-native.
11456 * configure: Regenerate.
11457
11458 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11459
11460 From Brian Ford <ford@vss.fsi.com>
11461
11462 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11463 conditionalize tui_active test.
11464 (lookup_cmd_1): Ditto.
11465
11466 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11467
11468 * configure.in: Add check for _etext.
11469 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11470 available.
11471 * config.in, configure: regenerated.
11472
11473 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11474
11475 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11476
11477 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11478
11479 * main.c (tui_version): Delete variable.
11480 (captured_main): When --tui, set interpreter_p to "tui" instead of
11481 enabling tui_version.
11482 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11483 tui_version.
11484 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11485 * cli/cli-cmds.c (disassemble_command): Ditto.
11486 * defs.h (tui_version): Delete declaration.
11487 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11488 (tui-interp.o): Add rules.
11489 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11490
11491 2003-02-14 Christopher Faylor <cgf@redhat.com>
11492
11493 * win32-nat.c (register_loaded_dll): Correctly set address range for
11494 just-loaded dll.
11495
11496 2003-02-12 Jason Molenda (jmolenda@apple.com)
11497
11498 * symmisc.c (print_objfile_statistics): Include information about
11499 the number of psymtabs and symtabs in each object file.
11500
11501 2003-02-13 Keith R Seitz <keiths@redhat.com>
11502
11503 * main.h (struct captured_main_args): Add interpreter_p.
11504 * main.c (captured_main): Initialize interpreter_p from context.
11505 * gdb.c (main): Set interpreter_p argument.
11506 * Makefile.in (gdb.o): Add dependency for interps.h.
11507
11508 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11509
11510 * event-top.c (cli_command_loop): Delete declaration.
11511 (_initialize_event_loop): Delete function setting event_loop_hook.
11512 * event-top.h (cli_command_loop): Declare. Update copyright.
11513 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11514 * interps.c (current_interp_command_loop): When event_loop_p, call
11515 cli_command_loop.
11516
11517 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11518
11519 * interps.h (interp_command_loop_ftype): Change return type to
11520 void.
11521
11522 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11523
11524 * x86-64-tdep.c (x86_64_extract_return_value)
11525 (x86_64_store_return_value): Use regcache instead of regbuf.
11526 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11527 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11528
11529 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11530
11531 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11532 * aclocal.m4: Regenerate.
11533 * configure: Regenerate.
11534
11535 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11536 TCL_LD_SEARCH_FLAGS.
11537
11538 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11539
11540 * dwarf2cfi.c: Reindented.
11541
11542 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11543
11544 * interps.c (clear_interpreter_hooks): Convert function definition
11545 to ISO C.
11546
11547 2003-02-07 David Carlton <carlton@math.stanford.edu>
11548
11549 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11550
11551 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11552
11553 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11554 (struct type): ...to here.
11555 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11556 field.
11557 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11558 (replace_type): Set length on all type variants for a given type.
11559
11560 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11561
11562 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11563 <sys/stat.h>.
11564 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11565
11566 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11567
11568 * Makefile.in (symm-nat.o): Update dependencies.
11569 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11570 (lynx-nat.o, ia64-linux-nat.): Ditto.
11571 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11572 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11573 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11574
11575 * Makefile.in (inflow_h): Define.
11576 (procfs.o, inflow.o, procfs.o): Update dependencies.
11577 * inftarg.c (child_stop): Delete extern declaration of
11578 inferior_process_group. Include "inflow.h".
11579 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11580 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11581 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11582 (our_process_group, inferior_process_group): Extern declarations.
11583
11584 * procfs.c: Include "gdb_assert.h".
11585
11586 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11587 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11588 * jv-typeprint.c (java_type_print_base): Ditto.
11589 * typeprint.c (typedef_print): Eliminate STREQ.
11590 * cli/cli-script.c (define_command, define_command): Ditto.
11591 * main.c (captured_main): Ditto.
11592 * values.c (lookup_internalvar): Ditto.
11593 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11594 within `if' conditional.
11595 * linespec.c (decode_line_2): Ditto.
11596 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11597 (bfd_openw_with_cleanup): Ditto.
11598
11599 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11600
11601 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11602 legacy_extract_return_value and store_return_value to
11603 legacy_return_value.
11604
11605 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11606
11607 * win32-nat.c (get_relocated_section_addrs): New function. Find
11608 section load addresses for symbol handling in relocated DLLs.
11609 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11610
11611 2003-02-05 Fred Fish <fnf@intrinsity.com>
11612
11613 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11614 '=' and '!='.
11615 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11616 with '&' and '=='.
11617 (angel_RDI_info): Ditto.
11618 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11619 with '&' and '!='.
11620 (threads_continue_all_with_signals): Ditto.
11621
11622 2003-02-05 Jim Ingham <jingham@apple.com>
11623 Keith Seitz <keiths@redhat.com>
11624 Elena Zannoni <ezannoni@redhat.com>
11625 Andrew Cagney <ac131313@redhat.com>
11626
11627 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11628 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11629 (SUBDIR_MI_OBS): Add "mi-interp.o".
11630 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11631 (SFILES): Add "interps.c".
11632 (COMMON_OBS): Add "interps.o".
11633 (interps_h, mi_main_h): Define.
11634 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11635 (mi-main.o, main.o, event-top.o): Update dependencies.
11636 * cli/cli-interp.c: New file.
11637 * interps.h, interps.c: New files.
11638 * top.c: (gdb_init): Don't install the default interpreter, handed
11639 by captured_main.
11640 * main.c: Include "interps.h".
11641 (interpreter_p): Note that it should malloc'ed.
11642 (captured_command_loop): Call current_interp_command_loop.
11643 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11644 xfree and xstrdup when updating interpreter_p. Install the
11645 default interpreter. Add hack to stop mi1's copyright notice
11646 being encoded.
11647 * event-top.h (gdb_setup_readline): Declare.
11648 (gdb_disable_readline): Declare.
11649 * event-top.c: Include "interps.h".
11650 (display_gdb_prompt): Call current_interp_display_prompt_p.
11651 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11652 gdb_stdlog, and gdb_stdtarg.
11653 (_initialize_event_loop): Don't call gdb_setup_readline.
11654 * cli-out.c (cli_out_set_stream): New function.
11655 * cli-out.h (cli_out_set_stream): Declare.
11656
11657 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11658
11659 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11660 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11661 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11662 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11663 config/i386/i386v42mp.mt: Removed.
11664
11665 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11666
11667 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11668 GDB_OSABI_SOLARIS.
11669
11670 2003-02-05 Michael Chastain <mec@shout.net>
11671
11672 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11673 2.12.1 and earlier versions.
11674
11675 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11676
11677 Remove orphaned hosts, targets and files.
11678 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11679 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11680 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11681 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11682 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11683 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11684 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11685 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11686 * config/sparc/tm-sp64sim.h: Delete.
11687 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11688 hosts.
11689 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11690 mips*-dec-mach3* targets.
11691
11692 2003-02-04 Michael Chastain <mec@shout.net>
11693
11694 * NEWS: Fix typo: sepcifying -> specifying.
11695
11696 2003-02-04 Michael Chastain <mec@shout.net>
11697
11698 * dwarfread.c: Add documentation on the state of dwarf-1,
11699 looking towards obsoletion.
11700
11701 2003-02-03 Michael Chastain <mec@shout.net>
11702
11703 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11704 gdb/testsuite/gdb.c++/pr-1023.exp.
11705
11706 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11707
11708 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11709 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11710
11711 * utils.c (init_page_info): Delete reference to MPW in comments.
11712 * main.c (captured_main): Delete #ifdef MPW.
11713
11714 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11715
11716 * NEWS: Note that the m32r-*-elf* is obsolete.
11717 * monitor.c (monitor_expect): Obsolete reference to m32r.
11718 * configure.tgt: Mark m32r-*-elf* as obsolete.
11719 * MAINTAINERS: Mark m32k as obsolete.
11720 * m32r-rom.c: Obsolete file.
11721 * config/m32r/m32r.mt: Obsolete file.
11722 * config/m32r/tm-m32r.h: Obsolete file.
11723 * m32r-stub.c: Obsolete file.
11724 * m32r-tdep.c: Obsolete file.
11725
11726 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11727
11728 * NEWS: Mention that the z8k-zilog-none is obsolete.
11729 * MAINTAINERS: Mark z8k as obsolete.
11730 * configure.tgt: Obsolete the z8k-*-coff* target.
11731 * config/z8k/z8k.mt: Obsolete file.
11732 * config/z8k/tm-z8k.h: Obsolete file.
11733 * z8k-tdep.c: Obsolete file.
11734
11735 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11736
11737 * NEWS: Mention that the mn10200-elf is obsolete.
11738 * configure.tgt: Obsolete mn10200-*-* target.
11739 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11740 mention that the mn10200 is obsolete.
11741 * breakpoint.h: Ditto.
11742 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11743 * config/mn10200/mn10200.mt: Obsolete file.
11744 * config/mn10200/tm-mn10200.h: Obsolete file.
11745 * mn10200-tdep.c: Obsolete file.
11746
11747 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11748
11749 * MAINTAINERS: Mark h8500 as obsolete.
11750 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11751 * findvar.c (value_from_register): Ditto.
11752 * h8500-tdep.c: Mark file as obsolete.
11753 * config/h8500/h8500.mt: Ditto.
11754 * config/h8500/tm-h8500.h: Ditto.
11755 * NEWS: Mention that h8500 is obsolete.
11756
11757 2003-02-04 David Carlton <carlton@math.stanford.edu>
11758
11759 * objfiles.c (allocate_objfile): Always set name. Add comment at
11760 start of function.
11761 * jv-lang.c (get_dynamics_objfile): Add comment.
11762
11763 2003-02-04 David Carlton <carlton@math.stanford.edu>
11764
11765 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11766 * printcmd.c (build_address_symbolic): Replace uses of
11767 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11768 SYMBOL_NAME, and asm_demangle.
11769 Update copyright.
11770
11771 2003-02-04 David Carlton <carlton@math.stanford.edu>
11772
11773 * linespec.c (decode_compound): Extract code into
11774 lookup_prefix_sym.
11775 (lookup_prefix_sym): New function.
11776
11777 2003-02-04 David Carlton <carlton@math.stanford.edu>
11778
11779 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11780 FLOAT_COERCION_BADNESS.
11781 * gdbtypes.c (rank_one_type): Replace all uses of
11782 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11783
11784 2003-02-04 Jim Blandy <jimb@redhat.com>
11785
11786 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11787 section, let dwarf_macinfo_section point to it, not
11788 dwarf_loc_section.
11789
11790 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11791
11792 Pointed out by Anton Blanchard <anton@samba.org>.
11793 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11794 (ppc_linux_at_sigtramp_return_path): Use it.
11795
11796 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * defs.h (streq): Add prototype.
11799 * utils.c (streq): New function.
11800
11801 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11802 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11803 * mdebugread.c (new_symbol): Likewise.
11804 * stabsread.c (define_symbol): Likewise.
11805 * coffread.c (process_coff_symbol): Likewise.
11806 * dwarfread.c (new_symbol): Likewise.
11807
11808 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11809 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11810 here.
11811 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11812 SYMBOL_INIT_DEMANGLED_NAME.
11813 * objfiles.c: Include "hashtab.h".
11814 (allocate_objfile): Call htab_set_functions_ex for the
11815 demangled_names_hash.
11816 (free_objfile): Call htab_delete for the demangled_names_hash.
11817 * objfiles.h (struct htab): Add declaration.
11818 (struct objfile): Add demangled_names_hash.
11819 * symfile.c: Include "hashtab.h".
11820 (reread_symbols): Call htab_delete for the demangled_names_hash.
11821 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11822 SYMBOL_NAME in the bcache.
11823 * symtab.c: Include "hashtab.h". Update comments.
11824 (create_demangled_names_hash, symbol_set_names): New functions.
11825 (symbol_find_demangled_name): New function, broken out from
11826 symbol_init_demangled_names.
11827 (symbol_init_demangled_names): Use it.
11828 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11829 (SYMBOL_SET_NAMES): New macro.
11830 (symbol_set_names): Add prototype.
11831
11832 2003-02-03 Jim Blandy <jimb@redhat.com>
11833
11834 Use a single, consistent representation for an empty minimal
11835 symbol table in an objfile.
11836 * objfiles.c (terminate_minimal_symbol_table): New function.
11837 (allocate_objfile): Call it.
11838 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11839 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11840 non-NULL.
11841 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11842 objfile has minimal symbols, compare minimal_symbol_count to zero,
11843 instead of comparing msymbols with NULL.
11844 * objfiles.c (have_minimal_symbols): Same.
11845 * solib-sunos.c (solib_add_common_symbols): Call
11846 terminate_minimal_symbol_table.
11847 * symfile.c (reread_symbols): Same.
11848
11849 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11850
11851 * s390-tdep.c (s390_address_class_type_flags)
11852 (s390_address_class_type_flags_to_name)
11853 (s390_address_class_name_to_type_flags): New functions.
11854 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11855 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11856
11857 2003-02-03 Michael Snyder <msnyder@redhat.com>
11858
11859 * arm-tdep.c: Fix spell-o in comment.
11860
11861 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11862
11863 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11864 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11865 error messages to contain BFD filename.
11866
11867 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11868
11869 Fix PR gdb/742 gdb/743 gdb/877
11870 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11871 (do_mixed_source_and_assembly): Use
11872 make_cleanup_ui_out_tuple_begin_end and
11873 make_cleanup_ui_out_tuple_begin_end.
11874 (do_mixed_source_and_assembly): Ditto.
11875 * thread.c (do_captured_list_thread_ids): Ditto.
11876 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11877 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11878 ui_out_tuple_end): Delete prototypes.
11879 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11880 ui_out_list_end, ui_out_tuple_end): Delete.
11881
11882 From Kevin Buettner <kevinb@redhat.com>:
11883 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11884 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11885 (do_cleanup_table_end): New functions.
11886 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11887 Use cleanups to invoke_ui_out_tuple_end().
11888 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11889 * cli/cli-setshow.c (cmd_show_list): Use
11890 make_cleanup_ui_out_tuple_begin_end.
11891
11892 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11893
11894 * frame.c (frame_unwind_register): New function.
11895 (frame_unwind_unsigned_register): Use.
11896 (frame_unwind_signed_register): Use.
11897 (frame_read_register): New function.
11898 * frame.h (frame_unwind_register): Declare.
11899 (frame_read_register): Declare.
11900
11901 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11902 and frame_unwind_register instead of read_memory, write_register
11903 and deprecated_write_register_bytes.
11904
11905 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11906
11907 * frame.h: Note that namelen can be negative.
11908 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11909 NAME's length.
11910
11911 * NEWS: Mention that the d10v's `regs' command is deprecated.
11912 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11913 (d10v_print_registers_info): New function.
11914 (show_regs): Call d10v_print_registers_info.
11915 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11916
11917 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11918
11919 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11920 lost in the previous patch.
11921
11922 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11923
11924 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11925 * stack.c (print_frame_info_base): Output complete FRAME tuple
11926 for synthesized frames.
11927
11928 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11929
11930 * mips-nat.c (zerobuf): Delete.
11931 (fetch_inferior_registers): Alloc local zerobuf.
11932 (fetch_core_registers): Alloc local zerobuf.
11933 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11934 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11935 * thread-db.c (thread_db_store_registers): Ditto.
11936 * sh-tdep.c (sh_do_register): Ditto.
11937 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11938 * remote-sim.c (gdbsim_store_register): Ditto.
11939 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11940 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11941 * monitor.c (monitor_supply_register): Ditto.
11942 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11943 * mips-nat.c (fetch_inferior_registers): Ditto.
11944 * m68klinux-nat.c (fetch_register): Ditto.
11945 * lynx-nat.c (fetch_inferior_registers): Ditto.
11946 (fetch_inferior_registers): Ditto.
11947 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11948 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11949 (hpux_thread_store_registers): Ditto.
11950 * hppah-nat.c (fetch_register): Ditto.
11951 * hppab-nat.c (fetch_register): Ditto.
11952 * hppa-tdep.c (pa_register_look_aside): Ditto.
11953 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11954 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11955
11956 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11957
11958 * gdbarch.sh: Explictly specify all method levels. When a
11959 variable with an empty level, provide a non-multi-arch default.
11960 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11961 * gdbarch.h: Re-generate.
11962 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11963 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11964
11965 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11966
11967 * defs.h (host_pointer_to_address): Delete declaration.
11968 (address_to_host_pointer): Delete declaration.
11969 * utils.c (host_pointer_to_address): Delete function.
11970 (address_to_host_pointer): Delete function.
11971 * procfs.c (procfs_address_to_host_pointer): New function.
11972 * procfs.c (proc_set_watchpoint): Use.
11973 (procfs_can_use_hw_breakpoint): Update comments.
11974 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11975 (som_solib_add): Use.
11976 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11977 * hppa-tdep.c (unwind_command): Use.
11978
11979 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11980
11981 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11982 strlen d_name.
11983
11984 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11985 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11986 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11987 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11988 (define_symbol): Update.
11989 * symfile.c (generic_load): Remove references to nindy.
11990 * symtab.c: Remove references to nindy.
11991
11992 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11993
11994 * infcmd.c (print_float_info): Delete code conditional on
11995 FLOAT_INFO.
11996 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11997 * config/m68k/nm-apollo68b.h: Ditto.
11998 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11999 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
12000 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
12001
12002 2003-02-01 Mark Kettenis <kettenis@gnu.org>
12003
12004 * config/i386/tm-i386os9k.h: Removed.
12005
12006 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
12007 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
12008 they're identical to i[3456]86-*-sysv* now.
12009 * config/i386/i386v32.mh: Removed.
12010 * config/i386/xm-i386v32.h: Removed.
12011 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
12012
12013 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
12014
12015 * config/i386/i386dgux.mh: Removed.
12016 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
12017
12018 * configure.in: Fix typo.
12019 * configure: Regenerated.
12020
12021 2003-01-31 David Carlton <carlton@math.stanford.edu>
12022
12023 * dwarf2read.c (dwarf2_locate_sections): Set
12024 dwarf_ranges_section.
12025
12026 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12027
12028 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
12029 * utils.c: Update comments documenting legitimate uses of PTR.
12030
12031 * utils.c: Re-indent.
12032
12033 * config/djgpp/fnchange.lst: Delete nindy files.
12034 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12035 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12036 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12037 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12038 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12039 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12040 * Makefile.in (init.c): Remove nindy references.
12041 (saber_gdb): Delete rule.
12042 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12043 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12044 and a68v-nat.c.
12045 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12046 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12047 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12048 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12049 nindy-share/stop.h.
12050 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12051 * saber.suppress: Delete file.
12052
12053 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12054
12055 * dbxread.c (stabs_data): New static variable.
12056 (fill_symbuf): Support an in-memory buffer for stabs data.
12057 (stabs_seek): New function.
12058 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12059 (read_ofile_symtab): Use stabs_seek.
12060 (elfstab_build_psymtabs): Take an asection* instead of
12061 an offset and size. Relocate the stabs data if necessary.
12062 Save the section* for dbx_psymtab_to_symtab.
12063 * dwarf2read.c: Add section variables for each debug section.
12064 (dwarf2_locate_sections): Fill them in.
12065 (dwarf2_read_section): Take an asection* argument.
12066 Relocate the section contents if necessary.
12067 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12068 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12069 it to dwarf2_read_section.
12070 (dwarf2_build_frame_info): Update callers.
12071 * elfread.c (elf_symfile_read): Update call to
12072 elfstab_build_psymtabs.
12073 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12074 (DBX_STAB_SECTION): New macro.
12075 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12076 * symfile.c (symfile_dummy_outputs): New function.
12077 (symfile_relocate_debug_section): New function.
12078 * symfile.h (symfile_relocate_debug_section): Add prototype.
12079
12080 2003-01-31 Richard Henderson <rth@redhat.com>
12081
12082 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12083 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12084 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12085 * alpha-tdep.c (alpha_register_name): Add "unique".
12086 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12087 (ALPHA_UNIQUE_REGNUM): New.
12088 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12089
12090 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12091
12092 * README: Remove reference to Ericsson 1800 monitor.
12093 * Makefile.in (remote-es.o): Delete rule.
12094 (ALLDEPFILES): Delete remote-es.c.
12095 * remote-es.c: Delete file.
12096 * config/m68k/es1800.mt: Delete file.
12097 * config/djgpp/fnchange.lst: Update.
12098 * configure.tgt: Delete m68*-ericsson-* target.
12099
12100 2003-01-31 Adam Fedor <fedor@gnu.org>
12101
12102 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12103 Remove duplicate/shadowing variable of same name.
12104
12105 2003-01-30 Jim Blandy <jimb@redhat.com>
12106
12107 * symfile.c (find_separate_debug_file): Assert that the objfile's
12108 directory name we compute ends with a slash, and then assume that
12109 that's so everywhere we use it.
12110
12111 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12112
12113 * valops.c (value_assign): Flush frame cache after stores to memory
12114 also.
12115
12116 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12117
12118 * Makefile.in (mon960-rom.o): Delete rule.
12119 * mon960-rom.c: Delete file.
12120
12121 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12122
12123 * d10v-tdep.c: Include "frame-unwind.h".
12124 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12125 list.
12126 (next_addr, uses_frame): Delete.
12127 (struct d10v_unwind_cache): Define.
12128 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12129 Use info instead of next_addr and uses_frame globals.
12130 (d10v_frame_init_saved_regs): Delete function.
12131 (d10v_init_extra_frame_info): Delete function.
12132 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12133 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12134 init_frame_pc or frame_saved_pc.
12135 (d10v_pop_frame): Delete function.
12136 (do_d10v_pop_frame): Delete function.
12137 (d10v_frame_chain): Delete function.
12138 (d10v_frame_chain_valid): Delete function.
12139 (d10v_frame_pc_unwind): New function.
12140 (d10v_frame_id_unwind): New function.
12141 (saved_regs_unwinder): New function.
12142 (d10v_frame_register_unwind): New function.
12143 (d10v_frame_pop): New function.
12144 (d10v_frame_unwind): New variable.
12145 (d10v_frame_p): New function.
12146 (d10v_frame_saved_pc): Delete function.
12147 * Makefile.in (d10v-tdep.o): Update dependencies.
12148
12149 2003-01-30 J. Brobecker <brobecker@gnat.com>
12150
12151 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12152 causing some regressions due to a change in the default value
12153 for this macro.
12154
12155 2003-01-29 Richard Henderson <rth@redhat.com>
12156 Elena Zannoni <ezannoni@redhat.com>
12157 Daniel Jacobowitz <drow@mvista.com>
12158
12159 Fix PR gdb/961.
12160 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12161 variables.
12162 (RANGES_SECTION): New.
12163 (dwarf_ranges_buffer): New variable.
12164 (struct comp_unit_head): Add member "die".
12165 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12166 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12167 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12168 (dwarf2_locate_sections): Likewise.
12169 (dwarf2_build_psymtabs): Read .debug_ranges.
12170 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12171 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12172 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12173 Look for DW_AT_ranges and return the bounding box.
12174
12175 2003-01-29 Brian Ford <ford@vss.fsi.com>
12176
12177 * win32-nat.c (cygwin_pid): Removed as unused.
12178 (child_attach): Try fall back to Cygwin pid.
12179
12180 2003-01-29 Jim Blandy <jimb@redhat.com>
12181
12182 * objfiles.h (struct objfile): Doc fix.
12183
12184 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12185
12186 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12187 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12188 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12189 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12190 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12191 (FRAME_SAVED_PC): Change to a function with predicate.
12192 * gdbarch.h, gdbarch.c: Re-generate.
12193
12194 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12195
12196 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12197
12198 * complaints.c (complain): Delete function.
12199 * complaints.h (struct deprecated_complaint): Delete definition.
12200 (complain): Delete declaration.
12201
12202 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12203
12204 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12205 dummy frames.
12206
12207 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12208
12209 * sentinel-frame.h, sentinel-frame.c: New files.
12210 * Makefile.in (frame.o): Update dependencies.
12211 (SFILES): Add sentinel-frame.c.
12212 (sentinel_frame_h): Define.
12213 (COMMON_OBS): Add sentinel-frame.o.
12214 (sentinel-frame.o): Specify dependencies.
12215 * frame.c: Include "sentinel-frame.h".
12216 (frame_register_unwind): Rewrite assuming that there is always a a
12217 ->next frame.
12218 (frame_register, generic_unwind_get_saved_register): Ditto.
12219 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12220 (create_sentinel_frame, unwind_to_current_frame): New functions.
12221 (get_current_frame): Rewrite using create_sentinel_frame and
12222 unwind_to_current_frame. When possible, always create a frame.
12223 (create_new_frame): Set next to the sentinel frame.
12224 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12225 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12226 ID cache when necessary.
12227 (frame_saved_regs_id_unwind): Use frame_relative_level.
12228 (deprecated_generic_get_saved_register): Use frame_relative_level,
12229 get_frame_saved_regs, get_frame_pc, get_frame_base and
12230 get_next_frame.
12231 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12232 frame_register.
12233
12234 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12237
12238 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12239
12240 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12241 (maintenance_set_profile_cmd): Use error () instead of warning ().
12242
12243 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * configure.in: Check that -pg works if using --enable-profiling.
12246 Check for monstartup and _mcleanup regardless of --enable-profiling.
12247 * maint.c: Check for monstartup and _mcleanup before using them.
12248 * config.in: Regenerated.
12249 * configure: Regenerated.
12250
12251 2003-01-24 Nick Clifton <nickc@redhat.com>
12252
12253 * Add sh2e support:
12254
12255 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12256
12257 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12258 (sh2e_show_regs): New.
12259 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12260 * config/sh/tm-sh.h: Added sh2e to comments.
12261
12262 2003-01-23 Jim Blandy <jimb@redhat.com>
12263
12264 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12265 symbols found)" message here; we haven't checked for a separate
12266 debug info file yet, so we don't know yet.
12267 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12268 we've looked everywhere. Also, there's no need to print a special
12269 message when we're loading the separate debug info file: the one
12270 symbol_file_add prints is fine.
12271
12272 2003-01-23 Alexander Larsson <alexl@redhat.com>
12273 Jim Blandy <jimb@redhat.com>
12274
12275 Add support for executables whose debug info has been separated
12276 out into a separate file, leaving only a link behind.
12277 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12278 and separate_debug_objfile_backlink.
12279 (put_objfile_before): New declaration.
12280 * symfile.c: #include "filenames.h".
12281 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12282 debug info in a separate file, read that, too. Save the addrs
12283 argument, so we can use it again to read the separated debug info;
12284 syms_from_objfile modifies the table we pass it.
12285 (reread_symbols): After re-reading an objfile, call
12286 reread_separate_symbols to refresh its separate debug info
12287 objfile, if it has one.
12288 (reread_separate_symbols, find_separate_debug_file,
12289 get_debug_link_info, separate_debug_file_exists): New functions.
12290 (debug_file_directory): New global var.
12291 (_initialize_symfile): Initialize debug_file_directory, and
12292 provide the new `set debug-file-directory' command to let the user
12293 change it.
12294 * objfiles.c (free_objfile): If this objfile has its debug info in
12295 a separate objfile, free that one too. If this is itself a
12296 separate debug info objfile, clear our parent's backlink.
12297 (put_objfile_before): New function.
12298 * utils.c (gnu_debuglink_crc32): New function.
12299 * defs.h (gnu_debuglink_crc32): New declaration.
12300 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12301 * configure.in: Handle --with-separate-debug-dir config option.
12302 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12303 * acconfig.h (DEBUGDIR): New macro.
12304 * configure, aclocal.m4, config.in: Regenerated.
12305
12306 2003-01-22 Jim Blandy <jimb@redhat.com>
12307
12308 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12309 like the old symbol_file_add, but taking new arguments: you can
12310 now pass in either a `struct section_addr_info' list to say where
12311 each section is loaded, or a `struct section_offsets' table. Pass
12312 these new arguments through to syms_from_objfile as appropriate.
12313 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12314 with the appropriate quiescent values for the new arguments.
12315
12316 * symfile.c: #include "gdb_assert.h".
12317 (syms_from_objfile): Add the ability to pass in a section offset
12318 table directly, as an alternative to the section_addr_info table.
12319 Document arguments better.
12320 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12321 * symfile.h (syms_from_objfile): Update declaration.
12322 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12323 syms_from_objfile.
12324 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12325
12326 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12327
12328 Original patch by Tom Tromey <tromey@cygnus.com> and
12329 Jason Molenda <jmolenda@apple.com>.
12330 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12331 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12332 * NEWS: Mention profiling.
12333 * configure.in (--enable-gdbtk): Fix typo.
12334 (--enable-profiling): New. Set PROFILE_CFLAGS.
12335 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12336 Fill in function.
12337 (profiling_state): New variable.
12338 (mcleanup_wrapper): New function.
12339 (_initialize_maint): Remove NOTYET, fix call to
12340 add_setshow_boolean_cmd for "maint set profile".
12341 * configure: Regenerated.
12342
12343 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12344
12345 * Makefile.in (install-gdbtk): Install PNG images too.
12346
12347 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12348
12349 * exec.c (text_start): Delete global variable.
12350 (exec_file_attach): Make text_start local to the function.
12351 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12352 * valops.c (hand_function_call): Delete code that handles
12353 BEFORE_TEXT_END and AFTER_TEXT_END.
12354 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12355 of CALL_DUMMY_LOCATION.
12356 * gdbarch.c: Regenerate.
12357 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12358 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12359 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12360 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12361 (text_end): Delete extern declaration.
12362
12363 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12364
12365 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12366 * blockframe.c (backtrace_below_main): Move to "frame.c".
12367 (frame_chain_valid): Delete check for backtrace_below_main.
12368 (_initialize_blockframe): Delete initialization, move ``set
12369 backtrace-below-main'' command to "frame.c".
12370 (do_flush_frames_sfunc): Delete function.
12371 * frame.c: Include "command.h" and "gdbcmd.h".
12372 (frame_type_from_pc): New function.
12373 (create_new_frame): Use frame_type_from_pc.
12374 (legacy_get_prev_frame): New function.
12375 (get_prev_frame): Rewrite. When an old style frame, call
12376 legacy_get_prev_frame. Otherwize, unwind the PC first.
12377 (_initialize_frame): Add ``set backtrace-below-main'' command.
12378 * Makefile.in (frame.o): Update dependencies.
12379
12380 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12381
12382 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12383 DEPRECATED_REGISTERS_INFO.
12384
12385 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12386
12387 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12388 Maintainers'. Update `Various Maintainers'.
12389
12390 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12391
12392 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12393 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12394 Suppress actual parameters when `-'.
12395 * gdbarch.h, gdbarch.c: Regenerate.
12396
12397 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12398
12399 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12400 code handling dummy frames.
12401
12402 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12403
12404 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12405 (struct frame_unwind): Add field pop.
12406 * frame.h (frame_pop): Declare.
12407 * frame.c (frame_saved_regs_pop): New function.
12408 (trad_frame_unwinder): Add frame_saved_regs_pop.
12409 (frame_pop): New function.
12410 * dummy-frame.c (dummy_frame_pop): New function.
12411 (discard_innermost_dummy): New function.
12412 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12413 (dummy_frame_unwind): Add dummy_frame_pop.
12414 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12415 * valops.c (hand_function_call): Ditto.
12416 * stack.c (return_command): Ditto.
12417
12418 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12419
12420 * cris-tdep.c: Fix function declaration indentation.
12421 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12422 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12423 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12424 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12425 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12426 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12427
12428 2003-01-18 Michael Chastain <mec@shout.net>
12429
12430 * README (Unpacking and Installation -- quick overview):
12431 Warn against ".../gdb-5.3/gdb/configure".
12432
12433 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12434
12435 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12436 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12437 (struct frame_unwind): Declare opaque.
12438 (dummy_frame_p): Declare function.
12439 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12440 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12441 * dummy-frame.c: Include "frame-unwind.h".
12442 (dummy_frame_p): New function.
12443 (dummy_frame_unwind): New variable.
12444 * frame.c: Include "frame-unwind.h".
12445 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12446 to use the new unwind field.
12447 (set_unwind_by_pc): Delete function.
12448 (create_new_frame, get_prev_frame): Set unwind field using
12449 frame_unwind_find_by_pc.
12450 (trad_frame_unwind, trad_frame_unwinder): New variables.
12451 * frame.h (trad_frame_unwind): Declare variable.
12452 (frame_id_unwind_ftype): Delete declaration.
12453 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12454 (struct frame_unwind): Declare opaque.
12455 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12456 register_unwind with a single unwind pointer.
12457 * frame-unwind.h, frame-unwind.c: New files.
12458 * Makefile.in (SFILES): Add frame-unwind.c.
12459 (frame_unwind_h): Define.
12460 (COMMON_OBS): Add frame-unwind.o.
12461 (frame-unwind.o): Specify dependencies.
12462 (frame.o, dummy-frame.o): Update dependencies.
12463
12464 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12465
12466 * ada-valprint.c: Eliminate PTR.
12467 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12468 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12469 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12470 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12471 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12472 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12473 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12474
12475 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12476
12477 * main.c (captured_main): Don't use PTR.
12478 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12479 * gdbtypes.c (lookup_primitive_typename): Ditto.
12480 (lookup_struct_elt_type): Ditto.
12481 * f-valprint.c (info_common_command): Ditto.
12482 (list_all_visible_commons): Ditto.
12483 * jv-typeprint.c (java_type_print_base): Ditto.
12484
12485 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12486 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12487 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12488 i386-interix-nat.c and i386-interix-tdep.c. Rename
12489 m68klinux-nat.c and m68klinux-tdep.c. Rename
12490 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12491 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12492 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12493 * main.c (captured_main): Use xfree, not free.
12494
12495 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12496
12497 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12498 ID back using a parameter.
12499 * frame.c (frame_id_unwind): Update call.
12500 (frame_saved_regs_id_unwind): Update.
12501 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12502 * dummy-frame.h (struct frame_id): Add opaque declaration.
12503 (dummy_frame_id_unwind): Update declaration.
12504
12505 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12506
12507 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12508
12509 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12510
12511 * MAINTAINERS (Stephen P. Smith): Updated email address.
12512
12513 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12514
12515 Fix PR gdb/898
12516 * breakpoint.c (until_break_command): Add new argument. Use it to
12517 decide whether to stop only at the current frame or not.
12518 * breakpoint.h (until_break_command): Update prototype.
12519 * infcmd.c (until_command): Add new argument to until_break_command
12520 call.
12521 (advance_command): New function.
12522 (_initialize_infcmd): Update help string for 'until' command.
12523 Add new 'advance' command.
12524
12525 2003-01-14 David Carlton <carlton@math.stanford.edu>
12526
12527 * linespec.c (decode_line_1): Normalize comments.
12528 (set_flags): Ditto.
12529 (locate_first_half): Ditto.
12530 (decode_compound): Ditto.
12531 (symtab_from_filename): Ditto.
12532 (decode_all_digits): Ditto.
12533 (decode_dollar): Ditto.
12534 (find_methods): Ditto.
12535 (find_toplevel_char): Ditto.
12536
12537 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12538
12539 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12540 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12541 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12542 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12543 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12544 * language.c, language.h, m32r-tdep.c: Update copyright.
12545 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12546 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12547 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12548 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12549 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12550 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12551
12552 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12553
12554 * stabsread.h (process_later, resolve_cfront_continuation):
12555 Obsolete.
12556 Update copyright years.
12557 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12558 Update copyright year.
12559 * dbxread.c(struct cont_elem): Obsolete.
12560 (process_later, process_now): Obsolete functions.
12561 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12562 Update copyright year.
12563 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12564 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12565 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12566 (parse_partial_symbols): Obsolete cfront support.
12567 * stabsread.c
12568 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12569 macros.
12570 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12571 read_cfront_baseclasses, read_cfront_member_functions,
12572 resolve_cfront_continuation,read_cfront_static_fields,
12573 copy_cfront_struct_fields): Obsolete functions.
12574 (define_symbol, read_one_struct_field): Obsolete cfront support.
12575 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12576 Update Copyright year.
12577
12578 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12579
12580 * stack.c (print_frame_info, print_stack_frame_base_stub,
12581 print_stack_frame_base, show_and_print_stack_frame_stub,
12582 show_and_print_stack_frame, print_only_stack_frame_stub,
12583 print_only_stack_frame): Delete functions.
12584 (print_stack_frame_stub): Call print_frame_info instead of
12585 print_frame_info_base.
12586 (print_frame_info_base): Rename to print_frame_info.
12587 (backtrace_command_1): Call print_frame_info, instead of
12588 print_frame_info_base.
12589 (current_frame_command): Call print_stack_frame, instead of
12590 print_only_stack_frame.
12591 (frame_command): Call print_stack_frame, instead of
12592 show_and_print_stack_frame.
12593 (up_command): Ditto.
12594 (down_command): Ditto.
12595 * frame.h (print_only_stack_frame): Delete prototype.
12596 * infrun.c (normal_stop): Call print_stack_frame, instead of
12597 show_and_print_stack_frame.
12598 * thread.c (info_threads_command): Call print_stack_frame, instead
12599 of print_only_stack_frame.
12600
12601 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12602
12603 * README (Graphical interface to GDB): Update URL. Point at
12604 gdb/links/.
12605
12606 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12607 version match.
12608
12609 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12610
12611 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12612 lines.
12613
12614 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12615
12616 * thread-db.c (attach_thread): Prototype.
12617 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12618 thread information (ti), and valid flags (th_valid, ti_valid).
12619 (attach_thread): Move target_pid_to_str call to after the thread
12620 is added to GDB's list. Initialize the cache.
12621 (thread_get_info_callback, thread_db_map_id2thr)
12622 (thread_db_get_info): New functions.
12623 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12624 (thread_db_store_registers, thread_db_thread_alive)
12625 (thread_db_get_thread_local_address): Use them.
12626 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12627 of calling error() for threads in unknown state.
12628
12629 (clear_lwpid_callback): New function.
12630 (thread_db_resume): Use it to clear the cache.
12631
12632 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12633
12634 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12635 (resume_callback): Remove dead code.
12636
12637 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12638
12639 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12640 predicate.
12641 * gdbarch.h, gdbarch.c: Regenerate.
12642 * stack.c (frame_info): Only initialize the saved registers when
12643 FRAME_INIT_SAVED_REGS_P.
12644 * frame.c (frame_saved_regs_register_unwind): Assert
12645 FRAME_INIT_SAVED_REGS_P.
12646 (deprecated_generic_get_saved_register): Ditto.
12647
12648 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * source.c (openp): Squelch warning about "filename".
12651
12652 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12653
12654 * source.c (openp): If the file does not exist don't necessarily
12655 search the path.
12656
12657 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12658
12659 Fix PR gdb/872.
12660 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12661 (integer_types_same_name_p): New function.
12662 (rank_one_type): Use it.
12663 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12664
12665 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12666
12667 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12668 variables.
12669 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12670 * configure.in: Add --with-sysroot.
12671 * configure: Regenerated.
12672 * main.c (gdb_sysroot): New variable.
12673 (captured_main): Initialize gdb_sysroot.
12674 * defs.h (gdb_sysroot): New extern declaration.
12675 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12676
12677 2003-01-12 Michael Chastain <mec@shout.net>
12678
12679 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12680
12681 2003-01-12 Michael Chastain <mec@shout.net>
12682
12683 * top.c (print_gdb_version): Bump copyright year to 2003.
12684
12685 2003-01-12 David Carlton <carlton@bactrian.org>
12686
12687 * linespec.c (symtab_from_filename): Rename variable 's' to
12688 'file_symtab'.
12689
12690 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12691
12692 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12693 dummy frame.
12694 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12695
12696 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12697
12698 * d10v-tdep.c: Include "gdb_assert.h".
12699 (d10v_store_return_value): Rewrite to match current interface.
12700 (d10v_extract_struct_value_address): Ditto.
12701 (d10v_extract_return_value): Ditto.
12702 (d10v_gdbarch_init): Set store_restore_value,
12703 extract_struct_value_address and extract_return_value.
12704
12705 2003-01-12 J. Brobecker <brobecker@gnat.com>
12706
12707 * hpread.c (set_namestring): New procedure replacing the
12708 SET_NAMESTRING macro.
12709 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12710 by calls to set_namestring.
12711
12712 2003-01-11 J. Brobecker <brobecker@gnat.com>
12713
12714 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12715 a compilation warning.
12716 (hpread_process_one_debug_symbol): Likewise.
12717
12718 2003-01-10 David Carlton <carlton@math.stanford.edu>
12719
12720 * linespec.c (decode_line_1): Rename variable 's' to
12721 'file_symtab'.
12722 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12723 (decode_dollar): Ditto.
12724 (decode_variable): Ditto.
12725 (symbol_found): Ditto.
12726
12727 2003-01-09 Michael Chastain <mec@shout.net>
12728
12729 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12730
12731 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12732
12733 * win32-nat.c (set_process_privilege): New function.
12734 (child_attach): Call set_process_privilege() to enable the
12735 SE_DEBUG_NAME user privilege if available in process token.
12736
12737 2003-01-10 J. Brobecker <brobecker@gnat.com>
12738
12739 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12740 compilation error in the previous revision.
12741
12742 2003-01-09 David Carlton <carlton@math.stanford.edu>
12743
12744 * linespec.c: Update copyright.
12745
12746 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12747
12748 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12749 than inferior_ptid.
12750 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12751
12752 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12753
12754 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12755 Update comments.
12756 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12757 (frame_saved_regs_zalloc): Update.
12758 (frame_saved_regs_register_unwind): Update.
12759 (create_new_frame): Update.
12760 (get_prev_frame): Update.
12761 (frame_extra_info_zalloc): Update.
12762 (deprecated_get_frame_saved_regs): Update.
12763 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12764 * cris-tdep.c: Update comment.
12765
12766 * somsolib.h: Fix function indentation.
12767 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12768 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12769 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12770 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12771 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12772
12773 * infrun.c (follow_fork): Use ISO C definition.
12774 * expprint.c (print_subexp): Use xfree instead of free.
12775 * charset.c: Include "gdb_string.h" instead of <string.h>.
12776 (register_iconv_charsets): Use ISO C definition.
12777 (host_charset, target_charset): Ditto.
12778 * Makefile.in (charset.o): Update dependencies.
12779 (mi-cmd-env.o): Update dependencies.
12780
12781 2003-01-08 Andrew Cagney <cagney@redhat.com>
12782
12783 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12784 get_frame_base.
12785
12786 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12787
12788 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12789 build directories. Save edited gdb output in Mbuild.log. If a
12790 build fails, remove any final GDB executable.
12791
12792 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12793
12794 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12795 replacing hex constants with function names and stripping leading
12796 file name directory prefixes.
12797
12798 2003-01-08 Andrew Cagney <cagney@redhat.com>
12799
12800 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12801 get_frame_base.
12802
12803 2003-01-08 David Carlton <carlton@math.stanford.edu>
12804
12805 * linespec.c (decode_line_1): Move code into decode_variable.
12806 (decode_variable): New function.
12807
12808 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12809
12810 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12811
12812 2003-01-08 Andrew Cagney <cagney@redhat.com>
12813
12814 * cris-tdep.c (cris_frame_init_saved_regs): Use
12815 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12816 saved_regs buffer.
12817 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12818 (sh64_nofp_frame_init_saved_regs): Ditto.
12819 (sh_fp_frame_init_saved_regs): Ditto.
12820 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12821 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12822 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12823 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12824
12825 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12826
12827 * minsyms.c (lookup_minimal_symbol): Update comment.
12828 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12829 (lookup_minimal_symbol_solib_trampoline): Likewise.
12830
12831 2003-01-08 Andrew Cagney <cagney@redhat.com>
12832
12833 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12834 frame_relative_level.
12835
12836 * alpha-tdep.c: Use get_frame_extra_info.
12837 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12838 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12839 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12840 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12841
12842 * alpha-tdep.c: Use get_next_frame.
12843 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12844 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12845 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12846 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12847 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12848 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12849 * xstormy16-tdep.c: Ditto.
12850
12851 2003-01-07 Andrew Cagney <cagney@redhat.com>
12852
12853 * alpha-tdep.c: Use get_frame_base.
12854 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12855 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12856 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12857 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12858 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12859 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12860 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12861 * config/sparc/tm-sparc.h: Ditto.
12862
12863 2003-01-07 Andrew Cagney <cagney@redhat.com>
12864
12865 * frame.c (deprecated_get_frame_context): New function.
12866 (deprecated_set_frame_context): New function.
12867 * frame.h (deprecated_get_frame_context): Declare.
12868 (deprecated_set_frame_context): Declare.
12869 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12870 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12871
12872 2003-01-07 Andrew Cagney <cagney@redhat.com>
12873
12874 * frame.c (deprecated_set_frame_next_hack): New function.
12875 (deprecated_set_frame_prev_hack): New function.
12876 * frame.h (deprecated_set_frame_next_hack): Declare.
12877 (deprecated_set_frame_prev_hack): Declare.
12878 * mcore-tdep.c (analyze_dummy_frame): Use
12879 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12880 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12881
12882 2003-01-07 David Carlton <carlton@math.stanford.edu>
12883
12884 * linespec.c (decode_line_1): Move code into decode_dollar.
12885 (decode_dollar): New function.
12886
12887 2003-01-07 Andrew Cagney <cagney@redhat.com>
12888
12889 * arm-tdep.c (arm_init_extra_frame_info): Use
12890 deprecated_update_frame_base_hack.
12891 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12892 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12893 (fix_frame_pointer): Ditto.
12894 (mn10300_analyze_prologue): Ditto.
12895
12896 2003-01-07 Andrew Cagney <cagney@redhat.com>
12897
12898 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12899 extra_info using frame_extra_info_zalloc.
12900 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12901 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12902 (sh64_init_extra_frame_info): Ditto.
12903 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12904 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12905 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12906 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12907 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12908 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12909 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12910 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12911 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12912 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12913 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12914 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12915
12916 * mn10300-tdep.c (analyze_dummy_frame): Use
12917 deprecated_set_frame_extra_info_hack.
12918 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12919
12920 2003-01-07 J. Brobecker <brobecker@gnat.com>
12921
12922 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12923 class is not scText. These do not define "real" procedures.
12924 (parse_partial_symbols): Likewise.
12925
12926 2003-01-06 Michael Snyder <msnyder@redhat.com>
12927
12928 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12929
12930 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12931
12932 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12933 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12934 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12935 deprecated_frame_xmalloc_with_cleanup.
12936 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12937 deprecated_frame_xmalloc.
12938 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12939 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12940
12941 2003-01-06 Andrew Cagney <cagney@redhat.com>
12942
12943 * x86-64-linux-tdep.c: Include "osabi.h".
12944 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12945
12946 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12947
12948 2003-01-06 Andrew Cagney <cagney@redhat.com>
12949
12950 * MAINTAINERS (Target Instruction Set Architectures): Update
12951 arm-elf. Can be built with -Werror, has been multiarched.
12952
12953 * value.h (unpack_long): Make buffer parameter constant.
12954 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12955 * scm-lang.h (scm_parse): Ditto.
12956 * defs.h (extract_typed_address, extract_address): Ditto.
12957 (extract_long_unsigned_integer): Ditto.
12958 * inferior.h (unsigned_pointer_to_address): Ditto.
12959 (signed_pointer_to_address): Ditto.
12960 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12961 * gdbarch.h, gdbarch.c: Regenerate.
12962 * findvar.c (extract_long_unsigned_integer): Update.
12963 (extract_address): Update.
12964 (extract_typed_address): Update.
12965 (unsigned_pointer_to_address): Update.
12966 * values.c (unpack_long): Update.
12967 (unpack_double): Update.
12968 (unpack_pointer): Update.
12969 (unpack_field_as_long): Update.
12970 * d10v-tdep.c (d10v_pointer_to_address): Update.
12971 * avr-tdep.c (avr_pointer_to_address): Update.
12972 * scm-lang.c (scm_unpack): Update.
12973 * findvar.c (signed_pointer_to_address): Update.
12974
12975 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12976
12977 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12978 since it is in i386-tdep.c.
12979
12980 2003-01-06 J. Brobecker <brobecker@gnat.com>
12981
12982 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12983 failure introduced in the previous change.
12984
12985 2003-01-05 Michael Chastain <mec@shout.net>
12986
12987 * README: Remove references to deleted remote-*.c files:
12988 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12989 remote-nrom.c, remote-os9k.c, remote-udi.c.
12990
12991 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12992
12993 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12994 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12995 i386_get_longjmp_target.
12996
12997 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12998
12999 * arm-tdep.c (prologue_cache): Change to a pointer.
13000 (_initialize_arm_tdep): Allocate prologue_cache.
13001 (check_prologue_cache): Update.
13002 (save_prologue_cache): Update.
13003 (arm_gdbarch_init): Update.
13004
13005 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13006
13007 * stabsread.c (update_method_name_from_physname): Call complaint()
13008 instead of error.
13009
13010 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13011
13012 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
13013 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
13014 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
13015
13016 * blockframe.c: Include "gdbcmd.h" and "command.h".
13017 (backtrace_below_main): New variable.
13018 (file_frame_chain_valid, func_frame_chain_valid)
13019 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
13020 (generic_func_frame_chain_valid): Remove functions.
13021 (frame_chain_valid, do_flush_frames_sfunc): New functions.
13022 (_initialize_blockframe): New function.
13023 * Makefile.in (blockframe.o): Update dependencies.
13024 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
13025 comment. Call frame_chain_valid ().
13026 * frame.h: Remove old prototypes. Add prototype for
13027 frame_chain_valid and update comments to match.
13028 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
13029 Remove old comment.
13030 * gdbarch.h: Regenerated.
13031 * gdbarch.c: Regenerated.
13032
13033 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13034 set_gdbarch_frame_chain_valid.
13035 * avr-tdep.c (avr_gdbarch_init): Likewise.
13036 * cris-tdep.c (cris_gdbarch_init): Likewise.
13037 * frv-tdep.c (frv_gdbarch_init): Likewise.
13038 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13039 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13040 (i386_nw_init_abi): Likewise.
13041 (i386_gdbarch_init): Likewise.
13042 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13044 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13045 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13046 * mips-tdep.c (mips_gdbarch_init): Likewise.
13047 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13048 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13049 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13050 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13051 * s390-tdep.c (s390_gdbarch_init): Likewise.
13052 * sh-tdep.c (sh_gdbarch_init): Likewise.
13053 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13054 * v850-tdep.c (v850_gdbarch_init): Likewise.
13055 * vax-tdep.c (vax_gdbarch_init): Likewise.
13056 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13057
13058 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13059 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13060 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13061 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13062 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13063 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13064 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13065 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13066
13067 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13068
13069 * Makefile.in (acconfig_h): Remove incorrect macro.
13070 (config_h): Define.
13071 (osabi.o): Update dependencies.
13072 * configure.tgt: Set gdb_osabi based on target triplet.
13073 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13074 * configure: Regenerated.
13075 * config.in: Regenerated.
13076 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13077 (GDB_OSABI_DEFAULT): Define if not already defined.
13078 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13079 (set_osabi_string): New variables.
13080 (gdbarch_register_osabi): Add new OS ABI to
13081 gdb_osabi_available_names.
13082 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13083 (set_osabi, show_osabi): New functions.
13084 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13085
13086 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13087
13088 * arch-utils.c (gdbarch_info_init): Set osabi to
13089 GDB_OSABI_UNINITIALIZED.
13090 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13091 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13092 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13093 * gdbarch.c: Regenerated.
13094 * gdbarch.h: Regenerated.
13095 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13096 there's no BFD.
13097 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13098 * osabi.h (enum gdb_osabi): Move to defs.h.
13099 (gdbarch_init_osabi): Update prototype.
13100 * defs.h (enum gdb_osabi): Moved here.
13101 * Makefile.in: Update dependencies.
13102
13103 * alpha-tdep.h: Don't include "osabi.h".
13104 (struct gdbarch_tdep): Remove osabi member.
13105 * alpha-tdep.c: Include "osabi.h".
13106 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13107 iterate over arches. Update call to gdbarch_init_osabi.
13108 (alpha_dump_tdep): Don't dump osabi.
13109 * alpha-linux-tdep.c: Include "osabi.h".
13110 * alpha-osf1-tdep.c: Include "osabi.h".
13111 * alphafbsd-tdep.c: Include "osabi.h".
13112 * alphanbsd-tdep.c: Include "osabi.h".
13113
13114 * arm-tdep.h: Don't include "osabi.h".
13115 (struct gdbarch_tdep): Remove osabi member.
13116 * arm-tdep.c: Include "osabi.h".
13117 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13118 iterate over arches. Update call to gdbarch_init_osabi.
13119 (arm_dump_tdep): Don't dump osabi.
13120 * arm-linux-tdep.c: Include "osabi.h".
13121 * armnbsd-tdep.c: Include "osabi.h".
13122
13123 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13124 Update call to gdbarch_init_osabi.
13125
13126 * i386-tdep.h: Don't include "osabi.h".
13127 (struct gdbarch_tdep): Remove osabi member.
13128 * i386-tdep.c: Include "osabi.h".
13129 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13130 iterate over arches. Update call to gdbarch_init_osabi.
13131 (i386_dump_tdep): Don't dump osabi.
13132 * i386-linux-tdep.c: Include "osabi.h".
13133 * i386-sol2-tdep.c: Include "osabi.h".
13134 * i386bsd-tdep.c: Include "osabi.h".
13135 * i386gnu-tdep.c: Include "osabi.h".
13136 * i386ly-tdep.c: Include "osabi.h".
13137 * i386nbsd-tdep.c: Include "osabi.h".
13138 * i386obsd-tdep.c: Include "osabi.h".
13139
13140 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13141 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13142 check osabi when iterating over arches. Update call to
13143 gdbarch_init_osabi.
13144 (mips_dump_tdep): Don't dump osabi.
13145
13146 * ns32k-tdep.h: Don't include "osabi.h".
13147 (struct gdbarch_tdep): Remove.
13148 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13149 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13150 allocate tdep. Update call to gdbarch_init_osabi.
13151 (ns32k_dump_tdep): Remove.
13152 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13153 * ns32knbsd-tdep.c: Include "osabi.h".
13154
13155 * ppc-tdep.h: Don't include "osabi.h".
13156 (struct gdbarch_tdep): Remove osabi member.
13157 * rs6000-tdep.c: Include "osabi.h".
13158 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13159 osabi when iterating over arches. Update call to
13160 gdbarch_init_osabi.
13161 (rs6000_dump_tdep): Don't dump osabi.
13162 * ppc-linux-tdep.c: Include "osabi.h".
13163 * ppcnbsd-tdep.c: Include "osabi.h".
13164
13165 * sh-tdep.h: Don't include "osabi.h".
13166 (struct gdbarch_tdep): Remove osabi member.
13167 * sh-tdep.c: Include "osabi.h".
13168 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13169 iterate over arches. Update call to gdbarch_init_osabi.
13170 (sh_dump_tdep): Don't dump osabi.
13171 * shnbsd-tdep.c: Include "osabi.h".
13172
13173 * sparc-tdep.c: Include "osabi.h".
13174 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13175 iterate over arches. Update call to gdbarch_init_osabi.
13176 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13177 tdep structure.
13178
13179 * vax-tdep.h: Don't include "osabi.h".
13180 (struct gdbarch_tdep): Remove.
13181 * vax-tdep.c: Include "osabi.h".
13182 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13183 iterate over arches. Don't allocate tdep. Update call
13184 to gdbarch_init_osabi.
13185 (vax_dump_tdep): Remove.
13186 (_initialize_vax_tdep): Update call to gdbarch_register.
13187
13188 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13191 entirely.
13192 (breakpoint_re_set_one): Don't fetch the value for a disabled
13193 watchpoint.
13194
13195 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13196
13197 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13198 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13199 (COERCE_FLOAT_TO_DOUBLE): Remove.
13200 * gdbarch.c: Regenerate.
13201 * gdbarch.h: Regenerate.
13202 * Makefile.in: Remove value_h from gdbarch_h.
13203 * valops.c (coerce_float_to_double): New variable.
13204 (default_coerce_float_to_double): Remove.
13205 (standard_coerce_float_to_double): Remove.
13206 (value_arg_coerce): Use coerce_float_to_double.
13207 (_initialize_valops): Add "set coerce-float-to-double".
13208 * value.h (default_coerce_float_to_double): Remove prototype.
13209 (standard_coerce_float_to_double): Remove prototype.
13210
13211 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13212 prototyped.
13213 * mdebugread.c (parse_symbol): Likewise.
13214 * stabsread.c (define_symbol): Mark all functions as prototyped.
13215
13216 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13217 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13218 set_gdbarch_coerce_float_to_double.
13219 * arm-tdep.c (arm_gdbarch_init): Likewise.
13220 * frv-tdep.c (frv_gdbarch_init): Likewise.
13221 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13222 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13223 * mips-tdep.c (mips_gdbarch_init): Likewise.
13224 (mips_coerce_float_to_double): Remove.
13225 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13226 (rs6000_coerce_float_to_double): Remove.
13227 * s390-tdep.c (s390_gdbarch_init): Likewise.
13228 * sh-tdep.c (sh_gdbarch_init): Likewise.
13229 (sh_coerce_float_to_double): Remove.
13230 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13231 (sparc_coerce_float_to_double): Remove.
13232 * v850-tdep.c (v850_gdbarch_init): Likewise.
13233 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13234 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13235 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13236 (hppa_coerce_float_to_double): Remove prototype.
13237 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13238
13239 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13240
13241 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13242
13243 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13244
13245 Suggested by Stewart Brown <sb24@avaya.com>:
13246 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13247 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13248 (c_type_print_varspec_suffix): Likewise.
13249
13250 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13251
13252 * configure.in: Don't set and AC_SUBST SUBDIRS.
13253 * configure: Regenerated.
13254
13255 * configure.in: Remove code dealing with shared libraries.
13256 * Makefile.in: Remove HLDFLAGS and HLDENV.
13257 * configure: Regenerated.
13258
13259 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13260
13261 * frame.c (deprecated_frame_xmalloc): New function.
13262 (deprecated_set_frame_saved_regs_hack): New function.
13263 (deprecated_set_frame_extra_info_hack): New function.
13264 * frame.h (deprecated_frame_xmalloc): Declare.
13265 (deprecated_set_frame_saved_regs_hack): Declare.
13266 (deprecated_set_frame_extra_info_hack): Declare.
13267
13268 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13269
13270 * configure.in: Move code that provides the --enable-gdbtk option
13271 right after the code that handles the --enable-tui option, and
13272 polish it somewhat.
13273 * configure: Regenerated.
13274
13275 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13276 AC_CHECK_FUNCS and remove the old check for pread64.
13277 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13278 * acconfig.h (_GNU_SOURCE): Add.
13279 (HAVE_PREAD64): Remove.
13280 * configure, aclocal.m4, config.in: Regenerated.
13281
13282 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13283
13284 * alpha-tdep.c: Use get_frame_saved_regs.
13285 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13286 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13287 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13288 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13289 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13290
13291 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13292
13293 * configure.in: Remove all use of the SUBDIRS variable; add
13294 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13295 code providing the --enable-multi-ice option, and move it right in
13296 front of the code that checks whether gdbserver is supported.
13297 Polish that too.
13298 * configure: Regenerated.
13299 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13300 @SUBDIRS@.
13301
13302 2003-01-03 Andrew Cagney <cagney@redhat.com>
13303
13304 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13305 * avr-tdep.c, cris-tdep.c: Ditto.
13306 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13307 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13308
13309 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13310
13311 * configure.in: Remove --enable-netrom option.
13312 * configure: Regenerated.
13313
13314 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13315
13316 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13317 declaration for `struct re_pattern_buffer' instead.
13318 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13319
13320 2003-01-03 J. Brobecker <brobecker@gnat.com>
13321
13322 * mdebugread.c (parse_symbol): Count until the stEnd matching
13323 the structure name.
13324
13325 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13326
13327 * configure.in: Remove --with-cpu option.
13328 subscripts. Remove evil changequotes here.
13329 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13330 * config.in, configure: Regenerated.
13331
13332 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13333 * configure.in: Cleanup section that sources GDB and BFD configure
13334 subscripts. Remove evil changequotes here.
13335 * config.in, configure: Regenerated.
13336
13337 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13338
13339 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13340 frame accessor methods.
13341 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13342 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13343 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13344 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13345 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13346 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13347 * z8k-tdep.c: Ditto.
13348
13349 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13350
13351 * configure.in: Remove UI_OUT configuration code.
13352 * ada-lang.c: Update assuming UI_OUT is always true.
13353 * Makefile.in (UIOUT_CFLAGS): Remove.
13354 * configure: Regenerated.
13355 * TODO: Remove blurb about elimination of -DUI_OUT.
13356
13357 * configure.in: Move code that provides the --enable-gdbcli,
13358 --enable-gdbmi options right before the code that handles the
13359 --enable-tui option. Polish a bit.
13360 * configure: Regenerated.
13361
13362 * configure.in: Rewrite check for GNU regex and the
13363 --without-included regex option, and move it into the "Checks for
13364 library functions" section. This makes us use the system regex
13365 again by default on systems with version 2 of the GNU C library.
13366 This was apparently broken.
13367 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13368 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13369 * config.in, configure: Regenerated.
13370
13371 * configure.in: Move code that provides the --enable-tui option
13372 before the "Checks for libraries" section. Polish the code
13373 somewhat and set need_curses to yes if we build the TUI. Rewrite
13374 code that looks for a library providing termcap functionality to
13375 match more closely what's done in the Readline library, and move
13376 it into to the "Checks for libraries" section.
13377 * configure: Regenerated.
13378 * Makefile.in (TERMCAP): Remove variable.
13379 * config/i386/go32.mh (TERMCAP): Remove variable.
13380
13381 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13382
13383 * MAINTAINERS: Mention gdb_mbuild.sh.
13384 * gdb_mbuild.sh: Rewrite.
13385
13386 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13387
13388 * configure.in: Fix typo in last change.
13389 * config.in, configure: Regenerated.
13390
13391 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13392
13393 * valarith.c (value_binop): Delete obsolete code and comments.
13394 * configure.host: Ditto.
13395 * buildsym.h (make_blockvector): Ditto.
13396 * buildsym.c (make_blockvector): Ditto.
13397 * defs.h (enum language): Ditto.
13398 (chill_demangle): Ditto.
13399 * elfread.c (elf_symtab_read): Ditto.
13400 * dwarfread.c (CHILL_PRODUCER): Ditto.
13401 (set_cu_language): Ditto.
13402 (handle_producer): Ditto.
13403 * expprint.c (print_subexp): Ditto.
13404 * gdbtypes.c (chill_varying_type): Ditto.
13405 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13406 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13407 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13408 (chill_varying_type): Ditto.
13409 * language.h (_LANG_chill): Ditto.
13410 * language.c (binop_result_type, integral_type): Ditto.
13411 (character_type, string_type, structured_type): Ditto.
13412 (lang_bool_type, binop_type_check): Ditto.
13413 * stabsread.h (os9k_stabs): Ditto.
13414 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13415 (define_symbol, read_type, read_struct_fields): Ditto.
13416 (read_array_type, read_enum_type, read_huge_number): Ditto.
13417 (read_range_type, start_stabs): Ditto.
13418 * symfile.c (init_filename_language_table): Ditto.
13419 (add_psymbol_with_dem_name_to_list): Ditto.
13420 * symtab.c (symbol_init_language_specific): Ditto.
13421 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13422 * symtab.h (struct general_symbol_info): Ditto.
13423 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13424 * typeprint.c (typedef_print): Ditto.
13425 * utils.c (fprintf_symbol_filtered): Ditto.
13426 * valops.c (value_cast, search_struct_field, value_slice): Delete
13427 obsolete code.
13428 (varying_to_slice): Delete function.
13429 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13430 (varying_to_slice): Delete declaration.
13431 * MAINTAINERS: Update.
13432
13433 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13434
13435 * configure.in: Reorganize "Checks for library functions section"
13436 a bit. Remove check for `btowc' and `isascii' functions.
13437 * configure: Regenerated.
13438
13439 * acconfig.h (_MSE_INT_H): Remove.
13440 * configure.in: Create "Checks for header files" section, and move
13441 appropriate tests there. Don't check for objlist.h, wchar.h,
13442 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13443 misdetection fix. Also add "Checks for types", "Checks for
13444 compiler characteristics" and "Checks for library functions"
13445 sections.
13446 * config.in, configure: Regenerated.
13447
13448 * configure.in: Create "Checks for programs" section, and move
13449 appropriate tests there.
13450
13451 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13452
13453 * configure.in: Create "Checks for libraries" section, and move
13454 appropriate tests there. Cleanup check for wctype in libw. Use
13455 AC_SEARCH_LIBS to see whether we need libsocket.
13456 * configure: Regenerated.
13457
13458 For older changes see ChangeLog-2002
13459 \f
13460 Local Variables:
13461 mode: change-log
13462 left-margin: 8
13463 fill-column: 74
13464 version-control: never
13465 End: