2003-10-19 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-20 Andrew Cagney <cagney@redhat.com>
2
3 * symtab.c: Replace "struct sec" with "struct bfd_section".
4 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
5
6 2003-10-19 Michael Chastain <mec@shout.net>
7
8 * config/djgpp/fnchange.lst: Add lines for:
9 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
10 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
11 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
12
13 2003-10-19 Mark Kettenis <kettenis@gnu.org>
14
15 * amd64fbsd-nat.c (fetch_inferior_registers,
16 store_inferior_registers): Remove functions.
17 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
18
19 2003-10-18 Mark Kettenis <kettenis@gnu.org>
20
21 Add NetBSD/amd64 native configuration:
22 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
23 * amd64nbsd-tdep.c: New file.
24 * amd64nbsd-nat.c: New file.
25 * amd64bsd-nat.c: New file.
26 * config/i386/nbsd64.mh: New file.
27 * config/i386/nbsd64.mt: New file.
28 * configure.host: Add x86_64-*-netbsd*.
29 * configure.tgt: Add x86_64-*-netbsd*.
30 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
31 New targets.
32 * NEWS (New native configurations): Mention NetBSD/amd64.
33
34 2003-10-17 Michael Chastain <mec@shout.net>
35
36 * config/djgpp/fnchange.lst: Remove dead lines for:
37 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
38 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
39 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
40 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
41 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
42 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
43 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
44 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
45 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
46 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
47 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
48 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
49 gdb/config/sparc/tm-sparclite.h,
50 gdb/gdbtk/generic/ChangeLog-2001,
51 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
52 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
53 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
54 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
55 gdb/testsuite/gdb.mi/mi0-var-block.exp,
56 gdb/testsuite/gdb.mi/mi0-var-child.exp,
57 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
58 gdb/testsuite/gdb.mi/mi0-var-display.exp,
59 itcl/iwidgets3.0.0/demos/extfileselectionbox,
60 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
61 itcl/iwidgets3.0.0/demos/fileselectionbox,
62 itcl/iwidgets3.0.0/demos/fileselectiondialog,
63 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
64 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
65 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
66 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
67 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
68 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
69 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
70 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
71 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
72 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
73 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
74 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
75 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
76 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
77 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
78 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
79 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
80 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
81 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
82 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
83 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
84 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
85 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
86 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
87 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
88 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
89 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
90 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
91 itcl/iwidgets3.0.0/demos/html/shell.n.html,
92 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
93 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
94 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
95 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
96 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
97 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
98 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
99 itcl/iwidgets3.0.0/demos/scrolledcanvas,
100 itcl/iwidgets3.0.0/demos/scrolledframe,
101 itcl/iwidgets3.0.0/demos/scrolledhtml,
102 itcl/iwidgets3.0.0/demos/scrolledlistbox,
103 itcl/iwidgets3.0.0/demos/scrolledtext,
104 itcl/iwidgets3.0.0/demos/selectionbox,
105 itcl/iwidgets3.0.0/demos/selectiondialog,
106 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
107 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
108 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
109 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
110 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
111 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
112 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
113 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
114 itcl/iwidgets3.0.0/doc/scrolledframe.n,
115 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
116 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
117 itcl/iwidgets3.0.0/doc/scrolledtext.n,
118 itcl/iwidgets3.0.0/doc/selectionbox.n,
119 itcl/iwidgets3.0.0/doc/selectiondialog.n,
120 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
121 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
122 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
123 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
124 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
125 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
126 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
127 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
128 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
129 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
130 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
131 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
132 itcl/iwidgets3.0.0/generic/selectionbox.itk,
133 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
134 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
135 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
136 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
137 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
138 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
139 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
140 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
141 itcl/iwidgets3.0.0/tests/scrolledframe.test,
142 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
143 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
144 itcl/iwidgets3.0.0/tests/scrolledtext.test,
145 itcl/iwidgets3.0.0/tests/selectionbox.test,
146 itcl/iwidgets3.0.0/tests/selectiondialog.test,
147 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
148 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
149 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
150 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
151 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
152 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
153 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
154 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
155 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
156 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
157 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
158 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
159 tk/mac/tkMacProjects.sit.hqx.
160
161 2003-10-17 Andrew Cagney <cagney@redhat.com>
162
163 * target.c (target_section_by_addr): New function.
164 (do_xfer_memory): Use "target_section_by_addr".
165 * target.h (target_section_by_addr): Declare.
166
167 * target.h (struct target_ops): Add "to_read_partial" and
168 "to_write_partial", delete "to_query".
169 (target_read_partial, target_write_partial): Declare.
170 (target_read, target_write): Declare.
171 (target_query): Delete macro.
172 * target.c (target_read_partial): New function.
173 (target_write_partial, target_read, target_write): New function.
174 (update_current_target): Delete inheritance of "to_query". Add
175 comments about "to_read_partial" and "to_write_partial".
176 (debug_to_partial_read, debug_to_partial_write): New functions.
177 (debug_to_query): Delete function.
178 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
179 instead of "to_query".
180 * remote.c (remote_read_partial): Replace "remote_query".
181 (init_remote_ops): Set "to_read_partial" instead of "to_query".
182 (init_remote_async_ops): Ditto.
183 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
184 "target_read_partial" instead of "target_query".
185 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
186 Use "target_read_partial" instead of "target_query".
187
188 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
189
190 * frame.h (struct frame_id): Add new field: special_addr.
191 (frame_id_build_special): New prototype.
192 * frame.c (frame_id_build_special): New function.
193 (frame_id_build): Change to call frame_id_build_special().
194 (frame_id_eq): Change to also test special_addr field.
195 (frame_id_inner): Update comment.
196
197 2003-10-17 Andrew Cagney <cagney@redhat.com>
198
199 * target.c (update_current_target): Perform the target cleanup.
200 Put the target stack beneath the squashed "current_target".
201 (add_target): Delete disabled call to "cleanup_target".
202 (cleanup_target): Delete function.
203 (push_target, unpush_target): Do not call "cleanup_target".
204
205 2003-10-17 Andrew Cagney <cagney@redhat.com>
206
207 * target.c (target_stack): Change to a static target_ops.
208 (update_current_target): Walk the "struct target_ops" stack.
209 (pop_target, do_xfer_memory, target_info): Ditto.
210 (find_target_beneath): Ditto.
211 (push_target): Rewrite to use the "struct target_ops" stack.
212 (unpush_target): Ditto.
213 * target.h (struct target_stack_item): Delete definition.
214 (target_stack): Delete declaration.
215 (struct target_ops): Add field "beneath".
216
217 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
218
219 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
220 declaration.
221 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
222 (h8300_examine_prologue): Use h8300_normal_mode flag
223 (h8300_gdbarch_init): Set architecture info for normal mode
224
225 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
226
227 * remote.c (remote_protocol_vcont): New variable.
228 (set_remote_protocol_vcont_packet_cmd): New function.
229 (show_remote_protocol_vcont_packet_cmd): New function.
230 (init_all_packet_configs): Handle remote_protocol_vcont.
231 (remote_vcont_probe): New function.
232 (remote_vcont_resume): New function.
233 (remote_resume): Use it.
234 (remote_async_resume): Call remote_resume.
235 (_initialize_remote): Add verbose-resume packet commands.
236
237 2003-10-16 Andrew Cagney <cagney@redhat.com>
238
239 * infrun.c (handle_inferior_event): Add comment about
240 "frame_id_inner" being too weak.
241
242 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
243
244 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
245 second parameter, which is always null. Remove
246 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
247 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
248 accordingly.
249 * somsolib.c (som_solib_create_inferior_hook,
250 som_solib_desire_dynamic_linker_symbols): Update callers.
251 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
252
253 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
254
255 * remote-m32r-sdi.c : New file, interface to m32r on-chip
256 debug interface, SDI (Scalable Debug Interface).
257 * NEWS: Mention m32r SDI protocol was supported.
258 * Makefile.in (remote-m32r-sdi.o): Add build rule.
259 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
260
261 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
262
263 * ia64-linux-tdep.c: Include gdbcore.h.
264 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
265 (ia64_linux_sigcontext_register_addr): Find the address of the
266 sigcontext area stored in the sigframe instead of using
267 a magic offset constant.
268
269 2003-10-15 Andrew Cagney <cagney@redhat.com>
270
271 * remote.c (remote_search): Delete function.
272 * target.h (target_search): Delete disabled macro.
273 (struct target_ops): Delete disabled field "to_search".
274
275 2003-10-14 Kevin Buettner <kevinb@redhat.com>
276
277 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
278 instead of deprecated_inside_entry_file().
279
280 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
281
282 * sh-tdep.c: Fix copy/paste hangover in comment.
283 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
284 mode.
285 (sh3e_sh4_extract_return_value): Ditto.
286
287 2003-10-13 Richard Henderson <rth@redhat.com>
288
289 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
290 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
291 match c_val_print a bit closer.
292
293 2003-10-13 Kevin Buettner <kevinb@redhat.com>
294
295 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
296 (frv_gdbarch_adjust_breakpoint_address): New function.
297 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
298 method.
299
300 2003-10-13 Kevin Buettner <kevinb@redhat.com>
301
302 * breakpoint.h (struct breakpoint): Add new member
303 ``requested_address''.
304 * breakpoint.c (breakpoint_adjustment_warning)
305 (adjust_breakpoint_address): New static functions.
306 (print_it_typical): Issue warning if breakpoint's address is different
307 from its requested address.
308 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
309 (breakpoint_re_set_one): Set breakpoint's
310 ``requested_address'' field. Set ``address'' field to the
311 result of calling adjust_breakpoint_address() on the requested
312 address.
313
314 2003-10-13 Kevin Buettner <kevinb@redhat.com>
315
316 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
317 * gdbarch.h, gdbarch.c: Regenerate.
318
319 2003-10-11 Mark Kettenis <kettenis@gnu.org>
320
321 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
322 TDEP->sc_num_regs.
323
324 * i386fbsd-tdep.c: New file.
325 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
326 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
327 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
328 i386bsd-tdep.c.
329 (_initialize_i386fbsd_tdep): New function.
330 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
331 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
332 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
333 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
334 TDEP->sc_num_regs.
335 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
336 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
337 to initialize TDEP->sc_num_regs.
338 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
339 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
340 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
341 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
342 FreeBSD ELF OS/ABI's here.
343 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
344 (i386fbsd-tdep.o): New target.
345 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
346 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
347
348 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
349 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
350 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
351 in initialization of TDEP->sc_num_regs.
352
353 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
354 (x86_64_init_abi): Initialize regset_from_core_section if
355 appropriate.
356
357 * i386-tdep.c (i386_regset_from_core_section): New function.
358 (i386_gdbarch_init): Initialize regset_from_core_section if
359 appropriate.
360 * i386-tdep.h (i386_regset_from_core_section): New declaration.
361
362 * i386-tdep.h (struct regset): Declare opaque.
363
364 * gdbarch.sh (regset_from_core_section): New method.
365 (struct regset): Declare opaque.
366 * gdbarch.c, gdbarch.h: Regenerated.
367
368 2003-10-11 Alan Modra <amodra@bigpond.net.au>
369
370 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
371 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
372 Correct test for pc within section.
373
374 2003-10-11 Mark Kettenis <kettenis@gnu.org>
375
376 * gdbarch.sh: Remove trailing whitepsace from comments.
377
378 2003-10-08 Roland McGrath <roland@redhat.com>
379
380 * gcore.c (make_mem_sec): Function removed, folded into ...
381 (gcore_create_callback): ... here. To omit a section, clear its
382 SEC_LOAD bit rather than zeroing its size.
383 Omit read-only sections only if they correspond to a known disk file.
384 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
385
386 2003-10-10 Michael Snyder <msnyder@redhat.com>
387
388 * d10v-tdep.c: Fix typo in comment.
389
390 2003-10-10 Andrew Cagney <cagney@redhat.com>
391
392 * rs6000-tdep.c (e500_store_return_value): Delete function.
393 (e500_extract_return_value): Delete function.
394 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
395 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
396 "ppc_sysv_abi_restore_return_value" where applicable.
397 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
398 (ppc_sysv_abi_extract_return_value): Declare.
399 (ppc_sysv_abi_broken_store_return_value): Declare.
400 (ppc_sysv_abi_broken_extract_return_value): Declare.
401 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
402 * ppc-sysv-tdep.c (return_value_convention): Move definition to
403 start of file.
404 (do_ppc_sysv_return_value): New function.
405 (ppc_sysv_abi_extract_return_value): New function.
406 (ppc_sysv_abi_store_return_value): New function.
407 (ppc_sysv_abi_broken_extract_return_value): New function.
408 (ppc_sysv_abi_broken_store_return_value): New function.
409 (ppc_sysv_abi_use_struct_convention): Call
410 do_ppc_sysv_return_value.
411
412 2003-10-10 J. Brobecker <brobecker@gnat.com>
413
414 * blockframe.c (inside_main_func): No longer use symbol_lookup()
415 to lookup the main function symbol.
416
417 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
418
419 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
420 types correctly.
421 (sh_push_dummy_call_fpu): Fix argument passing rules.
422 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
423 float types.
424 (sh3e_sh4_store_return_value): Ditto.
425
426 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
427
428 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
429 comment.
430
431 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
432
433 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
434 more readable code. Accomodate passing of bitfields.
435
436 2003-10-10 Andrew Cagney <cagney@redhat.com>
437
438 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
439 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
440 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
441 * ppc-sysv-tdep.c: Include "gdb_assert.h".
442 (ppc64_sysv_abi_push_dummy_call): New function.
443 (ppc64_sysv_abi_broken_push_dummy_call): New function.
444 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
445 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
446
447 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
448
449 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
450 * README: Ditto.
451 * d10v-tdep.c: Ditto.
452 * h8300-tdep.c: Ditto.
453 * remote-e7000.c: Ditto.
454 * remote-hms.c: Ditto.
455 * ser-e7kpc.c: Ditto.
456 * sh-stub.c: Ditto.
457 * sh-tdep.c: Ditto.
458 * sh-tdep.h: Ditto.
459 * sh3-rom.c: Ditto.
460 * sh64-tdep.c: Ditto.
461 * top.c: Ditto.
462 * wince.c: Ditto.
463 * config/d10v/d10v.mt: Ditto.
464 * config/sh/embed.mt: Ditto.
465 * config/sh/linux.mt: Ditto.
466 * config/sh/tm-linux.h: Ditto.
467 * config/sh/tm-sh.h: Ditto.
468 * config/sh/wince.mt: Ditto.
469
470 2003-10-09 Andrew Cagney <cagney@redhat.com>
471
472 * ppc-tdep.h (struct type): Declare opaque.
473 * x86-64-tdep.h (struct regcache): Declare opaque.
474 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
475 coding style.
476
477 2003-10-09 Andrew Cagney <cagney@redhat.com>
478
479 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
480 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
481 (SOFTWARE_SINGLE_STEP_P): Ditto.
482 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
483 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
484 (SOFTWARE_SINGLE_STEP_P): Ditto.
485 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
486 software_single_step to rs6000_software_single_step.
487
488 2003-10-09 Andrew Cagney <cagney@redhat.com>
489
490 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
491
492 2003-10-09 Michael Snyder <msnyder@redhat.com>
493
494 * frame.h: Fix typo in comment.
495 * dummy-frame.c: Fix typo in comment.
496 * d10v-tdep.c: Random whitespace/comment tweaks.
497
498 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
499
500 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
501 (sh_push_dummy_code): Delete function, it's only used for dummy calls
502 on stack.
503
504 Based on input by Stephen Clarke (stephen.clarke@superh.com):
505 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
506 in detail.
507
508 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
509
510 * remote-mips.c (mips_initialize): Remove unneeded call to
511 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
512
513 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
514
515 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
516 a memory pointer.
517
518 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
519
520 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
521 for any lwp we resume.
522 (running_callback): Add lwps that have pending status events
523 against them to be considered running.
524
525 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
526
527 * m32r-tdep.c : Include "dis-asm.h".
528 * Makefile.in (m32r-tdep.o): Update dependencies.
529
530 2003-10-06 J. Brobecker <brobecker@gnat.com>
531
532 * completer.h (get_gdb_completer_word_break_characters): Delete.
533 * completer.c: include language.h.
534 (gdb_completer_word_break_characters): Delete.
535 (get_gdb_completer_word_break_characters): Delete.
536 (location_completer): Use the word break characters of the current
537 language.
538 (complete_line): Likewise.
539 (line_completion_function): Likewise.
540 (skip_quoted_chars): Likewise.
541 * Makefile.in (completer.o): Add dependency on language.h.
542 * top.c (init_main): Set the readline word break characters
543 to GDB's default word break characters.
544
545 2003-10-06 J. Brobecker <brobecker@gnat.com>
546
547 * language.h (language_defn): new field, la_word_break_characters.
548 * language.c (unknown_language_defn): Set new field to
549 default_word_break_characters.
550 (auto_language_defn): Likewise.
551 (local_language_defn): Likewise.
552 * ada-lang.c (ada_language_defn): Likewise.
553 * c-lang.c (c_language_defn): Likewise.
554 (cplus_language_defn): Likewise.
555 (asm_language_defn): Likewise.
556 (minimal_language_defn): Likewise.
557 * f-lang.c (f_language_defn): Likewise.
558 * jv-lang.c (java_language_defn): Likewise.
559 * m2-lang.c (m2_language_defn): Likewise.
560 * objc-lang.c (objc_language_defn): Likewise.
561 * p-lang.c (pascal_language_defn): Likewise.
562 * scm-lang.c (scm_language_defn): Likewise.
563
564 2003-10-06 Andrew Cagney <cagney@redhat.com>
565
566 * ppc-sysv-tdep.c: Re-indent.
567
568 2003-10-06 J. Brobecker <brobecker@gnat.com>
569
570 * language.h (default_word_break_characters): Add prototype.
571 * language.c (default_word_break_characters): New function.
572
573 2003-10-06 Andreas Schwab <schwab@suse.de>
574
575 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
576 with %eax.
577
578 2003-10-06 Andrew Cagney <cagney@redhat.com>
579
580 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
581 "h8500-tdep.c".
582 (z8k-tdep.o): Delete custom build rule.
583
584 2003-10-06 Andrew Cagney <cagney@redhat.com>
585
586 * Makefile.in: Update all dependencies.
587
588 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
589 No longer list PA as as obsolete candidate. List m32r as
590 broken instead of obsolete.
591
592 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
593 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
594 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
595 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
596 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
597 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
598 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
599 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
600 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
601 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
602 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
603 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
604 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
605 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
606 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
607 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
608 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
609 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
610 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
611 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
612 * config/z8k/z8k.mt: Ditto.
613
614 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
615 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
616 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
617 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
618 sparclite were removed.
619 * configure.host, configure.tgt: Remove corresponding tuples.
620
621 * breakpoint.c, breakpoint.h: Remove obsolete code.
622 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
623 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
624 * stabsread.h, xcoffread.c: Ditto.
625
626 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
627 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
628 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
629 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
630
631 2003-10-06 David Lecomber <dsl@sources.redhat.com>
632
633 * f-valprint.c: Reformatting
634
635 2003-10-06 Mark Kettenis <kettenis@gnu.org>
636
637 * x86-64-tdep.c: Remove duplicate comment.
638
639 * x86-64-tdep.c (x86_64_store_return_value): Don't use
640 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
641 names for return values. This fixes a bug since we looked at %rbx
642 instead of %rdx.
643
644 2003-10-05 Mark Kettenis <kettenis@gnu.org>
645
646 * x86-64-tdep.c: Include "regset.h".
647
648 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
649 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
650 sizeof_fpregset.
651 * i386-tdep.c: Include "regset.h".
652 (i386_supply_gregset): New function.
653 (i386_supply_fpregset): New function.
654 (i386_gdbarch_init): Initialze register set-related members of
655 TDEP.
656 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
657 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
658
659 2003-10-03 Andrew Cagney <cagney@redhat.com>
660
661 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
662 set extract_return_value, store_return_value and
663 use_struct_convention to ppc64_sysv_abi_extract_return_value,
664 ppc64_sysv_abi_store_return_value and
665 ppc64_sysv_abi_use_struct_convention.
666 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
667 (ppc64_sysv_abi_store_return_value): Declare.
668 (ppc64_sysv_abi_use_struct_convention): Declare.
669 * ppc-sysv-tdep.c (enum return_value_convention): Define.
670 (ppc64_sysv_abi_extract_return_value): New function.
671 (ppc64_sysv_abi_store_return_value): New function.
672 (ppc64_sysv_abi_use_struct_convention): New function.
673 (ppc64_sysv_abi_return_value): New function.
674
675 2003-10-03 Andrew Cagney <cagney@redhat.com>
676
677 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
678 convert a descriptor to a function when it's in the ".opd"
679 section.
680
681 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
682
683 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
684 reg_size to keep GCC silent.
685
686 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
687
688 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
689 base for DW_EH_PE_textrel encodings.
690 (read_encoded_value): Add a DW_EH_PE_textrel case.
691 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
692 section.
693
694 2003-10-03 Mark Kettenis <kettenis@gnu.org>
695
696 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
697
698 2003-10-02 Andrew Cagney <cagney@redhat.com>
699
700 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
701 REGISTER_RAW_SIZE.
702 * gdbarch.h, gdbarch.c: Re-generate.
703 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
704 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
705 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
706 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
707 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
708 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
709 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
710 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
711 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
712 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
713 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
714 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
715 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
716 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
717 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
718 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
719
720 2003-10-02 Jim Blandy <jimb@redhat.com>
721
722 * dwarf2read.c (struct die_info): Doc fix.
723
724 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
725
726 * sh-tdep.c: Running thru gdb_indent.sh.
727
728 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
729
730 * sh-tdep.c (sh_justify_value_in_reg): New function.
731 (sh_stack_allocsize): Ditto.
732 (flt_argreg_array): New array used for floating point argument
733 passing.
734 (sh_init_flt_argreg): New function.
735 (sh_next_flt_argreg): Ditto.
736 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
737 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
738 Fix argument passing strategy.
739 (sh_push_dummy_call_nofpu): Ditto.
740
741 2003-10-01 Andrew Cagney <cagney@redhat.com>
742
743 * value.h (register_value_being_returned): Declare. Replace
744 "value_being_returned".
745 * infcall.c (call_function_by_hand): Use
746 register_value_being_returned.
747 * infcmd.c (print_return_value): Call
748 "register_value_being_returned", handle struct return locally.
749 * values.c (register_value_being_returned): New function. Replace
750 "value_being_returned".
751
752 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
753
754 * linux-proc.c (linux_do_registers): New function.
755 (linux_make_note_section): Use linux_do_registers in case of
756 single threaded inferior programs.
757
758 2003-10-01 Andrew Cagney <cagney@redhat.com>
759
760 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
761 use STRUCT_ADDR. When not using "struct return convention", pass
762 "0" to "value_being_returned". Add FIXMEs.
763 * infcmd.c (print_return_value): Pass an explicit 0/1 to
764 value_being_returned. Add comments.
765 * values.c (value_being_returned): Add fixme.
766 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
767 (hppa_value_returned_from_stack): Add FIXME.
768
769 2003-09-30 David Carlton <carlton@kealia.com>
770
771 * dwarf2read.c (struct die_info): Add 'parent' field; replace
772 'has_children' and 'next' by 'child' and 'sibling'.
773 (read_comp_unit): Rework algorithm, breaking body into
774 read_die_and_children and read_die_and_siblings.
775 (read_die_and_children, read_die_and_siblings): New.
776 (read_full_die): Add 'has_children' argument; set it instead of
777 the die's 'has_children' field. Minor formatting cleanup.
778 (free_die_list): Use die->child and die->sibling instead of
779 die->next.
780 (dump_die_list): Ditto.
781 (sibling_die): Use die->sibling.
782 (psymtab_to_symtab_1): Use die's 'child' field in place of its
783 'has_children' and 'next' fields.
784 (process_die, read_file_scope, read_func_scope)
785 (read_lexical_block_scope, read_structure_scope)
786 (read_enumeration, read_array_type, read_common_block)
787 (read_namespace, read_subroutine_type, dump_die): Ditto.
788
789 2003-09-30 Andrew Cagney <cagney@redhat.com>
790
791 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
792 to 224, not 220.
793
794 2003-09-30 Andrew Cagney <cagney@redhat.com>
795
796 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
797 REGISTER_VIRTUAL_SIZE.
798 * gdbarch.h, gdbarch.c: Regenerate.
799 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
800 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
801 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
802
803 2003-09-29 Andrew Cagney <cagney@redhat.com>
804
805 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
806 DEPRECATED_REGISTER_VIRTUAL_TYPE.
807 * gdbarch.h, gdbarch.c: Regenerate.
808 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
809 * sh64-tdep.c, sparc-tdep.c: Update.
810
811 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
812 * remote-vxmips.c (vx_read_register): Ditto.
813 * remote-vx68.c (vx_read_register): Ditto.
814 * gnu-nat.c (inf_validate_procs): Ditto.
815
816 2003-09-29 J. Brobecker <brobecker@gnat.com>
817
818 * infcall.c (call_function_by_hand): Fix build failure
819 introduced in the previous change to this file.
820
821 2003-09-29 Andrew Cagney <cagney@redhat.com>
822
823 * NEWS: Mention Objective-C.
824
825 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
826
827 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
828 test if the register has been saved on the stack.
829 (arm_scan_prologue_cache): When analysing the instruction
830 "str lr, [sp, #-4]", save the address where lr has been stored.
831
832 2003-09-28 Andrew Cagney <cagney@redhat.com>
833
834 * frame.c (frame_read_unsigned_register): Delete function.
835 * frame.h (frame_read_unsigned_register): Delete declaration.
836 * sparc-tdep.c (sparc_init_extra_frame_info): Use
837 get_frame_register_unsigned.
838 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
839 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
840 * d10v-tdep.c (d10v_print_registers_info): Ditto.
841
842 * frame.h (frame_read_register): Delete declaration.
843 * frame.c (frame_read_register): Delete function.
844 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
845 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
846 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
847 * mips-tdep.c (mips_register_to_value): Ditto.
848 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
849 * d10v-tdep.c (d10v_print_registers_info): Ditto.
850
851 * frame.c (frame_read_signed_register): Delete function.
852 (frame_read_unsigned_register): Update comments.
853 * frame.h (frame_read_signed_register): Delete declaration.
854 * h8300-tdep.c (h8300_print_register): Use
855 get_frame_register_signed.
856 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
857
858 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
859 Rename VALUE_RETURNED_FROM_STACK.
860 * infcmd.c (print_return_value): Update.
861 * infcall.c (call_function_by_hand): Update.
862
863 2003-09-28 Mark Kettenis <kettenis@gnu.org>
864
865 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
866 regcache argument and reverse the order of the other two
867 arguments. Remove local regcache variable. Determine
868 architecture from REGCACHE. Update comments.
869 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
870 reverse the order of the other two arguments. Remove local
871 regcache variable. Determine architecture from REGCACHE. Update
872 comments.
873 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
874 prototypes. Update comments.
875 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
876 comment.
877 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
878 Update.
879 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
880 * i386-interix-nat.c (supply_fpregset): Update.
881 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
882 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
883 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
884 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
885 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
886 Update.
887 * i386obsd-tdep.c (fetch_core_registers): Update.
888 * i386v4-nat.c (supply_fpregset): Update.
889 * x86-64-linux-nat.c (supply_fpregset): Update.
890 * x86-64-linux-tdep.c (fetch_core_registers): Update.
891
892 2003-09-27 Mark Kettenis <kettenis@gnu.org>
893
894 * i386-tdep.h: Put opaque declarations in alphabetical
895 order. Remove spurious whitespace.
896 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
897 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
898 * i386-tdep.c (MM0_REGNUM): Remove define.
899 (i386_mmx_regnum_p): Add gdbarch argument.
900 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
901 Rewrite using new macro definitions for FPU/SSE registers.
902 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
903 definitions from i387-tdep.h.
904 (i386_register_name): Update.
905 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
906 new macro definitions for FPU/SSE registers.
907 (i386_extract_return_value): Determine whether floating-point
908 registers are present by examining REGCACHE's architecture.
909 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
910 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
911 FPU/SSE registers.
912 (i386_register_type): Update.
913 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
914 definitions for FPU registers. Use REGCACHE's architecture to
915 determine the appropriate register numbers.
916 (i386_pseudo_register_read, i386_pseudo_register_write,
917 i386_register_reggroup_p): Update.
918 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
919 TDEP->mm0_regnum.
920 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
921 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
922 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
923 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
924 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
925 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
926 *' to `void *'.
927 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
928 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
929 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
930 definitions for FPU/SSE registers.
931 (FXSAVE_MXCSR_ADDR): New define.
932 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
933 TDEP->mm0_regnum.
934 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
935 (I387_ST0_REGNUM): Define.
936
937 * regcache.h (get_regcache_arch): New prototype.
938 * regcache.c (get_regcache_arch): New function.
939
940 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
941 whitespace.
942
943 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
944 Initialize using ARRAY_SIZE.
945
946 2003-09-27 Andrew Cagney <cagney@redhat.com>
947
948 * arch-utils.c (deprecated_init_frame_pc_default): Rename
949 "init_frame_pc_default".
950 * arch-utils.h (deprecated_init_frame_pc_default): Update.
951 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
952 * vax-tdep.c (vax_gdbarch_init): Update.
953 * v850-tdep.c (v850_gdbarch_init): Update.
954 * sh64-tdep.c (sh64_gdbarch_init): Update.
955 * s390-tdep.c (s390_gdbarch_init): Update.
956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
957 * mcore-tdep.c (mcore_gdbarch_init): Update.
958 * h8300-tdep.c (h8300_gdbarch_init): Update.
959 * cris-tdep.c (cris_gdbarch_init): Update.
960 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
961
962 2003-09-26 Mark Kettenis <kettenis@gnu.org>
963
964 * regset.h: New file.
965 * Makefile.in (regset_h): Add.
966
967 2003-09-25 Andrew Cagney <cagney@redhat.com>
968
969 * frame.h (deprecated_frame_saved_regs): Rename
970 get_frame_saved_regs.
971 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
972 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
973 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
974 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
975 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
976
977 2003-09-25 Andrew Cagney <cagney@redhat.com>
978
979 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
980 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
981 and Java.
982 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
983 arm*-*-* do not use the new frame code.
984
985 2003-09-25 David Carlton <carlton@kealia.com>
986
987 * c-exp.y: Remove 'register' declarations.
988 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
989
990 2003-09-25 David Carlton <carlton@kealia.com>
991
992 * c-exp.y: Include cp-support.h. Add qualified_type.
993 (yylex): Delete nested type hack; add comments.
994 * cp-namespace.c (cp_lookup_nested_type): New function.
995 * cp-support.h: Declare cp_lookup_nested_type.
996 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
997 instead of value_struct_elt_for_reference.
998 * valops.c: Include cp-support.h.
999 (value_aggregate_elt): New function.
1000 (value_namespace_elt): Ditto.
1001 (value_struct_elt_for_reference): Make static.
1002 * value.h: Delete declaration of value_struct_elt_for_reference;
1003 add declaration for value_aggregate_elt.
1004 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
1005 (valops.o): Ditto.
1006
1007 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
1008
1009 * stack.c: Include "reggroups.h".
1010 (frame_info): Only display registers in all_reggroup.
1011 * Makefile.in (stack.o): Update dependencies.
1012
1013 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1014
1015 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
1016 "add ip, sp #n" in the prologue.
1017 (arm_scan_prologue): Ditto.
1018
1019 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
1020
1021 * MAINTAINERS (write after approval): Add myself.
1022
1023 2003-09-25 Andreas Schwab <schwab@suse.de>
1024
1025 * m68k-tdep.c: Include "dwarf2-frame.h".
1026 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
1027 * Makefile.in (m68k-tdep.o): Update dependencies.
1028
1029 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
1030
1031 * sh-tdep.c (struct frame_extra_info): Remove.
1032 (struct sh_frame_cache): New structure.
1033 (GET_SOURCE_REG): New macro extracting source register of an opcode.
1034 (GET_TARGET_REG): Ditto but target register.
1035 (GET_PUSHED_REG): Remove.
1036 (IS_MOV_ARG_TO_REG): New macro.
1037 (IS_MOV_ARG_TO_IND_R14): New macro.
1038 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
1039 (IS_MOVW_PCREL_TO_REG): New macro.
1040 (IS_MOVL_PCREL_TO_REG): New macro.
1041 (IS_SUB_REG_FROM_SP): New macro.
1042 (IS_ARG_MOV): Remove.
1043 (IS_MOV_TO_R14): Remove.
1044 (IS_RESTORE_FP): New macro.
1045 (IS_RTS): New macro.
1046 (IS_LDS): New macro.
1047 (IS_MOV_FP_SP): New macro.
1048 (IS_ADD_REG_TO_FP): New macro.
1049 (IS_ADD_IMM_FP): New macro.
1050 (sh_skip_prologue_hard_way): Remove.
1051 (sh_saved_pc_after_call): Remove.
1052 (sh_frame_chain): Remove.
1053 (sh_find_callers_reg): Remove.
1054 (sh_nofp_frame_init_saved_regs): Remove.
1055 (sh_fp_frame_init_saved_regs): Remove.
1056 (sh_init_extra_frame_info): Remove.
1057 (sh_analyze_prologue): New function.
1058 (sh_skip_prologue): Remove deprecated code. Rely on new function
1059 sh_analyze_prologue when after_prologue fails.
1060 (sh_frame_saved_pc): Remove.
1061 (sh_alloc_frame_cache): New function.
1062 (sh_frame_cache): Ditto.
1063 (sh_frame_prev_register): Ditto.
1064 (sh_frame_this_id): Ditto.
1065 (sh_frame_unwind): New structure defining the heuristic frame
1066 sniffer interface.
1067 (sh_frame_sniffer): New function.
1068 (sh_unwind_sp): Ditto.
1069 (sh_unwind_pc): Ditto.
1070 (sh_unwind_dummy_id): Ditto.
1071 (sh_frame_base_address): Ditto.
1072 (sh_frame_base): New structure defining new frame base code.
1073 (sh_in_function_epilogue_p): New function.
1074 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
1075 code and to call all new code instead. Initialize dwarf2 and
1076 heuristic frame sniffer.
1077
1078 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1079
1080 * parser-defs.h (struct exp_descriptor): New definition, containing
1081 language-specific info for printing, prefixifying, dumping, and
1082 evaluating expressions.
1083 (exp_descriptor_standard): Declare new variable.
1084 (print_subexp): Make global and declare here (from expprint.c).
1085 (dump_subexp): Ditto.
1086 (dump_subexp_body_standard): Declare.
1087 (operator_length_standard): Declare.
1088 (op_name_standard): Declare.
1089 (print_subexp): Declare.
1090 (print_subexp_standard): Declare.
1091
1092 * language.h (struct language_defn): Add la_exp_desc field to hold
1093 pointer to table for language-specific operators.
1094 Remove evaluate_exp field, which is now in struct exp_descriptor.
1095
1096 * parse.c (operator_length): Move most code to new
1097 operator_length_standard function. Use language-specific information.
1098 (operator_length_standard): New function taking most code from
1099 operator_length.
1100 (exp_descriptor_standard): New constant.
1101
1102 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
1103 and OP_EXTENDED_LAST.
1104
1105 * expprint.c (print_subexp): Use language-specific print_subexp.
1106 Make global; remove static declaration.
1107 Move most code to print_subexp_standard.
1108 (print_subexp_standard): New function, containing code formerly in
1109 print_subexp.
1110 (op_name): Add expression to argument signature.
1111 Use langauge-specific op_name.
1112 Move most code to op_name_standard.
1113 (op_name_standard): New function, containing code formerly in op_name.
1114 (dump_subexp): Use new version of op_name function.
1115 Use language-specific dump_subexp_body, and move most existing code to
1116 dump_subexp_body_standard.
1117 (dump_raw_expression): Use new op_name interface.
1118 (dump_subexp_body): Move most code to dump_subexp_body_standard.
1119 (dump_subexp_body_standard): New function, containing code formerly
1120 in dump_subexp_body.
1121
1122 * language.c (unknown_language): Add default la_exp_desc field and
1123 remove evaluate_exp field.
1124 (auto_language): Ditto.
1125 (local_language): Ditto.
1126 * f-lang.c (f_language_defn): Ditto.
1127 * c-lang.c (c_language_defn): Ditto.
1128 (cplus_language_defn): Ditto.
1129 (asm_language_defn): Ditto.
1130 (minimal_language_defn): Ditto.
1131 * p-lang.c (pascal_language_defn): Ditto.
1132 * m2-lang.c (m2_language_defn): Ditto.
1133 * objc-lang.c (objc_language_defn): Ditto.
1134
1135 * jv-lang.c (exp_descriptor_java): New variable, containing
1136 Java-specific expression evaluator.
1137 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
1138 field.
1139 * scm-lang.c (exp_descriptor_scm): New variable, containing
1140 Scheme-specific expression evaluator.
1141 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
1142 field.
1143 * objc-lang.c (print_object_command): Take evaluate_exp from the
1144 la_exp_desc field.
1145
1146 * Makefile.in (eval.o): Add dependency on parser-defs.h.
1147
1148 * eval.c: Include parser-defs.h for the full declaration of
1149 la_exp_desc's type.
1150 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
1151
1152 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
1153
1154 * parser-defs.h (operator_length): Declare.
1155
1156 * parse.c (length_of_subexp): Use operator_length to get operator
1157 lengths and arities for operators.
1158 Move most code to new operator_length function.
1159 (operator_length): New function absorbing most code from
1160 length_of_subexp.
1161 (prefixify_subexp): Remove large case and use operator_length instead.
1162 (parse_exp_1): Use renamings:
1163 dump_prefix_expression => dump_raw_expression and
1164 dump_postfix_expression => dump_prefix_expression.
1165
1166 * expression.h (dump_prefix_expression): Rename to ...
1167 (dump_raw_expression): New name.
1168 (dump_postfix_expression): Rename to ...
1169 (dump_prefix_expression): New name.
1170
1171 * expprint.c (dump_subexp): Make global. Add comment.
1172 Move most existing code to dump_subexp_body.
1173 (dump_subexp_body): New function.
1174 (dump_prefix_expression): Rename to dump_raw_expression.
1175 Remove attempt to print the expression via print_expression: it can't
1176 work before the expression is prefixified.
1177 (dump_raw_expression): Renamed from dump_prefix_expression.
1178 (dump_postfix_expression): Rename to dump_prefix_expression, since
1179 that's what it does.
1180 Remove 'note' parameter, since this routine must be used on
1181 prefixified expression.
1182 (dump_prefix_expression): Renamed from dump_postfix_expression.
1183
1184 2003-09-22 Jim Blandy <jimb@redhat.com>
1185
1186 * dwarf2read.c (read_array_type): When building the type for an
1187 array of unspecified length, make sure to choose the upper bound
1188 so that the array's total length comes out to be zero --- that's
1189 how we represent such arrays.
1190
1191 2003-09-22 Michael Chastain <mec@shout.net>
1192
1193 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
1194
1195 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
1196
1197 * top.c (quit_force): Fix indirect call to quit_target so
1198 a struct qt_args pointer is passed.
1199
1200 2003-09-22 Andrew Cagney <cagney@redhat.com>
1201
1202 * arch-utils.h (init_frame_pc_noop): Delete declaration.
1203 * arch-utils.c (init_frame_pc_noop): Delete function.
1204 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1205 "init_frame_pc".
1206 * mips-tdep.c (mips_gdbarch_init): Ditto.
1207 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1208 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1209 declaration.
1210 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1211 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1212 declaration.
1213 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1214
1215 2003-09-22 Anthony Green <green@redhat.com>
1216
1217 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1218 declaration.
1219
1220 2003-09-20 Andrew Cagney <cagney@redhat.com>
1221
1222 * breakpoint.c: Eliminate ARGSUSED.
1223 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1224 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1225 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1226 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1227 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1228 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1229 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1230 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1231 * wince.c, remote-vx.c: Ditto.
1232
1233 * cli/cli-script.c: Remove "register" attributes.
1234 * config/pa/tm-hppa.h: Ditto.
1235 * cli/cli-decode.c: Ditto.
1236 * cli/cli-cmds.c: Ditto.
1237
1238 2003-09-19 Andrew Cagney <cagney@redhat.com>
1239
1240 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1241 DEPRECATED_NPC_REGNUM.
1242 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1243
1244 2003-09-19 Christopher Faylor <cgf@redhat.com>
1245
1246 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1247
1248 2003-09-19 Jim Blandy <jimb@redhat.com>
1249
1250 * macrotab.c (macro_include): Use the correct comparison to find
1251 the appropriate place for this inclusion in the list.
1252
1253 2003-09-19 Andrew Cagney <cagney@redhat.com>
1254
1255 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1256 (DEPRECATED_HPUX_TEXT_END): Define.
1257 (deprecated_hpux_text_end): Declare.
1258 (struct target_ops): Declare opaque.
1259 * hppah-nat.c (text_end): Make static.
1260 (deprecated_hpux_text_end): New function.
1261 * exec.c (text_end): Delete global variable.
1262 (NEED_TEXT_START_END): Do not define.
1263 (exec_file_attach): Replace code computing "text_end" code with
1264 call to DEPRECATED_HPUX_TEXT_END.
1265
1266 2003-09-19 Andrew Cagney <cagney@redhat.com>
1267
1268 * utils.c (align_up, align_down): New functions.
1269 * defs.h (align_up, align_down): Declare.
1270 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1271 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1272 and "align_down".
1273 (round_up, round_down): Delete functions.
1274 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1275 "align_down".
1276 (ROUND_DOWN, ROUND_UP): Delete macros.
1277 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1278 * h8300-tdep.c: Replace "round_up" and "round_down" with
1279 "align_up" and "align_down".
1280 (round_up, round_down): Delete macros.
1281 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1282 "align_down".
1283 (ROUND_UP, ROUND_DOWN): Delete macros.
1284
1285 2003-09-18 J. Brobecker <brobecker@gnat.com>
1286
1287 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1288 hard-coded constant. Use the proper machine name instead.
1289
1290 2003-09-17 Andrew Cagney <cagney@redhat.com>
1291
1292 * sparc-tdep.c (legacy_register_name): Delete function.
1293 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1294 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1295 * infcmd.c (gdb_register_name): Delete variable.
1296 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1297 REGISTER_NAME and "tm.h".
1298 * gdbarch.h, gdbarch.c: Regenerate.
1299 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1300 REGISTER_NAMES in comments.
1301 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1302 * m68klinux-nat.c (regmap): Ditto.
1303
1304 2003-09-17 Jim Blandy <jimb@redhat.com>
1305
1306 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1307
1308 2003-09-17 Andrew Cagney <cagney@redhat.com>
1309
1310 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1311 (ppcnbsd_init_abi): Set "use_struct_convention" to
1312 "ppcnbsd_use_struct_convention".
1313
1314 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1315
1316 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1317 * gdbarch.h, gdbarch.c: Regenerate.
1318 (stabs_argument_has_addr): New architecture method.
1319 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1320 * arch-utils.c: Include "buildsym.h".
1321 (default_stabs_argument_has_addr): New function.
1322 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1323 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1324
1325 2003-09-17 Andrew Cagney <cagney@redhat.com>
1326
1327 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1328 * gdbarch.h, gdbarch.c: Regenerate.
1329 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1330 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1331 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1332 * sparcnbsd-tdep.c: Update.
1333
1334 2003-09-17 Andrew Cagney <cagney@redhat.com>
1335
1336 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1337 * gdbarch.h, gdbarch.c: Regenerate.
1338 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1339 * d10v-tdep.c, frame.c: Update.
1340 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1341 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1342 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1343 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1344 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1345 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1346 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1347 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1348 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1349 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1350 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1351 * config/pa/nm-hppah.h: Update.
1352
1353 2003-09-16 Andrew Cagney <cagney@redhat.com>
1354
1355 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1356 "use_struct_convention" to "ppc_linux_use_struct_convention".
1357 (ppc_linux_use_struct_convention): New function.
1358 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1359 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1360 "rs6000_use_struct_convention".
1361 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1362 declaration.
1363 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1364 Delete function.
1365
1366 2003-09-16 Andrew Cagney <cagney@redhat.com>
1367
1368 * buildsym.c: Remove more occurances of "register".
1369 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1370 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1371 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1372 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1373 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1374 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1375 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1376 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1377
1378 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1379
1380 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1381 numbers to enumeration values.
1382 * sh-tdep.c: Accomodate above change.
1383 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1384 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1385 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1386 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1387 (IS_FPUSH): Rename from IS_FMOV.
1388 (sh_extract_struct_value_address): Remove useless comment.
1389 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1390 instead of own local values.
1391 (sh_dump_tdep): Remove.
1392 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1393 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1394
1395 2003-09-15 Andrew Cagney <cagney@redhat.com>
1396
1397 * doublest.c (convert_floatformat_to_doublest): No longer need to
1398 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1399
1400 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1401
1402 * values.c (unpack_double): Call floatformat_is_valid.
1403
1404 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1405
1406 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1407 ps_strings into a long.
1408
1409 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1410 _initialize_am64fbsd_nat.
1411
1412 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1413
1414 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1415 associated with DW_AT_ranges attribute is out of bounds.
1416
1417 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1418
1419 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1420
1421 2003-09-14 Michael Chastain <mec@shout.net>
1422
1423 * config/m68k/nm-apollo68v.h: Delete.
1424 * config/m68k/xm-apollo68v.h: Delete.
1425
1426 2003-09-14 Andrew Cagney <cagney@redhat.com>
1427
1428 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1429 * dcache.c: Update copyrights and descriptions.
1430 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1431
1432 2003-09-14 Andrew Cagney <cagney@redhat.com>
1433
1434 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1435 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1436
1437 2003-09-14 Andrew Cagney <cagney@redhat.com>
1438
1439 * alpha-nat.c: Remove some occurances of "register".
1440 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1441 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1442 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1443 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1444 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1445 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1446 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1447 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1448 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1449 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1450 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1451 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1452 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1453 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1454 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1455 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1456 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1457 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1458 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1459 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1460 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1461 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1462
1463 2003-09-13 Andrew Cagney <cagney@redhat.com>
1464
1465 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1466 * ppc-tdep.h (struct regcache): Declare opaque.
1467 * objfiles.h (struct objfile_data): Declare opaque.
1468 * cp-support.h (struct objfile): Declare opaque.
1469 * linux-nat.h (target_waitstatus): Declare opaque.
1470
1471 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1472
1473 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1474 (stabs_argument_has_addr): New architecture method.
1475 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1476 * arch-utils.c: Include "buildsym.h".
1477 (default_stabs_argument_has_addr): New function.
1478 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1479 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1480
1481 * cris-tdep.c (cris_gdbarch_init): Set
1482 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1483 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1484 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1485 * mips-tdep.c (mips_gdbarch_init): Likewise.
1486 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1487 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1488
1489 2003-09-13 Andrew Cagney <cagney@redhat.com>
1490
1491 * values.c (using_struct_return): Delete "function" and "funcaddr"
1492 parameters.
1493 * value.h (using_struct_return): Update declaration.
1494 * infcmd.c (finish_command_continuation): Update.
1495 (finish_command): Update.
1496 * infcall.c (call_function_by_hand): Update.
1497 * eval.c (evaluate_subexp_standard): Update.
1498
1499 2003-09-13 Christopher Faylor <cgf@redhat.com>
1500
1501 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1502 SSE registers since gdb will not operate correctly without this.
1503 Restore include file ordering munged in previous change.
1504 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1505
1506 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1507
1508 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1509 REG_STRUCT_HAS_ADDR.
1510 * gdbarch.c, gdbarch.h: Updated.
1511 * infcall.c (call_function_by_hand): Update.
1512 * stabsread.c (define_symbol): Updated.
1513
1514 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1515
1516 2003-09-12 Christopher Faylor <cgf@redhat.com>
1517
1518 * win32-nat.c: Reorganize so that defines used by target headers are
1519 actually defined by the system headers.
1520 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1521 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1522
1523 2003-09-12 Jim Blandy <jimb@redhat.com>
1524
1525 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1526 the file has no .data, .bss, or .rodata sections. Instead wait
1527 until we see a variable alleged to live in one of those sections.
1528
1529 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1530 .bss section, presume that any variables we find live in the
1531 .rodata section.
1532
1533 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1534 offsets for global and static variables.
1535
1536 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1537 symbol types are, by definition, in the .data section, so it is
1538 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1539 If there is no .data section, there should be no N_DATA or N_DATA
1540 | N_EXT symbols.
1541
1542 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1543
1544 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1545 (amd64fbsd_sigcontext_addr): Rewrite.
1546 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1547 with correct values.
1548 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1549 (amd64fbsd_init_abi): Fix typo.
1550
1551 2003-09-12 Andrew Cagney <cagney@redhat.com>
1552
1553 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1554 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1555
1556 2003-09-12 Andrew Cagney <cagney@redhat.com>
1557
1558 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1559 "entry_file_highpc". Update comments.
1560 * defs.h (deprecated_inside_entry_file): Rename
1561 "inside_entry_file".
1562 * blockframe.c (deprecated_inside_entry_file): Rename
1563 "inside_entry_file".
1564 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1565 * vax-tdep.c (vax_frame_chain): Update.
1566 * sh64-tdep.c (sh64_frame_chain): Update.
1567 * sh-tdep.c (sh_frame_chain): Update.
1568 * rs6000-tdep.c (rs6000_frame_chain): Update.
1569 * ns32k-tdep.c (ns32k_frame_chain): Update.
1570 * mips-tdep.c (mips_frame_chain): Update.
1571 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1572 * m32r-tdep.c (m32r_frame_this_id): Update.
1573 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1574 * frv-tdep.c (frv_frame_this_id): Update.
1575 * d10v-tdep.c (d10v_frame_this_id): Update.
1576 * cris-tdep.c (cris_frame_chain): Update.
1577 * blockframe.c (legacy_frame_chain_valid): Update.
1578 * avr-tdep.c (avr_frame_this_id): Update.
1579 * arm-tdep.c (arm_prologue_this_id): Update.
1580 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1581 * objfiles.c (objfile_relocate): Update.
1582 * mipsread.c (mipscoff_symfile_read): Update.
1583 (mipscoff_symfile_read): Update.
1584 * mdebugread.c (parse_partial_symbols): Update.
1585 * dwarfread.c (read_file_scope): Update.
1586 * dwarf2read.c (read_file_scope): Update.
1587 * dbxread.c (read_dbx_symtab): Update.
1588 (read_dbx_symtab): Update.
1589 * coffread.c (complete_symtab): Update.
1590
1591 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1592
1593 * top.c (quit_target): New static helper function.
1594 (quit_force): Moved code to quit_target(). Call quit_target()
1595 via catch_errors() to catch errors during quit.
1596
1597 2003-09-11 David Carlton <carlton@kealia.com>
1598
1599 * buildsym.c (finish_block): Use allocate_block to allocate the
1600 block.
1601 * mdebugread.c (new_block): Add FIXME.
1602
1603 2003-09-11 David Carlton <carlton@kealia.com>
1604
1605 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1606 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1607 (recursive_dump_type): Ditto.
1608 * printcmd.c (print_formatted): Ditto.
1609 * typeprint.c (print_type_scalar): Ditto.
1610 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1611 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1612 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1613 maint_cplus_cmd_list.
1614 * cp-support.c: Make maint_cplus_cmd_list extern.
1615 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1616 command.h.
1617 (lookup_symbol_file): Look in possible namespace blocks when
1618 appropriate.
1619 (initialize_namespace_symtab): New.
1620 (get_possible_namespace_block, free_namespace_block)
1621 (check_possible_namespace_symbols)
1622 (check_possible_namespace_symbols_loop)
1623 (check_one_possible_namespace_symbol)
1624 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1625 (_initialize_cp_namespace): Ditto.
1626 * block.h: Declare allocate_block.
1627 * block.c (allocate_block): New.
1628 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1629 allocate_block.
1630 * symfile.h: Update declaration of add_psymbol_to_list.
1631 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1632 question.
1633 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1634 scan_partial_symbols_call.
1635 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1636 helper functions.
1637 (add_partial_symbol): If necessary, scan mangled names for names
1638 of namespaces.
1639 (add_partial_namespace): Add NAMESPACE argument; generate partial
1640 symbols associated to namespaces.
1641 (add_partial_enumeration): Add NAMESPACE argument.
1642 (new_symbol): Allow namespace syms.
1643 (read_namespace): Generate namespace syms.
1644 * objfiles.h: Add opaque declaration of struct symtab.
1645 (struct objfile): Add cp_namespace_symtab member.
1646 * objfiles.c (allocate_objfile): Set
1647 objfile->cp_namespace_symtab.
1648 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1649 dictionary_h, command_h.
1650
1651 2003-09-11 Andrew Cagney <cagney@redhat.com>
1652
1653 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1654 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1655 near the function's end.
1656 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1657 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1658 regcache_raw_write_signed to set SP_REGNUM.
1659
1660 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1661
1662 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1663 orig_addrs is set up properly.
1664
1665 2003-09-11 Andrew Cagney <cagney@redhat.com>
1666
1667 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1668 * gdbarch.h, gdbarch.c: Re-generate.
1669 * infcall.c (call_function_by_hand): Update.
1670 * hppa-tdep.c (hppa_push_arguments): Update.
1671 * ada-lang.c (place_on_stack): Update.
1672 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1673 * sparc-tdep.c (sparc_gdbarch_init): Update.
1674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1675 * hppa-tdep.c (hppa_gdbarch_init): Update.
1676 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1677 stack_align.
1678
1679 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1680
1681 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1682 register do need a frame.
1683
1684 2003-09-11 Andrew Cagney <cagney@redhat.com>
1685
1686 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1687 buildable since GDB 5.0.
1688 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1689 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1690 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1691 * irix4-nat.c: Delete file.
1692 * config/mips/irix4.mh: Delete file.
1693 * config/mips/irix3.mh: Delete file.
1694 * config/mips/irix3.mt: Delete file.
1695 * config/mips/tm-irix3.h: Delete file.
1696 * config/mips/nm-irix3.h: Delete file.
1697 * config/mips/xm-irix3.h: Delete file.
1698 * config/mips/nm-irix4.h: Delete file.
1699 * config/mips/xm-irix4.h: Delete file.
1700 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1701
1702 2003-09-10 J. Brobecker <brobecker@gnat.com>
1703
1704 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1705 * Makefile.in (hppa-tdep.o): Update dependencies.
1706
1707 2003-09-10 James E Wilson <wilson@specifixinc.com>
1708
1709 * MAINTAINERS: Change my e-mail address. Move to paper trail
1710 section.
1711
1712 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1713
1714 * MAINTAINERS (frv): New ISA entry.
1715
1716 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1717
1718 * frv-tdep.c (dis-asm.h): Include.
1719 * Makefile.in (frv-tdep.o): Update dependencies.
1720
1721 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1722
1723 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1724 Fix typo for high range of floating registers.
1725
1726 2003-09-09 David Carlton <carlton@kealia.com>
1727
1728 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1729 highpc initialization here out of scan_partial_symbols.
1730 (scan_partial_symbols): Restructure into a recursive version,
1731 calling add_partial_namespace and add_partial_enumeration when
1732 appropriate.
1733 (add_partial_namespace): New.
1734 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1735
1736 2003-09-09 Andrew Cagney <cagney@redhat.com>
1737
1738 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1739 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1740 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1741 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1742
1743 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1744 (rs6000_push_dummy_call): Set the "TOC" register.
1745
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1747 methods "max_register_raw_size", "max_register_virtual_size" or
1748 "register_virtual_size".
1749
1750 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1751
1752 * MAINTAINERS: Update my e-mail address.
1753
1754 2003-09-09 Andrew Cagney <cagney@redhat.com>
1755
1756 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1757 (rs6000_push_dummy_call): Store the struct return address.
1758 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1759
1760 2003-09-09 Andrew Cagney <cagney@redhat.com>
1761
1762 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1763 "ppc_sysv_abi_push_arguments".
1764 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1765 "ppc_sysv_abi_push_arguments".
1766 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1767 instead of "push_arguments".
1768 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1769
1770 2003-09-09 Andrew Cagney <cagney@redhat.com>
1771
1772 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1773 instead of CALL_DUMMY_ADDRESS.
1774
1775 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1776
1777 * p-lang.c: Eliminate "register".
1778 * c-lang.c: Ditto.
1779 * expprint.c: Ditto.
1780 * f-lang.c: Ditto.
1781 * jv-lang.c: Ditto.
1782 * language.c: Ditto.
1783 * m2-lang.c: Ditto.
1784 * parse.c: Ditto.
1785 * scm-lang.c: Ditto.
1786 * objc-lang.c: Ditto.
1787
1788 2003-09-09 Nick Clifton <nickc@redhat.com>
1789
1790 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1791
1792 2003-09-04 Andrew Cagney <cagney@redhat.com>
1793
1794 * avr-tdep.c: Include "dis-asm.h".
1795 * cris-tdep.c: Include "dis-asm.h".
1796 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1797 instead of corresponding typedef.
1798 * h8300-tdep.c: Include "dis-asm.h".
1799 * ia64-tdep.c: Include "dis-asm.h".
1800 * i386-tdep.c: Include "dis-asm.h".
1801 (i386_print_insn): Use "struct disassemble_info" instead of
1802 corresponding typedef.
1803 * m68k-tdep.c: Include "dis-asm.h".
1804 * mcore-tdep.c: Include "dis-asm.h".
1805 * mips-tdep.c: Include "dis-asm.h".
1806 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1807 instead of corresponding typedef.
1808 * ns32k-tdep.c: Include "dis-asm.h".
1809 * s390-tdep.c: Include "dis-asm.h".
1810 * sparc-tdep.c: Include "dis-asm.h".
1811 * vax-tdep.c: Include "dis-asm.h".
1812 * v850-tdep.c: Include "dis-asm.h".
1813 * mn10300-tdep.c: Include "dis-asm.h".
1814 * rs6000-tdep.c: Include "dis-asm.h".
1815 * xstormy16-tdep.c: Include "dis-asm.h".
1816 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1817 print_insn_xstormy16.
1818 * Makefile.in (v850-tdep.o): Update dependencies.
1819 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1820 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1821 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1822 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1823 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1824 (gdbarch_h): Remove $(dis_asm_h).
1825 * disasm.c: Include "dis-asm.h".
1826 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1827 corresponding typedef.
1828 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1829 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1830 * gdbarch.sh: Do not include "dis-asm.h".
1831 (struct disassemble_info): Declare opaque.
1832 (TARGET_PRINT_INSN): Update declaration.
1833 * gdbarch.h, gdbarch.c: Re-generate.
1834
1835 2003-09-08 Andrew Cagney <cagney@redhat.com>
1836
1837 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1838 CALL_DUMMY_ADDRESS, change to a predicate.
1839 * gdbarch.h, gdbarch.c: Re-generate.
1840 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1841 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1842 * infcall.c (call_function_by_hand): Ditto.
1843 * sparc-tdep.c (sparc_push_return_address): Ditto.
1844 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1845 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1846 CALL_DUMMY_ADDRESS with entry_point_address.
1847 * v850-tdep.c (v850_push_return_address): Ditto.
1848 * s390-tdep.c (s390_push_return_address): Ditto.
1849 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1850 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1851 * mcore-tdep.c (mcore_push_return_address): Ditto.
1852 * cris-tdep.c (cris_push_return_address): Ditto.
1853 * arm-tdep.c (arm_push_return_address): Ditto.
1854
1855 2003-09-08 Andrew Cagney <cagney@redhat.com>
1856
1857 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1858 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1859 and REG_UNMODIFIED to REG_SAME_VALUE.
1860 (execute_cfa_program): Update.
1861 (dwarf2_frame_cache): Update. Initialize table to
1862 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1863 location.
1864 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1865
1866 2003-09-08 Andrew Cagney <cagney@redhat.com>
1867
1868 * gnu-nat.c: Remove "inline" function attribute.
1869 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1870
1871 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1872
1873 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1874 target.
1875
1876 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1877
1878 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1879 (frame_extra_info): Rename this struct to frv_unwind_cache.
1880 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1881 Add fields ``prev_sp'' and ``base''.
1882 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1883 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1884 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1885 Delete.
1886 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1887 Revise all callers. Fill in the unwind cache argument and make
1888 other adjustments to account for new frame mechanisms.
1889 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1890 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1891 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1892 (frv_frame_unwind, frv_frame_base): New structs.
1893 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1894 additional arguments expected by this method and adjust function
1895 body accordingly.
1896 (frv_gdbarch_init): Remove calls to the following functions:
1897 set_gdbarch_deprecated_init_frame_pc(),
1898 set_gdbarch_deprecated_saved_pc_after_call(),
1899 set_gdbarch_deprecated_frame_chain(),
1900 set_gdbarch_deprecated_frame_saved_pc(),
1901 set_gdbarch_deprecated_frame_init_saved_regs(),
1902 set_gdbarch_deprecated_push_arguments(),
1903 set_gdbarch_deprecated_push_return_address(),
1904 set_gdbarch_deprecated_pop_frame(),
1905 set_gdbarch_deprecated_call_dummy_words(),
1906 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1907 set_gdbarch_deprecated_init_extra_frame_info(),
1908 set_gdbarch_deprecated_dummy_write_sp(), and
1909 set_gdbarch_deprecated_pc_in_call_dummy().
1910 Add calls to the following functions:
1911 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1912 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1913 frame_base_set_default().
1914 * Makefile.in (frv-tdep.o): Update dependencies.
1915
1916 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1917
1918 * dwarf2-frame.c (read_encoded_value): Add support for
1919 DW_EH_PE_aligned encoding.
1920
1921 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1922
1923 * infrun.c (normal_stop): Don't print a message if the inferior
1924 has exited.
1925
1926 2003-09-08 Jim Blandy <jimb@redhat.com>
1927
1928 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1929 * dbxread.c: #include "gdb_assert.h".
1930 (read_dbx_symtab): If the objfile has no .data section, use the
1931 section index for the .bss section instead.
1932
1933 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1934
1935 * frame.c (deprecated_safe_get_selected_frame): New function.
1936 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1937 * findvar.c (read_var_value): Call it.
1938
1939 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1940
1941 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1942 (sh64-tdep.o): Add dependencies.
1943 * configure.tgt: Add FIXME to sh-*-linux*.
1944 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1945 (sh_gdbarch_init): Always set correct sh_show_regs function
1946 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1947 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1948 * sh64-tdep.c: New file, containing all sh64 related code from
1949 sh-tdep.c.
1950 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1951 * config/sh/linux.mt (TDEPFILES): Ditto.
1952 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1953 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1954 * config/sh/wince.mt (TDEPFILES): Ditto.
1955
1956 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1957
1958 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1959 (stop_wait_callback): Handle !lp->signalled also.
1960 (lin_lwp_has_pending, flush_callback): New functions.
1961 (lin_lwp_wait): Call flush_callback.
1962 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1963 (linux_proc_pending_signals): New function.
1964 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1965
1966 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1967
1968 From Nick Kelsey <nickk@ubicom.com>:
1969 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1970 when the stop PC is at the beginning of a function also.
1971
1972 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1973
1974 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1975 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1976
1977 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1978
1979 * sol-thread.c: Include "gdb_string.h".
1980
1981 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1982
1983 * gcore.c: Reorder include files in alphabetical order. Include
1984 "gdb_assert.h". Various coding style fixes.
1985 (derive_stack_segment, derive_heap_segment): Replace check for
1986 non-null BOTTOM and TOP with gdb_assert.
1987 (derive_heap_segment): Replace check for successful creation of
1988 ZERO with gdb_assert.
1989 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1990
1991 2003-09-04 Andrew Cagney <cagney@redhat.com>
1992
1993 * thread-db.c (verbose_dlsym): New function.
1994 (thread_db_load): Use verbose_dlsym
1995 (thread_db_new_objfile): Print that libthread_db was loaded, and
1996 that thread debugging was enabled.
1997
1998 2003-09-04 Andrew Cagney <cagney@redhat.com>
1999
2000 * configure.tgt: Add "mips64*-*-*" target. Delete
2001 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
2002 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
2003 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
2004 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
2005 mips*-sony-*, and mips64*-*-elf* targets.
2006 * config/mips/embedl.mt: Delete file.
2007 * config/mips/embedl64.mt: Delete file.
2008 * config/mips/mips.mt: Delete file.
2009 * config/mips/mips64.mt: Delete file.
2010 * config/mips/tm-embed.h: Delete file.
2011 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
2012 * config/mips/embed64.mt: Delete out-of-date comment.
2013
2014 2003-09-04 Andrew Cagney <cagney@redhat.com>
2015
2016 * hppa-tdep.c (hppa_gdbarch_init): Set
2017 "have_nonsteppable_watchpoint".
2018 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2019 * mips-tdep.c (mips_dump_tdep): Do not print
2020 HAVE_NONSTEPPABLE_WATCHPOINT.
2021 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
2022 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2023 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2024 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
2025
2026 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2027
2028 * breakpoint.c (watchpoint_check): Remove accidentally checked in
2029 unused code. Add comment.
2030
2031 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
2032
2033 * breakpoint.c (watchpoint_check): Check for pc being in an
2034 epilogue if watchpoint frame couldn't be found.
2035
2036 2003-09-04 Andrew Cagney <cagney@redhat.com>
2037
2038 * Makefile.in: Re-generate all dependencies.
2039
2040 2003-09-03 Andrew Cagney <cagney@redhat.com>
2041
2042 * arch-utils.h (legacy_print_insn): Delete declaration.
2043 * arch-utils.c (legacy_print_insn): Delete function.
2044 * disasm.c (deprecated_tm_print_insn_info): Delete.
2045 (_initialize_disasm): Delete function, contained code initializing
2046 deprecated_tm_print_insn_info.
2047 * gdbarch.sh (deprecated_tm_print_insn): Delete.
2048 (deprecated_tm_print_insn_info): Delete.
2049 (TARGET_PRINT_INSN): Do not provide a default.
2050 * gdbarch.h, gdbarch.c: Re-generate.
2051
2052 2003-09-03 Andrew Cagney <cagney@redhat.com>
2053
2054 * disasm.c (fprintf_disasm): New function.
2055 (gdb_disassemble_info): Call "init_disassemble_info", instead of
2056 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
2057 reverts 2003-08-14 change.
2058 (_initialize_disasm): Call "init_disassemble_info", instead of
2059 INIT_DISASSEMBLE_INFO_NO_ARCH.
2060
2061 2003-09-03 Michael Snyder <msnyder@redhat.com>
2062
2063 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
2064
2065 2003-09-03 Andrew Cagney <cagney@redhat.com>
2066
2067 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
2068 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
2069 * symfile.c (syms_from_objfile): Update.
2070 (reread_symbols): `Update
2071 * exec.c (exec_file_attach): Update.
2072 (exec_file_attach): Update.
2073 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
2074 2003-08-29 change.
2075 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
2076
2077 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2078
2079 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
2080 trad-frame.h.
2081 (arm_get_cache): Delete macro.
2082 (struct arm_prologue_cache): Update comments. Make saved_regs into
2083 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
2084 to prev_sp.
2085 (thumb_scan_prologue): Update for cache changes. Don't call
2086 DEPRECATED_PC_IN_CALL_DUMMY.
2087 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
2088 argument and use it in desperation search for our prologue. Do not
2089 search past the specified PC.
2090 (arm_make_prologue_cache): Simplify.
2091
2092 (arm_prologue_this_id, arm_prologue_prev_register)
2093 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
2094 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
2095 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
2096 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
2097 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
2098
2099 (arm_frame_chain_valid, arm_find_callers_reg)
2100 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
2101 (arm_pop_frame): Delete obsolete methods.
2102 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
2103
2104 (arm_gdbarch_init): Update for new frame methods. Register prologue
2105 and sigtramp unwinders. Set the default frame base method.
2106
2107 * Makefile.in (arm-tdep.o): Update dependencies.
2108 * varobj.c (find_frame_addr_in_frame_chain): Call
2109 get_frame_base_address.
2110 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2111
2112 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2113
2114 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
2115 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
2116 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
2117 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
2118 Take NEXT_FRAME and CACHE arguments. Call
2119 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
2120 Set unwound_pc in CACHE instead of modifying the frame argument.
2121 Don't bother checking the frame type when looking for sigtramp
2122 frames.
2123 (arm_make_prologue_cache, arm_frame_chain)
2124 (arm_init_extra_frame_info): New functions.
2125
2126 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
2127
2128 * arm-tdep.c (arm_get_cache): Define.
2129 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
2130 unwound_sp, unwound_pc, and saved_regs.
2131 (thumb_scan_prologue): Take a cache instead of the frame.
2132 (arm_scan_prologue): Likewise.
2133 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
2134 instead of a temporary frame.
2135 (arm_init_extra_frame_info): Allocate and use a cache.
2136 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
2137
2138 2003-09-03 Andrew Cagney <cagney@redhat.com>
2139
2140 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
2141 * config/mips/wince.mt (TM_CLIBS): Ditto.
2142 * config/sh/wince.mt (TM_CLIBS): Ditto.
2143 * config/pa/hppa64.mt (TM_CLIBS): Delete.
2144 * config/sparc/sp64.mt (CC): Delete.
2145
2146 2003-09-03 Andrew Cagney <cagney@redhat.com>
2147
2148 * defs.h: Do not include "arch-utils.h".
2149 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
2150 GDB_MULTI_ARCH_PURE.
2151 * configure.in (GDB_MULTI_ARCH): Do not define.
2152 * configure, config.in: Regenerate.
2153 * configure.tgt: Do not set variable "gdb_multi_arch".
2154 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
2155 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
2156 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
2157 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
2158 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
2159 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
2160 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
2161 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
2162 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
2163 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
2164 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
2165 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
2166 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
2167 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
2168 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
2169 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
2170 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
2171 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
2172
2173 2003-08-30 Michael Chastain <mec@shout.net>
2174
2175 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
2176 * config/m68k/nm-hp300hpux.h: Delete.
2177 * config/m68k/tm-hp300hpux.h: Delete.
2178 * config/m68k/xm-hp300hpux.h: Delete.
2179 * config/m68k/xm-hp300bsd.h: Delete.
2180 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
2181 tm-hp300hpux.h, xm-hp300hpux.h.
2182 * somsolib.c: Remove comment about hp300 shared libraries.
2183
2184 2003-08-31 Mark Kettenis <kettenis@gnu.org>
2185
2186 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
2187 Only define PTRACE_GET_THREAD_AREA is not already defined.
2188 Various style fixes in code and comments and some additional
2189 spelling fixes in comments. Move after functions dealing with
2190 debug registers.
2191 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
2192 Fix coding-style.
2193
2194 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
2195 frame_unwind_register_unsigned instead of
2196 frame_unwind_unsigned_register.
2197
2198 2003-08-30 Mark Kettenis <kettenis@gnu.org>
2199
2200 * configure.in: Search for gethostbyname in libnsl.
2201 * configure: Regenerated.
2202
2203 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2204
2205 * configure.in: Remove redundant AC_MSG_RESULT in check for
2206 uintptr_t in stdint.h.
2207 * configure: Regenerated.
2208
2209 * amd64-nat.h (struct regcache): Add opaque declaration.
2210
2211 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2212 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2213 Change "register array" to "register cache" in comments.
2214 (x86_64_linux_gregset64_reg_offset): New variable.
2215 (GETREGS_SUPPLIES): Remove macro.
2216 (supply_gregset): Call amd64_supply_native_gregset instead of
2217 x86_64_linux_supply_gregset.
2218 (fill_gregset): Rename `regno' to `regnum'. Call
2219 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2220 (store_regs): Rename `regno' to `regnum'.
2221 (store_fpregs): Rename `regno' to `regnum'.
2222 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2223 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2224 Reorganize function a bit.
2225 (store_inferior_registers): Rename `regno' to `regnum'. Use
2226 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2227 Reorganize function a bit.
2228 (_initialize_x86_64_linux_nat): New function.
2229 * config/i386/x86-64linux.mh.
2230
2231 2003-08-29 Andrew Cagney <cagney@redhat.com>
2232
2233 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2234 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2235 (target_remove_watchpoint): Delete macro.
2236 (target_insert_watchpoint): Delete macro.
2237 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2238 (remote_mips_stopped_by_watchpoint): Delete declaration.
2239 (remote_mips_remove_watchpoint): Delete declaration.
2240 (remote_mips_set_watchpoint): Delete declaration.
2241 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2242 * remote-mips.c (_initialize_remote_mips): Set
2243 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2244 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2245 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2246 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2247 (mips_stopped_by_watchpoint): Rename
2248 remote_mips_stopped_by_watchpoint.
2249 (mips_can_hardware_watchpoint): Rename
2250 remote_mips_can_use_hardware_watchpoint, update function
2251 signature.
2252
2253 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2254
2255 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2256 USER_DS. We haven't given them a register number yet.
2257
2258 * amd64-nat.h: New file.
2259 * amd64-nat.c: New file.
2260 * amd64fbsd-nat.c: Include "amd64-nat.h".
2261 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2262 (amd64fbsd32_r_reg_offset): New variable.
2263 (supply_gregset): Simply call amd64_supply_native_gregset.
2264 (fill_gregset): Rename `regno' to `regnum'. Simply call
2265 amd64_collect_native_gregset.
2266 (fill_fpregset): Rename `regno' to `regnum'.
2267 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2268 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2269 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2270 `fpregset_t'. Call amd64_supply_native_gregset instead of
2271 supply_gregset. Call x86_64_supply_fxsave instead of
2272 supply_fpregset.
2273 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2274 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2275 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2276 `fpregset_t'. Call amd64_collect_native_gregset instead of
2277 fill_gregset. Call x86_64_collect_fxsave instead of
2278 fill_fpregset.
2279 (_initialize_am64fbsd_nat): Initialize
2280 amd64_native_gregset32_reg_offset and
2281 amd64_native_gregset64_reg_offset.
2282 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2283
2284 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2285 null pointer. Fix typo in comment.
2286
2287 * regcache.c (supply_register): Reimplement to call
2288 regcache_raw_supply.
2289 (regcache_collect): Reimplement by calling regcache_raw_collect.
2290
2291 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2292
2293 * regcache.c (register_buffer): Consitify first argument.
2294 (regcache_raw_supply, regcache_raw_collect): New
2295 functions.
2296
2297 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2298
2299 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2300 by Nathan J. Williams.
2301
2302 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2303
2304 * lin-lwp.c (wait_lwp): New function, copied from
2305 stop_wait_callback. Clean up.
2306 (stop_wait_callback): Use wait_lwp.
2307
2308 2003-08-28 Andrew Cagney <cagney@redhat.com>
2309
2310 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2311 flavour and disassembler options.
2312 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2313 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2314 deprecated_tm_print_insn_info.
2315
2316 2003-08-27 Andrew Cagney <cagney@redhat.com>
2317
2318 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2319 Use target_read_memory.
2320 (s390_get_frame_info): Update. Do not reference
2321 deprecated_tm_print_insn_info.
2322 (s390_check_function_end, s390_is_sigreturn): Ditto.
2323
2324 2003-08-27 Andrew Cagney <cagney@redhat.com>
2325
2326 * Makefile.in (cris-tdep.o): Update dependencies.
2327 * cris-tdep.c: Include "gdb_assert.h".
2328 (cris_gdbarch_init): Set print_insn.
2329 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2330 (cris_delayed_get_disassembler): Simplify, directly call the
2331 disassembler returned by cris_get_disassembler.
2332 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2333 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2334 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2335 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2336 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2337 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2338 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2339 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2340 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2341 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2342 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2343 (gdb_print_insn_sparc): Delete function.
2344 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2345 deprecated_tm_print_insn_info.
2346 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2347 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2348 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2350 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2351 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2352 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2353 (s390_gdbarch_init): Set print_insn.
2354
2355 2003-08-27 Andrew Cagney <cagney@redhat.com>
2356
2357 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2358 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2359 * infcall.c (call_function_by_hand): Convert the entry point
2360 address into a code address.
2361
2362 2003-08-27 Andrew Cagney <cagney@redhat.com>
2363
2364 * dsrec.c: Include "gdb_string.h".
2365 * Makefile.in (dsrec.o): Update dependencies.
2366
2367 2003-08-27 Michael Chastain <mec@shout.net>
2368
2369 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2370
2371 2003-08-27 Andrew Cagney <cagney@redhat.com>
2372
2373 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2374 (alpha_osf1_init_abi): Do not set call_dummy_address.
2375
2376 2003-08-27 David Carlton <carlton@kealia.com>
2377
2378 From Randolph Chung <tausq@debian.org>:
2379 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2380 compiles with -Wformat-nonliteral -Werror.
2381
2382 2003-08-26 Jim Blandy <jimb@redhat.com>
2383
2384 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2385 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2386 bfd_lookup_symbol, since we only want symbols in code sections.
2387 (look_for_base): Pass zero as the SECT_FLAGS argument to
2388 bfd_lookup_symbol, since we're not concerned about which section
2389 the symbol is in.
2390
2391 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2392
2393 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2394 we are frameless or the return address register is already known.
2395
2396 2003-08-26 Andrew Cagney <cagney@redhat.com>
2397
2398 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2399 in size. Add comments.
2400
2401 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2402
2403 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2404 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2405
2406 2003-08-26 Jason Merrill <jason@redhat.com>
2407
2408 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2409 case out of #ifdef MIPS block.
2410
2411 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2412
2413 PR java/1322
2414 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2415 available before calling SECT_OFF_TEXT.
2416 * PROBLEMS: Remove description of java/1322.
2417
2418 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2419
2420 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2421 bof, and nat0-nat127 as pseudo-registers.
2422 (ia64_frame_cache): New struct used to cache frame info.
2423 (ia64_register_reggroup_p): New routine used to override default
2424 register grouping so registers without names are still saved and
2425 restored.
2426 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2427 pseudo values.
2428 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2429 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2430 (ia64_alloc_frame_cache): New routine to create a new
2431 ia64_frame_cache.
2432 (examine_prologue): Change prototype to add next_frame pointer.
2433 Assume frameless until otherwise proven. Verify that the cfm for
2434 current frame matches the cfm that should occur for the prologues
2435 alloc insn and if equal, mark as not frameless. At end of routine,
2436 if not frameless, calculate registers for the previous frame and store
2437 in the cache, if a cache is provided.
2438 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2439 and pass 0 for next_frame.
2440 (ia64_store_return_value): Change to use convert_typed_floating()
2441 instead of calling ia64_convert_to_raw().
2442 (ia64_extract_return_value): Change to use convert_typed_floating()
2443 instead of calling ia64_convert_to_virtual().
2444 (ia64_frame_cache): New routine to support new frame model.
2445 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2446 (ia64_frame_sniffer): Ditto.
2447 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2448 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2449 (ia64_sigtramp_frame_prev_register): Ditto.
2450 (ia64_sigtramp_frame_sniffer): Ditto.
2451 (ia64_frame_base_address): Ditto.
2452 (ia64_extract_struct_value_address): Change to issue error message.
2453 (ia64_frame_align): New routine to align sp.
2454 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2455 (ia64_push_arguments): Removed. Logic moved to
2456 ia64_push_dummy_call().
2457 (ia64_push_return_address): Ditto.
2458 (ia64_unwind_dummy_id): New function.
2459 (ia64_unwind_pc): Ditto.
2460 (ia64_convert_register_p): Ditto.
2461 (ia64_register_to_value): Ditto.
2462 (ia64_value_to_register): Ditto.
2463 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2464 (ia64_register_byte, ia64_register_raw_size): Ditto.
2465 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2466 (ia64_saved_pc_after_call): Ditto.
2467 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2468 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2469 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2470 (ia64_register_convert_to_raw): Ditto.
2471 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2472 (ia64_init_extra_frame_info): Ditto.
2473 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2474 (ia64_gdbarch_init): Remove registering of deprecated functions that
2475 are no longer used. Add registration of new gdbarch functions.
2476 Remove registering deprecated_write_sp. Replace
2477 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2478 Delete set_gdbarch_deprecated_register_convertible(),
2479 set_gdbarch_deprecated_register_convert_to_virtual(), and
2480 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2481 set_gdbarch_deprecated_register_size(),
2482 set_gdbarch_deprecated_register_bytes(),
2483 set_gdbarch_pcregnum(),
2484 set_gdbarch_deprecated_register_byte(),
2485 set_gdbarch_deprecated_register_raw_size(),
2486 set_gdbarch_deprecated_max_register_raw_size(),
2487 set_gdbarch_deprecated_register_virtual_size(),
2488 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2489 Replace set_gdbarch_deprecated_extract_return_value() with
2490 set_gdbarch_extract_return_value(). Remove calls to:
2491 set_gdbarch_deprecated_saved_pc_after_call();
2492 set_gdbarch_deprecated_frame_chain(),
2493 set_gdbarch_deprecated_frame_saved_pc(),
2494 set_gdbarch_deprecated_frame_init_saved_regs(),
2495 set_gdbarch_deprecated_get_saved_register(),
2496 set_gdbarch_deprecated_call_dummy_words(),
2497 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2498 set_gdbarch_deprecated_init_extra_frame_info(),
2499 set_gdbarch_deprecated_frame_args_address(),
2500 set_gdbarch_deprecated_frame_locals_address(),
2501 and set_gdbarch_deprecated_dummy_write_sp().
2502 Add set_gdbarch_convert_register_p(),
2503 set_gdbarch_register_to_value(),
2504 set_gdbarch_value_to_register(),
2505 set_gdbarch_push_dummy_call(),
2506 set_gdbarch_frame_align(),
2507 set_gdbarch_unwind_dummy_id(),
2508 set_gdbarch_unwind_pc(),
2509 frame_unwind_append_sniffer(),
2510 frame_unwind_append_sniffer(),
2511 and frame_base_set_default().
2512
2513 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2514
2515 * configure.tgt: Document need for special "mipsisa64" handling.
2516 (mipsisa64*-*-linux64): Handle as target linux64.
2517 (mipsisa64*-*-*): Handle as target embed64.
2518
2519 2003-08-18 Michael Chastain <mec@shout.net>
2520
2521 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2522 objfile bug.
2523
2524 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2525
2526 * i387-tdep.h: Update copyright date.
2527 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2528
2529 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2530 CFLAGS games to reflect reality.
2531
2532 2003-08-24 Andrew Cagney <cagney@redhat.com>
2533
2534 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2535 GDB_MULTI_ARCH is always non-zero.
2536 * osabi.c (_initialize_gdb_osabi): Ditto.
2537 (gdbarch_init_osabi): Ditto.
2538 * sparc-tdep.c: Ditto for #if code.
2539
2540 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2541
2542 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2543 Update comments.
2544 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2545 comments.
2546 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2547 x86_64_supply_fxsave.
2548 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2549 x86_64_supply_fxsave.
2550 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2551 x86_64_supply_fxsave.
2552
2553 2003-08-23 Andreas Jaeger <aj@suse.de>
2554
2555 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2556 i387_supply_fxsave.
2557
2558 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2559
2560 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2561 i387_supply_register.
2562 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2563 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2564 i387_supply_fsave.
2565 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2566 i387_supply_fxsave.
2567 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2568 i387_supply_fsave.
2569 * i386bsd-nat.c (supply_fpregset): Adjust call to
2570 i387_supply_fsave.
2571 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2572 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2573 supply_fpregset.
2574 (store_inferior_registers): Remove extraneous whitespace. Call
2575 i387_fill_fsave instead of fill_fpregset.
2576 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2577 (supply_fpregset): Likewise.
2578 * i386v4-nat.c (supply_fpregset): Adjust call to
2579 i387_supply_fsave.
2580 * i386-interix-nat.c (supply_fpregset): Adjust call to
2581 i387_supply_fsave.
2582 * i386-linux-nat.c (supply_fpregset): Adjust call to
2583 i387_supply_fsave.
2584 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2585 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2586 i387supply_fsave and i387_supply_fxsave.
2587 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2588 Incorporate code from `i387_supply_register.
2589 (i387_supply_register): Remove.
2590 (i387_supply_fxsave): Add `regnum' argument.
2591 Update comments.
2592 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2593 prototype.
2594 (i387_supply_register): remove prototype.
2595 Update comments.
2596
2597 2003-08-22 Michael Chastain <mec@shout.net>
2598
2599 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2600 Add lines for files in gdb/testsuite/gdb.cp/* that are
2601 still not 8.3 unique.
2602
2603 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2604
2605 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2606 TYPE_VPTR_FIELDNO is valid.
2607
2608 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2609
2610 * utils.c (set_width_command): Remove prototypes.
2611 (set_screen_size): New prototype.
2612 (init_page_info): Simplify by fetching the screen size from
2613 Readline. Call set_screen_size.
2614 (set_screen_size): New function.
2615 (set_width): Add missing whitespace in comment.
2616 (set_width_command): Call set_screen_size.
2617 (set_height_command): New function.
2618 (initialize_utils): Fix formatting. Make "set height" command
2619 call set_height_command. Remove redundant code that turns off
2620 pagination if output isn't a terminal. Remove redundant call to
2621 set_width_command.
2622
2623 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2624
2625 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2626 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2627 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2628 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2629 `case' keyword.
2630 (sparc64_register_info): Give the reister with number
2631 SPARC64_STATE_REGNUM a name.
2632 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2633 %asi and %ccr.
2634 (sparc64_push_dummy_call): Take BIAS into account when checking
2635 stcak alignment.
2636 (sparc_software_single_step): Remove assertions that check whether
2637 NPC and NNPC were zero.
2638 (sparc_supply_rwindow): Make public. Merge functionality with
2639 sparc64_supply_rwindow.
2640 (sparc_fill_rwindow): Make public. Merge functionality with
2641 sparc64_fill_rwindow.
2642 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2643 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2644 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2645 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2646 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2647
2648 * reggroups.c: Add whitespace after declarations of local
2649 variables in functions.
2650
2651 2003-08-21 Michael Chastain <mec@shout.net>
2652
2653 * gdbtypes.h: Change array bound type from an int to enum.
2654
2655 2003-08-21 Andrew Cagney <cagney@redhat.com>
2656
2657 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2658 * config/sparc/tm-sparc.h: Ditto.
2659 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2660 unconditionally.
2661 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2662
2663 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2664
2665 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2666 (register_objfile_data, set_objfile_data, objfile_data): New
2667 prototypes.
2668 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2669 prototypes.
2670 (allocate_objfile): Call objfile_alloc_data.
2671 (free_objfile): Call objfile_free_data.
2672 (struct objfile_data): New.
2673 (struct objfile_data_registration): New.
2674 (struct objfile_data_registry): New.
2675 (objfile_data_registry): New variable.
2676 (register_objfile_data): New function.
2677 (objfile_alloc_data, objfile_free_data): New functions.
2678 (set_objfile_data, objfile_data): New functions.
2679 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2680 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2681 (_initialize_dwarf2_frame): New function and prototype.
2682
2683 2003-08-21 Andrew Cagney <cagney@redhat.com>
2684
2685 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2686 a specific architecture.
2687 * arch-utils.h (set_architecture_from_arch_mach): Delete
2688 declaration.
2689 (target_architecture_hook): Delete declaration.
2690 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2691 (default_float_format): Assume GDB_MULTI_ARCH.
2692 (default_double_format): Assume GDB_MULTI_ARCH.
2693 (set_endian_from_file): Delete function.
2694 (arch_ok): Delete function.
2695 (set_arch): Delete function.
2696 (set_architecture_from_arch_mach): Delete function.
2697 (set_architecture_from_file): Delete function.
2698 (set_architecture): Assume GDB_MULTI_ARCH.
2699 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2700
2701 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2702
2703 Rewrite FreeBSD/sparc64 native configuration.
2704 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2705 * sparc64fbsd-nat.c: New file.
2706 * sparc64fbsd-tdep.c: New file.
2707 * sparc64-tdep.c sparc64-tdep.h: New files.
2708 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2709 sparc64fbsd-tdep.o): New dependencies.
2710 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2711 and sparc64fbsd-tdep.c.
2712 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2713 * config/sparc/fbsd.mh: Remove copyright notice.
2714 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2715 sparcbsd-nat.o.
2716 * config/sparc/fbsd.mt: Remove copyright notice.
2717 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2718 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2719 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2720 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2721 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2722 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2723 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2724 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2725 "sparc/tm-sp64.h".
2726 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2727 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2728
2729 2003-08-21 Michael Chastain <mec@shout.net>
2730
2731 * symtab.h: Add doco on the space critical structures and
2732 some measurements of space usage.
2733
2734 2003-08-21 Michael Snyder <msnyder@redhat.com>
2735
2736 * tracepoint.c (trace_dump_command): Trace break address
2737 is subject to DECR_PC_AFTER_BREAK.
2738 (set_traceframe_context): Make "trace_line" an int.
2739 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2740
2741 2003-08-20 Michael Snyder <msnyder@redhat.com>
2742
2743 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2744 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2745 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2746 argument passing.
2747 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2748 functions, replace sh_push_dummy_call.
2749 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2750
2751 2003-08-20 Michael Chastain <mec@shout.net>
2752
2753 * gdbtypes.h (struct main_type): Rearrange to save space.
2754
2755 2003-08-20 Michael Snyder <msnyder@redhat.com>
2756
2757 * trad-frame.c: Comment typo fix.
2758
2759 2003-08-20 Michael Snyder <msnyder@redhat.com>
2760 Kevin Buettner <kevinb@redhat.com>
2761
2762 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2763 (frv_frame_init_saved_regs): Add declaration.
2764 (frame_extra_info): Add new field ``saved_regs''.
2765 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2766 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2767 Update frame related code.
2768 (frv_extract_struct_value_address): Adjust formatting.
2769 * Makefile.in (frv-tdep.o): Update dependencies.
2770 * config/frv/tm-frv.h (target_insert_watchpoint)
2771 (target_remove_watchpoint, target_insert_hw_breakpoint)
2772 (target_remove_hw_breakpoint): Delete these macros.
2773 (remote_insert_watchpoint, remote_remove_watchpoint)
2774 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2775 these declarations.
2776
2777 2003-08-20 Michael Chastain <mec@shout.net>
2778
2779 * defs.h (ENUM_BITFIELD): New macro.
2780 * symtab.h (ENUM_BITFIELD): Use it.
2781 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2782
2783 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2784
2785 * MAINTAINERS (write after approval): Add myself.
2786
2787 2003-08-18 Andrew Cagney <cagney@redhat.com>
2788
2789 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2790 * gdbarch.h, gdbarch.c: Re-generate.
2791 * infcall.c (call_function_by_hand): Adjust the SP by
2792 frame_red_zone_size before allocating any stack space.
2793 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2794 * x86-64-tdep.c (x86_64_frame_align): New function.
2795 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2796
2797 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2798 Remove code adjusting SP so that it skips over the Red Zone.
2799
2800 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2801
2802 * NEWS (New native configurations): Mention FreeBSD/amd64.
2803
2804 2003-08-18 Andrew Cagney <cagney@redhat.com>
2805
2806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2807 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2808 "m68k_frame_p".
2809 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2810
2811 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2812
2813 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2814
2815 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2816
2817 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2818 Define.
2819 * i386-linux-nat.c: Include "linux-nat.h".
2820 (child_post_startup_inferior): New function.
2821
2822 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2823
2824 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2825 at the start of a frameless function. This probably fixes PR
2826 backtrace/1338.
2827
2828 2003-08-17 Michael Chastain <mec@shout.net>
2829
2830 * symfile.c (find_sym_fns): Remove special case for apollo target.
2831
2832 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2833
2834 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2835 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2836 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2837 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2838 (linux_supports_tracevforkdone): New function.
2839 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2840 TRACEVFORKDONE.
2841 (child_follow_fork): Handle vfork.
2842 (linux_handle_extended_wait): Likewise. Also handle exec.
2843 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2844 * NEWS: Mention fork tracing.
2845
2846 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2847
2848 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2849
2850 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2851
2852 * Makefile.in (i386-linux-nat.o): Update dependencies.
2853 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2854 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2855 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2856 * i386-linux-nat.c: Include "linux-nat.h".
2857 (child_post_startup_inferior): New function.
2858 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2859 * infptrace.c (kill_inferior): Wrap in #ifdef.
2860 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2861 attaching to each LWP.
2862 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2863 (init_lin_lwp_ops): Fill in some more operations.
2864 * linux-nat.h (linux_enable_event_reporting)
2865 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2866 prototypes.
2867 * linux-nat.c (linux_enable_event_reporting): New function.
2868 (child_post_attach, linux_child_post_startup_inferior)
2869 (child_post_startup_inferior, child_follow_fork)
2870 (linux_handle_extended_wait, kill_inferior): New functions.
2871
2872 2003-08-16 Andrew Cagney <cagney@redhat.com>
2873
2874 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876
2877 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2878
2879 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2880
2881 2003-08-16 Andrew Cagney <cagney@redhat.com>
2882
2883 * NEWS: Mention that "set prompt-escape-char" was deleted.
2884 * top.c (get_prompt_1): Delete function.
2885 (gdb_prompt_escape):
2886 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2887 prompt-escape-char" command.
2888 (MAX_PROMPT_SIZE): Delete macro.
2889 (get_prompt): Simplify, do not call get_prompt_1.
2890
2891 2003-08-16 Andrew Cagney <cagney@redhat.com>
2892
2893 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2894 -Werror. -Wformat-nonliteral problems.
2895
2896 2003-08-15 J. Brobecker <brobecker@gnat.com>
2897
2898 Further multiarching work mostly for hppa64-*-hpux11:
2899 * hppa-tdep.h: New file.
2900 * hppa-tdep.c: #include hppa-tdep.c.
2901 (hppa32_num_regs): Renamed from hppa_num_regs.
2902 (hppa64_num_regs): New constant.
2903 (hppa64_call_dummy_breakpoint_offset): New constant.
2904 (hppa32_call_dummy_length): New constant.
2905 (hppa64_call_dummy_length): New constant.
2906 (hppa32_stack_align): Make name 32bit explicit.
2907 (hppa32_register_virtual_type): Likewise.
2908 (hppa32_extract_return_value): Likewise.
2909 (hppa32_use_struct_convention): Likewise.
2910 (hppa32_store_return_value): Likewise.
2911 (hppa64_register_virtual_type): New function.
2912 (hppa64_extract_return_value): New function.
2913 (hppa64_use_struct_convention): New function.
2914 (hppa64_store_return_value): New function.
2915 (hppa_frame_locals_address): Remove declaration, function does
2916 not exist anymore.
2917 (hppa_register_byte): Add support for PA64 ABI.
2918 (hppa_gdbarch_init): Add support for PA64 ABI.
2919 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2920 Make name 32bit explicit.
2921 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2922 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2923 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2924 (hppa64_hpux_frame_base_before_sigtramp): New function.
2925 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2926 * config/pa/tm-hppa64.h: Remove macros that are no longer
2927 necessary now that the gdbarch vector is properly setup.
2928 Transform some macros into function calls. Some minor cleanup.
2929 * config/pa/tm-hppah.h: Update function calls in macros
2930 following the function renaming in hppa-hpux-tdep.c.
2931 * Makefile.in (hppa_tdep_h): New variable.
2932 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2933
2934 2003-08-14 Michael Snyder <msnyder@redhat.com>
2935
2936 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2937
2938 2003-08-13 J. Brobecker <brobecker@gnat.com>
2939
2940 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2941 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2942 routine.
2943
2944 2003-08-13 Michael Snyder <msnyder@redhat.com>
2945
2946 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2947 (frv_saved_pc_after_call): Use deprecated ftype.
2948 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2949 (frv_remote_translate_xfer_address): Remove.
2950 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2951
2952 2003-08-13 J. Brobecker <brobecker@gnat.com>
2953
2954 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2955 initialization after the common gdbarch initialization, not before.
2956
2957 2003-08-13 J. Brobecker <brobecker@gnat.com>
2958
2959 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2960 (ADDR_BITS_REMOVE): Remove, redundant.
2961
2962 2003-08-13 J. Brobecker <brobecker@gnat.com>
2963
2964 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2965 gdbarch method to clear the 2 low bits of text addresses.
2966
2967 2003-08-12 Andrew Cagney <cagney@redhat.com>
2968
2969 * Makefile.in (dsrec.o): Update dependencies.
2970 * dsrec.c: Include "gdb_assert.h".
2971 (make_srec): Use snprintf instead of sprintf, use a literal format
2972 string.
2973
2974 2003-08-12 Andrew Cagney <cagney@redhat.com>
2975
2976 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2977 FRAME_OBSTACK_ZALLOC.
2978
2979 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2980
2981 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2982 SSE registers.
2983
2984 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2985
2986 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2987 amd64fbsd_sc_reg_offset): Add extern declarations.
2988 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2989 declarations.
2990
2991 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2992
2993 * MAINTAINERS (write after approval): Update my mail address.
2994
2995 2003-08-10 Andrew Cagney <cagney@redhat.com>
2996
2997 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2998
2999 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3000
3001 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3002 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
3003 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
3004 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
3005 i386bsd_sc_reg_offset): Add extern declarations.
3006 * i386obsd-nat.c: Include "i386-tdep.h"
3007 (_initialize_i386obsd_nat): Remove extern declarations.
3008 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
3009 declarations.
3010 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
3011 declarations.
3012
3013 * i386-tdep.c (i386_register_to_value): Use get_frame_register
3014 instead of frame_read_register.
3015 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
3016 instead of frame_read_register. Use I386_ESP_REGNUM instead of
3017 SP_REGNUM.
3018 (i386_frame_prev_register): Use frame_unwind_register_unsigned
3019 instead of frame_unwind_unsigned_register. Use
3020 I386_EFLAGS_REGISTER instead of PS_REGNUM.
3021 (i386_get_longjmp_target): Use regcache_read_unsigned_register
3022 instead of read_register. Use builtin_type_void_data_ptr instead
3023 of builtin_type_void_func_ptr when extracting the address of the
3024 jmp_buf.
3025 (i386_extract_return_value, i386_store_return_value,
3026 i386_pseudo_register_read, i386_pseudo_register_write): Use
3027 register_size instead REGISTER_RAW_SIZE.
3028
3029 2003-08-10 Andrew Cagney <cagney@redhat.com>
3030
3031 * infcall.c (call_function_by_hand): Use xstrprintf instead of
3032 sprintf. Make "name" constant.
3033
3034 2003-08-10 Mark Kettenis <kettenis@gnu.org>
3035
3036 * i387-tdep.c (i387_register_to_value): Use get_frame_register
3037 instead of frame_read_register.
3038 (i387_print_float_info): Use get_frame_register and
3039 get_frame_register_unsigned instead of frame_register_read.
3040
3041 * i386fbsd-nat.c: Include "i386-tdep.h".
3042 (child_resume): Make `eflags' an ULONGEST. Use
3043 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
3044 instead of register_read and register_write.
3045
3046 * i386bsd-nat.c (fetch_inferior_registers,
3047 store_inferior_registers): Don't use && at the end of a line.
3048 (_initialize_i386bsd_nat): Fix typo.
3049
3050 * frame.c (_initialize_frame): Add missing backslash.
3051
3052 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3053 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
3054 and supply_register instead of manipulating the register buffer
3055 directly.
3056
3057 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
3058 * config/i386/nm-i386sol2.h
3059 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
3060
3061 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
3062 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
3063 instructions that GCC likes to mingle into the prologue. Fixes
3064 gdb/1253 and gdb/1255.
3065
3066 2003-08-09 Andrew Cagney <cagney@redhat.com>
3067
3068 Fix GDB PR cli/926.
3069 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
3070 * command.h (add_setshow_uinteger_cmd): Declare.
3071 * frame.c (set_backtrace_cmd): New function.
3072 (show_backtrace_cmd): New function.
3073 * frame.c (_initialize_frame): Replace "set/show
3074 backtrace-below-main" with "set/show backtrace past-main". Add
3075 command "set/show backtrace limit".
3076 (backtrace_past_main): Rename "backtrace_below_main".
3077 (backtrace_limit): New variable.
3078 (get_prev_frame): Update. Check the backtrace_limit.
3079
3080 2003-08-09 Andrew Cagney <cagney@redhat.com>
3081
3082 * defs.h (xstrprintf): Declare.
3083 * utils.c (xstrprintf): New function.
3084 * breakpoint.c (insert_breakpoints): Replace sprintf and
3085 non-literal format strings, with xstrprintf and cleanups.
3086 (delete_breakpoint,breakpoint_re_set): Ditto.
3087 (commands_command, insert_breakpoints): Ditto.
3088 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
3089 (break_at_finish_command_1): Ditto.
3090
3091 2003-08-09 Andrew Cagney <cagney@redhat.com>
3092
3093 * MAINTAINERS (language support): List Adam Fedor as Objective C
3094 maintainer.
3095
3096 2003-08-08 J. Brobecker <brobecker@gnat.com>
3097
3098 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
3099 are now multiarched.
3100
3101 2003-08-08 J. Brobecker <brobecker@gnat.com>
3102
3103 * config/pa/tm-hppa64.h: Remove lots of macros that are no
3104 longer necessary now that hppa64 is partially multiarch'ed.
3105
3106 2003-08-08 Andrew Cagney <cagney@redhat.com>
3107
3108 * interps.c (interp_set): Check for a NULL "old_interp".
3109
3110 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
3111
3112 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
3113 (install-only): Support DESTDIR.
3114 (uninstall): Likewise.
3115 (install-gdbtk): Likewise.
3116
3117 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
3118
3119 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
3120 contains something meaningful at all times.
3121
3122 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
3123
3124 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
3125
3126 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
3127
3128 * MAINTAINERS (write after approval): Added self.
3129
3130 2003-08-07 Andrew Cagney <cagney@redhat.com>
3131
3132 * inferior.h (AT_SYMBOL): Define.
3133 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
3134 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
3135 * mips-tdep.c (mips_call_dummy_address): Delete function.
3136 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
3137 set call_dummy_address.
3138
3139 2003-08-07 Andrew Cagney <cagney@redhat.com>
3140
3141 * language.c (op_error): Delete function.
3142 (binop_type_check): Delete function.
3143 * language.h (type_op_error, range_op_error): Delete macros.
3144 (op_error): Delete declaration.
3145
3146 2003-08-07 Andrew Cagney <cagney@redhat.com>
3147
3148 * interps.h (INTERP_MI2, INTERP_MI3): Define.
3149
3150 2003-08-07 Michal Ludvig <mludvig@suse.cz>
3151
3152 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
3153 (x86_64_push_arguments): Skip the red zone.
3154
3155 2003-08-05 Andrew Cagney <cagney@redhat.com>
3156
3157 * reggroups.c (reggroup_next): Check for the final entry.
3158
3159 2003-08-04 Andrew Cagney <cagney@redhat.com>
3160
3161 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
3162 * cli/cli-script.c (define_command): Call query directly, instead
3163 of passing it a buffer.
3164 * ocd.c (ocd_error): Pass error a constant format string.
3165 * remote-mips.c (mips_error): Use fputs_filtered.
3166
3167 * solib-svr4.c (_initialize_svr4_solib): Update
3168 register_gdbarch_data call.
3169 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
3170
3171 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
3172 (register_gdbarch_data): Delete "free" parameter. Update
3173 comments.
3174 * gdbarch.h, gdbarch.c: Re-generate.
3175 * reggroups.c (_initialize_reggroup): Update.
3176 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3177 * frame-base.c (_initialize_frame_base): Update.
3178 * frame-unwind.c (_initialize_frame_unwind): Update.
3179 * user-regs.c (_initialize_user_regs): Update.
3180 * remote.c (_initialize_remote): Update.
3181 * regcache.c (_initialize_regcache): Update.
3182
3183 * regcache.c (xfree_regcache_descr): Delete function.
3184 (_initialize_regcache): Update call to register_gdbarch_data.
3185 (init_regcache_descr, init_legacy_regcache_descr): Use
3186 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
3187
3188 * remote.c (free_remote_state): Delete function.
3189 (_initialize_remote): Update register_gdbarch_data.
3190 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
3191 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
3192
3193 2003-08-04 Andrew Cagney <cagney@redhat.com>
3194
3195 * reggroups.c (struct reggroup_el): Define.
3196 (struct reggroups): Delete field "nr_group". Replace array
3197 "group" with a "first" to "last" linked list.
3198 (reggroups_init): Update. Allocate using gdbarch's obstack.
3199 (reggroups_free): Delete function.
3200 (add_group): Update. Add "el" parameter.
3201 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
3202 (default_groups): Update.
3203 (reggroup_next): Replace reggroups.
3204 (reggroups_dump): Update.
3205 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3206 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3207 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3208
3209 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * Makefile.in (tui-interp.o): Update dependencies.
3212
3213 2003-08-04 David Carlton <carlton@kealia.com>
3214
3215 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3216 to internal_error call.
3217 * source.c (forward_search_command): Add "%s" format argument.
3218 (reverse_search_command): Ditto.
3219 * top.c (quit_confirm): Ditto.
3220 * cli/cli-setshow.c (do_setshow_command): Ditto.
3221 * cp-valprint.c (cp_print_class_method): Replace
3222 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3223 (cp_print_class_member): Ditto.
3224 * event-top.c (command_line_handler): Ditto.
3225 * linux-proc.c (linux_info_proc_cmd): Ditto.
3226 * p-typeprint.c (pascal_type_print_base): Ditto.
3227 * p-valprint.c (pascal_object_print_class_method): Ditto.
3228 (pascal_object_print_class_member): Ditto.
3229 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3230 * remote.c (remote_cisco_section_offsets): Ditto.
3231 * top.c (command_line_input): Ditto.
3232 * utils.c (vwarning,error_stream,quit): Ditto.
3233 * valprint.c (print_floating,print_binary_chars)
3234 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3235
3236 2003-08-04 Andrew Cagney <cagney@redhat.com>
3237
3238 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3239
3240 2003-08-02 Andrew Cagney <cagney@redhat.com>
3241
3242 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3243 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3244 amd64fbsd-nat.c.
3245
3246 2003-08-02 Andrew Cagney <cagney@redhat.com>
3247
3248 * Makefile.in: Update all dependencies and definitions.
3249
3250 2003-08-02 Adam Fedor <fedor@gnu.org>
3251
3252 * linespec.c (is_objc_method_format): New function
3253 (decode_line_1, locate_first_half): Use it.
3254 Fixes PR objc/1298
3255
3256 2003-08-01 Andrew Cagney <cagney@redhat.com>
3257
3258 * NEWS: Mention that m32r is multi-arch.
3259 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3260 * configure.tgt: Recognize m32r-*-*.
3261 * config/m32r/tm-m32r.h: Delete file.
3262 * config/m32r/m32r.mt: New file.
3263 * m32r-rom.c (m32r_upload_command): Use hostent only when
3264 gethostname succeeds, in order to avoid a compilation
3265 warning.
3266 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3267 compiler warning.
3268
3269 2003-08-01 Michael Snyder <msnyder@redhat.com>
3270
3271 * sh-tdep.c (sh_frame_align): New gdbarch method.
3272 (sh_gdbarch_init): Set up frame_align method.
3273
3274 2003-07-31 Michael Snyder <msnyder@redhat.com>
3275
3276 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3277 which is already covered by the new frames infrastructure.
3278
3279 2003-07-31 Andrew Cagney <cagney@redhat.com>
3280
3281 * user-regs.c (struct user_reg): Add "next" link.
3282 (struct user_regs): Replace "user" with "first" and "last" links.
3283 (append_user_reg): Add pre-allocated "reg" parameter.
3284 (builtin_user_regs): Provide initial value for "last".
3285 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3286 (user_regs_init): Allocate memory from the gdbarch obstack.
3287 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3288 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3289 linked list.
3290 (usernum_to_user_reg): New function.
3291 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3292 (value_of_user_reg): Use usernum_to_user_reg.
3293 (user_regs_free): Delete function.
3294 (_initialize_user_regs): Update register_gdbarch_data call.
3295
3296 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3297
3298 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3299
3300 2003-07-30 Michael Snyder <msnyder@redhat.com>
3301
3302 * value.h (value_being_returned): Add a struct_addr argument.
3303 * infcall.c (call_function_by_hand): Pass struct_addr to
3304 value_being_returned.
3305 * infcmd.c (print_return_value): Pass zero as struct_addr.
3306 * values.c (value_being_returned): If struct_addr is passed,
3307 use it instead of trying to recover it from the inferior.
3308
3309 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3310
3311 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3312 the prologue analyzer won't need to attempt to extract the pc
3313 value from the woefully incomplete dummy frame.
3314 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3315 possible. Disable code which modifies the frame.
3316
3317 2003-07-28 Andrew Cagney <cagney@redhat.com>
3318
3319 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3320 to level 2.
3321 (annotate_breakpoints_table, annotate_record): Ditto.
3322 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3323 (annotate_field_name_end, annotate_field_value): Ditto.
3324 (annotate_field_end, annotate_frame_source_begin): Ditto.
3325 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3326 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3327 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3328 (annotate_frame_address_end, annotate_frame_address): Ditto.
3329 (annotate_frame_args, annotate_frame_end): Ditto.
3330 (annotate_frame_where, annotate_arg_begin): Ditto.
3331 (annotate_arg_name_end, annotate_arg_value): Ditto.
3332 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3333 (annotate_function_call, annotate_signal_name): Ditto.
3334 (annotate_signal_string, annotate_signal_name_end): Ditto.
3335 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3336 (annotate_value_begin, annotate_value_history_value): Ditto.
3337 (annotate_value_history_end, annotate_value_end): Ditto.
3338 (annotate_display_begin, annotate_display_number_end): Ditto.
3339 (annotate_display_format, annotate_display_expression): Ditto.
3340 (annotate_display_expression_end, annotate_display_value): Ditto.
3341 (annotate_display_end, annotate_array_section_begin): Ditto.
3342 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3343 (annotate_elt, annotate_array_section_end): Ditto.
3344
3345 2003-07-28 Andrew Cagney <cagney@redhat.com>
3346
3347 * regcache.c (struct regcache_descr): Update comments on
3348 nr_raw_registers.
3349 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3350 sizeof_raw_register_valid_p.
3351 (init_regcache_descr): Set nr_raw_registers and
3352 sizeof_raw_register_valid_p before calling
3353 init_legacy_regcache_descr.
3354
3355 2003-07-28 Andrew Cagney <cagney@redhat.com>
3356
3357 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3358 MOD NUM_REGS.
3359
3360 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3361
3362 * thread.c (info_threads_command): Use get_selected_frame ().
3363 Check that there is at least one non-sentinel frame.
3364
3365 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3366
3367 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3368 (m68hc11_pop_frame): Remove.
3369 (m68hc11_frame_saved_pc): Remove.
3370 (m68hc11_frame_chain): Remove.
3371 (m68hc11_frame_init_saved_regs): Remove.
3372 (m68hc11_init_extra_frame_info): Remove.
3373 (m68hc11_store_struct_return): Remove.
3374 (m68hc11_saved_pc_after_call): Remove.
3375
3376 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3377
3378 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3379 frame unwind information.
3380 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3381 and adapted for frame unwinding.
3382 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3383 (m68hc11_unwind_pc): New function.
3384 (m68hc11_frame_unwind_cache): New function to analyze frames.
3385 (m68hc11_frame_this_id): New function to create new frame struct.
3386 (m68hc11_frame_prev_register): New function to unwind a register from
3387 the frame.
3388 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3389 (m68hc11_frame_p): New function for the above.
3390 (m68hc11_frame_base_address): New function to return fp of frame.
3391 (m68hc11_frame_args_address): Update for frame.
3392 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3393 (m68hc11_unwind_sp): New function.
3394 (m68hc11_unwind_dummy_id): New function.
3395 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3396 calls.
3397
3398 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3399
3400 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3401 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3402 when we are beyond the current pc.
3403
3404 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3405
3406 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3407 from m68hc11_push_arguments.
3408 (m68hc11_push_arguments): Remove.
3409 (m68hc11_push_return_address): Remove.
3410 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3411 handlers; remove deprecated_extra_stack_alignment_needed.
3412
3413 2003-07-27 Andrew Cagney <cagney@redhat.com>
3414
3415 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3416 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3417 REAL_PC and not the pointer.
3418 * hppa-hpux-tdep.c: Include frame.h
3419
3420 2003-07-27 Andrew Cagney <cagney@redhat.com>
3421
3422 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3423 GDB_MULTI_ACH_PARTIAL.
3424
3425 2003-07-27 Andrew Cagney <cagney@redhat.com>
3426
3427 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3428 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3429 operator at start and not end of line.
3430 (decode_prologue): Ditto.
3431 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3432 frame_unwind_register_unsigned instead of
3433 frame_unwind_unsigned_register.
3434 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3435 read_register.
3436 (m32r_push_dummy_call): Use register_size instead of
3437 REGISTER_RAW_SIZE.
3438 (m32r_frame_sniffer): Replace m32r_frame_p.
3439 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3440 * m32r-rom.c (report_transfer_performance): Delete extern
3441 declaration.
3442 (m32r_load, m32r_upload_command): Use print_transfer_performance
3443 instead of report_transfer_performance.
3444 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3445 / add_show_from_set.
3446
3447 2003-07-26 Andrew Cagney <cagney@redhat.com>
3448
3449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3450 store_return_value and extract_struct_value_address.
3451
3452 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3453
3454 PR c++/1267
3455 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3456 NULL, default to the section containing PC.
3457
3458 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3459
3460 * NEWS: Mention "regs" deprecated for m68hc11 too.
3461
3462 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3463 (m68hc11_print_register): New function to print out one register.
3464 (m68hc11_print_registers_info): New function to print registers.
3465 (show_regs): Deprecate and use the above.
3466 (m68hc11_gdbarch_init): Install the print_registers_info.
3467
3468 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3469
3470 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3471 that we have a SIGTRAP before returning non-zero.
3472
3473 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3474 Elena Zannoni <ezannoni@redhat.com>
3475
3476 * linespec.c (decode_line_2): Avoid crash if
3477 find_function_start_sal() returns empty record.
3478
3479 2003-07-23 Andreas Schwab <schwab@suse.de>
3480
3481 * ia64-tdep.c (ia64_print_insn): New function.
3482 (ia64_gdbarch_init): Set print_insn to it.
3483 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3484 deprecated_tm_print_insn_info.
3485
3486 2003-07-22 Michael Snyder <msnyder@redhat.com>
3487
3488 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3489 handle 8-bit returns (long long).
3490 (h8300h_extract_return_value): Ditto.
3491 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3492
3493 2003-07-22 Andrew Cagney <cagney@redhat.com>
3494
3495 * gdbarch.c Include "gdb_obstack.h".
3496 (struct gdbarch): Add an "obstack".
3497 (alloc_gdbarch_data): Allocate the gdbarch data using
3498 GDBARCH_OBSTACK_CALLOC.
3499 (free_gdbarch_data): Delete function.
3500 (gdbarch_obstack_zalloc): New function.
3501 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3502 Assert that the architecture is not initialized.
3503 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3504 vector from the obstack.
3505 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3506 architecture obstack.
3507 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3508 (set_gdbarch_data): Assert that the data is not initialized.
3509 (struct gdbarch_data): Delete member "free".
3510 (register_gdbarch_data): Do not initialize "free".
3511 * gdbarch.h, gdbarch.c: Re-generate.
3512
3513 2003-07-22 Andrew Cagney <cagney@redhat.com>
3514
3515 * configure.in (build_warnings): Add -Wformat-nonliteral.
3516 * configure: Re-generate.
3517
3518 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3519
3520 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3521
3522 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3523
3524 * findvar.c (read_var_value): Remove case for thread local storage
3525 variables. It is now entirely handled by the dwarf2 location
3526 expression code.
3527 * printcmd.c (address_info): Ditto.
3528 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3529 enumeration value.
3530 (struct symbol): Remove objfile field, which was used by
3531 LOC_THREAD_LOCAL_STATIC only.
3532 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3533 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3534 usage of objfile pointer.
3535 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3536 thread local variables.
3537 Add include of objfiles.h.
3538 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3539 storage variables.
3540 * Makefile.in (dwarf2loc.o): Update dependencies.
3541
3542 2003-07-22 Andrew Cagney <cagney@redhat.com>
3543
3544 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3545 get_frame_base.
3546 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3547 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3548 (struct value): Add opaque declaration.
3549 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3550
3551 2003-07-21 Andrew Cagney <cagney@redhat.com>
3552
3553 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3554 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3555
3556 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3557
3558 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3559 regcache_cooked_read_unsigned instead of read_register.
3560 (m68hc11_saved_pc_after_call): Likewise.
3561 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3562 instead of write_register.
3563 (m68hc11_register_type): New function.
3564 (m68hc11_register_virtual_type): Remove.
3565 (m68hc11_store_return_value): Convert to use the regcache.
3566 (m68hc11_extract_struct_value_address): Likewise.
3567 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3568 m68hc11_register_type; undeprecate store_return_value and
3569 extract_struct_value_address.
3570
3571 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3572
3573 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3574 and translate to use regcache.
3575 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3576
3577 2003-07-18 Andrew Cagney <cagney@redhat.com>
3578
3579 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3580 * gdbarch.h, gdbarch.c: Re-generate.
3581 * i386-tdep.c (i386_gdbarch_init): Do not set
3582 DWARF2_BUILD_FRAME_INFO.
3583 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3584 unconditionally.
3585 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3586 DWARF2_BUILD_FRAME_INFO.
3587
3588 2003-07-18 Andrew Cagney <cagney@redhat.com>
3589
3590 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3591 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3592
3593 2003-07-18 Andrew Cagney <cagney@redhat.com>
3594
3595 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3596 frame_unwind_address_in_block, instead of frame_pc_unwind.
3597 (dwarf2_frame_cache): Ditto.
3598
3599 2003-07-18 Andrew Cagney <cagney@redhat.com>
3600
3601 * user-regs.h (struct gdbarch): Declare opaque.
3602 * ui-out.h (struct ui_file): Declare opaque.
3603 * dwarf2-frame.h (struct frame_info): Declare opaque.
3604
3605 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3606
3607 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3608 #include "...".
3609 (procfs_meminfo): Change strerror to safe_strerror.
3610 (procfs_can_run): Remove K&R badness.
3611
3612 2003-07-17 Michael Snyder <msnyder@redhat.com>
3613
3614 * remote-sim.c: Comment typo fix.
3615
3616 2003-07-17 Andrew Cagney <cagney@redhat.com>
3617
3618 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3619 configure.
3620 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3621 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3622 GDB_MULTI_ARCH_PARTIAL.
3623
3624 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3625
3626 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3627 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3628 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3629
3630 2003-07-16 Theodore A. Roth <troth@openavr.org>
3631
3632 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3633 found.
3634 (avr_frame_unwind_cache): Don't unwind FP for main.
3635 Update a comment.
3636 Save the computed prev_sp.
3637 (avr_saved_regs_unwinder): Remove function.
3638 (avr_frame_prev_register): Use PC unwind logic from
3639 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3640
3641 2003-07-16 Andrew Cagney <cagney@redhat.com>
3642
3643 * frame-base.h (frame_base_p_ftype): Delete definition.
3644 (frame_base_append_predicate): Delete declaration.
3645 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3646 (frame_unwind_append_predicate): Delete declaration.
3647 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3648 (append_predicate): Delete parameter "p".
3649 (frame_unwind_append_predicate): Delete function.
3650 (frame_unwind_append_sniffer): Update call to append_predicate.
3651 (frame_unwind_free): Delete function.
3652 (_initialize_frame_unwind): Pass NULL as "free" to
3653 register_gdbarch_data.
3654 (frame_unwind_init): Append the dummy_frame_sniffer.
3655 (frame_unwind_find_by_frame): Simplify.
3656 * frame-base.c (struct frame_base_table): Delete field "p".
3657 (append_predicate): Delete parameter "p".
3658 (frame_base_append_predicate): Delete function.
3659 (frame_base_append_sniffer): Update call to append_predicate.
3660 (frame_base_free): Delete function.
3661 (frame_base_find_by_frame): Simplify.
3662 (_initialize_frame_base): Pass NULL as "free" to
3663 register_gdbarch_data.
3664 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3665 (x86_64_sigtramp_frame_sniffer): Replace
3666 "x86_64_sigtramp_frame_p".
3667 (x86_64_init_abi): Set the frame unwind sniffers.
3668 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3669 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3670 (m68k_gdbarch_init): Set the frame unwind sniffers.
3671 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3672 "i386_sigtramp_frame_p".
3673 (i386_frame_sniffer): Replace "i386_frame_p".
3674 (i386_gdbarch_init): Set the frame unwind sniffers.
3675 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3676 (avr_gdbarch_init): Set the frame unwind sniffers.
3677 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3678 "alpha_sigtramp_frame_p"
3679 (alpha_heuristic_frame_sniffer): Replace
3680 "alpha_heuristic_frame_p".
3681 (alpha_gdbarch_init): Set the frame unwind sniffers.
3682 (alpha_dwarf2_init_abi): Ditto.
3683 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3684 "alpha_debug_frame_p".
3685 (alpha_mdebug_frame_base_sniffer): Replace
3686 "alpha_mdebug_frame_base_p".
3687 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3688 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3689 (d10v_gdbarch_init): Set the frame unwind sniffer.
3690 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3691 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3692 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3693 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3694 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3695 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3696
3697 2003-07-16 Michael Snyder <msnyder@redhat.com>
3698
3699 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3700 should go thru sh_dsp_register_sim_regno, else the dsp regs
3701 will not get the right values.
3702
3703 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3704
3705 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3706 deprecated_store_floating by call to store_typed_floating.
3707 (sh_sh4_register_convert_to_raw): Substitute call to
3708 deprecated_extract_floating by call to extract_typed_floating.
3709
3710 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3711
3712 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3713
3714 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3715
3716 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3717 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3718 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3719 as possible.
3720 (do_pseudo_register): Remove.
3721 (sh_push_dummy_code): New function.
3722 (sh64_store_struct_return): Rename from sh_store_struct_return.
3723 Only called for sh64 now.
3724 (sh_extract_struct_value_address): Regcache'ify.
3725 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3726 and accomodate new tasks.
3727 (sh64_push_return_address): Rename from sh_push_return_address.
3728 Only called for sh64 now.
3729 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3730 Regcache'ify.
3731 (sh3e_sh4_extract_return_value): Regcache'ify.
3732 (sh_default_store_return_value): Ditto.
3733 (sh3e_sh4_store_return_value): Ditto.
3734 (sh_default_register_byte): Remove.
3735 (sh_sh4_register_byte): Remove.
3736 (sh_default_register_raw_size): Remove.
3737 (sh_sh4_register_raw_size): Remove.
3738 (sh_register_virtual_size): Remove.
3739 (sh_sh3e_register_virtual_type): Remove.
3740 (sh_sh3e_register_type): New function.
3741 (sh_sh4_register_virtual_type): Remove.
3742 (sh_sh4_register_type): New function.
3743 (sh_default_register_virtual_type): Remove.
3744 (sh_default_register_type): New function.
3745 (do_fv_register_info): Add parameters to accomodate call from
3746 sh_print_registers_info.
3747 (do_dr_register_info): Ditto.
3748 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3749 Add parameters to accomodate call from sh_print_registers_info.
3750 (sh_do_fp_register): Ditto.
3751 (sh64_do_pseudo_register): Call do_dr_register_info,
3752 do_fv_register_info and sh_do_fp_register with default parameters.
3753 (sh_do_register): Add parameters to accomodate call from
3754 sh_print_registers_info.
3755 (sh_print_register): Ditto.
3756 (sh_print_registers_info): Rename from sh_do_registers_info.
3757 Add parameters to be used as gdbarch_print_registers_info
3758 implementation. Accomodate removed do_pseudo_register function
3759 pointer.
3760 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3761 function pointer. Call sh_print_register with default parameters.
3762 (sh64_do_registers_info): Call sh_print_registers_info instead of
3763 sh_do_registers_info.
3764 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3765 detection of deprecated vs. non-deprecated functionality.
3766 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3767 function pointer assignments by direct function calls.
3768
3769 2003-07-15 Andrew Cagney <cagney@redhat.com>
3770
3771 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3772 (frame_register_unwind, create_new_frame): Ditto.
3773 (legacy_get_prev_frame, get_frame_type): Ditto.
3774 (get_frame_base_address): Use frame_base_find_by_frame.
3775 (get_frame_locals_address): Use frame_base_find_by_frame.
3776 (get_frame_args_address): Use frame_base_find_by_frame.
3777 * frame-base.h (frame_base_sniffer_ftype): Declare.
3778 (frame_base_append_sniffer): Declare.
3779 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3780 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3781 (frame_base_append_sniffer): New function.
3782 (frame_base_append_predicate): Add a NULL sniffer.
3783 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3784 (struct frame_base_table): Add "sniffer".
3785 (frame_base_free): Free the "sniffer" table.
3786 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3787 (frame_unwind_append_sniffer): Declare.
3788 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3789 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3790 (struct frame_unwind_table): Add "sniffer", delete "middle".
3791 (append_predicate): Add "sniffer" parameter, append the sniffer.
3792 (frame_unwind_init): Update append_predicate call.
3793 (frame_unwind_append_sniffer): New function.
3794 (frame_unwind_append_predicate): Update append_predicate call.
3795 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3796
3797 2003-07-15 Andrew Cagney <cagney@redhat.com>
3798
3799 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3800 before code inhibiting repeated unwind attempts. Add to
3801 commentary on that test's problems.
3802 * blockframe.c (inside_main_func): Look for "main" in the minimal
3803 symbol table.
3804 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3805 identical.
3806
3807 2003-07-15 Andrew Cagney <cagney@redhat.com>
3808
3809 * complaints.c (struct explanation): Define.
3810 (struct complaints): Change type of "explanation" to "struct
3811 explanation".
3812 (symfile_explanations): Convert to a "struct explanation" table.
3813 (vcomplaint): Update.
3814
3815 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3816
3817 * x86-64-linux-nat.c (regmap): Removed.
3818 (supply_gregset, fill_gregset): Call
3819 x86_64_linux_(fill,supply)_gregset functions.
3820 * x86-64-linux-tdep.c (USER_*): New defines.
3821 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3822 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3823 New functions.
3824 (fetch_core_registers): Ditto.
3825 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3826 * x86-64-linux-tdep.h: New file.
3827 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3828 and core-regset.o.
3829 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3830
3831 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3832
3833 * x86-64-tdep.c (x86_64_store_return_value): Use
3834 regcache_cooked_write_part instead of regcache_cooked_write.
3835
3836 * configure.host: Add x86_64-*-freebsd*.
3837 * configure.tgt: Add x86_64-*-freebsd*.
3838 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3839 * amd64fbsd-nat.c: New file.
3840 * amd64fbsd-tdep.c: New file.
3841 * config/i386/nm-fbsd64.h: New file.
3842 * config/i386/fbsd64.mh: New file.
3843 * config/i386/fbsd64.mt: New file.
3844
3845 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3846
3847 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3848 `sc_regs_offset' and `sc_fpregs_offset'.
3849 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3850 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3851 (alpha_sigtramp_register_address): Rewrite to use new members of
3852 `struct gdbarch_tdep'.
3853 (alpha_gdbarch_init): Initialize new members of struct
3854 gdbarch_tdep'.
3855 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3856 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3857 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3858 (alphafbsd_pc_in_sigtramp): Implement.
3859 (alphafbsd_sigtramp_offset): New function.
3860 (alphafbsd_sigcontext_addr): New function.
3861 (alphafbsd_init_abi): Initialize signal trampoline related members
3862 of `struct gdbarch_tdep'.
3863 (_initialize_alphafbsd_tdep): Add prototype.
3864
3865 2003-07-11 Theodore A. Roth <troth@openavr.org>
3866
3867 * Makefile.in (install-only): Quote sed expression when generating
3868 transformed_name.
3869
3870 2003-07-11 Richard Henderson <rth@redhat.com>
3871
3872 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3873 * dwarf2-frame.c: Include complaints.h.
3874 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3875 variable initialization; return NULL on error.
3876 (decode_frame_entry): New.
3877
3878 2003-07-11 Andrew Cagney <cagney@redhat.com>
3879
3880 * frame.h (frame_address_in_block): Delete declaration.
3881 * blockframe.c (frame_address_in_block): Delete function.
3882 (get_frame_block): Use get_frame_address_in_block.
3883 (block_innermost_frame): Ditto.
3884 * stack.c (print_frame, backtrace_command_1): Ditto.
3885
3886 * frame.h (get_frame_address_in_block): Declare.
3887 (frame_unwind_address_in_block): Declare.
3888 * frame.c (frame_unwind_address_in_block): New function.
3889 (get_frame_address_in_block): New function.
3890
3891 2003-07-10 Andrew Cagney <cagney@redhat.com>
3892
3893 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3894 pre-default. Note: re-generate has no effect.
3895
3896 2003-07-10 Andrew Cagney <cagney@redhat.com>
3897
3898 * gdbarch.sh: When a variable, but not a function, compare against
3899 0. Fix problem in previous patch.
3900 * gdbarch.c: Re-generate.
3901
3902 2003-07-10 Andrew Cagney <cagney@redhat.com>
3903
3904 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3905 functions against NULL, not 0.
3906 * gdbarch.c: Re-generate.
3907
3908 2003-07-10 Fred Fish <fnf@ninemoons.com>
3909
3910 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3911 null string instead of a null pointer.
3912 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3913
3914 2003-07-09 Michael Snyder <msnyder@redhat.com>
3915
3916 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3917
3918 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3919
3920 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3921 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3922 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3923 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3924 * x86-64-tdep.c: ... from here.
3925
3926 2003-07-09 Andreas Schwab <schwab@suse.de>
3927
3928 * m68k-tdep.h (enum struct_return): Define.
3929 (struct gdbarch_tdep): Add struct_return.
3930 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3931 bytes are padded to the right, not to the left. Pass struct value
3932 address in register %a1, not on stack.
3933 (m68k_use_struct_convention): New function.
3934 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3935 struct_return in tdep to pcc_struct_return.
3936 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3937 reg_struct_return.
3938
3939 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3940
3941 * somread.c (som_symfile_offsets): Fix compilation error.
3942
3943 2003-07-09 Andrew Cagney <cagney@redhat.com>
3944
3945 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3946 Add comments about the checks.
3947
3948 2003-07-08 Andrew Cagney <cagney@redhat.com>
3949
3950 * Makefile.in: Make dependency section headers consistent.
3951 (config_h): Move to $BUILD headers section.
3952 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3953 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3954 (ada-exp.tab.c): Move to YACC/LEX section.
3955 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3956 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3957
3958 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3959
3960 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3961 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3962 of strerror with safe_strerror, use ISO C function definitions,
3963 and replace instances of sprintf with snprintf.
3964
3965 2003-07-07 Andrew Cagney <cagney@redhat.com>
3966
3967 * frame.c (get_prev_frame): Enable check for identical frames.
3968 Update comments. Update error messages.
3969
3970 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3971
3972 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3973
3974 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3975
3976 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3977 sort_symtab_syms, no longer necessary.
3978
3979 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3980
3981 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3982
3983 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3984
3985 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3986 (mips_register_byte): Likewise.
3987
3988 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3989
3990 * Makefile.in (sparc_tdep_h): New.
3991 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3992 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3993 * sparc-linux-nat.c: Include "sparc-tdep.h".
3994 * sparc-nat.c: Likewise.
3995 * sparc-tdep.c: Likewise.
3996 * sparc64nbsd-nat.c: Likewise.
3997 * sparcnbsd-nat.c: Likewise.
3998 * sparcnbsd-tdep.c: Likewise.
3999 * sparc-tdep.h: New file.
4000 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
4001 and sparc_npc_regnum.
4002
4003 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4004
4005 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
4006 (mips_linux_cannot_store_register): List supported instead of
4007 unsupported registers.
4008
4009 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
4010
4011 * disasm.c (dump_insns): Separate instructions from addresses.
4012
4013 2003-07-07 Andreas Schwab <schwab@suse.de>
4014
4015 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4016 dependencies.
4017 * m68k-tdep.c (NUM_FREGS): Delete.
4018 (SIG_PC_FP_OFFSET): Delete.
4019 (TARGET_M68K): Delete.
4020 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
4021 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
4022 P_MOVEL_SP, P_MOVEML_SP): Define.
4023 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
4024 P_TRAP): Delete.
4025 (m68k_register_raw_size): Delete.
4026 (m68k_register_virtual_size): Delete.
4027 (m68k_register_type): Renamed from m68k_register_virtual_type and
4028 add gdbarch argument.
4029 (m68k_store_struct_return): Delete.
4030 (m68k_deprecated_extract_return_value): Delete.
4031 (m68k_deprecated_extract_struct_value_address): Delete.
4032 (m68k_frame_chain): Delete.
4033 (m68k_frame_saved_pc): Delete.
4034 (m68k_fix_call_dummy): Delete.
4035 (m68k_push_dummy_frame): Delete.
4036 (m68k_pop_frame): Delete.
4037 (m68k_extract_return_value): New function.
4038 (m68k_store_return_value): Rewrite using regcache.
4039 (m68k_extract_struct_value_address): Rewrite using regcache.
4040 (m68k_push_dummy_call): New function.
4041 (struct m68k_frame_cache): Define.
4042 (m68k_alloc_frame_cache): New function.
4043 (m68k_analyze_frame_setup): New function.
4044 (m68k_analyze_register_saves): New function.
4045 (m68k_analyze_prologue): New function.
4046 (m68k_skip_prologue): Rewrite using above functions.
4047 (m68k_unwind_pc): New function.
4048 (m68k_frame_cache): New function.
4049 (m68k_frame_this_id): New function.
4050 (m68k_frame_prev_register): New function.
4051 (m68k_frame_unwind): New variable.
4052 (m68k_frame_p): New function.
4053 (m68k_sigtramp_frame_cache): New function.
4054 (m68k_sigtramp_frame_this_id): New function.
4055 (m68k_sigtramp_frame_prev_register): New function.
4056 (m68k_sigtramp_frame_unwind): New variable.
4057 (m68k_sigtramp_frame_p): New function.
4058 (m68k_frame_base_address): New function.
4059 (m68k_frame_base): New function.
4060 (m68k_unwind_dummy_id): New function.
4061 (fill_gregset): Use regcache_collect.
4062 (fill_fpregset): Likewise.
4063 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
4064 defined.
4065 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
4066 deprecated_init_frame_pc, deprecated_store_struct_return,
4067 deprecated_extract_return_value, deprecated_store_return_value,
4068 deprecated_frame_chain, deprecated_frame_saved_pc,
4069 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
4070 deprecated_register_virtual_size,
4071 deprecated_max_register_raw_size,
4072 deprecated_max_register_virtual_size,
4073 deprecated_register_virtual_type, deprecated_register_size,
4074 deprecated_register_byte, deprecated_register_bytes,
4075 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
4076 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
4077 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
4078 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
4079 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
4080 deprecated_push_dummy_frame, deprecated_pop_frame,
4081 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
4082 only if SYSCALL_TRAP is defined. Set extract_return_value,
4083 store_return_value, extract_struct_value_address, register_type,
4084 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
4085 predicates.
4086 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
4087 M68K_MAX_REGISTER_SIZE): Define.
4088 (struct m68k_sigtramp_info): Define.
4089 (struct gdbarch_tdep): Add get_sigtramp_info.
4090 * m68klinux-nat.c (fetch_register): Use register_size instead of
4091 REGISTER_RAW_SIZE. Don't put assignment in if.
4092 (store_register): Likewise.
4093 (fetch_inferior_registers): Likewise.
4094 (store_inferior_registers): Likewise.
4095 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
4096 (m68k_linux_frame_saved_pc): Delete.
4097 (m68k_linux_sigcontext_reg_offset,
4098 m68k_linux_ucontext_reg_offset): Define.
4099 (m68k_linux_get_sigtramp_info): New function.
4100 (m68k_linux_extract_return_value): Rewrite using regcache.
4101 (m68k_linux_store_return_value): Likewise.
4102 (m68k_linux_extract_struct_value_address): Likewise.
4103 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
4104 Don't set deprecated_frame_saved_pc,
4105 deprecated_extract_return_value, deprecated_store_return_value,
4106 deprecated_extract_struct_value_address. Set
4107 extract_return_value, store_return_value,
4108 extract_struct_value_address.
4109
4110 2003-07-07 Andrew Cagney <cagney@redhat.com>
4111
4112 * expprint.c: Include "user-regs.h" instead of "frame.h".
4113 (print_subexp): Use user_reg_map_regnum_to_name, instead of
4114 frame_map_regnum_to_name.
4115 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
4116 (frame_map_name_to_regnum): Simplify, call
4117 user_reg_map_name_to_regnum.
4118 (frame_map_regnum_to_name): Simplify, call
4119 user_reg_map_regnum_to_name.
4120 (frame_register_unwind): Update.
4121 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
4122 (_initialize_frame_reg): Call user_reg_add_builtin.
4123 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
4124 (value_of_register): Use value_of_user_reg.
4125 * eval.c (evaluate_subexp_standard): Update.
4126 * parse.c (write_dollar_variable): Update.
4127 * d10v-tdep.c (d10v_print_registers_info): Update.
4128 * infcmd.c (registers_info): Update.
4129 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
4130 (builtin_regs_h): Delete macro.
4131 (user_regs_h): Define.
4132 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
4133 (builtin-regs.o): Delete target.
4134 (user-regs.o): Specify dependencies.
4135 (expprint.o): Update dependencies.
4136 (findvar.o): Update dependencies.
4137 (frame.o): Update dependencies.
4138 (std-regs.o): Update dependencies.
4139
4140 2003-07-06 Christopher Faylor <cgf@redhat.com>
4141
4142 * win32-nat.c (solib_symbols_add): Use one variable for all section
4143 address stuff. Pass variable rather than address of variable to
4144 safe_symbol_file_add.
4145
4146 2003-07-06 Andreas Schwab <schwab@suse.de>
4147
4148 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
4149
4150 2003-07-04 Joel Brobecker <brobecker@gnat.com>
4151
4152 * rs6000-nat.c (vmap_symtab): Fix compilation error.
4153
4154 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4155
4156 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
4157
4158 2003-07-04 Kris Warkentin <kewarken@qnx.com>
4159
4160 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
4161 * config/i386/nto.mh: New file.
4162 * config/i386/nm-nto.h: New file.
4163 * configure.host: Add i[3456]86-*-nto*.
4164
4165 2003-07-03 Joel Brobecker <brobecker@gnat.com>
4166
4167 * remote-vx.c (vx_add_symbols): Fix compilation error.
4168
4169 2003-07-03 Andrew Cagney <cagney@redhat.com>
4170
4171 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
4172 * gdbarch.h, gdbarch.c: Re-generate.
4173 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
4174 (legacy_register_name): Declare.
4175 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
4176 (REGISTER_NAME): Define.
4177 * sparc-tdep.c (legacy_register_name): New function.
4178 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
4179 (REGISTER_NAME): Define.
4180 (hppa64_register_name): Declare.
4181 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
4182 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
4183 (hppa64_register_name): New function.
4184 (hppa_register_name): New function.
4185 * arch-utils.c (legacy_register_name): Delete.
4186 * arch-utils.h (legacy_register_name): Delete.
4187
4188 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
4189
4190 * cli/cli-interp.c (cli_interpreter_resume): Update the
4191 cli_uiout's stream to gdb_stdout.
4192
4193 2003-07-03 Andrew Cagney <cagney@redhat.com>
4194
4195 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
4196 predicate.
4197 * gdbarch.h, gdbarch.c: Re-generate.
4198 * regcache.c (init_regcache_descr): Use legacy code when either
4199 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
4200
4201 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4202
4203 * NEWS: Move "set logging" entry into GDB 6.0 section.
4204
4205 2003-07-02 Jim Blandy <jimb@redhat.com>
4206
4207 * s390-tdep.c (struct frame_extra_info): new member:
4208 'stack_bought_valid'.
4209 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4210 initialize fextra_info->stack_bought.
4211 (s390_frameless_function_invocation): Don't trust the value of
4212 fextra_info_ptr->stack_bought unless
4213 fextra_info->stack_bought_valid is set.
4214
4215 New S390 prologue analyzer.
4216 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4217 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4218 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4219 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4220 compute_x_addr, s390_on_stack, s390_store,
4221 s390_get_signal_frame_info): New functions.
4222 (S390_NUM_SPILL_SLOTS): New macro.
4223 (s390_get_frame_info): Rewritten.
4224 (is_arg_reg): Deleted.
4225
4226 Break out the decoding of S/390 instructions into separate
4227 functions, to make it more legible, and easier to check
4228 against the spec.
4229 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4230 is_rx, is_rxe): New functions.
4231 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4232 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4233 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4234 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4235 enums for opcode values. (Is this an improvement?)
4236
4237 2003-07-02 Andrew Cagney <cagney@redhat.com>
4238
4239 * i386-tdep.c: Revert change committed as part of trad-frame code
4240 below.
4241
4242 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4243
4244 * breakpoint.c (insert_catchpoint): Make static.
4245
4246 2003-07-02 Andreas Schwab <schwab@suse.de>
4247
4248 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4249 former ia64_push_arguments and ia64_push_return_address, and use
4250 regcache functions instead of read/write_register.
4251 (ia64_gdbarch_init): Set push_dummy_call instead of
4252 deprecated_push_arguments and deprecated_push_return_address.
4253
4254 2003-07-01 Andreas Jaeger <aj@suse.de>
4255
4256 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4257 before the call.
4258 Set %rax only to number of SSE registers used.
4259
4260 2003-07-01 Andrew Cagney <cagney@redhat.com>
4261
4262 * trad-frame.h: Update comments, a -1 .addr is reserved.
4263 (trad_frame_value_p, trad_frame_addr_p): Declare.
4264 (trad_frame_reg_p): Declare.
4265 (trad_frame_set_value): Rename trad_frame_register_value.
4266 (trad_frame_set_unknown): Declare.
4267 * trad-frame.c (trad_frame_realreg_p): New function.
4268 (trad_frame_addr_p, trad_frame_value_p): New function.
4269 (trad_frame_set_unknown): New function.
4270 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4271 (trad_frame_prev_register): Use trad_frame_realreg_p,
4272 trad_frame_addr_p and trad_frame_value_p.
4273 (trad_frame_set_value): Rename trad_frame_register_value.
4274 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4275 and trad_frame_set_value.
4276
4277 2003-06-30 Jim Blandy <jimb@redhat.com>
4278
4279 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4280 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4281 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4282 for 16 registers, and then 32 more bytes.
4283 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4284 New macros.
4285 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4286 Move up in the file, since it's now used by is_simple_arg.
4287 (is_simple_arg): Don't assume registers are four bytes long.
4288 Exclude all double arguments. Extended floats are not simple
4289 args.
4290 (is_power_of_two): New function.
4291 (pass_by_copy_ref): Call is_power_of_two, and check that the
4292 length fits in a register, rather than listing all the acceptable
4293 sizes. Extended floats are not passed by reference.
4294 (s390_push_arguments): Don't assume registers are four bytes long.
4295 Reserve an argument register to point to the buffer for structures
4296 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4297 S390_STACK_FRAME_OVERHEAD.
4298
4299 2003-06-30 Andreas Schwab <schwab@suse.de>
4300
4301 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4302 format error message.
4303
4304 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4305
4306 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4307
4308 2003-06-30 David Carlton <carlton@kealia.com>
4309
4310 Band-aid for PR c++/1245.
4311 * Makefile.in (cp-support.o): Depend on complaints_h.
4312 * cp-support.c: Include complaints.h. Add declaration for
4313 find_last_component.
4314 (cp_find_first_component): Separate code into
4315 cp_find_first_component_aux.
4316 (cp_find_first_component_aux): Call demangled_name_complaint.
4317 (demangled_name_complaint): New.
4318
4319 2003-06-30 Andrew Cagney <cagney@redhat.com>
4320
4321 * remote.c (remote_write_bytes): Explicitly compute and then use
4322 the payload size. Update comments to reflect. Fixes problem of
4323 GDB not sending small packets as found by Fred Fish.
4324
4325 2003-06-30 Andrew Cagney <cagney@redhat.com>
4326
4327 * remote.c (remote_async_wait): Fix -Wformat problem.
4328
4329 2003-06-29 Andrew Cagney <cagney@redhat.com>
4330
4331 * remote.c (remote_wait): Call error, and not warning, when the
4332 packet is corrupt.
4333 (remote_async_wait): Ditto.
4334
4335 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4336
4337 * sparc-tdep.c (sparc_y_regnum): Make external again.
4338
4339 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4340
4341 * cli/cli-logging.c (pop_output_files): Add void to function
4342 definition.
4343
4344 2003-06-29 Andrew Cagney <cagney@redhat.com>
4345
4346 * frame.c (frame_register_unwind): Use unsigned char when dumping
4347 the buffer contents.
4348
4349 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4350
4351 * cli/cli-logging.c: New file.
4352 * cli-out.c (struct ui_out_data): Add original_stream.
4353 (cli_redirect): New function.
4354 (cli_ui_out_impl): Add cli_redirect.
4355 (cli_out_new): Initialize original_stream.
4356 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4357 (uo_redirect, ui_out_redirect): New.
4358 * ui-out.h (struct ui_out_impl): Add redirect member.
4359 (redirect_ftype): New.
4360 (ui_out_redirect): Add prototype.
4361 * Makefile.in: Add rules for cli-logging.c.
4362 * NEWS: Mention "set logging".
4363
4364 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4365
4366 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4367
4368 2003-06-27 Andrew Cagney <cagney@redhat.com>
4369
4370 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4371 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4372 * avr-tdep.c (avr_call_dummy_address): Delete function.
4373 (avr_gdbarch_init): Do not set call_dummy_address.
4374
4375 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4376
4377 * symfile.c (syms_from_objfile): Move variables to inner block.
4378 Move the checks for the non-mainline case a bit earlier to avoid
4379 doing some useless computations.
4380
4381 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4382
4383 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4384
4385 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4386
4387 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4388 sections.
4389
4390 2003-06-26 Michael Chastain <mec@shout.net>
4391
4392 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4393 gdb/testsuite/gdb.c++/pr-1210.exp.
4394
4395 2003-06-26 Andrew Cagney <cagney@redhat.com>
4396
4397 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4398 altivec_expression.h and altivec_registers.h.
4399
4400 2003-06-26 Andrew Cagney <cagney@redhat.com>
4401
4402 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4403 info->mach when MIPS16. Patch suggested by Fred Fish.
4404
4405 2003-06-26 Andrew Cagney <cagney@redhat.com>
4406
4407 * utils.c (internal_vproblem): Print the problem to a reason
4408 buffer and then pass to query. Make the msg variable more local.
4409
4410 2003-06-26 Andrew Cagney <cagney@redhat.com>
4411
4412 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4413 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4414 * gdbarch.h, gdbarch.c: Re-generate.
4415 * frame-base.c (default_frame_args_address): Update. Use
4416 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4417 not available.
4418 (default_frame_locals_address): Ditto for
4419 DEPRECATED_FRAME_LOCALS_ADDRESS.
4420 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4421 (vax_frame_num_args): Update.
4422 (vax_gdbarch_init): Update.
4423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4425 * mcore-tdep.c (mcore_gdbarch_init): Update.
4426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4427 * ia64-tdep.c (ia64_gdbarch_init): Update.
4428 * symtab.h (address_class): Update comments.
4429 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4430 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4431 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4432 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4433 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4434 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4435 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4436 * alpha-mdebug-tdep.c: Update.
4437 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4438
4439 2003-06-26 Andreas Jaeger <aj@suse.de>
4440
4441 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4442 of SSE registers so that varargs functions work. Rework handling
4443 of passing arguments on the stack.
4444 (x86_64_store_return_value): Return double and float values in SSE
4445 register.
4446
4447 2003-06-24 Michael Chastain <mec@shout.net>
4448
4449 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4450 the "constructor breakpoints ignored" bug.
4451
4452 2003-06-25 David Carlton <carlton@kealia.com>
4453
4454 * MAINTAINERS: Update e-mail address.
4455
4456 2003-06-24 Jim Blandy <jimb@redhat.com>
4457
4458 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4459
4460 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4461 function.
4462 (ppc_linux_init_abi): Register it as the
4463 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4464
4465 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4466 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4467 method.
4468
4469 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4470 (ppc64_standard_linkage_target): Use it.
4471
4472 2003-06-23 Andrew Cagney <cagney@redhat.com>
4473
4474 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4475 for 0 "int0" and 4 "int32" sized registers.
4476 * gdbtypes.c (builtin_type_int0): Define.
4477 (build_gdbtypes): Initialize builtin_type_int0.
4478 * gdbtypes.h (builtin_type_int0): Declare.
4479
4480 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4481
4482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4483 as characters are unsigned.
4484
4485 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4486
4487 PR gdb/1179
4488 * dwarfread.c (struct_type): Skip static fields without crashing.
4489
4490 2003-06-22 Andrew Cagney <cagney@redhat.com>
4491
4492 GDB 6.0 branch created.
4493 * README: Update.
4494 * PROBLEMS: Update. Empty.
4495 * NEWS: Update.
4496
4497 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4498
4499 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4500 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4501
4502 2003-06-22 Andrew Cagney <cagney@redhat.com>
4503
4504 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4505 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4506 Velikov.
4507
4508 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4509
4510 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4511 compilers.
4512
4513 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4514
4515 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4516 argument of val_print.
4517 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4518 to the address argument of baseclass_offset or target_read_memory.
4519 Do add it to the argument of cp_print_value_fields.
4520
4521 2003-06-21 Andrew Cagney <cagney@redhat.com>
4522
4523 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4524 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4525 instead of 0..NUM_REGS.
4526 (mips_register_reggroup_p): New function.
4527 (mips_pseudo_register_write): New function.
4528 (mips_pseudo_register_read): New function.
4529 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4530 based on the register's type.
4531 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4532 cooked.
4533 (mips_get_saved_register): Simplify. Assert that REGNO is a
4534 pseudo / cooked.
4535 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4536 (mips_register_type): Replace mips_register_virtual_type. Map
4537 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4538 when available.
4539 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4540 that the register is cooked / virtual.
4541 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4542 Only get the extra info when needed.
4543 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4544 (mips32_heuristic_proc_desc): Fetch the cooked register.
4545 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4546 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4547 (mips_print_register): Use gdbarch_register_type, instead of
4548 REGISTER_VIRTUAL_TYPE.
4549 (print_gp_register_row): Use gdbarch_register_type, instead of
4550 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4551 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4552 Print the pseudo / cooked registers.
4553 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4554 Print the pseudo / cooked registers.
4555 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4556 REG_NUM is pseudo / cooked.
4557 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4558 (mips_n32n64_xfer_return_value): Ditto.
4559 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4560 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4561 (mips_register_sim_regno): New function.
4562 (mips_gdbarch_init): Set deprecated_register_byte,
4563 register_group_p, pseudo_register_write, pseudo_register_read,
4564 register_sim_regno, and num_pseudo_regs. Set register_type,
4565 instead of register_virtual_type.
4566 * Makefile.in (mips-tdep.o): Update dependencies.
4567 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4568 REGISTER_VIRTUAL_TYPE.
4569 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4570 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4571 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4572 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4573 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4574
4575 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4576
4577 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4578 * cli/cli-cmds.c: Include "gdb_vfork.h".
4579 (shell_escape): Use vfork.
4580
4581 2003-06-21 Andrew Cagney <cagney@redhat.com>
4582
4583 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4584 32 bit floating-point register saves.
4585
4586 * frame.h (deprecated_unwind_get_saved_register): Delete.
4587 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4588 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4589 and deprecated_get_next_frame_hack instead of
4590 deprecated_unwind_get_saved_register.
4591
4592 * mips-tdep.c (mips_dump_tdep): Do not print
4593 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4594
4595 * frame.c (get_frame_register): New function.
4596 (frame_unwind_register_signed): New function.
4597 (get_frame_register_signed): New function.
4598 (frame_unwind_register_unsigned): New function.
4599 (get_frame_register_unsigned): New function.
4600 * frame.h: Add comments on naming schema.
4601 (get_frame_register, frame_unwind_register_signed): Declare.
4602 (get_frame_register_signed, get_frame_register_signed): Declare.
4603 (frame_unwind_register_unsigned): Declare.
4604 (get_frame_register_unsigned): Declare.
4605
4606 2003-06-20 Theodore A. Roth <troth@openavr.org>
4607
4608 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4609
4610 2003-06-20 Theodore A. Roth <troth@openavr.org>
4611
4612 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4613 (avr_read_sp): Ditto.
4614
4615 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4616
4617 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4618 * config/arm/nm-linux.h: Likewise.
4619 * config/arm/tm-linux.h: Likewise.
4620 * config/ia64/nm-linux.h: Likewise.
4621 * config/ia64/tm-ia64.h: Likewise.
4622 * config/s390/tm-linux.h: Likewise.
4623 * config/s390/tm-s390.h: Likewise.
4624 * s390-nat.c: Likewise.
4625 * s390-tdep.c: Likewise.
4626
4627 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4628 * config/ia64/linux.mt: Likewise.
4629 * config/m68k/linux.mh: Likewise.
4630 * config/mips/linux.mt: Likewise.
4631 * config/powerpc/linux.mh: Likewise.
4632 * config/sh/linux.mt: Likewise.
4633
4634 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4635
4636 * solib.c (solib_open): Change tests for whether to search
4637 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4638 comments.
4639
4640 2003-06-19 Theodore A. Roth <troth@openavr.org>
4641
4642 * avr-tdep.c (avr_frame_address): Delete function.
4643 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4644 set_gdbarch_frame_args_address.
4645
4646 2003-06-19 Andrew Cagney <cagney@redhat.com>
4647
4648 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4649 (REGISTER_CONVERT_FROM_TYPE): Delete.
4650 (mips_register_convert_to_type): Delete declaration.
4651 (mips_register_convert_from_type): Delete declaration.
4652 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4653 kernel/.
4654
4655 2003-06-19 Michael Snyder <msnyder@redhat.com>
4656
4657 * linux-nat.h: New file.
4658 * linux-nat.c: Include linux-nat.h.
4659 * lin-lwp.c: Include linux-nat.h.
4660 Move struct lwp_info def to linux-nat.h.
4661 * linux-proc.c: Include linux-nat.h.
4662 (linux_make_note_section): Iterate over lwps instead of threads.
4663 (linux_do_thread_registers): Use lwp instead of merged pid.
4664 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4665 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4666 Add dependency on linux_nat_h.
4667
4668 2003-06-19 Theodore A. Roth <troth@openavr.org>
4669
4670 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4671
4672 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4673
4674 * varobj.c (get_type, get_target_type): Use check_typedef.
4675
4676 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4677
4678 * breakpoint.c (insert_catchpoint): Call internal_error.
4679
4680 2003-06-19 Theodore A. Roth <troth@openavr.org>
4681
4682 * avr-tdep.c (avr_push_dummy_code): Delete function.
4683 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4684
4685 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4686
4687 * arch-utils.c (default_prepare_to_proceed): Remove.
4688 (generic_prepare_to_proceed): Remove.
4689 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4690 (generic_prepare_to_proceed): Remove prototype.
4691 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4692 * gdbarch.c: Regenerate.
4693 * gdbarch.h: Regenerate.
4694 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4695 * hppah-nat.c (hppa_switched_threads): Remove.
4696 * infrun.c (prepare_to_proceed): New static function, copied from
4697 generic_prepare_to_proceed. Remove select_it argument.
4698 (proceed): Call prepare_to_proceed.
4699 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4700 variables.
4701 (ptrace_wait): Don't set the removed variables.
4702 (hppa_switched_threads): Remove.
4703 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4704 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4705 (lin_lwp_prepare_to_proceed): Remove prototype.
4706 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4707 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4708
4709 2003-06-18 Theodore A. Roth <troth@openavr.org>
4710
4711 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4712 trad-frame.h.
4713 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4714 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4715 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4716 (AVR_PROLOGUE_*): Enumerate prologue types.
4717 (struct frame_extra_info): Remove.
4718 (struct avr_unwind_cache): Define.
4719 (avr_write_sp): Delete function.
4720 (avr_read_fp): Ditto.
4721 (avr_init_extra_frame_info): Ditto.
4722 (avr_pop_frame): Ditto.
4723 (avr_frame_saved_pc): Ditto.
4724 (avr_saved_pc_after_call): Ditto.
4725 (avr_push_return_address): Ditto.
4726 (avr_frame_chain): Ditto.
4727 (avr_store_struct_return): Ditto.
4728 (avr_push_arguments): Ditto.
4729 (avr_scan_prologue): Update comments. Changed to set up the info for
4730 cache unwinding. Now returns end of prologue PC.
4731 (avr_skip_prologue): Better handling of functions lacking a prologue
4732 by using avr_scan_prologue.
4733 (avr_scan_arg_moves): New function.
4734 (avr_saved_regs_unwinder): Ditto.
4735 (avr_frame_unwind_cache): Ditto.
4736 (avr_unwind_pc): Ditto.
4737 (avr_frame_this_id): Ditto.
4738 (avr_frame_prev_register): Ditto.
4739 (avr_frame_p): Ditto.
4740 (avr_frame_base_address ): Ditto.
4741 (avr_unwind_dummy_id): Ditto.
4742 (avr_push_dummy_code): Ditto.
4743 (push_stack_item): Ditto.
4744 (pop_stack_item): Ditto.
4745 (avr_push_dummy_call): Ditto.
4746 (struct stack_item): Define.
4747 (avr_frame_unwind): Declare structure.
4748 (avr_frame_base): Ditto.
4749 (avr_gdbarch_init): Remove calls to
4750 set_gdbarch_deprecated_init_frame_pc,
4751 set_gdbarch_deprecated_target_read_fp,
4752 set_gdbarch_deprecated_dummy_write_sp,
4753 set_gdbarch_deprecated_fp_regnum,
4754 set_gdbarch_deprecated_push_arguments,
4755 set_gdbarch_deprecated_push_return_address,
4756 set_gdbarch_deprecated_pop_frame,
4757 set_gdbarch_deprecated_store_struct_return,
4758 set_gdbarch_deprecated_frame_init_saved_regs,
4759 set_gdbarch_deprecated_init_extra_frame_info,
4760 set_gdbarch_deprecated_frame_chain,
4761 set_gdbarch_deprecated_frame_saved_pc,
4762 set_gdbarch_deprecated_saved_pc_after_call.
4763 Add calls to set_gdbarch_push_dummy_call,
4764 set_gdbarch_push_dummy_code,
4765 frame_unwind_append_predicate,
4766 frame_base_set_default,
4767 set_gdbarch_unwind_dummy_id,
4768 set_gdbarch_unwind_pc.
4769 Wrap a long line.
4770
4771 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4772
4773 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4774 registers for H8/300S.
4775 (h8300_print_registers_info): Ditto.
4776 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4777
4778 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4781 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4782 (lin_lwp_wait): Likewise. Update comments.
4783 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4784 (pull_pid_from_list, linux_record_stopped_pid): New.
4785
4786 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4787
4788 * ada-lang.c (scan_discrim_bound): Name first argument.
4789 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4790 declared by ALL_BLOCK_SYMBOLS.
4791
4792 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4793
4794 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4795 ("regcache.h"): Include it.
4796 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4797
4798 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4799
4800 * NEWS: Mention gdbserver detach change and "disconnect" command.
4801 * infcmd.c (disconnect_command): New function.
4802 (_initialize_infcmd): Add ``disconnect'' command.
4803 * remote.c (remote_async_detach): Delete.
4804 (remote_detach): Merge remote_async_detach.
4805 (remote_disconnect): New.
4806 (init_remote_ops): Set to_disconnect.
4807 (init_remote_cisco_ops): Likewise.
4808 (init_remote_async_ops): Likewise. Use remote_detach.
4809 * target.c (cleanup_target): Default to_disconnect.
4810 (update_current_target): Inherit to_disconnect.
4811 (target_disconnect, debug_to_disconnect): New functions.
4812 (setup_target_debug): Set to_disconnect.
4813 * target.h (struct target_ops): Add to_disconnect.
4814 (target_disconnect): Add prototype.
4815
4816 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4817
4818 * breakpoint.c (insert_catchpoint): New function.
4819 (insert_breakpoints): Use catch_exceptions to call
4820 insert_catchpoint. Disable catchpoints if they fail to insert.
4821
4822 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4823
4824 * symfile.c (reread_symbols): Clear sym_private.
4825
4826 2003-06-17 Andrew Cagney <cagney@redhat.com>
4827
4828 * trad-frame.h (struct frame_info): Add opaque declaration.
4829 * remote-fileio.h (struct cmd_list_element): Add opaque
4830 declaration.
4831 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4832 comments.
4833
4834 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4835
4836 * remote.c (remote_prepare_to_store): Replace call to
4837 deprecated_read_register_bytes with multiple regcache_raw_read
4838 calls.
4839
4840 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4841
4842 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4843 (nto_find_and_open_solib): Likewise.
4844 (nto_init_solib_absolute_prefix): Likewise.
4845 (_initialize_nto_tdep): Fix indentation.
4846
4847 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4848
4849 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4850
4851 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4852
4853 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4854
4855 2003-06-17 Jim Blandy <jimb@redhat.com>
4856
4857 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4858
4859 2003-06-16 Theodore A. Roth <troth@openavr.org>
4860
4861 * avr-tdep.c (avr_extract_return_value): New function.
4862 (avr_gdbarch_init): Set extract_return_value method.
4863
4864 2003-06-16 Andrew Cagney <cagney@redhat.com>
4865
4866 * frame.h (deprecated_get_next_frame_hack): Declare.
4867 * frame.c (legacy_saved_regs_prev_register): Only require
4868 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4869 there are always saved regs.
4870 (deprecated_generic_get_saved_register): Do not require
4871 DEPRECATED_FRAME_INIT_SAVED_REGS.
4872 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4873 use frame ID unwind instead.
4874 (deprecated_get_next_frame_hack): New function.
4875
4876 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4877
4878 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4879 (h8300_push_dummy_call): ...this function. Some minor optimization.
4880 (h8300_push_return_address): Remove.
4881 (h8300_gdbarch_init): Remove calls to
4882 set_gdbarch_deprecated_dummy_write_sp,
4883 set_gdbarch_deprecated_push_arguments and
4884 set_gdbarch_deprecated_push_return_address.
4885 Add call to set_gdbarch_push_dummy_call.
4886
4887 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4888
4889 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4890 (E_PSEUDO_EXR_REGNUM): Ditto.
4891 (h8300_is_argument_spill): Check for instructions moving argument
4892 registers into safe registers.
4893 (h8300_skip_prologue): Check for stm instruction to push registers
4894 used for register variables onto stack.
4895 (gdb_print_insn_h8300): Remove.
4896 (h8300_examine_prologue): Add a comment.
4897 (h8300_register_name): Take pseudo registers into account.
4898 (h8300s_register_name): Ditto.
4899 (h8300sx_register_name): Ditto.
4900 (h8300_print_register): Ditto.
4901 (h8300_print_registers_info): Define "nice" printing order.
4902 (h8300_saved_pc_after_call): Take pseudo registers into account.
4903 (h8300_register_type): Ditto. Return type used for remote connection
4904 when requesting real CCR or EXR register, return actual type when
4905 requesting pseudo CCR or EXR.
4906 (h8300_pseudo_register_read): New function.
4907 (h8300_pseudo_register_write): Ditto.
4908 (h8300_dbg_reg_to_regnum): Ditto.
4909 (h8300s_dbg_reg_to_regnum): Ditto.
4910 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4911 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4912 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4913 set_gdbarch_print_insn architecture dependent.
4914 Call set_gdbarch_pseudo_register_read and
4915 set_gdbarch_pseudo_register_write.
4916 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4917
4918 2003-06-16 Andrew Cagney <cagney@redhat.com>
4919
4920 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4921 * gdbarch.h, gdbarch.c: Re-generate.
4922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4923 * s390-tdep.c (s390_gdbarch_init): Update.
4924 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4926 * mips-tdep.c (mips_gdbarch_init): Update.
4927 * mcore-tdep.c (mcore_gdbarch_init): Update.
4928 * cris-tdep.c (cris_gdbarch_init): Update.
4929 * infcall.c (call_function_by_hand): Update.
4930 * ia64-tdep.c (ia64_push_arguments): Update comment.
4931 * frame.c (legacy_get_prev_frame): Do not assume
4932 SAVE_DUMMY_FRAME_TOS_P.
4933 * dummy-frame.c (find_dummy_frame): Update comment.
4934
4935 2003-06-16 Andrew Cagney <cagney@redhat.com>
4936
4937 * regcache.c (do_cooked_read): Do not use register_valid_p.
4938
4939 2003-06-15 Theodore A. Roth <troth@openavr.org>
4940
4941 * avr-tdep.c (avr_register_type): Remove a blank line.
4942 (avr_scan_prologue): Correct some comments.
4943
4944 2003-06-15 Theodore A. Roth <troth@openavr.org>
4945
4946 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4947 prologue types.
4948 Properly scan prologues generated by gcc with the -mcall-prologues
4949 option.
4950 Add code to scan -mcall-prologues for mega devices.
4951
4952 2003-06-15 Theodore A. Roth <troth@openavr.org>
4953
4954 * avr-tdep.c (avr_register_byte): Delete function.
4955 (avr_register_raw_size): Delete function.
4956 (avr_register_virtual_size): Delete function.
4957 (avr_register_virtual_type): Delete function.
4958 (avr_register_type): New function.
4959 (avr_address_to_pointer): Remove unused code.
4960 (avr_read_fp): Need to read FP as two separate bytes due to change to
4961 avr_register_type() usage.
4962 (avr_gdbarch_init): Don't set deprecated_register_size.
4963 Don't set deprecated_register_bytes.
4964 Don't set deprecated_register_byte.
4965 Don't set deprecated_register_raw_size.
4966 Don't set deprecated_max_register_raw_size.
4967 Don't set deprecated_register_virtual_size.
4968 Don't set deprecated_max_register_virtual_size.
4969 Don't set deprecated_register_virtual_type.
4970 Set register_type method.
4971
4972 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4973
4974 * Makefile.in (linux-nat.o): Add rule.
4975 * linux-nat.c: New file.
4976 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4977 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4978 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4979 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4980 * config/arm/linux.mh (NATDEPFILES): Likewise.
4981 * config/i386/linux.mh (NATDEPFILES): Likewise.
4982 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4983 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4984 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4985 * config/mips/linux.mh (NATDEPFILES): Likewise.
4986 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4987 * config/s390/s390.mh (NATDEPFILES): Likewise.
4988 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4989
4990 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4991
4992 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4993 replace out-of-date comment.
4994
4995 2003-06-15 Andrew Cagney <cagney@redhat.com>
4996
4997 * rdi-share/host.h (Fail): Change to a varargs function.
4998 * remote-rdi.c (Fail): Update.
4999
5000 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5001
5002 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
5003 (i386_convert_register_p, i386_register_to_value,
5004 i386_register_from_value): Handle types longer than 8 bytes.
5005
5006 2003-06-15 Mark Kettenis <kettenis@gnu.org>
5007
5008 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
5009 Move floating-point code to new function in i387-tdep.c.
5010 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
5011 New functions containing code moved here from i386-tdep.c.
5012 * i387-tdep.h: Add opaque declaration for `struct type'.
5013 (i387_register_to_value, i387_value_to_register): New prototypes.
5014 * x86-64-tdep.c (x86_64_convert_register_p): New function.
5015 (x86_64_init_abi): Set convert_register_p, register_to_value and
5016 value_to_register here.
5017
5018 2003-06-14 Andrew Cagney <cagney@redhat.com>
5019
5020 * mips-tdep.c (mips_register_to_value): Make static.
5021 (mips_value_to_register): Make static.
5022 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
5023 * ia64-tdep.c (ia64_register_raw_size): Make static.
5024 (ia64_register_virtual_size): Make static.
5025 (ia64_register_byte): Make static.
5026 * i387-tdep.c: Include "i387-tdep.h".
5027 (print_387_control_word): Delete function.
5028 (print_387_status_word): Delete function.
5029 (print_387_status_bits): Delete function.
5030 (print_387_control_bits): Delete function.
5031 * Makefile.in (i387-tdep.o): Update dependencies.
5032 * rdi-share/host.h (Fail): Declare.
5033 * remote-rdi.c (Fail): Update to match declaration.
5034
5035 2003-06-14 Andrew Cagney <cagney@redhat.com>
5036
5037 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
5038 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
5039 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
5040 * config/djgpp/fnchange.lst: Delete "remote-array.c".
5041 * README: Delete reference to remote-array.
5042 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
5043 (remote-array.o): Delete target.
5044 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
5045 * remote-array.c: Delete file.
5046
5047 2003-06-14 Andrew Cagney <cagney@redhat.com>
5048 Mark Kettenis <kettenis@gnu.org>
5049
5050 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
5051 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
5052 parameter with "frame".
5053 * gdbarch.h, gdbarch.c: Re-generate.
5054 * frame.h (put_frame_register): Declare.
5055 * frame.c (put_frame_register): New function.
5056 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
5057 (legacy_register_to_value): Rewrite, use "frame" to get the
5058 register value.
5059 (legacy_value_to_register): Rewrite, use "frame" to find the
5060 register's location before storing.
5061 * arch-utils.h (legacy_convert_register_p): Update.
5062 (legacy_register_to_value, legacy_value_to_register): Update.
5063 * findvar.c (value_from_register): Rewrite, eliminate use of
5064 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
5065 "frame" to REGISTER_TO_VALUE.
5066 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
5067 lval_reg_frame_relative + lval_register branch of the switch. Do
5068 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
5069 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
5070 I386_EDI_REGNUM): New defines.
5071 (i386_next_regnum, i386_convert_register_p,
5072 i386_register_to_value, i386_value_to_register): New functions.
5073 (i386_register_convertible, i386_register_convert_to_virtual,
5074 i386_convert_to_raw): Remove functions.
5075 (i386_gdbarch_init): Set convert_register_p, register_to_value and
5076 value_to_register instead of register_convertible,
5077 register_convert_to_virtual and register_convert_to_raw.
5078 * mips-tdep.c (mips_convert_register_p): New function.
5079 (mips_value_to_register): Replace mips_register_convert_from_type.
5080 (mips_register_to_value): Replace mips_register_convert_to_type.
5081 (mips_gdbarch_init): Set conver_register_p, value_to_register and
5082 register_to_value.
5083 * alpha-tdep.c (alpha_convert_register_p): Update.
5084 (alpha_value_to_register): Update, store the register.
5085 (alpha_register_to_value): Update, fetch the register.
5086
5087 2003-06-14 Theodore A. Roth <troth@openavr.org>
5088
5089 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
5090 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
5091 Don't set deprecated_call_dummy_words.
5092 Remove commented out set_gdbarch_believe_pcc_promotion() call.
5093 Don't set remote_translate_xfer_address.
5094 (avr_io_reg_read_command): Remove commented out debug printf.
5095 Wrap a long line.
5096
5097 2003-06-14 Theodore A. Roth <troth@openavr.org>
5098
5099 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
5100 causes gdb to seg fault.
5101
5102 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
5103
5104 * sparc-nat.c (fetch_inferior_registers): Correct
5105 a reference to "registers".
5106
5107 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
5108
5109 * Makefile.in (exc_request_U_h): Define
5110 (exc_request_S_h): Likewise.
5111 (msg_reply_S_h): Likewise.
5112 (msg_U_h): Likewise.
5113 (notify_S_h): Likewise.
5114 (process_reply_S_h): Likewise.
5115 (gnu-nat.o): Depend on gdb_obstack_h
5116 * gnu-nat.c: Include "gdb_obstack.h".
5117
5118 2003-06-13 Andrew Cagney <cagney@redhat.com>
5119
5120 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
5121 * gdbarch.h, gdbarch.c: Re-generate.
5122
5123 2003-06-13 Andrew Cagney <cagney@redhat.com>
5124
5125 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
5126 when deprecated REGISTER macros can be deleted.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128
5129 2003-06-13 Jim Blandy <jimb@redhat.com>
5130
5131 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
5132 Linux entry point symbols for _dl_debug_state, too.
5133
5134 2003-06-13 Andrew Cagney <cagney@redhat.com>
5135
5136 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
5137 available, do not use the FP register, and always save the TOS.
5138 * dummy-frame.c (dummy_frame_this_id): Do not assert
5139 SAVE_DUMMY_FRAME_TOS.
5140 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
5141 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
5142 (i386_push_dummy_call): Add 8 to the returned SP.
5143 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
5144 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
5145 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
5146 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
5147 (x86_64_push_dummy_call): Return "sp + 16".
5148 (x86_64_init_abi): Do not set save_dummy_frame_tos.
5149 * alpha-tdep.c (alpha_gdbarch_init): Do not set
5150 save_dummy_frame_tos.
5151
5152 2003-06-13 Jim Blandy <jimb@redhat.com>
5153
5154 * frv-tdep.c (frv_use_struct_convention): Delete static
5155 declaration for function deleted in my change of 2003-06-12.
5156
5157 2003-06-13 Theodore A. Roth <troth@openavr.org>
5158
5159 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
5160 (avr_pointer_to_address): Shift code addrs left 1 bit.
5161 (avr_convert_from_func_ptr_addr): Delete function since operation is
5162 better handled by avr_address_to_pointer and avr_pointer_to_address.
5163 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
5164
5165 2003-06-13 Mark Kettenis <kettenis@gnu.org>
5166
5167 From Kelley Cook <kelleycook@wideopenwest.com>:
5168 * configure.host: Accept i[34567]86 variants.
5169 * configure.tgt: Likewise.
5170 * nlm/configure.in: Likewise.
5171 * nlm/configure: Regenerated.
5172
5173 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
5174
5175 * arm-tdep.c (solib-svr4.h): Dont' include it.
5176 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
5177 * arm-linux-tdep.c: ... here. Make static.
5178 (arm_linux_init_abi): Register it.
5179 (solib-svr4.h): Include it.
5180 * Makefile.in: Update dependencies.
5181 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
5182 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
5183
5184 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5185
5186 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
5187 indicate registers used for return values.
5188 (struct frame_extra_info): Drop args_pointer and locals_pointer.
5189 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
5190 members.
5191 (h8300_init_extra_frame_info): Ditto.
5192 (h8300_frame_locals_address): Removed.
5193 (h8300_frame_args_address): Removed.
5194 (h8300_extract_return_value): Use new regcache structure. Only care
5195 for 16 bit CPUs.
5196 (h8300h_extract_return_value): Same function for 32 bit CPUs.
5197 (h8300_store_return_value): Use new regcache structure. Only care
5198 for 16 bit CPUs.
5199 (h8300h_store_return_value): Same function for 32 bit CPUs.
5200 (h8300_store_struct_return): Removed.
5201 (h8300_extract_struct_value_address): Use new regcache structure.
5202 (h8300h_extract_struct_value_address): Removed.
5203 (h8300_push_dummy_code): New function.
5204 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5205 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5206 set_gdbarch_store_return_value architecture dependent.
5207 Call set_gdbarch_push_dummy_code and
5208 set_gdbarch_extract_struct_value_address.
5209 Remove calls to set_gdbarch_frame_args_address,
5210 set_gdbarch_frame_locals_address,
5211 set_gdbarch_deprecated_store_struct_return,
5212 set_gdbarch_deprecated_extract_return_value,
5213 set_gdbarch_deprecated_extract_struct_value_address,
5214 set_gdbarch_deprecated_call_dummy_words and
5215 set_gdbarch_deprecated_sizeof_call_dummy_words.
5216
5217 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5218
5219 * h8300-tdep.c (h8300_register_byte): Remove.
5220 (h8300h_register_byte): Remove.
5221 (h8300_register_virtual_type): Remove. Substitute by...
5222 (h8300_register_type): New function.
5223 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5224 (h8300h_extract_struct_value_address): Ditto.
5225 (h8300_gdbarch_init): Drop calls to
5226 set_gdbarch_deprecated_register_byte and
5227 set_gdbarch_deprecated_register_virtual_type.
5228 Add call to set_gdbarch_register_type.
5229
5230 2003-06-13 Andrew Cagney <cagney@redhat.com>
5231
5232 * gdbarch.sh: Update comments on registers.
5233 (deprecated_register_byte): Rename register_byte.
5234 (deprecated_register_raw_size): Rename register_raw_size.
5235 (deprecated_register_virtual_size): Rename register_virtual_size.
5236 (deprecated_register_virtual_type): Rename register_virtual_type.
5237 * gdbarch.h, gdbarch.c: Re-generate.
5238 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5239 * vax-tdep.c (vax_gdbarch_init): Update.
5240 * v850-tdep.c (v850_gdbarch_init): Update.
5241 * sparc-tdep.c (sparc_gdbarch_init): Update.
5242 * sh-tdep.c (sh_gdbarch_init): Update.
5243 * s390-tdep.c (s390_gdbarch_init): Update.
5244 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5245 * ns32k-tdep.c: Update.
5246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5247 * mips-tdep.c (mips_gdbarch_init): Update.
5248 * mcore-tdep.c (mcore_gdbarch_init): Update.
5249 * m68k-tdep.c (m68k_gdbarch_init): Update.
5250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5251 * ia64-tdep.c (ia64_gdbarch_init): Update.
5252 * hppa-tdep.c (hppa_gdbarch_init): Update.
5253 * h8300-tdep.c (h8300_gdbarch_init): Update.
5254 * frv-tdep.c (frv_gdbarch_init): Update.
5255 * cris-tdep.c (cris_gdbarch_init): Update.
5256 * avr-tdep.c (avr_gdbarch_init): Update.
5257 * alpha-tdep.c (alpha_gdbarch_init): Update.
5258 * arm-tdep.c (arm_gdbarch_init): Update.
5259
5260 2003-06-13 Andrew Cagney <cagney@redhat.com>
5261
5262 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5263 mips_o32_use_struct_convention with always_use_struct_convention.
5264
5265 2003-06-12 David Carlton <carlton@kealia.com>
5266
5267 * cp-namespace.c (cp_set_block_scope): Comment out
5268 processing_has_namespace_info branch.
5269
5270 2003-06-12 Jim Blandy <jimb@redhat.com>
5271
5272 Recognize and skip 64-bit PowerPC Linux linkage functions.
5273 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5274 insn_pattern, insns_match_pattern, d_field, ds_field): New
5275 functions, macros, and types for working with PPC instructions.
5276 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5277 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5278 ppc64_skip_trampoline_code): New functions, variables, and macros
5279 for recognizing and skipping linkage functions.
5280 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5281 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5282
5283 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5284 register offsets for both the 32- and 64-bit interfaces.
5285
5286 Actually finish the job started by my change of 2003-05-29.
5287 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5288 other #definition of this.
5289 (ppc_linux_skip_trampoline_code): Remove declaration.
5290 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5291 static.
5292 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5293 method for GDBARCH.
5294
5295 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5296 'long' on ppc64-*-linux*.
5297
5298 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5299 isn't #defined, assume the register doesn't exist: act as if
5300 tdep->ppc_mq_regnum were -1.
5301
5302 * configure.host, configure.tgt: Add entries for
5303 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5304 powerpc/linux.mt.
5305 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5306 New files.
5307
5308 * arch-utils.c (always_use_struct_convention): New function.
5309 * arch-utils.h (always_use_struct_convention): New prototype.
5310 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5311 (alpha_gdbarch_init): Register always_use_struct_convention,
5312 instead of alpha_use_struct_convention.
5313 * cris-tdep.c (cris_use_struct_convention): Delete.
5314 (cris_gdbarch_init): Register always_use_struct_convention,
5315 instead of cris_use_struct_convention.
5316 * frv-tdep.c (frv_use_struct_convention): Delete.
5317 (frv_gdbarch_init): Register always_use_struct_convention,
5318 instead of frv_use_struct_convention.
5319 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5320 (h8300_gdbarch_init): Register always_use_struct_convention,
5321 instead of h8300_use_struct_convention.
5322 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5323 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5324 instead of mips_o32_use_struct_convention.
5325
5326 2003-06-12 Andrew Cagney <cagney@redhat.com>
5327
5328 * wince.c: Include "mips-tdep.h".
5329 * mips-tdep.h (mips_next_pc): Declare.
5330 * mcore-tdep.c: Make more local functions static.
5331 * Makefile.in (wince.o): Update dependencies.
5332
5333 2003-06-12 David Carlton <carlton@kealia.com>
5334
5335 * symtab.c (lookup_symbol_aux_minsyms): Replace
5336 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5337 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5338 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5339 SYMBOL_NATURAL_NAME.
5340
5341 2003-06-12 Andreas Schwab <schwab@suse.de>
5342
5343 * Makefile.in (tuiDisassem.o): Update dependencies.
5344
5345 2003-06-12 David Carlton <carlton@bactrian.org>
5346
5347 * symtab.h: Delete declaration of make_symbol_overload_list.
5348 Add declaration of lookup_partial_symbol.
5349 * symtab.c (remove_params): Move to cp-support.c.
5350 (overload_list_add_symbol, make_symbol_overload_list)
5351 (sym_return_val_size, sym_return_val_index): Ditto.
5352 (lookup_partial_symbol): Make extern.
5353 * cp-support.h: Add declaration of make_symbol_overload_list.
5354 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5355 symtab.h, and block.h.
5356 (remove_params): Move here from symtab.c.
5357 (overload_list_add_symbol, make_symbol_overload_list)
5358 (sym_return_val_size, sym_return_val_index): Ditto.
5359 * valops.c: Include cp-support.h.
5360 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5361 frame_h, and block_h.
5362 (valops.o): Depend on cp_support_h.
5363
5364 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5365
5366 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5367 substitute by NUM_REGS throughout.
5368 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5369 (h8300s_register_name): New function for H8S registers.
5370 (h8300sx_register_name): Ditto for H8SX registers.
5371 (h8300_print_register): Revise register printing, avoid depending
5372 on 32 bit long.
5373 (h8300_register_byte): Only care for H8/300 registers.
5374 (h8300h_register_byte): New function for any other architecture.
5375 (h8300_register_raw_size): Remove.
5376 (h8300_register_virtual_type): Revise to return actually useful
5377 type.
5378 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5379 (h8300h_extract_struct_value_address): New function for any other
5380 architecture.
5381 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5382 set_gdbarch_register_name, set_gdbarch_register_byte,
5383 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5384 Remove calls to set_gdbarch_deprecated_register_size,
5385 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5386 set_gdbarch_deprecated_max_register_raw_size,
5387 set_gdbarch_register_virtual_size and
5388 set_gdbarch_deprecated_max_register_virtual_size entirely.
5389 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5390 set_gdbarch_long_double_bit.
5391
5392 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5393
5394 * doublest.c (convert_doublest_to_floatformat): When dealing
5395 with the implied integer bit, only alter mant_bits if we are
5396 processing a full 32 bits of mantissa.
5397
5398 2003-06-11 David Carlton <carlton@bactrian.org>
5399
5400 * dictionary.h: New.
5401 * dictionary.c: New.
5402 * block.h: Add opaque declaration for struct dictionary.
5403 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5404 'sym' members.
5405 (BLOCK_DICT): New macro.
5406 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5407 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5408 BLOCK_SHOULD_SORT.
5409 (ALL_BLOCK_SYMBOLS): Update definition.
5410 * Makefile.in (SFILES): Add dictionary.c.
5411 (dictionary_h): New.
5412 (COMMON_OBS): Add dictionary.o.
5413 (dictionary.o): New.
5414 (ada-lang.o): Depend on dictionary_h.
5415 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5416 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5417 (mi-cmd-stack.o): Ditto.
5418 (gdbtk-cmds.o): Update dependencies.
5419 (gdbtk-stack.o): Ditto.
5420 * ada-lang.c: Include dictionary.h.
5421 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5422 (fill_in_ada_prototype, debug_print_block): Ditto.
5423 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5424 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5425 'is_sorted'.
5426 * mdebugread.c: Include dictionary.h.
5427 (struct parse_stack): Delete 'maxsyms' member.
5428 (parse_symbol): Update calls to new_block. Delete calls to
5429 shrink_block. Use dictionary methods.
5430 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5431 Update calls to new_symtab. Don't maintain maxsyms data.
5432 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5433 (add_symbol): Just call dict_add_symbol.
5434 (new_symtab): Delete 'maxsyms' argument.
5435 (new_symtab): Update calls to new_block.
5436 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5437 (shrink_block): Delete function.
5438 (fixup_sigtramp): Update call to new_block. Add symbol via
5439 dict_add_symbol.
5440 * jv-lang.c: Include dictionary.h.
5441 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5442 appropriately. Set class_symtab->free_func. Make sure the
5443 blockvector is big enough to hold two blocks.
5444 (add_class_symtab_symbol): Use dictionary methods.
5445 (free_class_block): New function.
5446 (type_from_class): Replace explicit iteration by
5447 ALL_BLOCK_SYMBOLS.
5448 * symtab.h (struct symtab): Replace 'free_ptr' method by
5449 'free_func'.
5450 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5451 sort_symtab_syms.
5452 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5453 sort_symtab_syms.
5454 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5455 Include dictionary.h.
5456 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5457 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5458 sort_symtab_syms.
5459 * objfiles.c: Include dictionary.h.
5460 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5461 * buildsym.c: Include dictionary.h.
5462 (finish_block): Use dictionary methods.
5463 (end_symtab): Set free_func to NULL, not free_ptr.
5464 * tracepoint.c: Include dictionary.h.
5465 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5466 (scope_info): Ditto.
5467 * stack.c: Include dictionary.h.
5468 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5469 (print_block_frame_labels, print_frame_arg_vars)
5470 (print_frame_args): Ditto.
5471 * symmisc.c (free_symtab_block): Use dictionary methods.
5472 (dump_symtab): Ditto.
5473 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5474 Include dictionary.h.
5475 * symfile.h: Delete declarations of sort_block_syms,
5476 sort_symtab_syms.
5477 * symfile.c (sort_block_syms): Delete.
5478 (sort_symtab_syms): Delete.
5479 * symtab.c: Include dictionary.h.
5480 (lookup_block_symbol): Use dictionary iterators.
5481 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5482 (search_symbols, make_symbol_completion_list): Ditto.
5483 (make_symbol_overload_list): Ditto.
5484 * valops.c (value_of_local): Use dict_empty.
5485 Include dictionary.h.
5486
5487 2003-06-11 J. Brobecker <brobecker@gnat.com>
5488
5489 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5490
5491 2003-06-11 David Carlton <carlton@bactrian.org>
5492
5493 * block.h (BLOCK_SHOULD_SORT): Delete.
5494 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5495 blocks.
5496 * ada-lang.c (ada_add_block_symbols): Ditto.
5497 * symfile.c (sort_block_syms): Delete.
5498 (sort_symtab_syms): Ditto.
5499 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5500 declarations.
5501 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5502 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5503 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5504 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5505 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5506 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5507 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5508
5509 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5510
5511 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5512 bits to 128.
5513
5514 2003-06-11 Andrew Cagney <cagney@redhat.com>
5515
5516 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5517 REGISTER_CONVERTIBLE.
5518 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5519 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5520 * gdbarch.h, gdbarch.c: Re-generate.
5521 * arch-utils.h (deprecated_register_convertible_not): Rename
5522 generic_register_convertible_not.
5523 * arch-utils.c (deprecated_register_convertible_not): Rename
5524 generic_register_convertible.
5525 (legacy_convert_register_p, legacy_register_to_value): Update.
5526 * sh-tdep.c (sh64_push_arguments): Update.
5527 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5528 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5529 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5530 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5531 * arch-utils.c (legacy_value_to_register): Update.
5532 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5533 (rs6000_register_convert_to_raw): Make parameter "from" const.
5534 * mips-tdep.c (mips_gdbarch_init): Update.
5535 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5536 * infcmd.c (default_print_registers_info): Update.
5537 * ia64-tdep.c (ia64_gdbarch_init): Update.
5538 (ia64_register_convert_to_raw): Make parameter "from" const.
5539 * i386-tdep.c (i386_gdbarch_init): Update.
5540 (i386_register_convert_to_raw): Update.
5541
5542 2003-06-11 Andrew Cagney <cagney@redhat.com>
5543
5544 * remote-fileio.c: Include "remote-fileio.h".
5545 * Makefile.in (remote-fileio.o): Update dependencies.
5546 (remote_fileio_h): Fix typo.
5547
5548 2003-06-11 Andrew Cagney <cagney@redhat.com>
5549
5550 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5551 (xstormy16_save_dummy_frame_tos): Make static.
5552 (_initialize_xstormy16_tdep): Add declaration.
5553 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5554 * v850-tdep.c: Make local functions static.
5555 (_initialize_v850_tdep): Add declaration.
5556 * sparc-tdep.c: Make local functions static.
5557 (_initialize_sparc_tdep): Add declaration.
5558 * sh-tdep.c: Make local functions static.
5559 (_initialize_sh_tdep): Add declaration.
5560 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5561 * s390-tdep.c: Make local functions static.
5562 (_initialize_s390_tdep): Add declaration.
5563 * dbxread.c (find_stab_function_addr): Make static.
5564 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5565 * ocd.c (_initialize_remote_ocd): Add declaration.
5566 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5567 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5568 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5569 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5570 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5571 * remote-array.c (_initialize_array): Add declaration.
5572 (_initialize_remote_monitors): Add declaration.
5573 * remote-mips.c: Make local functions static.
5574 (_initialize_remote_mips): Add declaration.
5575 * mcore-tdep.c: Make all local functions static.
5576 (_initialize_mcore_tdep): Add declaration.
5577 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5578 * abug-rom.c (_initialize_abug_rom): Add declaration.
5579 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5580 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5581 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5582 * remote-est.c (_initialize_est): Add declaration.
5583 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5584 (m68hc11_call_dummy_address): Make static.
5585 * ia64-tdep.c: Make local functions static.
5586 (_initialize_ia64_tdep): Add declaration.
5587 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5588 * monitor.c (monitor_wait_filter): Make static.
5589 (_initialize_remote_monitors): Add declaration.
5590 * remote-hms.c (_initialize_remote_hms): Add declaration.
5591 * remote-e7000.c (fetch_regs_from_dump): Make static.
5592 (expect_n): Make static.
5593 (_initialize_remote_e7000): Add declaration.
5594 * ser-e7kpc.c: Always include "defs.h".
5595 (_initialize_ser_e7000pc): Add declaration.
5596 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5597 * cris-tdep.c: Make all but one function static.
5598 (_initialize_cris_tdep): Add declaration.
5599 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5600 * solib.c (update_solib_list): Make static.
5601 (_initialize_solib): Add declaration.
5602 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5603 (_initialize_avr_tdep): Add declaration.
5604 * remote-rdi.c (voiddummy): Make static.
5605 (_initialize_remote_rdi): Add declaration.
5606 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5607 * remote-rdp.c (send_rdp): Make static.
5608 (_initialize_remote_rdp): Add declaration.
5609 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5610
5611 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5612
5613 * remote-fileio.c: Make ari happy.
5614
5615 2003-06-10 J. Brobecker <brobecker@gnat.com>
5616
5617 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5618 fetching the trailing bytes of the buffer we are about to write.
5619
5620 2003-06-10 Andrew Cagney <cagney@redhat.com>
5621
5622 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5623 * Makefile.in (remote-fileio.o): Update dependencies.
5624 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5625 include <setjmp.h>, or <sys/types.h> conditional on USG.
5626 (remote_fio_jmp_buf): Delete global variable.
5627
5628 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5629 Martin M. Hunt <hunt@redhat.com>
5630
5631 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5632 (SFILES): Add remote-fileio.c.
5633 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5634 dependencies for building remote.o.
5635 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5636 * remote-fileio.h: New header file defining remote File-I/O interface.
5637 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5638 static storage class.
5639 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5640 'F' packet.
5641 (_initialize_remote): Call initialize_remote_fileio().
5642 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5643 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5644 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5645 (captured_main): Initialize new ui_files.
5646 * ui-file.c: Add read and fgets input functions.
5647 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5648 (null_file_read): New function.
5649 (ui_file_read): New function.
5650 (set_ui_file_read): New function.
5651 (stdio_file_read): New function.
5652 * ui-file.h: New type ui_file_read_ftype.
5653 (set_ui_file_read): Declare.
5654 (ui_file_read): Declare.
5655
5656 2003-06-09 Andrew Cagney <cagney@redhat.com>
5657
5658 * frame.h (deprecated_unwind_get_saved_register): Rename
5659 generic_unwind_get_saved_register, update comments.
5660 * mips-tdep.c (mips_get_saved_register): Update.
5661 * frame.c (deprecated_unwind_get_saved_register): Update.
5662
5663 2003-06-09 Andrew Cagney <cagney@redhat.com>
5664
5665 * vax-tdep.c (vax_frame_locals_address): Delete function.
5666 (vax_gdbarch_init): Do not set frame_locals_address.
5667 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5668 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5669 * s390-tdep.c (s390_frame_args_address): Delete function.
5670 (s390_gdbarch_init): Do not set frame_args_address or
5671 frame_locals_address.
5672 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5673 (ns32k_gdbarch_init): Do not set frame_locals_address.
5674 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5675 (hppa_frame_locals_address): Delete function.
5676 (hppa_gdbarch_init): Do not set frame_args_address, or
5677 frame_locals_address.
5678 * arm-tdep.c (arm_frame_args_address): Delete.
5679 (arm_frame_locals_address): Delete.
5680 (arm_gdbarch_init): Do not set frame_args_address, or
5681 frame_locals_address.
5682
5683 2003-06-09 Andrew Cagney <cagney@redhat.com>
5684
5685 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5688 * arch-utils.c (frame_num_args_unknown): Delete function.
5689 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5690 (frame_info): Use FRAME_NUM_ARGS_P.
5691 * arm-tdep.c (arm_frame_num_args): Delete function.
5692 (arm_gdbarch_init): Do not set frame_num_args.
5693 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5694 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5695 (hppa_gdbarch_init): Do not set frame_num_args.
5696 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5698 frame_num_args to default frame_num_args_unknown.
5699 * v850-tdep.c (v850_gdbarch_init): Ditto.
5700 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5701 * sh-tdep.c (sh_gdbarch_init): Ditto.
5702 * s390-tdep.c (s390_gdbarch_init): Ditto.
5703 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5704 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5705 * mips-tdep.c (mips_gdbarch_init): Ditto.
5706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5707 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5709 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5710 * i386-tdep.c (i386_gdbarch_init): Ditto.
5711 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5712 * frv-tdep.c (frv_gdbarch_init): Ditto.
5713 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5714 * cris-tdep.c (cris_gdbarch_init): Ditto.
5715 * avr-tdep.c (avr_gdbarch_init): Ditto.
5716 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5717
5718 2003-06-09 Andrew Cagney <cagney@redhat.com>
5719
5720 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5721 (print_frame_args): Moved to "stack.c".
5722 * stack.c: Include "gdb_assert.h".
5723 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5724 (print_frame_args): Moved from "printcmd.c".
5725 * frame.h (print_frame_args): Delete declaration.
5726 * Makefile.in (stack.o): Update dependencies.
5727
5728 2003-06-08 Andrew Cagney <cagney@redhat.com>
5729
5730 * frame.c (get_prev_frame): Remove reference to
5731 frame_args_address_correct in comments.
5732 * frame-base.c (default_frame_args_address): Delete code
5733 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5734 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5735 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5736 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5737 (vax_frame_args_address_correct): Delete declaration.
5738
5739 2003-06-08 Andrew Cagney <cagney@redhat.com>
5740
5741 * gdbarch.sh (UNWIND_SP): Add.
5742 * gdbarch.h, gdbarch.c: Re-generate.
5743 * frame.c (frame_sp_unwind): New function.
5744 (get_frame_sp): New function.
5745 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5746 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5747 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5748 value.
5749 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5750 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5751
5752 2003-06-08 Andrew Cagney <cagney@redhat.com>
5753
5754 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5755 REMOTE_BREAKPOINT.
5756 * remote.c: Update.
5757 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5758 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5759 * config/m68k/tm-sun3.h: Update.
5760 * config/m68k/tm-m68klynx.h: Update.
5761 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5762
5763 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5764 trad_frame". Update comments.
5765 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5766 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5767 (trad_frame_register_value, trad_frame_prev_register): Update.
5768
5769 2003-06-08 Andrew Cagney <cagney@redhat.com>
5770
5771 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5772 from GCC's acinclude.m4.
5773 * configure.in: Check for getopt's delcaration.
5774 * aclocal.m4, config.in, configure: Re-generate.
5775 * main.c (error_init): Delete declaration.
5776 * defs.h (error_init): Declare.
5777 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5778 (rs6000_convert_from_func_ptr_addr): Make static.
5779 (_initialize_rs6000_tdep): Add declaration.
5780 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5781 (show_commands, set_verbose, show_history): Delete declaration.
5782 * top.h (set_verbose): Add declaration.
5783 (show_history, set_history, show_commands): Add declaration.
5784 (do_restore_instream_cleanup): Add declaration.
5785 * objc-lang.c (specialcmp): Make static.
5786 (print_object_command): Make static.
5787 (find_objc_msgsend): Make static.
5788 (find_objc_msgcall_submethod_helper): Make static.
5789 (find_objc_msgcall_submethod): Make static.
5790 (_initialize_objc_language): Add declaration.
5791 (find_implementation_from_class): Make static.
5792 (find_implementation): Make static.
5793 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5794 * objc-lang.h (lookup_struct_typedef): Add declaration.
5795 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5796 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5797 (do_restore_user_call_depth): Make static.
5798 (do_restore_instream_cleanup): Delete declaration.
5799 (dont_repeat): Delete declaration.
5800 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5801 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5802 * reggroups.c (_initialize_reggroup): Add declaration.
5803 * cp-support.c (_initialize_cp_support): Add declaration.
5804 * cp-abi.c (_initialize_cp_abi): Add declaration.
5805 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5806 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5807 (_initialize_gnu_v3_abi): Add declaration.
5808 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5809 (_initialize_gnu_v2_abi): Add declaration.
5810 * frame-base.c (_initialize_frame_base): Add declaration.
5811 * doublest.c (floatformat_from_length): Make static.
5812 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5813 * frame.c (create_sentinel_frame): Make static.
5814 (_initialize_frame): Add declaration.
5815 * top.c (do_catch_errors): Make static.
5816 (gdb_rl_operate_and_get_next_completion): Make static.
5817 * typeprint.c: Include "typeprint.h".
5818 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5819 (sentinel_frame_this_id): Make static.
5820 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5821 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5822 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5823 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5824 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5825 * maint.c (maintenance_print_architecture): Make static.
5826 * signals/signals.c (_initialize_signals): Add declaration.
5827 * std-regs.c (_initialize_frame_reg): Add declaration.
5828 * jv-exp.y (push_variable): ISO C definition.
5829 (push_qualified_expression_name): Ditto.
5830 * memattr.c (_initialize_mem): Add declaration.
5831 * remote.c (remote_check_watch_resources): Make static.
5832 (remote_stopped_by_watchpoint): Make static.
5833 (remote_stopped_data_address): Make static.
5834 * d10v-tdep.c (nr_dmap_regs): Make static.
5835 (a0_regnum): Make static.
5836 (d10v_frame_unwind_cache): Make static.
5837 (d10v_frame_p): Make static.
5838 * osabi.c (show_osabi): Make static.
5839 (_initialize_gdb_osabi): Add extern declaration.
5840 * gdbtypes.c (make_qualified_type): Make static.
5841 (safe_parse_type): Make static.
5842 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5843 * macrotab.c (macro_bcache_free): Make static.
5844 * interps.c (interp_set_quiet): Make static.
5845 (interpreter_exec_cmd): Make static.
5846 * stack.h (select_frame_command): New file.
5847 * stack.c: Include "stack.h".
5848 (select_frame_command_wrapper): Delete function.
5849 (select_frame_command): Make global.
5850 * infcall.c: Include "infcall.h".
5851 * linespec.c: Include "linespec.h".
5852 * symfile.c (sections_overlap): Make static.
5853 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5854 * charset.c (_initialize_charset): Add missing prototype.
5855 * regcache.c (init_legacy_regcache_descr): Make static.
5856 (do_regcache_xfree): Make static.
5857 (regcache_xfer_part): Make static.
5858 (_initialize_regcache): Add missing prototype.
5859 * breakpoint.c (parse_breakpoint_sals): Make static.
5860 (breakpoint_sals_to_pc): Make static.
5861 * interps.h (clear_interpreter_hooks): ISO C declaration.
5862 * Makefile.in (stack_h): Define.
5863 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5864 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5865
5866 2003-06-08 Andrew Cagney <cagney@redhat.com>
5867
5868 * Makefile.in (d10v-tdep.o): Update dependencies.
5869 (SFILES): Add trad-frame.c.
5870 (trad_frame_h): Define.
5871 (COMMON_OBS): Add trad-frame.o.
5872 (trad-frame.o): Specify dependencies.
5873 * d10v-tdep.c: Include "trad-frame.h".
5874 (saved_regs_unwinder): Delete function.
5875 (d10v_frame_prev_register): Use trad_frame_prev_register.
5876 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5877 trad_frame", delete "regs" and "prev_sp".
5878 (prologue_find_regs): Use trad-frame.
5879 * trad-frame.h, trad-frame.c: New files.
5880
5881 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5882
5883 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5884
5885 2003-06-07 Adam Fedor <fedor@gnu.org>
5886
5887 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5888 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5889 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5890 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5891 resolve_msgsend_super, resolve_msgsend_super_stret):
5892 Use it.
5893
5894 2003-06-07 Andrew Cagney <cagney@redhat.com>
5895
5896 * symfile.h: Re-indent, clean up comments.
5897
5898 2003-06-07 Andrew Cagney <cagney@redhat.com>
5899
5900 * inferior.h (deprecated_write_sp): Replace
5901 generic_target_write_sp.
5902 * regcache.c (deprecated_write_sp): Replace
5903 generic_target_write_sp.
5904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5905 * vax-tdep.c (vax_gdbarch_init): Update.
5906 * v850-tdep.c (v850_gdbarch_init): Update.
5907 * sparc-tdep.c (sparc_gdbarch_init): Update.
5908 * sh-tdep.c (sh_gdbarch_init): Update.
5909 * s390-tdep.c (s390_gdbarch_init): Update.
5910 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5913 * mcore-tdep.c (mcore_gdbarch_init): Update.
5914 * m68k-tdep.c (m68k_gdbarch_init): Update.
5915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5916 * ia64-tdep.c (ia64_gdbarch_init): Update.
5917 * h8300-tdep.c (h8300_gdbarch_init): Update.
5918 * frv-tdep.c (frv_gdbarch_init): Update.
5919 * cris-tdep.c (cris_gdbarch_init): Update.
5920 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5921
5922 2003-06-07 Andrew Cagney <cagney@redhat.com>
5923
5924 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5925 Assert that PC_REGNUM is valid.
5926 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5927
5928 2003-06-07 Andrew Cagney <cagney@redhat.com>
5929
5930 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5931 * gdbarch.h, gdbarch.c: Regenerate.
5932 * mn10300-tdep.c: Include "gdb_assert.h".
5933 (mn10300_read_fp): New function.
5934 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5935 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5936 * ia64-tdep.c: Include "gdb_assert.h".
5937 (ia64_read_fp): New function.
5938 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5939 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5940 * regcache.c (generic_target_read_sp): Delete function.
5941 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5942 * inferior.h (generic_target_read_sp): Delete declaration.
5943 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5944 generic_target_read_sp.
5945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5946 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5947 * sh-tdep.c (sh_gdbarch_init): Ditto.
5948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5949 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5950
5951 2003-06-07 Andrew Cagney <cagney@redhat.com>
5952
5953 * gdbarch.sh: Comment each field of startup_gdbarch.
5954 * gdbarch.h, gdbarch.c: Re-generate.
5955
5956 2003-06-07 Andrew Cagney <cagney@redhat.com>
5957
5958 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5959 * gdbarch.h, gdbarch.c: Re-generate.
5960 * regcache.c: Update comments on read_pc et.al.
5961 (generic_target_read_pc): Delete function.
5962 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5963 * inferior.h (generic_target_read_pc): Delete declaration.
5964 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5965 generic_target_read_pc.
5966 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5967 * sh-tdep.c (sh_gdbarch_init): Ditto.
5968 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5969 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5970
5971 2003-06-07 Andrew Cagney <cagney@redhat.com>
5972
5973 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5974 "index" with "special_local_sect". Use strcmp instead of STREQ.
5975 Append period to coments.
5976
5977 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5978
5979 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5980 (elfstab_offset_sections): Likewise.
5981 * gdb-stabs.h (stab_section_info): Likewise.
5982 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5983 * objfiles.c (objfile_relocate): Likewise.
5984 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5985 * remote.c (get_offsets): Likewise.
5986 (remote_cisco_objfile_relocate): Likewise.
5987 * somread.c (som_symfile_offsets): Likewise.
5988 * symfile.c (alloc_section_addr_info): New function.
5989 (build_section_addr_info_from_section_tab): Use it.
5990 (free_section_addr_info): Adjust.
5991 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5992 (syms_from_objfile): Allocate local_addr dynamically.
5993 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5994 dynamically.
5995 (add_symbol_file_command): Allocate sect_opts dynamically.
5996 (reread_symbols): Avoid use of SECT_OFF_MAX.
5997 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5998 (alloc_section_addr_info): Declare it.
5999 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
6000 * win32-nat.c (solib_symbols_add): Allocate section_addrs
6001 dynamically.
6002 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
6003
6004 2003-06-06 Andrew Cagney <cagney@redhat.com>
6005
6006 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
6007 (d10v_frame_unwind_cache): Do not set "return_pc".
6008
6009 2003-06-06 Michael Snyder <msnyder@redhat.com>
6010
6011 * h8300-tdep.c: Make tidy (long lines).
6012
6013 2003-06-06 Michal Ludvig <mludvig@suse.cz>
6014
6015 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
6016 to regcache_collect().
6017
6018 2003-06-05 J. Brobecker <brobecker@gnat.com>
6019
6020 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
6021 pc_in_sigtramp multiarch method.
6022 (hppa_hpux_som_init_abi): Use it.
6023 (hppa_hpux_elf_init_abi): Likewise.
6024 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
6025 macro has been multiarched.
6026 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
6027 macro here, as hppa64 isn't multiarched yet.
6028
6029 2003-06-05 Andrew Cagney <cagney@redhat.com>
6030
6031 * Makefile.in (value_h): Add $(frame_h).
6032 * value.h: Include "frame.h".
6033 (struct value): Replace "frame_addr" with "frame_id".
6034 (VALUE_FRAME_ID): Replace VALUE_FRAME.
6035 * values.c (allocate_value): Use VALUE_FRAME_ID.
6036 (value_copy): Use VALUE_FRAME_ID.
6037 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
6038 * valops.c (value_assign): Update. Use frame_find_by_id.
6039
6040 2003-06-05 Michal Ludvig <mludvig@suse.cz>
6041
6042 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
6043 in each pass.
6044
6045 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
6046
6047 * thread-db.c (check_event): For create/death event breakpoints,
6048 loop through all messages to ensure that we read the message
6049 corresponding to the breakpoint we are at.
6050
6051 2003-06-04 Michael Snyder <msnyder@redhat.com>
6052
6053 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
6054
6055 2003-06-04 Mark Kettenis <kettenis@gnu.org>
6056
6057 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
6058 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
6059 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
6060 when handling .eh_frame sections.
6061
6062 2003-06-04 J. Brobecker <brobecker@gnat.com>
6063
6064 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
6065 prepare_to_proceed procedure instead of the hppa-specific one.
6066 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
6067
6068 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
6069
6070 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
6071 * config.in: Regenerated.
6072 * configure.in: Add test for syscall function and check for
6073 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
6074 * configure: Regenerated.
6075 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
6076 <sys/syscall.h>.
6077 (kill_lwp): New function that uses tkill syscall or
6078 uses kill, depending on whether threading model is nptl or not.
6079 All callers of kill() changed to use kill_lwp().
6080 (lin_lwp_wait): Make special check when WIFEXITED occurs to
6081 see if all threads have already exited in the nptl model.
6082 (stop_and_resume_callback): New callback function used by the
6083 lin_lwp_wait thread exit handling code.
6084 (stop_wait_callback): Check for threads already having exited and
6085 delete such threads fromt the lwp list when discovered.
6086 (stop_callback): Don't assert retcode of kill call.
6087
6088 Roland McGrath <roland@redhat.com>
6089 * i386-linux-nat.c (ps_get_thread_area): New function needed by
6090 nptl libthread_db.
6091
6092 2003-06-03 Richard Henderson <rth@redhat.com>
6093
6094 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
6095 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
6096 (alpha_sigtramp_frame_prev_register): Likewise.
6097 (alpha_heuristic_frame_prev_register): Likewise.
6098 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
6099
6100 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
6101 alpha-specific register id names.
6102 (alpha_mdebug_frame_unwind_cache): Likewise.
6103 (alpha_mdebug_frame_prev_register): Likewise.
6104
6105 2003-06-03 Richard Henderson <rth@redhat.com>
6106
6107 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
6108 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
6109 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
6110 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
6111 unwind routines.
6112 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6113 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6114 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6115
6116 * alpha-linux-tdep.c: Remove unnecessary includes.
6117 * Makefile.in (alpha-linux-tdep.o): Update.
6118
6119 2003-06-03 Richard Henderson <rth@redhat.com>
6120
6121 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
6122 (alphabsd_fill_fpreg): Likewise.
6123
6124 2003-06-03 J. Brobecker <brobecker@gnat.com>
6125
6126 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
6127 references to struct frame_info fields by calls to the equivalent
6128 accessors. Necessary now that frame_info is opaque.
6129
6130 2003-06-03 J. Brobecker <brobecker@gnat.com>
6131
6132 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
6133 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
6134 structure, field no longer exists.
6135
6136 2003-06-03 J. Brobecker <brobecker@gnat.com>
6137
6138 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6139 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
6140
6141 2003-06-03 J. Brobecker <brobecker@gnat.com>
6142
6143 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
6144 references to struct frame_info fields by calls to the equivalent
6145 accessors. Necessary now that frame_info is opaque.
6146
6147 2003-06-03 J. Brobecker <brobecker@gnat.com>
6148
6149 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
6150 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
6151 structure, field no longer exists.
6152
6153 2003-06-03 Theodore A. Roth <troth@openavr.org>
6154
6155 * remote.c (init_remote_state): Compute sizeof_g_packet by
6156 accumulation of the size of all registers instead of blindly using
6157 DEPRECATED_REGISTER_BYTES.
6158
6159 2003-06-03 Michael Snyder <msnyder@redhat.com>
6160
6161 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
6162 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
6163 for h8300sx.
6164
6165 2003-06-03 J. Brobecker <brobecker@gnat.com>
6166
6167 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
6168 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6169
6170 2003-06-03 Andrew Cagney <cagney@redhat.com>
6171
6172 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
6173 (sparc_convert_to_raw): Delete function.
6174 (sparc_gdbarch_init): Do not set register_convert_to_raw or
6175 register_convert_to_virtual.
6176
6177 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
6178
6179 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
6180 layer if not dealing with a statically-linked threaded program.
6181
6182 2003-06-03 Kris Warkentin <kewarken@qnx.com>
6183
6184 * solib.c (solib_open): Update comment to reflect actual search order.
6185
6186 2003-06-03 Andrew Cagney <cagney@redhat.com>
6187
6188 * frame.c (get_frame_memory_signed): New function.
6189 (get_frame_memory, get_frame_memory_unsigned): New function.
6190 (get_frame_arch): New function.
6191 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
6192 (get_frame_memory, get_frame_unsigned_memory): Declare.
6193 * d10v-tdep.c (d10v_frame_unwind_cache): Use
6194 get_frame_memory_unsigned and get_frame_arch.
6195 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
6196
6197 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
6198
6199 * MAINTAINERS (write after approval): Add myself.
6200
6201 2003-06-03 Jim Blandy <jimb@redhat.com>
6202
6203 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6204 elements of gregset_t are 64 bits each, but access registers
6205 are still 32 bits, so they're packed two per gregset_t
6206 element. Unpack/pack them properly.
6207
6208 2003-06-02 David Carlton <carlton@bactrian.org>
6209
6210 * linespec.c (find_methods): Break out code into
6211 add_matching_methods and add_constructors.
6212 (add_matching_methods): New.
6213 (add_constructors): Ditto.
6214
6215 2003-06-02 Andrew Cagney <cagney@redhat.com>
6216
6217 * sparc-tdep.c (sparc_print_registers): Delete call to
6218 REGISTER_CONVERTIBLE.
6219 (sparc_gdbarch_init): Do not set register_convertible.
6220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6221 * frv-tdep.c (frv_gdbarch_init): Ditto.
6222 * cris-tdep.c (cris_gdbarch_init): Ditto.
6223
6224 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6225
6226 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6227 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6228 (syms_from_objfile): Ditto.
6229
6230 2003-06-03 Andreas Schwab <schwab@suse.de>
6231
6232 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6233 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6234
6235 2003-06-02 Richard Henderson <rth@redhat.com>
6236
6237 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6238 a member of all_reggroup.
6239
6240 2003-06-02 Richard Henderson <rth@redhat.com>
6241
6242 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6243 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6244 (alpha_lds, alpha_sts): New.
6245 (alpha_convert_register_p): Change from _register_convertible.
6246 (alpha_register_to_value): Change from _convert_to_virtual;
6247 restructure and fail for type sizes other than 4 or 8.
6248 (alpha_value_to_register): Similarly.
6249 (alpha_extract_return_value): Use alpha_sts.
6250 (alpha_store_return_value): Use alpha_lds.
6251 (alpha_gdbarch_init): Update hooks.
6252
6253 2003-06-02 Richard Henderson <rth@redhat.com>
6254
6255 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6256 regnum identifiers.
6257 (alpha_sigtramp_register_address): Likewise.
6258
6259 2003-06-02 Richard Henderson <rth@redhat.com>
6260
6261 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6262 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6263 * alpha-tdep.h: Declare them.
6264
6265 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6266 Remove zerobuf. Don't error on UNIQUE.
6267 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6268 (ALPHA_REGSET_UNIQUE): Provide default.
6269 (supply_gregset): Use alpha_supply_int_regs.
6270 (fill_gregset): Use alpha_fill_int_regs.
6271 (supply_fpregset): Use alpha_supply_fp_regs.
6272 (fill_fpregset): Use alpha_fill_fp_regs.
6273 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6274 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6275 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6276 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6277 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6278 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6279
6280 2003-06-02 Richard Henderson <rth@redhat.com>
6281
6282 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6283
6284 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6285 (alpha_store_return_value): Likewise.
6286
6287 2003-06-02 David Carlton <carlton@math.stanford.edu>
6288
6289 * block.c (contained_in): Add 'const' to arguments.
6290 (block_function): Ditto.
6291 * block.h: Update declarations for block_function and
6292 contained_in.
6293
6294 2003-06-02 David Carlton <carlton@math.stanford.edu>
6295
6296 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6297 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6298 * p-valprint.c (pascal_val_print): Ditto.
6299 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6300
6301 2003-06-02 Richard Henderson <rth@redhat.com>
6302
6303 * alpha-tdep.c (alpha_push_dummy_call): Use
6304 builtin_type_ieee_double_little instead of builtin_type_double.
6305
6306 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6307 sign-extension of 32-bit values.
6308 (alpha_store_return_value): Similarly.
6309
6310 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6311 (alpha_extract_return_value): Likewise.
6312 (alpha_store_return_value): Likewise.
6313
6314 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6315 (alpha_store_return_value): Error on IEEE Quad floats.
6316
6317 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6318 (alpha_extract_struct_value_address): Likewise.
6319 (alpha_store_return_value): Likewise.
6320 (alpha_store_struct_return): Remove.
6321 (alpha_gdbarch_init): Update hook registration to match.
6322
6323 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6324 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6325 macros where appropriate.
6326 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6327 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6328
6329 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6330 for SP, GP; void_func_ptr for PC; non-language-specific types
6331 for all others.
6332 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6333
6334 2003-06-02 Richard Henderson <rth@redhat.com>
6335
6336 * top.h (lim_at_start): Declare.
6337 * main.c (captured_main): Set it.
6338 * top.c (lim_at_start): Define.
6339 (command_loop): Use it instead of &environ.
6340 * event-top.c (command_handler): Likewise.
6341
6342 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6343
6344 * mipsnbsd-tdep.c: Update copyright years.
6345 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6346
6347 2003-06-01 Richard Henderson <rth@redhat.com>
6348
6349 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6350 (alpha-linux-tdep.o): Update dependencies.
6351 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6352 * alpha-mdebug-tdep.c: Remove unneeded includes.
6353
6354 2003-06-01 Richard Henderson <rth@redhat.com>
6355
6356 * alpha-tdep.c (alpha_register_reggroup_p): New.
6357 (alpha_gdbarch_init): Register it.
6358
6359 2003-06-02 Andrew Cagney <cagney@redhat.com>
6360
6361 * dwarfread.c: Eliminate "register"
6362 (decode_die_type): Eliminate assignment within "if".
6363 (struct_type, decode_array_element_type): Ditto.
6364 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6365 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6366 (decode_modified_type, completedieinfo): Ditto.
6367 * block.c: Eliminate "register".
6368 (blockvector_for_pc_sect): Eliminate assignment within "if".
6369 * cp-support.h (struct symbol): Opaque declaration.
6370 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6371
6372 2003-06-01 Richard Henderson <rth@redhat.com>
6373
6374 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6375 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6376
6377 2003-06-01 Adam Fedor <fedor@gnu.org>
6378
6379 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6380 * gdbarch.[ch]: Regenerate.
6381 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6382 (hppa_gdbarch_init): Set it in the gdbarch vector.
6383 * i386-tdep.c (i386_fetch_pointer_argument): New
6384 (i386_gdbarch_init): Set it into gdbarch.
6385 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6386 (rs6000_gdbarch_init): Set it in gdbarch.
6387 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6388 (sparc_gdbarch_init): Set it in gdbarch.
6389
6390 2003-06-01 Andrew Cagney <cagney@redhat.com>
6391
6392 * defs.h (extract_address): Delete declaration.
6393 * findvar.c (extract_address): Delete function.
6394 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6395 extract_address with the inline equivalent,
6396 extract_unsigned_integer.
6397 (xstormy16_extract_struct_value_address): Ditto.
6398 (xstormy16_pointer_to_address): Ditto.
6399 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6400 * v850-tdep.c (v850_push_arguments): Ditto.
6401 (v850_extract_return_value): Ditto.
6402 (v850_extract_struct_value_address): Ditto.
6403 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6404 (sparcnbsd_get_longjmp_target_64): Ditto.
6405 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6406 (get_longjmp_target): Ditto.
6407 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6408 (sh64_extract_struct_value_address): Ditto.
6409 (sh_push_arguments): Ditto.
6410 (sh64_push_arguments): Ditto.
6411 * remote-vxsparc.c (vx_read_register): Ditto.
6412 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6413 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6414 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6415 * mipsv4-nat.c (get_longjmp_target): Ditto.
6416 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6417 * mips-nat.c (get_longjmp_target): Ditto.
6418 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6419 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6420 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6421 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6422 * irix5-nat.c (get_longjmp_target): Ditto.
6423 * irix4-nat.c (get_longjmp_target): Ditto.
6424 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6425 (ia64_push_arguments): Ditto.
6426 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6427 * h8300-tdep.c (h8300_push_arguments): Ditto.
6428 (h8300_store_return_value): Ditto.
6429 (h8300_extract_struct_value_address): Ditto.
6430 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6431 (frv_push_arguments): Ditto.
6432 * avr-tdep.c (avr_pointer_to_address): Ditto.
6433 (avr_push_arguments): Ditto.
6434 * arm-tdep.c (arm_push_dummy_call): Ditto.
6435 (arm_get_longjmp_target): Ditto.
6436 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6437 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6438 (alpha_get_longjmp_target): Ditto.
6439
6440 * solib-irix.c (extract_mips_address): Inline extract_address,
6441 replacing it with extract_signed_integer.
6442 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6443 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6444 (first_link_map_member, open_symbol_file_object): Ditto.
6445 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6446 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6447 (LM_NEXT, LM_NAME): Ditto.
6448
6449 2003-06-01 Richard Henderson <rth@redhat.com>
6450
6451 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6452 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6453 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6454 (alpha_cannot_store_register): Likewise.
6455 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6456 * alpha-nat.c (supply_gregset): Likewise.
6457 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6458
6459 2003-06-01 Andrew Cagney <cagney@redhat.com>
6460
6461 * infcall.c (call_function_by_hand): Update comment on
6462 DEPRECATED_DUMMY_WRITE_SP.
6463
6464 * mips-tdep.c (mips_gdbarch_init): Do not set
6465 deprecated_dummy_write_sp.
6466 (mips_eabi_push_dummy_call): Set the SP register.
6467 (mips_o64_push_dummy_call): Set the SP register.
6468 (mips_o32_push_dummy_call): Set the SP register.
6469 (mips_n32n64_push_dummy_call): Set the SP register.
6470
6471 2003-06-01 Richard Henderson <rth@redhat.com>
6472
6473 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6474 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6475 (supply_gregset): Likewise.
6476 * alpha-tdep.c (alpha_store_return_value): Likewise.
6477 (alpha_get_longjmp_target): Likewise.
6478 (alpha_register_name): Constify array.
6479 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6480 deprecated_register_size, deprecated_register_bytes,
6481 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6482 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6483 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6484
6485 2003-06-01 Richard Henderson <rth@redhat.com>
6486
6487 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6488 from arg_reg_buffer to regcache to avoid double conversion.
6489
6490 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6491
6492 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6493 SP_REGNUM.
6494 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6495 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6496
6497 2003-06-01 Richard Henderson <rth@redhat.com>
6498
6499 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6500 (decode_frame_entry): Set it. Skip FDE augmentation.
6501
6502 2003-06-01 Richard Henderson <rth@redhat.com>
6503
6504 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6505 not overlapping PC_REGNUM.
6506
6507 2003-06-01 Richard Henderson <rth@redhat.com>
6508
6509 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6510 alpha_push_arguments. Don't dump argument register data to
6511 the target stack. Fix float and 128-bit long double semantics.
6512 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6513 (alpha_fix_call_dummy): Remove.
6514 (alpha_call_dummy_words): Remove.
6515 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6516
6517 2003-06-01 Richard Henderson <rth@redhat.com>
6518
6519 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6520
6521 2003-06-01 Andrew Cagney <cagney@redhat.com>
6522
6523 * mips-tdep.c (is_mips16_addr): New function.
6524 (make_mips16_addr, unmake_mips16_addr): New functions.
6525 (pc_is_mips16, mips_fetch_instruction): Use.
6526 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6527 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6528 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6529 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6530 TARGET_MIPS.
6531 * config/mips/tm-mips.h: Update copyright.
6532 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6533 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6534 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6535 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6536 (TM_PRINT_INSN_MACH): Delete.
6537 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6538
6539 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6540 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6541 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6542 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6543 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6544 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6545 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6546 mips*-*-riscos* and mips*-*-sysv* onto mips.
6547 * config/mips/mips64.mt: New file.
6548 * config/mips/mips.mt: New file.
6549 * config/mips/littlemips.mt: Delete file.
6550 * config/mips/decstation.mt: Delete file.
6551 * config/mips/vr4300el.mt: Delete file.
6552 * config/mips/vr5000el.mt: Delete file.
6553 * config/mips/vr5000.mt: Delete file.
6554 * config/mips/vr4100.mt: Delete file.
6555 * config/mips/vr4xxxel.mt: Delete file.
6556 * config/mips/vr4300.mt: Delete file.
6557 * config/mips/vr4xxx.mt: Delete file.
6558 * config/mips/bigmips.mt: Delete file.
6559 * config/mips/bigmips64.mt: Delete file.
6560 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6561 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6562 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6563 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6564 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6565 "tm-bigmips.h".
6566 * config/mips/tm-irix3.h: Ditto.
6567 * config/mips/tm-mipsv4.h: Ditto.
6568 * config/mips/tm-embed.h: Ditto.
6569 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6570 "tm-bigmips64.h".
6571 * config/mips/tm-vr5000el.h: Delete file.
6572 * config/mips/tm-tx39l.h: Delete file.
6573 * config/mips/tm-vr4300el.h: Delete file.
6574 * config/mips/tm-vr4xxxel.h: Delete file.
6575 * config/mips/tm-vr4300.h: Delete file.
6576 * config/mips/tm-vr4100.h: Delete file.
6577 * config/mips/tm-vr4xxx.h: Delete file.
6578 * config/mips/tm-vr5000.h: Delete file.
6579 * config/mips/tm-embedl64.h: Delete file.
6580 * config/mips/tm-embedl.h: Delete file.
6581 * config/mips/tm-embed64.h: Delete file.
6582 * config/mips/tm-bigmips64.h: Delete file.
6583 * config/mips/tm-bigmips.h: Delete file.
6584
6585 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6586
6587 Fix gdb/1216.
6588 * shnbsd-nat.c: Include "sh-tdep.h".
6589
6590 From Richard Henderson <rth@redhat.com>:
6591 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6592
6593 2003-05-31 Andrew Cagney <cagney@redhat.com>
6594
6595 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6596 forward declaration.
6597 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6598 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6599 (mips_find_saved_regs): Use set_reg_offset.
6600 (mips_frame_init_saved_regs): Delete function.
6601 (mips_pop_frame): Call mips_find_saved_regs instead of
6602 DEPRECATED_FRAME_INIT_SAVED_REGS.
6603
6604 2003-05-31 Andrew Cagney <cagney@redhat.com>
6605
6606 * mips-tdep.c (mips_gdbarch_init): Do not set
6607 deprecated_max_register_raw_size, register_virtual_size, and
6608 deprecated_max_register_virtual_size.
6609
6610 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6611
6612 * i386-tdep.c: Include "dwarf2-frame.h".
6613 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6614 * Makefile.in (i386-tdep.o): Update dependencies.
6615
6616 * dwarf2-frame.c, dwarf2-frame.h: New files.
6617 * Makefile.in (SFILES): Add dwarf2-frame.c.
6618 (dwarf2_frame_h): Define.
6619 (COMMON_OBS): Add dwarf2-frame.o.
6620 (dwarf2-frame.o): Add dependencies.
6621
6622 2003-05-31 Andreas Jaeger <aj@suse.de>
6623
6624 * x86-64-linux-nat.c: Fix comment.
6625
6626 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6627
6628 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6629 function signature.
6630
6631 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6632 have a sigcontext_addr handler.
6633 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6634 sigcontext_addr handler.
6635
6636 2003-05-31 Andrew Cagney <cagney@redhat.com>
6637
6638 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6639 (print_fp_register_row): Replace do_fp_register_row.
6640 (mips_print_fp_register): Add "file" and "frame" parameters.
6641 (mips_print_register): Add "file" and "frame" parameters.
6642 (mips_print_registers_info): Replace mips_do_registers_info.
6643 (mips_gdbarch_init): Set print_registers_info instead of
6644 deprecated_do_registers_info.
6645 (mips_read_fp_register_single): Add "frame" parameter.
6646 (mips_read_fp_register_double): Add "frame" parameter.
6647
6648 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6649
6650 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6651 Fixes a bug where GDB would print the wrong register names for
6652 targets without SSE.
6653
6654 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6655 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6656 registers.
6657
6658 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6659 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6660 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6661 TDEP->sc_sp_offset.
6662
6663 From Michal Ludvig <mludvig@suse.cz>:
6664 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6665 and `sc_num_regs'.
6666 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6667 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6668 I386_ST0_REGNUM): Move here from...
6669 * i386-tdep.c: ... here.
6670 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6671 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6672 registers if possible.
6673 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6674 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6675 Remove variables.
6676 (i386bsd_sc_reg_offset): New variable.
6677 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6678 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6679 TDEP->sc_sp_offset.
6680 (i386fbsd_sc_reg_offset): New variable.
6681 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6682 TDEP->sc_num_regs.
6683 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6684 variables.
6685 (i386fbsd4_sc_reg_offset): New variable.
6686 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6687 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6688 TDEP->sc_sp_offset.
6689 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6690 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6691 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6692 Remove variables.
6693 (i386nbsd_sc_reg_offset): New variable.
6694 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6695 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6696 TDEP->sc_sp_offset.
6697 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6698 Remove variables.
6699 (i386obsd_sc_reg_offset): New variable.
6700 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6701 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6702 TDEP->sc_sp_offset.
6703 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6704 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6705 for frame pointer offset in `struct sigcontext'.
6706
6707 2003-05-31 Andrew Cagney <cagney@redhat.com>
6708
6709 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6710 architecture methods call_dummy_words, sizeof_call_dummy_words,
6711 push_return_address, store_struct_return, and fix_call_dummy. Set
6712 push_dummy_call instead of deprecated_push_arguments.
6713 (mips_store_struct_return): Delete function.
6714 (mips_fix_call_dummy): Delete function.
6715 (mips_push_return_address): Delete function.
6716 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6717 RA_REGNUM and T9_REGNUM.
6718 (mips_n32n64_push_dummy_call): Ditto for
6719 mips_n32n64_push_arguments.
6720 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6721 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6722
6723 2003-05-31 Andrew Cagney <cagney@redhat.com>
6724
6725 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6726 "dummy_addr" to "bp_addr".
6727 * infcall.c (call_function_by_hand): Pass "funaddr" to
6728 gdbarch_push_dummy_call.
6729 * gdbarch.h, gdbarch.c: Re-generate.
6730 * i386-tdep.c (i386_push_dummy_call): Update.
6731 * arm-tdep.c (arm_push_dummy_call): Update.
6732 * d10v-tdep.c (d10v_push_dummy_call): Update.
6733
6734 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6735
6736 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6737 variable declarations.
6738 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6739 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6740 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6741 x86_64_init_frame_pc, x86_64_init_frame_pc,
6742 x86_64_function_has_prologue): Remove prototypes.
6743 (X86_64_NUM_GREGS): New define.
6744 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6745 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6746 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6747 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6748 XMM1_REGNUM): Remove defines.
6749 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6750 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6751 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6752 X86_64_XMM1_REGNUM): New defines.
6753 (struct x86_64_register_info): Renamed from `struct
6754 register_info'. Remove `size' member.
6755 (x86_64_register_info_table): Remove variable.
6756 (x86_64_register_info): New variable.
6757 (X86_64_NUM_REGS): New define.
6758 (X86_64_NUM_GREGS): Remove define.
6759 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6760 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6761 Remove variables.
6762 (x86_54_dwarf2_reg_to_regnum): Remove function.
6763 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6764 (x86_64_dwarf_reg_to_regnum): New function.
6765 (x86_64_register_name): Rewrite.
6766 (x86_64_register_raw_size): Remove function.
6767 (x86_64_register_byte_table): Remove variable.
6768 (x86_64_register_byte): Remove function.
6769 (x86_64_register_virtual_type): Remove function.
6770 (x86_64_register_type): New function.
6771 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6772 x86_64_register_convert_to_raw): Remove functions.
6773 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6774 (x86_64_use_struct_convention): Make static. Adjust for renamed
6775 defines.
6776 (x86_64_frame_init_saved_regs): Remove function.
6777 (x86_64_push_arguments): Make static. Change to accept a regcache
6778 as argument.
6779 (x86_64_store_return_value, x86_64_extract_return_value): Make
6780 static. Rewrite based on i386 counterparts.
6781 (x86_64_push_dummy_call): New function.
6782 (X86_64_NUM_SAVED_REGS): New define.
6783 (x86_64_register_number): Remove function.
6784 (x86_64_store_struct_return): Remove function.
6785 (x86_64_frameless_function_invocation,
6786 x86_64_function_has_prologue): Remove functions.
6787 (PROLOG_BUFSIZE): Remove define.
6788 (struct x86_64_frame_cache): New structure.
6789 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6790 x86_64_frame_cache, x86_64_frame_this_id,
6791 x86_64_frame_prev_register, x86_64_frame_p,
6792 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6793 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6794 functions.
6795 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6796 variables.
6797 (x86_64_skip_prologue): Rewrite in terms of
6798 x86_64_analyze_prologue.
6799 (x86_64_frame_base_address): New function.
6800 (x86_64_frame_base): New variable.
6801 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6802 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6803 set deprecated_fp_regnum, deprecated_register_size,
6804 deprecated_register_bytes, register_raw_size, register_byte,
6805 register_virtual_type, register_convertiable,
6806 register_convert_to_virtual, convert_to_raw,
6807 deprecated_get_saved_register, deprecated_target_read_fp,
6808 deprecated_push_arguments, deprecated_push_return_address,
6809 deprecated_pop_frame, deprecated_store_struct_return,
6810 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6811 frameless_function_invocation, deprecated_frame_saved_pc,
6812 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6813 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6814 deprecated_init_frame_pc and virtual_frame_pointer. Call
6815 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6816 and x86_64_frame_p. Call frame_base_set_default to register
6817 x86_64_frame_base.
6818 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6819 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6820 (_initialize_x86_64_tdep): Remove function.
6821 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6822 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6823 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6824 define.
6825 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6826 (x86_64_linux_sigcontext_addr): Rewrite.
6827 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6828 x86_64_linux_frame_saved_pc): Remove functions.
6829 (x86_64_linux_pc_in_sigtramp): Renamed from
6830 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6831 trampoline.
6832 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6833 Remove_functions.
6834 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6835 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6836 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6837 (x86_64_regmap): Rename to regmap.
6838 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6839 x86_64_num_gregs.
6840 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6841 x86_64_regmap.
6842 (x86_64_fxsave_offset): Remove function.
6843 (supply_fpregset): Simply call x86_64_supply_fxsave.
6844 (fill_fpregset): Simply call x86_64_fill_fxsave.
6845 (fetch_inferior_registers, store_inferior_registers): Avoid
6846 asignment in if-statement.
6847 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6848 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6849 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6850 (fetch_core_registers): Remove function.
6851 (linux_elf_core_fns): Remove.
6852 (offsetoff): Don't define.
6853 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6854 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6855 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6856 add core-regset.o.
6857 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6858 protection against multiple includes instead of NM_X86_64_h. Add
6859 various comments. Include "config/nm-linux.h". Don't include
6860 <signal.h>.
6861 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6862 GET_THREAD_SIGNALS): Remove defines.
6863 (x86_64_register_u_addr, kernel_u_size,
6864 lin_thread_get_thread_signals): Remove prototypes.
6865 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6866 [HAVE_LINK_H]: Don't include "solib.h".
6867 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6868 * config/i386/tm-x86-64linux.h: Fix comments.
6869 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6870 x86-64-tdep.o): Update dependencies.
6871
6872 2003-05-30 Andrew Cagney <cagney@redhat.com>
6873
6874 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6875 Change parameter type to a "struct regcache *".
6876
6877 * gdbarch.sh: Regardless of the multi-arch level, always define
6878 the macro when not already defined.
6879 * gdbarch.h, gdbarch.c: Re-generate.
6880
6881 2003-05-30 Richard Henderson <rth@redhat.com>
6882
6883 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6884 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6885 (alpha_mdebug_frame_this_id): Likewise.
6886 (alpha_mdebug_frame_prev_register): Likewise.
6887 (alpha_mdebug_frame_base_address): Likewise.
6888 (alpha_mdebug_frame_locals_address): Likewise.
6889 (alpha_mdebug_frame_args_address): Likewise.
6890 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6891 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6892 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6893 loop increment.
6894 (alpha_heuristic_frame_this_id): Make static.
6895 (alpha_heuristic_frame_prev_register): Likewise.
6896 (alpha_heuristic_frame_base_address): Likewise.
6897 * alpha-tdep.h: Update.
6898
6899 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6900
6901 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6902 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6903 defenitions.
6904 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6905 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6906 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6907 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6908 I386_ST0_REGNUM): New defines.
6909 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6910 codestream_get): Remove define.
6911 (codestream_next_addr, condestream_addr, condestream_buf,
6912 codestream_off, codestream_cnt): Remove variables.
6913 (codestream_fill, codestream_seek, codestream_read): Remove
6914 functions.
6915 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6916 functionality.
6917 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6918 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6919 i386_frame_saved_pc, i386_saved_pc_after_call,
6920 i386_frame_num_args, i386_frame_init_saved_regs,
6921 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6922 i386_push_arguments): Remove functions.
6923 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6924 functionality. Use i386_analyze_prologue instead of
6925 i386_get_frame_setup.
6926 (I386_NUM_SAVED_REGS): New define.
6927 (struct i386_frame_cache): New structure.
6928 (i386_alloc_frame_cache, i386_analyze_struct_return,
6929 i386_skip_probe, i386_analyze_frame_setup,
6930 i386_analyze_register_saves, i386_analyze_prologue,
6931 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6932 i386_frame_prev_register, i386_sigtramp_frame_cache,
6933 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6934 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6935 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6936 New functions.
6937 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6938 New variables.
6939 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6940 I386_EAX_REGNUM and I386_EDX_REGNUM.
6941 (i386_extract_return_value, i386_store_return_value): Use
6942 I386_ST0_REGNUM where appropriate.
6943 (i386_extract_struct_value_address): Rewrite to use extract_address.
6944 (i386_svr4_pc_in_sigtramp): Add comment.
6945 (i386_svr4_sigcontext_addr): Rewrite.
6946 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6947 TDEP->sc_sp_offset.
6948 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6949 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6950 of new defines. Set push_dummy_call, don't set
6951 deprecated_push_arguments, deprecated_push_return_address,
6952 deprecated_pop_frame. Don't set parm_boundary. Don't set
6953 deprecated_frame_chain, deprecated_frame_saved_pc,
6954 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6955 save_dummy_frame_tos, unwind_pc. Call
6956 frame_unwind_append_predicate and frame_base_set_default. Don't
6957 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6958 Don't set frameless_function_invocation. Don't set
6959 deprecated_register_bytes, deprecated_register_size,
6960 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6961 * i386-linux-tdep.c: Fix formatting in some comments.
6962 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6963 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6964 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6965 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6966 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6967 redundant parentheses.
6968 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6969 (i386_linux_sigcontext_addr): Use it. Rewrite.
6970 (find_minsym_and_objfile): Change name of second argument.
6971 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6972 changed. Use frame_pc_unwind instead of
6973 DEPRECATED_SAVED_PC_AFTER_CALL.
6974 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6975 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6976 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6977 unwinder.
6978 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6979 "dummy-frame.h".
6980 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6981 (_initialize_i386_cygwin_tdep): New prototype.
6982 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6983 deprecated_frame_chain_valid.
6984 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6985 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6986 Rely on the SVR4 defaults.
6987 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6988 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6989
6990 2003-05-30 Andrew Cagney <cagney@redhat.com>
6991
6992 * infcall.c (call_function_by_hand): Always call
6993 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6994
6995 2003-05-30 Richard Henderson <rth@redhat.com>
6996
6997 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6998 increment.
6999
7000 2003-05-29 Jim Blandy <jimb@redhat.com>
7001
7002 Use gdbarch methods for solib stuff on PowerPC Linux.
7003 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
7004 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
7005 show through.
7006 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
7007 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
7008 giving the same effect as the #definitions above.
7009
7010 2003-05-29 Adam Fedor <fedor@gnu.org>
7011
7012 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
7013 (find_implementation_from_class): Replace it with the standard
7014 case i.e. do nothing.
7015
7016 2003-05-29 Richard Henderson <rth@redhat.com>
7017
7018 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
7019 (alpha_linux_sigtramp_offset): Use it. Make static.
7020 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
7021 update for new frame model.
7022 * alpha-mdebug-tdep.c: New file.
7023 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
7024 (alpha_osf1_init_abi): Install it.
7025 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
7026 (linked_proc_desc_table): Remove.
7027 (alpha_frame_past_sigtramp_frame): Remove.
7028 (alpha_dynamic_sigtramp_offset): Remove.
7029 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
7030 (alpha_proc_desc_is_dyn_sigtramp): Remove.
7031 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
7032 (push_sigtramp_desc): Remove.
7033 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
7034 (alpha_cannot_store_register): Likewise.
7035 (alpha_sigcontext_addr): Remove.
7036 (alpha_find_saved_regs): Remove.
7037 (alpha_frame_init_saved_regs): Remove.
7038 (alpha_init_frame_pc_first): Remove.
7039 (read_next_frame_reg): Remove.
7040 (alpha_frame_saved_pc): Remove.
7041 (alpha_saved_pc_after_call): Remove.
7042 (temp_proc_desc, temp_saved_regs): Remove.
7043 (alpha_about_to_return): Remove.
7044 (cached_proc_desc): Remove.
7045 (alpha_frame_chain): Remove.
7046 (alpha_print_extra_frame_info): Remove.
7047 (alpha_init_extra_frame_info): Remove.
7048 (alpha_frame_locals_address): Remove.
7049 (alpha_frame_args_address): Remove.
7050 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
7051 (alpha_push_dummy_frame): Remove.
7052 (alpha_pop_frame): Remove.
7053 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
7054 (alpha_read_insn): New.
7055 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
7056 for different insn encodings.
7057 (alpha_in_lenient_prologue): Remove.
7058 (struct alpha_sigtramp_unwind_cache): New.
7059 (alpha_sigtramp_frame_unwind_cache): New.
7060 (alpha_sigtramp_register_address): New.
7061 (alpha_sigtramp_frame_this_id): New.
7062 (alpha_sigtramp_frame_prev_register): New.
7063 (alpha_sigtramp_frame_unwind): New.
7064 (alpha_sigtramp_frame_p): New.
7065 (struct alpha_heuristic_unwind_cache): New.
7066 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
7067 don't count nop insns that occur between functions.
7068 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
7069 heuristic_proc_desc, but without the mdebug wrapping.
7070 (alpha_heuristic_frame_this_id): New.
7071 (alpha_heuristic_frame_prev_register): New.
7072 (alpha_heuristic_frame_unwind): New.
7073 (alpha_heuristic_frame_p): New.
7074 (alpha_heuristic_frame_base_address): New.
7075 (alpha_heuristic_frame_base): New.
7076 (alpha_unwind_dummy_id): New.
7077 (alpha_unwind_pc): New.
7078 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
7079 frame related deprecated initializations; install replacements.
7080 (alpha_dump_tdep): Remove.
7081 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
7082 (alpha_read_insn, alpha_after_prologue,
7083 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
7084 alpha_heuristic_frame_prev_register,
7085 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
7086 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7087 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
7088 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
7089
7090 2003-05-29 Andrew Cagney <cagney@redhat.com>
7091
7092 * gdb_assert.h (gdb_assert_fail): Provide different definitions
7093 dependant on the availability of ASSERT_FUNCTION.
7094 (ASSERT_FUNCTION): Do not define when there is no function name.
7095
7096 2003-05-29 Kevin Buettner <kevinb@redhat.com>
7097
7098 From Jimi X <jimix@watson.ibm.com>:
7099 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
7100
7101 2003-05-28 Jim Blandy <jimb@redhat.com>
7102
7103 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
7104 argument to ptrace to int; the system headers should give it the
7105 right type, and pointers don't fit in ints on powerpc64-*-*.
7106
7107 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
7108
7109 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
7110 DW_TAG_catch_block.
7111
7112 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7113
7114 * stabsread.c (dbx_lookup_type): Make static.
7115 (read_type): Ditto.
7116 (add_undefined_type): Ditto.
7117 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
7118 not export.
7119
7120 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
7121
7122 * hpread.c (hpread_has_name): Make static.
7123 (hpread_psymtab_to_symtab): Ditto.
7124 (file_exists): Ditto.
7125 (hpread_call_pxdb): Ditto.
7126 (hpread_pxdb_needed): Ditto.
7127 (hpread_quick_traverse): Ditto.
7128 (hpread_get_header): Ditto.
7129 (hpread_get_lntt): Ditto.
7130 (hpread_get_slt): Ditto.
7131 (class_of): Ditto.
7132
7133 2003-05-25 Andreas Schwab <schwab@suse.de>
7134
7135 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
7136 stack_align and deprecated_extra_stack_alignment_needed.
7137 (m68k_stack_align): Delete.
7138
7139 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
7140 (m68k_register_virtual_size): Likewise.
7141 (altos_skip_prologue): Remove obsolete function.
7142 (isi_frame_num_args): Likewise.
7143 (news_frame_num_args): Likewise.
7144 (m68k_fix_call_dummy): Make static.
7145 (m68k_push_dummy_frame): Likewise.
7146 (m68k_pop_frame): Likewise.
7147 (m68k_skip_prologue): Likewise.
7148 (m68k_frame_init_saved_regs): Likewise.
7149 (m68k_saved_pc_after_call): Likewise.
7150 (m68k_get_longjmp_target): Make multi-arch.
7151 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
7152 structure. Register m68k_get_longjmp_target if enabled.
7153 * m68k-tdep.h (struct gdbarch_tdep): Define.
7154 * config/m68k/tm-m68k.h: Don't include "regcache.h".
7155
7156 * Makefile.in (config.status): Also depend on configure.tgt
7157 and configure.host.
7158 (m68klinux-tdep.o): Update dependencies.
7159 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
7160 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
7161 (M68K_LINUX_JB_PC): Define.
7162 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
7163 and take additional parameter.
7164 (m68k_linux_sigtramp_saved_pc): Update.
7165 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
7166 m68k_linux_pc_in_sigtramp, in_plt_section,
7167 find_solib_trampoline_target.
7168 * config/m68k/tm-linux.h: Don't include any tm headers.
7169 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
7170 (JB_ELEMENT_SIZE): Likewise.
7171 (JB_PC): Likewise.
7172 (GET_LONGJMP_TARGET): Likewise.
7173 (IN_SIGTRAMP): Likewise.
7174 (SVR4_SHARED_LIBS): Define this and include "solib.h".
7175
7176 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7177
7178 * sparc-tdep.c (sparc32_do_push_arguments): New function.
7179 (sparc32_push_arguments): Re-implement by calling
7180 sparc32_do_push_arguments.
7181
7182 2003-05-25 Mark Kettenis <kettenis@gnu.org>
7183
7184 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
7185 SPARC_O1_REGNUM): New defines.
7186 (sparc32_extract_return_value): Rewrite to operate on a regcache.
7187 (sparc32_store_return_value): New function.
7188 (sparc_extract_struct_value_address): Rewrite to operate on a
7189 regcache.
7190 (sparc_gdbarch_init): Don't set
7191 deprecated_extract_struct_value_address. Set
7192 extract_struct_value_address instead. Don't set
7193 deprecated_extract_return_value and deprecated_store_return_value
7194 for 32-bit targets. Set extract_return_value and
7195 store_return_value instead.
7196 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7197 DEPRECTAED_EXTRACT_RETURN_VALUE,
7198 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
7199 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
7200 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
7201 (sparc_store_return_value): Remove prototype.
7202 (sparc32_store_return_value): New prototype.
7203 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7204 Adjust prototypes.
7205
7206 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7207
7208 * sparcnbsd-tdep.c: Include "gdb_string.h".
7209
7210 2003-05-23 Andrew Cagney <cagney@redhat.com>
7211
7212 * p-valprint.c (pascal_val_print): Replace extract_address with
7213 the inline equivalent extract_unsigned_integer.
7214 * jv-valprint.c (java_value_print): Ditto.
7215 * ada-valprint.c (ada_val_print_1): Ditto.
7216 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7217
7218 2003-05-23 Theodore A. Roth <troth@openavr.org>
7219
7220 * blockframe.c (frameless_look_for_prologue): Remove unused
7221 after_prologue variable.
7222
7223 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7224
7225 * blockframe.c (get_pc_function_start): Rewrite to avoid
7226 asignments in if-statements.
7227
7228 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7229
7230 Committed by Elena Zannoni <ezannoni@redhat.com>.
7231 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7232 files, don't relocate absolute symbols (and do use mst_abs).
7233
7234 2003-05-23 Andrew Cagney <cagney@redhat.com>
7235
7236 * objc-lang.c: Include "gdb_assert.h".
7237 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7238 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7239 (gdb_check, gdb_check_fatal): Delete functions.
7240 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7241 gdb_assert.
7242 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7243 * Makefile.in (objc-lang.o): Update dependencies.
7244
7245 2003-05-22 Ian Lance Taylor <ian@airs.com>
7246
7247 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7248 with fprintf_filtered, not fprintf_unfiltered.
7249
7250 2003-05-22 Andrew Cagney <cagney@redhat.com>
7251
7252 * stack.c (frame_info): Inline extract_address, replacing it with
7253 extract_unsigned_integer.
7254 * findvar.c (unsigned_pointer_to_address): Ditto.
7255 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7256 * dwarf2expr.c (dwarf2_read_address): Ditto.
7257 * frame.c (frame_pc_unwind): Update comment.
7258 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7259
7260 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7261
7262 * infptrace.c (detach): Call print_sys_errmsg rather than
7263 perror_with_name to issue warning message when errno is non-zero
7264 after calling ptrace detach.
7265
7266 2003-05-21 J. Brobecker <brobecker@gnat.com>
7267
7268 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7269 macro definitions from here...
7270 * hppa-tdep.c: ...to there.
7271
7272 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7273
7274 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7275 register_ptrace_addr(). Fix all callers.
7276
7277 2003-05-21 Andreas Schwab <schwab@suse.de>
7278
7279 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7280 dependencies.
7281 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7282 end.
7283 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7284 (_initialize_m68k_linux_tdep): New function.
7285 (m68k_linux_frame_saved_pc): Make static.
7286 (m68k_linux_extract_return_value): Likewise.
7287 (m68k_linux_store_return_value): Likewise.
7288 (m68k_linux_extract_struct_value_address): Likewise.
7289 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7290 Remove.
7291 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7292 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7293 (DEPRECATED_FRAME_SAVED_PC): Remove.
7294
7295 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7296
7297 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7298 regset numbering rather than our own.
7299
7300 2003-05-19 David Carlton <carlton@bactrian.org>
7301
7302 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7303
7304 2003-05-19 David Carlton <carlton@bactrian.org>
7305
7306 Partial fix for PR c++/827.
7307 * cp-support.h: Include symtab.h.
7308 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7309 * cp-namespace.c: Update contributors.
7310 (cp_lookup_symbol_nonlocal): New.
7311 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7312 (lookup_symbol_file): Ditto.
7313 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7314 * block.h: Declare block_scope, block_using, block_global_block.
7315 * block.c (block_scope): New.
7316 (block_using, block_global_block): Ditto.
7317 * Makefile.in (cp_support_h): Depend on symtab_h.
7318 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7319
7320 2003-05-19 David Carlton <carlton@bactrian.org>
7321
7322 * language.h (struct language_defn): Add 'la_value_of_this'
7323 and 'la_lookup_symbol_nonlocal' members.
7324 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7325 lookup_symbol_static, lookup_symbol_global,
7326 lookup_symbol_aux_block.
7327 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7328 if we should search fields of this and how to do static/global
7329 lookup.
7330 (lookup_symbol_aux_block): Make extern.
7331 (basic_lookup_symbol_nonlocal): New.
7332 (lookup_symbol_static, lookup_symbol_global): Ditto.
7333 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7334 'la_lookup_symbol_nonlocal' members.
7335 * c-lang.c (c_language_defn, cplus_language_defn)
7336 (asm_language_defn, minimal_language_defn): Ditto.
7337 * jv-lang.c (java_language_defn): Ditto.
7338 * language.c (unknown_language_defn, auto_language_defn)
7339 (local_language_defn): Ditto.
7340 * m2-lang.c (m2_language_defn): Ditto.
7341 * objc-lang.c (objc_language_defn): Ditto.
7342 * scm-lang.c (scm_language_defn): Ditto.
7343 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7344 * p-lang.c (pascal_language_defn): Ditto for both.
7345 * Makefile.in (f-lang.o): Depend on value_h.
7346 (p-lang.o): Ditto.
7347
7348 2003-05-19 David Carlton <carlton@bactrian.org>
7349
7350 * block.h: Declare block_static_block.
7351 * block.c (block_static_block): New.
7352 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7353 lookup_symbol_aux_local, calling block_static_block instead.
7354 (lookup_symbol_aux_local): Delete 'static_block' argument.
7355
7356 2003-05-19 David Carlton <carlton@bactrian.org>
7357
7358 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7359
7360 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7361
7362 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7363 register numbers mapping.
7364
7365 2003-05-18 Adam Fedor <fedor@gnu.org>
7366
7367 * symtab.c (completion_list_objc_symbol): New function.
7368 (make_symbol_completion_list): Use it to add ObjC symbols
7369 when looking though the list.
7370 (language_search_unquoted_string): New function.
7371 (make_file_symbol_completion_list): Use it.
7372
7373 2003-05-18 Andreas Schwab <schwab@suse.de>
7374
7375 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7376 dependencies.
7377 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7378 as m68k_linux_extract_return_value.
7379 (DEPRECATED_STORE_RETURN_VALUE): Define as
7380 m68k_linux_store_return_value.
7381 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7382 m68k_linux_extract_struct_value_address.
7383 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7384 get_next_frame, get_frame_base, get_frame_pc.
7385 (m68k_linux_frame_saved_pc): Use get_frame_base.
7386 (m68k_linux_extract_return_value): New function.
7387 (m68k_linux_store_return_value): New function.
7388 (m68k_linux_extract_struct_value_address): New function.
7389 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7390
7391 * c-exp.y (typebase): Remove duplicate occurence of
7392 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7393 of lookup_signed_typename.
7394
7395 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7396
7397 * dwarf2loc.c (find_location_expression): Change type of second
7398 argument to `size_t *'.
7399 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7400 for size variable.
7401
7402 2003-05-18 David Carlton <carlton@bactrian.org>
7403
7404 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7405 'linkage_name'. Add comment.
7406 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7407 'linkage_name'.
7408 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7409 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7410 (lookup_block_symbol): Ditto.
7411
7412 2003-05-16 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7415 * gdbarch.h, gdbarch.c: Re-generate.
7416 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7417 * TODO (REGISTER_BYTES): Delete reference.
7418 * alpha-tdep.c (alpha_gdbarch_init): Update.
7419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7420 * x86-64-tdep.c (x86_64_init_abi): Update.
7421 * vax-tdep.c (vax_gdbarch_init): Update.
7422 * v850-tdep.c (v850_gdbarch_init): Update.
7423 * sparc-tdep.c (sparc_gdbarch_init): Update.
7424 * sh-tdep.c (sh_gdbarch_init): Update.
7425 * s390-tdep.c (s390_gdbarch_init): Update.
7426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7427 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7428 (ns32k_gdbarch_init_32382): Update.
7429 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7430 * mcore-tdep.c (mcore_gdbarch_init): Update.
7431 * m68k-tdep.c (m68k_gdbarch_init): Update.
7432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7433 * ia64-tdep.c (ia64_gdbarch_init): Update.
7434 * i386-tdep.c (i386_gdbarch_init): Update.
7435 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7436 * hppa-tdep.c (hppa_gdbarch_init): Update.
7437 * h8300-tdep.c (h8300_gdbarch_init): Update.
7438 * frv-tdep.c (frv_gdbarch_init): Update.
7439 * cris-tdep.c (cris_gdbarch_init): Update.
7440 * avr-tdep.c (avr_gdbarch_init): Update.
7441 * arm-tdep.c (arm_gdbarch_init): Update.
7442 * sparc-tdep.c (sparc_pop_frame): Update.
7443 * rs6000-tdep.c (rs6000_pop_frame): Update.
7444 * remote.c (init_remote_state): Update.
7445 (remote_prepare_to_store): Update.
7446 * remote-vx.c (vx_prepare_to_store): Update.
7447 * remote-sds.c (sds_fetch_registers): Update.
7448 (sds_prepare_to_store): Update.
7449 * remote-array.c: Update.
7450 * regcache.c (init_legacy_regcache_descr): Update.
7451 (init_regcache_descr): Update.
7452 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7453 (mips_o64_extract_return_value): Update.
7454 * irix5-nat.c (fetch_core_registers): Update.
7455 * irix4-nat.c (fetch_core_registers): Update.
7456 * i386-tdep.h: Update.
7457 * hppa-tdep.c (pa_do_registers_info): Update.
7458 (pa_do_strcat_registers_info): Update.
7459 * cris-tdep.c (cris_register_bytes_ok): Update.
7460 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7461 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7462 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7463 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7464 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7465 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7466 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7467 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7468 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7469 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7470 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7471 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7472 (REGISTER_BYTES_OK): Update.
7473 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7474 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7475
7476 2003-05-16 Ian Lance Taylor <ian@airs.com>
7477
7478 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7479 (vax_print_insn, print_insn_arg): Remove static functions.
7480 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7481 print_insn_vax from opcodes library.
7482 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7483
7484 2003-05-15 Andrew Cagney <cagney@redhat.com>
7485
7486 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7487 * target.h (memory_breakpoint_from_pc): Delete declaration.
7488 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7489 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7490 * monitor.c (monitor_insert_breakpoint): Use
7491 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7492 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7493 * gdbarch.h, gdbarch.c: Re-generate.
7494 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7495 (sparc_gdbarch_init): Set breakpoint_from_pc to
7496 sparc_breakpoint_from_pc.
7497 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7498 (BREAKPOINT_FROM_PC): Define.
7499 (sparc_breakpoint_from_pc): Declare.
7500 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7501 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7502 (BREAKPOINT_FROM_PC): Define.
7503 (BREAKPOINT): Delete macro.
7504 * target.h: Update comment.
7505 * s390-tdep.c (s390_gdbarch_init): Update comments.
7506 * remote.c: Update comments.
7507 * remote-mips.c: Update comments.
7508 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7509 * mem-break.c: Update comment.
7510 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7511 (ia64_memory_insert_breakpoint): Update.
7512 * config/sparc/tm-sparc.h: Update comment.
7513 * config/pa/tm-hppa64.h: Update comment.
7514 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7515 (rs6000_breakpoint_from_pc): Update.
7516 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7517 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7518 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7519 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7520 (mips_breakpoint_from_pc): Update.
7521 (mips_dump_tdep): Update.
7522
7523 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7524 * minsyms.c (lookup_minimal_symbol): Inline
7525 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7526
7527 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7528 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7529 * p-lang.c (pascal_printstr): Ditto.
7530 * objc-lang.c (objc_printstr): Ditto.
7531 * m2-lang.c (m2_printstr): Ditto.
7532 * jv-valprint.c (java_print_value_fields): Ditto.
7533 * f-lang.c (f_printstr): Ditto.
7534 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7535 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7536 for repeat_count_threshold.
7537 * Makefile.in (cp-valprint.o): Update dependencies.
7538
7539 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7540
7541 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7542 (examine_prologue): Support looking through leaf functions, knowing
7543 they start with mov r2,r12. Support skipping over indirect stores
7544 of the input registers. Upon hitting a non-nop branch instruction
7545 or predicated instruction, bail out by setting lim_pc to the current
7546 pc value in the loop. At the end, if the lim_pc value is still
7547 beyond our calculated value and we have trust_limit set,
7548 use the lim_pc value.
7549
7550 2003-05-15 Andrew Cagney <cagney@redhat.com>
7551
7552 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7553 generic_find_dummy_frame.
7554 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7555 (deprecated_generic_find_dummy_frame): Update.
7556 (deprecated_read_register_dummy): Update.
7557 * frame.c (deprecated_generic_get_saved_register): Update.
7558
7559 2003-05-15 Theodore A. Roth <troth@openavr.org>
7560
7561 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7562 (avr_gdbarch_init): Set breakpoint_from_pc method.
7563
7564 2003-05-15 Andrew Cagney <cagney@redhat.com>
7565
7566 * regcache.c (build_regcache): Set deprecated_register_valid
7567 directly.
7568 (deprecated_grub_regcache_for_register_valid): Delete function.
7569 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7570 declaration.
7571
7572 2003-05-15 David Carlton <carlton@bactrian.org>
7573
7574 Committed by Elena Zannoni <ezannoni@redhat.com>
7575 * symtab.c (lookup_symbol_aux): Delete calls to
7576 lookup_symbol_aux_minsyms.
7577 (lookup_symbol_aux_minsyms): Comment out function and
7578 prototype. Delete lookup by mangled name.
7579
7580 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7581
7582 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7583 correctly indicate an empty stack and ``stack_allocated'' to the
7584 indicate the number of elements initially allocated.
7585 (dwarf_expr_grow_stack): Simplify method for computing new
7586 stack size. Don't loop infinitely if ``stack_len'' is zero.
7587 (execute_stack_op): Move ``ctx->in_reg'' initialization
7588 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7589 be used in conjuction with DW_OP_piece. Revise error message
7590 accordingly.
7591
7592 2003-05-14 Theodore A. Roth <troth@openavr.org>
7593
7594 * MAINTAINERS: Update my email address.
7595 * avr-tdep.c: Ditto.
7596
7597 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7598
7599 * symtab.h (enum domain_enum): Rename from namespace_enum.
7600 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7601 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7602 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7603 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7604 TYPES_NAMESPACE, METHODS_NAMESPACE.
7605 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7606 (struct symbol, struct partial_symbol): Rename field
7607 'namespace_enum namespace' to 'domain_enum domain'.
7608 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7609 Delete old define kludge for namespace.
7610
7611 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7612 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7613 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7614 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7615 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7616 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7617 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7618 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7619 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7620 occurrences of the above.
7621
7622 2003-05-14 Ian Lance Taylor <ian@airs.com>
7623
7624 * Makefile.in (install-only): Use $(SHELL) when running
7625 mkinstalldirs.
7626
7627 2003-05-13 Ian Lance Taylor <ian@airs.com>
7628
7629 * MAINTAINERS (write after approval): Add myself.
7630
7631 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7632 second and third arguments.
7633 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7634 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7635
7636 2003-05-13 Andrew Cagney <cagney@redhat.com>
7637
7638 * defs.h (store_address): Delete declaration.
7639 findvar.c (store_address): Delete function.
7640 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7641 store_unsigned_integer.
7642 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7643 * v850-tdep.c (v850_push_arguments): Ditto.
7644 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7645 * sh-tdep.c (sh64_get_saved_register): Ditto.
7646 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7647 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7648 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7649 (mips_get_saved_register): Ditto.
7650 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7651 (find_func_descr, ia64_push_arguments): Ditto.
7652 * i386-tdep.c (i386_push_arguments): Ditto.
7653 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7654 * frv-tdep.c (frv_push_arguments): Ditto.
7655 * frame.c (legacy_saved_regs_prev_register): Ditto.
7656 (deprecated_generic_get_saved_register): Ditto.
7657 * findvar.c (unsigned_address_to_pointer): Ditto.
7658 * dwarf2read.c (dwarf2_const_value): Ditto.
7659 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7660 * alpha-tdep.c (alpha_push_arguments): Ditto.
7661
7662 2003-05-12 J. Brobecker <brobecker@gnat.com>
7663
7664 * NEWS: Mention that the hppa-hpux port has been partially
7665 multiarched (32bit ABIT only, so far).
7666
7667 2003-05-11 Andrew Cagney <cagney@redhat.com>
7668
7669 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7670 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7671 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7672 sim/testsuite/sim/arm/misaligned2.ms, and
7673 sim/testsuite/sim/arm/misaligned3.ms.
7674 * disasm.h (struct ui_file): Add opaque struct declaration.
7675 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7676 * frame.h (struct ui_file): Ditto.
7677
7678 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7679
7680 * value.h: Pretty print.
7681
7682 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7683
7684 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7685
7686 2003-05-08 Andrew Cagney <cagney@redhat.com>
7687
7688 * regcache.h (max_register_size): Delete declaration.
7689 * regcache.c (max_register_size): Delete function.
7690 (struct regcache_descr): Delete field "max_register_size".
7691 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7692 registers fit in MAX_REGISTER_SIZE.
7693 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7694 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7695 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7696 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7697 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7698 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7699 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7700 * dve3900-rom.c, hppa-tdep.c: Ditto.
7701
7702 2003-05-08 David Carlton <carlton@math.stanford.edu>
7703
7704 * valops.c (push_word): Fix typo.
7705
7706 2003-05-08 Andrew Cagney <cagney@redhat.com>
7707
7708 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7709 * gdbarch.h: Re-generate.
7710 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7711 (legacy_max_register_raw_size): Delete declaration.
7712 * regcache.c (legacy_max_register_raw_size): Delete function.
7713 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7714 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7715 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7716 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7717 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7718 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7719 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7720 * findvar.c, dwarf2cfi.c: Ditto.
7721
7722 2003-05-08 Andrew Cagney <cagney@redhat.com>
7723
7724 * mips-tdep.c (read_signed_register): New function, moved to here
7725 from "regcache.c".
7726 (read_signed_register_pid): Ditto.
7727 * regcache.c (read_signed_register_pid): Delete function, moved to
7728 "mips-tdep.c".
7729 (read_signed_register): Ditto.
7730 * regcache.h (read_signed_register): Delete declaration.
7731 (read_signed_register_pid): Delete declaration.
7732
7733 2003-05-08 Andrew Cagney <cagney@redhat.com>
7734
7735 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7736 * gdbarch.h: Re-generate.
7737 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7738 (legacy_max_register_virtual_size): Delete declaration.
7739 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7740 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7741 * tracepoint.c (memrange_sortmerge): Ditto.
7742 * sparc-tdep.c (sparc_print_registers): Ditto.
7743 * regcache.c (legacy_max_register_virtual_size): Delete function.
7744
7745 2002-05-08 J. Brobecker <brobecker@gnat.com>
7746
7747 * fork-child.c (escape_bang_in_quoted_argument): New function.
7748 (fork_inferior): Escape '!' characters in quoted arguments
7749 only when needed.
7750
7751 2003-05-08 J. Brobecker <brobecker@gnat.com>
7752
7753 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7754 the language of the CU is not currently supported by GDB.
7755
7756 2003-05-08 J. Brobecker <brobecker@gnat.com>
7757
7758 * defs.h (language): Add language_minimal enum value.
7759 * c-lang.c (minimal_language_defn): New language definition.
7760 (_initialize_c_language): Add the new minimal language to the list
7761 of languages known to GDB.
7762
7763 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7764
7765 * frame.c (get_frame_type): Don't attempt to lazily initialize
7766 frame's unwinder for legacy frames.
7767
7768 2003-05-07 Andrew Cagney <cagney@redhat.com>
7769
7770 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7771 and "regcache" parameters.
7772 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7773
7774 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7775
7776 * dwarf2read.c (dwarf_decode_lines): Only use output of
7777 check_cu_functions() when calling record_line(). Do not update
7778 the current address.
7779
7780 2003-05-07 Andrew Cagney <cagney@redhat.com>
7781
7782 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7783 code.
7784
7785 2003-05-07 Jim Blandy <jimb@redhat.com>
7786
7787 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7788 'maint info symtabs' and 'maint info psymtabs'.
7789 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7790 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7791 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7792 Declarations updated.
7793 * maint.c (maintenance_list_command): Delete.
7794 (_initialize_maint_cmds): Update calls to add_cmd.
7795 * gdbcmd.h (maintenancelistlist): Delete declaration.
7796 * cli/cli-cmds.c (maintenancelistlist): Delete.
7797 (init_cmd_lists): Don't initialize it.
7798 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7799
7800 2003-05-07 Andrew Cagney <cagney@redhat.com>
7801
7802 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7803 "regcache".
7804 (d10v_print_registers_info): Update.
7805 (d10v_dmap_register, d10v_imap_register): Delete functions.
7806 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7807 and "imap_register".
7808 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7809 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7810 * arch-utils.c (generic_remote_translate_xfer_address): Add
7811 "regcache" and "gdbarch" parameters.
7812 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7813 parameter. Change class to multi-arch.
7814 * gdbarch.h, gdbarch.c: Re-generate.
7815 * remote.c (remote_xfer_memory): Use
7816 gdbarch_remote_translate_xfer_address.
7817
7818 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7819
7820 * infrun.c (prev_pc): Move declaration ahead of proceed().
7821 (proceed): Refresh prev_pc value before resuming.
7822 (stop_stepping): Remove code to refresh prev_pc.
7823
7824 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7825
7826 * nto-tdep.c: Removed stray comment.
7827
7828 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7829
7830 * i386-nto-tdep.c: Fix old K&R function definitions.
7831 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7832 Also change add_show_from_set() call to add_setshow_cmd().
7833 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7834
7835 2003-05-05 Andrew Cagney <cagney@redhat.com>
7836
7837 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7838 (fprint_dummy_frames): New function.
7839 (maintenance_print_dummy_frames): New function.
7840 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7841 * frame.c (fprint_frame_id): Make global.
7842 * frame.h (fprint_frame_id): Declare.
7843 * Makefile.in (dummy-frame.o): Update dependencies.
7844
7845 2003-05-05 Andrew Cagney <cagney@redhat.com>
7846
7847 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7848 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7849 SIZEOF_CALL_DUMMY_WORDS.
7850 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7851 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7852 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7853 CALL_DUMMY_BREAKPOINT_OFFSET.
7854 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7855 CALL_DUMMY_START_OFFSET.
7856 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7857 * gdbarch.h, gdbarch.c: Re-generate.
7858 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7859 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7860 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7861 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7862 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7863 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7864 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7865 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7866 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7867 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7868 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7869 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7870 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7871 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7872 * config/sparc/tm-sparc.h: Update.
7873
7874 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7875
7876 * configure.tgt: Add i[3456]86-*-nto*.
7877 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7878 * nto-tdep.c: New file. Neutrino target support routines.
7879 * nto-tdep.h: New file. Neutrino target header.
7880 * config/tm-qnxnto.h: New file.
7881 * config/i386/i386nto.mt: New file.
7882 * config/i386/tm-i386nto.h: New file.
7883
7884 2003-05-04 Andrew Cagney <cagney@redhat.com>
7885
7886 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7887 (load_infrun_state): Ditto.
7888 (struct thread_info): Drop "prev_func_name" field.
7889 * thread.c (load_infrun_state): Update.
7890 (save_infrun_state): Update.
7891 * infrun.c (prev_func_name): Delete variable.
7892 (init_wait_for_inferior): Do not clear prev_func_name.
7893 (stop_stepping, keep_going, context_switch): Do not swap
7894 prev_func_name.
7895 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7896 instead of PC_IN_SIGTRAMP.
7897
7898 2003-05-04 Andrew Cagney <cagney@redhat.com>
7899
7900 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7901 REGISTER_BYTE with register_offset_hack.
7902 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7903 that REGISTER_BYTE is consistent with the regcache.
7904 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7905 * gdbarch.h, gdbarch.c: Regenerate.
7906
7907 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7908
7909 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7910 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7911
7912 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7913
7914 2003-05-03 J. Brobecker <brobecker@gnat.com>
7915
7916 From Thierry Schneider <tpschneider1@yahoo.com>
7917 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7918 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7919 (mi-cmd-symbol.o): Add rule.
7920
7921 2003-05-03 Andrew Cagney <cagney@redhat.com>
7922
7923 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7924 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7925 * gdbarch.h, gdbarch.c: Re-generate.
7926 * d10v-tdep.c (d10v_push_dummy_code): New function.
7927 (d10v_gdbarch_init): Set push_dummy_code.
7928 * infcall.c (legacy_push_dummy_code): New function.
7929 (generic_push_dummy_code): New function.
7930 (push_dummy_code): New function.
7931 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7932 instead of dummy_addr, to push_dummy_call. Move call to
7933 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7934 switch.
7935 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7936
7937 2003-05-03 Andrew Cagney <cagney@redhat.com>
7938
7939 * disasm.h (print_insn): Declare.
7940 * disasm.c (init_gdb_disassemble_info): New function.
7941 (gdb_disassembly): Call init_gdb_disassemble_info.
7942 (gdb_print_insn): New function.
7943 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7944 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7945 * mcore-tdep.c: Include "disasm.h"
7946 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7947 * d10v-tdep.c: Include "disasm.h".
7948 (display_trace): Call gdb_print_insn, instead of print_insn.
7949 (print_insn): Delete function.
7950 * printcmd.c: Include "disasm.h".
7951 (print_insn): Delete function.
7952 (print_formatted): Call gdb_print_insn, instead of print_insn.
7953 * Makefile.in (printcmd.o): Update dependencies.
7954 (mcore-tdep.o, d10v-tdep.o): Ditto.
7955
7956 2003-05-02 Andrew Cagney <cagney@redhat.com>
7957
7958 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7959 PC_REGNUM, re-indent.
7960 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7961 PC_REGNUM isn't set.
7962
7963 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7964 * gdbarch.h, gdbarch.c: Re-generate.
7965 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7966 register_virtual_size, pc_regnum, or register_bytes.
7967 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7968 (d10v_register_type): Use D10V_PC_REGNUM.
7969 (d10v_print_registers_info, d10v_read_pc): Ditto.
7970 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7971 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7972
7973 2003-05-02 David Carlton <carlton@bactrian.org>
7974
7975 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7976 the name with mstrsave.
7977
7978 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7979
7980 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7981 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7982 (host_charset_name, target_charset_name): New vars for use by
7983 set/show commands.
7984 (host_charset_enum, target_charset_enum): New enums for set/show
7985 commands.
7986 (set_charset_sfunc, set_host_charset_sfunc,
7987 set_target_charset_sfunc): New functions.
7988 (set_host_charset, set_target_charset): Make static.
7989 (list_charsets, set_host_charset_command,
7990 set_target_charset_command): Delete functions.
7991 (show_charset_command): Rewrite as....
7992 (show_charset): Hook this up with the set/show command mechanism.
7993 (_initialize_charset): Change names of charsets to match the
7994 set/show enums. Use host_charset_name and target_charset_name.
7995 Use set/show mechanism for charset, host-charset, target-charset
7996 commands. Do not make 'show host-charset' and 'show
7997 target-charset' be aliases of 'show charset'.
7998
7999 * charset.h (set_host_charset, set_target_charset): Don't export,
8000 they are not used outside the file.
8001
8002 2003-05-01 Andrew Cagney <cagney@redhat.com>
8003
8004 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
8005 (gdb_disassembly): Make "di" non static, always initialize and
8006 cleanup. Always use dis_asm_read_memory.
8007 (gdb_dis_asm_read_memory): Delete function.
8008
8009 2003-05-01 Andrew Cagney <cagney@redhat.com>
8010
8011 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
8012 (d10v_gdbarch_init): Set frame_align instead of stack_align.
8013
8014 2003-04-30 Andrew Cagney <cagney@redhat.com>
8015
8016 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
8017 "tm_print_insn_info".
8018 (TARGET_PRINT_INSN_INFO): Delete macro.
8019 (dis_asm_read_memory): Delete function declaration.
8020 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8021 (tm_print_insn_info): Delete variable definition.
8022 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
8023 * gdbarch.h, gdbarch.c: Re-generate.
8024 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
8025 "deprecated_tm_print_insn_info".
8026 * mcore-tdep.c (mcore_dump_insn): Ditto.
8027 * mips-tdep.c (mips_gdbarch_init): Ditto.
8028 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
8029 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
8030 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
8031 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
8032 instead of TARGET_PRINT_INSN_INFO, add comment.
8033 * s390-tdep.c (s390_get_frame_info): Instead of
8034 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
8035 (s390_check_function_end, s390_is_sigreturn): Ditto.
8036 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
8037 (dis_asm_memory_error, dis_asm_print_address): Ditto.
8038 * disasm.c: Include "gdbcore.h".
8039 (_initialize_disasm): New function, initialize
8040 "deprecated_tm_print_insn_info".
8041 (deprecated_tm_print_insn_info): New variable.
8042 (dis_asm_read_memory): Moved from "corefile.c", made static.
8043 (dis_asm_print_address, dis_asm_memory_error): Ditto.
8044 * Makefile.in (disasm.o): Update dependencies.
8045
8046 2003-04-30 Andrew Cagney <cagney@redhat.com>
8047
8048 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
8049
8050 2003-04-29 Adam Fedor <fedor@gnu.org>
8051
8052 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
8053 * infcall.c (find_function_addr): Make non-static.
8054 * infcall.h (find_function_addr): Declare.
8055 * Makefile.in (eval.o): Update dependencies.
8056
8057 2003-04-28 Adam Fedor <fedor@gnu.org>
8058
8059 * symtab.c (symbol_find_demangled_name): Check for and demangle
8060 ObjC symbols.
8061 (symbol_init_demangled_name): Init for language_objc as well.
8062
8063 2003-04-28 Andrew Cagney <cagney@redhat.com>
8064
8065 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
8066 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
8067 * gdbarch.h, gdbarch.c: Re-generate.
8068 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
8069 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
8070 * inferior.h (deprecated_read_fp): Rename read_fp.
8071 (generic_target_read_fp): Delete declaration.
8072 * regcache.c (generic_target_read_fp): Delete function.
8073 (deprecated_read_fp): Replace read_fp, use
8074 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
8075 * d10v-tdep.c (d10v_read_fp): Delete function.
8076 (d10v_gdbarch_init): Do not set deprecated_read_fp.
8077
8078 * sparc-tdep.c (sparc_gdbarch_init): Do not set
8079 deprecated_target_read_fp to generic_target_read_fp.
8080 * sh-tdep.c (sh_gdbarch_init): Ditto.
8081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8082 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8083 * frv-tdep.c (frv_gdbarch_init): Ditto.
8084
8085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
8086 deprecated_fp_regnum.
8087 * x86-64-tdep.c (x86_64_init_abi): Ditto.
8088 * vax-tdep.c (vax_gdbarch_init): Ditto.
8089 * v850-tdep.c (v850_gdbarch_init): Ditto.
8090 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8091 * sh-tdep.c (sh_gdbarch_init): Ditto.
8092 * s390-tdep.c (s390_gdbarch_init): Ditto.
8093 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8094 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8095 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8096 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8098 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8099 * i386-tdep.c (i386_gdbarch_init): Ditto.
8100 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8101 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8102 * frv-tdep.c (frv_gdbarch_init): Ditto.
8103 * cris-tdep.c (cris_gdbarch_init): Ditto.
8104 * avr-tdep.c (avr_gdbarch_init): Ditto.
8105 * arm-tdep.c (arm_gdbarch_init): Ditto.
8106 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8107
8108 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
8109 * v850-tdep.c (v850_gdbarch_init): Ditto.
8110 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8111 * sh-tdep.c (sh_gdbarch_init): Ditto.
8112 * s390-tdep.c (s390_gdbarch_init): Ditto.
8113 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8114 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8115 * mips-tdep.c (mips_gdbarch_init): Ditto.
8116 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8117 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8118 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8119 * frv-tdep.c (frv_gdbarch_init): Ditto.
8120 * avr-tdep.c (avr_gdbarch_init): Ditto.
8121 * arm-tdep.c (arm_gdbarch_init): Ditto.
8122
8123 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
8124 DEPRECATED_FP_REGNUM.
8125 (vax_push_dummy_frame, vax_pop_frame): Ditto.
8126 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
8127 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
8128 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
8129 (sparc32_register_virtual_type): Ditto.
8130 * sh-tdep.c (sh64_frame_chain): Ditto.
8131 (sh64_get_saved_register, sh64_pop_frame): Ditto.
8132 (sh_nofp_frame_init_saved_regs): Ditto.
8133 (sh64_nofp_frame_init_saved_regs): Ditto.
8134 (sh_fp_frame_init_saved_regs): Ditto.
8135 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8136 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8137 * procfs.c (procfs_fetch_registers): Ditto.
8138 (procfs_store_registers): Ditto.
8139 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
8140 (store_inferior_registers, fetch_core_registers): Ditto.
8141 (fetch_kcore_registers, clear_regs): Ditto.
8142 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
8143 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
8144 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
8145 * nlm/i386.c (do_status): Ditto.
8146 * mipsv4-nat.c (supply_gregset): Ditto.
8147 * mips-tdep.c: Ditto for comments.
8148 * mips-nat.c (fetch_inferior_registers): Ditto.
8149 (store_inferior_registers, fetch_core_registers): Ditto.
8150 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
8151 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
8152 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
8153 (i386_do_pop_frame, i386_register_type): Ditto.
8154 * hppa-tdep.c (hppa_frame_chain): Ditto.
8155 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
8156 (hppa_pop_frame, hppa_read_fp): Ditto.
8157 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
8158 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
8159 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
8160 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
8161 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
8162 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
8163 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
8164 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
8165 * blockframe.c: Ditto for comments.
8166 * arch-utils.h: Ditto for comments.
8167 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
8168 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
8169 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
8170 * alpha-tdep.h: Ditto for comments.
8171 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
8172 (alpha_cannot_store_register): Ditto.
8173 (alpha_push_dummy_frame): Ditto.
8174 * alpha-nat.c (supply_gregset): Ditto.
8175
8176 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
8177 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
8178 * config/sparc/tm-sparc.h: Update comment.
8179
8180 * hppa-tdep.c (hppa_init_extra_frame_info): Use
8181 deprecated_read_fp instead of TARGET_READ_FP.
8182 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
8183 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
8184 * sparc-tdep.c (sparc_init_extra_frame_info): Use
8185 deprecated_read_fp instead of read_fp.
8186 * s390-tdep.c (s390_push_arguments): Ditto.
8187 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8188 * frame.h: Ditto in comments.
8189 * frame.c (legacy_get_prev_frame): Ditto.
8190 * dummy-frame.c (dummy_frame_this_id): Ditto.
8191 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
8192
8193 2003-04-28 Andrew Cagney <cagney@redhat.com>
8194
8195 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
8198 * vax-tdep.c (_initialize_vax_tdep): Update.
8199 * v850-tdep.c (_initialize_v850_tdep): Update.
8200 * sparc-tdep.c (_initialize_sparc_tdep): Update.
8201 * s390-tdep.c (_initialize_s390_tdep): Update.
8202 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
8203 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8204 * mips-tdep.c (_initialize_mips_tdep): Update.
8205 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8206 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8207 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8208 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8209 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8210 * frv-tdep.c (_initialize_frv_tdep): Update.
8211 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8212 (_initialize_cris_tdep): Update.
8213 * arch-utils.c (legacy_print_insn): Update.
8214 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8215
8216 2003-04-26 Adam Fedor <fedor@gnu.org>
8217
8218 * linespec.c (decode_objc): New function to decode ObjC calls
8219 (decode_line_1): Check for ObjC calls (using decode_objc)
8220 * Makefile (linespec.o): Update dependencies.
8221
8222 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8223
8224 * breakpoint.h (struct breakpoint_ops): New.
8225 (struct breakpoint): Add ops member.
8226
8227 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8228 (mention): Use new breakpoint ops member.
8229 (set_raw_breakpoint): Initialize ops field to NULL.
8230 (print_exception_catchpoint, print_one_exception_catchpoint)
8231 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8232 (gnu_v3_exception_catchpoint_ops): New.
8233 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8234
8235 2003-04-25 Adam Fedor <fedor@gnu.org>
8236
8237 * Makefile.in (COMMON_OBS): Add objc-lang.o
8238
8239 2003-04-25 Andrew Cagney <cagney@redhat.com>
8240
8241 * d10v-tdep.c (print_insn): Delete function.
8242 (display_trace): Use TARGET_PRINT_INSN.
8243 (_initialize_d10v_tdep): Do not set tm_print_insn.
8244 (d10v_gdbarch_init): Set print_insn.
8245
8246 2003-04-25 Andrew Cagney <cagney@redhat.com>
8247
8248 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8249 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8250 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8251 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8252 (nr_dmap_regs, a0_regnum): ... new functions.
8253 (d10v_print_registers_info): Use a0_regnum, use register_size.
8254 (d10v_register_byte): Delete function.
8255 (d10v_register_raw_size): Delete function.
8256 (d10v_register_type): Use a0_regnum.
8257 (d10v_print_registers_info): Use a0_regnum.
8258 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8259 (d10v_gdbarch_init): Do not set register_byte or
8260 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8261 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8262 extract_address.
8263 (trace_command): Use XCALLOC.
8264 (print_insn): Delete reference to tm_print_insn.
8265 (saved_regs_unwinder): Use store_unsigned_integer instead of
8266 store_address.
8267 * frame.h (FRAME_OBSTACK_CALLOC): Define
8268
8269 2003-04-25 David Carlton <carlton@bactrian.org>
8270
8271 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8272
8273 2003-04-24 Adam Fedor <fedor@gnu.org>
8274
8275 * objc-lang.c: Include "valprint.h"
8276 * Makefile.in (objc-lang.o): Update dependencies.
8277
8278 2003-04-24 Adam Fedor <fedor@gnu.org>
8279
8280 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8281 architecture dependant compilation and mark as unimplemented
8282 (until they get put in the gdbarch vector).
8283
8284 2003-04-23 David Carlton <carlton@bactrian.org>
8285
8286 * cp-support.c (cp_find_first_component): Accept 'operator' in
8287 more locations.
8288
8289 2003-04-23 Andrew Cagney <cagney@redhat.com>
8290
8291 * infcall.c (call_function_by_hand): Eliminate redundant
8292 indentation. Move "saved_async" and "old_cleanups" to where they
8293 are needed.
8294
8295 2003-04-23 Andrew Cagney <cagney@redhat.com>
8296
8297 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8298 and "buffer". Move the "name" code to where it is needed.
8299
8300 2003-04-23 Andrew Cagney <cagney@redhat.com>
8301
8302 * infcall.c (call_function_by_hand): Move variables "start_sp",
8303 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8304 code to ON_STACK switch branch.
8305
8306 2003-04-23 Andrew Cagney <cagney@redhat.com>
8307
8308 * infcall.c (call_function_by_hand): Make declaration of "i",
8309 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8310 lint.
8311
8312 2003-04-23 Andrew Cagney <cagney@redhat.com>
8313
8314 * infcall.c (call_function_by_hand): Delete variable
8315 "n_method_args". Localize "param_type"'s declaration to the loop
8316 that it is used. Reinstate code assigning to said variable -
8317 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8318 Rationalize code using "param_type".
8319
8320 2003-04-22 Andrew Cagney <cagney@redhat.com>
8321
8322 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8323 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8324 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8325 to DEPRECATED_PUSH_RETURN_ADDRESS.
8326
8327 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8328
8329 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8330 on the DWARF2 register number prior to fetching a register.
8331
8332 2003-04-22 J. Brobecker <brobecker@gnat.com>
8333
8334 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8335 Update all the tests using SOFT_FLOAT considering the fact that
8336 this macro was always set to 0.
8337 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8338 considering the fact that this macro was always set to 0.
8339 * hppa-tdep.h (hppa_store_return_value): Likewise.
8340 (hppa_extract_return_value): Likewise.
8341
8342 2003-04-22 J. Brobecker <brobecker@gnat.com>
8343
8344 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8345 the hppa-pro target only.
8346
8347 2003-04-21 J. Brobecker <brobecker@gnat.com>
8348
8349 Ongoing multi-arch conversion effort for HP/UX:
8350 * config/pa/tm-hppa.h: Move all macro that are no longer
8351 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8352 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8353
8354 2003-04-21 J. Brobecker <brobecker@gnat.com>
8355
8356 * config/pa/tm-hppa.h: Obsolete a section that was only used
8357 for hppa-pro.
8358
8359 2003-04-21 J. Brobecker <brobecker@gnat.com>
8360
8361 Ongoing multi-arch conversion for HP/UX.
8362 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8363 if already defined (allows hppa64 to stay non-multiarched for now).
8364 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8365
8366 2003-04-21 Andrew Cagney <cagney@redhat.com>
8367
8368 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8369
8370 2003-04-21 Andrew Cagney <cagney@redhat.com>
8371
8372 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8373 "i386_num_mmx_regs".
8374
8375 2003-04-21 Andrew Cagney <cagney@redhat.com>
8376
8377 * infcall.c: New file.
8378 * infcall.h: New file.
8379 * valarith.c: Include "infcall.h".
8380 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8381 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8382 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8383 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8384 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8385 (SFILES): Add "infcall.c"
8386 (COMMON_OBS): Add "infcall.o".
8387 (infcall.o): Specify dependencies.
8388 * value.h (call_function_by_hand): Delete declaration.
8389 * inferior.h (run_stack_dummy): Delete declaration.
8390 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8391 (run_stack_dummy): Move to "infcall.c", merged into
8392 call_function_by_hand.
8393 * valops.c (call_function_by_hand): Moved to "infcall.c".
8394 (find_function_addr, value_arg_coerce): Ditto.
8395 (unwindonsignal_p, coerce_float_to_double): Ditto.
8396 (_initialize_valops): Move "set/show coerce-float-to-double", and
8397 "set/show unwindonsignal" commands to "infcall.c".
8398 * v850-tdep.c, target.h: Update comments.
8399 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8400 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8401 (sh64_init_extra_frame_info): Update comments.
8402 * mn10300-tdep.c: Update comments.
8403 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8404 * config/sparc/tm-sparc.h: Update comments.
8405 * breakpoint.h: Update comments.
8406 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8407 * arm-tdep.c: Update comment.
8408
8409 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8410
8411 * i386-tdep.c (i386_num_register_names): New variable.
8412 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8413 (MM0_REGNUM): Remove redundant parentheses in define.
8414 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8415 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8416 i386_mxcsr_regnum_p): Remove redundant parentheses.
8417 (i386_register_name): Use i386_num_register_names.
8418
8419 * i386-tdep.c (i386_extract_return_value,
8420 i386_store_return_value): Correct check for availability of
8421 floating-point registers.
8422
8423 * i386-tdep.c (i386_frame_num_args): Remove function.
8424 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8425
8426 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8427 mmx_regnum_to_fp_regnum. Adjust all callers.
8428
8429 * i386-tdep.c (i386_get_longjmp_target): Use
8430 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8431 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8432 extract_address.
8433
8434 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8435
8436 * core-regset.c: Update comments to reflect reality. Re-order
8437 includes.
8438 (fetch_core_registers): Use switch instead of if. Remove
8439 redundant prototype.
8440
8441 2003-04-18 Jim Blandy <jimb@redhat.com>
8442
8443 * s390-tdep.c (s390_frame_align): New function.
8444 (s390_gdbarch_init): Register it with the gdbarch object.
8445
8446 2003-04-17 Richard Henderson <rth@redhat.com>
8447
8448 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8449
8450 2003-04-17 Michael Snyder <msnyder@redhat.com>
8451 Karen Bennet <bennet@redhat.com>
8452
8453 Committed by Elena Zannoni <ezannoni@redhat.com>
8454 * gdb_gcore.sh: New script to create a core dump of a process.
8455
8456 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8457
8458 * values.c (value_being_returned): Don't fetch the return
8459 value if the return type is void.
8460
8461 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8462
8463 * thread-db.c: Reindented.
8464
8465 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8466
8467 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8468 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8469 as types.
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8496
8497 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8498 the size of ``long double'' to 16, instead of 8.
8499
8500 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8501
8502 * i386-linux-nat.c: Add some whitespace to make things more
8503 readable.
8504 (fetch_register, store_register, fetch_inferior_registers,
8505 store_inferior_registers): Get rid of assignment in if-statement.
8506 (store_register): Fix typo in error message.
8507
8508 2003-04-16 Andrew Cagney <cagney@redhat.com>
8509
8510 * utils.c (xmmalloc): Always allocate something, matches
8511 libiberty/xmalloc's semantics.
8512 (xmrealloc, xmcalloc): Ditto.
8513
8514 2003-04-16 Andrew Cagney <cagney@redhat.com>
8515
8516 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8517 update comments.
8518 (get_frame_type): Initialize unwind and type when needed.
8519 (get_frame_id, frame_register_unwind): Ditto.
8520
8521 2003-04-16 Andrew Cagney <cagney@redhat.com>
8522
8523 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8524 obsolete.
8525 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8526 * sparcl-stub.c: Obsolete file.
8527 * config/sparc/tm-sparclet.h: Obsolete file.
8528 * sparclet-stub.c: Obsolete file.
8529 * sparclet-rom.c: Obsolete file.
8530 * sparcl-tdep.c: Obsolete file.
8531 * config/sparc/tm-sparclite.h: Obsolete file.
8532 * config/sparc/sparclite.mt: Obsolete file.
8533 * config/sparc/sparclet.mt: Obsolete file.
8534 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8535 sparc86x-*-* obsolete.
8536
8537 2003-04-15 David Carlton <carlton@math.stanford.edu>
8538
8539 * Makefile.in (SFILES): Add cp-namespace.c.
8540 (COMMON_OBS): Add cp-namespace.o.
8541 (block.o): Depend on gdb_obstack_h and cp_support_h.
8542 (buildsym.o): Depend on cp_support_h.
8543 (cp-namespace.o): New.
8544 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8545 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8546 (dwarf2read.o): Depend on cp_support_h.
8547 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8548 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8549 processing_current_namespace.
8550 (read_namespace): Update processing_current_namespace; check for
8551 anonymous namespaces.
8552 (dwarf2_name): New function.
8553 (dwarf2_extension): Ditto.
8554 * cp-support.h: Update copyright, contributors.
8555 Add inclusion guards.
8556 Add opaque declaration for structs obstack, block, symbol.
8557 (struct using_direct): New struct.
8558 Add declarations for cp_find_first_component,
8559 cp_entire_prefix_len, processing_has_namespace_info,
8560 processing_current_namespace, cp_is_anonymous,
8561 cp_add_using_directive, cp_initialize_namespace,
8562 cp_finalize_namespace, cp_set_block_scope,
8563 cp_scan_for_anonymous_namespaces.
8564 * cp-namespace.c: New file.
8565 * cp-support.c: Update copyright.
8566 Include ctype.h, gdb_assert.h, gdbcmd.h.
8567 New variable maint_cplus_cmd_list.
8568 (cp_find_first_component): New function.
8569 (cp_entire_prefix_len, maint_cplus_command)
8570 (first_component_command, _initialize_cp_support): Ditto.
8571 * buildsym.c: Include cp-support.h.
8572 New variable using_list.
8573 (add_symbol_to_list): Check for anonymous namespaces.
8574 (finish_block): Set block's scope.
8575 (start_symtab): Initialize C++ namespace support.
8576 (end_symtab): Finalize C++ namespace support.
8577 * block.h: Add opaque declarations for structs
8578 block_namespace_info, using_direct, and obstack.
8579 Add declarations for block_set_scope and block_set_using.
8580 (struct block): Add 'language_specific' member.
8581 (BLOCK_NAMESPACE): New macro.
8582 * block.c: Include gdb_obstack.h and cp-support.h.
8583 (struct block_namespace_info): New struct.
8584 (block_set_scope): New function.
8585 (block_set_using, block_initialize_namespace): Ditto.
8586
8587 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8588
8589 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8590 (locate_base): Return early if there aren't any link map offsets.
8591 (svr4_solib_create_inferior_hook): Warn if shared library support
8592 is unavailable.
8593
8594 2003-04-14 David Carlton <carlton@math.stanford.edu>
8595
8596 * symtab.c (symbol_set_names): Add prefix when storing Java names
8597 in hash table. Fix for PR java/1039.
8598
8599 2003-04-14 David Carlton <carlton@math.stanford.edu>
8600
8601 * symtab.c (symbol_set_names): Rename 'name' arg to
8602 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8603 * symtab.h: Change 'name' argument in declaration of
8604 symbol_set_names to 'linkage_name'.
8605 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8606
8607 2003-04-14 Andrew Cagney <cagney@redhat.com>
8608
8609 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8610 return the fully sign-extended register value.
8611 (get_frame_pointer): Ditto.
8612 (mips_pop_frame): Initialize "proc_desc" after checking for a
8613 dummy frame.
8614
8615 2003-04-14 Andrew Cagney <cagney@redhat.com>
8616
8617 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8618 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8619 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8620 (mips_push_register): Delete function.
8621 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8622 PUSH_FP_REGNUM.
8623
8624 2003-04-14 Jim Blandy <jimb@redhat.com>
8625
8626 * symmisc.c: #include "gdb_regex.h".
8627 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8628 functions.
8629 * maint.c (maintenance_list_command): New function.
8630 (_initialize_maint_cmds): Register the above as commands.
8631 * symtab.h (maintenance_list_symtabs,
8632 maintenance_list_psymtabs): New declarations.
8633 * cli/cli-cmds.c (maintenancelistlist): New variable.
8634 (init_cmd_lists): Initialize it.
8635 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8636 * gdbcmd.h (maintenancelistlist): New declaration.
8637 * Makefile.in (symmisc.o): Update dependencies.
8638
8639 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * s390-nat.c: Include asm/types.h for addr_t.
8642
8643 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8644
8645 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8646 actually incoming type.
8647
8648 2003-04-13 Andrew Cagney <cagney@redhat.com>
8649
8650 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8651 get_next_frame and get_frame_saved_regs.
8652
8653 2003-04-13 Andrew Cagney <cagney@redhat.com>
8654
8655 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8656 of gdbarch_num_regs.
8657
8658 2003-04-13 Andrew Cagney <cagney@redhat.com>
8659
8660 * frame.h: Mention what replaced what in "struct frame_info".
8661 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8662 deprecated_update_frame_base_hack and
8663 deprecated_update_frame_pc_hack.
8664 * hppa-tdep.c: Ditto.
8665
8666 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8669 to read_reg and update its comment. Remove regnum member.
8670 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8671 Don't call read_reg when setting in_reg. Call read_reg to get
8672 the frame base if it's in a register. Return the register number
8673 on the stack instead of in the context. Remove extra arguments
8674 to read_reg.
8675 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8676 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8677 the register number on the expression stack.
8678 (needs_frame_read_reg): Remove extra arguments.
8679
8680 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8681
8682 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8683 made non-static.
8684 (execute_stack_op): All callers updated.
8685 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8686 * dwarf2loc.c (find_location_expression): New function.
8687 (dwarf_expr_frame_base): Call it.
8688 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8689 (dwarf2_tracepoint_var_ref): New function, broken out from
8690 locexpr_tracepoint_var_ref.
8691 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8692 Make static.
8693 (loclist_read_variable, loclist_read_needs_frame): New functions.
8694 (loclist_describe_location, loclist_tracepoint_var_ref): New
8695 functions.
8696 (dwarf2_loclist_funcs): New struct location_funcs.
8697 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8698 (struct dwarf2_locexpr_baton): Add comments.
8699 (dwarf2_loclist_funcs): New extern.
8700 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8701 base_address and base_known.
8702 (dwarf_loc_buffer): New variable.
8703 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8704 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8705 (dwarf2_has_info): Initialize dwarf_loc_offset.
8706 (dwarf2_build_psymtabs): Read in .debug_loc.
8707 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8708 DWARF_LOC_SIZE.
8709 (psymtab_to_symtab_1): Likewise. Move base address calculation
8710 here, from...
8711 (dwarf2_get_pc_bounds): ... here. Use the base address from
8712 cu_header.
8713 (dwarf2_symbol_mark_computed): Handle location lists.
8714
8715 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8716
8717 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8718 if the linkage name demangled successfully.
8719
8720 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8721
8722 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8723 disassmbly_flavour): Removed.
8724
8725 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8726
8727 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8728
8729 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8730
8731 2003-04-12 Andrew Cagney <cagney@redhat.com>
8732
8733 * frame.h (struct frame_info): Move definition from here ...
8734 * frame.c (struct frame_info): ... to here.
8735
8736 2003-04-12 Andrew Cagney <cagney@redhat.com>
8737
8738 * gdbthread.h (save_infrun_state): Delete parameter
8739 "prev_func_start".
8740 (struct thread_info): Delete field "prev_func_start".
8741 (load_infrun_state): Ditto.
8742 * thread.c (load_infrun_state, save_infrun_state): Update.
8743 * infrun.c (prev_func_start): Delete variable.
8744 (context_switch, init_wait_for_inferior): Update.
8745 (stop_stepping, keep_going): Update.
8746
8747 2003-04-12 Andrew Cagney <cagney@redhat.com>
8748
8749 * gdbarch.sh: Add missing opaque declarations.
8750 * gdbarch.h: Regnerate.
8751 * symtab.h: Add missing opaque declarations.
8752 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8753 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8754 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8755 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8756 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8757 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8758 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8759 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8760 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8761 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8762 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8763 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8764 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8765
8766 2003-04-11 Andrew Cagney <cagney@redhat.com>
8767
8768 * frame.c (get_frame_id): Return this frame's "id".
8769 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8770 function start.
8771 (legacy_saved_regs_this_id): Replace function body with
8772 internal-error.
8773 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8774 FRAME_OBSTACK_ZALLOC.
8775 (create_new_frame): Mark the frame ID as valid.
8776
8777 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8778
8779 * Makefile.in (libbfd_h): Added missing setting.
8780 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8781 according to the selected ABI.
8782
8783 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8784
8785 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8786
8787 2003-04-11 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8790 SAVED_PC_AFTER_CALL.
8791 * gdbarch.h, gdbarch.c: Regenerate.
8792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8793 * x86-64-tdep.c (x86_64_init_abi): Update.
8794 * vax-tdep.c (vax_gdbarch_init): Update.
8795 * v850-tdep.c (v850_gdbarch_init): Update.
8796 * sparc-tdep.c (sparc_gdbarch_init): Update.
8797 * sh-tdep.c (sh_gdbarch_init): Update.
8798 * s390-tdep.c (s390_gdbarch_init): Update.
8799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8800 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8801 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8802 * mips-tdep.c (mips_gdbarch_init): Update.
8803 * mcore-tdep.c (mcore_gdbarch_init): Update.
8804 * m68k-tdep.c (m68k_gdbarch_init): Update.
8805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8806 * ia64-tdep.c (ia64_gdbarch_init): Update.
8807 (ia64_saved_pc_after_call): Update declaration.
8808 * i386ly-tdep.c (i386lynx_init_abi): Update.
8809 * i386-tdep.c (i386_gdbarch_init): Update.
8810 * hppa-tdep.c (hppa_gdbarch_init): Update.
8811 * h8300-tdep.c (h8300_gdbarch_init): Update.
8812 * frv-tdep.c (frv_gdbarch_init): Update.
8813 * cris-tdep.c (cris_gdbarch_init): Update.
8814 * avr-tdep.c (avr_gdbarch_init): Update.
8815 * arm-tdep.c (arm_gdbarch_init): Update.
8816 * alpha-tdep.c (alpha_gdbarch_init): Update.
8817 * ns32knbsd-nat.c (frame_num_args): Update.
8818 * ns32k-tdep.c (umax_frame_num_args): Update.
8819 * mips-tdep.c (mips_init_frame_pc_first): Update.
8820 * infrun.c (step_over_function): Update.
8821 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8822 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8823 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8824 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8825 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8826 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8827 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8828 * arch-utils.c (init_frame_pc_default): Update.
8829 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8830 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8831 declaration.
8832
8833 2003-04-11 Andrew Cagney <cagney@redhat.com>
8834
8835 * i387-tdep.c: Update copyright.
8836 (i387_to_double): Delete function.
8837 (double_to_i387): Delete function.
8838
8839 2003-04-10 Andrew Cagney <cagney@redhat.com>
8840
8841 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8842 frame's function's address. Simplify.
8843 (d10v_frame_unwind_cache): Check that the frame's function is
8844 non-zero.
8845
8846 2003-04-10 Jim Blandy <jimb@redhat.com>
8847
8848 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8849 call to set_gdbarch_deprecated_push_arguments.
8850
8851 2003-04-10 Andrew Cagney <cagney@redhat.com>
8852
8853 * frame.c (fprint_frame_id): New function.
8854 (fprint_frame_type, fprint_frame): New function.
8855 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8856 (create_sentinel_frame, get_frame_id): Ditto.
8857 (frame_id_p, frame_id_eq): Ditto.
8858 (frame_id_inner, create_new_frame): Ditto.
8859 (legacy_get_prev_frame, get_prev_frame): Ditto.
8860 (deprecated_update_frame_pc_hack): Ditto.
8861 (frame_register_unwind): Ditto.
8862 (deprecated_update_frame_base_hack): Ditto.
8863
8864 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8865
8866 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8867 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8868 frame_chain function.
8869 * Makefile.in: Add dependencies due to above change.
8870
8871 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8872
8873 * blockframe.c (legacy_frame_chain_valid): Move call to
8874 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8875 inside_entry_file.
8876
8877 2003-04-09 Andrew Cagney <cagney@redhat.com>
8878
8879 * frame.h (struct frame_id): Replace "pc" and "base" with
8880 "stack_addr" and "code_addr". Update comments.
8881 (frame_id_build): Update parameter names and comment.
8882 (struct frame_info): Replace "id_p" and "id" with "this_id".
8883 * dummy-frame.c (dummy_frame_this_id): Update.
8884 * breakpoint.c (print_one_breakpoint): Update.
8885 * frame.c (get_frame_id): Update.
8886 (get_frame_base, frame_id_build): Update.
8887 (create_sentinel_frame, legacy_get_prev_frame): Update.
8888 (deprecated_update_frame_base_hack): Update.
8889 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8890 (frame_id_inner): Ditto.
8891
8892 2003-04-09 Andrew Cagney <cagney@redhat.com>
8893
8894 * defs.h (gdb_print_host_address): Make "addr" parameter a
8895 pointer constant.
8896 * utils.c (gdb_print_host_address): Update.
8897
8898 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8899
8900 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8901 register number for R0 is 0.
8902
8903 2003-04-09 J. Brobecker <brobecker@gnat.com>
8904
8905 * frame.h (struct gdbarch): Add opaque structure definition
8906 to avoid a compilation warning on LynxOS 4.0.
8907
8908 2003-04-09 Andrew Cagney <cagney@redhat.com>
8909
8910 * frame.h (struct frame_info): Delete field "pc". Replace
8911 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8912 structure.
8913 * frame.c (frame_pc_unwind): Update.
8914 (create_sentinel_frame): Do not set "pc".
8915 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8916 (get_frame_pc): Call frame_pc_unwind.
8917 (deprecated_update_frame_pc_hack): Update.
8918 (create_new_frame): Use "pc" not "->pc".
8919
8920 2003-04-09 Andrew Cagney <cagney@redhat.com>
8921
8922 * frame.c (get_frame_id): Eliminate code updating "frame".
8923 (legacy_get_prev_frame): Ditto.
8924 (get_frame_base): Return id.base directly.
8925 (deprecated_update_frame_base_hack): Update "id.base".
8926 * frame.h (struct frame_info): Delete field "frame".
8927
8928 2003-04-09 Andrew Cagney <cagney@redhat.com>
8929
8930 * NEWS: Mention that the "Sequent family" is obsolete.
8931 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8932 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8933 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8934 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8935 * config/i386/tm-ptx4.h: Obsolete file.
8936 * config/i386/tm-ptx.h: Obsolete file.
8937 * symm-tdep.c: Obsolete file.
8938 * config/i386/symmetry.mt: Obsolete file.
8939 * config/i386/tm-symmetry.h: Obsolete file.
8940 * symm-nat.c: Obsolete file.
8941 * config/i386/nm-symmetry.h: Obsolete file.
8942 * config/i386/xm-symmetry.h: Obsolete file.
8943 * config/i386/symmetry.mh: Obsolete file.
8944 * config/i386/nm-ptx4.h: Obsolete file.
8945 * config/i386/ptx4.mh: Obsolete file.
8946 * config/i386/ptx.mt: Obsolete file.
8947 * config/i386/ptx.mh: Obsolete file.
8948 * config/i386/xm-ptx4.h: Obsolete file.
8949 * config/i386/xm-ptx.h: Obsolete file.
8950
8951 2003-04-09 Andrew Cagney <cagney@redhat.com>
8952
8953 Obsolete mips*-*-mach3*.
8954 * NEWS: Mention that mips*-*-mach3* is obsolete.
8955 * m3-nat.c: Obsolete file.
8956 * config/nm-m3.h: Obsolete file.
8957 * config/mips/tm-mipsm3.h: Obsolete file.
8958 * config/mips/mipsm3.mt: Obsolete file.
8959 * config/mips/mipsm3.mh: Obsolete file.
8960 * config/mips/xm-mipsm3.h: Obsolete file.
8961 * mipsm3-nat.c: Obsolete file.
8962 * configure.host: Obsolete mips-dec-mach3*.
8963 * configure.tgt: Obsolete mips*-*-mach3*.
8964
8965 2003-04-09 Andrew Cagney <cagney@redhat.com>
8966
8967 * doublest.h: Update copyright.
8968 (deprecated_store_floating, deprecated_extract_floating): Rename
8969 store_floating and extract_floating. Update comments.
8970 * doublest.c: Update copyright.
8971 (extract_floating_by_length): Replace extract_floating.
8972 (store_floating_by_length): Replace store_floating.
8973 (deprecated_extract_floating): New function.
8974 (deprecated_store_floating): New function.
8975 (extract_typed_floating): Call extract_floating_by_length.
8976 (store_typed_floating): Call store_floating_by_length.
8977 * x86-64-tdep.c (x86_64_store_return_value): Update.
8978 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8979 (sh64_extract_return_value): Update.
8980 (sh_sh4_register_convert_to_virtual): Update.
8981 (sh_sh64_register_convert_to_virtual): Update.
8982 (sh_sh4_register_convert_to_raw): Update.
8983 (sh_sh64_register_convert_to_raw): Update.
8984 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8985 (rs6000_register_convert_to_raw): Update.
8986 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8987 (ia64_register_convert_to_raw): Update.
8988 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8989 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8990 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8991 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8992 (alpha_register_convert_to_raw): Update.
8993
8994 2003-04-08 Andrew Cagney <cagney@redhat.com>
8995
8996 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8997 * gdbarch.h, gdbarch.c: Re-generate.
8998 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8999 (d10v_gdbarch_init): Do not set saved_pc_after_call.
9000 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
9001 conditionally, use frame_pc_unwind as an alternative. Add
9002 comments.
9003 * arch-utils.c (init_frame_pc_default): Only call
9004 SAVED_PC_AFTER_CALL when available.
9005
9006 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9007
9008 * infrun.c (stop_soon): Rename from stop_soon_quietly.
9009 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
9010 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
9011 (start_remote): Ditto.
9012 (handle_inferior_event): Ditto.
9013 (save_inferior_status): Ditto.
9014 (restore_inferior_status): Ditto.
9015 * infcmd.c (attach_command): Ditto.
9016 * fork-child.c (startup_inferior): Ditto.
9017 * inferior.h (stop_soon): Rename from stop_soon_quietly.
9018 * alpha-tdep.c (heuristic_proc_start): Ditto.
9019 * mips-tdep.c (heuristic_proc_start): Ditto.
9020 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
9021 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
9022 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
9023 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
9024 * remote-vx.c (vx_create_inferior): Ditto.
9025
9026 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
9027
9028 * infrun.c (stop_soon_quietly): Make it an enum, to better
9029 override the default behavior of handle_inferior_event.
9030 (clear_proceed_status): Update uses of stop_soon_quietly to
9031 reflect that it is now an enum.
9032 (start_remote): Ditto.
9033 (handle_inferior_event): Change logic a bit if stop_soon_quietly
9034 is set to handle the new GNU/Linux kernel behavior for
9035 attach/sigstop. Update uses of stop_soon_quietly.
9036 * inferior.h (enum stop_kind): New enum.
9037 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
9038 Reset normal handle_inferior_event behavior, afterwards.
9039 * fork-child.c (startup_inferior): Update.
9040 * alpha-tdep.c (heuristic_proc_start): Update.
9041 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
9042 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
9043 * solib-osf.c (osf_solib_create_inferior_hook): Update.
9044 * solib-irix.c (irix_solib_create_inferior_hook): Update.
9045 * remote-vx.c (vx_create_inferior): Update.
9046 * mips-tdep.c (heuristic_proc_start): Update.
9047
9048 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
9049
9050 * disasm.c (dump_insns): Move variables inside loop, or they will
9051 be freed more than once, causing wild memory corruptions.
9052 (gdb_disassembly): Look for the substring "-thread",
9053 instead of "-threads" in the target name, to make sure to find
9054 the 'multi-thread' target. Also, make sure we do the right thing
9055 with the "core" target.
9056
9057 2003-04-07 Kevin Buettner <kevinb@redhat.com>
9058
9059 * mips-tdep.c (mips_print_fp_register): New function, created from
9060 do_fp_register_row(). Registers are now (also) printed as hex.
9061 Only one register is printed per row.
9062 (mips_print_register, do_fp_register_row): Print floating point
9063 registers with mips_print_fp_register().
9064
9065 2003-04-06 Andrew Cagney <cagney@redhat.com>
9066
9067 * valprint.h (inspect_it): Add extern declaration.
9068 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
9069 (selectors_info, classes_info): Ditto.
9070 (find_objc_msgcall): Fix indentation.
9071 (objc_printstr): Delete extern declarations.
9072
9073 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
9074
9075 2003-04-06 Andrew Cagney <cagney@redhat.com>
9076
9077 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
9078 Update comment.
9079 * frame.c (legacy_saved_regs_this_id): Update.
9080 (legacy_get_prev_frame): Update.
9081 * xstormy16-tdep.c: Update comment.
9082 * sparc-tdep.c (sparc_frame_chain): Update comment.
9083 * blockframe.c (legacy_frame_chain_valid): Update.
9084
9085 2003-04-06 Andrew Cagney <cagney@redhat.com>
9086
9087 * valprint.c (val_print_type_code_int): Delete #ifdef
9088 PRINT_TYPELESS_INTEGER code.
9089
9090 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
9091 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
9092 multi-arch definition.
9093 * gdbarch.h: Re-generate.
9094
9095 2003-04-05 Andrew Cagney <cagney@redhat.com>
9096
9097 Eliminate FRAME_FIND_SAVED_REGS.
9098 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9099 Change FSR parameter to a pointer.
9100 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
9101 Assume FSR parameter is a pointer.
9102 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
9103 Make fsr a pointer.
9104 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
9105 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
9106 saved_regs a pointer.
9107 (hppa_frame_saved_pc): Ditto.
9108 (find_dummy_frame_regs): Make frame_saved_regs a pointer
9109 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
9110 pointer.
9111 (restore_pc_queue): Make fsr a pointer.
9112 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
9113 (hppa_frame_chain): Make saved_regs a pointer, call
9114 hppa_frame_init_saved_regs.
9115 * sparc-tdep.c: Include "gdb_assert.h".
9116 (sparc_frame_find_saved_regs): Replace internal_error with
9117 gdb_assert.
9118 * remote-vxsparc.c (vx_read_register): Delete reference to
9119 FRAME_FIND_SAVED_REGS.
9120 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
9121 * gdbarch.h: Regenerate.
9122 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
9123 (deprecated_get_frame_saved_regs): Delete declaration.
9124 (struct frame_saved_regs): Delete definition.
9125 * frame.c (deprecated_get_frame_saved_regs): Delete function.
9126 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
9127 (hppa_frame_find_saved_regs): Delete declaration.
9128 (FRAME_FIND_SAVED_REGS): Delete macro.
9129 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
9130 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
9131 FRAME_FIND_SAVED_REGS in comment.
9132
9133 2003-04-05 Andrew Cagney <cagney@redhat.com>
9134
9135 * frame.c (frame_func_unwind, get_frame_func): New functions.
9136 * frame.h (get_frame_func, frame_func_unwind): Declare.
9137 (struct frame_info): Add field "prev_func" for caching the
9138 previous frame's function address.
9139 * arm-tdep.c (arm_frameless_function_invocation): Combine
9140 get_pc_function_start and get_frame_pc into get_frame_func.
9141 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9142 (sh64_nofp_frame_init_saved_regs): Ditto.
9143 * s390-tdep.c (s390_function_start): Ditto.
9144 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
9145 (rs6000_frameless_function_invocation): Ditto.
9146 (rs6000_frame_saved_pc): Ditto.
9147 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
9148 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
9149 * i386-tdep.c (i386_frameless_signal_p): Ditto.
9150 (i386_frame_init_saved_regs): Ditto.
9151 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
9152 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
9153 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
9154 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
9155 * blockframe.c (frameless_look_for_prologue): Ditto.
9156
9157 2003-04-05 Andrew Cagney <cagney@redhat.com>
9158
9159 * frame.c (legacy_get_prev_frame): Link prev to next at the
9160 function start. Update comments.
9161
9162 2003-04-05 Andrew Cagney <cagney@redhat.com>
9163
9164 * frame.c (get_frame_id): Update comment.
9165 (legacy_get_prev_frame): Update comment.
9166 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
9167 * gdbarch.h: Regenerate.
9168 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
9169 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
9170
9171 2003-04-05 Andrew Cagney <cagney@redhat.com>
9172
9173 * stack.c (print_frame_info): Use get_frame_pc.
9174
9175 2003-04-04 Andrew Cagney <cagney@redhat.com>
9176
9177 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
9178 the frame's type from the unwinder.
9179 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
9180 (create_new_frame, legacy_get_prev_frame): When the unwinder's
9181 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
9182 (get_frame_base_address): Use get_frame_type.
9183 (get_frame_locals_address, get_frame_args_address): Ditto.
9184 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
9185 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
9186 (struct frame_info): Add comment explaining why the frame contains
9187 a "type" field.
9188 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
9189 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
9190 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
9191 NORMAL_FRAME.
9192 * frame-unwind.h: Include "frame.h".
9193 (struct frame_unwind): Add "type" field.
9194 * Makefile.in (frame_unwind_h): Add $(frame_h).
9195
9196 2003-04-04 Andrew Cagney <cagney@redhat.com>
9197
9198 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
9199 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
9200 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
9201 get_frame_base.
9202 (d10v_unwind_dummy_id): Use frame_id_build.
9203 * frame.c (find_frame_sal): Use get_frame_pc.
9204 (create_new_frame): Use deprecated_update_frame_pc_hack and
9205 deprecated_update_frame_base_hack.
9206 (create_sentinel_frame): Add comment about ->pc going away.
9207 (get_prev_frame): Add comment about ->pc going away.
9208 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9209 frame_id_build, deprecated_update_frame_pc_hack and
9210 deprecated_update_frame_base_hack.
9211 (select_frame): Use get_frame_pc.
9212 (legacy_saved_regs_this_id): Use frame_id_build.
9213
9214 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9215
9216 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9217 signed integer case.
9218 (classify_argument): Handle enumerations and references.
9219
9220 2003-04-04 Andrew Cagney <cagney@redhat.com>
9221
9222 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9223 ID to NULL.
9224
9225 2003-04-01 Adam Fedor <fedor@gnu.org>
9226
9227 * gdb/objc-lang.c (selectors_info): Replace calls to
9228 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9229 SYMBOL_NATURAL_NAME.
9230 (classes_info, find_methods): Likewise.
9231
9232 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9233
9234 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9235 ``mach'' to the value determined by bfd_default_set_arch_mach().
9236
9237 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9238
9239 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9240 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9241 (mi-cmd-file.o): Update dependencies.
9242
9243 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9244
9245 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9246 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9247
9248 2003-04-01 Adam Fedor <fedor@gnu.org>
9249
9250 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9251 * language.h (struct language_defn): Add la_demangle.
9252 (language_demangle): Declare.
9253 * language.c (language_demangle): New function.
9254 (unk_lang_demangle): Likewise.
9255 (unknown_language_defn, auto_language_defn, local_language_defn):
9256 Add ukn_lang_demangle.
9257 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9258 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9259 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9260 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9261 * jv-lang.c (java_demangle): New function
9262 (java_language_defn): Use it for la_demangle element.
9263 * objc-lang.c (objc_demangle): Add options argument
9264 (objc_language_defn): Use objc_demangle for la_demangle element.
9265 * maint.c (maintenance_demangle): Replace switch with
9266 call to language_demangle.
9267 * utils.c (fprintf_symbol_filtered): Likewise.
9268
9269 2003-04-01 Andrew Cagney <cagney@redhat.com>
9270
9271 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9272 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9273 PRINT_TYPELESS_INTEGER.
9274 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9275 PUSH_RETURN_ADDRESS.
9276
9277 2003-04-01 Andrew Cagney <cagney@redhat.com>
9278
9279 * Makefile.in (d10v-tdep.o): Update dependencies.
9280 * d10v-tdep.c: Include "frame-base.h".
9281 (d10v_frame_unwind): Make constant.
9282 (d10v_frame_base_address): New function.
9283 (d10v_frame_base): New variable.
9284 (d10v_gdbarch_init): Set frame_base default.
9285 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9286 comment for base.
9287 (d10v_frame_unwind_cache): Set and use "prev_sp".
9288 (d10v_frame_this_id): Use the previous frame's inner most stack
9289 address and this frame's func address for the frame ID. Use
9290 frame_id_build. Don't analyze beyond the current instruction.
9291
9292 2003-04-01 Andrew Cagney <cagney@redhat.com>
9293
9294 * frame.h (get_frame_locals_address, get_frame_args_address):
9295 Refer to the base address, instead of the address of the first
9296 local or parameter.
9297
9298 2003-04-01 Andrew Cagney <cagney@redhat.com>
9299
9300 Add frame debug info addresses:
9301 * frame-base.c: New file.
9302 * frame-base.h: New file.
9303 * frame.h (struct frame_base): Add opaque declaration.
9304 (get_frame_base): Update comment.
9305 (get_frame_base_address): Declare.
9306 (get_frame_locals_address): Declare.
9307 (get_frame_args_address): Declare.
9308 (struct frame_info): Add "base" and "base_cache". Update
9309 comments on the unwinder.
9310 * frame.c: Include "frame-base.h".
9311 (get_frame_locals_address): New function.
9312 (get_frame_base_address): New function.
9313 (get_frame_args_address): New function.
9314 * findvar.c (read_var_value): Use get_frame_locals_address and
9315 get_frame_args_address.
9316 * stack.c (frame_info): Use get_frame_locals_address and
9317 get_frame_args_address.
9318 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9319 moved to "frame-base.c".
9320 * printcmd.c (print_frame_nameless_args): Ditto.
9321 * symtab.h (address_class): Update comments.
9322 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9323 get_frame_base_address.
9324 * dwarf2expr.c (execute_stack_op): Ditto.
9325 * Makefile.in (frame_base_h): Define.
9326 (frame.o): Update dependencies.
9327 (frame-base.o): Add dependencies.
9328 (SFILES): Add frame-base.c.
9329 (COMMON_OBS): Add frame-base.o.
9330
9331 2003-04-01 Andrew Cagney <cagney@redhat.com>
9332
9333 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9334 CALL_DUMMY_LENGTH): Ditto.
9335 * gdbarch.c: Re-generate.
9336 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9337 (CALL_DUMMY_LENGTH): Delete macro.
9338 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9339 * arm-tdep.c (arm_gdbarch_init): Ditto.
9340 * avr-tdep.c (avr_gdbarch_init): Ditto.
9341 * cris-tdep.c (cris_gdbarch_init): Ditto.
9342 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9343 * frv-tdep.c (frv_gdbarch_init): Ditto.
9344 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9345 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9346 * i386-tdep.c (i386_gdbarch_init): Ditto.
9347 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9350 * mips-tdep.c (mips_gdbarch_init): Ditto.
9351 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9352 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9353 * s390-tdep.c (s390_gdbarch_init): Ditto.
9354 * sh-tdep.c (sh_gdbarch_init): Ditto.
9355 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9356 * v850-tdep.c (v850_gdbarch_init): Ditto.
9357 * vax-tdep.c (vax_gdbarch_init): Ditto.
9358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9359
9360 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9361
9362 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9363
9364 2003-04-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9367 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9368 * gdbarch.h, gdbarch.c: Re-generate.
9369 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9370 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9371 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9372 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9373 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9374 * infcmd.c (run_stack_dummy): Simplify assuming
9375 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9376 * infrun.c (handle_inferior_event): Ditto.
9377 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9378 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9379 * arm-tdep.c (arm_gdbarch_init): Ditto.
9380 * avr-tdep.c (avr_gdbarch_init): Ditto.
9381 * cris-tdep.c (cris_gdbarch_init): Ditto.
9382 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9383 * frv-tdep.c (frv_gdbarch_init): Ditto.
9384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9385 * i386-tdep.c (i386_gdbarch_init): Ditto.
9386 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9388 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9389 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9390 * mips-tdep.c (mips_gdbarch_init): Ditto.
9391 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9392 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9393 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9394 * s390-tdep.c (s390_gdbarch_init): Ditto.
9395 * sh-tdep.c (sh_gdbarch_init): Ditto.
9396 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9397 * v850-tdep.c (v850_gdbarch_init): Ditto.
9398 * vax-tdep.c (vax_gdbarch_init): Ditto.
9399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9400
9401 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9402
9403 * symfile.c (symfile_relocate_debug_section): Update call to
9404 bfd_simple_get_relocated_section_contents.
9405
9406 2003-03-31 Andrew Cagney <cagney@redhat.com>
9407
9408 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9409 * gdbarch.h, gdbarch.c: Regenerate.
9410 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9411 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9412 available.
9413 * frame.h (generic_fix_call_dummy): Delete declaration.
9414 * dummy-frame.h: Update comment.
9415 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9417 fix_call_dummy.
9418 * sh-tdep.c (sh_gdbarch_init): Ditto.
9419 * s390-tdep.c (s390_gdbarch_init): Ditto.
9420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9421 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9423 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9424 * i386-tdep.c (i386_gdbarch_init): Ditto.
9425 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9426 * frv-tdep.c (frv_gdbarch_init): Ditto.
9427 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9428 * cris-tdep.c (cris_gdbarch_init): Ditto.
9429 * avr-tdep.c (avr_gdbarch_init): Ditto.
9430 * arm-tdep.c (arm_gdbarch_init): Ditto.
9431
9432 2003-03-31 J. Brobecker <brobecker@gnat.com>
9433
9434 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9435 (INIT_FRAME_AP): Likewise.
9436 (EXTRA_FRAME_INFO): Likewise.
9437
9438 2003-03-31 Andrew Cagney <cagney@redhat.com>
9439
9440 * gdbarch.sh: Include "symfile.h".
9441 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9442 * gdbarch.h, gdbarch.c: Re-generate.
9443 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9445 call_dummy_address, the default is at entry_point_address.
9446 * v850-tdep.c (v850_gdbarch_init): Ditto.
9447 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9448 * sh-tdep.c (sh_gdbarch_init): Ditto.
9449 * s390-tdep.c (s390_gdbarch_init): Ditto.
9450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9451 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9452 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9453 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9454 * i386-tdep.c (i386_gdbarch_init): Ditto.
9455 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9456 * frv-tdep.c (frv_gdbarch_init): Ditto.
9457 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9458 * cris-tdep.c (cris_gdbarch_init): Ditto.
9459 * arm-tdep.c (arm_gdbarch_init): Ditto.
9460
9461 2003-03-31 Andrew Cagney <cagney@redhat.com>
9462
9463 * gdbarch.sh (CALL_DUMMY_P): Delete.
9464 * gdbarch.h, gdbarch.c: Re-generate.
9465 * inferior.h (CALL_DUMMY_P): Delete macro.
9466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9467 * vax-tdep.c (vax_gdbarch_init): Update.
9468 * v850-tdep.c (v850_gdbarch_init): Update.
9469 * sparc-tdep.c (sparc_gdbarch_init): Update.
9470 * sh-tdep.c (sh_gdbarch_init): Update.
9471 * s390-tdep.c (s390_gdbarch_init): Update.
9472 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9473 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9475 * mips-tdep.c (mips_gdbarch_init): Update.
9476 * mcore-tdep.c (mcore_gdbarch_init): Update.
9477 * m68k-tdep.c (m68k_gdbarch_init): Update.
9478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9479 * ia64-tdep.c (ia64_gdbarch_init): Update.
9480 * i386-tdep.c (i386_gdbarch_init): Update.
9481 * h8300-tdep.c (h8300_gdbarch_init): Update.
9482 * frv-tdep.c (frv_gdbarch_init): Update.
9483 * d10v-tdep.c (d10v_gdbarch_init): Update.
9484 * cris-tdep.c (cris_gdbarch_init): Update.
9485 * breakpoint.c (deprecated_frame_in_dummy): Update.
9486 * avr-tdep.c (avr_gdbarch_init): Update.
9487 * alpha-tdep.c (alpha_gdbarch_init): Update.
9488 * arm-tdep.c (arm_gdbarch_init): Update.
9489 * dummy-frame.c (dummy_frame_this_id): Update comments.
9490 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9491 * frame.c (legacy_get_prev_frame): Ditto.
9492 * valops.c (call_function_by_hand): Delete function.
9493 (hand_function_call): Rename to call_function_by_hand
9494
9495 2003-03-30 Andrew Cagney <cagney@redhat.com>
9496
9497 2002-11-10 Klee Dienes <kdienes@apple.com>
9498 * value.h (struct value): Update comment.
9499
9500 2003-03-30 Andrew Cagney <cagney@redhat.com>
9501
9502 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9503 D10V_FP_REGNUM.
9504 (d10v_gdbarch_init): Do not set fp_regnum.
9505
9506 * frame.c (get_frame_base): Force ID initialization.
9507 (get_prev_frame): Move computation of the frame ID from here ...
9508 (get_frame_id): ... to here.
9509 (legacy_get_prev_frame): Mark the frame ID as valid.
9510 * frame.h (struct frame_info): Add field "id_p".
9511
9512 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9513
9514 * i386-tdep.c (i386_store_struct_return): Removed.
9515 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9516
9517 2003-03-30 Andrew Cagney <cagney@redhat.com>
9518
9519 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9520 * gdbarch.h, gdbarch.c: Regenerate.
9521 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9523 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9524 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9525 * i386-tdep.c (i386_gdbarch_init): Ditto.
9526 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9527 * cris-tdep.c (cris_gdbarch_init): Ditto.
9528 * vax-tdep.c (vax_gdbarch_init): Ditto.
9529 * s390-tdep.c (s390_gdbarch_init): Ditto.
9530 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9532 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9533 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9534 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9535 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9536 * sparc-tdep.c (sparc_gdbarch_init): Update.
9537 * sh-tdep.c (sh_gdbarch_init): Update.
9538 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9539 * mips-tdep.c (mips_gdbarch_init): Update.
9540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9541 * ia64-tdep.c (ia64_gdbarch_init): Update.
9542 * frv-tdep.c (frv_gdbarch_init): Update.
9543 * avr-tdep.c (avr_gdbarch_init): Update.
9544 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9545 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9546 instead of when push_dummy_call is not available.
9547
9548 2003-03-30 Andrew Cagney <cagney@redhat.com>
9549
9550 * infttrace.c: Include "gdbthread.h".
9551 (parent_attach_all): Fix function signature.
9552 (call_ptrace): Update call.
9553 * Makefile.in (infttrace.o): Update dependencies.
9554
9555 2003-03-30 Andrew Cagney <cagney@redhat.com>
9556
9557 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9558 PUSH_RETURN_ADDRESS.
9559 * gdbarch.h, gdbarch.c: Regenerate.
9560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9561 * x86-64-tdep.c (x86_64_init_abi): Update.
9562 * v850-tdep.c (v850_gdbarch_init): Update.
9563 * sparc-tdep.c (sparc_gdbarch_init): Update.
9564 * sh-tdep.c (sh_gdbarch_init): Update.
9565 * s390-tdep.c (s390_gdbarch_init): Update.
9566 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9567 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9568 * mips-tdep.c (mips_gdbarch_init): Update.
9569 * mcore-tdep.c (mcore_gdbarch_init): Update.
9570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9571 * ia64-tdep.c (ia64_gdbarch_init): Update.
9572 * i386-tdep.c (i386_gdbarch_init): Update.
9573 * h8300-tdep.c (h8300_gdbarch_init): Update.
9574 * frv-tdep.c (frv_gdbarch_init): Update.
9575 * cris-tdep.c (cris_gdbarch_init): Update.
9576 * avr-tdep.c (avr_gdbarch_init): Update.
9577 * arm-tdep.c (arm_gdbarch_init): Update.
9578 * valops.c (hand_function_call): Update.
9579
9580 2003-03-29 Andrew Cagney <cagney@redhat.com>
9581
9582 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9583 sizeof_call_dummy_words.
9584 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9585 define.
9586 * gdbarch.h: Regenerate.
9587
9588 2003-03-29 Andrew Cagney <cagney@redhat.com>
9589
9590 * infttrace.h: New file.
9591 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9592 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9593 (hpread_read_doc_function_type): Detect an initialized type1.
9594 (hpread_quick_traverse): Initialize mod_name_string.
9595 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9596 (som_solib_get_solib_by_pc): Declare.
9597 (so_lib_thread_start_addr): Declare.
9598 (no_shared_libraries): Declare.
9599 * somread.c (init_import_symbols): Make static. Add forward
9600 declaration.
9601 * config/pa/nm-hppah.h: Include "infttrace.h" for
9602 parent_attach_all.
9603 (hppa_insert_hw_watchpoint): Declare.
9604 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9605 * hppah-nat.c: Include "gdb_string.h".
9606 (parent_attach_all): Delete extern declaration, moved to
9607 "infttrace.h".
9608 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9609 int.
9610 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9611 * Makefile.in (infttrace_h): Define.
9612 (hpread.o): Update dependencies.
9613 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9614 * hppa-hpux-tdep.c: Include "gdb_string.h".
9615 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9616 * infrun.c (handle_inferior_event): Always initialize
9617 stepped_after_stopped_by_watchpoint. Add default and remove
9618 fallthrough in switch statement.
9619 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9620 parameter to int.
9621 (hppa_remove_hw_watchpoint): Ditto.
9622
9623 2003-03-29 Andrew Cagney <cagney@redhat.com>
9624
9625 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9626 offset.
9627
9628 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9629
9630 * arm-tdep.c (arm_push_arguments): Delete.
9631 (struct stack_item): New type.
9632 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9633 (arm_store_struct_return): Delte.
9634 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9635 arm_push_arguments or arm_store_struct_return.
9636
9637 2003-03-28 Andrew Cagney <cagney@redhat.com>
9638
9639 * Makefile.in (d10v-tdep.o): Update dependencies.
9640 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9641 * d10v-tdep.c: Include "remote.h".
9642 (target_resume_hook): Delete extern declaration.
9643 (target_wait_loop_hook): Ditto.
9644 (tdisassemble_command): Eliminate assignment in "if" conditional.
9645 (d10v_ts2_register_sim_regno): Eliminate call to
9646 legacy_register_sim_regno.
9647 (d10v_ts3_register_sim_regno): Ditto.
9648
9649 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9650
9651 * thread.c: Reindented.
9652 * lin-lwp.c: Ditto.
9653 * linux-proc.c: Ditto.
9654
9655 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9656
9657 * MAINTAINERS (write after approval): Add myself.
9658
9659 2003-03-27 Theodore A. Roth <troth@openavr.org>
9660
9661 * objc-exp.y: Add missing semi-colons.
9662
9663 2003-03-27 Andrew Cagney <cagney@redhat.com>
9664
9665 * regcache.c (write_sp): Delete function and references.
9666 * inferior.h (write_sp): Delete declaration.
9667 * valops.c (hand_function_call): Replace write_sp with
9668 TARGET_WRITE_SP.
9669 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9670 (sparc_pop_frame): Ditto.
9671
9672 2003-03-27 Andrew Cagney <cagney@redhat.com>
9673
9674 * NEWS: Mention removal of support for hppa*-*-bsd* and
9675 hppa*-*-osf* natives, and hppa*-*-pro* target.
9676 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9677 * config/pa/xm-pa.h: Obsolete file.
9678 * config/pa/xm-hppab.h: Obsolete file.
9679 * config/pa/nm-hppab.h: Obsolete file.
9680 * config/pa/tm-hppab.h: Obsolete file.
9681 * config/pa/tm-hppao.h: Obsolete file.
9682 * config/pa/nm-hppao.h: Obsolete file.
9683 * config/pa/tm-pro.h: Obsolete file.
9684 * config/pa/hppaosf.mt: Obsolete file.
9685 * config/pa/hppaosf.mh: Obsolete file.
9686 * config/pa/hppapro.mt: Obsolete file.
9687 * config/pa/hppabsd.mt: Obsolete file.
9688 * config/pa/hppabsd.mh: Obsolete file.
9689 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9690 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9691 hppa*-*-osf*.
9692
9693 2003-03-27 Andrew Cagney <cagney@redhat.com>
9694
9695 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9696 push_arguments. Don't set push_return_address or write_sp.
9697 (d10v_push_dummy_call): Replace d10v_push_arguments.
9698 (d10v_push_return_address, d10v_write_sp): Delete function,
9699 handled by push_dummy_call.
9700
9701 2003-03-26 Andrew Cagney <cagney@redhat.com>
9702
9703 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9704 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9705 regcache and dummy_addr parameters.
9706 * gdbarch.h, gdbarch.c: Re-generate.
9707 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9708 available; assume it will handle stack alignment and return
9709 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9710 legacy_push_arguments.
9711 (legacy_push_arguments): Rename default_push_arguments.
9712 * value.h (legacy_push_arguments): Rename default_push_arguments.
9713 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9714 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9715 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9716 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9717 * config/i386/tm-symmetry.h: Update.
9718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9719 * x86-64-tdep.c (x86_64_init_abi): Update.
9720 * v850-tdep.c (v850_gdbarch_init): Update.
9721 * sparc-tdep.c (sparc_gdbarch_init): Update.
9722 * sh-tdep.c (sh_gdbarch_init): Update.
9723 * s390-tdep.c (s390_gdbarch_init): Update.
9724 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9726 * mips-tdep.c (mips_gdbarch_init): Update.
9727 * mcore-tdep.c (mcore_gdbarch_init): Update.
9728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9729 * ia64-tdep.c (ia64_gdbarch_init): Update.
9730 * i386-tdep.c (i386_gdbarch_init): Update.
9731 * hppa-tdep.c (hppa_gdbarch_init): Update.
9732 * h8300-tdep.c (h8300_gdbarch_init): Update.
9733 * frv-tdep.c (frv_gdbarch_init): Update.
9734 * d10v-tdep.c (d10v_gdbarch_init): Update.
9735 * cris-tdep.c (cris_gdbarch_init): Update.
9736 * avr-tdep.c (avr_gdbarch_init): Update.
9737 * arm-tdep.c (arm_gdbarch_init): Update.
9738 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9739 * alpha-tdep.c (alpha_gdbarch_init): Update.
9740
9741 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9742
9743 * signals/signals.c (do_target_signal_to_host): Correct realtime
9744 signal range test.
9745
9746 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9747
9748 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9749 (struct sal_chain, map_catch_names): Remove.
9750 (catch_exception_command_1): Don't call
9751 handle_gnu_4_16_catch_command.
9752
9753 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9754
9755 From Mark Dettinger <dettinge@de.ibm.com>:
9756 * dwarf2cfi.c (read_2u): Increment pointer by two.
9757
9758 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9759
9760 * signals/signals.c: Fix typos in last change.
9761
9762 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9763
9764 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9765 not already defined. Use __SIGRTMIN if available.
9766 (target_signal_from_host): Remove SIGRTMIN block.
9767 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9768 the signal is within the realtime range.
9769
9770 2003-03-25 Adam Fedor <fedor@gnu.org>
9771
9772 * Makefile.in (infrun.o): Add $(language_h)
9773 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9774 for language specific trampolines.
9775 * language.h (struct language_defn): Add skip_trampoline.
9776 (skip_language_trampoline): Declare.
9777 * language.c (unk_lang_trampoline, skip_language_trampoline):
9778 New functions.
9779 (unknown_language_defn, auto_language_defn, local_language_defn):
9780 Add ukn_lang_trampoline.
9781 * ada-lang.c (ada_language_defn): Add NULL for language
9782 specific skip_trampoline.
9783 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9784 scm-lang.c: Likewise.
9785 * objc-lang.c (objc_skip_trampoline): New function.
9786 (objc_language_defn): Add objc_skip_trampoline.
9787
9788 2003-03-25 Andrew Cagney <cagney@redhat.com>
9789
9790 * frame.c (get_prev_frame): Delay validating a frame's ID -
9791 non-NULL, didn't go backwards - until an attempt to unwind it to
9792 the previous frame.
9793
9794 2003-03-25 Andrew Cagney <cagney@redhat.com>
9795
9796 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9797 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9798 * gdbarch.h, gdbarch.c: Re-generate.
9799 * config/sparc/tm-sparc.h
9800 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9801 * sparc-tdep.c (sparc_gdbarch_init): Set
9802 deprecated_extra_stack_alignment_needed.
9803 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9805 extra_stack_alignment_needed.
9806 * v850-tdep.c (v850_gdbarch_init): Ditto.
9807 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9808 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9810 * cris-tdep.c (cris_gdbarch_init): Ditto.
9811 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9813
9814 2003-03-25 Andrew Cagney <cagney@redhat.com>
9815
9816 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9817 STORE_STRUCT_RETURN.
9818 * gdbarch.h, gdbarch.c: Regenerate.
9819 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9820 (d10v_push_arguments): Set the struct return register.
9821 (d10v_gdbarch_init): Update.
9822 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9823 * x86-64-tdep.c (x86_64_init_abi): Update.
9824 * vax-tdep.c (vax_gdbarch_init): Update.
9825 * v850-tdep.c (v850_gdbarch_init): Update.
9826 * sparc-tdep.c (sparc_gdbarch_init): Update.
9827 * sh-tdep.c (sh_gdbarch_init): Update.
9828 * s390-tdep.c (s390_gdbarch_init): Update.
9829 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9830 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9831 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9832 * mips-tdep.c (mips_gdbarch_init): Update.
9833 * mcore-tdep.c (mcore_gdbarch_init): Update.
9834 * m68k-tdep.c (m68k_gdbarch_init): Update.
9835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9836 * ia64-tdep.c (ia64_gdbarch_init): Update.
9837 * i386-tdep.c (i386_gdbarch_init): Update.
9838 * hppa-tdep.c (hppa_gdbarch_init): Update.
9839 * h8300-tdep.c (h8300_gdbarch_init): Update.
9840 * frv-tdep.c (frv_gdbarch_init): Update.
9841 * cris-tdep.c (cris_gdbarch_init): Update.
9842 * avr-tdep.c (avr_gdbarch_init): Update.
9843 * arm-tdep.c (arm_gdbarch_init): Update.
9844 * alpha-tdep.c (alpha_gdbarch_init): Update.
9845
9846 2003-03-25 Andrew Cagney <cagney@redhat.com>
9847
9848 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9849 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9850 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9851 * gdbarch.h, gdbarch.c: Regenerate.
9852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9853 call_dummy_stack_adjust_p.
9854 * vax-tdep.c (vax_gdbarch_init): Ditto.
9855 * v850-tdep.c (v850_gdbarch_init): Ditto.
9856 * sh-tdep.c (sh_gdbarch_init): Ditto.
9857 * s390-tdep.c (s390_gdbarch_init): Ditto.
9858 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9859 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9860 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9861 * mips-tdep.c (mips_gdbarch_init): Ditto.
9862 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9863 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9865 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9866 * i386-tdep.c (i386_gdbarch_init): Ditto.
9867 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9868 * frv-tdep.c (frv_gdbarch_init): Ditto.
9869 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9870 * cris-tdep.c (cris_gdbarch_init): Ditto.
9871 * avr-tdep.c (avr_gdbarch_init): Ditto.
9872 * arm-tdep.c (arm_gdbarch_init): Ditto.
9873 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9874 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9875 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9876 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9877 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9878 call_dummy_stack_adjust_p.
9879 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9880 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9881 * sparc-tdep.c (sparc32_push_arguments): Update.
9882 * valops.c (hand_function_call): Update.
9883
9884 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9885
9886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9887 set_gdbarch_char_signed.
9888
9889 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9890
9891 PR cli/548
9892 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9893
9894 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9895
9896 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9897 (_initialize_arm_tdep): Don't set tm_print_insn.
9898
9899 2003-03-24 Adam Fedor <fedor@gnu.org>
9900
9901 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9902 * objc-lang.h: Add multiple inclusion protection.
9903 (start_msglist, add_msglist, end_msglist): Additional declarations.
9904
9905 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9906
9907 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9908 value was renamed to ARM_FLOAT_SOFT_FPA.
9909
9910 2003-03-23 Andrew Cagney <cagney@redhat.com>
9911
9912 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9913 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9914 * gdbarch.h, gdbarch.c: Regenerate.
9915 * valops.c (hand_function_call): Update.
9916 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9917 * frame.c (legacy_saved_regs_this_id): Update.
9918 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9919 * dummy-frame.h: Update.
9920 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9921 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9922 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9923 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9924 * config/m68k/tm-sun3.h: Update.
9925 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9927 * x86-64-tdep.c (x86_64_init_abi): Update.
9928 * vax-tdep.c (vax_gdbarch_init): Update.
9929 * v850-tdep.c (v850_gdbarch_init): Update.
9930 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9931 * sh-tdep.c (sh_gdbarch_init): Update.
9932 * s390-tdep.c (s390_gdbarch_init): Update.
9933 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9934 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9935 (frame_get_saved_regs): Update.
9936 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9937 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9939 * mips-tdep.c (mips_gdbarch_init): Update.
9940 * mcore-tdep.c (mcore_gdbarch_init): Update.
9941 * m68k-tdep.c (m68k_gdbarch_init): Update.
9942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9943 * ia64-tdep.c (ia64_gdbarch_init): Update.
9944 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9945 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9946 (i386_interix_back_one_frame): Update.
9947 * hppa-tdep.c (hppa_gdbarch_init): Update.
9948 (hppa_init_extra_frame_info): Update.
9949 * h8300-tdep.c (h8300_gdbarch_init): Update.
9950 * frv-tdep.c (frv_gdbarch_init): Update.
9951 * cris-tdep.c (cris_gdbarch_init): Update.
9952 * avr-tdep.c (avr_gdbarch_init): Update.
9953 * arm-tdep.c (arm_gdbarch_init): Update.
9954 * alpha-tdep.c (alpha_gdbarch_init): Update.
9955
9956 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9957
9958 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9959 (arm_get_fp_model): Declare.
9960 * arm-tdep.c (fp_model_strings): New string array.
9961 (arm_fp_model, current_fp_model): New variables.
9962 (arm_get_fp_model): New function.
9963 (arm_set_fp): New function.
9964 (set_fp_model_sfunc): New function.
9965 (show_fp_model): New function.
9966 (_initialize_arm_tdep): Add new command to set/show the FPU.
9967 (arm_extract_return_value): Use arm_get_fp_model.
9968 (arm_store_return_value): Likewise.
9969 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9970 to initialize the floating-point data types.
9971 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9972 model is FPA.
9973
9974 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9975
9976 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9977 the current setting of each value.
9978 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9979 new_set and new_show. Use add_setshow_cmd_full and
9980 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9981 commands and add new version as subcommands of "set/show arm".
9982
9983 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9984
9985 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9986 (set_arm_command, show_arm_command): New functions.
9987 (_initialize_arm_tdep): Add them.
9988 (num_disassembly_options): Renamed from num_flavor_options.
9989 (valid_disassembly_styles): Renamed from valid_flavors.
9990 (disassembly_style): Renamed from disassembly_flavor.
9991 (set_disassembly_style_sfunc): Renamed from
9992 set_disassembly_flavor_sfunc.
9993 (set_disassembly_style): Renamed from set_disassembly_flavor.
9994 (arm_othernames): Updated.
9995 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9996 command. Add "set/show arm disassembly" commands. Deprecate
9997 "othernames" command.
9998
9999 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10000
10001 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
10002 (arm-tdep.o): Depend on elf_arm_h.
10003
10004 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10005
10006 * Makefile.in (coff_internal_h): Define.
10007 (arm-tdep.o): Update dependencies.
10008
10009 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
10010
10011 * arm-tdep.c (prologue_cache): Delete.
10012 (check_prologue_cache, save_prologue_cache): Delete.
10013 (arm_scan_prologue): Don't check or update the prologue_cache.
10014 (arm_gdb_arch_init): Don't initialize it.
10015 (_initialize_arm_tdep): Likewise.
10016
10017 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
10018
10019 * MAINTAINERS (tui): Maintainer of tui code.
10020
10021 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
10022
10023 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
10024 (i386-cygwin-tdep.o): Add dependencies.
10025 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
10026 * i386-cygwin-tdep.c: New file.
10027 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
10028 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
10029
10030 2003-03-20 Andrew Cagney <cagney@redhat.com>
10031
10032 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
10033 (handle_inferior_event): Remove code calling
10034 DYNAMIC_TRAMPOLINE_NEXTPC.
10035
10036 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
10037 already has a full path.
10038
10039 * main.c (gdb_main): Return 1.
10040 (captured_main): Call error to report an invalid interpreter.
10041
10042 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
10043 * alpha-osf1-tdep.c: Include "gdb_string.h".
10044
10045 2003-03-19 J. Brobecker <brobecker@gnat.com>
10046
10047 Continuing work to convert the hppa targets to multiarch partial.
10048
10049 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
10050 method, now that hppa_push_dummy_frame has a conformant prototype.
10051 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
10052 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
10053 for the switch to multiarch partial.
10054
10055 2003-03-19 Kevin Buettner <kevinb@redhat.com>
10056
10057 * mdebugread.c (parse_symbol): For stEnd, we're done counting
10058 when iss is issNull.
10059
10060 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10061
10062 * mips-tdep.c (mips_register_name): Fix fencepost error involving
10063 NUM_REGS bounds check.
10064
10065 2003-03-18 Kevin Buettner <kevinb@redhat.com>
10066
10067 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
10068 * mips-tdep.c (gdb_assert.h): Include.
10069 (mips_generic_reg_names, mips_processor_reg_names): Make static.
10070 (mips_register_name): Handle integer registers explicitly. Add
10071 bounds checking.
10072 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
10073 (mips_lsi33k_reg_names): Don't list integer registers; they're
10074 handled by mips_register_name() now.
10075 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
10076 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
10077 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
10078 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
10079 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
10080
10081 2003-03-18 Andrew Cagney <cagney@redhat.com>
10082
10083 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
10084 a void pointer.
10085 * gdbtypes.h (print_scalar_formatted): Update declaration.
10086 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
10087
10088 2003-03-18 J. Brobecker <brobecker@gnat.com>
10089
10090 * infrun.c (observer.h): Add #include.
10091 (normal_stop): Add call to observer_notify_normal_stop.
10092 * Makefile.in (infrun.o): Add dependency on observer.h.
10093
10094 2003-03-18 J. Brobecker <brobecker@gnat.com>
10095
10096 Continuing work to convert the hppa targets to multiarch partial.
10097 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
10098 parameter. Reformat comment.
10099 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
10100 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
10101 to match new profile.
10102
10103 2003-03-18 J. Brobecker <brobecker@gnat.com>
10104
10105 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
10106 appear to be working in any case.
10107
10108 2003-03-18 J. Brobecker <brobecker@gnat.com>
10109
10110 * observer.c (observer_test_first_observer): New static variable.
10111 (observer_test_second_observer): Likewise.
10112 (observer_test_third_observer): Likewise.
10113 (observer_test_first_notification_function): New static function.
10114 (observer_test_second_notification_function): Likewise.
10115 (observer_test_third_notification_function): Likewise.
10116
10117 2003-03-17 J. Brobecker <brobecker@gnat.com>
10118
10119 * hppa-tdep.c (gdb_assert.h): Add missing #include.
10120 * somsolib.c (gdb_assert.h): Likewise.
10121 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
10122 (somsolib.o): Likewise.
10123
10124 2003-03-17 Andrew Cagney <cagney@redhat.com>
10125
10126 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
10127 BFD. Simplify setting of di.endian.
10128
10129 2003-03-17 Andrew Cagney <cagney@redhat.com>
10130
10131 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
10132 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
10133
10134 From Elena Zannoni <ezannoni@redhat.com>
10135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
10136 vector and floating-point parameters.
10137 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
10138 convention.
10139 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
10140
10141 2003-03-17 Fernando Nasser <fnasser@redhat.com>
10142
10143 * MAINTAINERS: Remove my name from several maintainership roles.
10144
10145 2003-03-17 Andrew Cagney <cagney@redhat.com>
10146
10147 Fix frame off-by-one bug.
10148 * frame-unwind.h (frame_this_id_ftype): Replace
10149 frame_unwind_id_ftype.
10150 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
10151 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
10152 with "prev_register".
10153 * frame-unwind.c (frame_unwind_find_by_pc): Return
10154 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
10155 comment.
10156 * dummy-frame.c (cached_find_dummy_frame): Delete function.
10157 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
10158 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
10159 (dummy_frame_unwind): Update.
10160 * sentinel-frame.c (sentinel_frame_prev_register): Replace
10161 sentinel_frame_register_unwind.
10162 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
10163 (sentinel_frame_unwinder): Update.
10164 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10165 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
10166 * frame.c (create_sentinel_frame): Update. Initialize
10167 "prologue_cache" instead of "unwind_cache".
10168 (frame_register_unwind): Call this frame's prev_register with the
10169 next frame and this frame's prologue cache.
10170 (get_prev_frame): Simplify. Always call prev frame's this_id with
10171 this frame and prev frame's prologue cache. Document that this
10172 call is shifted one to the left when compared to the
10173 frame_register_unwind call.
10174 (legacy_saved_regs_prev_register): Replace
10175 frame_saved_regs_register_unwind.
10176 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
10177 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
10178 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
10179 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
10180 (d10v_frame_unwind): Update.
10181 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
10182 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
10183 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
10184 "saved_regs" with "this_saved_regs".
10185
10186 2003-03-16 Andrew Cagney <cagney@redhat.com>
10187
10188 * frame.c (frame_pop): Don't call target_store_registers. Fix
10189 problem reported by Mark Kettenis.
10190
10191 2003-03-16 Mark Kettenis <kettenis@gnu.org>
10192
10193 * i386-tdep.c (i386_register_type): Renamed from
10194 i386_register_virtual_type. Adjust function signature.
10195 (i386_gdbarch_init): Set register_type instead of
10196 deprecated_max_register_raw_size,
10197 deprecated_max_register_virtual_size and register_virtual_type.
10198
10199 2003-03-14 Andrew Cagney <cagney@redhat.com>
10200
10201 * frame.c (get_prev_frame): When a legacy frame, always call
10202 legacy_get_prev_frame. Simplify unwind code using assumption that
10203 the unwinder is new.
10204 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10205 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10206 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10207
10208 2003-03-14 Andrew Cagney <cagney@redhat.com>
10209
10210 * frame.c (get_saved_register): Delete function.
10211 * frame.h (get_saved_register): Delete declaration.
10212 * xstormy16-tdep.c: Update comment.
10213 * regcache.h: Update comments.
10214 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10215 get_saved_register and extract_address, use
10216 frame_read_unsigned_register.
10217 (sparc_frame_saved_pc): Ditto.
10218 (sparc_get_saved_register): Instead of get_saved_register, use
10219 frame_register.
10220 (sparc_pop_frame): Ditto.
10221 * findvar.c: Update comments.
10222 (value_of_register): Call frame_register instead of
10223 get_saved_register.
10224 (value_from_register): Ditto.
10225 * config/sparc/tm-sparc.h: Update comment.
10226 * breakpoint.c: Update comment.
10227
10228 2003-03-14 Andrew Cagney <cagney@redhat.com>
10229
10230 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10231 GET_SAVED_REGISTER.
10232 * gdbarch.h, gdbarch.c: Re-generate.
10233 * frame.h: Update comments.
10234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10235 * x86-64-tdep.c (x86_64_init_abi): Update.
10236 * sparc-tdep.c (sparc_gdbarch_init): Update.
10237 * sh-tdep.c (sh_gdbarch_init): Update.
10238 * mips-tdep.c (mips_gdbarch_init): Update.
10239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10240 * cris-tdep.c (cris_gdbarch_init): Update.
10241 * ia64-tdep.c (ia64_gdbarch_init): Update.
10242 * frame.c (frame_register): Update.
10243 (get_saved_register): Update.
10244 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10245
10246 2003-03-13 Andrew Cagney <cagney@redhat.com>
10247
10248 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10249 * gdbarch.h, gdbarch.c: Regenerate.
10250 * valops.c (hand_function_call): Update comment.
10251 * stack.c (return_command): Update comment.
10252 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10253 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10255 * x86-64-tdep.c (x86_64_init_abi): Update.
10256 * vax-tdep.c (vax_gdbarch_init): Update.
10257 * v850-tdep.c (v850_gdbarch_init): Update.
10258 * sparc-tdep.c (sparc_gdbarch_init): Update.
10259 * sh-tdep.c (sh_gdbarch_init): Update.
10260 * s390-tdep.c (s390_gdbarch_init): Update.
10261 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10262 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10263 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10264 * mips-tdep.c (mips_gdbarch_init): Update.
10265 * mcore-tdep.c (mcore_gdbarch_init): Update.
10266 * m68k-tdep.c (m68k_gdbarch_init): Update.
10267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10268 * ia64-tdep.c (ia64_gdbarch_init): Update.
10269 * i386-tdep.c (i386_gdbarch_init): Update.
10270 * hppa-tdep.c (hppa_gdbarch_init): Update.
10271 * h8300-tdep.c (h8300_gdbarch_init): Update.
10272 * frv-tdep.c (frv_gdbarch_init): Update.
10273 * cris-tdep.c (cris_gdbarch_init): Update.
10274 * avr-tdep.c (avr_gdbarch_init): Update.
10275 * arm-tdep.c (arm_gdbarch_init): Update.
10276 * alpha-tdep.c (alpha_gdbarch_init): Update.
10277
10278 2003-03-13 Andrew Cagney <cagney@redhat.com>
10279
10280 * frame.c (legacy_frame_p): New function.
10281 (get_prev_frame): Use legacy_frame_p.
10282 * frame.h (legacy_frame_p): Declare.
10283
10284 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10285
10286 * MAINTAINERS (write after approval): Alphabetically
10287 listing corrected.
10288
10289 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10290
10291 * MAINTAINERS (write after approval): Add myself.
10292
10293 2003-03-12 Andrew Cagney <cagney@redhat.com>
10294
10295 * frame.c (get_prev_frame): Rename the frame parameter to
10296 "this_frame".
10297 (get_next_frame, legacy_get_prev_frame): Ditto.
10298
10299 2003-03-12 Andrew Cagney <cagney@redhat.com>
10300
10301 * frame.c (get_current_frame): Check target_has_registers before
10302 checking target_has_stack.
10303 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10304 instead of deprecated_selected_frame.
10305 * findvar.c (value_of_register): Pass "frame", not
10306 deprecated_selected_frame, to value_of_builtin_reg.
10307
10308 2003-03-12 Andrew Cagney <cagney@redhat.com>
10309
10310 * regcache.c (regcache_cooked_write_signed): New function.
10311 (regcache_cooked_write_unsigned): New function.
10312 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10313 (regcache_cooked_read_signed): Fix regnum in range assertion.
10314 * regcache.h (regcache_cooked_write_signed): Declare.
10315 (regcache_cooked_write_unsigned): Declare.
10316
10317 2003-03-12 Andrew Cagney <cagney@redhat.com>
10318
10319 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10320 * gdbarch.h, gdbarch.c: Re-generate.
10321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10322 * x86-64-tdep.h: Update.
10323 * x86-64-tdep.c (x86_64_init_abi): Update.
10324 * v850-tdep.c (v850_gdbarch_init): Update.
10325 * sparc-tdep.c (sparc_gdbarch_init): Update.
10326 * sh-tdep.c (sh_gdbarch_init): Update.
10327 * s390-tdep.c (s390_gdbarch_init): Update.
10328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10329 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10330 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10332 * mips-tdep.c (mips_gdbarch_init): Update.
10333 * mcore-tdep.c (mcore_gdbarch_init): Update.
10334 * m68k-tdep.c (m68k_gdbarch_init): Update.
10335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10336 * ia64-tdep.c (ia64_gdbarch_init): Update.
10337 * i386-tdep.c (i386_gdbarch_init): Update.
10338 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10339 * hppa-tdep.c (hppa_gdbarch_init): Update.
10340 * h8300-tdep.c (h8300_gdbarch_init): Update.
10341 * frv-tdep.c (frv_gdbarch_init): Update.
10342 * cris-tdep.c (cris_gdbarch_init): Update.
10343 * avr-tdep.c (avr_gdbarch_init): Update.
10344 * arm-tdep.c (arm_gdbarch_init): Update.
10345 * alpha-tdep.c (alpha_gdbarch_init): Update.
10346 * sh-tdep.c (sh_init_extra_frame_info): Update.
10347 (sh64_init_extra_frame_info): Update.
10348 * ns32knbsd-nat.c (frame_num_args): Update.
10349 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10350 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10351 (xstormy16_frame_chain_valid): Update.
10352 * vax-tdep.c (vax_saved_pc_after_call): Update.
10353 * v850-tdep.c (v850_frame_chain): Update.
10354 (v850_pop_frame): Update.
10355 (v850_init_extra_frame_info): Update.
10356 * sparc-tdep.c (setup_arbitrary_frame): Update.
10357 * ns32k-tdep.c (umax_frame_num_args): Update.
10358 * s390-tdep.c (s390_pop_frame_regular): Update.
10359 * mn10300-tdep.c (mn10300_frame_chain): Update.
10360 (mn10300_pop_frame_regular): Update.
10361 (mn10300_init_extra_frame_info): Update.
10362 * mips-tdep.c (mips_init_frame_pc_first): Update.
10363 (mips_frame_chain): Update.
10364 (mips_pop_frame): Update.
10365 * mcore-tdep.c (mcore_frame_chain): Update.
10366 (mcore_pop_frame): Update.
10367 (mcore_init_extra_frame_info): Update.
10368 * arch-utils.c (init_frame_pc_default): Update.
10369 * m68k-tdep.c (isi_frame_num_args): Update.
10370 (delta68_frame_num_args): Update.
10371 (news_frame_num_args): Update.
10372 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10373 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10374 (alpha_frame_chain): Update.
10375 (alpha_pop_frame): Update.
10376 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10377 (hppa_init_extra_frame_info): Update.
10378 (hppa_frame_chain): Update.
10379 (hppa_frame_chain_valid): Update.
10380 * cris-tdep.c (cris_init_extra_frame_info): Update.
10381 * avr-tdep.c (avr_init_extra_frame_info): Update.
10382 * arm-tdep.c (arm_frame_chain_valid): Update.
10383 (arm_init_extra_frame_info): Update.
10384 (arm_pop_frame): Update.
10385 * frame.c (frame_pc_unwind): Update.
10386 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10387 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10388 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10389 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10390 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10391 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10392
10393 2003-03-12 Andrew Cagney <cagney@redhat.com>
10394
10395 Eliminate the need for POP_FRAME.
10396 * frame.c (do_frame_unwind_register): New function.
10397 (frame_pop): When no POP_FRAME, pop the frame using register
10398 unwind and a scratch regcache.
10399 (frame_saved_regs_pop): Delete function.
10400 (trad_frame_unwinder): Update.
10401 * d10v-tdep.c (d10v_frame_pop): Delete function.
10402 (d10v_frame_unwind): Update.
10403 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10404 (sentinel_frame_unwinder): Update.
10405 * dummy-frame.c (dummy_frame_pop): Delete function.
10406 (dummy_frame_unwind): Update.
10407 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10408 (struct frame_unwind): Update.
10409
10410 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10411
10412 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10413 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10414 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10415 Do range checks on register number obtained from debugging info.
10416 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10417 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10418 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10419 mapping function.
10420 (do_fp_register_row): Fix typo which caused double type to be
10421 used when attempting to unpack a float.
10422
10423 2003-03-11 J. Brobecker <brobecker@gnat.com>
10424
10425 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10426
10427 2003-03-11 Andrew Cagney <cagney@redhat.com>
10428
10429 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10430 frame. Problem found by Corinna Vinschen.
10431
10432 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10433
10434 * doublest.c (floatformat_from_length): Accept also
10435 the real size of 'long double' type.
10436
10437 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10438
10439 From Klee Dienes <kdienes@apple.com>:
10440 * breakpoint.c (bpstat_copy): Copy the command lines as well
10441 as the old value, to match what is freed in bpstat_clear.
10442
10443 2003-03-10 David Carlton <carlton@math.stanford.edu>
10444
10445 * minsyms.c (add_minsym_to_hash_table): Replace
10446 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10447 (compare_minimal_symbols, compact_minimal_symbols)
10448 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10449 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10450 of DEPRECATED_SYMBOL_MATCHES_NAME.
10451 (lookup_minimal_symbol_solib_trampoline): Ditto.
10452
10453 2003-03-10 Andrew Cagney <cagney@redhat.com>
10454
10455 * regcache.h (regcache_cooked_read_ftype): Define.
10456 (regcache_save, regcache_restore): Add a cooked_read parameter.
10457 * regcache.c (regcache_save, regcache_restore): Update.
10458 (do_cooked_read): New function.
10459 (regcache_cpy): Pass do_cooked_read to regcache_save and
10460 regcache_restore.
10461
10462 2003-03-10 Andrew Cagney <cagney@redhat.com>
10463
10464 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10465 * gdbarch.h, gdbarch.c: Re-generate.
10466 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10467 * x86-64-tdep.h: Update.
10468 * x86-64-tdep.c (x86_64_init_abi): Update.
10469 * v850-tdep.c (v850_gdbarch_init): Update.
10470 * sparc-tdep.c (sparc_gdbarch_init): Update.
10471 * sh-tdep.c (sh_gdbarch_init): Update.
10472 * s390-tdep.c (s390_gdbarch_init): Update.
10473 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10474 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10475 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10476 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10477 * mips-tdep.c (mips_gdbarch_init): Update.
10478 * mcore-tdep.c (mcore_gdbarch_init): Update.
10479 * m68k-tdep.c (m68k_gdbarch_init): Update.
10480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10481 * ia64-tdep.c (ia64_gdbarch_init): Update.
10482 * i386-tdep.c (i386_gdbarch_init): Update.
10483 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10484 * hppa-tdep.c (hppa_gdbarch_init): Update.
10485 * h8300-tdep.c (h8300_gdbarch_init): Update.
10486 * frv-tdep.c (frv_gdbarch_init): Update.
10487 * cris-tdep.c (cris_gdbarch_init): Update.
10488 * avr-tdep.c (avr_gdbarch_init): Update.
10489 * arm-tdep.c (arm_gdbarch_init): Update.
10490 * alpha-tdep.c (alpha_gdbarch_init): Update.
10491 * sh-tdep.c (sh_init_extra_frame_info): Update.
10492 (sh64_init_extra_frame_info): Update.
10493 * ns32knbsd-nat.c (frame_num_args): Update.
10494 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10495 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10496 (xstormy16_frame_chain_valid): Update.
10497 * vax-tdep.c (vax_saved_pc_after_call): Update.
10498 * v850-tdep.c (v850_frame_chain): Update.
10499 (v850_pop_frame): Update.
10500 (v850_init_extra_frame_info): Update.
10501 * sparc-tdep.c (setup_arbitrary_frame): Update.
10502 * ns32k-tdep.c (umax_frame_num_args): Update.
10503 * s390-tdep.c (s390_pop_frame_regular): Update.
10504 * mn10300-tdep.c (mn10300_frame_chain): Update.
10505 (mn10300_pop_frame_regular): Update.
10506 (mn10300_init_extra_frame_info): Update.
10507 * mips-tdep.c (mips_init_frame_pc_first): Update.
10508 (mips_frame_chain): Update.
10509 (mips_pop_frame): Update.
10510 * mcore-tdep.c (mcore_frame_chain): Update.
10511 (mcore_pop_frame): Update.
10512 (mcore_init_extra_frame_info): Update.
10513 * arch-utils.c (init_frame_pc_default): Update.
10514 * m68k-tdep.c (isi_frame_num_args): Update.
10515 (delta68_frame_num_args): Update.
10516 (news_frame_num_args): Update.
10517 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10518 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10519 (alpha_frame_chain): Update.
10520 (alpha_pop_frame): Update.
10521 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10522 (hppa_init_extra_frame_info): Update.
10523 (hppa_frame_chain): Update.
10524 (hppa_frame_chain_valid): Update.
10525 * cris-tdep.c (cris_init_extra_frame_info): Update.
10526 * avr-tdep.c (avr_init_extra_frame_info): Update.
10527 * arm-tdep.c (arm_frame_chain_valid): Update.
10528 (arm_init_extra_frame_info): Update.
10529 (arm_pop_frame): Update.
10530 * frame.c (frame_pc_unwind): Update.
10531 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10532 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10533 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10534 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10535 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10536 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10537
10538 2003-03-10 Andrew Cagney <cagney@redhat.com>
10539
10540 * gdbarch.sh (gdbarch_unwind_pc): New method.
10541 * gdbarch.h, gdbarch.c: Regenerate.
10542 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10543 but use read_pc and FRAME_SAVED_PC as fall backs.
10544 (frame_saved_regs_pc_unwind): Delete function.
10545 (trad_frame_unwinder): Update.
10546 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10547 (struct frame_unwind): Update.
10548 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10549 (dummy_frame_unwind): Update.
10550 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10551 (sentinel_frame_unwinder): Update.
10552 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10553 (d10v_frame_unwind): Update.
10554 (d10v_unwind_pc): New function.
10555 (d10v_gdbarch_init): Set unwind_pc.
10556
10557 2003-03-10 Andrew Cagney <cagney@redhat.com>
10558
10559 * gdbarch.h: Re-generate.
10560
10561 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10562 PC.
10563 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10564 the PC register.
10565
10566 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10567
10568 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10569
10570 2003-03-08 Andrew Cagney <cagney@redhat.com>
10571
10572 * cli-out.c: Update copyright.
10573 (cli_out_data): Define typedef. Use instead of ui_out_data.
10574
10575 2003-03-08 Andrew Cagney <cagney@redhat.com>
10576
10577 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10578 the result.
10579
10580 2003-03-07 Andrew Cagney <cagney@redhat.com>
10581
10582 * gdbarch.sh: Don't generate two macro definitions when an
10583 undefined macro taking no arguments.
10584 * gdbarch.h: Regenerate.
10585
10586 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10587
10588 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10589 (x86_64_unwind_dummy_id): New functions.
10590 (x86_64_init_abi): Register these two new functions.
10591
10592 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10593
10594 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10595 (x86_64_skip_prologue): Move prologue detection to
10596 separate function.
10597 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10598
10599 2003-03-05 Andrew Cagney <cagney@redhat.com>
10600
10601 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10602 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10603 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10604 to use unwind_dummy_id when a dummy frame.
10605 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10606 predicate.
10607 * gdbarch.h, gdbarch.c: Regneerate.
10608
10609 2003-03-05 Andrew Cagney <cagney@redhat.com>
10610
10611 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10612 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10613 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10614 values.
10615
10616 2003-03-05 Andrew Cagney <cagney@redhat.com>
10617
10618 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10619 (struct d10v_unwind_cache): Delete field "frameless". Replace
10620 "next_addr" with "sp_offset". Add "r11_offset".
10621 (d10v_frame_unwind_cache): Update.
10622 (prologue_find_regs): Update. When "mv r11, sp", save the
10623 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10624 RN was saved in r11_offset.
10625
10626 2003-03-05 Andrew Cagney <cagney@redhat.com>
10627
10628 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10629 cached PC value in the next frame.
10630
10631 2003-03-05 Andrew Cagney <cagney@redhat.com>
10632
10633 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10634 "id_unwind_cache" with "id".
10635 (frame_id_unwind): Delete declaration.
10636 * frame.c (frame_id_unwind): Delete function.
10637 (get_prev_frame): Call the frame id unwind method directly. Store
10638 the returned next frame's ID value in NEXT_FRAME. Note that there
10639 is a problem with the wrong unwind ID being called with the wrong
10640 unwind cache.
10641
10642 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10643
10644 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10645
10646 2003-03-05 James Ingham <jingham@apple.com>
10647 Daniel Jacobowitz <drow@mvista.com>
10648
10649 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10650 (auto_cp_abi): New variable.
10651 (current_cp_abi, num_cp_abis): Make static.
10652 (CP_ABI_MAX): Define.
10653 (cp_abis): Turn into an array.
10654 (value_virtual_fn_field): Fix formatting.
10655 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10656 takes a pointer.
10657 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10658 (list_cp_abis, _initialize_cp_abi): New functions.
10659 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10660 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10661 switch_to_cp_abi. Update prototype for register_cp_abi.
10662 * Makefile.in (cp-abi.o): Update dependencies.
10663 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10664 instead of switch_to_cp_abi.
10665 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10666 register_cp_abi.
10667 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10668 register_cp_abi.
10669 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10670
10671 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10674 * dwarf2loc.c: Include "regcache.h".
10675 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10676 register_size.
10677 * Makefile.in (dwarf2loc.o): Update dependencies.
10678
10679 2003-03-04 Theodore A. Roth <troth@openavr.org>
10680
10681 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10682 number of io registers reported by remote target is not a multiple of
10683 step.
10684
10685 2003-03-04 David Carlton <carlton@math.stanford.edu>
10686
10687 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10688 (lookup_symbol_aux_psymtabs): Update call to
10689 lookup_partial_symbol.
10690 (lookup_transparent_type, find_main_psymtab)
10691 (make_symbol_overload_list): Ditto.
10692
10693 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10694
10695 * MAINTAINERS (Write after approval): Update my email address.
10696
10697 2003-03-03 Andrew Cagney <cagney@redhat.com>
10698
10699 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10700 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10701 predicate. Replace MAX_REGISTER_RAW_SIZE.
10702 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10703 MAX_REGISTER_VIRTUAL_SIZE.
10704 * regcache.c (legacy_max_register_raw_size): New function.
10705 (legacy_max_register_virtual_size): New function.
10706 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10707 (MAX_REGISTER_RAW_SIZE): Define.
10708 (legacy_max_register_raw_size): Declare.
10709 (legacy_max_register_virtual_size): Declare.
10710 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10711 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10712 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10713 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10714 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10715 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10716 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10717 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10718 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10720 * vax-tdep.c (vax_gdbarch_init): Update.
10721 * v850-tdep.c (v850_gdbarch_init): Update.
10722 * sparc-tdep.c (sparc_gdbarch_init): Update.
10723 * sh-tdep.c (sh_gdbarch_init): Update.
10724 * s390-tdep.c (s390_gdbarch_init): Update.
10725 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10726 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10727 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10728 * mips-tdep.c (mips_gdbarch_init): Update.
10729 * mcore-tdep.c (mcore_gdbarch_init): Update.
10730 * m68k-tdep.c (m68k_gdbarch_init): Update.
10731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10732 * ia64-tdep.c (ia64_gdbarch_init): Update.
10733 * i386-tdep.c (i386_gdbarch_init): Update.
10734 * hppa-tdep.c (hppa_gdbarch_init): Update.
10735 * h8300-tdep.c (h8300_gdbarch_init): Update.
10736 * frv-tdep.c (frv_gdbarch_init): Update.
10737 * cris-tdep.c (cris_gdbarch_init): Update.
10738 * avr-tdep.c (avr_gdbarch_init): Update.
10739 * arm-tdep.c (arm_gdbarch_init): Update.
10740 * alpha-tdep.c (alpha_gdbarch_init): Update.
10741 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10742 max_register_raw_size or max_register_virtual_size.
10743
10744 2003-03-03 David Carlton <carlton@math.stanford.edu>
10745
10746 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10747 SYMBOL_MATCHES_NAME, add comment.
10748 (SYMBOL_MATCHES_NATURAL_NAME): New.
10749 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10750 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10751 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10752 * symtab.c (lookup_partial_symbol): Use
10753 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10754 unhelpful comment.
10755 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10756 SYMBOL_MATCHES_NAME.
10757 Fix for PR c++/33.
10758
10759 2003-03-03 David Carlton <carlton@math.stanford.edu>
10760
10761 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10762 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10763 by regexp matching against SYMBOL_NATURAL_NAME.
10764
10765 2003-03-03 David Carlton <carlton@math.stanford.edu>
10766
10767 * linespec.c (find_method): Extract code into collect_methods.
10768 (collect_methods): New.
10769
10770 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10771
10772 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10773 get_frame_base.
10774
10775 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10776 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10777
10778 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10779
10780 * arch-utils.c (generic_register_byte): Fix to use the loop index
10781 and not regnum when summing the size of all registers up to regnum.
10782
10783 2003-03-01 Andrew Cagney <cagney@redhat.com>
10784
10785 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10786 FRAME_INIT_SAVED_REGS.
10787 * gdbarch.h, gdbarch.c: Regenerate.
10788 * stack.c (frame_info): Update.
10789 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10790 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10791 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10792 * ns32k-tdep.c (ns32k_pop_frame): Update.
10793 * mips-tdep.c (mips_pop_frame): Update.
10794 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10795 * ia64-tdep.c (ia64_frame_chain): Update.
10796 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10797 (ia64_frameless_function_invocation): Update.
10798 (ia64_init_extra_frame_info): Update.
10799 (ia64_pop_frame_regular): Update.
10800 * frame.h (struct frame_info): Update comment.
10801 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10802 * frame.c (frame_saved_regs_register_unwind): Update.
10803 (frame_saved_regs_register_unwind): Update.
10804 (deprecated_generic_get_saved_register): Update.
10805 * cris-tdep.c: Update comment.
10806 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10807 Rename macro.
10808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10809 * x86-64-tdep.c (x86_64_init_abi): Update.
10810 * vax-tdep.c (vax_gdbarch_init): Update.
10811 * v850-tdep.c (v850_gdbarch_init): Update.
10812 * sparc-tdep.c (sparc_gdbarch_init): Update.
10813 * sh-tdep.c (sh_gdbarch_init): Update.
10814 * s390-tdep.c (s390_gdbarch_init): Update.
10815 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10816 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10817 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10818 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10819 * mips-tdep.c (mips_gdbarch_init): Update.
10820 * mcore-tdep.c (mcore_gdbarch_init): Update.
10821 * m68k-tdep.c (m68k_gdbarch_init): Update.
10822 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10823 * ia64-tdep.c (ia64_gdbarch_init): Update.
10824 * i386-tdep.c (i386_gdbarch_init): Update.
10825 * frv-tdep.c (frv_gdbarch_init): Update.
10826 * avr-tdep.c (avr_gdbarch_init): Update.
10827 * arm-tdep.c (arm_gdbarch_init): Update.
10828 * alpha-tdep.c (alpha_gdbarch_init): Update.
10829
10830 2003-03-01 Andrew Cagney <cagney@redhat.com>
10831
10832 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10833 option enum and switch. When no windows, set the interpreter to
10834 INTERP_CONSOLE.
10835
10836 2003-03-01 Andrew Cagney <cagney@redhat.com>
10837
10838 * main.c (captured_main): Replace magic option characters with an
10839 enum.
10840
10841 2003-03-01 Andrew Cagney <cagney@redhat.com>
10842
10843 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10844 INIT_EXTRA_FRAME_INFO.
10845 * gdbarch.h, gdbarch.c: Regenerate.
10846 * arm-tdep.c: Update comments.
10847 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10848 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10849 * frame.h, avr-tdep.c: Ditto.
10850 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10851 (create_new_frame, legacy_get_prev_frame): Ditto.
10852 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10853 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10854 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10855 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10856 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10857 * v850-tdep.c (v850_gdbarch_init): Ditto.
10858 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10859 * sh-tdep.c (sh_gdbarch_init): Ditto.
10860 * s390-tdep.c (s390_gdbarch_init): Ditto.
10861 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10862 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10863 * mips-tdep.c (mips_gdbarch_init): Ditto.
10864 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10866 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10867 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10868 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10869 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10870 * frv-tdep.c (frv_gdbarch_init): Ditto.
10871 * cris-tdep.c (cris_gdbarch_init): Ditto.
10872 * avr-tdep.c (avr_gdbarch_init): Ditto.
10873 * arm-tdep.c (arm_gdbarch_init): Ditto.
10874 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10875 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10876
10877 2003-03-01 Andrew Cagney <cagney@redhat.com>
10878
10879 * gdbarch.sh (register_type): New function with predicate.
10880 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10881 * gdbarch.h, gdbarch.c: Re-generate.
10882 * arch-utils.c (generic_register_byte): Use generic_register_size.
10883 (generic_register_size): When available, use
10884 gdbarch_register_type.
10885 * regcache.c (init_regcache_descr): When available, initialize the
10886 register type array using gdbarch_register_type. If the
10887 architecture supplies gdbarch_register_type, do not use the legacy
10888 regcache layout.
10889 * d10v-tdep.c (d10v_register_type): Replace
10890 d10v_register_virtual_type.
10891 (d10v_gdbarch_init): Set register_type instead of
10892 register_virtual_type.
10893
10894 2003-03-01 Andrew Cagney <cagney@redhat.com>
10895
10896 * Makefile.in (ax-gdb.o): Update dependencies.
10897 * ax-gdb.c: Include "regcache.h".
10898 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10899 * findvar.c (value_of_register): Ditto.
10900 * infcmd.c (default_print_registers_info): Ditto.
10901
10902 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10903
10904 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10905 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10906
10907 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10908
10909 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10910 of STREQ.
10911
10912 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * Makefile.in (dwarf2loc.o): Update dependencies.
10915 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10916 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10917 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10918 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10919 (locexpr_tracepoint_var_ref): New function.
10920 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10921
10922 2003-02-28 Andrew Cagney <cagney@redhat.com>
10923
10924 * regcache.c (register_size): New function.
10925 * regcache.h (register_size): Declare
10926 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10927 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10928
10929 2003-02-28 David Carlton <carlton@math.stanford.edu>
10930
10931 * linespec.c (decode_compound): Extract code into find_method.
10932 (find_method): New.
10933
10934 2003-02-28 J. Brobecker <brobecker@gnat.com>
10935
10936 * Makefile.in: Add rules to build and link in observer.o.
10937
10938 2003-02-27 J. Brobecker <brobecker@gnat.com>
10939
10940 * observer.c: Minor comments edits.
10941
10942 2003-02-27 J. Brobecker <brobecker@gnat.com>
10943
10944 * observer.h, observer.c: New file.
10945
10946 2003-02-27 Andrew Cagney <cagney@redhat.com>
10947
10948 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10949
10950 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10951
10952 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10953 (M6812_OP_STS_EXT): Likewise.
10954 (m6811_prologue): Use the above to recognize prologue.
10955 (m6812_prologue): Likewise.
10956
10957 2003-02-27 David Carlton <carlton@math.stanford.edu>
10958
10959 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10960 SYMBOL_PRINT_NAME.
10961 (compare_psymbols): Ditto.
10962 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10963
10964 2003-02-27 Michael Snyder <msnyder@redhat.com>
10965
10966 * f-lang.c (build_fortran_types): New function.
10967 (_initialize_f_language): Gdbarch-register built-in fortran types.
10968 * doublest.c (extract_floating): Fix warning text.
10969
10970 2003-02-27 Andrew Cagney <cagney@redhat.com>
10971
10972 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10973 predicate. Replaces PUSH_DUMMY_FRAME.
10974 * gdbarch.h, gdbarch.c: Regnerate.
10975 * valops.c (hand_function_call): Update. Call
10976 generic_push_dummy_frame directly.
10977 * vax-tdep.c (vax_gdbarch_init): Update.
10978 * sparc-tdep.c (sparc_gdbarch_init): Update.
10979 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10980 * m68k-tdep.c (m68k_gdbarch_init): Update.
10981 * hppa-tdep.c (hppa_gdbarch_init): Update.
10982 * alpha-tdep.c (alpha_gdbarch_init): Update.
10983 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10984 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10985 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10987 push_dummy_frame to generic_push_dummy_frame.
10988 * v850-tdep.c (v850_gdbarch_init): Ditto.
10989 * sh-tdep.c (sh_gdbarch_init): Ditto.
10990 * s390-tdep.c (s390_gdbarch_init): Ditto.
10991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10993 * mips-tdep.c (mips_gdbarch_init): Ditto.
10994 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10995 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10996 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10997 * i386-tdep.c (i386_gdbarch_init): Ditto.
10998 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10999 * frv-tdep.c (frv_gdbarch_init): Ditto.
11000 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11001 * cris-tdep.c (cris_gdbarch_init): Ditto.
11002 * avr-tdep.c (avr_gdbarch_init): Ditto.
11003 * arm-tdep.c (arm_gdbarch_init): Ditto.
11004
11005 2003-02-26 Kevin Buettner <kevinb@redhat.com>
11006
11007 * mips-tdep.c (show_mips_abi): New function.
11008 (_initialize_mips_tdep): Use show_mips_abi() to implement the
11009 command ``show mips abi''.
11010
11011 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
11012
11013 From Elena Zannoni <ezannoni@redhat.com>
11014 * dbxread.c (process_one_symbol): Only record line 0 if one or
11015 more sline entries have been seen for the function.
11016
11017 2003-02-26 Michael Chastain <mec@shout.net>
11018
11019 * configure: Regenerate with autoconf 000227.
11020
11021 2003-02-26 Michael Chastain <mec@shout.net>
11022
11023 Close PR build/660.
11024 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
11025 for old libc5/glibc.
11026 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
11027
11028 2003-02-26 Kris Warkentin <kewarken@qnx.com>
11029
11030 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
11031 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
11032
11033 2003-02-26 Michael Chastain <mec@shout.net>
11034
11035 * configure.in: New variable HAVE_UINTPTR_T.
11036 * configure, config.in: Regenerated.
11037
11038 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
11039
11040 Fix PR build/1097.
11041 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
11042
11043 2003-02-25 Andrew Cagney <cagney@redhat.com>
11044
11045 * frame.c (get_prev_frame): Add comment on check for
11046 inside_entry_func. Only check for inside_entry_file when not a
11047 dummy and not a sentinel. Check that the new frame is not inner
11048 to the old frame.
11049
11050 2003-02-25 Andrew Cagney <cagney@redhat.com>
11051
11052 * frame.c (frame_debug): New variable.
11053 (_initialize_frame): Add "set/show debug frame" command.
11054 (get_prev_frame): When frame_debug, print reason why unwind
11055 failed.
11056
11057 2003-02-25 Michael Chastain <mec@shout.net>
11058
11059 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
11060 to avoid uintptr_t definition problems.
11061
11062 2003-02-25 David Carlton <carlton@math.stanford.edu>
11063
11064 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
11065 (SYMBOL_LINKAGE_NAME): Ditto.
11066 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
11067 SYMBOL_LINKAGE_NAME.
11068 (struct general_symbol_info): Expand comment.
11069 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
11070 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
11071 (SYMBOL_MATCHES_REGEXP): Ditto.
11072 * symtab.c (symbol_natural_name): New function.
11073 * objfiles.h: Replace all uses of SYMBOL_NAME by
11074 DEPRECATED_SYMBOL_NAME.
11075 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
11076 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
11077 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
11078 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
11079 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
11080 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
11081 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
11082 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
11083 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
11084 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
11085 * ada-exp.y: Ditto.
11086 * ada-exp.y: Update copyright.
11087 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
11088 * cp-valprint.c: Ditto.
11089
11090 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
11091
11092 * infptrace.c (detach): Do not flag error if ptrace detach fails
11093 and errno is set to ESRCH.
11094
11095 2003-02-24 Andrew Cagney <cagney@redhat.com>
11096
11097 * infptrace.c (udot_info): Change type of udot_off to long. Use
11098 paddr when printing udot_off's value.
11099
11100 2003-02-24 David Carlton <carlton@math.stanford.edu>
11101
11102 * symtab.c (make_symbol_overload_list): Only read in partial
11103 symtabs containing a matching partial symbol.
11104
11105 2003-02-24 David Carlton <carlton@math.stanford.edu>
11106
11107 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
11108 do the comparison, not strcmp.
11109 * symfile.c (compare_psymbols): Ditto.
11110 * defs.h: Declare strcmp_iw_ordered.
11111 * utils.c (strcmp_iw_ordered): New function.
11112
11113 2003-02-24 Jim Blandy <jimb@redhat.com>
11114
11115 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
11116 support, shared libs): Remove my name from here, to better reflect
11117 reality.
11118
11119 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11120
11121 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
11122 (target_ops): Add to_have_continuable_watchpoint.
11123 * target.c (update_current_target): Add INHERIT line for
11124 to_have_continuable_watchpoint.
11125 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
11126 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
11127 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
11128 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
11129
11130 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
11131
11132 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
11133 maintainership.
11134
11135 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11136
11137 * solib.c (solib_open): Call target defined search function after
11138 failing with solib-search-path.
11139 * solist.h (target_so_ops): Add find_and_open_solib function hook and
11140 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
11141
11142 2003-02-24 Kris Warkentin <kewarken@qnx.com>
11143
11144 * MAINTAINERS: Add myself to Write After section.
11145
11146 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
11147
11148 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
11149
11150 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
11151
11152 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
11153 (m68hc11_add_reggroups): New function.
11154 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
11155 (m68hc11_gdbarch_init): Install the reggroups.
11156 (_initialize_m68hc11_tdep): Initialize them.
11157
11158 2003-02-21 James E Wilson <wilson@tuliptree.org>
11159
11160 * MAINTAINERS: Update my email address.
11161
11162 2003-02-21 David Carlton <carlton@math.stanford.edu>
11163
11164 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
11165
11166 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
11167
11168 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
11169 * symtab.h: Add opaque declarations of struct axs_value and
11170 struct agent_expr.
11171 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
11172 (struct location_funcs): New type.
11173 (struct symbol): Add "loc" to aux_value.
11174 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
11175 * dwarf2read.c: Include "dwarf2expr.h".
11176 (dwarf2_symbol_mark_computed): New function.
11177 (read_func_scope): Use it.
11178 (var_decode_location): New function.
11179 (new_symbol): Use it.
11180 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
11181
11182 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
11183 (dwarf2expr_h, dwarf2loc_h): New variables.
11184 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
11185 (dwarf2expr.o, dwarf2loc.o): New rules.
11186 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
11187 * buildsym.c (finish_block): Handle LOC_COMPUTED and
11188 LOC_COMPUTED_ARG.
11189 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
11190 * m2-exp.y (yylex): Likewise.
11191 * printcmd.c (address_info, print_frame_args): Likewise.
11192 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
11193 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
11194 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
11195 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
11196 * symtab.c (lookup_block_symbol): Likewise.
11197
11198 2003-02-20 Adam Fedor <fedor@gnu.org>
11199
11200 * symtab.h: Remove objc_specific struct
11201 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
11202 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
11203 Have language_objc use cplus_specific struct.
11204
11205 2003-02-20 Tom Tromey <tromey@redhat.com>
11206
11207 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11208 TYPE_NAME, when printing a String value. PR java/1075.
11209
11210 2003-02-20 Adam Fedor <fedor@gnu.org>
11211
11212 * objc-lang.h (find_methods): Remove declaration.
11213 * objc-lang.c (find_methods): Make static.
11214
11215 2003-02-20 Christopher Faylor <cgf@redhat.com>
11216
11217 * win32-nat.c (get_image_name): Check return value from
11218 ReadProcessMemory.
11219 (child_xfer_memory): Ditto.
11220
11221 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11222
11223 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11224 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11225 '${exec_prefix}' (in addition to the expansion thereof) as
11226 relocatable.
11227 * configure: Rebuilt.
11228
11229 2003-02-20 David Carlton <carlton@math.stanford.edu>
11230
11231 * symtab.c (search_symbols): Revert the search_symbols part of my
11232 2002-12-23 patch. Add comment.
11233
11234 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11237 * dbxread.c (elfstab_build_psymtabs): Don't call
11238 install_minimal_symbols.
11239 (stabsect_build_psymtabs): Likewise.
11240 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11241 earlier.
11242 * somread.c (som_symfile_read): Call install_minimal_symbols
11243 and do_cleanups earlier.
11244 * nlmread.c (nlm_symfile_read): Likewise.
11245 * mdebugread.c (elfmdebug_build_psymtabs): Call
11246 install_minimal_symbols and make appropriate cleanups.
11247
11248 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11249
11250 * solib.c (reload_shared_libraries): New function.
11251 (_initialize_solib): Add callbacks for ``set solib-search-path''
11252 and ``set solib-absolute-prefix''.
11253
11254 2003-02-20 David Carlton <carlton@math.stanford.edu>
11255
11256 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11257 expand comment.
11258 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11259 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11260 * ada-typeprint.c (ada_typedef_print): Ditto.
11261 * ax-gdb.c (gen_var_ref): Ditto.
11262 * breakpoint.c (print_one_breakpoint): Ditto.
11263 * buildsym.c (finish_block): Ditto.
11264 * c-valprint.c (c_val_print): Ditto.
11265 * expprint.c (print_subexp): Ditto.
11266 * findvar.c (locate_var_value): Ditto.
11267 * infcmd.c (jump_command): Ditto.
11268 * linespec.c (decode_line_2, decode_compound): Ditto.
11269 * maint.c (maintenance_translate_address): Ditto.
11270 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11271 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11272 Ditto.
11273 * p-valprint.c (pascal_val_print): Ditto.
11274 * stabsread.c (define_symbol): Ditto.
11275 * stack.c (print_frame, frame_info, print_block_frame_locals)
11276 (print_frame_arg_vars, return_command): Ditto.
11277 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11278 * symmisc.c (print_symbol): Ditto.
11279 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11280 (compare_search_syms, print_symbol_info, print_msymbol_info)
11281 (rbreak_command): Ditto.
11282 * tracepoint.c (tracepoints_info): Ditto.
11283 * typeprint.c (typedef_print): Ditto.
11284 * valops.c (value_of_variable, hand_function_call): Ditto.
11285 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11286 * ada-typeprint.c: Update Copyright.
11287 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11288 * tracepoint.c, cli/cli-cmds.c: Ditto.
11289
11290 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11291
11292 * frame.c (generic_unwind_get_saved_register): Make non-static.
11293 * frame.h (generic_unwind_get_saved_register): Declare.
11294 * mips-tdep.c (read_next_frame_reg): Fetch register from
11295 current regcache when frame is NULL.
11296 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11297 that must be NULL.
11298 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11299 instead of frame_register_unwind().
11300
11301 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11302
11303 * remote-sim.c (gdbsim_insert_breakpoint)
11304 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11305 code.
11306
11307 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11308
11309 * remote.c (_initialize_remote): Add commands "set/show remote
11310 hardware-watchpoint-limit" and "set/show remote
11311 hardware-breakpoint-limit".
11312 (remote_hw_watchpoint_limit): Initialize to -1.
11313 (remote_hw_breakpoint_limit): Ditto.
11314 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11315
11316 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11317
11318 * coff-pe-read.c: New file - support reading of minimal symbols from a
11319 portable executable using the export table.
11320 * coff-pe-read.h: New file.
11321 * coffread.c: Include coff-pe-read.h.
11322 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11323 debugging symbols found.
11324 * Makefile.in (SFILES): Add coff-pe-read.o.
11325 (coff_pe_read_h): Define.
11326 (COMMON_OBS): Add coff-pe-read.o.
11327 (coffread.o): Add coff_pe_read_h dependency.
11328 (coff-pe-read.o): New target.
11329
11330 2003-02-19 David Carlton <carlton@math.stanford.edu>
11331
11332 * Makefile.in (SFILES): Add block.c.
11333 (block_h): New.
11334 (COMMON_OBS): Add block.o.
11335 (block.o): New.
11336 (x86-64-tdep.o): Add $(block_h).
11337 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11338 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11339 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11340 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11341 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11342 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11343 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11344 * value.h: Add opaque declaration for struct block.
11345 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11346 * ada-lang.h: Ditto.
11347 * x86-64-tdep.c: #include "block.h"
11348 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11349 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11350 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11351 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11352 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11353 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11354 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11355 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11356 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11357 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11358 * symtab.c (block_function): Ditto.
11359 (contained_in): Ditto.
11360 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11361 block.h. Add opaque declaration for struct block.
11362 * symtab.h: Move block_function and contained_in declarations to
11363 block.h. Add opaque declarations for struct block, struct
11364 blockvector.
11365 (struct block): Move to block.h.
11366 (struct blockvector): Ditto.
11367 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11368 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11369 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11370 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11371 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11372 Ditto.
11373 * block.c: New file.
11374 * block.h: New file.
11375
11376 2003-02-19 Theodore A. Roth <troth@openavr.org>
11377
11378 * avr-tdep.c (avr_extract_return_value): Remove function.
11379 (avr_store_return_value): Remove function.
11380 (avr_extract_struct_value_address): Remove function.
11381 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11382
11383 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11384
11385 * rs6000-tdep.c: Include "gdb_assert.h".
11386 (registers_e500): Add "acc" and "spefscr".
11387 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11388 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11389 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11390 really is "r0".
11391 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11392
11393 2003-02-18 Keith Seitz <keiths@redhat.com>
11394
11395 * Makefile.in: Add gdbtk-interps.c.
11396
11397 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11398
11399 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11400 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11401
11402 2003-02-18 Andrew Cagney <cagney@redhat.com>
11403
11404 * symtab.h (struct objfile): Add opaque declaration.
11405
11406 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11407
11408 From Jim Ingham <jingham@apple.com>:
11409 * dbxread.c (process_one_symbol): Use last_function_start rather
11410 than function_start_offset to find the real beginning of the
11411 current function. The latter is just the text section offset on
11412 some systems, the former is always the real function start.
11413
11414 2003-02-17 Andrew Cagney <cagney@redhat.com>
11415
11416 * configure.in: Revert ${target} != ${host}.
11417
11418 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11419
11420 * configure.in (Makefile): Use the test ${target} != ${host},
11421 instead of the absence of the "nm.h" file, to determine of the
11422 configuration non-native.
11423 * configure: Regenerate.
11424
11425 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11426
11427 From Brian Ford <ford@vss.fsi.com>
11428
11429 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11430 conditionalize tui_active test.
11431 (lookup_cmd_1): Ditto.
11432
11433 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11434
11435 * configure.in: Add check for _etext.
11436 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11437 available.
11438 * config.in, configure: regenerated.
11439
11440 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11441
11442 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11443
11444 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11445
11446 * main.c (tui_version): Delete variable.
11447 (captured_main): When --tui, set interpreter_p to "tui" instead of
11448 enabling tui_version.
11449 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11450 tui_version.
11451 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11452 * cli/cli-cmds.c (disassemble_command): Ditto.
11453 * defs.h (tui_version): Delete declaration.
11454 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11455 (tui-interp.o): Add rules.
11456 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11457
11458 2003-02-14 Christopher Faylor <cgf@redhat.com>
11459
11460 * win32-nat.c (register_loaded_dll): Correctly set address range for
11461 just-loaded dll.
11462
11463 2003-02-12 Jason Molenda (jmolenda@apple.com)
11464
11465 * symmisc.c (print_objfile_statistics): Include information about
11466 the number of psymtabs and symtabs in each object file.
11467
11468 2003-02-13 Keith R Seitz <keiths@redhat.com>
11469
11470 * main.h (struct captured_main_args): Add interpreter_p.
11471 * main.c (captured_main): Initialize interpreter_p from context.
11472 * gdb.c (main): Set interpreter_p argument.
11473 * Makefile.in (gdb.o): Add dependency for interps.h.
11474
11475 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11476
11477 * event-top.c (cli_command_loop): Delete declaration.
11478 (_initialize_event_loop): Delete function setting event_loop_hook.
11479 * event-top.h (cli_command_loop): Declare. Update copyright.
11480 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11481 * interps.c (current_interp_command_loop): When event_loop_p, call
11482 cli_command_loop.
11483
11484 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11485
11486 * interps.h (interp_command_loop_ftype): Change return type to
11487 void.
11488
11489 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11490
11491 * x86-64-tdep.c (x86_64_extract_return_value)
11492 (x86_64_store_return_value): Use regcache instead of regbuf.
11493 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11494 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11495
11496 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11497
11498 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11499 * aclocal.m4: Regenerate.
11500 * configure: Regenerate.
11501
11502 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11503 TCL_LD_SEARCH_FLAGS.
11504
11505 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11506
11507 * dwarf2cfi.c: Reindented.
11508
11509 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11510
11511 * interps.c (clear_interpreter_hooks): Convert function definition
11512 to ISO C.
11513
11514 2003-02-07 David Carlton <carlton@math.stanford.edu>
11515
11516 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11517
11518 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11519
11520 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11521 (struct type): ...to here.
11522 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11523 field.
11524 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11525 (replace_type): Set length on all type variants for a given type.
11526
11527 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11528
11529 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11530 <sys/stat.h>.
11531 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11532
11533 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11534
11535 * Makefile.in (symm-nat.o): Update dependencies.
11536 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11537 (lynx-nat.o, ia64-linux-nat.): Ditto.
11538 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11539 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11540 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11541
11542 * Makefile.in (inflow_h): Define.
11543 (procfs.o, inflow.o, procfs.o): Update dependencies.
11544 * inftarg.c (child_stop): Delete extern declaration of
11545 inferior_process_group. Include "inflow.h".
11546 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11547 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11548 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11549 (our_process_group, inferior_process_group): Extern declarations.
11550
11551 * procfs.c: Include "gdb_assert.h".
11552
11553 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11554 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11555 * jv-typeprint.c (java_type_print_base): Ditto.
11556 * typeprint.c (typedef_print): Eliminate STREQ.
11557 * cli/cli-script.c (define_command, define_command): Ditto.
11558 * main.c (captured_main): Ditto.
11559 * values.c (lookup_internalvar): Ditto.
11560 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11561 within `if' conditional.
11562 * linespec.c (decode_line_2): Ditto.
11563 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11564 (bfd_openw_with_cleanup): Ditto.
11565
11566 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11567
11568 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11569 legacy_extract_return_value and store_return_value to
11570 legacy_return_value.
11571
11572 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11573
11574 * win32-nat.c (get_relocated_section_addrs): New function. Find
11575 section load addresses for symbol handling in relocated DLLs.
11576 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11577
11578 2003-02-05 Fred Fish <fnf@intrinsity.com>
11579
11580 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11581 '=' and '!='.
11582 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11583 with '&' and '=='.
11584 (angel_RDI_info): Ditto.
11585 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11586 with '&' and '!='.
11587 (threads_continue_all_with_signals): Ditto.
11588
11589 2003-02-05 Jim Ingham <jingham@apple.com>
11590 Keith Seitz <keiths@redhat.com>
11591 Elena Zannoni <ezannoni@redhat.com>
11592 Andrew Cagney <ac131313@redhat.com>
11593
11594 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11595 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11596 (SUBDIR_MI_OBS): Add "mi-interp.o".
11597 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11598 (SFILES): Add "interps.c".
11599 (COMMON_OBS): Add "interps.o".
11600 (interps_h, mi_main_h): Define.
11601 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11602 (mi-main.o, main.o, event-top.o): Update dependencies.
11603 * cli/cli-interp.c: New file.
11604 * interps.h, interps.c: New files.
11605 * top.c: (gdb_init): Don't install the default interpreter, handed
11606 by captured_main.
11607 * main.c: Include "interps.h".
11608 (interpreter_p): Note that it should malloc'ed.
11609 (captured_command_loop): Call current_interp_command_loop.
11610 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11611 xfree and xstrdup when updating interpreter_p. Install the
11612 default interpreter. Add hack to stop mi1's copyright notice
11613 being encoded.
11614 * event-top.h (gdb_setup_readline): Declare.
11615 (gdb_disable_readline): Declare.
11616 * event-top.c: Include "interps.h".
11617 (display_gdb_prompt): Call current_interp_display_prompt_p.
11618 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11619 gdb_stdlog, and gdb_stdtarg.
11620 (_initialize_event_loop): Don't call gdb_setup_readline.
11621 * cli-out.c (cli_out_set_stream): New function.
11622 * cli-out.h (cli_out_set_stream): Declare.
11623
11624 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11625
11626 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11627 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11628 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11629 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11630 config/i386/i386v42mp.mt: Removed.
11631
11632 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11633
11634 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11635 GDB_OSABI_SOLARIS.
11636
11637 2003-02-05 Michael Chastain <mec@shout.net>
11638
11639 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11640 2.12.1 and earlier versions.
11641
11642 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11643
11644 Remove orphaned hosts, targets and files.
11645 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11646 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11647 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11648 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11649 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11650 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11651 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11652 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11653 * config/sparc/tm-sp64sim.h: Delete.
11654 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11655 hosts.
11656 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11657 mips*-dec-mach3* targets.
11658
11659 2003-02-04 Michael Chastain <mec@shout.net>
11660
11661 * NEWS: Fix typo: sepcifying -> specifying.
11662
11663 2003-02-04 Michael Chastain <mec@shout.net>
11664
11665 * dwarfread.c: Add documentation on the state of dwarf-1,
11666 looking towards obsoletion.
11667
11668 2003-02-03 Michael Chastain <mec@shout.net>
11669
11670 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11671 gdb/testsuite/gdb.c++/pr-1023.exp.
11672
11673 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11674
11675 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11676 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11677
11678 * utils.c (init_page_info): Delete reference to MPW in comments.
11679 * main.c (captured_main): Delete #ifdef MPW.
11680
11681 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11682
11683 * NEWS: Note that the m32r-*-elf* is obsolete.
11684 * monitor.c (monitor_expect): Obsolete reference to m32r.
11685 * configure.tgt: Mark m32r-*-elf* as obsolete.
11686 * MAINTAINERS: Mark m32k as obsolete.
11687 * m32r-rom.c: Obsolete file.
11688 * config/m32r/m32r.mt: Obsolete file.
11689 * config/m32r/tm-m32r.h: Obsolete file.
11690 * m32r-stub.c: Obsolete file.
11691 * m32r-tdep.c: Obsolete file.
11692
11693 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11694
11695 * NEWS: Mention that the z8k-zilog-none is obsolete.
11696 * MAINTAINERS: Mark z8k as obsolete.
11697 * configure.tgt: Obsolete the z8k-*-coff* target.
11698 * config/z8k/z8k.mt: Obsolete file.
11699 * config/z8k/tm-z8k.h: Obsolete file.
11700 * z8k-tdep.c: Obsolete file.
11701
11702 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11703
11704 * NEWS: Mention that the mn10200-elf is obsolete.
11705 * configure.tgt: Obsolete mn10200-*-* target.
11706 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11707 mention that the mn10200 is obsolete.
11708 * breakpoint.h: Ditto.
11709 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11710 * config/mn10200/mn10200.mt: Obsolete file.
11711 * config/mn10200/tm-mn10200.h: Obsolete file.
11712 * mn10200-tdep.c: Obsolete file.
11713
11714 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11715
11716 * MAINTAINERS: Mark h8500 as obsolete.
11717 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11718 * findvar.c (value_from_register): Ditto.
11719 * h8500-tdep.c: Mark file as obsolete.
11720 * config/h8500/h8500.mt: Ditto.
11721 * config/h8500/tm-h8500.h: Ditto.
11722 * NEWS: Mention that h8500 is obsolete.
11723
11724 2003-02-04 David Carlton <carlton@math.stanford.edu>
11725
11726 * objfiles.c (allocate_objfile): Always set name. Add comment at
11727 start of function.
11728 * jv-lang.c (get_dynamics_objfile): Add comment.
11729
11730 2003-02-04 David Carlton <carlton@math.stanford.edu>
11731
11732 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11733 * printcmd.c (build_address_symbolic): Replace uses of
11734 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11735 SYMBOL_NAME, and asm_demangle.
11736 Update copyright.
11737
11738 2003-02-04 David Carlton <carlton@math.stanford.edu>
11739
11740 * linespec.c (decode_compound): Extract code into
11741 lookup_prefix_sym.
11742 (lookup_prefix_sym): New function.
11743
11744 2003-02-04 David Carlton <carlton@math.stanford.edu>
11745
11746 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11747 FLOAT_COERCION_BADNESS.
11748 * gdbtypes.c (rank_one_type): Replace all uses of
11749 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11750
11751 2003-02-04 Jim Blandy <jimb@redhat.com>
11752
11753 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11754 section, let dwarf_macinfo_section point to it, not
11755 dwarf_loc_section.
11756
11757 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11758
11759 Pointed out by Anton Blanchard <anton@samba.org>.
11760 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11761 (ppc_linux_at_sigtramp_return_path): Use it.
11762
11763 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11764
11765 * defs.h (streq): Add prototype.
11766 * utils.c (streq): New function.
11767
11768 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11769 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11770 * mdebugread.c (new_symbol): Likewise.
11771 * stabsread.c (define_symbol): Likewise.
11772 * coffread.c (process_coff_symbol): Likewise.
11773 * dwarfread.c (new_symbol): Likewise.
11774
11775 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11776 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11777 here.
11778 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11779 SYMBOL_INIT_DEMANGLED_NAME.
11780 * objfiles.c: Include "hashtab.h".
11781 (allocate_objfile): Call htab_set_functions_ex for the
11782 demangled_names_hash.
11783 (free_objfile): Call htab_delete for the demangled_names_hash.
11784 * objfiles.h (struct htab): Add declaration.
11785 (struct objfile): Add demangled_names_hash.
11786 * symfile.c: Include "hashtab.h".
11787 (reread_symbols): Call htab_delete for the demangled_names_hash.
11788 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11789 SYMBOL_NAME in the bcache.
11790 * symtab.c: Include "hashtab.h". Update comments.
11791 (create_demangled_names_hash, symbol_set_names): New functions.
11792 (symbol_find_demangled_name): New function, broken out from
11793 symbol_init_demangled_names.
11794 (symbol_init_demangled_names): Use it.
11795 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11796 (SYMBOL_SET_NAMES): New macro.
11797 (symbol_set_names): Add prototype.
11798
11799 2003-02-03 Jim Blandy <jimb@redhat.com>
11800
11801 Use a single, consistent representation for an empty minimal
11802 symbol table in an objfile.
11803 * objfiles.c (terminate_minimal_symbol_table): New function.
11804 (allocate_objfile): Call it.
11805 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11806 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11807 non-NULL.
11808 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11809 objfile has minimal symbols, compare minimal_symbol_count to zero,
11810 instead of comparing msymbols with NULL.
11811 * objfiles.c (have_minimal_symbols): Same.
11812 * solib-sunos.c (solib_add_common_symbols): Call
11813 terminate_minimal_symbol_table.
11814 * symfile.c (reread_symbols): Same.
11815
11816 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11817
11818 * s390-tdep.c (s390_address_class_type_flags)
11819 (s390_address_class_type_flags_to_name)
11820 (s390_address_class_name_to_type_flags): New functions.
11821 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11822 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11823
11824 2003-02-03 Michael Snyder <msnyder@redhat.com>
11825
11826 * arm-tdep.c: Fix spell-o in comment.
11827
11828 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11829
11830 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11831 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11832 error messages to contain BFD filename.
11833
11834 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11835
11836 Fix PR gdb/742 gdb/743 gdb/877
11837 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11838 (do_mixed_source_and_assembly): Use
11839 make_cleanup_ui_out_tuple_begin_end and
11840 make_cleanup_ui_out_tuple_begin_end.
11841 (do_mixed_source_and_assembly): Ditto.
11842 * thread.c (do_captured_list_thread_ids): Ditto.
11843 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11844 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11845 ui_out_tuple_end): Delete prototypes.
11846 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11847 ui_out_list_end, ui_out_tuple_end): Delete.
11848
11849 From Kevin Buettner <kevinb@redhat.com>:
11850 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11851 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11852 (do_cleanup_table_end): New functions.
11853 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11854 Use cleanups to invoke_ui_out_tuple_end().
11855 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11856 * cli/cli-setshow.c (cmd_show_list): Use
11857 make_cleanup_ui_out_tuple_begin_end.
11858
11859 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11860
11861 * frame.c (frame_unwind_register): New function.
11862 (frame_unwind_unsigned_register): Use.
11863 (frame_unwind_signed_register): Use.
11864 (frame_read_register): New function.
11865 * frame.h (frame_unwind_register): Declare.
11866 (frame_read_register): Declare.
11867
11868 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11869 and frame_unwind_register instead of read_memory, write_register
11870 and deprecated_write_register_bytes.
11871
11872 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11873
11874 * frame.h: Note that namelen can be negative.
11875 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11876 NAME's length.
11877
11878 * NEWS: Mention that the d10v's `regs' command is deprecated.
11879 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11880 (d10v_print_registers_info): New function.
11881 (show_regs): Call d10v_print_registers_info.
11882 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11883
11884 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11885
11886 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11887 lost in the previous patch.
11888
11889 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11890
11891 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11892 * stack.c (print_frame_info_base): Output complete FRAME tuple
11893 for synthesized frames.
11894
11895 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11896
11897 * mips-nat.c (zerobuf): Delete.
11898 (fetch_inferior_registers): Alloc local zerobuf.
11899 (fetch_core_registers): Alloc local zerobuf.
11900 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11901 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11902 * thread-db.c (thread_db_store_registers): Ditto.
11903 * sh-tdep.c (sh_do_register): Ditto.
11904 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11905 * remote-sim.c (gdbsim_store_register): Ditto.
11906 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11907 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11908 * monitor.c (monitor_supply_register): Ditto.
11909 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11910 * mips-nat.c (fetch_inferior_registers): Ditto.
11911 * m68klinux-nat.c (fetch_register): Ditto.
11912 * lynx-nat.c (fetch_inferior_registers): Ditto.
11913 (fetch_inferior_registers): Ditto.
11914 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11915 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11916 (hpux_thread_store_registers): Ditto.
11917 * hppah-nat.c (fetch_register): Ditto.
11918 * hppab-nat.c (fetch_register): Ditto.
11919 * hppa-tdep.c (pa_register_look_aside): Ditto.
11920 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11921 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11922
11923 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11924
11925 * gdbarch.sh: Explictly specify all method levels. When a
11926 variable with an empty level, provide a non-multi-arch default.
11927 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11928 * gdbarch.h: Re-generate.
11929 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11930 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11931
11932 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11933
11934 * defs.h (host_pointer_to_address): Delete declaration.
11935 (address_to_host_pointer): Delete declaration.
11936 * utils.c (host_pointer_to_address): Delete function.
11937 (address_to_host_pointer): Delete function.
11938 * procfs.c (procfs_address_to_host_pointer): New function.
11939 * procfs.c (proc_set_watchpoint): Use.
11940 (procfs_can_use_hw_breakpoint): Update comments.
11941 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11942 (som_solib_add): Use.
11943 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11944 * hppa-tdep.c (unwind_command): Use.
11945
11946 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11947
11948 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11949 strlen d_name.
11950
11951 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11952 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11953 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11954 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11955 (define_symbol): Update.
11956 * symfile.c (generic_load): Remove references to nindy.
11957 * symtab.c: Remove references to nindy.
11958
11959 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11960
11961 * infcmd.c (print_float_info): Delete code conditional on
11962 FLOAT_INFO.
11963 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11964 * config/m68k/nm-apollo68b.h: Ditto.
11965 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11966 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11967 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11968
11969 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11970
11971 * config/i386/tm-i386os9k.h: Removed.
11972
11973 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11974 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11975 they're identical to i[3456]86-*-sysv* now.
11976 * config/i386/i386v32.mh: Removed.
11977 * config/i386/xm-i386v32.h: Removed.
11978 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11979
11980 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11981
11982 * config/i386/i386dgux.mh: Removed.
11983 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11984
11985 * configure.in: Fix typo.
11986 * configure: Regenerated.
11987
11988 2003-01-31 David Carlton <carlton@math.stanford.edu>
11989
11990 * dwarf2read.c (dwarf2_locate_sections): Set
11991 dwarf_ranges_section.
11992
11993 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11994
11995 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11996 * utils.c: Update comments documenting legitimate uses of PTR.
11997
11998 * utils.c: Re-indent.
11999
12000 * config/djgpp/fnchange.lst: Delete nindy files.
12001 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
12002 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
12003 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
12004 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
12005 * nindy-share/README, nindy-share/Onindy.c: Delete files.
12006 * nindy-tdep.c, nindy-share/Makefile: Delete files.
12007 * Makefile.in (init.c): Remove nindy references.
12008 (saber_gdb): Delete rule.
12009 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
12010 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
12011 and a68v-nat.c.
12012 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
12013 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
12014 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
12015 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
12016 nindy-share/stop.h.
12017 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
12018 * saber.suppress: Delete file.
12019
12020 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * dbxread.c (stabs_data): New static variable.
12023 (fill_symbuf): Support an in-memory buffer for stabs data.
12024 (stabs_seek): New function.
12025 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
12026 (read_ofile_symtab): Use stabs_seek.
12027 (elfstab_build_psymtabs): Take an asection* instead of
12028 an offset and size. Relocate the stabs data if necessary.
12029 Save the section* for dbx_psymtab_to_symtab.
12030 * dwarf2read.c: Add section variables for each debug section.
12031 (dwarf2_locate_sections): Fill them in.
12032 (dwarf2_read_section): Take an asection* argument.
12033 Relocate the section contents if necessary.
12034 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
12035 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
12036 it to dwarf2_read_section.
12037 (dwarf2_build_frame_info): Update callers.
12038 * elfread.c (elf_symfile_read): Update call to
12039 elfstab_build_psymtabs.
12040 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
12041 (DBX_STAB_SECTION): New macro.
12042 * stabsread.h (elfstab_build_psymtabs): Update prototype.
12043 * symfile.c (symfile_dummy_outputs): New function.
12044 (symfile_relocate_debug_section): New function.
12045 * symfile.h (symfile_relocate_debug_section): Add prototype.
12046
12047 2003-01-31 Richard Henderson <rth@redhat.com>
12048
12049 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
12050 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
12051 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
12052 * alpha-tdep.c (alpha_register_name): Add "unique".
12053 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
12054 (ALPHA_UNIQUE_REGNUM): New.
12055 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
12056
12057 2003-01-31 Andrew Cagney <ac131313@redhat.com>
12058
12059 * README: Remove reference to Ericsson 1800 monitor.
12060 * Makefile.in (remote-es.o): Delete rule.
12061 (ALLDEPFILES): Delete remote-es.c.
12062 * remote-es.c: Delete file.
12063 * config/m68k/es1800.mt: Delete file.
12064 * config/djgpp/fnchange.lst: Update.
12065 * configure.tgt: Delete m68*-ericsson-* target.
12066
12067 2003-01-31 Adam Fedor <fedor@gnu.org>
12068
12069 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
12070 Remove duplicate/shadowing variable of same name.
12071
12072 2003-01-30 Jim Blandy <jimb@redhat.com>
12073
12074 * symfile.c (find_separate_debug_file): Assert that the objfile's
12075 directory name we compute ends with a slash, and then assume that
12076 that's so everywhere we use it.
12077
12078 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
12079
12080 * valops.c (value_assign): Flush frame cache after stores to memory
12081 also.
12082
12083 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12084
12085 * Makefile.in (mon960-rom.o): Delete rule.
12086 * mon960-rom.c: Delete file.
12087
12088 2003-01-30 Andrew Cagney <ac131313@redhat.com>
12089
12090 * d10v-tdep.c: Include "frame-unwind.h".
12091 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
12092 list.
12093 (next_addr, uses_frame): Delete.
12094 (struct d10v_unwind_cache): Define.
12095 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
12096 Use info instead of next_addr and uses_frame globals.
12097 (d10v_frame_init_saved_regs): Delete function.
12098 (d10v_init_extra_frame_info): Delete function.
12099 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
12100 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
12101 init_frame_pc or frame_saved_pc.
12102 (d10v_pop_frame): Delete function.
12103 (do_d10v_pop_frame): Delete function.
12104 (d10v_frame_chain): Delete function.
12105 (d10v_frame_chain_valid): Delete function.
12106 (d10v_frame_pc_unwind): New function.
12107 (d10v_frame_id_unwind): New function.
12108 (saved_regs_unwinder): New function.
12109 (d10v_frame_register_unwind): New function.
12110 (d10v_frame_pop): New function.
12111 (d10v_frame_unwind): New variable.
12112 (d10v_frame_p): New function.
12113 (d10v_frame_saved_pc): Delete function.
12114 * Makefile.in (d10v-tdep.o): Update dependencies.
12115
12116 2003-01-30 J. Brobecker <brobecker@gnat.com>
12117
12118 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
12119 causing some regressions due to a change in the default value
12120 for this macro.
12121
12122 2003-01-29 Richard Henderson <rth@redhat.com>
12123 Elena Zannoni <ezannoni@redhat.com>
12124 Daniel Jacobowitz <drow@mvista.com>
12125
12126 Fix PR gdb/961.
12127 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
12128 variables.
12129 (RANGES_SECTION): New.
12130 (dwarf_ranges_buffer): New variable.
12131 (struct comp_unit_head): Add member "die".
12132 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
12133 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
12134 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
12135 (dwarf2_locate_sections): Likewise.
12136 (dwarf2_build_psymtabs): Read .debug_ranges.
12137 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
12138 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
12139 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
12140 Look for DW_AT_ranges and return the bounding box.
12141
12142 2003-01-29 Brian Ford <ford@vss.fsi.com>
12143
12144 * win32-nat.c (cygwin_pid): Removed as unused.
12145 (child_attach): Try fall back to Cygwin pid.
12146
12147 2003-01-29 Jim Blandy <jimb@redhat.com>
12148
12149 * objfiles.h (struct objfile): Doc fix.
12150
12151 2003-01-29 Andrew Cagney <ac131313@redhat.com>
12152
12153 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
12154 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
12155 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
12156 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
12157 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
12158 (FRAME_SAVED_PC): Change to a function with predicate.
12159 * gdbarch.h, gdbarch.c: Re-generate.
12160
12161 2003-01-28 Andrew Cagney <ac131313@redhat.com>
12162
12163 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
12164
12165 * complaints.c (complain): Delete function.
12166 * complaints.h (struct deprecated_complaint): Delete definition.
12167 (complain): Delete declaration.
12168
12169 2003-01-28 Kevin Buettner <kevinb@redhat.com>
12170
12171 * mips-tdep.c (mips_init_extra_frame_info): Return early for
12172 dummy frames.
12173
12174 2003-01-27 Andrew Cagney <ac131313@redhat.com>
12175
12176 * sentinel-frame.h, sentinel-frame.c: New files.
12177 * Makefile.in (frame.o): Update dependencies.
12178 (SFILES): Add sentinel-frame.c.
12179 (sentinel_frame_h): Define.
12180 (COMMON_OBS): Add sentinel-frame.o.
12181 (sentinel-frame.o): Specify dependencies.
12182 * frame.c: Include "sentinel-frame.h".
12183 (frame_register_unwind): Rewrite assuming that there is always a a
12184 ->next frame.
12185 (frame_register, generic_unwind_get_saved_register): Ditto.
12186 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
12187 (create_sentinel_frame, unwind_to_current_frame): New functions.
12188 (get_current_frame): Rewrite using create_sentinel_frame and
12189 unwind_to_current_frame. When possible, always create a frame.
12190 (create_new_frame): Set next to the sentinel frame.
12191 (get_next_frame): Rewrite. Don't go below the level 0 frame.
12192 (deprecated_update_frame_pc_hack): Update the next frame's PC and
12193 ID cache when necessary.
12194 (frame_saved_regs_id_unwind): Use frame_relative_level.
12195 (deprecated_generic_get_saved_register): Use frame_relative_level,
12196 get_frame_saved_regs, get_frame_pc, get_frame_base and
12197 get_next_frame.
12198 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
12199 frame_register.
12200
12201 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12204
12205 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12208 (maintenance_set_profile_cmd): Use error () instead of warning ().
12209
12210 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12211
12212 * configure.in: Check that -pg works if using --enable-profiling.
12213 Check for monstartup and _mcleanup regardless of --enable-profiling.
12214 * maint.c: Check for monstartup and _mcleanup before using them.
12215 * config.in: Regenerated.
12216 * configure: Regenerated.
12217
12218 2003-01-24 Nick Clifton <nickc@redhat.com>
12219
12220 * Add sh2e support:
12221
12222 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12223
12224 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12225 (sh2e_show_regs): New.
12226 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12227 * config/sh/tm-sh.h: Added sh2e to comments.
12228
12229 2003-01-23 Jim Blandy <jimb@redhat.com>
12230
12231 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12232 symbols found)" message here; we haven't checked for a separate
12233 debug info file yet, so we don't know yet.
12234 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12235 we've looked everywhere. Also, there's no need to print a special
12236 message when we're loading the separate debug info file: the one
12237 symbol_file_add prints is fine.
12238
12239 2003-01-23 Alexander Larsson <alexl@redhat.com>
12240 Jim Blandy <jimb@redhat.com>
12241
12242 Add support for executables whose debug info has been separated
12243 out into a separate file, leaving only a link behind.
12244 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12245 and separate_debug_objfile_backlink.
12246 (put_objfile_before): New declaration.
12247 * symfile.c: #include "filenames.h".
12248 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12249 debug info in a separate file, read that, too. Save the addrs
12250 argument, so we can use it again to read the separated debug info;
12251 syms_from_objfile modifies the table we pass it.
12252 (reread_symbols): After re-reading an objfile, call
12253 reread_separate_symbols to refresh its separate debug info
12254 objfile, if it has one.
12255 (reread_separate_symbols, find_separate_debug_file,
12256 get_debug_link_info, separate_debug_file_exists): New functions.
12257 (debug_file_directory): New global var.
12258 (_initialize_symfile): Initialize debug_file_directory, and
12259 provide the new `set debug-file-directory' command to let the user
12260 change it.
12261 * objfiles.c (free_objfile): If this objfile has its debug info in
12262 a separate objfile, free that one too. If this is itself a
12263 separate debug info objfile, clear our parent's backlink.
12264 (put_objfile_before): New function.
12265 * utils.c (gnu_debuglink_crc32): New function.
12266 * defs.h (gnu_debuglink_crc32): New declaration.
12267 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12268 * configure.in: Handle --with-separate-debug-dir config option.
12269 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12270 * acconfig.h (DEBUGDIR): New macro.
12271 * configure, aclocal.m4, config.in: Regenerated.
12272
12273 2003-01-22 Jim Blandy <jimb@redhat.com>
12274
12275 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12276 like the old symbol_file_add, but taking new arguments: you can
12277 now pass in either a `struct section_addr_info' list to say where
12278 each section is loaded, or a `struct section_offsets' table. Pass
12279 these new arguments through to syms_from_objfile as appropriate.
12280 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12281 with the appropriate quiescent values for the new arguments.
12282
12283 * symfile.c: #include "gdb_assert.h".
12284 (syms_from_objfile): Add the ability to pass in a section offset
12285 table directly, as an alternative to the section_addr_info table.
12286 Document arguments better.
12287 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12288 * symfile.h (syms_from_objfile): Update declaration.
12289 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12290 syms_from_objfile.
12291 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12292
12293 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12294
12295 Original patch by Tom Tromey <tromey@cygnus.com> and
12296 Jason Molenda <jmolenda@apple.com>.
12297 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12298 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12299 * NEWS: Mention profiling.
12300 * configure.in (--enable-gdbtk): Fix typo.
12301 (--enable-profiling): New. Set PROFILE_CFLAGS.
12302 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12303 Fill in function.
12304 (profiling_state): New variable.
12305 (mcleanup_wrapper): New function.
12306 (_initialize_maint): Remove NOTYET, fix call to
12307 add_setshow_boolean_cmd for "maint set profile".
12308 * configure: Regenerated.
12309
12310 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12311
12312 * Makefile.in (install-gdbtk): Install PNG images too.
12313
12314 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12315
12316 * exec.c (text_start): Delete global variable.
12317 (exec_file_attach): Make text_start local to the function.
12318 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12319 * valops.c (hand_function_call): Delete code that handles
12320 BEFORE_TEXT_END and AFTER_TEXT_END.
12321 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12322 of CALL_DUMMY_LOCATION.
12323 * gdbarch.c: Regenerate.
12324 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12325 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12326 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12327 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12328 (text_end): Delete extern declaration.
12329
12330 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12331
12332 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12333 * blockframe.c (backtrace_below_main): Move to "frame.c".
12334 (frame_chain_valid): Delete check for backtrace_below_main.
12335 (_initialize_blockframe): Delete initialization, move ``set
12336 backtrace-below-main'' command to "frame.c".
12337 (do_flush_frames_sfunc): Delete function.
12338 * frame.c: Include "command.h" and "gdbcmd.h".
12339 (frame_type_from_pc): New function.
12340 (create_new_frame): Use frame_type_from_pc.
12341 (legacy_get_prev_frame): New function.
12342 (get_prev_frame): Rewrite. When an old style frame, call
12343 legacy_get_prev_frame. Otherwize, unwind the PC first.
12344 (_initialize_frame): Add ``set backtrace-below-main'' command.
12345 * Makefile.in (frame.o): Update dependencies.
12346
12347 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12348
12349 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12350 DEPRECATED_REGISTERS_INFO.
12351
12352 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12353
12354 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12355 Maintainers'. Update `Various Maintainers'.
12356
12357 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12358
12359 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12360 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12361 Suppress actual parameters when `-'.
12362 * gdbarch.h, gdbarch.c: Regenerate.
12363
12364 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12365
12366 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12367 code handling dummy frames.
12368
12369 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12370
12371 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12372 (struct frame_unwind): Add field pop.
12373 * frame.h (frame_pop): Declare.
12374 * frame.c (frame_saved_regs_pop): New function.
12375 (trad_frame_unwinder): Add frame_saved_regs_pop.
12376 (frame_pop): New function.
12377 * dummy-frame.c (dummy_frame_pop): New function.
12378 (discard_innermost_dummy): New function.
12379 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12380 (dummy_frame_unwind): Add dummy_frame_pop.
12381 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12382 * valops.c (hand_function_call): Ditto.
12383 * stack.c (return_command): Ditto.
12384
12385 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12386
12387 * cris-tdep.c: Fix function declaration indentation.
12388 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12389 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12390 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12391 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12392 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12393 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12394
12395 2003-01-18 Michael Chastain <mec@shout.net>
12396
12397 * README (Unpacking and Installation -- quick overview):
12398 Warn against ".../gdb-5.3/gdb/configure".
12399
12400 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12401
12402 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12403 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12404 (struct frame_unwind): Declare opaque.
12405 (dummy_frame_p): Declare function.
12406 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12407 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12408 * dummy-frame.c: Include "frame-unwind.h".
12409 (dummy_frame_p): New function.
12410 (dummy_frame_unwind): New variable.
12411 * frame.c: Include "frame-unwind.h".
12412 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12413 to use the new unwind field.
12414 (set_unwind_by_pc): Delete function.
12415 (create_new_frame, get_prev_frame): Set unwind field using
12416 frame_unwind_find_by_pc.
12417 (trad_frame_unwind, trad_frame_unwinder): New variables.
12418 * frame.h (trad_frame_unwind): Declare variable.
12419 (frame_id_unwind_ftype): Delete declaration.
12420 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12421 (struct frame_unwind): Declare opaque.
12422 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12423 register_unwind with a single unwind pointer.
12424 * frame-unwind.h, frame-unwind.c: New files.
12425 * Makefile.in (SFILES): Add frame-unwind.c.
12426 (frame_unwind_h): Define.
12427 (COMMON_OBS): Add frame-unwind.o.
12428 (frame-unwind.o): Specify dependencies.
12429 (frame.o, dummy-frame.o): Update dependencies.
12430
12431 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12432
12433 * ada-valprint.c: Eliminate PTR.
12434 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12435 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12436 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12437 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12438 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12439 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12440 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12441
12442 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12443
12444 * main.c (captured_main): Don't use PTR.
12445 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12446 * gdbtypes.c (lookup_primitive_typename): Ditto.
12447 (lookup_struct_elt_type): Ditto.
12448 * f-valprint.c (info_common_command): Ditto.
12449 (list_all_visible_commons): Ditto.
12450 * jv-typeprint.c (java_type_print_base): Ditto.
12451
12452 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12453 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12454 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12455 i386-interix-nat.c and i386-interix-tdep.c. Rename
12456 m68klinux-nat.c and m68klinux-tdep.c. Rename
12457 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12458 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12459 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12460 * main.c (captured_main): Use xfree, not free.
12461
12462 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12463
12464 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12465 ID back using a parameter.
12466 * frame.c (frame_id_unwind): Update call.
12467 (frame_saved_regs_id_unwind): Update.
12468 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12469 * dummy-frame.h (struct frame_id): Add opaque declaration.
12470 (dummy_frame_id_unwind): Update declaration.
12471
12472 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12473
12474 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12475
12476 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12477
12478 * MAINTAINERS (Stephen P. Smith): Updated email address.
12479
12480 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12481
12482 Fix PR gdb/898
12483 * breakpoint.c (until_break_command): Add new argument. Use it to
12484 decide whether to stop only at the current frame or not.
12485 * breakpoint.h (until_break_command): Update prototype.
12486 * infcmd.c (until_command): Add new argument to until_break_command
12487 call.
12488 (advance_command): New function.
12489 (_initialize_infcmd): Update help string for 'until' command.
12490 Add new 'advance' command.
12491
12492 2003-01-14 David Carlton <carlton@math.stanford.edu>
12493
12494 * linespec.c (decode_line_1): Normalize comments.
12495 (set_flags): Ditto.
12496 (locate_first_half): Ditto.
12497 (decode_compound): Ditto.
12498 (symtab_from_filename): Ditto.
12499 (decode_all_digits): Ditto.
12500 (decode_dollar): Ditto.
12501 (find_methods): Ditto.
12502 (find_toplevel_char): Ditto.
12503
12504 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12505
12506 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12507 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12508 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12509 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12510 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12511 * language.c, language.h, m32r-tdep.c: Update copyright.
12512 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12513 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12514 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12515 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12516 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12517 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12518
12519 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12520
12521 * stabsread.h (process_later, resolve_cfront_continuation):
12522 Obsolete.
12523 Update copyright years.
12524 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12525 Update copyright year.
12526 * dbxread.c(struct cont_elem): Obsolete.
12527 (process_later, process_now): Obsolete functions.
12528 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12529 Update copyright year.
12530 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12531 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12532 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12533 (parse_partial_symbols): Obsolete cfront support.
12534 * stabsread.c
12535 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12536 macros.
12537 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12538 read_cfront_baseclasses, read_cfront_member_functions,
12539 resolve_cfront_continuation,read_cfront_static_fields,
12540 copy_cfront_struct_fields): Obsolete functions.
12541 (define_symbol, read_one_struct_field): Obsolete cfront support.
12542 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12543 Update Copyright year.
12544
12545 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12546
12547 * stack.c (print_frame_info, print_stack_frame_base_stub,
12548 print_stack_frame_base, show_and_print_stack_frame_stub,
12549 show_and_print_stack_frame, print_only_stack_frame_stub,
12550 print_only_stack_frame): Delete functions.
12551 (print_stack_frame_stub): Call print_frame_info instead of
12552 print_frame_info_base.
12553 (print_frame_info_base): Rename to print_frame_info.
12554 (backtrace_command_1): Call print_frame_info, instead of
12555 print_frame_info_base.
12556 (current_frame_command): Call print_stack_frame, instead of
12557 print_only_stack_frame.
12558 (frame_command): Call print_stack_frame, instead of
12559 show_and_print_stack_frame.
12560 (up_command): Ditto.
12561 (down_command): Ditto.
12562 * frame.h (print_only_stack_frame): Delete prototype.
12563 * infrun.c (normal_stop): Call print_stack_frame, instead of
12564 show_and_print_stack_frame.
12565 * thread.c (info_threads_command): Call print_stack_frame, instead
12566 of print_only_stack_frame.
12567
12568 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12569
12570 * README (Graphical interface to GDB): Update URL. Point at
12571 gdb/links/.
12572
12573 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12574 version match.
12575
12576 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12577
12578 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12579 lines.
12580
12581 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12582
12583 * thread-db.c (attach_thread): Prototype.
12584 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12585 thread information (ti), and valid flags (th_valid, ti_valid).
12586 (attach_thread): Move target_pid_to_str call to after the thread
12587 is added to GDB's list. Initialize the cache.
12588 (thread_get_info_callback, thread_db_map_id2thr)
12589 (thread_db_get_info): New functions.
12590 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12591 (thread_db_store_registers, thread_db_thread_alive)
12592 (thread_db_get_thread_local_address): Use them.
12593 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12594 of calling error() for threads in unknown state.
12595
12596 (clear_lwpid_callback): New function.
12597 (thread_db_resume): Use it to clear the cache.
12598
12599 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12600
12601 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12602 (resume_callback): Remove dead code.
12603
12604 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12605
12606 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12607 predicate.
12608 * gdbarch.h, gdbarch.c: Regenerate.
12609 * stack.c (frame_info): Only initialize the saved registers when
12610 FRAME_INIT_SAVED_REGS_P.
12611 * frame.c (frame_saved_regs_register_unwind): Assert
12612 FRAME_INIT_SAVED_REGS_P.
12613 (deprecated_generic_get_saved_register): Ditto.
12614
12615 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12616
12617 * source.c (openp): Squelch warning about "filename".
12618
12619 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12620
12621 * source.c (openp): If the file does not exist don't necessarily
12622 search the path.
12623
12624 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12625
12626 Fix PR gdb/872.
12627 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12628 (integer_types_same_name_p): New function.
12629 (rank_one_type): Use it.
12630 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12631
12632 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12633
12634 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12635 variables.
12636 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12637 * configure.in: Add --with-sysroot.
12638 * configure: Regenerated.
12639 * main.c (gdb_sysroot): New variable.
12640 (captured_main): Initialize gdb_sysroot.
12641 * defs.h (gdb_sysroot): New extern declaration.
12642 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12643
12644 2003-01-12 Michael Chastain <mec@shout.net>
12645
12646 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12647
12648 2003-01-12 Michael Chastain <mec@shout.net>
12649
12650 * top.c (print_gdb_version): Bump copyright year to 2003.
12651
12652 2003-01-12 David Carlton <carlton@bactrian.org>
12653
12654 * linespec.c (symtab_from_filename): Rename variable 's' to
12655 'file_symtab'.
12656
12657 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12658
12659 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12660 dummy frame.
12661 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12662
12663 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12664
12665 * d10v-tdep.c: Include "gdb_assert.h".
12666 (d10v_store_return_value): Rewrite to match current interface.
12667 (d10v_extract_struct_value_address): Ditto.
12668 (d10v_extract_return_value): Ditto.
12669 (d10v_gdbarch_init): Set store_restore_value,
12670 extract_struct_value_address and extract_return_value.
12671
12672 2003-01-12 J. Brobecker <brobecker@gnat.com>
12673
12674 * hpread.c (set_namestring): New procedure replacing the
12675 SET_NAMESTRING macro.
12676 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12677 by calls to set_namestring.
12678
12679 2003-01-11 J. Brobecker <brobecker@gnat.com>
12680
12681 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12682 a compilation warning.
12683 (hpread_process_one_debug_symbol): Likewise.
12684
12685 2003-01-10 David Carlton <carlton@math.stanford.edu>
12686
12687 * linespec.c (decode_line_1): Rename variable 's' to
12688 'file_symtab'.
12689 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12690 (decode_dollar): Ditto.
12691 (decode_variable): Ditto.
12692 (symbol_found): Ditto.
12693
12694 2003-01-09 Michael Chastain <mec@shout.net>
12695
12696 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12697
12698 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12699
12700 * win32-nat.c (set_process_privilege): New function.
12701 (child_attach): Call set_process_privilege() to enable the
12702 SE_DEBUG_NAME user privilege if available in process token.
12703
12704 2003-01-10 J. Brobecker <brobecker@gnat.com>
12705
12706 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12707 compilation error in the previous revision.
12708
12709 2003-01-09 David Carlton <carlton@math.stanford.edu>
12710
12711 * linespec.c: Update copyright.
12712
12713 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12714
12715 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12716 than inferior_ptid.
12717 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12718
12719 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12720
12721 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12722 Update comments.
12723 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12724 (frame_saved_regs_zalloc): Update.
12725 (frame_saved_regs_register_unwind): Update.
12726 (create_new_frame): Update.
12727 (get_prev_frame): Update.
12728 (frame_extra_info_zalloc): Update.
12729 (deprecated_get_frame_saved_regs): Update.
12730 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12731 * cris-tdep.c: Update comment.
12732
12733 * somsolib.h: Fix function indentation.
12734 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12735 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12736 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12737 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12738 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12739
12740 * infrun.c (follow_fork): Use ISO C definition.
12741 * expprint.c (print_subexp): Use xfree instead of free.
12742 * charset.c: Include "gdb_string.h" instead of <string.h>.
12743 (register_iconv_charsets): Use ISO C definition.
12744 (host_charset, target_charset): Ditto.
12745 * Makefile.in (charset.o): Update dependencies.
12746 (mi-cmd-env.o): Update dependencies.
12747
12748 2003-01-08 Andrew Cagney <cagney@redhat.com>
12749
12750 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12751 get_frame_base.
12752
12753 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12754
12755 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12756 build directories. Save edited gdb output in Mbuild.log. If a
12757 build fails, remove any final GDB executable.
12758
12759 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12760
12761 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12762 replacing hex constants with function names and stripping leading
12763 file name directory prefixes.
12764
12765 2003-01-08 Andrew Cagney <cagney@redhat.com>
12766
12767 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12768 get_frame_base.
12769
12770 2003-01-08 David Carlton <carlton@math.stanford.edu>
12771
12772 * linespec.c (decode_line_1): Move code into decode_variable.
12773 (decode_variable): New function.
12774
12775 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12776
12777 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12778
12779 2003-01-08 Andrew Cagney <cagney@redhat.com>
12780
12781 * cris-tdep.c (cris_frame_init_saved_regs): Use
12782 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12783 saved_regs buffer.
12784 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12785 (sh64_nofp_frame_init_saved_regs): Ditto.
12786 (sh_fp_frame_init_saved_regs): Ditto.
12787 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12788 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12789 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12790 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12791
12792 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12793
12794 * minsyms.c (lookup_minimal_symbol): Update comment.
12795 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12796 (lookup_minimal_symbol_solib_trampoline): Likewise.
12797
12798 2003-01-08 Andrew Cagney <cagney@redhat.com>
12799
12800 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12801 frame_relative_level.
12802
12803 * alpha-tdep.c: Use get_frame_extra_info.
12804 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12805 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12806 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12807 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12808
12809 * alpha-tdep.c: Use get_next_frame.
12810 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12811 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12812 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12813 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12814 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12815 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12816 * xstormy16-tdep.c: Ditto.
12817
12818 2003-01-07 Andrew Cagney <cagney@redhat.com>
12819
12820 * alpha-tdep.c: Use get_frame_base.
12821 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12822 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12823 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12824 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12825 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12826 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12827 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12828 * config/sparc/tm-sparc.h: Ditto.
12829
12830 2003-01-07 Andrew Cagney <cagney@redhat.com>
12831
12832 * frame.c (deprecated_get_frame_context): New function.
12833 (deprecated_set_frame_context): New function.
12834 * frame.h (deprecated_get_frame_context): Declare.
12835 (deprecated_set_frame_context): Declare.
12836 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12837 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12838
12839 2003-01-07 Andrew Cagney <cagney@redhat.com>
12840
12841 * frame.c (deprecated_set_frame_next_hack): New function.
12842 (deprecated_set_frame_prev_hack): New function.
12843 * frame.h (deprecated_set_frame_next_hack): Declare.
12844 (deprecated_set_frame_prev_hack): Declare.
12845 * mcore-tdep.c (analyze_dummy_frame): Use
12846 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12847 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12848
12849 2003-01-07 David Carlton <carlton@math.stanford.edu>
12850
12851 * linespec.c (decode_line_1): Move code into decode_dollar.
12852 (decode_dollar): New function.
12853
12854 2003-01-07 Andrew Cagney <cagney@redhat.com>
12855
12856 * arm-tdep.c (arm_init_extra_frame_info): Use
12857 deprecated_update_frame_base_hack.
12858 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12859 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12860 (fix_frame_pointer): Ditto.
12861 (mn10300_analyze_prologue): Ditto.
12862
12863 2003-01-07 Andrew Cagney <cagney@redhat.com>
12864
12865 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12866 extra_info using frame_extra_info_zalloc.
12867 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12868 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12869 (sh64_init_extra_frame_info): Ditto.
12870 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12871 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12872 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12873 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12874 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12875 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12876 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12877 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12878 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12879 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12880 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12881 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12882
12883 * mn10300-tdep.c (analyze_dummy_frame): Use
12884 deprecated_set_frame_extra_info_hack.
12885 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12886
12887 2003-01-07 J. Brobecker <brobecker@gnat.com>
12888
12889 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12890 class is not scText. These do not define "real" procedures.
12891 (parse_partial_symbols): Likewise.
12892
12893 2003-01-06 Michael Snyder <msnyder@redhat.com>
12894
12895 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12896
12897 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12898
12899 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12900 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12901 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12902 deprecated_frame_xmalloc_with_cleanup.
12903 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12904 deprecated_frame_xmalloc.
12905 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12906 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12907
12908 2003-01-06 Andrew Cagney <cagney@redhat.com>
12909
12910 * x86-64-linux-tdep.c: Include "osabi.h".
12911 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12912
12913 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12914
12915 2003-01-06 Andrew Cagney <cagney@redhat.com>
12916
12917 * MAINTAINERS (Target Instruction Set Architectures): Update
12918 arm-elf. Can be built with -Werror, has been multiarched.
12919
12920 * value.h (unpack_long): Make buffer parameter constant.
12921 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12922 * scm-lang.h (scm_parse): Ditto.
12923 * defs.h (extract_typed_address, extract_address): Ditto.
12924 (extract_long_unsigned_integer): Ditto.
12925 * inferior.h (unsigned_pointer_to_address): Ditto.
12926 (signed_pointer_to_address): Ditto.
12927 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12928 * gdbarch.h, gdbarch.c: Regenerate.
12929 * findvar.c (extract_long_unsigned_integer): Update.
12930 (extract_address): Update.
12931 (extract_typed_address): Update.
12932 (unsigned_pointer_to_address): Update.
12933 * values.c (unpack_long): Update.
12934 (unpack_double): Update.
12935 (unpack_pointer): Update.
12936 (unpack_field_as_long): Update.
12937 * d10v-tdep.c (d10v_pointer_to_address): Update.
12938 * avr-tdep.c (avr_pointer_to_address): Update.
12939 * scm-lang.c (scm_unpack): Update.
12940 * findvar.c (signed_pointer_to_address): Update.
12941
12942 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12943
12944 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12945 since it is in i386-tdep.c.
12946
12947 2003-01-06 J. Brobecker <brobecker@gnat.com>
12948
12949 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12950 failure introduced in the previous change.
12951
12952 2003-01-05 Michael Chastain <mec@shout.net>
12953
12954 * README: Remove references to deleted remote-*.c files:
12955 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12956 remote-nrom.c, remote-os9k.c, remote-udi.c.
12957
12958 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12959
12960 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12961 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12962 i386_get_longjmp_target.
12963
12964 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12965
12966 * arm-tdep.c (prologue_cache): Change to a pointer.
12967 (_initialize_arm_tdep): Allocate prologue_cache.
12968 (check_prologue_cache): Update.
12969 (save_prologue_cache): Update.
12970 (arm_gdbarch_init): Update.
12971
12972 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12973
12974 * stabsread.c (update_method_name_from_physname): Call complaint()
12975 instead of error.
12976
12977 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12978
12979 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12980 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12981 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12982
12983 * blockframe.c: Include "gdbcmd.h" and "command.h".
12984 (backtrace_below_main): New variable.
12985 (file_frame_chain_valid, func_frame_chain_valid)
12986 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12987 (generic_func_frame_chain_valid): Remove functions.
12988 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12989 (_initialize_blockframe): New function.
12990 * Makefile.in (blockframe.o): Update dependencies.
12991 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12992 comment. Call frame_chain_valid ().
12993 * frame.h: Remove old prototypes. Add prototype for
12994 frame_chain_valid and update comments to match.
12995 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12996 Remove old comment.
12997 * gdbarch.h: Regenerated.
12998 * gdbarch.c: Regenerated.
12999
13000 * alpha-tdep.c (alpha_gdbarch_init): Don't call
13001 set_gdbarch_frame_chain_valid.
13002 * avr-tdep.c (avr_gdbarch_init): Likewise.
13003 * cris-tdep.c (cris_gdbarch_init): Likewise.
13004 * frv-tdep.c (frv_gdbarch_init): Likewise.
13005 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
13006 * i386-tdep.c (i386_svr4_init_abi): Likewise.
13007 (i386_nw_init_abi): Likewise.
13008 (i386_gdbarch_init): Likewise.
13009 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
13010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
13011 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
13012 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
13013 * mips-tdep.c (mips_gdbarch_init): Likewise.
13014 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
13015 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
13016 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
13017 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13018 * s390-tdep.c (s390_gdbarch_init): Likewise.
13019 * sh-tdep.c (sh_gdbarch_init): Likewise.
13020 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13021 * v850-tdep.c (v850_gdbarch_init): Likewise.
13022 * vax-tdep.c (vax_gdbarch_init): Likewise.
13023 * x86-64-tdep.c (x86_64_init_abi): Likewise.
13024
13025 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
13026 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
13027 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
13028 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
13029 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
13030 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
13031 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
13032 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
13033
13034 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13035
13036 * Makefile.in (acconfig_h): Remove incorrect macro.
13037 (config_h): Define.
13038 (osabi.o): Update dependencies.
13039 * configure.tgt: Set gdb_osabi based on target triplet.
13040 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
13041 * configure: Regenerated.
13042 * config.in: Regenerated.
13043 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
13044 (GDB_OSABI_DEFAULT): Define if not already defined.
13045 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13046 (set_osabi_string): New variables.
13047 (gdbarch_register_osabi): Add new OS ABI to
13048 gdb_osabi_available_names.
13049 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
13050 (set_osabi, show_osabi): New functions.
13051 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
13052
13053 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13054
13055 * arch-utils.c (gdbarch_info_init): Set osabi to
13056 GDB_OSABI_UNINITIALIZED.
13057 * gdbarch.sh: Add osabi to struct gdbarch and to struct
13058 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
13059 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
13060 * gdbarch.c: Regenerated.
13061 * gdbarch.h: Regenerated.
13062 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
13063 there's no BFD.
13064 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
13065 * osabi.h (enum gdb_osabi): Move to defs.h.
13066 (gdbarch_init_osabi): Update prototype.
13067 * defs.h (enum gdb_osabi): Moved here.
13068 * Makefile.in: Update dependencies.
13069
13070 * alpha-tdep.h: Don't include "osabi.h".
13071 (struct gdbarch_tdep): Remove osabi member.
13072 * alpha-tdep.c: Include "osabi.h".
13073 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13074 iterate over arches. Update call to gdbarch_init_osabi.
13075 (alpha_dump_tdep): Don't dump osabi.
13076 * alpha-linux-tdep.c: Include "osabi.h".
13077 * alpha-osf1-tdep.c: Include "osabi.h".
13078 * alphafbsd-tdep.c: Include "osabi.h".
13079 * alphanbsd-tdep.c: Include "osabi.h".
13080
13081 * arm-tdep.h: Don't include "osabi.h".
13082 (struct gdbarch_tdep): Remove osabi member.
13083 * arm-tdep.c: Include "osabi.h".
13084 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13085 iterate over arches. Update call to gdbarch_init_osabi.
13086 (arm_dump_tdep): Don't dump osabi.
13087 * arm-linux-tdep.c: Include "osabi.h".
13088 * armnbsd-tdep.c: Include "osabi.h".
13089
13090 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
13091 Update call to gdbarch_init_osabi.
13092
13093 * i386-tdep.h: Don't include "osabi.h".
13094 (struct gdbarch_tdep): Remove osabi member.
13095 * i386-tdep.c: Include "osabi.h".
13096 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13097 iterate over arches. Update call to gdbarch_init_osabi.
13098 (i386_dump_tdep): Don't dump osabi.
13099 * i386-linux-tdep.c: Include "osabi.h".
13100 * i386-sol2-tdep.c: Include "osabi.h".
13101 * i386bsd-tdep.c: Include "osabi.h".
13102 * i386gnu-tdep.c: Include "osabi.h".
13103 * i386ly-tdep.c: Include "osabi.h".
13104 * i386nbsd-tdep.c: Include "osabi.h".
13105 * i386obsd-tdep.c: Include "osabi.h".
13106
13107 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
13108 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13109 check osabi when iterating over arches. Update call to
13110 gdbarch_init_osabi.
13111 (mips_dump_tdep): Don't dump osabi.
13112
13113 * ns32k-tdep.h: Don't include "osabi.h".
13114 (struct gdbarch_tdep): Remove.
13115 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
13116 gdbarch_lookup_osabi. Don't iterate over arches. Don't
13117 allocate tdep. Update call to gdbarch_init_osabi.
13118 (ns32k_dump_tdep): Remove.
13119 (_initialize_ns32k_tdep): Update call to gdbarch_register.
13120 * ns32knbsd-tdep.c: Include "osabi.h".
13121
13122 * ppc-tdep.h: Don't include "osabi.h".
13123 (struct gdbarch_tdep): Remove osabi member.
13124 * rs6000-tdep.c: Include "osabi.h".
13125 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
13126 osabi when iterating over arches. Update call to
13127 gdbarch_init_osabi.
13128 (rs6000_dump_tdep): Don't dump osabi.
13129 * ppc-linux-tdep.c: Include "osabi.h".
13130 * ppcnbsd-tdep.c: Include "osabi.h".
13131
13132 * sh-tdep.h: Don't include "osabi.h".
13133 (struct gdbarch_tdep): Remove osabi member.
13134 * sh-tdep.c: Include "osabi.h".
13135 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13136 iterate over arches. Update call to gdbarch_init_osabi.
13137 (sh_dump_tdep): Don't dump osabi.
13138 * shnbsd-tdep.c: Include "osabi.h".
13139
13140 * sparc-tdep.c: Include "osabi.h".
13141 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13142 iterate over arches. Update call to gdbarch_init_osabi.
13143 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
13144 tdep structure.
13145
13146 * vax-tdep.h: Don't include "osabi.h".
13147 (struct gdbarch_tdep): Remove.
13148 * vax-tdep.c: Include "osabi.h".
13149 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
13150 iterate over arches. Don't allocate tdep. Update call
13151 to gdbarch_init_osabi.
13152 (vax_dump_tdep): Remove.
13153 (_initialize_vax_tdep): Update call to gdbarch_register.
13154
13155 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13156
13157 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
13158 entirely.
13159 (breakpoint_re_set_one): Don't fetch the value for a disabled
13160 watchpoint.
13161
13162 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13163
13164 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
13165 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
13166 (COERCE_FLOAT_TO_DOUBLE): Remove.
13167 * gdbarch.c: Regenerate.
13168 * gdbarch.h: Regenerate.
13169 * Makefile.in: Remove value_h from gdbarch_h.
13170 * valops.c (coerce_float_to_double): New variable.
13171 (default_coerce_float_to_double): Remove.
13172 (standard_coerce_float_to_double): Remove.
13173 (value_arg_coerce): Use coerce_float_to_double.
13174 (_initialize_valops): Add "set coerce-float-to-double".
13175 * value.h (default_coerce_float_to_double): Remove prototype.
13176 (standard_coerce_float_to_double): Remove prototype.
13177
13178 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
13179 prototyped.
13180 * mdebugread.c (parse_symbol): Likewise.
13181 * stabsread.c (define_symbol): Mark all functions as prototyped.
13182
13183 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
13184 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
13185 set_gdbarch_coerce_float_to_double.
13186 * arm-tdep.c (arm_gdbarch_init): Likewise.
13187 * frv-tdep.c (frv_gdbarch_init): Likewise.
13188 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
13189 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
13190 * mips-tdep.c (mips_gdbarch_init): Likewise.
13191 (mips_coerce_float_to_double): Remove.
13192 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
13193 (rs6000_coerce_float_to_double): Remove.
13194 * s390-tdep.c (s390_gdbarch_init): Likewise.
13195 * sh-tdep.c (sh_gdbarch_init): Likewise.
13196 (sh_coerce_float_to_double): Remove.
13197 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
13198 (sparc_coerce_float_to_double): Remove.
13199 * v850-tdep.c (v850_gdbarch_init): Likewise.
13200 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
13201 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13202 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
13203 (hppa_coerce_float_to_double): Remove prototype.
13204 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13205
13206 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13207
13208 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13209
13210 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13211
13212 Suggested by Stewart Brown <sb24@avaya.com>:
13213 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13214 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13215 (c_type_print_varspec_suffix): Likewise.
13216
13217 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13218
13219 * configure.in: Don't set and AC_SUBST SUBDIRS.
13220 * configure: Regenerated.
13221
13222 * configure.in: Remove code dealing with shared libraries.
13223 * Makefile.in: Remove HLDFLAGS and HLDENV.
13224 * configure: Regenerated.
13225
13226 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13227
13228 * frame.c (deprecated_frame_xmalloc): New function.
13229 (deprecated_set_frame_saved_regs_hack): New function.
13230 (deprecated_set_frame_extra_info_hack): New function.
13231 * frame.h (deprecated_frame_xmalloc): Declare.
13232 (deprecated_set_frame_saved_regs_hack): Declare.
13233 (deprecated_set_frame_extra_info_hack): Declare.
13234
13235 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13236
13237 * configure.in: Move code that provides the --enable-gdbtk option
13238 right after the code that handles the --enable-tui option, and
13239 polish it somewhat.
13240 * configure: Regenerated.
13241
13242 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13243 AC_CHECK_FUNCS and remove the old check for pread64.
13244 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13245 * acconfig.h (_GNU_SOURCE): Add.
13246 (HAVE_PREAD64): Remove.
13247 * configure, aclocal.m4, config.in: Regenerated.
13248
13249 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13250
13251 * alpha-tdep.c: Use get_frame_saved_regs.
13252 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13253 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13254 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13255 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13256 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13257
13258 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13259
13260 * configure.in: Remove all use of the SUBDIRS variable; add
13261 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13262 code providing the --enable-multi-ice option, and move it right in
13263 front of the code that checks whether gdbserver is supported.
13264 Polish that too.
13265 * configure: Regenerated.
13266 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13267 @SUBDIRS@.
13268
13269 2003-01-03 Andrew Cagney <cagney@redhat.com>
13270
13271 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13272 * avr-tdep.c, cris-tdep.c: Ditto.
13273 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13274 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13275
13276 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13277
13278 * configure.in: Remove --enable-netrom option.
13279 * configure: Regenerated.
13280
13281 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13282
13283 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13284 declaration for `struct re_pattern_buffer' instead.
13285 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13286
13287 2003-01-03 J. Brobecker <brobecker@gnat.com>
13288
13289 * mdebugread.c (parse_symbol): Count until the stEnd matching
13290 the structure name.
13291
13292 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13293
13294 * configure.in: Remove --with-cpu option.
13295 subscripts. Remove evil changequotes here.
13296 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13297 * config.in, configure: Regenerated.
13298
13299 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13300 * configure.in: Cleanup section that sources GDB and BFD configure
13301 subscripts. Remove evil changequotes here.
13302 * config.in, configure: Regenerated.
13303
13304 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13305
13306 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13307 frame accessor methods.
13308 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13309 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13310 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13311 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13312 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13313 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13314 * z8k-tdep.c: Ditto.
13315
13316 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13317
13318 * configure.in: Remove UI_OUT configuration code.
13319 * ada-lang.c: Update assuming UI_OUT is always true.
13320 * Makefile.in (UIOUT_CFLAGS): Remove.
13321 * configure: Regenerated.
13322 * TODO: Remove blurb about elimination of -DUI_OUT.
13323
13324 * configure.in: Move code that provides the --enable-gdbcli,
13325 --enable-gdbmi options right before the code that handles the
13326 --enable-tui option. Polish a bit.
13327 * configure: Regenerated.
13328
13329 * configure.in: Rewrite check for GNU regex and the
13330 --without-included regex option, and move it into the "Checks for
13331 library functions" section. This makes us use the system regex
13332 again by default on systems with version 2 of the GNU C library.
13333 This was apparently broken.
13334 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13335 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13336 * config.in, configure: Regenerated.
13337
13338 * configure.in: Move code that provides the --enable-tui option
13339 before the "Checks for libraries" section. Polish the code
13340 somewhat and set need_curses to yes if we build the TUI. Rewrite
13341 code that looks for a library providing termcap functionality to
13342 match more closely what's done in the Readline library, and move
13343 it into to the "Checks for libraries" section.
13344 * configure: Regenerated.
13345 * Makefile.in (TERMCAP): Remove variable.
13346 * config/i386/go32.mh (TERMCAP): Remove variable.
13347
13348 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13349
13350 * MAINTAINERS: Mention gdb_mbuild.sh.
13351 * gdb_mbuild.sh: Rewrite.
13352
13353 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13354
13355 * configure.in: Fix typo in last change.
13356 * config.in, configure: Regenerated.
13357
13358 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13359
13360 * valarith.c (value_binop): Delete obsolete code and comments.
13361 * configure.host: Ditto.
13362 * buildsym.h (make_blockvector): Ditto.
13363 * buildsym.c (make_blockvector): Ditto.
13364 * defs.h (enum language): Ditto.
13365 (chill_demangle): Ditto.
13366 * elfread.c (elf_symtab_read): Ditto.
13367 * dwarfread.c (CHILL_PRODUCER): Ditto.
13368 (set_cu_language): Ditto.
13369 (handle_producer): Ditto.
13370 * expprint.c (print_subexp): Ditto.
13371 * gdbtypes.c (chill_varying_type): Ditto.
13372 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13373 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13374 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13375 (chill_varying_type): Ditto.
13376 * language.h (_LANG_chill): Ditto.
13377 * language.c (binop_result_type, integral_type): Ditto.
13378 (character_type, string_type, structured_type): Ditto.
13379 (lang_bool_type, binop_type_check): Ditto.
13380 * stabsread.h (os9k_stabs): Ditto.
13381 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13382 (define_symbol, read_type, read_struct_fields): Ditto.
13383 (read_array_type, read_enum_type, read_huge_number): Ditto.
13384 (read_range_type, start_stabs): Ditto.
13385 * symfile.c (init_filename_language_table): Ditto.
13386 (add_psymbol_with_dem_name_to_list): Ditto.
13387 * symtab.c (symbol_init_language_specific): Ditto.
13388 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13389 * symtab.h (struct general_symbol_info): Ditto.
13390 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13391 * typeprint.c (typedef_print): Ditto.
13392 * utils.c (fprintf_symbol_filtered): Ditto.
13393 * valops.c (value_cast, search_struct_field, value_slice): Delete
13394 obsolete code.
13395 (varying_to_slice): Delete function.
13396 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13397 (varying_to_slice): Delete declaration.
13398 * MAINTAINERS: Update.
13399
13400 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13401
13402 * configure.in: Reorganize "Checks for library functions section"
13403 a bit. Remove check for `btowc' and `isascii' functions.
13404 * configure: Regenerated.
13405
13406 * acconfig.h (_MSE_INT_H): Remove.
13407 * configure.in: Create "Checks for header files" section, and move
13408 appropriate tests there. Don't check for objlist.h, wchar.h,
13409 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13410 misdetection fix. Also add "Checks for types", "Checks for
13411 compiler characteristics" and "Checks for library functions"
13412 sections.
13413 * config.in, configure: Regenerated.
13414
13415 * configure.in: Create "Checks for programs" section, and move
13416 appropriate tests there.
13417
13418 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13419
13420 * configure.in: Create "Checks for libraries" section, and move
13421 appropriate tests there. Cleanup check for wctype in libw. Use
13422 AC_SEARCH_LIBS to see whether we need libsocket.
13423 * configure: Regenerated.
13424
13425 For older changes see ChangeLog-2002
13426 \f
13427 Local Variables:
13428 mode: change-log
13429 left-margin: 8
13430 fill-column: 74
13431 version-control: never
13432 End:
This page took 0.653013 seconds and 4 git commands to generate.